@mtes-mct/monitor-ui 2.13.1 → 2.14.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.13.1",
4
+ "version": "2.14.0",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
@@ -0,0 +1,6 @@
1
+ import type { Promisable } from 'type-fest';
2
+ export type SingleTagProps = {
3
+ children: string;
4
+ onDelete: () => Promisable<void>;
5
+ };
6
+ export declare function SingleTag({ children, onDelete }: SingleTagProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { MultiCheckboxProps } from '../fields/MultiCheckbox';
2
- export type FormikMultiCheckboxProps = Omit<MultiCheckboxProps, 'defaultValue' | 'error' | 'onChange'>;
3
- export declare function FormikMultiCheckbox({ name, ...originalProps }: FormikMultiCheckboxProps): JSX.Element;
2
+ export type FormikMultiCheckboxProps<OptionValue = string> = Omit<MultiCheckboxProps<OptionValue>, 'defaultValue' | 'error' | 'onChange'>;
3
+ export declare function FormikMultiCheckbox<OptionValue = string>({ name, ...originalProps }: FormikMultiCheckboxProps<OptionValue>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { MultiRadioProps } from '../fields/MultiRadio';
2
- export type FormikMultiRadioProps = Omit<MultiRadioProps, 'defaultValue' | 'error' | 'onChange'>;
3
- export declare function FormikMultiRadio({ name, ...originalProps }: FormikMultiRadioProps): JSX.Element;
2
+ export type FormikMultiRadioProps<OptionValue = string> = Omit<MultiRadioProps<OptionValue>, 'defaultValue' | 'error' | 'onChange'>;
3
+ export declare function FormikMultiRadio<OptionValue = string>({ name, ...originalProps }: FormikMultiRadioProps<OptionValue>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { MultiSelectProps } from '../fields/MultiSelect';
2
- export type FormikMultiSelectProps = Omit<MultiSelectProps, 'defaultValue' | 'error' | 'onChange'>;
3
- export declare function FormikMultiSelect({ name, ...originalProps }: FormikMultiSelectProps): JSX.Element;
2
+ export type FormikMultiSelectProps<OptionValue = string> = Omit<MultiSelectProps<OptionValue>, 'defaultValue' | 'error' | 'onChange'>;
3
+ export declare function FormikMultiSelect<OptionValue = string>({ name, ...originalProps }: FormikMultiSelectProps<OptionValue>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { SelectProps } from '../fields/Select';
2
- export type FormikSelectProps = Omit<SelectProps, 'defaultValue' | 'error' | 'onChange'>;
3
- export declare function FormikSelect({ name, ...originalProps }: FormikSelectProps): JSX.Element;
2
+ export type FormikSelectProps<OptionValue = string> = Omit<SelectProps<OptionValue>, 'defaultValue' | 'error' | 'onChange'>;
3
+ export declare function FormikSelect<OptionValue = string>({ name, ...originalProps }: FormikSelectProps<OptionValue>): JSX.Element;
package/src/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { OnlyFontGlobalStyle } from './OnlyFontGlobalStyle';
4
4
  export { THEME } from './theme';
5
5
  export { ThemeProvider } from './ThemeProvider';
6
6
  export { Dropdown } from './components/Dropdown';
7
+ export { SingleTag } from './components/SingleTag';
7
8
  export { Button } from './elements/Button';
8
9
  export { Field } from './elements/Field';
9
10
  export { Fieldset } from './elements/Fieldset';
@@ -47,6 +48,7 @@ export { stopMouseEventPropagation } from './utils/stopMouseEventPropagation';
47
48
  export type { PartialTheme, Theme } from './theme';
48
49
  export type { DateAsStringRange, DateRange, IconProps, Option, Undefine } from './types';
49
50
  export type { DropdownProps, DropdownItemProps } from './components/Dropdown';
51
+ export type { SingleTagProps } from './components/SingleTag';
50
52
  export type { ButtonProps } from './elements/Button';
51
53
  export type { FieldProps } from './elements/Field';
52
54
  export type { FieldsetProps } from './elements/Fieldset';