@opengeoweb/shared 2.14.0 → 4.0.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,2 +1,13 @@
1
1
  import React from 'react';
2
- export declare const AppHeaders: () => React.ReactElement;
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const AppHeaderDark: {
7
+ (): React.ReactElement;
8
+ storyName: string;
9
+ };
10
+ export declare const AppHeaderLight: {
11
+ (): React.ReactElement;
12
+ storyName: string;
13
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface AvatarProps {
3
+ children: React.ReactNode;
4
+ size?: 'small' | 'large';
5
+ }
6
+ declare const Avatar: React.FC<AvatarProps>;
7
+ export default Avatar;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const AvatarLight: {
7
+ (): React.ReactElement;
8
+ storyName: string;
9
+ };
10
+ export declare const AvatarDark: {
11
+ (): React.ReactElement;
12
+ storyName: string;
13
+ };
@@ -0,0 +1 @@
1
+ export { default as Avatar } from './Avatar';
@@ -1,6 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { SliderProps } from '@mui/material';
3
- export declare const sliderStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"sliderHeader">;
3
+ export declare const sliderHeaderStyle: {
4
+ fontFamily: string;
5
+ fontSize: number;
6
+ color: string;
7
+ padding: string;
8
+ };
4
9
  interface CustomSliderProps extends Omit<SliderProps, 'onChange'> {
5
10
  onChange: (event: Event, newValue: number) => void;
6
11
  shouldAutoFocus?: boolean;
@@ -3,7 +3,6 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const CustomSliderComponent: () => React.ReactElement;
7
6
  export declare const CustomSliderLightTheme: {
8
7
  (): React.ReactElement;
9
8
  storyName: string;
@@ -1 +1 @@
1
- export { CustomSlider, sliderStyles } from './CustomSlider';
1
+ export { CustomSlider, sliderHeaderStyle } from './CustomSlider';
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import './ErrorBoundary.css';
3
2
  export declare const ErrorBoundaryDemo: {
4
3
  (): React.ReactElement;
5
4
  storyName: string;
@@ -1,11 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { IconButtonProps } from '@mui/material';
3
- export interface ManagerButtonStyle {
4
- isActive?: boolean;
5
- isEnabled?: boolean;
6
- isAccessible?: boolean;
7
- }
8
- interface ManagerButtonProps extends IconButtonProps {
3
+ export interface ManagerButtonProps extends IconButtonProps {
9
4
  tooltipTitle: string;
10
5
  onClick?: (event: React.MouseEvent) => void;
11
6
  isActive?: boolean;
@@ -15,4 +10,3 @@ interface ManagerButtonProps extends IconButtonProps {
15
10
  isAccessible?: boolean;
16
11
  }
17
12
  export declare const ManagerButton: React.FC<ManagerButtonProps>;
18
- export {};
@@ -1,4 +1,3 @@
1
- export * from './AppHeader/AppHeader.stories';
2
1
  export * from './ErrorBoundary/ErrorBoundary.stories';
3
2
  declare const _default: {
4
3
  title: string;
@@ -16,3 +16,4 @@ export * from './ManagerDeleteButton';
16
16
  export * from './EnableButton';
17
17
  export * from './AlertIcon';
18
18
  export * from './TooltipSelect';
19
+ export * from './Avatar';
@@ -1,3 +1,7 @@
1
1
  import { AxiosError } from 'axios';
2
+ export declare const DEFAULT_ERROR_MESSAGE = "An error has occurred";
2
3
  export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError<any, any>;
3
4
  export declare const getAxiosErrorMessage: (error: AxiosError) => string;
5
+ export declare const getErrorMessage: (error: Error | AxiosError) => string;
6
+ export declare const getAxiosWarningMessage: (error: AxiosError) => string;
7
+ export declare const getWarningMessage: (error: AxiosError | Error) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "2.14.0",
3
+ "version": "4.0.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,12 +14,11 @@
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
16
  "@mui/material": "^5.2.8",
17
- "@opengeoweb/theme": "2.14.0",
18
- "@mui/styles": "^5.2.3",
17
+ "@opengeoweb/theme": "4.0.0",
19
18
  "react-draggable": "^4.4.3",
20
19
  "re-resizable": "^6.9.0",
21
20
  "lodash": "^4.17.20",
22
- "@opengeoweb/form-fields": "2.14.0",
21
+ "@opengeoweb/form-fields": "4.0.0",
23
22
  "react-hook-form": "^6.12.1",
24
23
  "moment": "^2.29.0",
25
24
  "moment-timezone": "^0.5.31",