@monolith-forensics/monolith-ui 1.2.100 → 1.2.105

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.
@@ -311,9 +311,13 @@ const StyledLoader = styled.span `
311
311
  svg {
312
312
  width: 16px;
313
313
  height: 16px;
314
- color: ${({ theme, color }) => color
315
- ? theme.palette[color] || colors[color]
316
- : theme.palette.primary};
314
+ color: ${({ theme, color }) => {
315
+ var _a;
316
+ return color
317
+ ? ((_a = theme.palette[color]) === null || _a === void 0 ? void 0 : _a.main) ||
318
+ colors[color]
319
+ : theme.palette.primary;
320
+ }};
317
321
 
318
322
  animation: spin 0.75s linear infinite;
319
323
 
@@ -1,11 +1,10 @@
1
- import { DefaultTheme } from "styled-components";
2
1
  export { styled, createGlobalStyle, css } from "styled-components";
3
2
  import { Themes } from "../theme";
4
3
  import React from "react";
5
4
  import typography from "../theme/typography";
6
- export interface MonolithDefaultTheme extends DefaultTheme {
7
- name?: Themes;
8
- typography?: typeof typography;
5
+ export interface MonolithDefaultTheme {
6
+ name: Themes;
7
+ typography: typeof typography;
9
8
  palette: {
10
9
  mode: Themes;
11
10
  primary: {
@@ -15,6 +14,7 @@ export interface MonolithDefaultTheme extends DefaultTheme {
15
14
  error: {
16
15
  main: string;
17
16
  contrastText: string;
17
+ light: string;
18
18
  };
19
19
  secondary: {
20
20
  main: string;
@@ -46,6 +46,7 @@ export interface MonolithDefaultTheme extends DefaultTheme {
46
46
  text: {
47
47
  primary: string;
48
48
  secondary: string;
49
+ disabled: string;
49
50
  };
50
51
  input: {
51
52
  background: string;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import merge from "deepmerge";
3
- import { ThemeProvider, useTheme as useStyledTheme, } from "styled-components";
3
+ import { ThemeProvider, useTheme as useStyledTheme } from "styled-components";
4
4
  export { styled, createGlobalStyle, css } from "styled-components";
5
5
  import { Themes, getTheme } from "../theme";
6
6
  import { createContext, useEffect, useState } from "react";
@@ -55,6 +55,7 @@ const lightVariant = {
55
55
  error: {
56
56
  main: "#f44336",
57
57
  contrastText: "#FFF",
58
+ light: "#f44336",
58
59
  },
59
60
  secondary: {
60
61
  main: "#FFF",
@@ -86,6 +87,7 @@ const lightVariant = {
86
87
  text: {
87
88
  primary: "rgba(0, 0, 0, 0.95)",
88
89
  secondary: "rgba(0, 0, 0, 0.75)",
90
+ disabled: "rgba(0, 0, 0, 0.5)",
89
91
  },
90
92
  input: {
91
93
  background: "#fff",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.100",
3
+ "version": "1.2.105",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",