@mtes-mct/monitor-ui 2.14.4 → 2.15.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mtes-mct/monitor-ui",
3
3
  "description": "Common React UI components and styles for Monitorfish and Monitorenv.",
4
- "version": "2.14.4",
4
+ "version": "2.15.0",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
@@ -7,7 +7,7 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
7
7
  isFullWidth?: boolean | undefined;
8
8
  size?: Size | undefined;
9
9
  };
10
- export declare function Button({ accent, children, Icon, isFullWidth, size, type, ...nativeProps }: ButtonProps): JSX.Element;
10
+ export declare function Button({ accent, children, Icon, isFullWidth, onClick, size, type, ...nativeProps }: ButtonProps): JSX.Element;
11
11
  export declare const PrimaryButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
12
12
  export declare const SecondaryButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
13
13
  export declare const TertiaryButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
@@ -9,4 +9,4 @@ export type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'chi
9
9
  iconSize?: number | undefined;
10
10
  size?: Size | undefined;
11
11
  };
12
- export declare function IconButton({ accent, color, Icon, iconSize, size, type, ...nativeProps }: IconButtonProps): JSX.Element;
12
+ export declare function IconButton({ accent, color, Icon, iconSize, onClick, size, type, ...nativeProps }: IconButtonProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { Option } from '../types';
2
2
  import type { TagPickerProps } from 'rsuite';
3
3
  import type { Promisable } from 'type-fest';
4
- export type MultiSelectProps<OptionValue = string> = Omit<TagPickerProps, 'as' | 'container' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'value'> & {
4
+ export type MultiSelectProps<OptionValue = string> = Omit<TagPickerProps, 'as' | 'container' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'open' | 'renderMenuItem' | 'value'> & {
5
5
  /** Used to pass something else than `window.document` as a base container to attach global events listeners. */
6
6
  baseContainer?: Document | HTMLDivElement | null | undefined;
7
7
  defaultValue?: OptionValue[] | undefined;
@@ -1,7 +1,7 @@
1
1
  import type { Option } from '../types';
2
2
  import type { SelectPickerProps } from 'rsuite';
3
3
  import type { Promisable } from 'type-fest';
4
- export type SelectProps<OptionValue = string> = Omit<SelectPickerProps<any>, 'as' | 'container' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'value'> & {
4
+ export type SelectProps<OptionValue = string> = Omit<SelectPickerProps<any>, 'as' | 'container' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'open' | 'renderMenuItem' | 'value'> & {
5
5
  /** Used to pass something else than `window.document` as a base container to attach global events listeners. */
6
6
  baseContainer?: Document | HTMLDivElement | null | undefined;
7
7
  defaultValue?: OptionValue | undefined;
@@ -1 +0,0 @@
1
- export {};