@opengeoweb/shared 2.4.0 → 2.6.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 +376 -106
- package/index.umd.js +404 -116
- package/lib/components/AlertBanner/AlertBanner.d.ts +1 -0
- package/lib/components/AlertIcon/AlertIcon.d.ts +8 -0
- package/lib/components/AlertIcon/index.d.ts +1 -0
- package/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +10 -2
- package/lib/components/{Manager/EnableButton → EnableButton}/EnableButton.d.ts +0 -0
- package/lib/components/{Manager/EnableButton → EnableButton}/EnableButton.spec.d.ts +0 -0
- package/lib/components/{Manager/EnableButton → EnableButton}/EnableButton.stories.d.ts +0 -0
- package/lib/components/{Manager/EnableButton → EnableButton}/index.d.ts +0 -0
- package/lib/components/{Manager/ManagerButton → ManagerButton}/ManagerButton.d.ts +5 -0
- package/lib/components/{Manager/ManagerButton → ManagerButton}/ManagerButton.spec.d.ts +0 -0
- package/lib/components/{Manager/ManagerButton → ManagerButton}/ManagerButton.stories.d.ts +0 -0
- package/lib/components/{Manager/ManagerButton → ManagerButton}/index.d.ts +0 -0
- package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/ManagerDeleteButton.d.ts +0 -0
- package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/ManagerDeleteButton.spec.d.ts +0 -0
- package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/ManagerDeleteButton.stories.d.ts +0 -0
- package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/index.d.ts +0 -0
- package/lib/components/ToolContainer/ToolContainerDraggable.d.ts +1 -0
- package/lib/components/ToolContainer/types.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +16 -0
- package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +13 -0
- package/lib/components/TooltipSelect/index.d.ts +2 -0
- package/lib/components/TooltipSelect/tooltipContainerStyles.d.ts +2 -0
- package/lib/components/components.stories.d.ts +0 -1
- package/lib/components/index.d.ts +5 -1
- package/lib/hooks/useDraftFormHelpers/useDraftFormHelpers.d.ts +1 -1
- package/package.json +3 -3
- package/lib/components/Manager/index.d.ts +0 -4
- package/lib/components/Manager/styles.d.ts +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AlertIcon } from './AlertIcon';
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
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
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,10 @@
|
|
|
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
|
+
}
|
|
3
8
|
interface ManagerButtonProps extends IconButtonProps {
|
|
4
9
|
tooltipTitle: string;
|
|
5
10
|
onClick?: (event: React.MouseEvent) => void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/ManagerDeleteButton.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -19,6 +19,7 @@ interface DraggableComponentProps extends Omit<ResizableComponentProps, 'bounds'
|
|
|
19
19
|
bounds?: 'parent' | string;
|
|
20
20
|
order?: number;
|
|
21
21
|
source?: 'app' | 'module';
|
|
22
|
+
leftComponent?: React.ReactNode;
|
|
22
23
|
}
|
|
23
24
|
declare const DraggableComponent: React.FC<DraggableComponentProps>;
|
|
24
25
|
export default DraggableComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SelectProps } from '@mui/material';
|
|
3
|
+
declare type ListELement = {
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
interface TooltipSelectProps extends SelectProps {
|
|
7
|
+
tooltip: string;
|
|
8
|
+
list?: ListELement[];
|
|
9
|
+
currentIndex?: number;
|
|
10
|
+
onChangeMouseWheel?: (element: ListELement) => void;
|
|
11
|
+
requiresCtrlToChange?: boolean;
|
|
12
|
+
isEnabled?: boolean;
|
|
13
|
+
noStyling?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const TooltipSelect: React.FC<TooltipSelectProps>;
|
|
16
|
+
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 TooltipSelectLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const TooltipSelectDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -11,4 +11,8 @@ export * from './CustomSlider';
|
|
|
11
11
|
export * from './CustomToggleButton';
|
|
12
12
|
export * from './ToolButton';
|
|
13
13
|
export * from './ToggleMenu';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './ManagerButton';
|
|
15
|
+
export * from './ManagerDeleteButton';
|
|
16
|
+
export * from './EnableButton';
|
|
17
|
+
export * from './AlertIcon';
|
|
18
|
+
export * from './TooltipSelect';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const HIDDEN_INPUT_HELPER_IS_DRAFT = "IS_DRAFT";
|
|
3
|
-
export declare const useDraftFormHelpers: () => {
|
|
3
|
+
export declare const useDraftFormHelpers: (isDefaultDraft?: boolean) => {
|
|
4
4
|
isRequired: (value: string) => boolean | string;
|
|
5
5
|
toggleIsDraft: (isDraft: boolean) => void;
|
|
6
6
|
isDraft: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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.6.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.6.0",
|
|
24
24
|
"react-hook-form": "^6.12.1",
|
|
25
25
|
"moment": "^2.29.0",
|
|
26
26
|
"moment-timezone": "^0.5.31",
|