@opengeoweb/theme 12.9.1 → 12.11.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": "12.9.1",
3
+ "version": "12.11.0",
4
4
  "description": "GeoWeb Theme library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,6 +20,9 @@
20
20
  "@emotion/react": "*",
21
21
  "@emotion/styled": "*"
22
22
  },
23
+ "devDependencies": {
24
+ "eslint-plugin-storybook": "9.0.17"
25
+ },
23
26
  "module": "./index.esm.js",
24
27
  "type": "module",
25
28
  "main": "./index.esm.js",
@@ -1,5 +1,5 @@
1
1
  import { Accordion as MuiAccordion } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiAccordion>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Avatar as MuiAvatar } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiAvatar>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Backdrop as MuiBackdrop } from '@mui/material';
3
- import type { StoryObj } from '@storybook/react';
3
+ import type { StoryObj } from '@storybook/react-webpack5';
4
4
  type Story = StoryObj<typeof MuiBackdrop>;
5
5
  declare const _default: {
6
6
  title: string;
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
2
  import { breakpoints } from '../utils/createTheme';
3
3
  type Story = StoryObj<typeof breakpoints>;
4
4
  declare const _default: {
@@ -1,5 +1,5 @@
1
1
  import { Button } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof Button>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Card } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof Card>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Typography } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof Typography>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Typography } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof Typography>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Box } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof Box>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { IconButton } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof IconButton>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
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
1
  import { List as MuiList } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiList>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { MenuItem as MuiMenuItem } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiMenuItem>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Select as MuiSelect } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiSelect>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Slider as MuiSlider } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiSlider>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Snackbar as MuiSnackbar } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiSnackbar>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Switch as MuiSwitch } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiSwitch>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Table as MuiTable } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiTable>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Tabs as MuiTabs } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiTabs>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { TextField as MuiTextField } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiTextField>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { ToggleButton } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof ToggleButton>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Tooltip } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof Tooltip>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
1
  import { Typography as MuiTypography } from '@mui/material';
2
- import type { StoryObj } from '@storybook/react';
2
+ import type { StoryObj } from '@storybook/react-webpack5';
3
3
  type Story = StoryObj<typeof MuiTypography>;
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Theme } from '@mui/material/styles';
3
2
  import { SxProps } from '@mui/system';
4
3
  export interface CSSProperties extends React.CSSProperties {
@@ -5,6 +5,6 @@ export declare const defaultButtonStyle: (button: ButtonStyle) => CSSObject;
5
5
  export declare const buttonStyle: (button: ButtonStyle) => CSSObject;
6
6
  export declare const iconButtonStyle: (button: ButtonStyle) => CSSObject;
7
7
  type PartialButtonVariants = Partial<Record<ButtonVariant, ButtonStyle>>;
8
- export declare const buttonVariants: (buttons: PartialButtonVariants, stylingFn?: (button: ButtonStyle) => CSSObject) => ComponentsVariants['MuiButton'];
9
- export declare const variantsToClassName: (buttonVariants: ComponentsVariants['MuiButton']) => CSSObject;
8
+ export declare const buttonVariants: (buttons: PartialButtonVariants, stylingFn?: (button: ButtonStyle) => CSSObject) => ComponentsVariants["MuiButton"];
9
+ export declare const variantsToClassName: (buttonVariants: ComponentsVariants["MuiButton"]) => CSSObject;
10
10
  export {};