@woven-planet/lakefront 6.13.1 → 6.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.d.ts +10 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.d.ts +10 -2
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import React from "react";
|
|
|
3
3
|
import { ComponentPropsWithoutRef, FC, RefAttributes, ReactNode, ElementType, ReactElement, ComponentPropsWithRef, ChangeEvent, Dispatch, MouseEventHandler, SetStateAction, MouseEvent } from "react";
|
|
4
4
|
import { LinkProps } from "react-router-dom";
|
|
5
5
|
import { GetStyles, GroupBase } from "react-select/dist/declarations/src/types";
|
|
6
|
+
import { AsyncProps as ReactAsyncSelectProps } from "react-select/async";
|
|
7
|
+
import { Props as ReactSelectProps } from "react-select";
|
|
6
8
|
import { ParsedQuery } from "query-string";
|
|
7
9
|
import { Theme } from "@emotion/react";
|
|
8
10
|
import { Column } from "react-table";
|
|
@@ -699,13 +701,13 @@ interface SelectOption$0 {
|
|
|
699
701
|
value: string | number | undefined;
|
|
700
702
|
label: string;
|
|
701
703
|
}
|
|
702
|
-
interface SelectProps {
|
|
704
|
+
interface SelectProps extends ReactSelectProps {
|
|
703
705
|
/**
|
|
704
706
|
* This is to set the options of the dropdown.
|
|
705
707
|
*/
|
|
706
708
|
options: SelectOption$0[];
|
|
707
709
|
/**
|
|
708
|
-
* This is called
|
|
710
|
+
* This is called on a dropdown change event.
|
|
709
711
|
*/
|
|
710
712
|
onChange(event: any): void;
|
|
711
713
|
/**
|
|
@@ -757,6 +759,12 @@ interface SelectProps {
|
|
|
757
759
|
* A value to initially set the multi-select component to.
|
|
758
760
|
*/
|
|
759
761
|
multiDefaultValue?: SelectOption$0[];
|
|
762
|
+
/**
|
|
763
|
+
* Enable async select component.
|
|
764
|
+
* Note: Some optional props that are applicable to both normal and async Select variants may
|
|
765
|
+
* need to be explicitly defined in asyncConfig to work properly (e.g. noOptionsMessage, placeholder).
|
|
766
|
+
*/
|
|
767
|
+
asyncConfig?: Partial<ReactAsyncSelectProps<SelectOption$0, boolean, GroupBase<SelectOption$0>>>;
|
|
760
768
|
}
|
|
761
769
|
/**
|
|
762
770
|
* The select component is used to render a dropdown with options. The user can set a selected option by default.
|