@splunk/react-ui 4.29.0 → 4.30.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.
Files changed (201) hide show
  1. package/Accordion.js +1 -0
  2. package/CHANGELOG.md +31 -3
  3. package/Card.js +17 -17
  4. package/Chip.js +5 -5
  5. package/Clickable.js +107 -87
  6. package/Code.js +10 -22
  7. package/CollapsiblePanel.js +8 -8
  8. package/ComboBox.js +43 -38
  9. package/Date.js +6 -6
  10. package/DualListbox.js +1 -1
  11. package/Link.js +70 -68
  12. package/MIGRATION.mdx +51 -1
  13. package/Markdown.js +10 -9
  14. package/Menu.js +5 -5
  15. package/Message.js +160 -149
  16. package/Multiselect.js +9 -6
  17. package/Number.js +19 -18
  18. package/Paginator.js +239 -223
  19. package/RadioBar.js +43 -39
  20. package/ResultsMenu.js +14 -11
  21. package/Search.js +227 -220
  22. package/Select.js +77 -72
  23. package/StepBar.js +1 -1
  24. package/Table.js +2082 -1594
  25. package/Text.js +1 -0
  26. package/TextArea.d.ts +1 -1
  27. package/cypress/support/component.ts +2 -2
  28. package/package.json +21 -20
  29. package/test-runner-jest.config.js +1 -0
  30. package/types/src/Accordion/Accordion.d.ts +3 -7
  31. package/types/src/Accordion/Panel.d.ts +2 -2
  32. package/types/src/Anchor/Anchor.d.ts +1 -1
  33. package/types/src/AnimationToggle/AnimationToggle.d.ts +3 -3
  34. package/types/src/Box/Box.d.ts +1 -1
  35. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +4 -4
  36. package/types/src/Breadcrumbs/Item.d.ts +1 -1
  37. package/types/src/Button/Button.d.ts +5 -5
  38. package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  39. package/types/src/ButtonSimple/ButtonSimple.d.ts +10 -10
  40. package/types/src/Calendar/Calendar.d.ts +3 -3
  41. package/types/src/Calendar/DateTable.d.ts +2 -2
  42. package/types/src/Calendar/Day.d.ts +3 -3
  43. package/types/src/Calendar/MonthHeader.d.ts +6 -6
  44. package/types/src/Card/Body.d.ts +1 -1
  45. package/types/src/Card/Card.d.ts +6 -6
  46. package/types/src/Card/Footer.d.ts +1 -1
  47. package/types/src/Card/Header.d.ts +1 -1
  48. package/types/src/CardLayout/CardLayout.d.ts +4 -4
  49. package/types/src/Chip/Chip.d.ts +5 -5
  50. package/types/src/Clickable/Clickable.d.ts +12 -4
  51. package/types/src/Clickable/NavigationProvider.d.ts +26 -5
  52. package/types/src/CloseButton/CloseButton.d.ts +1 -1
  53. package/types/src/Code/Code.d.ts +2 -2
  54. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +9 -5
  55. package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
  56. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -0
  57. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +1 -1
  58. package/types/src/Color/Color.d.ts +8 -8
  59. package/types/src/Color/Swatch.d.ts +2 -2
  60. package/types/src/ColumnLayout/Column.d.ts +1 -1
  61. package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
  62. package/types/src/ColumnLayout/Row.d.ts +1 -1
  63. package/types/src/ComboBox/ComboBox.d.ts +7 -6
  64. package/types/src/ComboBox/Option.d.ts +3 -3
  65. package/types/src/Concertina/Concertina.d.ts +2 -2
  66. package/types/src/Concertina/Heading.d.ts +3 -3
  67. package/types/src/Concertina/Panel.d.ts +4 -4
  68. package/types/src/Concertina/types.d.ts +1 -1
  69. package/types/src/ControlGroup/ControlGroup.d.ts +5 -5
  70. package/types/src/Date/Date.d.ts +10 -10
  71. package/types/src/DefinitionList/DefinitionList.d.ts +2 -2
  72. package/types/src/DefinitionList/Description.d.ts +1 -1
  73. package/types/src/DefinitionList/Term.d.ts +1 -1
  74. package/types/src/Divider/Divider.d.ts +1 -1
  75. package/types/src/Dropdown/Dropdown.d.ts +10 -10
  76. package/types/src/DualListbox/DualListbox.d.ts +4 -4
  77. package/types/src/DualListbox/DualListboxContext.d.ts +7 -7
  78. package/types/src/DualListbox/Label.d.ts +2 -2
  79. package/types/src/DualListbox/Listbox.d.ts +4 -4
  80. package/types/src/DualListbox/ListboxContext.d.ts +3 -3
  81. package/types/src/DualListbox/Option.d.ts +2 -2
  82. package/types/src/DualListbox/ToolbarButton.d.ts +3 -3
  83. package/types/src/DualListbox/ToolbarContext.d.ts +3 -3
  84. package/types/src/EventListener/EventListener.d.ts +1 -1
  85. package/types/src/File/File.d.ts +8 -8
  86. package/types/src/File/Item.d.ts +2 -2
  87. package/types/src/FormRows/FormRows.d.ts +6 -6
  88. package/types/src/FormRows/Row.d.ts +2 -2
  89. package/types/src/FormRows/RowInternal.d.ts +1 -1
  90. package/types/src/FormRows/SortableList.d.ts +1 -1
  91. package/types/src/FormRows/SortableRow.d.ts +3 -3
  92. package/types/src/Heading/Heading.d.ts +2 -2
  93. package/types/src/Image/Image.d.ts +2 -2
  94. package/types/src/JSONTree/JSONTree.d.ts +6 -6
  95. package/types/src/JSONTree/JSONTreeItem.d.ts +3 -3
  96. package/types/src/JSONTree/renderTreeItems.d.ts +1 -1
  97. package/types/src/Layer/Layer.d.ts +3 -3
  98. package/types/src/Link/Link.d.ts +4 -4
  99. package/types/src/List/Item.d.ts +1 -1
  100. package/types/src/List/List.d.ts +3 -3
  101. package/types/src/Markdown/Markdown.d.ts +18 -12
  102. package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +1 -1
  103. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  104. package/types/src/Markdown/renderers/MarkdownCode.d.ts +1 -1
  105. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  106. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
  107. package/types/src/Markdown/renderers/MarkdownImage.d.ts +1 -1
  108. package/types/src/Markdown/renderers/MarkdownItem.d.ts +1 -1
  109. package/types/src/Markdown/renderers/MarkdownLink.d.ts +1 -1
  110. package/types/src/Markdown/renderers/MarkdownList.d.ts +3 -3
  111. package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -1
  112. package/types/src/Menu/Divider.d.ts +1 -1
  113. package/types/src/Menu/Heading.d.ts +1 -1
  114. package/types/src/Menu/Item.d.ts +10 -10
  115. package/types/src/Menu/Menu.d.ts +9 -9
  116. package/types/src/Message/Link.d.ts +3 -3
  117. package/types/src/Message/Message.d.ts +1 -1
  118. package/types/src/MessageBar/MessageBar.d.ts +2 -2
  119. package/types/src/Modal/Body.d.ts +1 -1
  120. package/types/src/Modal/Footer.d.ts +1 -1
  121. package/types/src/Modal/Header.d.ts +1 -1
  122. package/types/src/Modal/Modal.d.ts +4 -4
  123. package/types/src/ModalLayer/ModalLayer.d.ts +3 -3
  124. package/types/src/Monogram/Monogram.d.ts +5 -5
  125. package/types/src/Multiselect/Compact.d.ts +2 -2
  126. package/types/src/Multiselect/Multiselect.d.ts +7 -7
  127. package/types/src/Multiselect/Normal.d.ts +2 -2
  128. package/types/src/Multiselect/Option.d.ts +3 -3
  129. package/types/src/Multiselect/docs/examples/Fetching.d.ts +1 -1
  130. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +1 -1
  131. package/types/src/Number/Number.d.ts +22 -22
  132. package/types/src/Paginator/Button.d.ts +3 -3
  133. package/types/src/Paginator/Compact.d.ts +4 -4
  134. package/types/src/Paginator/PageControl.d.ts +2 -2
  135. package/types/src/Paginator/PageSelect.d.ts +2 -2
  136. package/types/src/Paginator/Paginator.d.ts +2 -2
  137. package/types/src/Paragraph/Paragraph.d.ts +1 -1
  138. package/types/src/Popover/Popover.d.ts +11 -11
  139. package/types/src/Popover/PopoverHitArea.d.ts +1 -1
  140. package/types/src/Progress/Progress.d.ts +1 -1
  141. package/types/src/RadioBar/Option.d.ts +8 -4
  142. package/types/src/RadioBar/RadioBar.d.ts +8 -8
  143. package/types/src/RadioList/Option.d.ts +1 -1
  144. package/types/src/RadioList/RadioList.d.ts +3 -3
  145. package/types/src/Resize/Resize.d.ts +4 -4
  146. package/types/src/Resize/docs/examples/Basic.d.ts +2 -0
  147. package/types/src/ResultsMenu/ResultsMenu.d.ts +7 -5
  148. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedItem.d.ts +1 -1
  149. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  150. package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +2 -2
  151. package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +2 -2
  152. package/types/src/Scroll/Inner.d.ts +3 -3
  153. package/types/src/Scroll/Scroll.d.ts +2 -2
  154. package/types/src/Search/Option.d.ts +8 -8
  155. package/types/src/Search/Search.d.ts +4 -4
  156. package/types/src/Select/Option.d.ts +2 -2
  157. package/types/src/Select/OptionBase.d.ts +8 -8
  158. package/types/src/Select/Select.d.ts +5 -5
  159. package/types/src/Select/SelectAllOption.d.ts +1 -1
  160. package/types/src/Select/SelectBase.d.ts +9 -8
  161. package/types/src/SidePanel/SidePanel.d.ts +3 -3
  162. package/types/src/Slider/Slider.d.ts +8 -8
  163. package/types/src/SlidingPanels/Panel.d.ts +2 -2
  164. package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -2
  165. package/types/src/SplitButton/Item.d.ts +2 -2
  166. package/types/src/SplitButton/SplitButton.d.ts +1 -1
  167. package/types/src/StaticContent/StaticContent.d.ts +1 -1
  168. package/types/src/StepBar/Step.d.ts +1 -1
  169. package/types/src/StepBar/StepBar.d.ts +1 -1
  170. package/types/src/Switch/Switch.d.ts +4 -8
  171. package/types/src/TabBar/Tab.d.ts +7 -8
  172. package/types/src/TabBar/TabBar.d.ts +5 -5
  173. package/types/src/TabLayout/Panel.d.ts +2 -2
  174. package/types/src/TabLayout/TabLayout.d.ts +3 -3
  175. package/types/src/Table/Body.d.ts +4 -8
  176. package/types/src/Table/Caption.d.ts +2 -2
  177. package/types/src/Table/Cell.d.ts +3 -3
  178. package/types/src/Table/DragHandle.d.ts +1 -1
  179. package/types/src/Table/Head.d.ts +6 -6
  180. package/types/src/Table/HeadCell.d.ts +9 -9
  181. package/types/src/Table/HeadDropdownCell.d.ts +11 -11
  182. package/types/src/Table/HeadInner.d.ts +5 -5
  183. package/types/src/Table/HeadTable.d.ts +2 -2
  184. package/types/src/Table/KeyboardSensor.d.ts +79 -0
  185. package/types/src/Table/Row.d.ts +12 -14
  186. package/types/src/Table/RowDragCell.d.ts +9 -40
  187. package/types/src/Table/Table.d.ts +12 -10
  188. package/types/src/Table/Toggle.d.ts +1 -1
  189. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +1 -1
  190. package/types/src/Text/Text.d.ts +13 -11
  191. package/types/src/TextArea/TextArea.d.ts +10 -10
  192. package/types/src/Tooltip/Tooltip.d.ts +9 -9
  193. package/types/src/TransitionOpen/TransitionOpen.d.ts +2 -2
  194. package/types/src/Tree/Tree.d.ts +3 -3
  195. package/types/src/Tree/TreeItem.d.ts +4 -4
  196. package/types/src/Typography/Typography.d.ts +5 -5
  197. package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
  198. package/types/src/fixtures/FetchOptions.d.ts +2 -2
  199. package/types/src/useKeyPress/index.d.ts +2 -2
  200. package/types/src/utils/types.d.ts +4 -4
  201. package/types/src/Resize/docs/examples/Typical.d.ts +0 -2
@@ -4,16 +4,16 @@ import { CompactPropsBase } from './Compact';
4
4
  import Option from './Option';
5
5
  import { ClassComponentProps } from '../utils/types';
6
6
  /** @public */
7
- declare type MultiselectFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.FocusEvent<HTMLInputElement> | React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent, data: {
7
+ type MultiselectFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.FocusEvent<HTMLInputElement> | React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent, data: {
8
8
  keyword: string;
9
9
  }) => void;
10
10
  /** @public */
11
- declare type MultiselectChangeHandler = (event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLInputElement>, data: {
11
+ type MultiselectChangeHandler = (event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLInputElement>, data: {
12
12
  name?: string;
13
13
  values: (string | number | boolean)[];
14
14
  }) => void;
15
15
  /** @public */
16
- declare type MultiselectScrollBottomHandler = (event: React.UIEvent<HTMLDivElement> | React.KeyboardEvent<HTMLInputElement> | null) => void;
16
+ type MultiselectScrollBottomHandler = (event: React.UIEvent<HTMLDivElement> | React.KeyboardEvent<HTMLInputElement> | null) => void;
17
17
  interface MultiselectPropsBase {
18
18
  animateLoading?: boolean;
19
19
  /**
@@ -194,11 +194,11 @@ interface MultiselectPropsBaseCompact extends MultiselectPropsBase {
194
194
  /** @private */
195
195
  toggle?: CompactPropsBase['toggle'];
196
196
  }
197
- declare type MultiselectNormalProps = ClassComponentProps<(MultiselectPropsBaseControlled | MultiselectPropsBaseUncontrolled) & MultiselectPropsBaseNormal, typeof defaultProps, 'div'>;
198
- declare type MultiselectCompactProps = ClassComponentProps<(MultiselectPropsBaseControlled | MultiselectPropsBaseUncontrolled) & MultiselectPropsBaseCompact, typeof defaultProps, 'button'>;
199
- declare type MultiselectProps = MultiselectNormalProps | MultiselectCompactProps;
197
+ type MultiselectNormalProps = ClassComponentProps<(MultiselectPropsBaseControlled | MultiselectPropsBaseUncontrolled) & MultiselectPropsBaseNormal, typeof defaultProps, 'div'>;
198
+ type MultiselectCompactProps = ClassComponentProps<(MultiselectPropsBaseControlled | MultiselectPropsBaseUncontrolled) & MultiselectPropsBaseCompact, typeof defaultProps, 'button'>;
199
+ type MultiselectProps = MultiselectNormalProps | MultiselectCompactProps;
200
200
  declare class Multiselect extends Component<MultiselectProps, {}> {
201
- static propTypes: React.WeakValidationMap<MultiselectPropsBaseControlled & MultiselectPropsBaseNormal & Required<Pick<MultiselectPropsBase, "placeholder" | "disabled" | "inline" | "compact" | "defaultPlacement" | "repositionMode" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue" | "useClickawayOverlay">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "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" | "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" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">> | React.WeakValidationMap<MultiselectPropsBaseUncontrolled & MultiselectPropsBaseNormal & Required<Pick<MultiselectPropsBase, "placeholder" | "disabled" | "inline" | "compact" | "defaultPlacement" | "repositionMode" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue" | "useClickawayOverlay">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "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" | "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" | "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" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">> | React.WeakValidationMap<MultiselectPropsBaseControlled & MultiselectPropsBaseCompact & Required<Pick<MultiselectPropsBase, "placeholder" | "disabled" | "inline" | "compact" | "defaultPlacement" | "repositionMode" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue" | "useClickawayOverlay">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "value" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "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" | "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" | "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" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">> | React.WeakValidationMap<MultiselectPropsBaseUncontrolled & MultiselectPropsBaseCompact & Required<Pick<MultiselectPropsBase, "placeholder" | "disabled" | "inline" | "compact" | "defaultPlacement" | "repositionMode" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue" | "useClickawayOverlay">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "value" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "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" | "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" | "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" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">>;
201
+ static propTypes: React.WeakValidationMap<MultiselectProps>;
202
202
  static defaultProps: Required<Pick<MultiselectPropsBase, "placeholder" | "disabled" | "inline" | "compact" | "defaultPlacement" | "repositionMode" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue" | "useClickawayOverlay">>;
203
203
  static componentType: string;
204
204
  static Option: typeof Option;
@@ -128,7 +128,7 @@ interface NormalPropsBase {
128
128
  values?: (string | number | boolean)[];
129
129
  }
130
130
  declare const defaultProps: Required<Pick<NormalPropsBase, 'allowNewValues' | 'animateLoading' | 'defaultPlacement' | 'disabled' | 'inline' | 'isLoadingOptions' | 'menuStyle' | 'noOptionsMessage' | 'placeholder' | 'tabConfirmsNewValue' | 'useClickawayOverlay'>>;
131
- declare type NormalProps = ClassComponentProps<NormalPropsBase, typeof defaultProps, 'div'>;
131
+ type NormalProps = ClassComponentProps<NormalPropsBase, typeof defaultProps, 'div'>;
132
132
  interface NormalState {
133
133
  activeIndex: number;
134
134
  el: HTMLDivElement | null;
@@ -147,7 +147,7 @@ declare class Normal extends Component<NormalProps, NormalState> {
147
147
  private input;
148
148
  private popoverId;
149
149
  private previousActiveIndex;
150
- static propTypes: React.WeakValidationMap<ClassComponentProps<NormalPropsBase, Required<Pick<NormalPropsBase, "placeholder" | "disabled" | "inline" | "defaultPlacement" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue" | "useClickawayOverlay">>, "div", never>>;
150
+ static propTypes: React.WeakValidationMap<NormalProps>;
151
151
  static defaultProps: Required<Pick<NormalPropsBase, "placeholder" | "disabled" | "inline" | "defaultPlacement" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue" | "useClickawayOverlay">>;
152
152
  static Option: typeof Option;
153
153
  static Divider: typeof Divider;
@@ -1,6 +1,6 @@
1
1
  import React, { PureComponent } from 'react';
2
2
  import { ClassComponentProps } from '../utils/types';
3
- declare type OptionClickHandler = (event: React.MouseEvent<HTMLButtonElement>, data: {
3
+ type OptionClickHandler = (event: React.MouseEvent<HTMLButtonElement>, data: {
4
4
  value: string | number | boolean;
5
5
  }) => void;
6
6
  interface OptionPropsBase {
@@ -77,7 +77,7 @@ interface OptionPropsBase {
77
77
  value: string | number | boolean;
78
78
  }
79
79
  declare const defaultProps: Required<Pick<OptionPropsBase, 'compact' | 'descriptionPosition' | 'disabled' | 'selected' | 'truncate'>>;
80
- declare type OptionProps = ClassComponentProps<OptionPropsBase, typeof defaultProps, 'button'>;
80
+ type OptionProps = ClassComponentProps<OptionPropsBase, typeof defaultProps, 'button'>;
81
81
  /**
82
82
  * An option within a `Multiselect`. This inherits from
83
83
  * [PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent)
@@ -85,7 +85,7 @@ declare type OptionProps = ClassComponentProps<OptionPropsBase, typeof defaultPr
85
85
  */
86
86
  declare class Option extends PureComponent<OptionProps, {}> {
87
87
  private c;
88
- static propTypes: React.WeakValidationMap<ClassComponentProps<OptionPropsBase, Required<Pick<OptionPropsBase, "disabled" | "selected" | "compact" | "descriptionPosition" | "truncate">>, "button", never>>;
88
+ static propTypes: React.WeakValidationMap<OptionProps>;
89
89
  static defaultProps: Required<Pick<OptionPropsBase, "disabled" | "selected" | "compact" | "descriptionPosition" | "truncate">>;
90
90
  private handleMount;
91
91
  scrollIntoViewIfNeeded(): void;
@@ -13,7 +13,7 @@ declare class Fetching extends Component<{}, ExampleState> {
13
13
  componentDidMount(): void;
14
14
  componentWillUnmount(): void;
15
15
  handleChange: MultiselectChangeHandler;
16
- handleFetch: (keyword?: string | undefined) => void;
16
+ handleFetch: (keyword?: string) => void;
17
17
  handleFilterChange: MultiselectFilterChangeHandler;
18
18
  createOption: (movie: Movie | MovieOption, isSelected?: boolean) => JSX.Element;
19
19
  generateOptions: () => JSX.Element[];
@@ -14,7 +14,7 @@ declare class LoadMoreOnScrollBottom extends Component<{}, ExampleState> {
14
14
  componentDidMount(): void;
15
15
  componentWillUnmount(): void;
16
16
  handleChange: MultiselectChangeHandler;
17
- handleFetch: (keyword?: string | undefined) => void;
17
+ handleFetch: (keyword?: string) => void;
18
18
  handleFetchMore: (currentOptions: MovieOption[]) => void;
19
19
  handleFilterChange: MultiselectFilterChangeHandler;
20
20
  handleScrollBottom: () => void;