ingred-ui 9.8.0 → 9.9.2
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/CreatableSelect/CreatableSelect.d.ts +87 -79
- package/dist/components/CreatableSelect/CreatableSelect.stories.d.ts +87 -79
- package/dist/components/DataTable/DataTable.d.ts +2 -2
- package/dist/components/DataTable/DataTable.stories.d.ts +1 -1
- package/dist/components/DataTable/internal/Table/Body.d.ts +3 -1
- package/dist/components/DataTable/internal/Table/Header.d.ts +3 -1
- package/dist/components/LocaleProvider/LocaleProvider.d.ts +1 -0
- package/dist/components/MenuList/MenuList.d.ts +1 -1
- package/dist/components/Portal/Portal.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +92 -84
- package/dist/components/Select/Select.stories.d.ts +89 -81
- package/dist/components/Select/internal/ClearIndicator/ClearIndicator.d.ts +1 -0
- package/dist/components/Select/internal/DropdownIndicator/DropdownIndicator.d.ts +1 -0
- package/dist/components/Select/internal/MultiValueRemove/MultiValueRemove.d.ts +1 -0
- package/dist/components/Snackbar/internal/SnackbarContent/SnackbarContent.d.ts +1 -0
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/ToastProvider/ToastProvider.d.ts +3 -1
- package/dist/components/Toast/ToastProvider/internal/ToastContainer/styled.d.ts +1 -0
- package/dist/constants/locale.d.ts +1 -1
- package/dist/index.es.js +4 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/dist/lib/react-toast-notification/src/ToastProvider.d.ts +3 -2
- package/dist/lib/react-toast-notification/src/icons.d.ts +1 -0
- package/dist/themes/ThemeProvider.d.ts +1 -0
- package/dist/utils/renderWithThemeProvider.d.ts +1 -0
- package/package.json +33 -29
|
@@ -1,106 +1,114 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Props as ReactSelectProps, StylesConfig } from "react-select";
|
|
3
3
|
import { Theme } from "../../themes";
|
|
4
|
-
export declare const getOverrideStyles: <
|
|
4
|
+
export declare const getOverrideStyles: <OptionValue>(theme: Theme, error: boolean) => StylesConfig<OptionType<OptionValue>, boolean, import("react-select").GroupBase<OptionType<OptionValue>>>;
|
|
5
5
|
export declare type OptionType<T = string> = {
|
|
6
6
|
label: string;
|
|
7
7
|
value: T;
|
|
8
8
|
};
|
|
9
|
-
export declare type SelectProps<
|
|
9
|
+
export declare type SelectProps<OptionValue, IsMulti extends boolean> = {
|
|
10
10
|
limit?: number;
|
|
11
11
|
minWidth?: string;
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
error?: boolean;
|
|
14
14
|
emptyMessage?: string;
|
|
15
|
-
} & ReactSelectProps<OptionType<
|
|
16
|
-
declare const Select: <
|
|
17
|
-
declare const _default: <
|
|
15
|
+
} & ReactSelectProps<OptionType<OptionValue>, IsMulti>;
|
|
16
|
+
declare const Select: <OptionValue, IsMulti extends boolean>(inProps: SelectProps<OptionValue, IsMulti>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<SelectProps<OptionValue, IsMulti>, string | React.JSXElementConstructor<any>>;
|
|
17
|
+
declare const _default: <OptionValue, IsMulti extends boolean = false>(props: {
|
|
18
18
|
limit?: number | undefined;
|
|
19
19
|
minWidth?: string | undefined;
|
|
20
20
|
placeholder?: string | undefined;
|
|
21
21
|
error?: boolean | undefined;
|
|
22
22
|
emptyMessage?: string | undefined;
|
|
23
|
-
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
23
|
+
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>, "form" | "theme" | "name" | "autoFocus" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
24
|
+
placeholder?: React.ReactNode;
|
|
25
|
+
tabIndex?: number | undefined;
|
|
26
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
27
|
+
styles?: StylesConfig<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
28
|
+
options?: import("react-select").OptionsOrGroups<OptionType<OptionValue>, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
29
|
+
menuIsOpen?: boolean | undefined;
|
|
30
|
+
isDisabled?: boolean | undefined;
|
|
31
|
+
isMulti?: IsMulti | undefined;
|
|
32
|
+
isRtl?: boolean | undefined;
|
|
33
|
+
loadingMessage?: ((obj: {
|
|
34
|
+
inputValue: string;
|
|
35
|
+
}) => React.ReactNode) | undefined;
|
|
36
|
+
noOptionsMessage?: ((obj: {
|
|
37
|
+
inputValue: string;
|
|
38
|
+
}) => React.ReactNode) | undefined;
|
|
39
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
40
|
+
blurInputOnSelect?: boolean | undefined;
|
|
41
|
+
captureMenuScroll?: boolean | undefined;
|
|
42
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
43
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
44
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>> | undefined;
|
|
45
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
46
|
+
escapeClearsValue?: boolean | undefined;
|
|
47
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<OptionType<OptionValue>>, inputValue: string) => boolean) | null | undefined;
|
|
48
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionType<OptionValue>>) => React.ReactNode) | undefined;
|
|
49
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionType<OptionValue>> | undefined;
|
|
50
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionType<OptionValue>> | undefined;
|
|
51
|
+
isLoading?: boolean | undefined;
|
|
52
|
+
isOptionDisabled?: ((option: OptionType<OptionValue>, selectValue: import("react-select").Options<OptionType<OptionValue>>) => boolean) | undefined;
|
|
53
|
+
isSearchable?: boolean | undefined;
|
|
54
|
+
minMenuHeight?: number | undefined;
|
|
55
|
+
maxMenuHeight?: number | undefined;
|
|
56
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
57
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
58
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
59
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
60
|
+
openMenuOnFocus?: boolean | undefined;
|
|
61
|
+
openMenuOnClick?: boolean | undefined;
|
|
62
|
+
pageSize?: number | undefined;
|
|
63
|
+
screenReaderStatus?: ((obj: {
|
|
58
64
|
count: number;
|
|
59
|
-
}) => string;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'aria-live'
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
65
|
+
}) => string) | undefined;
|
|
66
|
+
tabSelectsValue?: boolean | undefined;
|
|
67
|
+
} & {}, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>, "form" | "theme" | "name" | "autoFocus" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
68
|
+
placeholder?: React.ReactNode;
|
|
69
|
+
tabIndex?: number | undefined;
|
|
70
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
71
|
+
styles?: StylesConfig<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
72
|
+
options?: import("react-select").OptionsOrGroups<OptionType<OptionValue>, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
73
|
+
menuIsOpen?: boolean | undefined;
|
|
74
|
+
isDisabled?: boolean | undefined;
|
|
75
|
+
isMulti?: IsMulti | undefined;
|
|
76
|
+
isRtl?: boolean | undefined;
|
|
77
|
+
loadingMessage?: ((obj: {
|
|
78
|
+
inputValue: string;
|
|
79
|
+
}) => React.ReactNode) | undefined;
|
|
80
|
+
noOptionsMessage?: ((obj: {
|
|
81
|
+
inputValue: string;
|
|
82
|
+
}) => React.ReactNode) | undefined;
|
|
83
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
84
|
+
blurInputOnSelect?: boolean | undefined;
|
|
85
|
+
captureMenuScroll?: boolean | undefined;
|
|
86
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
87
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
88
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>> | undefined;
|
|
89
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
90
|
+
escapeClearsValue?: boolean | undefined;
|
|
91
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<OptionType<OptionValue>>, inputValue: string) => boolean) | null | undefined;
|
|
92
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionType<OptionValue>>) => React.ReactNode) | undefined;
|
|
93
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionType<OptionValue>> | undefined;
|
|
94
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionType<OptionValue>> | undefined;
|
|
95
|
+
isLoading?: boolean | undefined;
|
|
96
|
+
isOptionDisabled?: ((option: OptionType<OptionValue>, selectValue: import("react-select").Options<OptionType<OptionValue>>) => boolean) | undefined;
|
|
97
|
+
isSearchable?: boolean | undefined;
|
|
98
|
+
minMenuHeight?: number | undefined;
|
|
99
|
+
maxMenuHeight?: number | undefined;
|
|
100
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
101
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
102
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
103
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
104
|
+
openMenuOnFocus?: boolean | undefined;
|
|
105
|
+
openMenuOnClick?: boolean | undefined;
|
|
106
|
+
pageSize?: number | undefined;
|
|
107
|
+
screenReaderStatus?: ((obj: {
|
|
98
108
|
count: number;
|
|
99
|
-
}) => string;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
tabSelectsValue: boolean;
|
|
103
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<T>> & {
|
|
109
|
+
}) => string) | undefined;
|
|
110
|
+
tabSelectsValue?: boolean | undefined;
|
|
111
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<OptionValue>> & {
|
|
104
112
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
105
113
|
}) => ReturnType<typeof Select>;
|
|
106
114
|
export default _default;
|
|
@@ -3,95 +3,103 @@ import { Story } from "@storybook/react/types-6-0";
|
|
|
3
3
|
import { OptionType } from "./Select";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: <
|
|
6
|
+
component: <OptionValue, IsMulti extends boolean = false>(props: {
|
|
7
7
|
limit?: number | undefined;
|
|
8
8
|
minWidth?: string | undefined;
|
|
9
9
|
placeholder?: string | undefined;
|
|
10
10
|
error?: boolean | undefined;
|
|
11
11
|
emptyMessage?: string | undefined;
|
|
12
|
-
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
12
|
+
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>, "form" | "theme" | "name" | "autoFocus" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
13
|
+
placeholder?: React.ReactNode;
|
|
14
|
+
tabIndex?: number | undefined;
|
|
15
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
16
|
+
styles?: import("react-select").StylesConfig<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
17
|
+
options?: import("react-select").OptionsOrGroups<OptionType<OptionValue>, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
18
|
+
menuIsOpen?: boolean | undefined;
|
|
19
|
+
isDisabled?: boolean | undefined;
|
|
20
|
+
isMulti?: IsMulti | undefined;
|
|
21
|
+
isRtl?: boolean | undefined;
|
|
22
|
+
loadingMessage?: ((obj: {
|
|
23
|
+
inputValue: string;
|
|
24
|
+
}) => React.ReactNode) | undefined;
|
|
25
|
+
noOptionsMessage?: ((obj: {
|
|
26
|
+
inputValue: string;
|
|
27
|
+
}) => React.ReactNode) | undefined;
|
|
28
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
29
|
+
blurInputOnSelect?: boolean | undefined;
|
|
30
|
+
captureMenuScroll?: boolean | undefined;
|
|
31
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
32
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
33
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>> | undefined;
|
|
34
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
35
|
+
escapeClearsValue?: boolean | undefined;
|
|
36
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<OptionType<OptionValue>>, inputValue: string) => boolean) | null | undefined;
|
|
37
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionType<OptionValue>>) => React.ReactNode) | undefined;
|
|
38
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionType<OptionValue>> | undefined;
|
|
39
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionType<OptionValue>> | undefined;
|
|
40
|
+
isLoading?: boolean | undefined;
|
|
41
|
+
isOptionDisabled?: ((option: OptionType<OptionValue>, selectValue: import("react-select").Options<OptionType<OptionValue>>) => boolean) | undefined;
|
|
42
|
+
isSearchable?: boolean | undefined;
|
|
43
|
+
minMenuHeight?: number | undefined;
|
|
44
|
+
maxMenuHeight?: number | undefined;
|
|
45
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
46
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
47
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
48
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
49
|
+
openMenuOnFocus?: boolean | undefined;
|
|
50
|
+
openMenuOnClick?: boolean | undefined;
|
|
51
|
+
pageSize?: number | undefined;
|
|
52
|
+
screenReaderStatus?: ((obj: {
|
|
47
53
|
count: number;
|
|
48
|
-
}) => string;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'aria-live'
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
54
|
+
}) => string) | undefined;
|
|
55
|
+
tabSelectsValue?: boolean | undefined;
|
|
56
|
+
} & {}, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>, "form" | "theme" | "name" | "autoFocus" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
57
|
+
placeholder?: React.ReactNode;
|
|
58
|
+
tabIndex?: number | undefined;
|
|
59
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
60
|
+
styles?: import("react-select").StylesConfig<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
61
|
+
options?: import("react-select").OptionsOrGroups<OptionType<OptionValue>, import("react-select").GroupBase<OptionType<OptionValue>>> | undefined;
|
|
62
|
+
menuIsOpen?: boolean | undefined;
|
|
63
|
+
isDisabled?: boolean | undefined;
|
|
64
|
+
isMulti?: IsMulti | undefined;
|
|
65
|
+
isRtl?: boolean | undefined;
|
|
66
|
+
loadingMessage?: ((obj: {
|
|
67
|
+
inputValue: string;
|
|
68
|
+
}) => React.ReactNode) | undefined;
|
|
69
|
+
noOptionsMessage?: ((obj: {
|
|
70
|
+
inputValue: string;
|
|
71
|
+
}) => React.ReactNode) | undefined;
|
|
72
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
73
|
+
blurInputOnSelect?: boolean | undefined;
|
|
74
|
+
captureMenuScroll?: boolean | undefined;
|
|
75
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
76
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
77
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionType<OptionValue>, IsMulti, import("react-select").GroupBase<OptionType<OptionValue>>>> | undefined;
|
|
78
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
79
|
+
escapeClearsValue?: boolean | undefined;
|
|
80
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<OptionType<OptionValue>>, inputValue: string) => boolean) | null | undefined;
|
|
81
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<OptionType<OptionValue>>) => React.ReactNode) | undefined;
|
|
82
|
+
getOptionLabel?: import("react-select").GetOptionLabel<OptionType<OptionValue>> | undefined;
|
|
83
|
+
getOptionValue?: import("react-select").GetOptionValue<OptionType<OptionValue>> | undefined;
|
|
84
|
+
isLoading?: boolean | undefined;
|
|
85
|
+
isOptionDisabled?: ((option: OptionType<OptionValue>, selectValue: import("react-select").Options<OptionType<OptionValue>>) => boolean) | undefined;
|
|
86
|
+
isSearchable?: boolean | undefined;
|
|
87
|
+
minMenuHeight?: number | undefined;
|
|
88
|
+
maxMenuHeight?: number | undefined;
|
|
89
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
90
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
91
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
92
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
93
|
+
openMenuOnFocus?: boolean | undefined;
|
|
94
|
+
openMenuOnClick?: boolean | undefined;
|
|
95
|
+
pageSize?: number | undefined;
|
|
96
|
+
screenReaderStatus?: ((obj: {
|
|
87
97
|
count: number;
|
|
88
|
-
}) => string;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
tabSelectsValue: boolean;
|
|
92
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<T>> & {
|
|
98
|
+
}) => string) | undefined;
|
|
99
|
+
tabSelectsValue?: boolean | undefined;
|
|
100
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<OptionValue>> & {
|
|
93
101
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
94
|
-
}) => React.ReactElement<import("./Select").SelectProps<unknown>, string | React.JSXElementConstructor<any>>;
|
|
102
|
+
}) => React.ReactElement<import("./Select").SelectProps<unknown, boolean>, string | React.JSXElementConstructor<any>>;
|
|
95
103
|
parameters: {
|
|
96
104
|
docs: {
|
|
97
105
|
description: {
|
|
@@ -3,7 +3,7 @@ import { ToastProps as DefaultToastProps } from "../../lib/react-toast-notificat
|
|
|
3
3
|
export declare type ToastProps = DefaultToastProps;
|
|
4
4
|
declare const Toast: {
|
|
5
5
|
(props: Partial<ToastProps>): JSX.Element;
|
|
6
|
-
Provider: React.FunctionComponent<import("
|
|
6
|
+
Provider: React.FunctionComponent<import("./ToastProvider").ToastProviderProps>;
|
|
7
7
|
useToasts: () => {
|
|
8
8
|
addToast: import("../../lib/react-toast-notification/src/types").AddFn;
|
|
9
9
|
removeToast: import("../../lib/react-toast-notification/src/types").RemoveFn;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ToastProviderProps as DefaultToastProviderProps } from "../../../lib/react-toast-notification/src";
|
|
3
|
-
export declare type ToastProviderProps = DefaultToastProviderProps
|
|
3
|
+
export declare type ToastProviderProps = DefaultToastProviderProps & {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
4
6
|
declare const ToastProvider: React.FunctionComponent<ToastProviderProps>;
|
|
5
7
|
export default ToastProvider;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const ToastContainer: import("styled-components").StyledComponent<({ hasToasts, placement, ...props }: import("../../../../../lib/react-toast-notification/src").ToastContainerProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -18,7 +18,7 @@ export interface Localization {
|
|
|
18
18
|
defaultProps: Pick<ItemEmptyProps, "title">;
|
|
19
19
|
};
|
|
20
20
|
Select?: {
|
|
21
|
-
defaultProps: Pick<SelectProps<any>, "placeholder" | "emptyMessage">;
|
|
21
|
+
defaultProps: Pick<SelectProps<any, boolean>, "placeholder" | "emptyMessage">;
|
|
22
22
|
};
|
|
23
23
|
CreatableSelect?: {
|
|
24
24
|
defaultProps: Pick<CreatableSelectProps<any>, "placeholder" | "emptyMessage" | "addMessage">;
|