@producteca/producteca-ui-kit 1.42.0 → 1.43.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/dist/components/inputs/searcher/searcher.d.ts +1 -0
- package/dist/components/inputs/selectField/selectField.d.ts +3 -2
- package/dist/components/inputs/selectField/selectField.types.d.ts +5 -0
- package/dist/locales/es.d.ts +1 -0
- package/dist/producteca-ui-kit.es.js +2 -2
- package/dist/producteca-ui-kit.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface SearcherProps extends BaseSelectProps {
|
|
|
8
8
|
loadOptions?: (inputValue: string, callback: (options: SelectOption[]) => void) => void;
|
|
9
9
|
cacheOptions?: boolean;
|
|
10
10
|
defaultOptions?: boolean | SelectOption[];
|
|
11
|
+
value?: string;
|
|
11
12
|
input?: {
|
|
12
13
|
value: any;
|
|
13
14
|
onChange: (value: any) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { OptionProps, SingleValueProps } from 'react-select';
|
|
3
|
-
import { BaseSelectProps, SelectFieldProps, SelectOption, SelectOptionType } from './selectField.types';
|
|
3
|
+
import { BaseSelectProps, SelectFieldProps, SelectOption, SelectOptionType, TooltipProps } from './selectField.types';
|
|
4
4
|
|
|
5
5
|
export declare const Option: (props: OptionProps<SelectOption> & {
|
|
6
6
|
formatOption?: (option: SelectOption) => React.ReactNode;
|
|
7
|
+
tooltipProps?: TooltipProps;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare const SingleValue: (props: SingleValueProps<SelectOption> & {
|
|
9
10
|
getOptionLabel?: (option: SelectOption) => string;
|
|
@@ -16,4 +17,4 @@ export declare const ClearComponent: ({ optionSelected, isClearable, handleChang
|
|
|
16
17
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
18
|
export declare const SelectField: React.FC<SelectFieldProps>;
|
|
18
19
|
export default SelectField;
|
|
19
|
-
export type { BaseSelectProps, SelectOption, SelectOptionType, SelectFieldProps };
|
|
20
|
+
export type { BaseSelectProps, SelectOption, SelectOptionType, SelectFieldProps, TooltipProps };
|
|
@@ -2,6 +2,10 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { ReduxFormInput } from '../../../hooks/useReduxFormField';
|
|
3
3
|
import { InputValue, Meta } from '../../../validators';
|
|
4
4
|
|
|
5
|
+
export interface TooltipProps {
|
|
6
|
+
maxWidth?: string;
|
|
7
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
8
|
+
}
|
|
5
9
|
export interface SelectOption {
|
|
6
10
|
label: string;
|
|
7
11
|
value: string | number;
|
|
@@ -26,6 +30,7 @@ export interface BaseSelectProps {
|
|
|
26
30
|
getOptionValue?: (option: SelectOption) => string;
|
|
27
31
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
28
32
|
formatOption?: (option: SelectOption) => React.ReactNode;
|
|
33
|
+
tooltipProps?: TooltipProps;
|
|
29
34
|
}
|
|
30
35
|
export interface SelectFieldProps extends BaseSelectProps {
|
|
31
36
|
onBlur?: () => void;
|