@opengeoweb/theme 4.16.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 +1193 -1068
- package/index.umd.js +1135 -1021
- package/lib/components/Theme/ThemeContext.d.ts +1 -1
- package/lib/components/Theme/index.d.ts +0 -4
- package/lib/stories/Table.stories.d.ts +7 -0
- package/lib/{components/Theme/types.d.ts → types.d.ts} +5 -3
- 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 -14
- /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,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface CSSProperties extends React.CSSProperties {
|
|
2
|
+
export interface CSSProperties extends React.CSSProperties {
|
|
3
3
|
rgba?: string;
|
|
4
|
+
opacity?: number;
|
|
4
5
|
}
|
|
5
6
|
export declare enum ThemeTypes {
|
|
6
7
|
DARK_THEME = "darkTheme",
|
|
@@ -14,6 +15,7 @@ export interface ButtonStyle {
|
|
|
14
15
|
active: CSSProperties;
|
|
15
16
|
activeMouseOver: CSSProperties;
|
|
16
17
|
disabled: CSSProperties;
|
|
18
|
+
focus: CSSProperties;
|
|
17
19
|
}
|
|
18
20
|
export interface ButtonStyles {
|
|
19
21
|
primary: ButtonStyle;
|
|
@@ -60,7 +62,8 @@ export declare type GeowebColorPalette = {
|
|
|
60
62
|
};
|
|
61
63
|
cards: {
|
|
62
64
|
cardContainer: CSSProperties['color'];
|
|
63
|
-
cardContainerBorder
|
|
65
|
+
cardContainerBorder: CSSProperties['color'];
|
|
66
|
+
cardContainerMouseOver: CSSProperties['color'];
|
|
64
67
|
};
|
|
65
68
|
backdrops: {
|
|
66
69
|
black: CSSProperties;
|
|
@@ -175,4 +178,3 @@ declare module '@mui/material/Button' {
|
|
|
175
178
|
icon: true;
|
|
176
179
|
}
|
|
177
180
|
}
|
|
178
|
-
export {};
|
|
@@ -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,14 +0,0 @@
|
|
|
1
|
-
import { Theme, PaletteMode } from '@mui/material';
|
|
2
|
-
import { Shadows } from '@mui/material/styles/shadows';
|
|
3
|
-
import { Elevations, GeowebColorPalette } from './types';
|
|
4
|
-
export declare const hex2rgba: (hex: string, alpha?: number) => string;
|
|
5
|
-
export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
|
|
6
|
-
export declare const createShadows: (elevations: Elevations) => Shadows;
|
|
7
|
-
export declare const breakpoints: {
|
|
8
|
-
mobile: number;
|
|
9
|
-
tablet: number;
|
|
10
|
-
desktop: number;
|
|
11
|
-
dekstopHD: number;
|
|
12
|
-
dekstopHDWide: number;
|
|
13
|
-
};
|
|
14
|
-
export declare const createTheme: (paletteType: PaletteMode, geowebColors: GeowebColorPalette, shadows: Shadows) => Theme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|