@acusti/dropdown 0.47.0 → 0.49.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/Dropdown.d.ts +6 -3
- package/dist/Dropdown.js +364 -282
- package/dist/Dropdown.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/package.json +4 -4
package/dist/Dropdown.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export type Item = {
|
|
3
|
-
element:
|
|
3
|
+
element: MaybeHTMLElement;
|
|
4
4
|
event: Event | React.SyntheticEvent<HTMLElement>;
|
|
5
5
|
label: string;
|
|
6
6
|
value: string;
|
|
@@ -32,6 +32,8 @@ export type Props = {
|
|
|
32
32
|
isSearchable?: boolean;
|
|
33
33
|
keepOpenOnSubmit?: boolean;
|
|
34
34
|
label?: string;
|
|
35
|
+
minHeightBody?: number;
|
|
36
|
+
minWidthBody?: number;
|
|
35
37
|
/**
|
|
36
38
|
* Only usable in conjunction with {isSearchable: true}.
|
|
37
39
|
* Used as search input’s name.
|
|
@@ -60,6 +62,7 @@ export type Props = {
|
|
|
60
62
|
*/
|
|
61
63
|
value?: string;
|
|
62
64
|
};
|
|
63
|
-
type ChildrenTuple = [React.ReactNode, React.ReactNode];
|
|
64
|
-
|
|
65
|
+
type ChildrenTuple = [React.ReactNode, React.ReactNode] | readonly [React.ReactNode, React.ReactNode];
|
|
66
|
+
type MaybeHTMLElement = HTMLElement | null;
|
|
67
|
+
export default function Dropdown({ allowCreate, allowEmpty, children, className, disabled, hasItems, isOpenOnMount, isSearchable, keepOpenOnSubmit, label, minHeightBody, minWidthBody, name, onClick, onClose, onMouseDown, onMouseUp, onOpen, onSubmitItem, placeholder, style: styleFromProps, tabIndex, value, }: Props): React.JSX.Element;
|
|
65
68
|
export {};
|