@woven-planet/lakefront 6.13.1 → 6.15.3
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 +11 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.d.ts +11 -2
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.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";
|
|
@@ -650,6 +652,7 @@ interface LakefrontTheme {
|
|
|
650
652
|
warning: string;
|
|
651
653
|
inverted: string;
|
|
652
654
|
success: string;
|
|
655
|
+
hyperlink: string;
|
|
653
656
|
};
|
|
654
657
|
lettering: {
|
|
655
658
|
primary: {
|
|
@@ -699,13 +702,13 @@ interface SelectOption$0 {
|
|
|
699
702
|
value: string | number | undefined;
|
|
700
703
|
label: string;
|
|
701
704
|
}
|
|
702
|
-
interface SelectProps {
|
|
705
|
+
interface SelectProps extends ReactSelectProps {
|
|
703
706
|
/**
|
|
704
707
|
* This is to set the options of the dropdown.
|
|
705
708
|
*/
|
|
706
709
|
options: SelectOption$0[];
|
|
707
710
|
/**
|
|
708
|
-
* This is called
|
|
711
|
+
* This is called on a dropdown change event.
|
|
709
712
|
*/
|
|
710
713
|
onChange(event: any): void;
|
|
711
714
|
/**
|
|
@@ -757,6 +760,12 @@ interface SelectProps {
|
|
|
757
760
|
* A value to initially set the multi-select component to.
|
|
758
761
|
*/
|
|
759
762
|
multiDefaultValue?: SelectOption$0[];
|
|
763
|
+
/**
|
|
764
|
+
* Enable async select component.
|
|
765
|
+
* Note: Some optional props that are applicable to both normal and async Select variants may
|
|
766
|
+
* need to be explicitly defined in asyncConfig to work properly (e.g. noOptionsMessage, placeholder).
|
|
767
|
+
*/
|
|
768
|
+
asyncConfig?: Partial<ReactAsyncSelectProps<SelectOption$0, boolean, GroupBase<SelectOption$0>>>;
|
|
760
769
|
}
|
|
761
770
|
/**
|
|
762
771
|
* The select component is used to render a dropdown with options. The user can set a selected option by default.
|