@opengeoweb/shared 2.3.0 → 2.5.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.
Files changed (27) hide show
  1. package/index.esm.js +327 -146
  2. package/index.umd.js +332 -133
  3. package/lib/components/AlertBanner/AlertBanner.d.ts +1 -0
  4. package/lib/components/AlertBanner/AlertBanner.stories.d.ts +9 -1
  5. package/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +10 -2
  6. package/lib/components/Manager/EnableButton/EnableButton.d.ts +8 -0
  7. package/lib/components/{DraggableDialog/DraggableDialog.spec.d.ts → Manager/EnableButton/EnableButton.spec.d.ts} +0 -0
  8. package/lib/components/Manager/EnableButton/EnableButton.stories.d.ts +13 -0
  9. package/lib/components/Manager/EnableButton/index.d.ts +1 -0
  10. package/lib/components/Manager/ManagerButton/ManagerButton.d.ts +13 -0
  11. package/lib/components/Manager/ManagerButton/ManagerButton.spec.d.ts +1 -0
  12. package/lib/components/Manager/ManagerButton/ManagerButton.stories.d.ts +13 -0
  13. package/lib/components/Manager/ManagerButton/index.d.ts +1 -0
  14. package/lib/components/Manager/ManagerDeleteButton/ManagerDeleteButton.d.ts +8 -0
  15. package/lib/components/Manager/ManagerDeleteButton/ManagerDeleteButton.spec.d.ts +1 -0
  16. package/lib/components/Manager/ManagerDeleteButton/ManagerDeleteButton.stories.d.ts +13 -0
  17. package/lib/components/Manager/ManagerDeleteButton/index.d.ts +1 -0
  18. package/lib/components/Manager/index.d.ts +4 -0
  19. package/lib/components/Manager/styles.d.ts +5 -0
  20. package/lib/components/ToolContainer/ToolContainerDraggable.d.ts +6 -0
  21. package/lib/components/ToolContainer/index.d.ts +1 -0
  22. package/lib/components/components.stories.d.ts +0 -1
  23. package/lib/components/index.d.ts +1 -1
  24. package/package.json +3 -3
  25. package/lib/components/DraggableDialog/DraggableDialog.d.ts +0 -16
  26. package/lib/components/DraggableDialog/DraggableDialog.stories.d.ts +0 -6
  27. package/lib/components/DraggableDialog/index.d.ts +0 -1
@@ -1,6 +1,14 @@
1
1
  import * as React from 'react';
2
- export declare const ConfirmationDialogExample: () => React.ReactElement;
3
- export declare const ConfirmationDialogSnapshot: {
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const ConfirmationDialogCustom: () => React.ReactElement;
7
+ export declare const ConfirmationDialogLight: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
11
+ export declare const ConfirmationDialogDark: {
4
12
  (): React.ReactElement;
5
13
  storyName: string;
6
14
  };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface EnableLayerProps {
3
+ isEnabled?: boolean;
4
+ title: string;
5
+ onChangeEnableLayer: (enable: boolean) => void;
6
+ }
7
+ export declare const EnableButton: React.FC<EnableLayerProps>;
8
+ 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,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,8 @@
1
+ import * as React from 'react';
2
+ interface DeleteButtonProps {
3
+ tooltipTitle: string;
4
+ onClickDelete: () => void;
5
+ isEnabled?: boolean;
6
+ }
7
+ export declare const ManagerDeleteButton: React.FC<DeleteButtonProps>;
8
+ 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,4 @@
1
+ export * from './ManagerButton';
2
+ export * from './ManagerDeleteButton';
3
+ export * from './EnableButton';
4
+ export * from './styles';
@@ -0,0 +1,5 @@
1
+ export interface ManagerButtonStyle {
2
+ isActive?: boolean;
3
+ isEnabled?: boolean;
4
+ isAccessible?: boolean;
5
+ }
@@ -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';
@@ -1,5 +1,4 @@
1
1
  export * from './AppHeader/AppHeader.stories';
2
- export * from './ConfirmationDialog/ConfirmationDialog.stories';
3
2
  export * from './ErrorBoundary/ErrorBoundary.stories';
4
3
  declare const _default: {
5
4
  title: string;
@@ -8,7 +8,7 @@ export * from './ErrorBoundary';
8
8
  export * from './UserMenu';
9
9
  export * from './ToolContainer';
10
10
  export * from './CustomSlider';
11
- export * from './DraggableDialog';
12
11
  export * from './CustomToggleButton';
13
12
  export * from './ToolButton';
14
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.0",
3
+ "version": "2.5.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.3.0",
17
+ "@opengeoweb/theme": "2.5.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.3.0",
23
+ "@opengeoweb/form-fields": "2.5.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,6 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const DraggableDialogOldTheme: () => React.ReactElement;
@@ -1 +0,0 @@
1
- export { default as DraggableDialog, Z_INDEX_TOP, Z_INDEX_BOTTOM, } from './DraggableDialog';