@opengeoweb/shared 2.1.4 → 2.3.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.
@@ -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>;
@@ -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,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,7 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const ToggleMenuLight: () => React.ReactElement;
7
+ export declare const ToggleMenuDark: () => React.ReactElement;
@@ -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';
@@ -9,3 +9,6 @@ export * from './UserMenu';
9
9
  export * from './ToolContainer';
10
10
  export * from './CustomSlider';
11
11
  export * from './DraggableDialog';
12
+ export * from './CustomToggleButton';
13
+ export * from './ToolButton';
14
+ export * from './ToggleMenu';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "2.1.4",
3
+ "version": "2.3.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.1.4",
17
+ "@opengeoweb/theme": "2.3.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.1.4",
23
+ "@opengeoweb/form-fields": "2.3.0",
24
24
  "react-hook-form": "^6.12.1",
25
25
  "moment": "^2.29.0",
26
26
  "moment-timezone": "^0.5.31",