@luminix/mui-cms 0.1.5 → 0.1.7

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.
package/dist/mui-cms.js CHANGED
@@ -4910,28 +4910,29 @@ const fi = {
4910
4910
  }
4911
4911
  }, pi = (e) => e.make("cms").getRoutes(), Wi = ({
4912
4912
  theme: e = fi,
4913
- providers: t,
4914
- ...n
4913
+ themeArgs: t,
4914
+ providers: n,
4915
+ ...r
4915
4916
  }) => {
4916
- const r = Be("(prefers-color-scheme: dark)"), s = h.useMemo(() => as({
4917
+ const s = Be("(prefers-color-scheme: dark)"), o = h.useMemo(() => as({
4917
4918
  ...e,
4918
4919
  palette: {
4919
4920
  ...e.palette,
4920
- mode: r ? "dark" : "light"
4921
+ mode: s ? "dark" : "light"
4921
4922
  }
4922
- }), [e, r]), o = h.useMemo(() => [
4923
+ }, ...t ?? []), [e, s, t]), a = h.useMemo(() => [
4923
4924
  dt,
4924
4925
  di,
4925
- ...t || []
4926
- ], [t]);
4927
- return /* @__PURE__ */ w(is, { theme: s, children: [
4926
+ ...n || []
4927
+ ], [n]);
4928
+ return /* @__PURE__ */ w(is, { theme: o, children: [
4928
4929
  /* @__PURE__ */ i(Hr, {}),
4929
4930
  /* @__PURE__ */ i(
4930
4931
  dr,
4931
4932
  {
4932
4933
  routes: pi,
4933
- providers: o,
4934
- ...n
4934
+ providers: a,
4935
+ ...r
4935
4936
  }
4936
4937
  )
4937
4938
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/mui-cms",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "bundle/mui-cms.js",
6
6
  "module": "dist/mui-cms.js",
@@ -18,9 +18,9 @@
18
18
  "@emotion/react": "^11.13.0",
19
19
  "@emotion/styled": "^11.13.0",
20
20
  "@fontsource/roboto": "^5.0.12",
21
- "@luminix/core": "^0.3.0",
22
- "@luminix/react": "^0.3.0",
23
- "@luminix/support": "^0.4.2",
21
+ "@luminix/core": "^0.3.1",
22
+ "@luminix/react": "^0.3.1",
23
+ "@luminix/support": "^0.4.3",
24
24
  "@mui/icons-material": "^5.16.5",
25
25
  "@mui/material": "^5.16.5",
26
26
  "i18next": "^23.12.2",
@@ -7,6 +7,7 @@ import { DefaultComponentProps } from '@mui/material/OverridableComponent';
7
7
  import { MenuItem } from './Menu';
8
8
  export type LuminixCmsProps = Partial<LuminixProviderProps> & {
9
9
  theme?: ThemeOptions;
10
+ themeArgs?: object[];
10
11
  };
11
12
  export type LayoutProps = BoxProps & {
12
13
  slotProps?: {