@opengeoweb/theme 2.1.0 → 2.1.4
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/README.md +3 -8
- package/{theme.esm.js → index.esm.js} +413 -230
- package/{theme.umd.js → index.umd.js} +418 -235
- package/lib/components/Theme/ThemeContext.d.ts +1 -1
- package/lib/components/Theme/darkTheme.d.ts +1 -1
- package/lib/components/Theme/gwTheme.d.ts +1 -7
- package/lib/components/Theme/lightTheme.d.ts +1 -1
- package/lib/components/Theme/types.d.ts +1 -1
- package/lib/components/Theme/utils.d.ts +3 -3
- package/lib/stories/Backdrop.stories.d.ts +1 -1
- package/lib/stories/Tooltip.stories.d.ts +1 -5
- package/lib/stories/snapshots/FormElements.stories.d.ts +1 -0
- package/package.json +7 -7
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
declare module '@material-ui/core/styles/overrides' {
|
|
3
|
-
interface ComponentNameToClassKey {
|
|
4
|
-
MuiAlert: AlertClassKey;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export declare const GWTheme: import("@material-ui/core").Theme;
|
|
1
|
+
export declare const GWTheme: import("@mui/material").Theme;
|
|
@@ -110,7 +110,7 @@ export declare type GeowebColorPalette = {
|
|
|
110
110
|
export declare type Elevations = {
|
|
111
111
|
[id: string]: string;
|
|
112
112
|
};
|
|
113
|
-
declare module '@material
|
|
113
|
+
declare module '@mui/material/styles' {
|
|
114
114
|
interface Palette {
|
|
115
115
|
geowebColors: GeowebColorPalette;
|
|
116
116
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Theme,
|
|
2
|
-
import { Shadows } from '@material
|
|
1
|
+
import { Theme, PaletteMode } from '@mui/material';
|
|
2
|
+
import { Shadows } from '@mui/material/styles/shadows';
|
|
3
3
|
import { Elevations, GeowebColorPalette } from './types';
|
|
4
4
|
export declare const hex2rgba: (hex: string, alpha?: number) => string;
|
|
5
5
|
export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
|
|
6
6
|
export declare const createShadows: (elevations: Elevations) => Shadows;
|
|
7
|
-
export declare const createTheme: (paletteType:
|
|
7
|
+
export declare const createTheme: (paletteType: PaletteMode, geowebColors: GeowebColorPalette, shadows: Shadows) => Theme;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/theme",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "GeoWeb Theme library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
|
-
"main": "./
|
|
11
|
-
"module": "./
|
|
10
|
+
"main": "./index.umd.js",
|
|
11
|
+
"module": "./index.esm.js",
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@material
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"@
|
|
15
|
+
"@mui/material": "^5.2.8",
|
|
16
|
+
"react": "^17.0.2",
|
|
17
|
+
"@mui/styles": "^5.2.3",
|
|
18
|
+
"@mui/icons-material": "^5.2.5"
|
|
19
19
|
}
|
|
20
20
|
}
|