@monolith-forensics/monolith-ui 1.1.9 → 1.1.13

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.
@@ -0,0 +1,9 @@
1
+ import { DefaultTheme } from "styled-components";
2
+ export declare const MuiContext: import("react").Context<DefaultTheme | undefined>;
3
+ interface MuiProviderProps {
4
+ children: React.ReactNode;
5
+ theme: DefaultTheme;
6
+ defaultColorScheme?: "light" | "dark";
7
+ }
8
+ declare const MuiProvider: ({ children, theme, defaultColorScheme, }: MuiProviderProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default MuiProvider;
@@ -0,0 +1,28 @@
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.MuiContext = void 0;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const deepmerge_1 = __importDefault(require("deepmerge"));
9
+ const styled_components_1 = require("styled-components");
10
+ const theme_1 = __importDefault(require("../theme"));
11
+ const react_1 = require("react");
12
+ exports.MuiContext = (0, react_1.createContext)(undefined);
13
+ const MuiProvider = ({ children, theme = {}, defaultColorScheme = "dark", }) => {
14
+ const [colorScheme, setColorScheme] = (0, react_1.useState)(defaultColorScheme);
15
+ const toggleColorScheme = () => {
16
+ setColorScheme(colorScheme === "light" ? "dark" : "light");
17
+ };
18
+ const defaultTheme = (0, theme_1.default)(colorScheme);
19
+ // override default theme with the provided theme
20
+ const _theme = (0, deepmerge_1.default)(defaultTheme, theme);
21
+ return ((0, jsx_runtime_1.jsx)(exports.MuiContext.Provider, { value: {
22
+ theme: _theme,
23
+ colorScheme,
24
+ toggleColorScheme,
25
+ setColorScheme,
26
+ }, children: (0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, { theme: _theme, children: children }) }));
27
+ };
28
+ exports.default = MuiProvider;
@@ -0,0 +1,2 @@
1
+ export { default } from "./MuiProvider";
2
+ export { default as useMuiTheme } from "./useMuiTheme";
@@ -0,0 +1,10 @@
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.useMuiTheme = exports.default = void 0;
7
+ var MuiProvider_1 = require("./MuiProvider");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(MuiProvider_1).default; } });
9
+ var useMuiTheme_1 = require("./useMuiTheme");
10
+ Object.defineProperty(exports, "useMuiTheme", { enumerable: true, get: function () { return __importDefault(useMuiTheme_1).default; } });
@@ -0,0 +1,2 @@
1
+ declare const useMuiTheme: () => import("styled-components").DefaultTheme;
2
+ export default useMuiTheme;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const MuiProvider_1 = require("./MuiProvider");
5
+ const useMuiTheme = () => {
6
+ const context = (0, react_1.useContext)(MuiProvider_1.MuiContext);
7
+ if (context === undefined) {
8
+ throw new Error("hook must be used within a MuiProvider");
9
+ }
10
+ return context;
11
+ };
12
+ exports.default = useMuiTheme;
package/dist/index.d.ts CHANGED
@@ -20,3 +20,5 @@ export { default as Input } from "./Input";
20
20
  export { default as Tooltip } from "./Tooltip";
21
21
  export { default as Pill } from "./Pill";
22
22
  export { default as Calendar } from "./Calendar";
23
+ export { default as MuiProvider } from "./MuiProvider";
24
+ export { useMuiTheme } from "./MuiProvider";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Calendar = exports.Pill = exports.Tooltip = exports.Input = exports.CheckBox = exports.Switch = exports.FileInputField = exports.FlyoutTitle = exports.FlyoutHeader = exports.Flyout = exports.Modal = exports.FieldLabel = exports.TagBox = exports.TextAreaInput = exports.TextArea = exports.DateInput = exports.DropDownMenu = exports.IconButton = exports.Button = exports.SelectBox = exports.TextInput = exports.Grid = exports.FormSection = void 0;
6
+ exports.useMuiTheme = exports.MuiProvider = exports.Calendar = exports.Pill = exports.Tooltip = exports.Input = exports.CheckBox = exports.Switch = exports.FileInputField = exports.FlyoutTitle = exports.FlyoutHeader = exports.Flyout = exports.Modal = exports.FieldLabel = exports.TagBox = exports.TextAreaInput = exports.TextArea = exports.DateInput = exports.DropDownMenu = exports.IconButton = exports.Button = exports.SelectBox = exports.TextInput = exports.Grid = exports.FormSection = void 0;
7
7
  var FormSection_1 = require("./FormSection");
8
8
  Object.defineProperty(exports, "FormSection", { enumerable: true, get: function () { return __importDefault(FormSection_1).default; } });
9
9
  var Grid_1 = require("./Grid");
@@ -49,3 +49,7 @@ var Pill_1 = require("./Pill");
49
49
  Object.defineProperty(exports, "Pill", { enumerable: true, get: function () { return __importDefault(Pill_1).default; } });
50
50
  var Calendar_1 = require("./Calendar");
51
51
  Object.defineProperty(exports, "Calendar", { enumerable: true, get: function () { return __importDefault(Calendar_1).default; } });
52
+ var MuiProvider_1 = require("./MuiProvider");
53
+ Object.defineProperty(exports, "MuiProvider", { enumerable: true, get: function () { return __importDefault(MuiProvider_1).default; } });
54
+ var MuiProvider_2 = require("./MuiProvider");
55
+ Object.defineProperty(exports, "useMuiTheme", { enumerable: true, get: function () { return MuiProvider_2.useMuiTheme; } });
@@ -1,2 +1,164 @@
1
- export default createTheme;
2
- declare function createTheme(name: any): import("@mui/material/styles").Theme;
1
+ declare const getTheme: (scheme: "light" | "dark") => {
2
+ name: string;
3
+ typography: {
4
+ fontFamily: string;
5
+ fontSize: number;
6
+ fontWeightLight: number;
7
+ fontWeightRegular: number;
8
+ fontWeightMedium: number;
9
+ fontWeightBold: number;
10
+ h1: {
11
+ fontSize: string;
12
+ fontWeight: number;
13
+ lineHeight: number;
14
+ };
15
+ h2: {
16
+ fontSize: string;
17
+ fontWeight: number;
18
+ lineHeight: number;
19
+ };
20
+ h3: {
21
+ fontSize: string;
22
+ fontWeight: number;
23
+ lineHeight: number;
24
+ };
25
+ h4: {
26
+ fontSize: string;
27
+ fontWeight: number;
28
+ lineHeight: number;
29
+ };
30
+ h5: {
31
+ fontSize: string;
32
+ fontWeight: number;
33
+ lineHeight: number;
34
+ };
35
+ h6: {
36
+ fontSize: string;
37
+ fontWeight: number;
38
+ lineHeight: number;
39
+ };
40
+ body1: {
41
+ fontSize: number;
42
+ };
43
+ button: {
44
+ textTransform: string;
45
+ };
46
+ };
47
+ palette: {
48
+ mode: string;
49
+ primary: {
50
+ main: string;
51
+ contrastText: string;
52
+ };
53
+ secondary: {
54
+ main: string;
55
+ contrastText: string;
56
+ };
57
+ third: {
58
+ main: string;
59
+ contrastText: string;
60
+ };
61
+ fourth: {
62
+ main: string;
63
+ contrastText: string;
64
+ };
65
+ background: {
66
+ default: string;
67
+ paper: string;
68
+ alt: string;
69
+ secondary: string;
70
+ gradient: string;
71
+ };
72
+ menu: {
73
+ background: string;
74
+ };
75
+ signature: {
76
+ penColor: string;
77
+ borderColor: string;
78
+ backgroundColor: string;
79
+ };
80
+ text: {
81
+ primary: string;
82
+ secondary: string;
83
+ };
84
+ input: {
85
+ background: string;
86
+ border: string;
87
+ borderHover: string;
88
+ borderFocus: string;
89
+ borderError: string;
90
+ borderDisabled: string;
91
+ text: string;
92
+ textDisabled: string;
93
+ placeholder: string;
94
+ };
95
+ textArea: {
96
+ background: string;
97
+ border: string;
98
+ borderHover: string;
99
+ borderFocus: string;
100
+ borderError: string;
101
+ borderDisabled: string;
102
+ text: string;
103
+ textDisabled: string;
104
+ placeholder: string;
105
+ };
106
+ dataGrid: {
107
+ hover: string;
108
+ };
109
+ action: {
110
+ hover: string;
111
+ };
112
+ divider: string;
113
+ };
114
+ header: {
115
+ color: string;
116
+ background: string;
117
+ search: {
118
+ color: string;
119
+ };
120
+ indicator: {
121
+ background: string;
122
+ };
123
+ };
124
+ footer: {
125
+ color: string;
126
+ background: string;
127
+ };
128
+ sidebar: {
129
+ color: string;
130
+ background: string;
131
+ active: string;
132
+ header: {
133
+ color: string;
134
+ background: string;
135
+ brand: {
136
+ color: string;
137
+ };
138
+ };
139
+ footer: {
140
+ color: string;
141
+ background: string;
142
+ online: {
143
+ background: string;
144
+ };
145
+ };
146
+ badge: {
147
+ color: string;
148
+ background: string;
149
+ };
150
+ };
151
+ scrollbar: {
152
+ track: string;
153
+ thumb: string;
154
+ thumbHover: string;
155
+ };
156
+ mfBorder: {
157
+ primary: string;
158
+ secondary: string;
159
+ };
160
+ zIndex: {
161
+ snackbar: number;
162
+ };
163
+ } | undefined;
164
+ export default getTheme;
@@ -3,64 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- require("@mui/lab/themeAugmentation");
7
- const styles_1 = require("@mui/material/styles");
8
6
  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);
7
+ const getTheme = (scheme) => {
8
+ let themeConfig = variants_1.default.find((variant) => variant.name === scheme);
15
9
  if (!themeConfig) {
16
- console.warn(new Error(`The theme ${name} is not valid`));
17
10
  themeConfig = variants_1.default[0];
18
11
  }
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
- });
12
+ return themeConfig;
65
13
  };
66
- exports.default = createTheme;
14
+ exports.default = getTheme;
@@ -1,62 +1,45 @@
1
+ declare const typography: {
2
+ fontFamily: string;
3
+ fontSize: number;
4
+ fontWeightLight: number;
5
+ fontWeightRegular: number;
6
+ fontWeightMedium: number;
7
+ fontWeightBold: number;
8
+ h1: {
9
+ fontSize: string;
10
+ fontWeight: number;
11
+ lineHeight: number;
12
+ };
13
+ h2: {
14
+ fontSize: string;
15
+ fontWeight: number;
16
+ lineHeight: number;
17
+ };
18
+ h3: {
19
+ fontSize: string;
20
+ fontWeight: number;
21
+ lineHeight: number;
22
+ };
23
+ h4: {
24
+ fontSize: string;
25
+ fontWeight: number;
26
+ lineHeight: number;
27
+ };
28
+ h5: {
29
+ fontSize: string;
30
+ fontWeight: number;
31
+ lineHeight: number;
32
+ };
33
+ h6: {
34
+ fontSize: string;
35
+ fontWeight: number;
36
+ lineHeight: number;
37
+ };
38
+ body1: {
39
+ fontSize: number;
40
+ };
41
+ button: {
42
+ textTransform: string;
43
+ };
44
+ };
1
45
  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
- }
@@ -1,11 +1,53 @@
1
- export namespace THEMES {
2
- let DEFAULT: string;
3
- let DARK: string;
4
- let LIGHT: string;
5
- }
6
- export default variants;
1
+ export declare const THEMES: {
2
+ DARK: string;
3
+ LIGHT: string;
4
+ };
7
5
  declare const variants: {
8
6
  name: string;
7
+ typography: {
8
+ fontFamily: string;
9
+ fontSize: number;
10
+ fontWeightLight: number;
11
+ fontWeightRegular: number;
12
+ fontWeightMedium: number;
13
+ fontWeightBold: number;
14
+ h1: {
15
+ fontSize: string;
16
+ fontWeight: number;
17
+ lineHeight: number;
18
+ };
19
+ h2: {
20
+ fontSize: string;
21
+ fontWeight: number;
22
+ lineHeight: number;
23
+ };
24
+ h3: {
25
+ fontSize: string;
26
+ fontWeight: number;
27
+ lineHeight: number;
28
+ };
29
+ h4: {
30
+ fontSize: string;
31
+ fontWeight: number;
32
+ lineHeight: number;
33
+ };
34
+ h5: {
35
+ fontSize: string;
36
+ fontWeight: number;
37
+ lineHeight: number;
38
+ };
39
+ h6: {
40
+ fontSize: string;
41
+ fontWeight: number;
42
+ lineHeight: number;
43
+ };
44
+ body1: {
45
+ fontSize: number;
46
+ };
47
+ button: {
48
+ textTransform: string;
49
+ };
50
+ };
9
51
  palette: {
10
52
  mode: string;
11
53
  primary: {
@@ -98,6 +140,13 @@ declare const variants: {
98
140
  color: string;
99
141
  };
100
142
  };
143
+ footer: {
144
+ color: string;
145
+ background: string;
146
+ online: {
147
+ background: string;
148
+ };
149
+ };
101
150
  badge: {
102
151
  color: string;
103
152
  background: string;
@@ -116,3 +165,4 @@ declare const variants: {
116
165
  snackbar: number;
117
166
  };
118
167
  }[];
168
+ export default variants;
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.THEMES = void 0;
7
7
  const deepmerge_1 = __importDefault(require("deepmerge"));
8
+ const typography_js_1 = __importDefault(require("./typography.js"));
8
9
  // Themes
9
10
  exports.THEMES = {
10
- DEFAULT: "DEFAULT",
11
11
  DARK: "DARK",
12
12
  LIGHT: "LIGHT",
13
13
  };
@@ -23,8 +23,33 @@ const customBlue = {
23
23
  800: "#2f65cb",
24
24
  900: "#2052c2 ",
25
25
  };
26
- const defaultVariant = {
27
- name: exports.THEMES.DEFAULT,
26
+ const grey = {
27
+ 50: "#FAFAFA",
28
+ 100: "#F5F5F5",
29
+ 200: "#EEEEEE",
30
+ 300: "#E0E0E0",
31
+ 400: "#BDBDBD",
32
+ 500: "#9E9E9E",
33
+ 600: "#757575",
34
+ 700: "#616161",
35
+ 800: "#424242",
36
+ 900: "#212121",
37
+ };
38
+ const green = {
39
+ 50: "#e8f5e9",
40
+ 100: "#c8e6c9",
41
+ 200: "#a5d6a7",
42
+ 300: "#81c784",
43
+ 400: "#66bb6a",
44
+ 500: "#4caf50",
45
+ 600: "#43a047",
46
+ 700: "#388e3c",
47
+ 800: "#2e7d32",
48
+ 900: "#1b5e20",
49
+ };
50
+ const lightVariant = {
51
+ name: exports.THEMES.LIGHT,
52
+ typography: typography_js_1.default,
28
53
  palette: {
29
54
  mode: "light",
30
55
  primary: {
@@ -63,8 +88,8 @@ const defaultVariant = {
63
88
  secondary: "rgba(0, 0, 0, 0.75)",
64
89
  },
65
90
  input: {
66
- background: "#fbfbfb",
67
- border: "rgba(0, 0, 0, 0.2)",
91
+ background: "#fff",
92
+ border: "rgba(0, 0, 0, 0.3)",
68
93
  borderHover: "#BDBDBD",
69
94
  borderFocus: "#BDBDBD",
70
95
  borderError: "#F44336",
@@ -93,30 +118,37 @@ const defaultVariant = {
93
118
  divider: "rgba(0, 0, 0, 0.3)",
94
119
  },
95
120
  header: {
96
- color: "rgba(0, 0, 0, 0.95)",
121
+ color: grey[500],
97
122
  background: "#FFF",
98
123
  search: {
99
- color: "rgba(0, 0, 0, 0.6)",
124
+ color: grey[800],
100
125
  },
101
126
  indicator: {
102
127
  background: customBlue[600],
103
128
  },
104
129
  },
105
130
  footer: {
106
- color: "rgba(0, 0, 0, 0.6)",
131
+ color: grey[500],
107
132
  background: "#FFF",
108
133
  },
109
134
  sidebar: {
110
- color: "rgba(0, 0, 0, 0.95)",
111
- background: "#233044",
112
- active: "#455466",
135
+ color: grey[200],
136
+ background: "#212121",
137
+ active: "#353535",
113
138
  header: {
114
- color: "#FFF",
115
- background: "#233044",
139
+ color: grey[200],
140
+ background: "#212121",
116
141
  brand: {
117
142
  color: customBlue[500],
118
143
  },
119
144
  },
145
+ footer: {
146
+ color: grey[200],
147
+ background: "#333",
148
+ online: {
149
+ background: green[500],
150
+ },
151
+ },
120
152
  badge: {
121
153
  color: "#FFF",
122
154
  background: customBlue[500],
@@ -135,7 +167,7 @@ const defaultVariant = {
135
167
  snackbar: 999999,
136
168
  },
137
169
  };
138
- const darkVariant = (0, deepmerge_1.default)(defaultVariant, {
170
+ const darkVariant = (0, deepmerge_1.default)(lightVariant, {
139
171
  name: exports.THEMES.DARK,
140
172
  palette: {
141
173
  mode: "dark",
@@ -165,14 +197,13 @@ const darkVariant = (0, deepmerge_1.default)(defaultVariant, {
165
197
  primary: "rgba(255, 255, 255, 0.95)",
166
198
  secondary: "rgba(255, 255, 255, 0.6)",
167
199
  },
168
- divider: "rgba(255, 255, 255, 0.15)",
169
200
  signature: {
170
201
  penColor: "#eeeeee",
171
202
  borderColor: "#999999",
172
203
  backgroundColor: "rgba(60,60,60,1)",
173
204
  },
174
205
  input: {
175
- background: "#272727",
206
+ background: "#282828",
176
207
  border: "#ffffff1a",
177
208
  borderHover: "#BDBDBD",
178
209
  borderFocus: "#BDBDBD",
@@ -198,14 +229,14 @@ const darkVariant = (0, deepmerge_1.default)(defaultVariant, {
198
229
  },
199
230
  },
200
231
  header: {
201
- color: "rgba(255, 255, 255, 0.95)",
232
+ color: grey[300],
202
233
  background: "#1B2635",
203
234
  search: {
204
- color: "rgba(255, 255, 255, 0.6)",
235
+ color: grey[200],
205
236
  },
206
237
  },
207
238
  footer: {
208
- color: "rgba(255, 255, 255, 0.6)",
239
+ color: grey[300],
209
240
  background: "#222222",
210
241
  },
211
242
  sidebar: {
@@ -219,6 +250,13 @@ const darkVariant = (0, deepmerge_1.default)(defaultVariant, {
219
250
  color: "#FFFFFF",
220
251
  },
221
252
  },
253
+ footer: {
254
+ color: "rgba(255, 255, 255, 0.95)",
255
+ background: "#333333",
256
+ online: {
257
+ background: green[500],
258
+ },
259
+ },
222
260
  },
223
261
  scrollbar: {
224
262
  thumb: "#3f3f3f",
@@ -230,5 +268,5 @@ const darkVariant = (0, deepmerge_1.default)(defaultVariant, {
230
268
  secondary: "#252525",
231
269
  },
232
270
  });
233
- const variants = [defaultVariant, darkVariant];
271
+ const variants = [lightVariant, darkVariant];
234
272
  exports.default = variants;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.1.9",
3
+ "version": "1.1.13",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",
@@ -13,7 +13,8 @@
13
13
  "dist/"
14
14
  ],
15
15
  "scripts": {
16
- "prepublish": "rm -r ./dist && tsc"
16
+ "prepublish": "rm -r ./dist && tsc",
17
+ "release": "yarn prepublish && yarn version --patch"
17
18
  },
18
19
  "dependencies": {
19
20
  "@floating-ui/react": "^0.26.16",
@@ -1,10 +0,0 @@
1
- export default breakpoints;
2
- declare namespace breakpoints {
3
- namespace values {
4
- let xs: number;
5
- let sm: number;
6
- let md: number;
7
- let lg: number;
8
- let xl: number;
9
- }
10
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const breakpoints = {
4
- values: {
5
- xs: 0,
6
- sm: 600,
7
- md: 900,
8
- lg: 1200,
9
- xl: 1536,
10
- },
11
- };
12
- exports.default = breakpoints;
@@ -1,158 +0,0 @@
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
- }
@@ -1,138 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- export default shadows;
2
- declare const shadows: string[];
@@ -1,33 +0,0 @@
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;