ingred-ui 9.0.0 → 9.2.0
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 +5 -5
- package/dist/components/CreatableSelect/CreatableSelect.stories.d.ts +3 -3
- package/dist/components/FixedPanel/FixedPanel.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Select/Select.stories.d.ts +2 -2
- package/dist/components/Select/internal/MultiValueRemove/MultiValueRemove.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +1 -0
- package/dist/components/Table/Header.d.ts +4 -2
- package/dist/components/Table/Table.stories.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +15 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +28 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/internal/Tab.d.ts +12 -0
- package/dist/components/Tabs/styled.d.ts +11 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.es.js +360 -235
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +361 -235
- package/dist/index.js.map +1 -1
- package/package.json +17 -18
- package/CHANGELOG.md +0 -1887
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CreatableProps } from "react-select/creatable";
|
|
3
|
-
import { GroupBase } from "react-select/src/types";
|
|
3
|
+
import { GroupBase } from "react-select/dist/declarations/src/types";
|
|
4
4
|
import { OptionType } from "../Select";
|
|
5
5
|
export declare type CreatableSelectProps<T> = {
|
|
6
6
|
limit?: number;
|
|
@@ -18,7 +18,7 @@ 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" | "
|
|
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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, 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<{
|
|
22
22
|
'aria-live': string;
|
|
23
23
|
backspaceRemovesValue: boolean;
|
|
24
24
|
blurInputOnSelect: boolean;
|
|
@@ -29,7 +29,7 @@ declare const _default: <T>(props: {
|
|
|
29
29
|
controlShouldRenderValue: boolean;
|
|
30
30
|
escapeClearsValue: boolean;
|
|
31
31
|
filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
|
|
32
|
-
formatGroupLabel: <Option_1, Group_1 extends
|
|
32
|
+
formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
|
|
33
33
|
getOptionLabel: <Option_2>(option: Option_2) => string;
|
|
34
34
|
getOptionValue: <Option_3>(option: Option_3) => string;
|
|
35
35
|
isDisabled: boolean;
|
|
@@ -58,7 +58,7 @@ declare const _default: <T>(props: {
|
|
|
58
58
|
styles: {};
|
|
59
59
|
tabIndex: number;
|
|
60
60
|
tabSelectsValue: boolean;
|
|
61
|
-
}, never>>, "value" | "onChange" | "
|
|
61
|
+
}, never>>, "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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, 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<{
|
|
62
62
|
'aria-live': string;
|
|
63
63
|
backspaceRemovesValue: boolean;
|
|
64
64
|
blurInputOnSelect: boolean;
|
|
@@ -69,7 +69,7 @@ declare const _default: <T>(props: {
|
|
|
69
69
|
controlShouldRenderValue: boolean;
|
|
70
70
|
escapeClearsValue: boolean;
|
|
71
71
|
filterOption: (option: import("react-select/dist/declarations/src/filters").FilterOptionOption<unknown>, rawInput: string) => boolean;
|
|
72
|
-
formatGroupLabel: <Option_1, Group_1 extends
|
|
72
|
+
formatGroupLabel: <Option_1, Group_1 extends GroupBase<Option_1>>(group: Group_1) => string;
|
|
73
73
|
getOptionLabel: <Option_2>(option: Option_2) => string;
|
|
74
74
|
getOptionValue: <Option_3>(option: Option_3) => string;
|
|
75
75
|
isDisabled: boolean;
|
|
@@ -8,7 +8,7 @@ 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
|
|
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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").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<{
|
|
12
12
|
'aria-live': string;
|
|
13
13
|
backspaceRemovesValue: boolean;
|
|
14
14
|
blurInputOnSelect: boolean;
|
|
@@ -48,7 +48,7 @@ declare const _default: {
|
|
|
48
48
|
styles: {};
|
|
49
49
|
tabIndex: number;
|
|
50
50
|
tabSelectsValue: boolean;
|
|
51
|
-
}, never>>, "value" | "onChange" | "
|
|
51
|
+
}, never>>, "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"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").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<{
|
|
52
52
|
'aria-live': string;
|
|
53
53
|
backspaceRemovesValue: boolean;
|
|
54
54
|
blurInputOnSelect: boolean;
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
styles: {};
|
|
89
89
|
tabIndex: number;
|
|
90
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
|
|
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>>> & {
|
|
92
92
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined;
|
|
93
93
|
}) => React.ReactElement<import("./CreatableSelect").CreatableSelectProps<unknown>, string | React.JSXElementConstructor<any>>;
|
|
94
94
|
source: {
|
|
@@ -10,6 +10,7 @@ export declare type FixedPanelProps = {
|
|
|
10
10
|
* Define distance from top/bottom.
|
|
11
11
|
*/
|
|
12
12
|
offset?: number;
|
|
13
|
+
children?: React.ReactNode;
|
|
13
14
|
};
|
|
14
15
|
declare const FixedPanel: React.ForwardRefExoticComponent<FixedPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
16
|
export default FixedPanel;
|
|
@@ -20,7 +20,7 @@ declare const _default: <T>(props: {
|
|
|
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" | "
|
|
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
24
|
'aria-live': string;
|
|
25
25
|
backspaceRemovesValue: boolean;
|
|
26
26
|
blurInputOnSelect: boolean;
|
|
@@ -60,7 +60,7 @@ declare const _default: <T>(props: {
|
|
|
60
60
|
styles: {};
|
|
61
61
|
tabIndex: number;
|
|
62
62
|
tabSelectsValue: boolean;
|
|
63
|
-
}, never>>, "value" | "onChange" | "
|
|
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
64
|
'aria-live': string;
|
|
65
65
|
backspaceRemovesValue: boolean;
|
|
66
66
|
blurInputOnSelect: boolean;
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
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" | "
|
|
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
13
|
'aria-live': string;
|
|
14
14
|
backspaceRemovesValue: boolean;
|
|
15
15
|
blurInputOnSelect: boolean;
|
|
@@ -49,7 +49,7 @@ declare const _default: {
|
|
|
49
49
|
styles: {};
|
|
50
50
|
tabIndex: number;
|
|
51
51
|
tabSelectsValue: boolean;
|
|
52
|
-
}, never>>, "value" | "onChange" | "
|
|
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
53
|
'aria-live': string;
|
|
54
54
|
backspaceRemovesValue: boolean;
|
|
55
55
|
blurInputOnSelect: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GroupBase } from "react-select";
|
|
2
2
|
import { OptionType } from "../../";
|
|
3
|
-
import { MultiValueRemoveProps } from "react-select/src/components/MultiValue";
|
|
3
|
+
import { MultiValueRemoveProps } from "react-select/dist/declarations/src/components/MultiValue";
|
|
4
4
|
declare const MultiValueRemove: <T>(props: MultiValueRemoveProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>) => JSX.Element;
|
|
5
5
|
export { MultiValueRemove };
|
|
@@ -17,6 +17,7 @@ export declare type SnackbarProps = {
|
|
|
17
17
|
* Callback function that triggered when clicked ✖︎ Icon.
|
|
18
18
|
*/
|
|
19
19
|
onClose?: () => void;
|
|
20
|
+
children?: React.ReactNode;
|
|
20
21
|
};
|
|
21
22
|
declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
23
|
export default Snackbar;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export declare type Props = {
|
|
3
|
-
|
|
2
|
+
export declare type Props = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare const Header: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
(props: Pick<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "key" | keyof React.TableHTMLAttributes<HTMLTableElement>> & {
|
|
6
6
|
ref?: ((instance: HTMLTableElement | null) => void) | React.RefObject<HTMLTableElement> | null | undefined;
|
|
7
7
|
}): JSX.Element;
|
|
8
|
-
Header: React.ForwardRefExoticComponent<React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
+
Header: React.ForwardRefExoticComponent<import("./Header").Props & React.RefAttributes<HTMLTableSectionElement>>;
|
|
9
9
|
Body: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
10
10
|
Row: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof React.HTMLAttributes<HTMLTableRowElement>> & Partial<{
|
|
11
11
|
verticalSpacing: import("./Row").VerticalSpacing;
|
|
@@ -20,7 +20,7 @@ declare const _default: {
|
|
|
20
20
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
21
21
|
};
|
|
22
22
|
subcomponents: {
|
|
23
|
-
Header: React.ForwardRefExoticComponent<React.RefAttributes<HTMLTableSectionElement>>;
|
|
23
|
+
Header: React.ForwardRefExoticComponent<import("./Header").Props & React.RefAttributes<HTMLTableSectionElement>>;
|
|
24
24
|
Body: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "key" | keyof React.HTMLAttributes<HTMLTableSectionElement>> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
25
25
|
Row: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof React.HTMLAttributes<HTMLTableRowElement>> & Partial<{
|
|
26
26
|
verticalSpacing: import("./Row").VerticalSpacing;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare type TabsProps<T> = {
|
|
3
|
+
data: {
|
|
4
|
+
text: string;
|
|
5
|
+
count?: number;
|
|
6
|
+
value: T;
|
|
7
|
+
}[];
|
|
8
|
+
value: T;
|
|
9
|
+
withBadge?: boolean;
|
|
10
|
+
onChange?: (value: T) => void;
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const Tabs: <T>(props: TabsProps<T>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<TabsProps<T>, string | React.JSXElementConstructor<any>>;
|
|
14
|
+
declare const _default: <T>(props: TabsProps<T>, ref: React.ForwardedRef<HTMLDivElement>) => ReturnType<typeof Tabs>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: <T>(props: {
|
|
5
|
+
data: {
|
|
6
|
+
text: string;
|
|
7
|
+
count?: number | undefined;
|
|
8
|
+
value: T;
|
|
9
|
+
}[];
|
|
10
|
+
value: T;
|
|
11
|
+
withBadge?: boolean | undefined;
|
|
12
|
+
onChange?: ((value: T) => void) | undefined;
|
|
13
|
+
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
14
|
+
}, ref: React.ForwardedRef<HTMLDivElement>) => React.ReactElement<{
|
|
15
|
+
data: {
|
|
16
|
+
text: string;
|
|
17
|
+
count?: number | undefined;
|
|
18
|
+
value: unknown;
|
|
19
|
+
}[];
|
|
20
|
+
value: unknown;
|
|
21
|
+
withBadge?: boolean | undefined;
|
|
22
|
+
onChange?: ((value: unknown) => void) | undefined;
|
|
23
|
+
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
24
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
27
|
+
export declare const Example: () => JSX.Element;
|
|
28
|
+
export declare const WithBadge: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom/extend-expect";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Tabs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare type TabProps = {
|
|
3
|
+
text: string;
|
|
4
|
+
count?: number;
|
|
5
|
+
value: any;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
withBadge: boolean;
|
|
8
|
+
onChange?: (value: any) => void;
|
|
9
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const Tab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type ButtonProps = {
|
|
3
|
+
selected: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const ChildContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const ChildrenContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ButtonProps, never>;
|
|
8
|
+
export declare const Text: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, ButtonProps, never>;
|
|
9
|
+
export declare const Indicator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
export declare const Border: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
export {};
|
|
@@ -88,6 +88,8 @@ export { default as SplitAnnotation } from "./SplitAnnotation";
|
|
|
88
88
|
export * from "./SplitAnnotation";
|
|
89
89
|
export { default as Switch } from "./Switch";
|
|
90
90
|
export * from "./Switch";
|
|
91
|
+
export { default as Tabs } from "./Tabs";
|
|
92
|
+
export * from "./Tabs";
|
|
91
93
|
export { default as Table } from "./Table";
|
|
92
94
|
export * from "./Table";
|
|
93
95
|
export { default as TextField } from "./TextField";
|