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.
Files changed (28) hide show
  1. package/dist/components/CreatableSelect/CreatableSelect.d.ts +87 -79
  2. package/dist/components/CreatableSelect/CreatableSelect.stories.d.ts +87 -79
  3. package/dist/components/DataTable/DataTable.d.ts +2 -2
  4. package/dist/components/DataTable/DataTable.stories.d.ts +1 -1
  5. package/dist/components/DataTable/internal/Table/Body.d.ts +3 -1
  6. package/dist/components/DataTable/internal/Table/Header.d.ts +3 -1
  7. package/dist/components/LocaleProvider/LocaleProvider.d.ts +1 -0
  8. package/dist/components/MenuList/MenuList.d.ts +1 -1
  9. package/dist/components/Portal/Portal.d.ts +1 -0
  10. package/dist/components/Select/Select.d.ts +92 -84
  11. package/dist/components/Select/Select.stories.d.ts +89 -81
  12. package/dist/components/Select/internal/ClearIndicator/ClearIndicator.d.ts +1 -0
  13. package/dist/components/Select/internal/DropdownIndicator/DropdownIndicator.d.ts +1 -0
  14. package/dist/components/Select/internal/MultiValueRemove/MultiValueRemove.d.ts +1 -0
  15. package/dist/components/Snackbar/internal/SnackbarContent/SnackbarContent.d.ts +1 -0
  16. package/dist/components/Toast/Toast.d.ts +1 -1
  17. package/dist/components/Toast/ToastProvider/ToastProvider.d.ts +3 -1
  18. package/dist/components/Toast/ToastProvider/internal/ToastContainer/styled.d.ts +1 -0
  19. package/dist/constants/locale.d.ts +1 -1
  20. package/dist/index.es.js +4 -9
  21. package/dist/index.es.js.map +1 -1
  22. package/dist/index.js +3 -8
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/react-toast-notification/src/ToastProvider.d.ts +3 -2
  25. package/dist/lib/react-toast-notification/src/icons.d.ts +1 -0
  26. package/dist/themes/ThemeProvider.d.ts +1 -0
  27. package/dist/utils/renderWithThemeProvider.d.ts +1 -0
  28. 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: <T>(theme: Theme, error: boolean) => StylesConfig<OptionType<T>, boolean, import("react-select").GroupBase<OptionType<T>>>;
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<T> = {
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<T>, boolean>;
16
- declare const Select: <T>(inProps: SelectProps<T>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<SelectProps<T>, string | React.JSXElementConstructor<any>>;
17
- declare const _default: <T>(props: {
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<T>, boolean, import("react-select").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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, import("react-select").GroupBase<OptionType<T>>>, "placeholder" | "tabIndex" | "aria-live" | "styles" | "options" | "menuIsOpen" | "isDisabled" | "isMulti" | "isRtl" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "components" | "controlShouldRenderValue" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isOptionDisabled" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuPlacement" | "menuPosition" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
24
- 'aria-live': string;
25
- backspaceRemovesValue: boolean;
26
- blurInputOnSelect: boolean;
27
- captureMenuScroll: boolean;
28
- closeMenuOnSelect: boolean;
29
- closeMenuOnScroll: boolean;
30
- components: {};
31
- controlShouldRenderValue: boolean;
32
- escapeClearsValue: boolean;
33
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
34
- formatGroupLabel: <Option_1, Group_1 extends import("react-select").GroupBase<Option_1>>(group: Group_1) => string;
35
- getOptionLabel: <Option_2>(option: Option_2) => string;
36
- getOptionValue: <Option_3>(option: Option_3) => string;
37
- isDisabled: boolean;
38
- isLoading: boolean;
39
- isMulti: boolean;
40
- isRtl: boolean;
41
- isSearchable: boolean;
42
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
43
- loadingMessage: () => string;
44
- maxMenuHeight: number;
45
- minMenuHeight: number;
46
- menuIsOpen: boolean;
47
- menuPlacement: string;
48
- menuPosition: string;
49
- menuShouldBlockScroll: boolean;
50
- menuShouldScrollIntoView: boolean;
51
- noOptionsMessage: () => string;
52
- openMenuOnFocus: boolean;
53
- openMenuOnClick: boolean;
54
- options: never[];
55
- pageSize: number;
56
- placeholder: string;
57
- screenReaderStatus: ({ count }: {
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
- styles: {};
61
- tabIndex: number;
62
- tabSelectsValue: boolean;
63
- }, never>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, import("react-select").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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, import("react-select").GroupBase<OptionType<T>>>, "placeholder" | "tabIndex" | "aria-live" | "styles" | "options" | "menuIsOpen" | "isDisabled" | "isMulti" | "isRtl" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "components" | "controlShouldRenderValue" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isOptionDisabled" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuPlacement" | "menuPosition" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
64
- 'aria-live': string;
65
- backspaceRemovesValue: boolean;
66
- blurInputOnSelect: boolean;
67
- captureMenuScroll: boolean;
68
- closeMenuOnSelect: boolean;
69
- closeMenuOnScroll: boolean;
70
- components: {};
71
- controlShouldRenderValue: boolean;
72
- escapeClearsValue: boolean;
73
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
74
- formatGroupLabel: <Option_1, Group_1 extends import("react-select").GroupBase<Option_1>>(group: Group_1) => string;
75
- getOptionLabel: <Option_2>(option: Option_2) => string;
76
- getOptionValue: <Option_3>(option: Option_3) => string;
77
- isDisabled: boolean;
78
- isLoading: boolean;
79
- isMulti: boolean;
80
- isRtl: boolean;
81
- isSearchable: boolean;
82
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
83
- loadingMessage: () => string;
84
- maxMenuHeight: number;
85
- minMenuHeight: number;
86
- menuIsOpen: boolean;
87
- menuPlacement: string;
88
- menuPosition: string;
89
- menuShouldBlockScroll: boolean;
90
- menuShouldScrollIntoView: boolean;
91
- noOptionsMessage: () => string;
92
- openMenuOnFocus: boolean;
93
- openMenuOnClick: boolean;
94
- options: never[];
95
- pageSize: number;
96
- placeholder: string;
97
- screenReaderStatus: ({ count }: {
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
- styles: {};
101
- tabIndex: number;
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: <T>(props: {
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<T>, boolean, import("react-select").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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, import("react-select").GroupBase<OptionType<T>>>, "placeholder" | "tabIndex" | "aria-live" | "styles" | "options" | "menuIsOpen" | "isDisabled" | "isMulti" | "isRtl" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "components" | "controlShouldRenderValue" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isOptionDisabled" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuPlacement" | "menuPosition" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
13
- 'aria-live': string;
14
- backspaceRemovesValue: boolean;
15
- blurInputOnSelect: boolean;
16
- captureMenuScroll: boolean;
17
- closeMenuOnSelect: boolean;
18
- closeMenuOnScroll: boolean;
19
- components: {};
20
- controlShouldRenderValue: boolean;
21
- escapeClearsValue: boolean;
22
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
23
- formatGroupLabel: <Option_1, Group_1 extends import("react-select").GroupBase<Option_1>>(group: Group_1) => string;
24
- getOptionLabel: <Option_2>(option: Option_2) => string;
25
- getOptionValue: <Option_3>(option: Option_3) => string;
26
- isDisabled: boolean;
27
- isLoading: boolean;
28
- isMulti: boolean;
29
- isRtl: boolean;
30
- isSearchable: boolean;
31
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
32
- loadingMessage: () => string;
33
- maxMenuHeight: number;
34
- minMenuHeight: number;
35
- menuIsOpen: boolean;
36
- menuPlacement: string;
37
- menuPosition: string;
38
- menuShouldBlockScroll: boolean;
39
- menuShouldScrollIntoView: boolean;
40
- noOptionsMessage: () => string;
41
- openMenuOnFocus: boolean;
42
- openMenuOnClick: boolean;
43
- options: never[];
44
- pageSize: number;
45
- placeholder: string;
46
- screenReaderStatus: ({ count }: {
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
- styles: {};
50
- tabIndex: number;
51
- tabSelectsValue: boolean;
52
- }, never>>, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, import("react-select").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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, import("react-select").GroupBase<OptionType<T>>>, "placeholder" | "tabIndex" | "aria-live" | "styles" | "options" | "menuIsOpen" | "isDisabled" | "isMulti" | "isRtl" | "loadingMessage" | "noOptionsMessage" | "backspaceRemovesValue" | "blurInputOnSelect" | "captureMenuScroll" | "closeMenuOnSelect" | "closeMenuOnScroll" | "components" | "controlShouldRenderValue" | "escapeClearsValue" | "filterOption" | "formatGroupLabel" | "getOptionLabel" | "getOptionValue" | "isLoading" | "isOptionDisabled" | "isSearchable" | "minMenuHeight" | "maxMenuHeight" | "menuPlacement" | "menuPosition" | "menuShouldBlockScroll" | "menuShouldScrollIntoView" | "openMenuOnFocus" | "openMenuOnClick" | "pageSize" | "screenReaderStatus" | "tabSelectsValue">> & Partial<Pick<{
53
- 'aria-live': string;
54
- backspaceRemovesValue: boolean;
55
- blurInputOnSelect: boolean;
56
- captureMenuScroll: boolean;
57
- closeMenuOnSelect: boolean;
58
- closeMenuOnScroll: boolean;
59
- components: {};
60
- controlShouldRenderValue: boolean;
61
- escapeClearsValue: boolean;
62
- filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
63
- formatGroupLabel: <Option_1, Group_1 extends import("react-select").GroupBase<Option_1>>(group: Group_1) => string;
64
- getOptionLabel: <Option_2>(option: Option_2) => string;
65
- getOptionValue: <Option_3>(option: Option_3) => string;
66
- isDisabled: boolean;
67
- isLoading: boolean;
68
- isMulti: boolean;
69
- isRtl: boolean;
70
- isSearchable: boolean;
71
- isOptionDisabled: <Option_4>(option: Option_4) => boolean;
72
- loadingMessage: () => string;
73
- maxMenuHeight: number;
74
- minMenuHeight: number;
75
- menuIsOpen: boolean;
76
- menuPlacement: string;
77
- menuPosition: string;
78
- menuShouldBlockScroll: boolean;
79
- menuShouldScrollIntoView: boolean;
80
- noOptionsMessage: () => string;
81
- openMenuOnFocus: boolean;
82
- openMenuOnClick: boolean;
83
- options: never[];
84
- pageSize: number;
85
- placeholder: string;
86
- screenReaderStatus: ({ count }: {
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
- styles: {};
90
- tabIndex: number;
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: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ClearIndicatorProps, GroupBase } from "react-select";
2
3
  import { OptionType } from "../../";
3
4
  declare const ClearIndicator: <T>(props: ClearIndicatorProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DropdownIndicator: ({ isDisabled, error, ...rest }: any) => JSX.Element;
2
3
  export { DropdownIndicator };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GroupBase } from "react-select";
2
3
  import { OptionType } from "../../";
3
4
  import { MultiValueRemoveProps } from "react-select/dist/declarations/src/components/MultiValue";
@@ -3,6 +3,7 @@ import { SnackbarColor } from "../../Snackbar";
3
3
  declare type Props = {
4
4
  color: SnackbarColor;
5
5
  onClose?: () => void;
6
+ children: React.ReactNode;
6
7
  };
7
8
  declare const SnackbarContent: React.FunctionComponent<Props>;
8
9
  export { SnackbarContent };
@@ -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("../../lib/react-toast-notification/src").ToastProviderProps>;
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">;