@opengeoweb/theme 14.0.0 → 14.1.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.esm.js +667 -685
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/components/Icons/Icons.d.ts +2 -2
- package/src/lib/components/Storybook/StoryHeader.d.ts +1 -1
- package/src/lib/components/Theme/ThemeContext.d.ts +4 -3
- package/src/lib/stories/Backdrop.stories.d.ts +1 -1
- package/src/lib/stories/Icons.stories.d.ts +1 -1
- package/src/lib/types.d.ts +2 -2
- package/src/lib/utils/buttonStyles.d.ts +2 -2
- package/src/lib/utils/createTheme.d.ts +2 -2
- package/src/lib/utils/themes/BackdropDecoration.d.ts +1 -1
- package/src/lib/utils/themes/dark/darkTheme.d.ts +1 -1
- package/src/lib/utils/themes/demo/demoTheme.d.ts +1 -1
- package/src/lib/utils/themes/eumetnet/eumetnetTheme.d.ts +1 -1
- package/src/lib/utils/themes/index.d.ts +2 -1
- package/src/lib/utils/themes/light/lightTheme.d.ts +1 -1
- package/src/lib/utils/themes/xmas2024/xmas2024Theme.d.ts +1 -1
- package/src/lib/utils/utils.d.ts +2 -2
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as Icons from './lib/components/Icons';
|
|
2
1
|
import themeTranslations from '../locales/theme.json';
|
|
2
|
+
import * as Icons from './lib/components/Icons';
|
|
3
3
|
export { Icons };
|
|
4
4
|
export * from './lib/components/Theme';
|
|
5
5
|
export { parseColors, createShadows } from './lib/utils/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SvgIconProps } from '@mui/material';
|
|
2
|
-
import
|
|
1
|
+
import type { SvgIconProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
export declare const SplitHorizontal: React.FC;
|
|
4
4
|
export declare const SplitVertical: React.FC;
|
|
5
5
|
export declare const Expand: React.FC;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { NamedTheme
|
|
1
|
+
import type { Theme as MUITheme } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { NamedTheme } from '../../types';
|
|
4
|
+
import { ThemeTypes } from '../../types';
|
|
4
5
|
interface ThemeContextProps {
|
|
5
6
|
setThemeName?: (themeName: ThemeTypes) => void;
|
|
6
7
|
namedTheme?: NamedTheme;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Backdrop as MuiBackdrop } from '@mui/material';
|
|
3
2
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
type Story = StoryObj<typeof MuiBackdrop>;
|
|
5
5
|
declare const _default: {
|
|
6
6
|
title: string;
|
package/src/lib/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
import { SxProps } from '@mui/system';
|
|
1
|
+
import type { Theme } from '@mui/material/styles';
|
|
2
|
+
import type { SxProps } from '@mui/system';
|
|
3
3
|
export interface CSSProperties extends React.CSSProperties {
|
|
4
4
|
rgba?: string;
|
|
5
5
|
opacity?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentsVariants, CSSObject } from '@mui/material';
|
|
2
|
-
import { ButtonStyle, ButtonVariant } from '../types';
|
|
1
|
+
import type { ComponentsVariants, CSSObject } from '@mui/material';
|
|
2
|
+
import type { ButtonStyle, ButtonVariant } 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) => CSSObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Theme, PaletteMode } from '@mui/material';
|
|
2
|
-
import { Elevations, GeowebColorPalette } from '../types';
|
|
1
|
+
import type { Theme, PaletteMode } from '@mui/material';
|
|
2
|
+
import type { Elevations, GeowebColorPalette } from '../types';
|
|
3
3
|
export declare const breakpoints: {
|
|
4
4
|
mobile: number;
|
|
5
5
|
tablet: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './xmas2024/snowflake.css';
|
|
3
|
-
import { CSSProperties } from '../../types';
|
|
3
|
+
import type { CSSProperties } from '../../types';
|
|
4
4
|
export declare const OverlayStyle: () => CSSProperties | undefined;
|
|
5
5
|
export declare const ContainerStyle: () => CSSProperties | undefined;
|
|
6
6
|
export declare const BackdropStyle: () => CSSProperties | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { colors as colorsLight, elevations as elevationsLight } from './light/lightTheme';
|
|
2
|
-
import { NamedTheme
|
|
2
|
+
import type { NamedTheme } from '../../types';
|
|
3
|
+
import { ThemeTypes } from '../../types';
|
|
3
4
|
export declare const getThemeByName: (themeName: ThemeTypes) => NamedTheme;
|
|
4
5
|
export declare const lightTheme: import("@mui/material").Theme;
|
|
5
6
|
export declare const darkTheme: import("@mui/material").Theme;
|
package/src/lib/utils/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Shadows } from '@mui/material/styles';
|
|
2
|
-
import { Elevations, GeowebColorPalette } from '../types';
|
|
1
|
+
import type { Shadows } from '@mui/material/styles';
|
|
2
|
+
import type { Elevations, GeowebColorPalette } from '../types';
|
|
3
3
|
export declare const hex2rgba: (hex: string, alpha?: number) => string;
|
|
4
4
|
export declare const parseColors: (colors: GeowebColorPalette) => GeowebColorPalette;
|
|
5
5
|
export declare const createShadows: (elevations: Elevations) => Shadows;
|