@aveonline/ui-react 1.6.11 → 1.6.13

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.
@@ -60,7 +60,7 @@ export interface IField {
60
60
  /**
61
61
  * Types availables for input - text for default
62
62
  */
63
- type?: 'text' | 'number' | 'password';
63
+ type?: 'text' | 'number' | 'password' | 'date';
64
64
  /**
65
65
  * Event handler for emit value from input
66
66
  */
@@ -3,5 +3,5 @@ import type { IAsyncCreatableSelect } from './IAsyncCreatableSelect';
3
3
  * Molecule: AsyncCreatableSelect
4
4
  * Async select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface. Data from network. To allow new values
5
5
  */
6
- declare function AsyncCreatableSelect({ placeholder, id, name, error, helpText, hasLabelPlaceholder, isDisabled, isClearable, defaultValue, onChange, isLoading, loadOptions, isError, showErrorText, onBlur, value, menuIsOpen, allowCreateWhileLoading, createOptionPosition, logo }: IAsyncCreatableSelect): JSX.Element;
6
+ declare function AsyncCreatableSelect({ placeholder, id, name, error, helpText, hasLabelPlaceholder, isDisabled, isClearable, defaultValue, onChange, isLoading, loadOptions, isError, showErrorText, onBlur, value, menuIsOpen, allowCreateWhileLoading, createOptionPosition, logo, instanceId }: IAsyncCreatableSelect): JSX.Element;
7
7
  export default AsyncCreatableSelect;
@@ -3,5 +3,5 @@ import type { IAsyncSelect } from './IAsyncSelect';
3
3
  * Molecule: AsyncSelect
4
4
  * Async select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface. Data from network
5
5
  */
6
- declare function AsyncSelect({ placeholder, id, name, error, helpText, hasLabelPlaceholder, isDisabled, isClearable, defaultValue, onChange, isLoading, loadOptions, isError, showErrorText, onBlur, value, menuIsOpen }: IAsyncSelect): JSX.Element;
6
+ declare function AsyncSelect({ placeholder, id, name, error, helpText, hasLabelPlaceholder, isDisabled, isClearable, defaultValue, onChange, isLoading, loadOptions, isError, showErrorText, onBlur, value, menuIsOpen, instanceId }: IAsyncSelect): JSX.Element;
7
7
  export default AsyncSelect;
@@ -66,6 +66,8 @@ export interface ISelect {
66
66
  * Open close menu
67
67
  */
68
68
  menuIsOpen?: boolean;
69
+ /** Define an id prefix for the select components e.g. {your-id}-value */
70
+ instanceId?: number | string;
69
71
  ref?: any;
70
72
  value?: any;
71
73
  }
@@ -3,5 +3,5 @@ import type { ISelect } from './ISelect';
3
3
  * Atom: Select
4
4
  * Select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface.
5
5
  */
6
- declare function Select({ options, placeholder, defaultValue, isDisabled, id, name, helpText, hasLabelPlaceholder, onChange, isSearchable, isClearable, error, isError, showErrorText, onBlur, value, menuIsOpen }: ISelect): JSX.Element;
6
+ declare function Select({ options, placeholder, defaultValue, isDisabled, id, name, helpText, hasLabelPlaceholder, onChange, isSearchable, isClearable, error, isError, showErrorText, onBlur, value, instanceId, menuIsOpen }: ISelect): JSX.Element;
7
7
  export default Select;
@@ -3,5 +3,5 @@ import type { ISelectButton } from './ISelectButton';
3
3
  * Molecule: SelectButton
4
4
  * Select with button for first item lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface.
5
5
  */
6
- declare function SelectButton({ options, placeholder, defaultValue, isDisabled, id, error, name, helpText, hasLabelPlaceholder, onChange, isSearchable, isClearable, alignButton, onClickFirstItem, isError, showErrorText, onBlur, menuIsOpen, value }: ISelectButton): JSX.Element;
6
+ declare function SelectButton({ options, placeholder, defaultValue, isDisabled, id, error, name, helpText, hasLabelPlaceholder, onChange, isSearchable, isClearable, alignButton, onClickFirstItem, isError, showErrorText, onBlur, menuIsOpen, instanceId, value }: ISelectButton): JSX.Element;
7
7
  export default SelectButton;
@@ -3,5 +3,5 @@ import { ISelect } from '../Select/ISelect';
3
3
  * Molecule: SelectCountry
4
4
  * Select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface.
5
5
  */
6
- declare function SelectCountry({ id, name, placeholder, options, defaultValue, isDisabled, error, isSearchable, helpText, onChange, isClearable, isError, showErrorText, onBlur, menuIsOpen, value }: ISelect): JSX.Element;
6
+ declare function SelectCountry({ id, name, placeholder, options, defaultValue, isDisabled, error, isSearchable, helpText, onChange, isClearable, isError, showErrorText, onBlur, menuIsOpen, value, instanceId }: ISelect): JSX.Element;
7
7
  export default SelectCountry;