@acusti/dropdown 0.44.0 → 0.44.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/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  [![latest version](https://img.shields.io/npm/v/@acusti/dropdown?style=for-the-badge)](https://www.npmjs.com/package/@acusti/dropdown)
4
4
  [![maintenance status](https://img.shields.io/npms-io/maintenance-score/@acusti/dropdown?style=for-the-badge)](https://npms.io/search?q=%40acusti%2Fdropdown)
5
- [![bundle size](https://img.shields.io/bundlephobia/minzip/@acusti/dropdown?style=for-the-badge)](https://bundlephobia.com/package/@acusti/dropdown)
6
5
  [![downloads per month](https://img.shields.io/npm/dm/@acusti/dropdown?style=for-the-badge)](https://www.npmjs.com/package/@acusti/dropdown)
6
+ [![bundle size](https://deno.bundlejs.com/badge?q=@acusti/dropdown)](https://bundlejs.com/?q=%40acusti%2Fdropdown)
7
7
 
8
8
  `Dropdown` is a React component that renders a menu-like UI with a trigger
9
9
  that the user clicks to disclose a dropdown positioned below the trigger.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- type ChildrenTuple = [React.ReactNode, React.ReactNode];
3
2
  export type Item = {
4
3
  element: HTMLElement | null;
5
4
  event: Event | React.SyntheticEvent<HTMLElement>;
@@ -20,7 +19,7 @@ export type Props = {
20
19
  /**
21
20
  * Can take a single React element or exactly two renderable children.
22
21
  */
23
- children: React.JSX.Element | ChildrenTuple;
22
+ children: ChildrenTuple | React.JSX.Element;
24
23
  className?: string;
25
24
  disabled?: boolean;
26
25
  /**
@@ -61,5 +60,28 @@ export type Props = {
61
60
  */
62
61
  value?: string;
63
62
  };
64
- export default function Dropdown({ allowCreate, allowEmpty, children, className, disabled, hasItems, isOpenOnMount, isSearchable, keepOpenOnSubmit, label, name, onClick, onClose, onMouseDown, onMouseUp, onOpen, onSubmitItem, placeholder, style: styleFromProps, tabIndex, value, }: Props): React.JSX.Element;
63
+ type ChildrenTuple = [React.ReactNode, React.ReactNode];
64
+ export default function Dropdown({
65
+ allowCreate,
66
+ allowEmpty,
67
+ children,
68
+ className,
69
+ disabled,
70
+ hasItems,
71
+ isOpenOnMount,
72
+ isSearchable,
73
+ keepOpenOnSubmit,
74
+ label,
75
+ name,
76
+ onClick,
77
+ onClose,
78
+ onMouseDown,
79
+ onMouseUp,
80
+ onOpen,
81
+ onSubmitItem,
82
+ placeholder,
83
+ style: styleFromProps,
84
+ tabIndex,
85
+ value,
86
+ }: Props): React.JSX.Element;
65
87
  export {};