@mtes-mct/monitor-ui 3.2.0 → 3.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.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@mtes-mct/monitor-ui",
3
3
  "description": "Common React UI components and styles for Monitorfish and Monitorenv.",
4
- "version": "3.2.0",
4
+ "version": "3.3.0",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
8
8
  },
9
9
  "dependencies": {
10
- "@babel/runtime": "7.20.13",
10
+ "@babel/runtime": "7.21.0",
11
11
  "prop-types": "15.8.1",
12
12
  "tslib": "2.5.0",
13
13
  "use-debounce": "^9.0.3"
@@ -1,19 +0,0 @@
1
- import type { Option } from '../types';
2
- import type { AutoCompleteProps as RsuiteAutoCompleteProps } from 'rsuite';
3
- import type { Promisable } from 'type-fest';
4
- export type AutoCompleteProps = Omit<RsuiteAutoCompleteProps, 'as' | 'container' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'open' | 'onSelect' | 'value'> & {
5
- /** Used to pass something else than `window.document` as a base container to attach global events listeners. */
6
- baseContainer?: Document | HTMLDivElement | null | undefined;
7
- defaultValue?: string | undefined;
8
- error?: string | undefined;
9
- isLabelHidden?: boolean | undefined;
10
- isLight?: boolean | undefined;
11
- label: string;
12
- name: string;
13
- onChange?: ((nextValue: string | undefined) => Promisable<void>) | undefined;
14
- onQuery?: ((nextQuery: string | undefined) => Promisable<void>) | undefined;
15
- options?: Option[] | undefined;
16
- queryMap?: ((record: Record<string, any>) => Option) | undefined;
17
- queryUrl?: string | undefined;
18
- };
19
- export declare function AutoComplete({ baseContainer, defaultValue, error, isLabelHidden, isLight, label, onChange, onQuery, options, queryMap, queryUrl, ...originalProps }: AutoCompleteProps): JSX.Element;
@@ -1,3 +0,0 @@
1
- import type { AutoCompleteProps } from '../fields/AutoComplete';
2
- export type FormikAutoCompleteProps = Omit<AutoCompleteProps, 'defaultValue' | 'error' | 'onChange'>;
3
- export declare function FormikAutoComplete({ name, ...originalProps }: FormikAutoCompleteProps): JSX.Element;