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
|
@@ -18,87 +18,95 @@ declare const _default: <T>(props: {
|
|
|
18
18
|
error?: boolean | undefined;
|
|
19
19
|
emptyMessage?: string | undefined;
|
|
20
20
|
addMessage?: string | undefined;
|
|
21
|
-
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, GroupBase<OptionType<T>>>, "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"> &
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
21
|
+
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, GroupBase<OptionType<T>>>, "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"> & {
|
|
22
|
+
placeholder?: React.ReactNode;
|
|
23
|
+
tabIndex?: number | undefined;
|
|
24
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
25
|
+
styles?: import("react-select").StylesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
|
|
26
|
+
options?: import("react-select/dist/declarations/src/types").OptionsOrGroups<OptionType<T>, GroupBase<OptionType<T>>> | undefined;
|
|
27
|
+
menuIsOpen?: boolean | undefined;
|
|
28
|
+
isDisabled?: boolean | undefined;
|
|
29
|
+
isMulti?: boolean | undefined;
|
|
30
|
+
isRtl?: boolean | undefined;
|
|
31
|
+
loadingMessage?: ((obj: {
|
|
32
|
+
inputValue: string;
|
|
33
|
+
}) => React.ReactNode) | undefined;
|
|
34
|
+
noOptionsMessage?: ((obj: {
|
|
35
|
+
inputValue: string;
|
|
36
|
+
}) => React.ReactNode) | undefined;
|
|
37
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
38
|
+
blurInputOnSelect?: boolean | undefined;
|
|
39
|
+
captureMenuScroll?: boolean | undefined;
|
|
40
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
41
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
42
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionType<T>, boolean, GroupBase<OptionType<T>>>> | undefined;
|
|
43
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
44
|
+
escapeClearsValue?: boolean | undefined;
|
|
45
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<OptionType<T>>, inputValue: string) => boolean) | null | undefined;
|
|
46
|
+
formatGroupLabel?: ((group: GroupBase<OptionType<T>>) => React.ReactNode) | undefined;
|
|
47
|
+
getOptionLabel?: import("react-select/dist/declarations/src/types").GetOptionLabel<OptionType<T>> | undefined;
|
|
48
|
+
getOptionValue?: import("react-select/dist/declarations/src/types").GetOptionValue<OptionType<T>> | undefined;
|
|
49
|
+
isLoading?: boolean | undefined;
|
|
50
|
+
isOptionDisabled?: ((option: OptionType<T>, selectValue: import("react-select/dist/declarations/src/types").Options<OptionType<T>>) => boolean) | undefined;
|
|
51
|
+
isSearchable?: boolean | undefined;
|
|
52
|
+
minMenuHeight?: number | undefined;
|
|
53
|
+
maxMenuHeight?: number | undefined;
|
|
54
|
+
menuPlacement?: import("react-select/dist/declarations/src/types").MenuPlacement | undefined;
|
|
55
|
+
menuPosition?: import("react-select/dist/declarations/src/types").MenuPosition | undefined;
|
|
56
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
57
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
58
|
+
openMenuOnFocus?: boolean | undefined;
|
|
59
|
+
openMenuOnClick?: boolean | undefined;
|
|
60
|
+
pageSize?: number | undefined;
|
|
61
|
+
screenReaderStatus?: ((obj: {
|
|
56
62
|
count: number;
|
|
57
|
-
}) => string;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
'aria-live'
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
63
|
+
}) => string) | undefined;
|
|
64
|
+
tabSelectsValue?: boolean | undefined;
|
|
65
|
+
} & {}, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, GroupBase<OptionType<T>>>, "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"> & {
|
|
66
|
+
placeholder?: React.ReactNode;
|
|
67
|
+
tabIndex?: number | undefined;
|
|
68
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
69
|
+
styles?: import("react-select").StylesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
|
|
70
|
+
options?: import("react-select/dist/declarations/src/types").OptionsOrGroups<OptionType<T>, GroupBase<OptionType<T>>> | undefined;
|
|
71
|
+
menuIsOpen?: boolean | undefined;
|
|
72
|
+
isDisabled?: boolean | undefined;
|
|
73
|
+
isMulti?: boolean | undefined;
|
|
74
|
+
isRtl?: boolean | undefined;
|
|
75
|
+
loadingMessage?: ((obj: {
|
|
76
|
+
inputValue: string;
|
|
77
|
+
}) => React.ReactNode) | undefined;
|
|
78
|
+
noOptionsMessage?: ((obj: {
|
|
79
|
+
inputValue: string;
|
|
80
|
+
}) => React.ReactNode) | undefined;
|
|
81
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
82
|
+
blurInputOnSelect?: boolean | undefined;
|
|
83
|
+
captureMenuScroll?: boolean | undefined;
|
|
84
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
85
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
86
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<OptionType<T>, boolean, GroupBase<OptionType<T>>>> | undefined;
|
|
87
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
88
|
+
escapeClearsValue?: boolean | undefined;
|
|
89
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<OptionType<T>>, inputValue: string) => boolean) | null | undefined;
|
|
90
|
+
formatGroupLabel?: ((group: GroupBase<OptionType<T>>) => React.ReactNode) | undefined;
|
|
91
|
+
getOptionLabel?: import("react-select/dist/declarations/src/types").GetOptionLabel<OptionType<T>> | undefined;
|
|
92
|
+
getOptionValue?: import("react-select/dist/declarations/src/types").GetOptionValue<OptionType<T>> | undefined;
|
|
93
|
+
isLoading?: boolean | undefined;
|
|
94
|
+
isOptionDisabled?: ((option: OptionType<T>, selectValue: import("react-select/dist/declarations/src/types").Options<OptionType<T>>) => boolean) | undefined;
|
|
95
|
+
isSearchable?: boolean | undefined;
|
|
96
|
+
minMenuHeight?: number | undefined;
|
|
97
|
+
maxMenuHeight?: number | undefined;
|
|
98
|
+
menuPlacement?: import("react-select/dist/declarations/src/types").MenuPlacement | undefined;
|
|
99
|
+
menuPosition?: import("react-select/dist/declarations/src/types").MenuPosition | undefined;
|
|
100
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
101
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
102
|
+
openMenuOnFocus?: boolean | undefined;
|
|
103
|
+
openMenuOnClick?: boolean | undefined;
|
|
104
|
+
pageSize?: number | undefined;
|
|
105
|
+
screenReaderStatus?: ((obj: {
|
|
96
106
|
count: number;
|
|
97
|
-
}) => string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
tabSelectsValue: boolean;
|
|
101
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<OptionType<T>, GroupBase<OptionType<T>>> & {
|
|
107
|
+
}) => string) | undefined;
|
|
108
|
+
tabSelectsValue?: boolean | undefined;
|
|
109
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<OptionType<T>, GroupBase<OptionType<T>>> & {
|
|
102
110
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
103
111
|
}) => ReturnType<typeof CreatableSelect>;
|
|
104
112
|
export default _default;
|
|
@@ -8,87 +8,95 @@ declare const _default: {
|
|
|
8
8
|
error?: boolean | undefined;
|
|
9
9
|
emptyMessage?: string | undefined;
|
|
10
10
|
addMessage?: string | undefined;
|
|
11
|
-
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>, "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"> &
|
|
12
|
-
|
|
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
|
-
|
|
11
|
+
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>, "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"> & {
|
|
12
|
+
placeholder?: React.ReactNode;
|
|
13
|
+
tabIndex?: number | undefined;
|
|
14
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
15
|
+
styles?: import("react-select").StylesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
|
|
16
|
+
options?: import("react-select").OptionsOrGroups<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
|
|
17
|
+
menuIsOpen?: boolean | undefined;
|
|
18
|
+
isDisabled?: boolean | undefined;
|
|
19
|
+
isMulti?: boolean | undefined;
|
|
20
|
+
isRtl?: boolean | undefined;
|
|
21
|
+
loadingMessage?: ((obj: {
|
|
22
|
+
inputValue: string;
|
|
23
|
+
}) => React.ReactNode) | undefined;
|
|
24
|
+
noOptionsMessage?: ((obj: {
|
|
25
|
+
inputValue: string;
|
|
26
|
+
}) => React.ReactNode) | undefined;
|
|
27
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
28
|
+
blurInputOnSelect?: boolean | undefined;
|
|
29
|
+
captureMenuScroll?: boolean | undefined;
|
|
30
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
31
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
32
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>> | undefined;
|
|
33
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
34
|
+
escapeClearsValue?: boolean | undefined;
|
|
35
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<import("..").OptionType<T>>, inputValue: string) => boolean) | null | undefined;
|
|
36
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<import("..").OptionType<T>>) => React.ReactNode) | undefined;
|
|
37
|
+
getOptionLabel?: import("react-select").GetOptionLabel<import("..").OptionType<T>> | undefined;
|
|
38
|
+
getOptionValue?: import("react-select").GetOptionValue<import("..").OptionType<T>> | undefined;
|
|
39
|
+
isLoading?: boolean | undefined;
|
|
40
|
+
isOptionDisabled?: ((option: import("..").OptionType<T>, selectValue: import("react-select").Options<import("..").OptionType<T>>) => boolean) | undefined;
|
|
41
|
+
isSearchable?: boolean | undefined;
|
|
42
|
+
minMenuHeight?: number | undefined;
|
|
43
|
+
maxMenuHeight?: number | undefined;
|
|
44
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
45
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
46
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
47
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
48
|
+
openMenuOnFocus?: boolean | undefined;
|
|
49
|
+
openMenuOnClick?: boolean | undefined;
|
|
50
|
+
pageSize?: number | undefined;
|
|
51
|
+
screenReaderStatus?: ((obj: {
|
|
46
52
|
count: number;
|
|
47
|
-
}) => string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
'aria-live'
|
|
53
|
-
|
|
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
|
-
|
|
53
|
+
}) => string) | undefined;
|
|
54
|
+
tabSelectsValue?: boolean | undefined;
|
|
55
|
+
} & {}, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>, "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"> & {
|
|
56
|
+
placeholder?: React.ReactNode;
|
|
57
|
+
tabIndex?: number | undefined;
|
|
58
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
59
|
+
styles?: import("react-select").StylesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
|
|
60
|
+
options?: import("react-select").OptionsOrGroups<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
|
|
61
|
+
menuIsOpen?: boolean | undefined;
|
|
62
|
+
isDisabled?: boolean | undefined;
|
|
63
|
+
isMulti?: boolean | undefined;
|
|
64
|
+
isRtl?: boolean | undefined;
|
|
65
|
+
loadingMessage?: ((obj: {
|
|
66
|
+
inputValue: string;
|
|
67
|
+
}) => React.ReactNode) | undefined;
|
|
68
|
+
noOptionsMessage?: ((obj: {
|
|
69
|
+
inputValue: string;
|
|
70
|
+
}) => React.ReactNode) | undefined;
|
|
71
|
+
backspaceRemovesValue?: boolean | undefined;
|
|
72
|
+
blurInputOnSelect?: boolean | undefined;
|
|
73
|
+
captureMenuScroll?: boolean | undefined;
|
|
74
|
+
closeMenuOnSelect?: boolean | undefined;
|
|
75
|
+
closeMenuOnScroll?: boolean | ((event: Event) => boolean) | undefined;
|
|
76
|
+
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>> | undefined;
|
|
77
|
+
controlShouldRenderValue?: boolean | undefined;
|
|
78
|
+
escapeClearsValue?: boolean | undefined;
|
|
79
|
+
filterOption?: ((option: import("react-select/dist/declarations/src/filters").FilterOptionOption<import("..").OptionType<T>>, inputValue: string) => boolean) | null | undefined;
|
|
80
|
+
formatGroupLabel?: ((group: import("react-select").GroupBase<import("..").OptionType<T>>) => React.ReactNode) | undefined;
|
|
81
|
+
getOptionLabel?: import("react-select").GetOptionLabel<import("..").OptionType<T>> | undefined;
|
|
82
|
+
getOptionValue?: import("react-select").GetOptionValue<import("..").OptionType<T>> | undefined;
|
|
83
|
+
isLoading?: boolean | undefined;
|
|
84
|
+
isOptionDisabled?: ((option: import("..").OptionType<T>, selectValue: import("react-select").Options<import("..").OptionType<T>>) => boolean) | undefined;
|
|
85
|
+
isSearchable?: boolean | undefined;
|
|
86
|
+
minMenuHeight?: number | undefined;
|
|
87
|
+
maxMenuHeight?: number | undefined;
|
|
88
|
+
menuPlacement?: import("react-select").MenuPlacement | undefined;
|
|
89
|
+
menuPosition?: import("react-select").MenuPosition | undefined;
|
|
90
|
+
menuShouldBlockScroll?: boolean | undefined;
|
|
91
|
+
menuShouldScrollIntoView?: boolean | undefined;
|
|
92
|
+
openMenuOnFocus?: boolean | undefined;
|
|
93
|
+
openMenuOnClick?: boolean | undefined;
|
|
94
|
+
pageSize?: number | undefined;
|
|
95
|
+
screenReaderStatus?: ((obj: {
|
|
86
96
|
count: number;
|
|
87
|
-
}) => string;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
tabSelectsValue: boolean;
|
|
91
|
-
}, never>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<import("..").OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> & {
|
|
97
|
+
}) => string) | undefined;
|
|
98
|
+
tabSelectsValue?: boolean | undefined;
|
|
99
|
+
} & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<import("..").OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> & {
|
|
92
100
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
93
101
|
}) => React.ReactElement<import("./CreatableSelect").CreatableSelectProps<unknown>, string | React.JSXElementConstructor<any>>;
|
|
94
102
|
source: {
|
|
@@ -101,8 +101,8 @@ export declare type DataTableProps<T> = {
|
|
|
101
101
|
labelRowsPerPage?: string;
|
|
102
102
|
labelDisplayedRows?: LabelDisplayRows;
|
|
103
103
|
};
|
|
104
|
-
declare const DataTable: <T extends DataTableBaseData>({ data: sourceData, columns, enablePagination, onSelectRowsChange, onRadioChange, clearSelectedRows, tabs, itemEmptyProps, per, defaultSortField, defaultSortOrder, defaultSelectedRows, defaultSelectedRow, enableRuledLine, verticalSpacing, fullWidth, disableCheckWhenClickRow, tableMaxHeight, horizontalScrollable, labelRowsPerPage, labelDisplayedRows, }: DataTableProps<T>, ref?: React.ForwardedRef<HTMLDivElement>
|
|
105
|
-
declare const _default: <T>(props: DataTableProps<T> & {
|
|
104
|
+
declare const DataTable: <T extends DataTableBaseData>({ data: sourceData, columns, enablePagination, onSelectRowsChange, onRadioChange, clearSelectedRows, tabs, itemEmptyProps, per, defaultSortField, defaultSortOrder, defaultSelectedRows, defaultSelectedRow, enableRuledLine, verticalSpacing, fullWidth, disableCheckWhenClickRow, tableMaxHeight, horizontalScrollable, labelRowsPerPage, labelDisplayedRows, }: DataTableProps<T>, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
|
|
105
|
+
declare const _default: <T extends DataTableBaseData>(props: DataTableProps<T> & {
|
|
106
106
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
107
107
|
}) => ReturnType<typeof DataTable>;
|
|
108
108
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { DataTableProps } from "./DataTable";
|
|
|
3
3
|
import { Story } from "@storybook/react/types-6-0";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: <T>(props: DataTableProps<T> & {
|
|
6
|
+
component: <T extends import("./DataTable").DataTableBaseData>(props: DataTableProps<T> & {
|
|
7
7
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
8
8
|
}) => JSX.Element;
|
|
9
9
|
parameters: {
|
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { Localization } from "../../constants/locale";
|
|
3
3
|
export declare type LocaleProviderProps = {
|
|
4
4
|
locale?: Localization;
|
|
5
|
+
children?: React.ReactNode;
|
|
5
6
|
};
|
|
6
7
|
export declare const LocaleContext: React.Context<LocaleProviderProps>;
|
|
7
8
|
declare const LocaleProvider: React.FunctionComponent<LocaleProviderProps>;
|
|
@@ -16,7 +16,7 @@ export declare type ContentTypeStyle = {
|
|
|
16
16
|
color: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
export declare const getContentTypeStyles: (theme: Theme, type?: ContentType
|
|
19
|
+
export declare const getContentTypeStyles: (theme: Theme, type?: ContentType) => ContentTypeStyle;
|
|
20
20
|
export declare type ContentProp = React.ComponentPropsWithoutRef<"div"> & {
|
|
21
21
|
text: string;
|
|
22
22
|
onClick: () => void;
|
|
@@ -9,6 +9,7 @@ export declare type PortalProps = {
|
|
|
9
9
|
* If it is `true`, portal component renders as it is.
|
|
10
10
|
*/
|
|
11
11
|
disablePortal?: boolean;
|
|
12
|
+
children: React.ReactNode;
|
|
12
13
|
};
|
|
13
14
|
/**
|
|
14
15
|
* The portal component renders its children into a new "subtree" outside of current DOM hierarchy.
|