@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.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Theme as MUITheme } from '@mui/material';
3
- import { ThemeTypes } from './types';
3
+ import { ThemeTypes } from '../../types';
4
4
  interface ThemeContextProps {
5
5
  toggleTheme?: () => void;
6
6
  isDark?: boolean;
@@ -1,5 +1 @@
1
- export { GWTheme } from './gwTheme';
2
1
  export * from './ThemeContext';
3
- export { lightTheme } from './lightTheme';
4
- export { darkTheme } from './darkTheme';
5
- export * from './types';
@@ -1,4 +1,11 @@
1
1
  import * as React from 'react';
2
+ export interface ExampleRow {
3
+ name: string;
4
+ calories: number;
5
+ fat: number;
6
+ carbs: number;
7
+ protein: number;
8
+ }
2
9
  export declare const TableDemo: React.FC;
3
10
  export declare const Table: {
4
11
  (): React.ReactElement;
@@ -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?: CSSProperties['color'];
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 { ButtonStyles, ButtonStyle } from './types';
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,3 @@
1
+ import { Elevations, GeowebColorPalette } from '../../types';
2
+ export declare const colors: GeowebColorPalette;
3
+ export declare const elevations: Elevations;
@@ -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,3 @@
1
+ import { Elevations, GeowebColorPalette } from '../../types';
2
+ export declare const colors: GeowebColorPalette;
3
+ export declare const elevations: Elevations;
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/theme",
3
- "version": "4.16.0",
3
+ "version": "4.18.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,3 +0,0 @@
1
- import { GeowebColorPalette } from './types';
2
- export declare const colors: GeowebColorPalette;
3
- export declare const darkTheme: import("@mui/material").Theme;
@@ -1,3 +0,0 @@
1
- import { GeowebColorPalette } from './types';
2
- export declare const colors: GeowebColorPalette;
3
- export declare const lightTheme: import("@mui/material").Theme;
@@ -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;