@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.
@@ -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;
@@ -69,6 +69,7 @@ declare const _default: {
69
69
  labelFullWidth: string;
70
70
  getOptionLabel: string;
71
71
  getOptionValue: string;
72
+ tooltipProps: string;
72
73
  };
73
74
  actionBar: {
74
75
  example: string;