@opengeoweb/theme 4.17.0 → 4.18.0
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/index.d.ts +4 -0
- package/index.esm.js +1055 -987
- package/index.umd.js +1105 -1048
- package/lib/components/Theme/ThemeContext.d.ts +1 -1
- package/lib/components/Theme/index.d.ts +0 -4
- package/lib/{components/Theme/types.d.ts → types.d.ts} +1 -0
- package/lib/{components/Theme → utils}/buttonStyles.d.ts +1 -1
- package/lib/utils/createTheme.d.ts +16 -0
- package/lib/utils/themes/darkTheme.d.ts +3 -0
- package/lib/utils/themes/index.d.ts +5 -0
- package/lib/utils/themes/lightTheme.d.ts +3 -0
- package/lib/utils/utils.d.ts +5 -0
- package/lib/utils/utils.spec.d.ts +1 -0
- package/package.json +1 -1
- package/lib/components/Theme/darkTheme.d.ts +0 -3
- package/lib/components/Theme/lightTheme.d.ts +0 -3
- package/lib/components/Theme/utils.d.ts +0 -19
- /package/lib/{components/Theme → utils}/buttonStyles.test.d.ts +0 -0
- /package/lib/{components/Theme/utils.spec.d.ts → utils/createTheme.spec.d.ts} +0 -0
- /package/lib/{components/Theme → utils/themes}/gwTheme.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentsVariants, CSSInterpolation, CSSObject } from '@mui/material';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonStyle, ButtonStyles } from '../types';
|
|
3
3
|
export declare const BORDER_RADIUS = 3;
|
|
4
4
|
export declare const defaultButtonStyle: (button: ButtonStyle) => CSSObject;
|
|
5
5
|
export declare const buttonStyle: (button: ButtonStyle) => CSSInterpolation;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Theme, PaletteMode } from '@mui/material';
|
|
2
|
+
import { Elevations, GeowebColorPalette } from '../types';
|
|
3
|
+
export declare const breakpoints: {
|
|
4
|
+
mobile: number;
|
|
5
|
+
tablet: number;
|
|
6
|
+
desktop: number;
|
|
7
|
+
dekstopHD: number;
|
|
8
|
+
dekstopHDWide: number;
|
|
9
|
+
};
|
|
10
|
+
declare type CreateThemeProps = {
|
|
11
|
+
paletteType?: PaletteMode;
|
|
12
|
+
geowebColors?: GeowebColorPalette;
|
|
13
|
+
elevations?: Elevations;
|
|
14
|
+
};
|
|
15
|
+
export declare const createTheme: ({ paletteType, geowebColors: defaultGeowebColors, elevations: defaultShadows, }: CreateThemeProps) => Theme;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { colors as colorsLight, elevations as elevationsLight } from './lightTheme';
|
|
2
|
+
export declare const lightTheme: import("@mui/material").Theme;
|
|
3
|
+
export declare const darkTheme: import("@mui/material").Theme;
|
|
4
|
+
export { GWTheme } from './gwTheme';
|
|
5
|
+
export { colorsLight, elevationsLight };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Shadows } from '@mui/material/styles/shadows';
|
|
2
|
+
import { Elevations, GeowebColorPalette } from '../types';
|
|
3
|
+
export declare const hex2rgba: (hex: string, alpha?: number) => string;
|
|
4
|
+
export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
|
|
5
|
+
export declare const createShadows: (elevations: Elevations) => Shadows;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Theme, PaletteMode } from '@mui/material';
|
|
3
|
-
import { Shadows } from '@mui/material/styles/shadows';
|
|
4
|
-
import { Elevations, GeowebColorPalette } from './types';
|
|
5
|
-
export declare const hex2rgba: (hex: string, alpha?: number) => string;
|
|
6
|
-
export interface CSSProperties extends React.CSSProperties {
|
|
7
|
-
rgba?: string;
|
|
8
|
-
opacity?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
|
|
11
|
-
export declare const createShadows: (elevations: Elevations) => Shadows;
|
|
12
|
-
export declare const breakpoints: {
|
|
13
|
-
mobile: number;
|
|
14
|
-
tablet: number;
|
|
15
|
-
desktop: number;
|
|
16
|
-
dekstopHD: number;
|
|
17
|
-
dekstopHDWide: number;
|
|
18
|
-
};
|
|
19
|
-
export declare const createTheme: (paletteType: PaletteMode, geowebColors: GeowebColorPalette, shadows: Shadows) => Theme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|