@monolith-forensics/monolith-ui 1.1.36 → 1.1.37

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.
@@ -1,5 +1,5 @@
1
1
  export { THEMES as Themes } from "./variants";
2
- declare const getTheme: (scheme: "LIGHT" | "DARK") => {
2
+ declare const getTheme: (scheme: "LIGHT" | "DARK" | "DEFAULT") => {
3
3
  name: string;
4
4
  typography: {
5
5
  fontFamily: string;
@@ -1,7 +1,10 @@
1
1
  import variants from "./variants";
2
2
  export { THEMES as Themes } from "./variants";
3
3
  const getTheme = (scheme) => {
4
- let themeConfig = variants.find((variant) => variant.name === scheme);
4
+ let _scheme = scheme;
5
+ if (scheme === "DEFAULT")
6
+ _scheme = "LIGHT"; // Default theme is light theme
7
+ let themeConfig = variants.find((variant) => variant.name === _scheme);
5
8
  if (!themeConfig) {
6
9
  themeConfig = variants[0];
7
10
  }
@@ -1,6 +1,7 @@
1
1
  export declare const THEMES: {
2
2
  DARK: string;
3
3
  LIGHT: string;
4
+ DEFAULT: string;
4
5
  };
5
6
  declare const variants: {
6
7
  name: string;
@@ -4,6 +4,7 @@ import typography from "./typography";
4
4
  export const THEMES = {
5
5
  DARK: "DARK",
6
6
  LIGHT: "LIGHT",
7
+ DEFAULT: "DEFAULT",
7
8
  };
8
9
  const customBlue = {
9
10
  50: "#e9f0fb",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",
@@ -15,6 +15,9 @@
15
15
  "scripts": {
16
16
  "clean": "rm -r ./dist",
17
17
  "build": "tsc",
18
+ "patch": "yarn version --patch",
19
+ "minor": "yarn version --minor",
20
+ "major": "yarn version --major",
18
21
  "release": "yarn version --patch --deferred && yarn build && npm publish && yarn clean"
19
22
  },
20
23
  "dependencies": {