@zendeskgarden/react-dropdowns 8.46.0 → 8.48.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.
@@ -22,8 +22,7 @@ export interface IAutocompleteProps extends HTMLAttributes<HTMLDivElement> {
22
22
  /** Defines the icon rendered in the start position */
23
23
  start?: any;
24
24
  }
25
- declare const _default: React.FunctionComponent<IAutocompleteProps & React.RefAttributes<HTMLDivElement>>;
26
25
  /**
27
26
  * @extends HTMLAttributes<HTMLDivElement>
28
27
  */
29
- export default _default;
28
+ export declare const Autocomplete: React.ForwardRefExoticComponent<IAutocompleteProps & React.RefAttributes<HTMLDivElement>>;
@@ -4,9 +4,9 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React, { ComponentPropsWithoutRef } from 'react';
7
+ import React, { HTMLAttributes } from 'react';
8
8
  import { VALIDATION } from '../../utils/validation';
9
- export interface IComboboxProps extends ComponentPropsWithoutRef<'div'> {
9
+ export interface IComboboxProps extends HTMLAttributes<HTMLDivElement> {
10
10
  /** Applies compact styling */
11
11
  isCompact?: boolean;
12
12
  /** Removes borders and padding */
@@ -26,8 +26,7 @@ export interface IComboboxProps extends ComponentPropsWithoutRef<'div'> {
26
26
  /** Defines the icon rendered in the end position */
27
27
  end?: any;
28
28
  }
29
- declare const _default: React.FC<IComboboxProps & React.RefAttributes<HTMLDivElement>>;
30
29
  /**
31
30
  * @extends HTMLAttributes<HTMLDivElement>
32
31
  */
33
- export default _default;
32
+ export declare const Combobox: React.ForwardRefExoticComponent<IComboboxProps & React.RefAttributes<HTMLDivElement>>;
@@ -4,7 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React from 'react';
7
+ import { PropsWithChildren } from 'react';
8
+ import PropTypes from 'prop-types';
8
9
  import { ControllerStateAndHelpers, StateChangeOptions } from 'downshift';
9
10
  export declare const REMOVE_ITEM_STATE_TYPE = "REMOVE_ITEM";
10
11
  export interface IDropdownProps {
@@ -40,7 +41,18 @@ export interface IDropdownProps {
40
41
  * */
41
42
  onInputValueChange?: (inputValue: string, stateAndHelpers: ControllerStateAndHelpers<any>) => void;
42
43
  /** Passes customization props to the [Downshift](https://www.downshift-js.com/) component */
43
- downshiftProps?: object;
44
+ downshiftProps?: Record<string, any>;
44
45
  }
45
- declare const _default: React.FunctionComponent<IDropdownProps>;
46
- export default _default;
46
+ export declare const Dropdown: {
47
+ (props: PropsWithChildren<IDropdownProps>): JSX.Element;
48
+ propTypes: {
49
+ isOpen: PropTypes.Requireable<boolean>;
50
+ selectedItem: PropTypes.Requireable<any>;
51
+ selectedItems: PropTypes.Requireable<any[]>;
52
+ highlightedIndex: PropTypes.Requireable<number>;
53
+ inputValue: PropTypes.Requireable<string>;
54
+ onSelect: PropTypes.Requireable<(...args: any[]) => any>;
55
+ onStateChange: PropTypes.Requireable<(...args: any[]) => any>;
56
+ downshiftProps: PropTypes.Requireable<object>;
57
+ };
58
+ };
@@ -4,8 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React, { HTMLAttributes } from 'react';
7
+ import React from 'react';
8
8
  /**
9
9
  * @extends HTMLAttributes<HTMLDivElement>
10
10
  */
11
- export declare const Field: React.FunctionComponent<HTMLAttributes<HTMLDivElement>>;
11
+ export declare const Field: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -9,4 +9,4 @@ import { IItemProps } from './Item';
9
9
  /**
10
10
  * @extends LiHTMLAttributes<HTMLLIElement>
11
11
  */
12
- export declare const AddItem: React.ForwardRefExoticComponent<Pick<IItemProps, "children" | "disabled" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLLIElement>>;
12
+ export declare const AddItem: React.ForwardRefExoticComponent<Omit<IItemProps, "component"> & React.RefAttributes<HTMLLIElement>>;
@@ -9,11 +9,13 @@ export interface IItemProps extends LiHTMLAttributes<HTMLLIElement> {
9
9
  /** Sets the value that is returned upon selection */
10
10
  value?: any;
11
11
  /**
12
- * @ignore
12
+ * @ignore Sets the wrapping component for the item
13
13
  */
14
14
  component?: any;
15
15
  /** Indicates that the element is not interactive */
16
16
  disabled?: boolean;
17
+ /** Applies danger styling */
18
+ isDanger?: boolean;
17
19
  }
18
20
  /**
19
21
  * @extends LiHTMLAttributes<HTMLLIElement>
@@ -4,8 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React, { HTMLAttributes } from 'react';
7
+ import { HTMLAttributes } from 'react';
8
8
  /**
9
- * @extends HTMLAttributes<any>
9
+ * @extends HTMLAttributes<Element>
10
10
  */
11
- export declare const MediaFigure: React.FC<HTMLAttributes<any>>;
11
+ export declare const MediaFigure: (props: HTMLAttributes<Element>) => JSX.Element;
@@ -9,4 +9,4 @@ import { IItemProps } from './Item';
9
9
  /**
10
10
  * @extends LiHTMLAttributes<HTMLLIElement>
11
11
  */
12
- export declare const MediaItem: React.ForwardRefExoticComponent<IItemProps & React.RefAttributes<HTMLLIElement>>;
12
+ export declare const MediaItem: React.ForwardRefExoticComponent<Omit<IItemProps, "component"> & React.RefAttributes<HTMLLIElement>>;
@@ -9,4 +9,4 @@ import { IItemProps } from './Item';
9
9
  /**
10
10
  * @extends LiHTMLAttributes<HTMLLIElement>
11
11
  */
12
- export declare const NextItem: React.ForwardRefExoticComponent<Pick<IItemProps, "children" | "disabled" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLLIElement>>;
12
+ export declare const NextItem: React.ForwardRefExoticComponent<Omit<IItemProps, "component"> & React.RefAttributes<HTMLLIElement>>;
@@ -9,4 +9,4 @@ import { IItemProps } from './Item';
9
9
  /**
10
10
  * @extends LiHTMLAttributes<HTMLLIElement>
11
11
  */
12
- export declare const PreviousItem: React.ForwardRefExoticComponent<Pick<IItemProps, "children" | "disabled" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLLIElement>>;
12
+ export declare const PreviousItem: React.ForwardRefExoticComponent<Omit<IItemProps, "component"> & React.RefAttributes<HTMLLIElement>>;
@@ -41,8 +41,7 @@ export interface IMenuProps extends HTMLAttributes<HTMLUListElement> {
41
41
  */
42
42
  maxHeight?: string;
43
43
  }
44
- declare const _default: React.FunctionComponent<IMenuProps>;
45
44
  /**
46
45
  * @extends HTMLAttributes<HTMLUListElement>
47
46
  */
48
- export default _default;
47
+ export declare const Menu: React.ForwardRefExoticComponent<IMenuProps & React.RefAttributes<HTMLUListElement>>;
@@ -45,8 +45,7 @@ export interface IMultiselectProps extends HTMLAttributes<HTMLDivElement> {
45
45
  /** Defines the icon rendered before the element's content */
46
46
  start?: any;
47
47
  }
48
- declare const _default: React.FunctionComponent<IMultiselectProps & React.RefAttributes<HTMLDivElement>>;
49
48
  /**
50
49
  * @extends HTMLAttributes<HTMLDivElement>
51
50
  */
52
- export default _default;
51
+ export declare const Multiselect: React.ForwardRefExoticComponent<IMultiselectProps & React.RefAttributes<HTMLDivElement>>;
@@ -21,8 +21,6 @@ export interface ISelectProps extends HTMLAttributes<HTMLDivElement> {
21
21
  start?: any;
22
22
  }
23
23
  /**
24
- * Applies state and a11y attributes to its children. Must be nested within a `<Field>` component.
25
- *
26
24
  * @extends HTMLAttributes<HTMLDivElement>
27
25
  */
28
26
  export declare const Select: React.ForwardRefExoticComponent<ISelectProps & React.RefAttributes<HTMLDivElement>>;
@@ -4,7 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React, { HTMLAttributes } from 'react';
7
+ import { HTMLAttributes } from 'react';
8
+ import PropTypes from 'prop-types';
8
9
  export interface ITriggerProps extends HTMLAttributes<HTMLElement> {
9
10
  /** Passes the ref callback to components with non-standard ref props (i.e. `innerRef`) */
10
11
  refKey?: string;
@@ -12,5 +13,13 @@ export interface ITriggerProps extends HTMLAttributes<HTMLElement> {
12
13
  /**
13
14
  * @extends HTMLAttributes<HTMLElement>
14
15
  */
15
- declare const Trigger: React.FunctionComponent<ITriggerProps>;
16
- export default Trigger;
16
+ export declare const Trigger: {
17
+ ({ children, refKey, ...triggerProps }: ITriggerProps): JSX.Element;
18
+ propTypes: {
19
+ children: PropTypes.Requireable<any>;
20
+ refKey: PropTypes.Requireable<string>;
21
+ };
22
+ defaultProps: {
23
+ refKey: string;
24
+ };
25
+ };
@@ -4,15 +4,15 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- export { default as Dropdown } from './elements/Dropdown/Dropdown';
7
+ export { Dropdown } from './elements/Dropdown/Dropdown';
8
8
  export type { IDropdownProps } from './elements/Dropdown/Dropdown';
9
- export { default as Trigger } from './elements/Trigger/Trigger';
9
+ export { Trigger } from './elements/Trigger/Trigger';
10
10
  export type { ITriggerProps } from './elements/Trigger/Trigger';
11
- export { default as Autocomplete } from './elements/Autocomplete/Autocomplete';
11
+ export { Autocomplete } from './elements/Autocomplete/Autocomplete';
12
12
  export type { IAutocompleteProps } from './elements/Autocomplete/Autocomplete';
13
- export { default as Combobox } from './elements/Combobox/Combobox';
13
+ export { Combobox } from './elements/Combobox/Combobox';
14
14
  export type { IComboboxProps } from './elements/Combobox/Combobox';
15
- export { default as Multiselect } from './elements/Multiselect/Multiselect';
15
+ export { Multiselect } from './elements/Multiselect/Multiselect';
16
16
  export type { IMultiselectProps } from './elements/Multiselect/Multiselect';
17
17
  export { Select } from './elements/Select/Select';
18
18
  export type { ISelectProps } from './elements/Select/Select';
@@ -22,7 +22,7 @@ export { Label } from './elements/Fields/Label';
22
22
  export type { ILabelProps } from './elements/Fields/Label';
23
23
  export { Message } from './elements/Fields/Message';
24
24
  export type { IMessageProps } from './elements/Fields/Message';
25
- export { default as Menu } from './elements/Menu/Menu';
25
+ export { Menu } from './elements/Menu/Menu';
26
26
  export type { IMenuProps } from './elements/Menu/Menu';
27
27
  export { Separator } from './elements/Menu/Separator';
28
28
  export { AddItem } from './elements/Menu/Items/AddItem';
@@ -8,6 +8,7 @@ import { ThemeProps, DefaultTheme } from 'styled-components';
8
8
  export interface IStyledItemProps {
9
9
  isFocused?: boolean;
10
10
  isCompact?: boolean;
11
+ isDanger?: boolean;
11
12
  disabled?: boolean;
12
13
  checked?: boolean;
13
14
  }