@monolith-forensics/monolith-ui 1.1.29 → 1.1.31

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.
Files changed (67) hide show
  1. package/dist/Button/Button.js +327 -0
  2. package/dist/Button/index.js +1 -0
  3. package/dist/Calendar/Calendar.js +204 -0
  4. package/dist/Calendar/CalendarStyles.js +164 -0
  5. package/dist/Calendar/calendarHelpers.js +169 -0
  6. package/dist/Calendar/index.js +1 -0
  7. package/dist/CheckBox/CheckBox.js +41 -0
  8. package/dist/CheckBox/index.js +1 -0
  9. package/dist/DateInput/DateInput.js +504 -0
  10. package/dist/DateInput/index.js +1 -0
  11. package/dist/DropDownMenu/DropDownMenu.js +208 -0
  12. package/dist/DropDownMenu/index.js +1 -0
  13. package/dist/Error/Error.js +33 -0
  14. package/dist/Error/index.js +1 -0
  15. package/dist/FieldLabel/FieldLabel.js +90 -0
  16. package/dist/FieldLabel/index.js +1 -0
  17. package/dist/FileInputField/FileInputField.js +112 -0
  18. package/dist/FileInputField/index.js +1 -0
  19. package/dist/Flyout/Flyout.js +106 -0
  20. package/dist/Flyout/FlyoutHeader.js +7 -0
  21. package/dist/Flyout/FlyoutTitle.js +8 -0
  22. package/dist/Flyout/index.js +3 -0
  23. package/dist/FormSection/FormSection.js +46 -0
  24. package/dist/FormSection/index.js +1 -0
  25. package/dist/Grid/Grid.js +13 -0
  26. package/dist/Grid/index.js +1 -0
  27. package/dist/IconButton/IconButton.js +25 -0
  28. package/dist/IconButton/index.js +1 -0
  29. package/dist/Input/Input.js +144 -0
  30. package/dist/Input/index.js +1 -0
  31. package/dist/Modal/Modal.js +105 -0
  32. package/dist/Modal/index.js +1 -0
  33. package/dist/MonolithUIProvider/GlobalStyle.js +51 -0
  34. package/dist/MonolithUIProvider/MonolithUIProvider.js +23 -0
  35. package/dist/MonolithUIProvider/index.js +3 -0
  36. package/dist/MonolithUIProvider/useMonolithUITheme.js +10 -0
  37. package/dist/Pill/Pill.js +147 -0
  38. package/dist/Pill/index.js +1 -0
  39. package/dist/SelectBox/SelectBox.js +471 -0
  40. package/dist/SelectBox/index.js +1 -0
  41. package/dist/Switch/Switch.js +129 -0
  42. package/dist/Switch/index.js +1 -0
  43. package/dist/Table/Table.js +707 -0
  44. package/dist/Table/index.js +2 -0
  45. package/dist/TagBox/TagBox.js +585 -0
  46. package/dist/TagBox/TagBoxStyles.js +107 -0
  47. package/dist/TagBox/index.js +1 -0
  48. package/dist/TextArea/TextArea.js +76 -0
  49. package/dist/TextArea/index.js +1 -0
  50. package/dist/TextAreaInput/TextAreaInput.js +9 -0
  51. package/dist/TextAreaInput/index.js +1 -0
  52. package/dist/TextInput/TextInput.js +26 -0
  53. package/dist/TextInput/index.js +1 -0
  54. package/dist/Tooltip/Tooltip.js +25 -0
  55. package/dist/Tooltip/index.js +1 -0
  56. package/dist/core/ArrowButton.js +43 -0
  57. package/dist/core/ClearButton.js +43 -0
  58. package/dist/core/StyledContent.js +42 -0
  59. package/dist/core/StyledFloatContainer.js +5 -0
  60. package/dist/core/Types/Size.js +1 -0
  61. package/dist/core/Types/Variant.js +1 -0
  62. package/dist/core/index.js +4 -0
  63. package/dist/index.js +26 -0
  64. package/dist/theme/index.js +9 -0
  65. package/dist/theme/typography.js +57 -0
  66. package/dist/theme/variants.js +270 -0
  67. package/package.json +1 -1
@@ -0,0 +1,76 @@
1
+ import styled from "styled-components";
2
+ import TextareaAutosize from "react-textarea-autosize";
3
+ const TextArea = styled(TextareaAutosize) `
4
+ outline: none;
5
+ resize: none;
6
+ padding: 10px;
7
+ width: 100%;
8
+ height: 100%;
9
+ box-sizing: border-box;
10
+
11
+ font-family: ${({ theme }) => theme.typography.fontFamily};
12
+ color: ${(props) => props.theme.palette.text.primary};
13
+ font-size: ${({ size }) => size === "xs"
14
+ ? "11px"
15
+ : size === "sm"
16
+ ? "13px"
17
+ : size === "md"
18
+ ? "15px"
19
+ : size === "lg"
20
+ ? "17px"
21
+ : size === "xl"
22
+ ? "19px"
23
+ : "13px"};
24
+
25
+ background-color: ${({ theme, variant }) => {
26
+ switch (variant) {
27
+ case "contained":
28
+ return theme.palette.input.background;
29
+ case "filled":
30
+ return theme.palette.input.background;
31
+ case "outlined":
32
+ return theme.palette.input.background;
33
+ case "text":
34
+ return "transparent";
35
+ default:
36
+ return theme.palette.input.background;
37
+ }
38
+ }};
39
+
40
+ border-radius: 4px;
41
+ transition: border 0.1s ease-in-out;
42
+ border: 1px solid
43
+ ${({ theme, variant }) => {
44
+ switch (variant) {
45
+ case "contained":
46
+ return "transparent";
47
+ case "filled":
48
+ return "transparent";
49
+ case "outlined":
50
+ return theme.palette.input.border;
51
+ case "text":
52
+ return "transparent";
53
+ default:
54
+ return theme.palette.input.border;
55
+ }
56
+ }};
57
+
58
+ &:focus {
59
+ border: 1px solid ${(props) => props.theme.palette.primary.main};
60
+ }
61
+
62
+ ::placeholder {
63
+ font-size: ${({ size }) => size === "xs"
64
+ ? "10px"
65
+ : size === "sm"
66
+ ? "12px"
67
+ : size === "md"
68
+ ? "14px"
69
+ : size === "lg"
70
+ ? "16px"
71
+ : size === "xl"
72
+ ? "18px"
73
+ : "12px"};
74
+ }
75
+ `;
76
+ export default TextArea;
@@ -0,0 +1 @@
1
+ export { default } from "./TextArea";
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { TextArea, FieldLabel } from "..";
3
+ const TextAreaInput = ({ label, error, required, colSpan = 1, size = "sm", description, inputRef = null, maxRows = 6, minRows = 3, onHeightChange, cacheMeasurements, style, }) => {
4
+ return (_jsxs("div", { style: {
5
+ gridColumn: `span ${colSpan}`,
6
+ height: "fit-content",
7
+ }, children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsx(TextArea, { ref: inputRef, size: size, maxRows: maxRows, minRows: minRows, onHeightChange: onHeightChange, cacheMeasurements: cacheMeasurements, style: style })] }));
8
+ };
9
+ export default TextAreaInput;
@@ -0,0 +1 @@
1
+ export { default } from "./TextAreaInput";
@@ -0,0 +1,26 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import styled from "styled-components";
14
+ import { FieldLabel } from "..";
15
+ import Input from "../Input/Input";
16
+ const TextInput = styled((_a) => {
17
+ var { className, label, error, required, colSpan = 1, description, size = "sm" } = _a, rest = __rest(_a, ["className", "label", "error", "required", "colSpan", "description", "size"]);
18
+ return (_jsxs("div", { className: className, children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsx(Input, Object.assign({ size: size }, rest))] }));
19
+ }) `
20
+ grid-column: span ${({ colSpan }) => colSpan || 1};
21
+ display: flex;
22
+ flex-direction: column;
23
+ justify-content: space-between;
24
+ width: 100%;
25
+ `;
26
+ export default TextInput;
@@ -0,0 +1 @@
1
+ export { default } from "./TextInput";
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styled from "styled-components";
3
+ import * as RadixTooltip from "@radix-ui/react-tooltip";
4
+ const Tooltip = styled(({ className, children, content, side = "right", sideOffset = 15, align = "start", delayDuration = 800, }) => {
5
+ if (!content)
6
+ return children;
7
+ return (_jsx(RadixTooltip.Provider, { delayDuration: delayDuration || 800, skipDelayDuration: 0, disableHoverableContent: true, children: _jsxs(RadixTooltip.Root, { children: [_jsx(RadixTooltip.Trigger, { asChild: true, children: children }), _jsx(RadixTooltip.Portal, { children: _jsx(RadixTooltip.Content, { className: className, side: side || "right", sideOffset: sideOffset || 15, align: align || "start", onClick: (e) => e.stopPropagation(), children: content }) })] }) }));
8
+ }) `
9
+ pointer-events: none;
10
+ z-index: 999999;
11
+ background-color: ${({ theme }) => theme.palette.background.default};
12
+ padding: 15px;
13
+ border-radius: 5px;
14
+ border: 1px solid ${({ theme }) => theme.palette.divider};
15
+ font-size: 0.75rem;
16
+
17
+ white-space: pre-wrap;
18
+
19
+ .title {
20
+ font-size: 0.85rem;
21
+ font-weight: 600;
22
+ margin-bottom: 5px;
23
+ }
24
+ `;
25
+ export default Tooltip;
@@ -0,0 +1 @@
1
+ export { default } from "./Tooltip";
@@ -0,0 +1,43 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { ChevronDownIcon } from "lucide-react";
14
+ import styled from "styled-components";
15
+ const ArrowIcon = styled((_a) => {
16
+ var { className } = _a, props = __rest(_a, ["className"]);
17
+ return (_jsx("div", Object.assign({ className: className }, props, { children: _jsx(ChevronDownIcon, { size: 16 }) })));
18
+ }) `
19
+ color: ${(props) => props.theme.palette.text.secondary};
20
+ transition: transform 0.2s ease-in-out;
21
+ transform: rotate(0deg);
22
+ will-change: transform;
23
+
24
+ display: flex;
25
+ flex-direction: column;
26
+ align-items: center;
27
+ justify-content: center;
28
+ `;
29
+ const ArrowButton = styled((_a) => {
30
+ var { className } = _a, props = __rest(_a, ["className"]);
31
+ return (_jsx("button", Object.assign({ className: className }, props, { tabIndex: -1, "data-default-btn": true, children: _jsx(ArrowIcon, {}) })));
32
+ }) `
33
+ position: absolute;
34
+ right: 0;
35
+ height: 100%;
36
+ padding-inline: 10px;
37
+ background: none;
38
+ border: none;
39
+ cursor: pointer;
40
+ margin: 0;
41
+ outline: none;
42
+ `;
43
+ export default ArrowButton;
@@ -0,0 +1,43 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { X } from "lucide-react";
14
+ import styled from "styled-components";
15
+ const ClearIcon = styled((_a) => {
16
+ var { className } = _a, props = __rest(_a, ["className"]);
17
+ return (_jsx("div", Object.assign({ className: className }, props, { children: _jsx(X, { size: 16 }) })));
18
+ }) `
19
+ color: ${(props) => props.theme.palette.text.secondary};
20
+ transition: transform 0.2s ease-in-out;
21
+ transform: rotate(0deg);
22
+ will-change: transform;
23
+
24
+ display: flex;
25
+ flex-direction: column;
26
+ align-items: center;
27
+ justify-content: center;
28
+ `;
29
+ const ClearButton = styled((_a) => {
30
+ var { className } = _a, props = __rest(_a, ["className"]);
31
+ return (_jsx("button", Object.assign({ className: className }, props, { tabIndex: -1, "data-default-btn": true, children: _jsx(ClearIcon, {}) })));
32
+ }) `
33
+ position: absolute;
34
+ right: 0;
35
+ height: 100%;
36
+ padding-inline: 10px;
37
+ background: none;
38
+ border: none;
39
+ cursor: pointer;
40
+ margin: 0;
41
+ outline: none;
42
+ `;
43
+ export default ClearButton;
@@ -0,0 +1,42 @@
1
+ import styled from "styled-components";
2
+ const StyledContent = styled.div `
3
+ position: relative;
4
+ display: flex;
5
+ flex-direction: column;
6
+ box-sizing: border-box;
7
+ overflow-y: hidden;
8
+ overflow-x: hidden;
9
+
10
+ max-height: ${({ maxDropdownHeight }) => Number.isInteger(maxDropdownHeight)
11
+ ? `${maxDropdownHeight}px`
12
+ : maxDropdownHeight || "250px"};
13
+
14
+ background-color: ${({ theme, variant }) => {
15
+ switch (variant) {
16
+ case "filled":
17
+ return theme.palette.input.background;
18
+ case "outlined":
19
+ return theme.palette.input.background;
20
+ case "text":
21
+ return "transparent";
22
+ default:
23
+ return theme.palette.input.background;
24
+ }
25
+ }};
26
+
27
+ border-radius: 5px;
28
+ border: 1px solid ${(props) => props.theme.palette.divider};
29
+ padding: 5px;
30
+ animation-duration: 400ms;
31
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
32
+ will-change: transform, opacity;
33
+
34
+ &[data-empty="true"] {
35
+ display: none;
36
+ }
37
+
38
+ &[data-scroll-active="true"] {
39
+ padding-right: 5px;
40
+ }
41
+ `;
42
+ export default StyledContent;
@@ -0,0 +1,5 @@
1
+ import styled from "styled-components";
2
+ const StyledFloatContainer = styled.div `
3
+ z-index: 100001;
4
+ `;
5
+ export default StyledFloatContainer;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export { default as StyledContent } from "./StyledContent";
2
+ export { default as StyledFloatContainer } from "./StyledFloatContainer";
3
+ export { default as ArrowButton } from "./ArrowButton";
4
+ export { default as ClearButton } from "./ClearButton";
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
1
+ export { default as FormSection } from "./FormSection";
2
+ export { default as Grid } from "./Grid";
3
+ export { default as TextInput } from "./TextInput";
4
+ export { default as SelectBox } from "./SelectBox";
5
+ export { default as Button } from "./Button";
6
+ export { default as IconButton } from "./IconButton";
7
+ export { default as DropDownMenu } from "./DropDownMenu";
8
+ export { default as DateInput } from "./DateInput";
9
+ export { default as TextArea } from "./TextArea";
10
+ export { default as TextAreaInput } from "./TextAreaInput";
11
+ export { default as TagBox } from "./TagBox";
12
+ export { default as FieldLabel } from "./FieldLabel";
13
+ export { default as Modal } from "./Modal";
14
+ export { default as Flyout } from "./Flyout";
15
+ export { FlyoutHeader, FlyoutTitle } from "./Flyout";
16
+ export { default as FileInputField } from "./FileInputField";
17
+ export { default as Switch } from "./Switch";
18
+ export { default as CheckBox } from "./CheckBox";
19
+ export { default as Input } from "./Input";
20
+ export { default as Tooltip } from "./Tooltip";
21
+ export { default as Pill } from "./Pill";
22
+ export { default as Calendar } from "./Calendar";
23
+ export { default as Table } from "./Table";
24
+ export { Column } from "./Table";
25
+ export { default as MonolithUIProvider } from "./MonolithUIProvider";
26
+ export { useMonolithUITheme } from "./MonolithUIProvider";
@@ -0,0 +1,9 @@
1
+ import variants from "./variants";
2
+ const getTheme = (scheme) => {
3
+ let themeConfig = variants.find((variant) => variant.name === scheme);
4
+ if (!themeConfig) {
5
+ themeConfig = variants[0];
6
+ }
7
+ return themeConfig;
8
+ };
9
+ export default getTheme;
@@ -0,0 +1,57 @@
1
+ const typography = {
2
+ fontFamily: [
3
+ "Inter",
4
+ "-apple-system",
5
+ "BlinkMacSystemFont",
6
+ '"Segoe UI"',
7
+ "Roboto",
8
+ '"Helvetica Neue"',
9
+ "Arial",
10
+ "sans-serif",
11
+ '"Apple Color Emoji"',
12
+ '"Segoe UI Emoji"',
13
+ '"Segoe UI Symbol"',
14
+ ].join(","),
15
+ fontSize: 13,
16
+ fontWeightLight: 300,
17
+ fontWeightRegular: 400,
18
+ fontWeightMedium: 500,
19
+ fontWeightBold: 600,
20
+ h1: {
21
+ fontSize: "2rem",
22
+ fontWeight: 600,
23
+ lineHeight: 1.25,
24
+ },
25
+ h2: {
26
+ fontSize: "1.75rem",
27
+ fontWeight: 600,
28
+ lineHeight: 1.25,
29
+ },
30
+ h3: {
31
+ fontSize: "1.5rem",
32
+ fontWeight: 600,
33
+ lineHeight: 1.25,
34
+ },
35
+ h4: {
36
+ fontSize: "1.125rem",
37
+ fontWeight: 500,
38
+ lineHeight: 1.25,
39
+ },
40
+ h5: {
41
+ fontSize: "1.0625rem",
42
+ fontWeight: 500,
43
+ lineHeight: 1.25,
44
+ },
45
+ h6: {
46
+ fontSize: "1rem",
47
+ fontWeight: 500,
48
+ lineHeight: 1.25,
49
+ },
50
+ body1: {
51
+ fontSize: 13,
52
+ },
53
+ button: {
54
+ textTransform: "none",
55
+ },
56
+ };
57
+ export default typography;
@@ -0,0 +1,270 @@
1
+ import merge from "deepmerge";
2
+ import typography from "./typography";
3
+ // Themes
4
+ export const THEMES = {
5
+ DARK: "dark",
6
+ LIGHT: "light",
7
+ };
8
+ const customBlue = {
9
+ 50: "#e9f0fb",
10
+ 100: "#c8daf4",
11
+ 200: "#a3c1ed",
12
+ 300: "#7ea8e5",
13
+ 400: "#6395e0",
14
+ 500: "#4782da",
15
+ 600: "#407ad6",
16
+ 700: "#376fd0",
17
+ 800: "#2f65cb",
18
+ 900: "#2052c2 ",
19
+ };
20
+ const grey = {
21
+ 50: "#FAFAFA",
22
+ 100: "#F5F5F5",
23
+ 200: "#EEEEEE",
24
+ 300: "#E0E0E0",
25
+ 400: "#BDBDBD",
26
+ 500: "#9E9E9E",
27
+ 600: "#757575",
28
+ 700: "#616161",
29
+ 800: "#424242",
30
+ 900: "#212121",
31
+ };
32
+ const green = {
33
+ 50: "#e8f5e9",
34
+ 100: "#c8e6c9",
35
+ 200: "#a5d6a7",
36
+ 300: "#81c784",
37
+ 400: "#66bb6a",
38
+ 500: "#4caf50",
39
+ 600: "#43a047",
40
+ 700: "#388e3c",
41
+ 800: "#2e7d32",
42
+ 900: "#1b5e20",
43
+ };
44
+ const lightVariant = {
45
+ name: THEMES.LIGHT,
46
+ typography,
47
+ palette: {
48
+ mode: "light",
49
+ primary: {
50
+ main: customBlue[700],
51
+ contrastText: "#FFF",
52
+ },
53
+ error: {
54
+ main: "#f44336",
55
+ contrastText: "#FFF",
56
+ },
57
+ secondary: {
58
+ main: "#FFF",
59
+ contrastText: "#000",
60
+ },
61
+ third: {
62
+ main: "#000",
63
+ contrastText: "#FFF",
64
+ },
65
+ fourth: {
66
+ main: "#ff4500",
67
+ contrastText: "#FFF",
68
+ },
69
+ background: {
70
+ default: "#FFF",
71
+ paper: "#FFF",
72
+ alt: "#ededed",
73
+ secondary: "#f0f0f0",
74
+ gradient: "linear-gradient(#FFFFFF 0%, #ccdcf9 50%)",
75
+ },
76
+ menu: {
77
+ background: "#FFF",
78
+ },
79
+ signature: {
80
+ penColor: "#000000",
81
+ borderColor: "#444444",
82
+ backgroundColor: "",
83
+ },
84
+ text: {
85
+ primary: "rgba(0, 0, 0, 0.95)",
86
+ secondary: "rgba(0, 0, 0, 0.75)",
87
+ },
88
+ input: {
89
+ background: "#fff",
90
+ border: "rgba(0, 0, 0, 0.3)",
91
+ borderHover: "#BDBDBD",
92
+ borderFocus: "#BDBDBD",
93
+ borderError: "#F44336",
94
+ borderDisabled: "#E0E0E0",
95
+ text: "#000",
96
+ textDisabled: "#6d6d6d",
97
+ placeholder: "#6d6d6d",
98
+ },
99
+ textArea: {
100
+ background: "#f1f1f4",
101
+ border: "rgba(0, 0, 0, 0.2)",
102
+ borderHover: "#BDBDBD",
103
+ borderFocus: "#BDBDBD",
104
+ borderError: "#F44336",
105
+ borderDisabled: "#E0E0E0",
106
+ text: "#000",
107
+ textDisabled: "#9E9E9E",
108
+ placeholder: "#9E9E9E",
109
+ },
110
+ dataGrid: {
111
+ hover: "#efefef",
112
+ },
113
+ action: {
114
+ hover: "rgba(0, 0, 0, 0.1)",
115
+ },
116
+ divider: "rgba(0, 0, 0, 0.3)",
117
+ },
118
+ header: {
119
+ color: grey[500],
120
+ background: "#FFF",
121
+ search: {
122
+ color: grey[800],
123
+ },
124
+ indicator: {
125
+ background: customBlue[600],
126
+ },
127
+ },
128
+ footer: {
129
+ color: grey[500],
130
+ background: "#FFF",
131
+ },
132
+ sidebar: {
133
+ color: grey[200],
134
+ background: "#212121",
135
+ active: "#353535",
136
+ header: {
137
+ color: grey[200],
138
+ background: "#212121",
139
+ brand: {
140
+ color: customBlue[500],
141
+ },
142
+ },
143
+ footer: {
144
+ color: grey[200],
145
+ background: "#333",
146
+ online: {
147
+ background: green[500],
148
+ },
149
+ },
150
+ badge: {
151
+ color: "#FFF",
152
+ background: customBlue[500],
153
+ },
154
+ },
155
+ scrollbar: {
156
+ track: "#f1f1f1",
157
+ thumb: "#DDD",
158
+ thumbHover: "#BBB",
159
+ },
160
+ mfBorder: {
161
+ primary: "#f1f1f1",
162
+ secondary: "#DDD",
163
+ },
164
+ zIndex: {
165
+ snackbar: 999999,
166
+ },
167
+ };
168
+ const darkVariant = merge(lightVariant, {
169
+ name: THEMES.DARK,
170
+ palette: {
171
+ mode: "dark",
172
+ divider: "rgba(255, 255, 255, 0.15)",
173
+ action: {
174
+ hover: "rgba(255, 255, 255, 0.05)",
175
+ },
176
+ primary: {
177
+ main: customBlue[500],
178
+ contrastText: "#FFF",
179
+ },
180
+ secondary: {
181
+ main: "#3f3f3f",
182
+ contrastText: "#FFF",
183
+ },
184
+ background: {
185
+ default: "#222222",
186
+ paper: "#333333",
187
+ alt: "#1e1e1e",
188
+ secondary: "#303030",
189
+ gradient: "linear-gradient(#333333 0%, #1e1e1e 50%)",
190
+ },
191
+ menu: {
192
+ background: "#222222",
193
+ },
194
+ text: {
195
+ primary: "rgba(255, 255, 255, 0.95)",
196
+ secondary: "rgba(255, 255, 255, 0.6)",
197
+ },
198
+ signature: {
199
+ penColor: "#eeeeee",
200
+ borderColor: "#999999",
201
+ backgroundColor: "rgba(60,60,60,1)",
202
+ },
203
+ input: {
204
+ background: "#282828",
205
+ border: "#ffffff1a",
206
+ borderHover: "#BDBDBD",
207
+ borderFocus: "#BDBDBD",
208
+ borderError: "#F44336",
209
+ borderDisabled: "#E0E0E0",
210
+ text: "#000",
211
+ textDisabled: "#6d6d6d",
212
+ placeholder: "#6d6d6d",
213
+ },
214
+ textArea: {
215
+ background: "#292929",
216
+ border: "rgba(255, 255, 255, 0.2)",
217
+ borderHover: "#BDBDBD",
218
+ borderFocus: "#BDBDBD",
219
+ borderError: "#F44336",
220
+ borderDisabled: "#E0E0E0",
221
+ text: "#000",
222
+ textDisabled: "#9E9E9E",
223
+ placeholder: "#9E9E9E",
224
+ },
225
+ dataGrid: {
226
+ hover: "#2f2f2f",
227
+ },
228
+ },
229
+ header: {
230
+ color: grey[300],
231
+ background: "#1B2635",
232
+ search: {
233
+ color: grey[200],
234
+ },
235
+ },
236
+ footer: {
237
+ color: grey[300],
238
+ background: "#222222",
239
+ },
240
+ sidebar: {
241
+ color: "rgba(255, 255, 255, 0.95)",
242
+ background: "#181818",
243
+ active: "#313131",
244
+ header: {
245
+ color: "#FFF",
246
+ background: "#181818",
247
+ brand: {
248
+ color: "#FFFFFF",
249
+ },
250
+ },
251
+ footer: {
252
+ color: "rgba(255, 255, 255, 0.95)",
253
+ background: "#333333",
254
+ online: {
255
+ background: green[500],
256
+ },
257
+ },
258
+ },
259
+ scrollbar: {
260
+ thumb: "#3f3f3f",
261
+ track: "#252525",
262
+ thumbHover: "#151515",
263
+ },
264
+ mfBorder: {
265
+ primary: "#3f3f3f",
266
+ secondary: "#252525",
267
+ },
268
+ });
269
+ const variants = [lightVariant, darkVariant];
270
+ export default variants;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",