@opengeoweb/theme 14.0.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/theme",
3
- "version": "14.0.1",
3
+ "version": "14.1.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
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 * as React from 'react';
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,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  interface StoryHeaderProps {
3
3
  title: string;
4
4
  }
@@ -1,6 +1,7 @@
1
- import * as React from 'react';
2
- import { Theme as MUITheme } from '@mui/material';
3
- import { NamedTheme, ThemeTypes } from '../../types';
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;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { StoryObj } from '@storybook/react-webpack5';
2
+ import React from 'react';
3
3
  import * as IconList from '../components/Icons';
4
4
  type Story = StoryObj<typeof IconList>;
5
5
  declare const _default: {
@@ -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,3 +1,3 @@
1
- import { Elevations, GeowebColorPalette } from '../../../types';
1
+ import type { Elevations, GeowebColorPalette } from '../../../types';
2
2
  export declare const colors: GeowebColorPalette;
3
3
  export declare const elevations: Elevations;
@@ -1,3 +1,3 @@
1
- import { Elevations, GeowebColorPalette } from '../../../types';
1
+ import type { Elevations, GeowebColorPalette } from '../../../types';
2
2
  export declare const colors: GeowebColorPalette;
3
3
  export declare const elevations: Elevations;
@@ -1,3 +1,3 @@
1
- import { Elevations, GeowebColorPalette } from '../../../types';
1
+ import type { Elevations, GeowebColorPalette } from '../../../types';
2
2
  export declare const colors: GeowebColorPalette;
3
3
  export declare const elevations: Elevations;
@@ -1,5 +1,6 @@
1
1
  import { colors as colorsLight, elevations as elevationsLight } from './light/lightTheme';
2
- import { NamedTheme, ThemeTypes } from '../../types';
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;
@@ -1,3 +1,3 @@
1
- import { Elevations, GeowebColorPalette } from '../../../types';
1
+ import type { Elevations, GeowebColorPalette } from '../../../types';
2
2
  export declare const colors: GeowebColorPalette;
3
3
  export declare const elevations: Elevations;
@@ -1,3 +1,3 @@
1
- import { Elevations, GeowebColorPalette } from '../../../types';
1
+ import type { Elevations, GeowebColorPalette } from '../../../types';
2
2
  export declare const colors: GeowebColorPalette;
3
3
  export declare const elevations: Elevations;
@@ -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;