@wandelbots/wandelbots-js-react-components 1.33.3 → 1.33.5

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 +1 @@
1
- {"version":3,"file":"createDarkTheme.d.ts","sourceRoot":"","sources":["../../src/themes/createDarkTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,eAAe,CAAA;AAEvD,wBAAgB,eAAe,IAAI,KAAK,CAgPvC"}
1
+ {"version":3,"file":"createDarkTheme.d.ts","sourceRoot":"","sources":["../../src/themes/createDarkTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,eAAe,CAAA;AAEvD,wBAAgB,eAAe,IAAI,KAAK,CAyOvC"}
@@ -1,4 +1,4 @@
1
- import type { Theme, ThemeOptions } from "@mui/material/styles";
1
+ import { type Theme, type ThemeOptions } from "@mui/material/styles";
2
2
  /**
3
3
  * Create the default Wandelbots Nova Material UI theme, overriding
4
4
  * any defaults with the provided theme options.
@@ -1 +1 @@
1
- {"version":3,"file":"theming.d.ts","sourceRoot":"","sources":["../../src/themes/theming.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAI/D;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,KAAK,CAW5D"}
1
+ {"version":3,"file":"theming.d.ts","sourceRoot":"","sources":["../../src/themes/theming.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAA;AAI7B;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,KAAK,CAc5D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.33.3",
3
+ "version": "1.33.5",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -121,13 +121,6 @@ export function createDarkTheme(): Theme {
121
121
  },
122
122
  ],
123
123
  },
124
- MuiDivider: {
125
- styleOverrides: {
126
- root: {
127
- height: "1px",
128
- },
129
- },
130
- },
131
124
  MuiTab: {
132
125
  styleOverrides: {
133
126
  root: {
@@ -1,6 +1,10 @@
1
1
  "use client"
2
2
 
3
- import type { Theme, ThemeOptions } from "@mui/material/styles"
3
+ import {
4
+ createTheme,
5
+ type Theme,
6
+ type ThemeOptions,
7
+ } from "@mui/material/styles"
4
8
  import { createDarkTheme } from "./createDarkTheme"
5
9
  import { createLightTheme } from "./createLightTheme"
6
10
 
@@ -18,5 +22,8 @@ export function createNovaMuiTheme(opts: ThemeOptions): Theme {
18
22
  window.matchMedia?.("(prefers-color-scheme: light)")?.matches
19
23
  isDark = !browserPrefersLight
20
24
  }
21
- return isDark ? createDarkTheme() : createLightTheme()
25
+
26
+ const baseTheme = isDark ? createDarkTheme() : createLightTheme()
27
+
28
+ return createTheme(baseTheme, opts)
22
29
  }