@monolith-forensics/monolith-ui 1.1.5 → 1.1.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/Flyout/Flyout.d.ts +1 -0
- package/dist/Flyout/Flyout.js +1 -1
- package/dist/Modal/Modal.js +2 -26
- package/dist/core/MonolithThemeProvider.d.ts +4 -0
- package/dist/core/MonolithThemeProvider.js +20 -0
- package/dist/theme/breakpoints.d.ts +10 -0
- package/dist/theme/breakpoints.js +12 -0
- package/dist/theme/components.d.ts +158 -0
- package/dist/theme/components.js +138 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.js +66 -0
- package/dist/theme/shadows.d.ts +2 -0
- package/dist/theme/shadows.js +33 -0
- package/dist/theme/typography.d.ts +62 -0
- package/dist/theme/typography.js +59 -0
- package/dist/theme/variants.d.ts +118 -0
- package/dist/theme/variants.js +234 -0
- package/package.json +7 -2
package/dist/Flyout/Flyout.d.ts
CHANGED
package/dist/Flyout/Flyout.js
CHANGED
|
@@ -106,6 +106,6 @@ const Flyout = ({ children, open = false, onClose = () => { }, style = {}, close
|
|
|
106
106
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
-
return ((0, jsx_runtime_1.jsx)(react_1.FloatingPortal, { preserveTabOrder: true, children: open && ((0, jsx_runtime_1.jsx)(StyledOverlay, { className: "mf-ModalOverlay", lockScroll: true, onMouseDown: handleMouseDown, children: (0, jsx_runtime_1.jsx)(react_1.FloatingFocusManager, { context: context, modal: true, children: (0, jsx_runtime_1.jsxs)(StyledContent, Object.assign({ style: style, className: `mf-Modal mf-Flyout`, ref: refs.setFloating }, floatingStyles, { children: [showCloseButton && ((0, jsx_runtime_1.jsx)(StyledClose, { children: (0, jsx_runtime_1.jsx)(StyledButton, { onMouseDown: () => onClose === null || onClose === void 0 ? void 0 : onClose(), children: (0, jsx_runtime_1.jsx)(lucide_react_1.XIcon, { size: 18 }) }) })), (0, jsx_runtime_1.jsx)(StyledInnerContent, { className: "mf-Flyout inner-content", children: children })] })) }) })) }));
|
|
109
|
+
return ((0, jsx_runtime_1.jsx)(react_1.FloatingPortal, { preserveTabOrder: true, children: open && ((0, jsx_runtime_1.jsx)(StyledOverlay, { className: "mf-ModalOverlay", lockScroll: true, onMouseDown: handleMouseDown, children: (0, jsx_runtime_1.jsx)(react_1.FloatingFocusManager, { context: context, modal: true, children: (0, jsx_runtime_1.jsxs)(StyledContent, Object.assign({ style: style, className: `mf-Modal mf-Flyout`, ref: refs.setFloating }, floatingStyles, { translate: undefined, children: [showCloseButton && ((0, jsx_runtime_1.jsx)(StyledClose, { children: (0, jsx_runtime_1.jsx)(StyledButton, { onMouseDown: () => onClose === null || onClose === void 0 ? void 0 : onClose(), children: (0, jsx_runtime_1.jsx)(lucide_react_1.XIcon, { size: 18 }) }) })), (0, jsx_runtime_1.jsx)(StyledInnerContent, { className: "mf-Flyout inner-content", children: children })] })) }) })) }));
|
|
110
110
|
};
|
|
111
111
|
exports.default = Flyout;
|
package/dist/Modal/Modal.js
CHANGED
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
7
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
31
|
-
const RadixDialog = __importStar(require("@radix-ui/react-dialog"));
|
|
32
8
|
const lucide_react_1 = require("lucide-react");
|
|
33
9
|
const react_1 = require("@floating-ui/react");
|
|
34
10
|
const StyledOverlay = (0, styled_components_1.default)(react_1.FloatingOverlay) `
|
|
@@ -90,7 +66,7 @@ const StyledInnerContent = styled_components_1.default.div `
|
|
|
90
66
|
overflow-y: auto;
|
|
91
67
|
padding: 25px;
|
|
92
68
|
`;
|
|
93
|
-
const StyledClose =
|
|
69
|
+
const StyledClose = styled_components_1.default.div `
|
|
94
70
|
position: absolute;
|
|
95
71
|
top: 15px;
|
|
96
72
|
right: 15px;
|
|
@@ -127,7 +103,7 @@ const Modal = ({ children, open = false, onClose, style = {}, showCloseButton =
|
|
|
127
103
|
const handleMouseDown = () => {
|
|
128
104
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
129
105
|
};
|
|
130
|
-
return ((0, jsx_runtime_1.jsx)(react_1.FloatingPortal, { preserveTabOrder: true, children: open && ((0, jsx_runtime_1.jsx)(StyledOverlay, { className: "mf-ModalOverlay", lockScroll: true, children: (0, jsx_runtime_1.jsx)(react_1.FloatingFocusManager, Object.assign({ context: context, modal: true }, FocusProps, { children: (0, jsx_runtime_1.jsxs)(StyledContent, Object.assign({ style: style, className: "mf-Modal", ref: refs.setFloating }, floatingStyles, { children: [showCloseButton && ((0, jsx_runtime_1.jsx)(StyledClose, {
|
|
106
|
+
return ((0, jsx_runtime_1.jsx)(react_1.FloatingPortal, { preserveTabOrder: true, children: open && ((0, jsx_runtime_1.jsx)(StyledOverlay, { className: "mf-ModalOverlay", lockScroll: true, children: (0, jsx_runtime_1.jsx)(react_1.FloatingFocusManager, Object.assign({ context: context, modal: true }, FocusProps, { children: (0, jsx_runtime_1.jsxs)(StyledContent, Object.assign({ style: style, className: "mf-Modal", ref: refs.setFloating }, floatingStyles, { children: [showCloseButton && ((0, jsx_runtime_1.jsx)(StyledClose, { children: (0, jsx_runtime_1.jsx)(StyledButton, { onMouseDown: handleMouseDown, children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 18 }) }) })), (0, jsx_runtime_1.jsx)(StyledInnerContent, { children: children })] })) })) })) }));
|
|
131
107
|
};
|
|
132
108
|
Modal.Title = Title;
|
|
133
109
|
Modal.SubTitle = SubTitle;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MonolithThemeProvider = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const styled_components_1 = require("styled-components");
|
|
9
|
+
const variants_1 = __importDefault(require("@monolith-ui/theme/variants"));
|
|
10
|
+
const MonolithThemeProvider = ({ children, theme }) => {
|
|
11
|
+
let selectedTheme = theme
|
|
12
|
+
? variants_1.default.find((variant) => variant.name === theme)
|
|
13
|
+
: variants_1.default[1]; // Default to dark theme
|
|
14
|
+
if (!selectedTheme) {
|
|
15
|
+
console.warn(new Error(`The theme ${theme} is not valid`));
|
|
16
|
+
selectedTheme = variants_1.default[1]; // Default to dark theme
|
|
17
|
+
}
|
|
18
|
+
return (0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, { theme: selectedTheme, children: children });
|
|
19
|
+
};
|
|
20
|
+
exports.MonolithThemeProvider = MonolithThemeProvider;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export default components;
|
|
2
|
+
declare namespace components {
|
|
3
|
+
namespace MuiButtonBase {
|
|
4
|
+
namespace defaultProps {
|
|
5
|
+
let disableRipple: boolean;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
namespace MuiLink {
|
|
9
|
+
export namespace defaultProps_1 {
|
|
10
|
+
let underline: string;
|
|
11
|
+
}
|
|
12
|
+
export { defaultProps_1 as defaultProps };
|
|
13
|
+
}
|
|
14
|
+
namespace MuiCardHeader {
|
|
15
|
+
export namespace defaultProps_2 {
|
|
16
|
+
namespace titleTypographyProps {
|
|
17
|
+
let variant: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export { defaultProps_2 as defaultProps };
|
|
21
|
+
export namespace styleOverrides {
|
|
22
|
+
namespace action {
|
|
23
|
+
let marginTop: string;
|
|
24
|
+
let marginRight: string;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
namespace MuiCard {
|
|
29
|
+
export namespace styleOverrides_1 {
|
|
30
|
+
namespace root {
|
|
31
|
+
let borderRadius: string;
|
|
32
|
+
let boxShadow: string;
|
|
33
|
+
let backgroundImage: string;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export { styleOverrides_1 as styleOverrides };
|
|
37
|
+
}
|
|
38
|
+
namespace MuiPaper {
|
|
39
|
+
export namespace styleOverrides_2 {
|
|
40
|
+
export namespace root_1 {
|
|
41
|
+
let backgroundImage_1: string;
|
|
42
|
+
export { backgroundImage_1 as backgroundImage };
|
|
43
|
+
}
|
|
44
|
+
export { root_1 as root };
|
|
45
|
+
}
|
|
46
|
+
export { styleOverrides_2 as styleOverrides };
|
|
47
|
+
}
|
|
48
|
+
namespace MuiPickersDay {
|
|
49
|
+
export namespace styleOverrides_3 {
|
|
50
|
+
namespace day {
|
|
51
|
+
let fontWeight: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export { styleOverrides_3 as styleOverrides };
|
|
55
|
+
}
|
|
56
|
+
namespace MuiPickersYear {
|
|
57
|
+
export namespace styleOverrides_4 {
|
|
58
|
+
export namespace root_2 {
|
|
59
|
+
let height: string;
|
|
60
|
+
}
|
|
61
|
+
export { root_2 as root };
|
|
62
|
+
}
|
|
63
|
+
export { styleOverrides_4 as styleOverrides };
|
|
64
|
+
}
|
|
65
|
+
namespace MuiPickersCalendar {
|
|
66
|
+
export namespace styleOverrides_5 {
|
|
67
|
+
namespace transitionContainer {
|
|
68
|
+
let marginTop_1: string;
|
|
69
|
+
export { marginTop_1 as marginTop };
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export { styleOverrides_5 as styleOverrides };
|
|
73
|
+
}
|
|
74
|
+
namespace MuiPickersCalendarHeader {
|
|
75
|
+
export namespace styleOverrides_6 {
|
|
76
|
+
let iconButton: {
|
|
77
|
+
backgroundColor: string;
|
|
78
|
+
"& > *": {
|
|
79
|
+
backgroundColor: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
namespace switchHeader {
|
|
83
|
+
let marginTop_2: string;
|
|
84
|
+
export { marginTop_2 as marginTop };
|
|
85
|
+
export let marginBottom: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export { styleOverrides_6 as styleOverrides };
|
|
89
|
+
}
|
|
90
|
+
namespace MuiPickersClock {
|
|
91
|
+
export namespace styleOverrides_7 {
|
|
92
|
+
namespace container {
|
|
93
|
+
let margin: string;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export { styleOverrides_7 as styleOverrides };
|
|
97
|
+
}
|
|
98
|
+
namespace MuiPickersClockNumber {
|
|
99
|
+
export namespace styleOverrides_8 {
|
|
100
|
+
namespace clockNumber {
|
|
101
|
+
export let left: string;
|
|
102
|
+
export let width: string;
|
|
103
|
+
let height_1: string;
|
|
104
|
+
export { height_1 as height };
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export { styleOverrides_8 as styleOverrides };
|
|
108
|
+
}
|
|
109
|
+
namespace MuiPickerDTHeader {
|
|
110
|
+
export namespace styleOverrides_9 {
|
|
111
|
+
let dateHeader: {
|
|
112
|
+
"& h4": {
|
|
113
|
+
fontSize: string;
|
|
114
|
+
fontWeight: number;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
let timeHeader: {
|
|
118
|
+
"& h3": {
|
|
119
|
+
fontSize: string;
|
|
120
|
+
fontWeight: number;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export { styleOverrides_9 as styleOverrides };
|
|
125
|
+
}
|
|
126
|
+
namespace MuiPickersTimePicker {
|
|
127
|
+
export namespace styleOverrides_10 {
|
|
128
|
+
let hourMinuteLabel: {
|
|
129
|
+
"& h2": {
|
|
130
|
+
fontSize: string;
|
|
131
|
+
fontWeight: number;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export { styleOverrides_10 as styleOverrides };
|
|
136
|
+
}
|
|
137
|
+
namespace MuiPickersToolbar {
|
|
138
|
+
export namespace styleOverrides_11 {
|
|
139
|
+
let toolbar: {
|
|
140
|
+
"& h4": {
|
|
141
|
+
fontSize: string;
|
|
142
|
+
fontWeight: number;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export { styleOverrides_11 as styleOverrides };
|
|
147
|
+
}
|
|
148
|
+
namespace MuiChip {
|
|
149
|
+
export namespace styleOverrides_12 {
|
|
150
|
+
export namespace root_3 {
|
|
151
|
+
let borderRadius_1: string;
|
|
152
|
+
export { borderRadius_1 as borderRadius };
|
|
153
|
+
}
|
|
154
|
+
export { root_3 as root };
|
|
155
|
+
}
|
|
156
|
+
export { styleOverrides_12 as styleOverrides };
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const components = {
|
|
4
|
+
MuiButtonBase: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
disableRipple: true,
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
MuiLink: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
underline: "hover",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
MuiCardHeader: {
|
|
15
|
+
defaultProps: {
|
|
16
|
+
titleTypographyProps: {
|
|
17
|
+
variant: "h6",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
styleOverrides: {
|
|
21
|
+
action: {
|
|
22
|
+
marginTop: "-4px",
|
|
23
|
+
marginRight: "-4px",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
MuiCard: {
|
|
28
|
+
styleOverrides: {
|
|
29
|
+
root: {
|
|
30
|
+
borderRadius: "0px",
|
|
31
|
+
boxShadow: "0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%) !important",
|
|
32
|
+
backgroundImage: "none",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
MuiPaper: {
|
|
37
|
+
styleOverrides: {
|
|
38
|
+
root: {
|
|
39
|
+
backgroundImage: "none",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
MuiPickersDay: {
|
|
44
|
+
styleOverrides: {
|
|
45
|
+
day: {
|
|
46
|
+
fontWeight: "300",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
MuiPickersYear: {
|
|
51
|
+
styleOverrides: {
|
|
52
|
+
root: {
|
|
53
|
+
height: "64px",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
MuiPickersCalendar: {
|
|
58
|
+
styleOverrides: {
|
|
59
|
+
transitionContainer: {
|
|
60
|
+
marginTop: "6px",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
MuiPickersCalendarHeader: {
|
|
65
|
+
styleOverrides: {
|
|
66
|
+
iconButton: {
|
|
67
|
+
backgroundColor: "transparent",
|
|
68
|
+
"& > *": {
|
|
69
|
+
backgroundColor: "transparent",
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
switchHeader: {
|
|
73
|
+
marginTop: "2px",
|
|
74
|
+
marginBottom: "4px",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
MuiPickersClock: {
|
|
79
|
+
styleOverrides: {
|
|
80
|
+
container: {
|
|
81
|
+
margin: `32px 0 4px`,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
MuiPickersClockNumber: {
|
|
86
|
+
styleOverrides: {
|
|
87
|
+
clockNumber: {
|
|
88
|
+
left: `calc(50% - 16px)`,
|
|
89
|
+
width: "32px",
|
|
90
|
+
height: "32px",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
MuiPickerDTHeader: {
|
|
95
|
+
styleOverrides: {
|
|
96
|
+
dateHeader: {
|
|
97
|
+
"& h4": {
|
|
98
|
+
fontSize: "2.125rem",
|
|
99
|
+
fontWeight: 400,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
timeHeader: {
|
|
103
|
+
"& h3": {
|
|
104
|
+
fontSize: "3rem",
|
|
105
|
+
fontWeight: 400,
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
MuiPickersTimePicker: {
|
|
111
|
+
styleOverrides: {
|
|
112
|
+
hourMinuteLabel: {
|
|
113
|
+
"& h2": {
|
|
114
|
+
fontSize: "3.75rem",
|
|
115
|
+
fontWeight: 300,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
MuiPickersToolbar: {
|
|
121
|
+
styleOverrides: {
|
|
122
|
+
toolbar: {
|
|
123
|
+
"& h4": {
|
|
124
|
+
fontSize: "2.125rem",
|
|
125
|
+
fontWeight: 400,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
MuiChip: {
|
|
131
|
+
styleOverrides: {
|
|
132
|
+
root: {
|
|
133
|
+
borderRadius: "16px",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
exports.default = components;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
require("@mui/lab/themeAugmentation");
|
|
7
|
+
const styles_1 = require("@mui/material/styles");
|
|
8
|
+
const variants_1 = __importDefault(require("./variants"));
|
|
9
|
+
const typography_1 = __importDefault(require("./typography"));
|
|
10
|
+
const breakpoints_1 = __importDefault(require("./breakpoints"));
|
|
11
|
+
const components_1 = __importDefault(require("./components"));
|
|
12
|
+
const shadows_1 = __importDefault(require("./shadows"));
|
|
13
|
+
const createTheme = (name) => {
|
|
14
|
+
let themeConfig = variants_1.default.find((variant) => variant.name === name);
|
|
15
|
+
if (!themeConfig) {
|
|
16
|
+
console.warn(new Error(`The theme ${name} is not valid`));
|
|
17
|
+
themeConfig = variants_1.default[0];
|
|
18
|
+
}
|
|
19
|
+
const componentsStyled = Object.assign(Object.assign({}, components_1.default), { MuiButton: {
|
|
20
|
+
variants: [
|
|
21
|
+
{
|
|
22
|
+
props: { variant: "outlined-filled" },
|
|
23
|
+
style: {
|
|
24
|
+
border: "1px solid #CCC",
|
|
25
|
+
color: themeConfig.palette.secondary.main,
|
|
26
|
+
backgroundColor: themeConfig.palette.background.paper,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
}, MuiMenu: {
|
|
31
|
+
styleOverrides: {
|
|
32
|
+
paper: {
|
|
33
|
+
minWidth: 150,
|
|
34
|
+
backgroundColor: themeConfig.palette.menu.background,
|
|
35
|
+
border: `1px solid ${themeConfig.name === "DARK"
|
|
36
|
+
? "rgba(255, 255, 255, 0.12)"
|
|
37
|
+
: "rgba(0, 0, 0, 0.12)"}`,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
} });
|
|
41
|
+
return (0, styles_1.createTheme)({
|
|
42
|
+
spacing: 4,
|
|
43
|
+
breakpoints: breakpoints_1.default,
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
components: componentsStyled,
|
|
46
|
+
typography: typography_1.default,
|
|
47
|
+
palette: themeConfig.palette,
|
|
48
|
+
zIndex: {
|
|
49
|
+
mobileStepper: 1800,
|
|
50
|
+
fab: 1801,
|
|
51
|
+
speedDial: 1802,
|
|
52
|
+
appBar: 1803,
|
|
53
|
+
modal: 1501,
|
|
54
|
+
snackbar: 1806,
|
|
55
|
+
tooltip: 1807,
|
|
56
|
+
},
|
|
57
|
+
}, {
|
|
58
|
+
name: themeConfig.name,
|
|
59
|
+
header: themeConfig.header,
|
|
60
|
+
footer: themeConfig.footer,
|
|
61
|
+
sidebar: themeConfig.sidebar,
|
|
62
|
+
scrollbar: themeConfig.scrollbar,
|
|
63
|
+
mfBorder: themeConfig.mfBorder,
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
exports.default = createTheme;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function createShadow() {
|
|
4
|
+
return `box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);`;
|
|
5
|
+
}
|
|
6
|
+
const shadows = [
|
|
7
|
+
"none",
|
|
8
|
+
createShadow(),
|
|
9
|
+
createShadow(),
|
|
10
|
+
createShadow(),
|
|
11
|
+
createShadow(),
|
|
12
|
+
createShadow(),
|
|
13
|
+
createShadow(),
|
|
14
|
+
createShadow(),
|
|
15
|
+
createShadow(),
|
|
16
|
+
createShadow(),
|
|
17
|
+
createShadow(),
|
|
18
|
+
createShadow(),
|
|
19
|
+
createShadow(),
|
|
20
|
+
createShadow(),
|
|
21
|
+
createShadow(),
|
|
22
|
+
createShadow(),
|
|
23
|
+
createShadow(),
|
|
24
|
+
createShadow(),
|
|
25
|
+
createShadow(),
|
|
26
|
+
createShadow(),
|
|
27
|
+
createShadow(),
|
|
28
|
+
createShadow(),
|
|
29
|
+
createShadow(),
|
|
30
|
+
createShadow(),
|
|
31
|
+
createShadow(),
|
|
32
|
+
];
|
|
33
|
+
exports.default = shadows;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export default typography;
|
|
2
|
+
declare namespace typography {
|
|
3
|
+
let fontFamily: string;
|
|
4
|
+
let fontSize: number;
|
|
5
|
+
let fontWeightLight: number;
|
|
6
|
+
let fontWeightRegular: number;
|
|
7
|
+
let fontWeightMedium: number;
|
|
8
|
+
let fontWeightBold: number;
|
|
9
|
+
namespace h1 {
|
|
10
|
+
let fontSize_1: string;
|
|
11
|
+
export { fontSize_1 as fontSize };
|
|
12
|
+
export let fontWeight: number;
|
|
13
|
+
export let lineHeight: number;
|
|
14
|
+
}
|
|
15
|
+
namespace h2 {
|
|
16
|
+
let fontSize_2: string;
|
|
17
|
+
export { fontSize_2 as fontSize };
|
|
18
|
+
let fontWeight_1: number;
|
|
19
|
+
export { fontWeight_1 as fontWeight };
|
|
20
|
+
let lineHeight_1: number;
|
|
21
|
+
export { lineHeight_1 as lineHeight };
|
|
22
|
+
}
|
|
23
|
+
namespace h3 {
|
|
24
|
+
let fontSize_3: string;
|
|
25
|
+
export { fontSize_3 as fontSize };
|
|
26
|
+
let fontWeight_2: number;
|
|
27
|
+
export { fontWeight_2 as fontWeight };
|
|
28
|
+
let lineHeight_2: number;
|
|
29
|
+
export { lineHeight_2 as lineHeight };
|
|
30
|
+
}
|
|
31
|
+
namespace h4 {
|
|
32
|
+
let fontSize_4: string;
|
|
33
|
+
export { fontSize_4 as fontSize };
|
|
34
|
+
let fontWeight_3: number;
|
|
35
|
+
export { fontWeight_3 as fontWeight };
|
|
36
|
+
let lineHeight_3: number;
|
|
37
|
+
export { lineHeight_3 as lineHeight };
|
|
38
|
+
}
|
|
39
|
+
namespace h5 {
|
|
40
|
+
let fontSize_5: string;
|
|
41
|
+
export { fontSize_5 as fontSize };
|
|
42
|
+
let fontWeight_4: number;
|
|
43
|
+
export { fontWeight_4 as fontWeight };
|
|
44
|
+
let lineHeight_4: number;
|
|
45
|
+
export { lineHeight_4 as lineHeight };
|
|
46
|
+
}
|
|
47
|
+
namespace h6 {
|
|
48
|
+
let fontSize_6: string;
|
|
49
|
+
export { fontSize_6 as fontSize };
|
|
50
|
+
let fontWeight_5: number;
|
|
51
|
+
export { fontWeight_5 as fontWeight };
|
|
52
|
+
let lineHeight_5: number;
|
|
53
|
+
export { lineHeight_5 as lineHeight };
|
|
54
|
+
}
|
|
55
|
+
namespace body1 {
|
|
56
|
+
let fontSize_7: number;
|
|
57
|
+
export { fontSize_7 as fontSize };
|
|
58
|
+
}
|
|
59
|
+
namespace button {
|
|
60
|
+
let textTransform: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const typography = {
|
|
4
|
+
fontFamily: [
|
|
5
|
+
"Inter",
|
|
6
|
+
"-apple-system",
|
|
7
|
+
"BlinkMacSystemFont",
|
|
8
|
+
'"Segoe UI"',
|
|
9
|
+
"Roboto",
|
|
10
|
+
'"Helvetica Neue"',
|
|
11
|
+
"Arial",
|
|
12
|
+
"sans-serif",
|
|
13
|
+
'"Apple Color Emoji"',
|
|
14
|
+
'"Segoe UI Emoji"',
|
|
15
|
+
'"Segoe UI Symbol"',
|
|
16
|
+
].join(","),
|
|
17
|
+
fontSize: 13,
|
|
18
|
+
fontWeightLight: 300,
|
|
19
|
+
fontWeightRegular: 400,
|
|
20
|
+
fontWeightMedium: 500,
|
|
21
|
+
fontWeightBold: 600,
|
|
22
|
+
h1: {
|
|
23
|
+
fontSize: "2rem",
|
|
24
|
+
fontWeight: 600,
|
|
25
|
+
lineHeight: 1.25,
|
|
26
|
+
},
|
|
27
|
+
h2: {
|
|
28
|
+
fontSize: "1.75rem",
|
|
29
|
+
fontWeight: 600,
|
|
30
|
+
lineHeight: 1.25,
|
|
31
|
+
},
|
|
32
|
+
h3: {
|
|
33
|
+
fontSize: "1.5rem",
|
|
34
|
+
fontWeight: 600,
|
|
35
|
+
lineHeight: 1.25,
|
|
36
|
+
},
|
|
37
|
+
h4: {
|
|
38
|
+
fontSize: "1.125rem",
|
|
39
|
+
fontWeight: 500,
|
|
40
|
+
lineHeight: 1.25,
|
|
41
|
+
},
|
|
42
|
+
h5: {
|
|
43
|
+
fontSize: "1.0625rem",
|
|
44
|
+
fontWeight: 500,
|
|
45
|
+
lineHeight: 1.25,
|
|
46
|
+
},
|
|
47
|
+
h6: {
|
|
48
|
+
fontSize: "1rem",
|
|
49
|
+
fontWeight: 500,
|
|
50
|
+
lineHeight: 1.25,
|
|
51
|
+
},
|
|
52
|
+
body1: {
|
|
53
|
+
fontSize: 13,
|
|
54
|
+
},
|
|
55
|
+
button: {
|
|
56
|
+
textTransform: "none",
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
exports.default = typography;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export namespace THEMES {
|
|
2
|
+
let DEFAULT: string;
|
|
3
|
+
let DARK: string;
|
|
4
|
+
let LIGHT: string;
|
|
5
|
+
}
|
|
6
|
+
export default variants;
|
|
7
|
+
declare const variants: {
|
|
8
|
+
name: string;
|
|
9
|
+
palette: {
|
|
10
|
+
mode: string;
|
|
11
|
+
primary: {
|
|
12
|
+
main: string;
|
|
13
|
+
contrastText: string;
|
|
14
|
+
};
|
|
15
|
+
secondary: {
|
|
16
|
+
main: string;
|
|
17
|
+
contrastText: string;
|
|
18
|
+
};
|
|
19
|
+
third: {
|
|
20
|
+
main: string;
|
|
21
|
+
contrastText: string;
|
|
22
|
+
};
|
|
23
|
+
fourth: {
|
|
24
|
+
main: string;
|
|
25
|
+
contrastText: string;
|
|
26
|
+
};
|
|
27
|
+
background: {
|
|
28
|
+
default: string;
|
|
29
|
+
paper: string;
|
|
30
|
+
alt: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
gradient: string;
|
|
33
|
+
};
|
|
34
|
+
menu: {
|
|
35
|
+
background: string;
|
|
36
|
+
};
|
|
37
|
+
signature: {
|
|
38
|
+
penColor: string;
|
|
39
|
+
borderColor: string;
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
};
|
|
42
|
+
text: {
|
|
43
|
+
primary: string;
|
|
44
|
+
secondary: string;
|
|
45
|
+
};
|
|
46
|
+
input: {
|
|
47
|
+
background: string;
|
|
48
|
+
border: string;
|
|
49
|
+
borderHover: string;
|
|
50
|
+
borderFocus: string;
|
|
51
|
+
borderError: string;
|
|
52
|
+
borderDisabled: string;
|
|
53
|
+
text: string;
|
|
54
|
+
textDisabled: string;
|
|
55
|
+
placeholder: string;
|
|
56
|
+
};
|
|
57
|
+
textArea: {
|
|
58
|
+
background: string;
|
|
59
|
+
border: string;
|
|
60
|
+
borderHover: string;
|
|
61
|
+
borderFocus: string;
|
|
62
|
+
borderError: string;
|
|
63
|
+
borderDisabled: string;
|
|
64
|
+
text: string;
|
|
65
|
+
textDisabled: string;
|
|
66
|
+
placeholder: string;
|
|
67
|
+
};
|
|
68
|
+
dataGrid: {
|
|
69
|
+
hover: string;
|
|
70
|
+
};
|
|
71
|
+
action: {
|
|
72
|
+
hover: string;
|
|
73
|
+
};
|
|
74
|
+
divider: string;
|
|
75
|
+
};
|
|
76
|
+
header: {
|
|
77
|
+
color: string;
|
|
78
|
+
background: string;
|
|
79
|
+
search: {
|
|
80
|
+
color: string;
|
|
81
|
+
};
|
|
82
|
+
indicator: {
|
|
83
|
+
background: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
footer: {
|
|
87
|
+
color: string;
|
|
88
|
+
background: string;
|
|
89
|
+
};
|
|
90
|
+
sidebar: {
|
|
91
|
+
color: string;
|
|
92
|
+
background: string;
|
|
93
|
+
active: string;
|
|
94
|
+
header: {
|
|
95
|
+
color: string;
|
|
96
|
+
background: string;
|
|
97
|
+
brand: {
|
|
98
|
+
color: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
badge: {
|
|
102
|
+
color: string;
|
|
103
|
+
background: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
scrollbar: {
|
|
107
|
+
track: string;
|
|
108
|
+
thumb: string;
|
|
109
|
+
thumbHover: string;
|
|
110
|
+
};
|
|
111
|
+
mfBorder: {
|
|
112
|
+
primary: string;
|
|
113
|
+
secondary: string;
|
|
114
|
+
};
|
|
115
|
+
zIndex: {
|
|
116
|
+
snackbar: number;
|
|
117
|
+
};
|
|
118
|
+
}[];
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.THEMES = void 0;
|
|
7
|
+
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
8
|
+
// Themes
|
|
9
|
+
exports.THEMES = {
|
|
10
|
+
DEFAULT: "DEFAULT",
|
|
11
|
+
DARK: "DARK",
|
|
12
|
+
LIGHT: "LIGHT",
|
|
13
|
+
};
|
|
14
|
+
const customBlue = {
|
|
15
|
+
50: "#e9f0fb",
|
|
16
|
+
100: "#c8daf4",
|
|
17
|
+
200: "#a3c1ed",
|
|
18
|
+
300: "#7ea8e5",
|
|
19
|
+
400: "#6395e0",
|
|
20
|
+
500: "#4782da",
|
|
21
|
+
600: "#407ad6",
|
|
22
|
+
700: "#376fd0",
|
|
23
|
+
800: "#2f65cb",
|
|
24
|
+
900: "#2052c2 ",
|
|
25
|
+
};
|
|
26
|
+
const defaultVariant = {
|
|
27
|
+
name: exports.THEMES.DEFAULT,
|
|
28
|
+
palette: {
|
|
29
|
+
mode: "light",
|
|
30
|
+
primary: {
|
|
31
|
+
main: customBlue[700],
|
|
32
|
+
contrastText: "#FFF",
|
|
33
|
+
},
|
|
34
|
+
secondary: {
|
|
35
|
+
main: "#FFF",
|
|
36
|
+
contrastText: "#000",
|
|
37
|
+
},
|
|
38
|
+
third: {
|
|
39
|
+
main: "#000",
|
|
40
|
+
contrastText: "#FFF",
|
|
41
|
+
},
|
|
42
|
+
fourth: {
|
|
43
|
+
main: "#ff4500",
|
|
44
|
+
contrastText: "#FFF",
|
|
45
|
+
},
|
|
46
|
+
background: {
|
|
47
|
+
default: "#FFF",
|
|
48
|
+
paper: "#FFF",
|
|
49
|
+
alt: "#ededed",
|
|
50
|
+
secondary: "#f0f0f0",
|
|
51
|
+
gradient: "linear-gradient(#FFFFFF 0%, #ccdcf9 50%)",
|
|
52
|
+
},
|
|
53
|
+
menu: {
|
|
54
|
+
background: "#FFF",
|
|
55
|
+
},
|
|
56
|
+
signature: {
|
|
57
|
+
penColor: "#000000",
|
|
58
|
+
borderColor: "#444444",
|
|
59
|
+
backgroundColor: "",
|
|
60
|
+
},
|
|
61
|
+
text: {
|
|
62
|
+
primary: "rgba(0, 0, 0, 0.95)",
|
|
63
|
+
secondary: "rgba(0, 0, 0, 0.75)",
|
|
64
|
+
},
|
|
65
|
+
input: {
|
|
66
|
+
background: "#fbfbfb",
|
|
67
|
+
border: "rgba(0, 0, 0, 0.2)",
|
|
68
|
+
borderHover: "#BDBDBD",
|
|
69
|
+
borderFocus: "#BDBDBD",
|
|
70
|
+
borderError: "#F44336",
|
|
71
|
+
borderDisabled: "#E0E0E0",
|
|
72
|
+
text: "#000",
|
|
73
|
+
textDisabled: "#6d6d6d",
|
|
74
|
+
placeholder: "#6d6d6d",
|
|
75
|
+
},
|
|
76
|
+
textArea: {
|
|
77
|
+
background: "#f1f1f4",
|
|
78
|
+
border: "rgba(0, 0, 0, 0.2)",
|
|
79
|
+
borderHover: "#BDBDBD",
|
|
80
|
+
borderFocus: "#BDBDBD",
|
|
81
|
+
borderError: "#F44336",
|
|
82
|
+
borderDisabled: "#E0E0E0",
|
|
83
|
+
text: "#000",
|
|
84
|
+
textDisabled: "#9E9E9E",
|
|
85
|
+
placeholder: "#9E9E9E",
|
|
86
|
+
},
|
|
87
|
+
dataGrid: {
|
|
88
|
+
hover: "#efefef",
|
|
89
|
+
},
|
|
90
|
+
action: {
|
|
91
|
+
hover: "rgba(0, 0, 0, 0.1)",
|
|
92
|
+
},
|
|
93
|
+
divider: "rgba(0, 0, 0, 0.3)",
|
|
94
|
+
},
|
|
95
|
+
header: {
|
|
96
|
+
color: "rgba(0, 0, 0, 0.95)",
|
|
97
|
+
background: "#FFF",
|
|
98
|
+
search: {
|
|
99
|
+
color: "rgba(0, 0, 0, 0.6)",
|
|
100
|
+
},
|
|
101
|
+
indicator: {
|
|
102
|
+
background: customBlue[600],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
footer: {
|
|
106
|
+
color: "rgba(0, 0, 0, 0.6)",
|
|
107
|
+
background: "#FFF",
|
|
108
|
+
},
|
|
109
|
+
sidebar: {
|
|
110
|
+
color: "rgba(0, 0, 0, 0.95)",
|
|
111
|
+
background: "#233044",
|
|
112
|
+
active: "#455466",
|
|
113
|
+
header: {
|
|
114
|
+
color: "#FFF",
|
|
115
|
+
background: "#233044",
|
|
116
|
+
brand: {
|
|
117
|
+
color: customBlue[500],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
badge: {
|
|
121
|
+
color: "#FFF",
|
|
122
|
+
background: customBlue[500],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
scrollbar: {
|
|
126
|
+
track: "#f1f1f1",
|
|
127
|
+
thumb: "#DDD",
|
|
128
|
+
thumbHover: "#BBB",
|
|
129
|
+
},
|
|
130
|
+
mfBorder: {
|
|
131
|
+
primary: "#f1f1f1",
|
|
132
|
+
secondary: "#DDD",
|
|
133
|
+
},
|
|
134
|
+
zIndex: {
|
|
135
|
+
snackbar: 999999,
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
const darkVariant = (0, deepmerge_1.default)(defaultVariant, {
|
|
139
|
+
name: exports.THEMES.DARK,
|
|
140
|
+
palette: {
|
|
141
|
+
mode: "dark",
|
|
142
|
+
divider: "rgba(255, 255, 255, 0.15)",
|
|
143
|
+
action: {
|
|
144
|
+
hover: "rgba(255, 255, 255, 0.05)",
|
|
145
|
+
},
|
|
146
|
+
primary: {
|
|
147
|
+
main: customBlue[500],
|
|
148
|
+
contrastText: "#FFF",
|
|
149
|
+
},
|
|
150
|
+
secondary: {
|
|
151
|
+
main: "#3f3f3f",
|
|
152
|
+
contrastText: "#FFF",
|
|
153
|
+
},
|
|
154
|
+
background: {
|
|
155
|
+
default: "#222222",
|
|
156
|
+
paper: "#333333",
|
|
157
|
+
alt: "#1e1e1e",
|
|
158
|
+
secondary: "#303030",
|
|
159
|
+
gradient: "linear-gradient(#333333 0%, #1e1e1e 50%)",
|
|
160
|
+
},
|
|
161
|
+
menu: {
|
|
162
|
+
background: "#222222",
|
|
163
|
+
},
|
|
164
|
+
text: {
|
|
165
|
+
primary: "rgba(255, 255, 255, 0.95)",
|
|
166
|
+
secondary: "rgba(255, 255, 255, 0.6)",
|
|
167
|
+
},
|
|
168
|
+
divider: "rgba(255, 255, 255, 0.15)",
|
|
169
|
+
signature: {
|
|
170
|
+
penColor: "#eeeeee",
|
|
171
|
+
borderColor: "#999999",
|
|
172
|
+
backgroundColor: "rgba(60,60,60,1)",
|
|
173
|
+
},
|
|
174
|
+
input: {
|
|
175
|
+
background: "#272727",
|
|
176
|
+
border: "#ffffff1a",
|
|
177
|
+
borderHover: "#BDBDBD",
|
|
178
|
+
borderFocus: "#BDBDBD",
|
|
179
|
+
borderError: "#F44336",
|
|
180
|
+
borderDisabled: "#E0E0E0",
|
|
181
|
+
text: "#000",
|
|
182
|
+
textDisabled: "#6d6d6d",
|
|
183
|
+
placeholder: "#6d6d6d",
|
|
184
|
+
},
|
|
185
|
+
textArea: {
|
|
186
|
+
background: "#292929",
|
|
187
|
+
border: "rgba(255, 255, 255, 0.2)",
|
|
188
|
+
borderHover: "#BDBDBD",
|
|
189
|
+
borderFocus: "#BDBDBD",
|
|
190
|
+
borderError: "#F44336",
|
|
191
|
+
borderDisabled: "#E0E0E0",
|
|
192
|
+
text: "#000",
|
|
193
|
+
textDisabled: "#9E9E9E",
|
|
194
|
+
placeholder: "#9E9E9E",
|
|
195
|
+
},
|
|
196
|
+
dataGrid: {
|
|
197
|
+
hover: "#2f2f2f",
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
header: {
|
|
201
|
+
color: "rgba(255, 255, 255, 0.95)",
|
|
202
|
+
background: "#1B2635",
|
|
203
|
+
search: {
|
|
204
|
+
color: "rgba(255, 255, 255, 0.6)",
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
footer: {
|
|
208
|
+
color: "rgba(255, 255, 255, 0.6)",
|
|
209
|
+
background: "#222222",
|
|
210
|
+
},
|
|
211
|
+
sidebar: {
|
|
212
|
+
color: "rgba(255, 255, 255, 0.95)",
|
|
213
|
+
background: "#181818",
|
|
214
|
+
active: "#313131",
|
|
215
|
+
header: {
|
|
216
|
+
color: "#FFF",
|
|
217
|
+
background: "#181818",
|
|
218
|
+
brand: {
|
|
219
|
+
color: "#FFFFFF",
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
scrollbar: {
|
|
224
|
+
thumb: "#3f3f3f",
|
|
225
|
+
track: "#252525",
|
|
226
|
+
thumbHover: "#151515",
|
|
227
|
+
},
|
|
228
|
+
mfBorder: {
|
|
229
|
+
primary: "#3f3f3f",
|
|
230
|
+
secondary: "#252525",
|
|
231
|
+
},
|
|
232
|
+
});
|
|
233
|
+
const variants = [defaultVariant, darkVariant];
|
|
234
|
+
exports.default = variants;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monolith-forensics/monolith-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Matt Danner (Monolith Forensics LLC)",
|
|
@@ -18,10 +18,15 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@floating-ui/react": "^0.26.16",
|
|
20
20
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
21
|
+
"@radix-ui/react-switch": "^1.0.7",
|
|
21
22
|
"deepmerge": "^4.3.1",
|
|
22
23
|
"lucide-react": "^0.378.0",
|
|
23
24
|
"react-textarea-autosize": "^8.5.3",
|
|
24
|
-
"styled-components": "^6.1.11"
|
|
25
|
+
"styled-components": "^6.1.11",
|
|
26
|
+
"use-debounce": "^10.0.0",
|
|
27
|
+
"react-dropzone": "^14.2.3",
|
|
28
|
+
"moment": "^2.29.1",
|
|
29
|
+
"@mui/icons-material": "^5.11.0"
|
|
25
30
|
},
|
|
26
31
|
"peerDependencies": {
|
|
27
32
|
"react": "18.2.0"
|