@producteca/producteca-ui-kit 1.35.13 → 1.36.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.
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { OptionProps, SingleValueProps } from 'react-select';
|
|
3
|
-
import {
|
|
3
|
+
import { BaseSelectProps, SelectFieldProps, SelectOption, SelectOptionType } from './selectField.types';
|
|
4
4
|
|
|
5
5
|
export declare const Option: (props: OptionProps<SelectOption> & {
|
|
6
6
|
formatOption?: (option: SelectOption) => React.ReactNode;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
8
|
+
export declare const SingleValue: (props: SingleValueProps<SelectOption> & {
|
|
9
|
+
getOptionLabel?: (option: SelectOption) => string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export declare const SearchComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export declare const ClearComponent: ({ optionSelected, isClearable, handleChange, }: {
|
|
12
13
|
optionSelected?: SelectOptionType | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { ReduxFormInput } from '../../../hooks/useReduxFormField';
|
|
2
3
|
import { InputValue, Meta } from '../../../validators';
|
|
3
4
|
|
|
@@ -21,6 +22,8 @@ export interface BaseSelectProps {
|
|
|
21
22
|
noOptionsMessage?: string;
|
|
22
23
|
rightModifier?: React.ReactNode;
|
|
23
24
|
isOptionDisabled?: (option: SelectOption) => boolean;
|
|
25
|
+
getOptionLabel?: (option: SelectOption) => string;
|
|
26
|
+
getOptionValue?: (option: SelectOption) => string;
|
|
24
27
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
25
28
|
formatOption?: (option: SelectOption) => React.ReactNode;
|
|
26
29
|
}
|