@opengeoweb/shared 2.2.0 → 2.4.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 +474 -172
- package/index.umd.js +498 -176
- package/lib/components/AlertBanner/AlertBanner.d.ts +1 -0
- package/lib/components/AlertBanner/AlertBanner.stories.d.ts +9 -1
- package/lib/components/CustomToggleButton/CustomToggleButton.d.ts +8 -0
- package/lib/components/{DraggableDialog/DraggableDialog.spec.d.ts → CustomToggleButton/CustomToggleButton.spec.d.ts} +0 -0
- package/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +13 -0
- package/lib/components/CustomToggleButton/index.d.ts +1 -0
- package/lib/components/Manager/EnableButton/EnableButton.d.ts +8 -0
- package/lib/components/Manager/EnableButton/EnableButton.spec.d.ts +1 -0
- package/lib/components/Manager/EnableButton/EnableButton.stories.d.ts +13 -0
- package/lib/components/Manager/EnableButton/index.d.ts +1 -0
- package/lib/components/Manager/ManagerButton/ManagerButton.d.ts +13 -0
- package/lib/components/Manager/ManagerButton/ManagerButton.spec.d.ts +1 -0
- package/lib/components/Manager/ManagerButton/ManagerButton.stories.d.ts +13 -0
- package/lib/components/Manager/ManagerButton/index.d.ts +1 -0
- package/lib/components/Manager/ManagerDeleteButton/ManagerDeleteButton.d.ts +8 -0
- package/lib/components/Manager/ManagerDeleteButton/ManagerDeleteButton.spec.d.ts +1 -0
- package/lib/components/Manager/ManagerDeleteButton/ManagerDeleteButton.stories.d.ts +13 -0
- package/lib/components/Manager/ManagerDeleteButton/index.d.ts +1 -0
- package/lib/components/Manager/index.d.ts +4 -0
- package/lib/components/Manager/styles.d.ts +5 -0
- package/lib/components/ToggleMenu/ToggleMenu.d.ts +17 -0
- package/lib/components/ToggleMenu/ToggleMenu.spec.d.ts +1 -0
- package/lib/components/ToggleMenu/ToggleMenu.stories.d.ts +7 -0
- package/lib/components/ToggleMenu/index.d.ts +1 -0
- package/lib/components/ToolButton/ToolButton.d.ts +11 -0
- package/lib/components/ToolButton/ToolButton.spec.d.ts +1 -0
- package/lib/components/ToolButton/ToolButton.stories.d.ts +13 -0
- package/lib/components/ToolButton/index.d.ts +1 -0
- package/lib/components/ToolContainer/ToolContainerDraggable.d.ts +6 -0
- package/lib/components/ToolContainer/index.d.ts +1 -0
- package/lib/components/index.d.ts +4 -1
- package/package.json +3 -3
- package/lib/components/DraggableDialog/DraggableDialog.d.ts +0 -16
- package/lib/components/DraggableDialog/DraggableDialog.stories.d.ts +0 -6
- package/lib/components/DraggableDialog/index.d.ts +0 -1
|
@@ -3,7 +3,15 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const AlertBannersGWTheme: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const AlertBannersLight: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const AlertBannersDark: {
|
|
7
15
|
(): React.ReactElement;
|
|
8
16
|
storyName: string;
|
|
9
17
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
3
|
+
import { ButtonVariant } from '@opengeoweb/theme';
|
|
4
|
+
export interface CustomToggleButtonProps extends Omit<ToggleButtonProps, 'value'> {
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
value?: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare const CustomToggleButton: React.FC<CustomToggleButtonProps>;
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const CustomToggleButtonLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const CustomToggleButtonDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CustomToggleButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const EnableButtonLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const EnableButtonDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EnableButton';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconButtonProps } from '@mui/material';
|
|
3
|
+
interface ManagerButtonProps extends IconButtonProps {
|
|
4
|
+
tooltipTitle: string;
|
|
5
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
isEnabled?: boolean;
|
|
8
|
+
icon: React.ReactNode;
|
|
9
|
+
testId: string;
|
|
10
|
+
isAccessible?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ManagerButton: React.FC<ManagerButtonProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ManagerButtonLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ManagerButtonDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ManagerButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ManagerDeleteButtonLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ManagerDeleteButtonDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ManagerDeleteButton';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
declare type MenuItemType = {
|
|
4
|
+
text: string;
|
|
5
|
+
action: () => void;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
interface ToggleMenuProps {
|
|
9
|
+
buttonTestId?: string;
|
|
10
|
+
menuPosition?: 'left' | 'bottom';
|
|
11
|
+
menuItems?: MenuItemType[];
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
buttonSx?: SxProps<Theme>;
|
|
14
|
+
tooltipTitle?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const ToggleMenu: React.FC<ToggleMenuProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ToggleMenu';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Theme, SxProps } from '@mui/material';
|
|
3
|
+
import { CustomToggleButtonProps } from '../CustomToggleButton';
|
|
4
|
+
export interface ToolButtonProps extends CustomToggleButtonProps {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
value?: unknown;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
}
|
|
11
|
+
export declare const ToolButton: React.FC<ToolButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ToolButtonLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ToolButtonDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ToolButton';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ResizableComponentProps, Size } from '../DraggableResizable/types';
|
|
3
3
|
import { HeaderSize } from './types';
|
|
4
|
+
export declare const calculateDialogSizeAndPosition: () => {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
};
|
|
4
10
|
interface DraggableComponentProps extends Omit<ResizableComponentProps, 'bounds'> {
|
|
5
11
|
onStartResize?: () => void;
|
|
6
12
|
isOpen?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ToolContainer } from './ToolContainer';
|
|
2
2
|
export { default as ToolContainerDraggable } from './ToolContainerDraggable';
|
|
3
|
+
export { calculateDialogSizeAndPosition } from './ToolContainerDraggable';
|
|
3
4
|
export { default as ToolHeader } from './ToolHeader';
|
|
4
5
|
export { default as ToolFooter } from './ToolFooter';
|
|
5
6
|
export * from './types';
|
|
@@ -8,4 +8,7 @@ export * from './ErrorBoundary';
|
|
|
8
8
|
export * from './UserMenu';
|
|
9
9
|
export * from './ToolContainer';
|
|
10
10
|
export * from './CustomSlider';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './CustomToggleButton';
|
|
12
|
+
export * from './ToolButton';
|
|
13
|
+
export * from './ToggleMenu';
|
|
14
|
+
export * from './Manager';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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,13 +14,13 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
16
|
"@mui/material": "^5.2.8",
|
|
17
|
-
"@opengeoweb/theme": "2.
|
|
17
|
+
"@opengeoweb/theme": "2.4.0",
|
|
18
18
|
"@mui/styles": "^5.2.3",
|
|
19
19
|
"@mui/icons-material": "^5.2.5",
|
|
20
20
|
"react-draggable": "^4.4.3",
|
|
21
21
|
"re-resizable": "^6.9.0",
|
|
22
22
|
"lodash": "^4.17.20",
|
|
23
|
-
"@opengeoweb/form-fields": "2.
|
|
23
|
+
"@opengeoweb/form-fields": "2.4.0",
|
|
24
24
|
"react-hook-form": "^6.12.1",
|
|
25
25
|
"moment": "^2.29.0",
|
|
26
26
|
"moment-timezone": "^0.5.31",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const Z_INDEX_TOP = 600;
|
|
3
|
-
export declare const Z_INDEX_BOTTOM = 550;
|
|
4
|
-
interface DraggableDialogProps {
|
|
5
|
-
handleClose: () => void;
|
|
6
|
-
title: string;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
dialogStyling?: {
|
|
9
|
-
dialogWidth?: string;
|
|
10
|
-
dialogMaxHeight?: string;
|
|
11
|
-
dialogTop?: string;
|
|
12
|
-
};
|
|
13
|
-
zIndex?: number;
|
|
14
|
-
}
|
|
15
|
-
declare const DraggableDialog: React.FC<DraggableDialogProps>;
|
|
16
|
-
export default DraggableDialog;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DraggableDialog, Z_INDEX_TOP, Z_INDEX_BOTTOM, } from './DraggableDialog';
|