@verifiedinc-public/shared-ui-elements 0.13.2-beta.7 → 0.14.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.
@@ -30,12 +30,12 @@ interface CustomAlertComponentProps extends Partial<CustomContentProps> {
|
|
30
30
|
* Hook to manage snackbar messages
|
31
31
|
* It wraps the enqueueSnackbar and closeSnackbar functions from the notistack library
|
32
32
|
* @returns
|
33
|
-
* -
|
33
|
+
* - enqueueSnackbar: Function to enqueue a snackbar message
|
34
34
|
* - closeSnackbar: Function to close one or all snackbar messages
|
35
35
|
* @see https://notistack.com/api-reference
|
36
36
|
*/
|
37
37
|
export declare function useSnackbar(): {
|
38
|
-
|
38
|
+
enqueueSnackbar: (message: string, severity?: AlertColor, options?: Omit<CustomAlertComponentProps, 'severity'>) => void;
|
39
39
|
closeSnackbar: (key?: SnackbarKey) => void;
|
40
40
|
};
|
41
41
|
/**
|
@@ -10,6 +10,7 @@ interface SelectInputProps {
|
|
10
10
|
onChange?: (value: Option | null) => void;
|
11
11
|
onClear?: () => void;
|
12
12
|
options: Option[];
|
13
|
+
value?: Option | null;
|
13
14
|
defaultOption?: Option;
|
14
15
|
InputProps?: TextFieldProps;
|
15
16
|
}
|
@@ -17,5 +18,5 @@ interface SelectInputProps {
|
|
17
18
|
* This component manages the input of type Select.
|
18
19
|
* @constructor
|
19
20
|
*/
|
20
|
-
export declare function SelectInput({ options, defaultOption, onChange, onClear, ...props }: SelectInputProps): React.JSX.Element;
|
21
|
+
export declare function SelectInput({ options, defaultOption, value: controlledValue, onChange, onClear, ...props }: SelectInputProps): React.JSX.Element;
|
21
22
|
export {};
|