@opengeoweb/shared 9.11.0 → 9.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "9.11.0",
3
+ "version": "9.12.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": {
@@ -9,5 +9,5 @@ export interface CustomIconProps extends IconButtonProps {
9
9
  shouldShowAsDisabled?: boolean;
10
10
  tooltipProps?: TooltipProps;
11
11
  }
12
- export declare const CustomIconButton: React.FC<CustomIconProps>;
12
+ export declare const CustomIconButton: React.NamedExoticComponent<CustomIconProps>;
13
13
  export {};
@@ -11,6 +11,7 @@ export interface MenuItemType {
11
11
  action: (event: React.MouseEvent) => void;
12
12
  icon?: React.ReactNode;
13
13
  isDisabled?: boolean;
14
+ isSelected?: boolean;
14
15
  }
15
16
  interface ToggleMenuProps {
16
17
  buttonTestId?: string;
@@ -1,18 +1,19 @@
1
1
  import * as React from 'react';
2
2
  import { BaseSelectProps, SelectVariants } from '@mui/material';
3
+ import { SxProps } from '@mui/material/styles';
3
4
  interface ListELement {
4
5
  value: string;
5
6
  }
6
- type TooltipSelectProps = BaseSelectProps & {
7
+ type TooltipSelectProps = Omit<BaseSelectProps, 'sx'> & {
7
8
  tooltip: string;
8
9
  list?: ListELement[];
9
10
  currentIndex?: number;
10
11
  onChangeMouseWheel?: (element: ListELement) => void;
11
12
  requiresCtrlToChange?: boolean;
12
13
  isEnabled?: boolean;
13
- noStyling?: boolean;
14
14
  hasBackgroundColor?: boolean;
15
15
  variant?: SelectVariants;
16
+ additionalStyling?: SxProps;
16
17
  };
17
18
  export declare const TooltipSelect: React.FC<TooltipSelectProps>;
18
19
  export {};
@@ -1,2 +1 @@
1
1
  export * from './TooltipSelect';
2
- export * from './tooltipContainerStyles';
@@ -1,2 +0,0 @@
1
- import { SxProps, Theme } from '@mui/material';
2
- export declare const tooltipContainerStyles: (isEnabled: boolean, hasBackgroundColor?: boolean) => SxProps<Theme>;