@m4l/graphics 0.0.2 → 0.0.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,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HostThemeProviderProps } from './types';
|
|
3
|
-
declare const HostThemeContext: import("react").Context<import("./types").
|
|
3
|
+
declare const HostThemeContext: import("react").Context<import("./types").HostThemeType>;
|
|
4
4
|
declare function HostThemeProvider(props: HostThemeProviderProps): JSX.Element;
|
|
5
5
|
export { HostThemeProvider, HostThemeContext };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ThemeOptions, Theme } from '@mui/material/styles';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
export declare type EventFunListener = (...args: any[]) => void;
|
|
4
|
-
export interface
|
|
4
|
+
export interface HostThemeType {
|
|
5
5
|
hostThemeOptions: ThemeOptions;
|
|
6
6
|
fnComponentsOverrides: (theme: Theme) => any;
|
|
7
7
|
}
|
|
8
|
-
export interface HostThemeProviderProps extends
|
|
8
|
+
export interface HostThemeProviderProps extends HostThemeType {
|
|
9
9
|
isMicroFrontEnd: boolean;
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare type HostThemeContextType =
|
|
12
|
+
export declare type HostThemeContextType = HostThemeType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useHostTheme: () => import("
|
|
1
|
+
export declare const useHostTheme: () => import("..").HostThemeType;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export type { ChartPaletteOptions } from './theme/palette';
|
|
|
8
8
|
export type { GridPaletteOptions } from './theme/palette';
|
|
9
9
|
export { defaultThemeOptions } from './theme/defaultThemeOptions';
|
|
10
10
|
export { default as fnComponentsOverrides } from './theme/overrides';
|
|
11
|
+
export type { HostThemeType } from '../lib/contexts/HostThemeContext/types';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/graphics",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "M4L Team",
|
|
7
7
|
"scripts": {
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"framer-motion": "^6.3.11",
|
|
19
19
|
"nprogress": "^0.2.0",
|
|
20
|
-
"react": "
|
|
20
|
+
"react": ">=18",
|
|
21
21
|
"react-data-grid": "^7.0.0-beta.13",
|
|
22
22
|
"react-dnd": "^16.0.1",
|
|
23
23
|
"react-dnd-html5-backend": "^16.0.1",
|
|
24
|
+
"react-dom": "^18.0.0",
|
|
24
25
|
"react-draggable": "^4.4.5",
|
|
25
26
|
"react-dropzone": "^14.2.1",
|
|
26
27
|
"react-helmet-async": "^1.3.0",
|
|
@@ -30,13 +31,12 @@
|
|
|
30
31
|
"react-router-dom": "^6.3.0",
|
|
31
32
|
"react-splitter-layout": "^4.0.0",
|
|
32
33
|
"simplebar-react": "^2.4.1",
|
|
33
|
-
"vite-tsconfig-paths": "^3.5.0"
|
|
34
|
-
"react-dom": "^18.0.0"
|
|
34
|
+
"vite-tsconfig-paths": "^3.5.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@emotion/styled": "^11.9.3",
|
|
38
38
|
"@hookform/resolvers": "^2.9.3",
|
|
39
|
-
"@m4l/core": "^0.0.
|
|
39
|
+
"@m4l/core": "^0.0.8",
|
|
40
40
|
"@mui/icons-material": "^5.8.4",
|
|
41
41
|
"@mui/lab": "^5.0.0-alpha.87",
|
|
42
42
|
"@mui/material": "^5.8.5",
|
|
@@ -72,8 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"react": ">=18",
|
|
75
|
-
"react-dom": "^18.0.0"
|
|
76
|
-
"@m4l/core": "^0.0.6"
|
|
75
|
+
"react-dom": "^18.0.0"
|
|
77
76
|
},
|
|
78
77
|
"files": [
|
|
79
78
|
"dist"
|