@pismo/marola 2.1.15 → 2.1.17
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/Autocomplete/Autocomplete.d.ts +9 -3
- package/dist/components/Autocomplete/Autocomplete.js +220 -202
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +2 -1
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/utils/iconsList.js +116 -110
- package/package.json +1 -1
|
@@ -15,9 +15,15 @@ export type AutocompleteProps<T> = Omit<InputProps, 'onChange' | 'value'> & {
|
|
|
15
15
|
options?: Array<T>;
|
|
16
16
|
/** CSS classes to be applied on the input container element */
|
|
17
17
|
classNameInputWrapper?: string;
|
|
18
|
-
/**
|
|
18
|
+
/** Callback for new option selected */
|
|
19
19
|
onChange?: (event: SyntheticEvent<Element, Event>, newValue: T) => void;
|
|
20
|
-
/**
|
|
20
|
+
/** Callback when characters are entered into the input box */
|
|
21
21
|
onInputChange?: (event: SyntheticEvent<Element, Event>, newValue: string) => void;
|
|
22
|
+
/** Control programmatically the state of the autocomplete list. Using this prop will disable the auto open/close handling and you must provide the behavior for yourself. */
|
|
23
|
+
open?: boolean;
|
|
24
|
+
/** Callback when the autocomplete list is opened */
|
|
25
|
+
onOpen?: () => void;
|
|
26
|
+
/** Callback when the autocomplete list is closed */
|
|
27
|
+
onClose?: () => void;
|
|
22
28
|
};
|
|
23
|
-
export declare const Autocomplete: <T extends string | object>({ labelKey, valueKey, renderOption, customSelectedOptionLabel, options, type, value, onChange, onInputChange, classNameWrapper, "data-testid-wrapper": dataTestId, classNameInputWrapper, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const Autocomplete: <T extends string | object>({ labelKey, valueKey, renderOption, customSelectedOptionLabel, options, type, value, onChange, onInputChange, classNameWrapper, "data-testid-wrapper": dataTestId, classNameInputWrapper, open, onOpen, onClose, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|