@mtes-mct/monitor-ui 3.7.1 → 4.0.1
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/CHANGELOG.md +23 -0
- package/cypress/index.js +11 -3
- package/cypress/index.js.map +1 -1
- package/fields/Checkbox.d.ts +4 -2
- package/fields/MultiCheckbox.d.ts +5 -4
- package/fields/MultiRadio.d.ts +5 -4
- package/fields/MultiSelect.d.ts +6 -4
- package/fields/NumberInput.d.ts +3 -2
- package/fields/Search.d.ts +7 -7
- package/fields/Select.d.ts +6 -4
- package/fields/TextInput.d.ts +3 -2
- package/fields/Textarea.d.ts +3 -2
- package/formiks/FormikCheckbox.d.ts +1 -1
- package/formiks/FormikMultiCheckbox.d.ts +3 -2
- package/formiks/FormikMultiRadio.d.ts +3 -2
- package/formiks/FormikMultiSelect.d.ts +3 -2
- package/formiks/FormikNumberInput.d.ts +1 -1
- package/formiks/FormikSearch.d.ts +3 -2
- package/formiks/FormikSelect.d.ts +3 -2
- package/formiks/FormikTextInput.d.ts +1 -1
- package/formiks/FormikTextarea.d.ts +1 -1
- package/index.d.ts +2 -1
- package/index.js +17331 -511
- package/index.js.map +1 -1
- package/package.json +2 -3
- package/types.d.ts +13 -2
- package/utils/getRsuiteDataFromOptions.d.ts +2 -0
- package/utils/toggleInCollection.d.ts +6 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { NumberInputProps } from '../fields/NumberInput';
|
|
2
|
-
export type FormikNumberInputProps = Omit<NumberInputProps, '
|
|
2
|
+
export type FormikNumberInputProps = Omit<NumberInputProps, 'error' | 'onChange' | 'value'>;
|
|
3
3
|
export declare function FormikNumberInput({ name, ...originalProps }: FormikNumberInputProps): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { SearchProps } from '../fields/Search';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
import type { OptionValueType } from '../types';
|
|
3
|
+
export type FormikSearchProps<OptionValue extends OptionValueType = string> = Omit<SearchProps<OptionValue>, 'defaultValue' | 'error' | 'onChange'>;
|
|
4
|
+
export declare function FormikSearch<OptionValue extends OptionValueType = string>({ name, ...originalProps }: FormikSearchProps<OptionValue>): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { SelectProps } from '../fields/Select';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
import type { OptionValueType } from '../types';
|
|
3
|
+
export type FormikSelectProps<OptionValue extends OptionValueType = string> = Omit<SelectProps<OptionValue>, 'error' | 'onChange' | 'value'>;
|
|
4
|
+
export declare function FormikSelect<OptionValue extends OptionValueType = string>({ name, ...originalProps }: FormikSelectProps<OptionValue>): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TextInputProps } from '../fields/TextInput';
|
|
2
|
-
export type FormikTextInputProps = Omit<TextInputProps, '
|
|
2
|
+
export type FormikTextInputProps = Omit<TextInputProps, 'error' | 'onChange' | 'value'>;
|
|
3
3
|
export declare function FormikTextInput({ name, ...originalProps }: FormikTextInputProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TextareaProps } from '../fields/Textarea';
|
|
2
|
-
export type FormikTextareaProps = Omit<TextareaProps, '
|
|
2
|
+
export type FormikTextareaProps = Omit<TextareaProps, 'error' | 'onChange' | 'value'>;
|
|
3
3
|
export declare function FormikTextarea({ name, ...originalProps }: FormikTextareaProps): JSX.Element;
|
package/index.d.ts
CHANGED
|
@@ -47,12 +47,13 @@ export { usePrevious } from './hooks/usePrevious';
|
|
|
47
47
|
export { dayjs } from './utils/dayjs';
|
|
48
48
|
export { getCoordinates, coordinatesAreDistinct } from './utils/coordinates';
|
|
49
49
|
export { getLocalizedDayjs } from './utils/getLocalizedDayjs';
|
|
50
|
+
export { getPseudoRandomString } from './utils/getPseudoRandomString';
|
|
50
51
|
export { getUtcizedDayjs } from './utils/getUtcizedDayjs';
|
|
51
52
|
export { noop } from './utils/noop';
|
|
52
53
|
export { isNumeric } from './utils/isNumeric';
|
|
53
54
|
export { stopMouseEventPropagation } from './utils/stopMouseEventPropagation';
|
|
54
55
|
export type { PartialTheme, Theme } from './theme';
|
|
55
|
-
export type { Coordinates, DateAsStringRange, DateRange, IconProps, Option, Undefine } from './types';
|
|
56
|
+
export type { Coordinates, DateAsStringRange, DateRange, IconProps, Option, OptionValueType, Undefine } from './types';
|
|
56
57
|
export type { DropdownProps, DropdownItemProps } from './components/Dropdown';
|
|
57
58
|
export type { SingleTagProps } from './components/SingleTag';
|
|
58
59
|
export type { ButtonProps } from './elements/Button';
|