@patternfly/react-core 4.243.1 → 4.244.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 (254) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/esm/components/Alert/Alert.d.ts +41 -34
  3. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  4. package/dist/esm/components/Alert/Alert.js.map +1 -1
  5. package/dist/esm/components/Alert/AlertActionCloseButton.d.ts +8 -5
  6. package/dist/esm/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
  7. package/dist/esm/components/Alert/AlertActionCloseButton.js.map +1 -1
  8. package/dist/esm/components/Alert/AlertActionLink.d.ts +5 -2
  9. package/dist/esm/components/Alert/AlertActionLink.d.ts.map +1 -1
  10. package/dist/esm/components/Alert/AlertActionLink.js.map +1 -1
  11. package/dist/esm/components/Alert/AlertIcon.d.ts +4 -4
  12. package/dist/esm/components/Alert/AlertIcon.d.ts.map +1 -1
  13. package/dist/esm/components/Alert/AlertToggleExpandButton.d.ts +5 -5
  14. package/dist/esm/components/Alert/AlertToggleExpandButton.d.ts.map +1 -1
  15. package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts +34 -28
  16. package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  17. package/dist/esm/components/CalendarMonth/CalendarMonth.js +1 -0
  18. package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
  19. package/dist/esm/components/DatePicker/DatePicker.d.ts +43 -36
  20. package/dist/esm/components/DatePicker/DatePicker.d.ts.map +1 -1
  21. package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
  22. package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +34 -24
  23. package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  24. package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
  25. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +10 -5
  26. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  27. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
  28. package/dist/esm/components/FileUpload/FileUpload.d.ts +53 -47
  29. package/dist/esm/components/FileUpload/FileUpload.d.ts.map +1 -1
  30. package/dist/esm/components/FileUpload/FileUpload.js.map +1 -1
  31. package/dist/esm/components/FileUpload/FileUploadField.d.ts +51 -46
  32. package/dist/esm/components/FileUpload/FileUploadField.d.ts.map +1 -1
  33. package/dist/esm/components/FileUpload/FileUploadField.js.map +1 -1
  34. package/dist/esm/components/Modal/Modal.d.ts +57 -48
  35. package/dist/esm/components/Modal/Modal.d.ts.map +1 -1
  36. package/dist/esm/components/Modal/Modal.js.map +1 -1
  37. package/dist/esm/components/Modal/ModalBox.d.ts +12 -12
  38. package/dist/esm/components/Modal/ModalBox.d.ts.map +1 -1
  39. package/dist/esm/components/Modal/ModalBoxBody.d.ts +2 -2
  40. package/dist/esm/components/Modal/ModalBoxBody.d.ts.map +1 -1
  41. package/dist/esm/components/Modal/ModalBoxCloseButton.d.ts +2 -2
  42. package/dist/esm/components/Modal/ModalBoxCloseButton.d.ts.map +1 -1
  43. package/dist/esm/components/Modal/ModalBoxDescription.d.ts +3 -3
  44. package/dist/esm/components/Modal/ModalBoxDescription.d.ts.map +1 -1
  45. package/dist/esm/components/Modal/ModalBoxFooter.d.ts +2 -2
  46. package/dist/esm/components/Modal/ModalBoxFooter.d.ts.map +1 -1
  47. package/dist/esm/components/Modal/ModalBoxHeader.d.ts +3 -3
  48. package/dist/esm/components/Modal/ModalBoxHeader.d.ts.map +1 -1
  49. package/dist/esm/components/Modal/ModalBoxTitle.d.ts +8 -9
  50. package/dist/esm/components/Modal/ModalBoxTitle.d.ts.map +1 -1
  51. package/dist/esm/components/Modal/ModalBoxTitle.js.map +1 -1
  52. package/dist/esm/components/Modal/ModalContent.d.ts +56 -48
  53. package/dist/esm/components/Modal/ModalContent.d.ts.map +1 -1
  54. package/dist/esm/components/Modal/ModalContent.js.map +1 -1
  55. package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts +17 -13
  56. package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
  57. package/dist/esm/components/NotificationBadge/NotificationBadge.js +3 -3
  58. package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
  59. package/dist/esm/components/Pagination/Navigation.d.ts +33 -33
  60. package/dist/esm/components/Pagination/Navigation.d.ts.map +1 -1
  61. package/dist/esm/components/Pagination/OptionsToggle.d.ts +27 -26
  62. package/dist/esm/components/Pagination/OptionsToggle.d.ts.map +1 -1
  63. package/dist/esm/components/Pagination/OptionsToggle.js.map +1 -1
  64. package/dist/esm/components/Pagination/Pagination.d.ts +76 -65
  65. package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
  66. package/dist/esm/components/Pagination/Pagination.js +1 -1
  67. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  68. package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts +22 -18
  69. package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
  70. package/dist/esm/components/Pagination/PaginationOptionsMenu.js.map +1 -1
  71. package/dist/esm/components/Pagination/ToggleTemplate.d.ts +3 -0
  72. package/dist/esm/components/Pagination/ToggleTemplate.d.ts.map +1 -1
  73. package/dist/esm/components/Pagination/ToggleTemplate.js.map +1 -1
  74. package/dist/esm/components/Popover/Popover.d.ts +88 -73
  75. package/dist/esm/components/Popover/Popover.d.ts.map +1 -1
  76. package/dist/esm/components/Popover/Popover.js.map +1 -1
  77. package/dist/esm/components/SearchInput/AdvancedSearchMenu.d.ts +27 -26
  78. package/dist/esm/components/SearchInput/AdvancedSearchMenu.d.ts.map +1 -1
  79. package/dist/esm/components/SearchInput/AdvancedSearchMenu.js.map +1 -1
  80. package/dist/esm/components/SearchInput/SearchInput.d.ts +71 -60
  81. package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
  82. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  83. package/dist/esm/components/Slider/Slider.d.ts +45 -39
  84. package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
  85. package/dist/esm/components/Slider/Slider.js.map +1 -1
  86. package/dist/esm/components/Slider/SliderStep.d.ts +10 -10
  87. package/dist/esm/components/Slider/SliderStep.d.ts.map +1 -1
  88. package/dist/esm/components/TreeView/TreeView.d.ts +65 -53
  89. package/dist/esm/components/TreeView/TreeView.d.ts.map +1 -1
  90. package/dist/esm/components/TreeView/TreeView.js.map +1 -1
  91. package/dist/esm/components/TreeView/TreeViewList.d.ts +4 -4
  92. package/dist/esm/components/TreeView/TreeViewList.d.ts.map +1 -1
  93. package/dist/esm/components/TreeView/TreeViewListItem.d.ts +46 -39
  94. package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  95. package/dist/esm/components/TreeView/TreeViewListItem.js.map +1 -1
  96. package/dist/esm/components/TreeView/TreeViewRoot.d.ts +4 -4
  97. package/dist/esm/components/TreeView/TreeViewRoot.d.ts.map +1 -1
  98. package/dist/esm/components/TreeView/TreeViewSearch.d.ts +11 -8
  99. package/dist/esm/components/TreeView/TreeViewSearch.d.ts.map +1 -1
  100. package/dist/esm/components/TreeView/TreeViewSearch.js.map +1 -1
  101. package/dist/esm/helpers/Popper/Popper.js +8 -8
  102. package/dist/esm/helpers/Popper/Popper.js.map +1 -1
  103. package/dist/js/components/Alert/Alert.d.ts +41 -34
  104. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  105. package/dist/js/components/Alert/Alert.js.map +1 -1
  106. package/dist/js/components/Alert/AlertActionCloseButton.d.ts +8 -5
  107. package/dist/js/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
  108. package/dist/js/components/Alert/AlertActionCloseButton.js.map +1 -1
  109. package/dist/js/components/Alert/AlertActionLink.d.ts +5 -2
  110. package/dist/js/components/Alert/AlertActionLink.d.ts.map +1 -1
  111. package/dist/js/components/Alert/AlertActionLink.js.map +1 -1
  112. package/dist/js/components/Alert/AlertIcon.d.ts +4 -4
  113. package/dist/js/components/Alert/AlertIcon.d.ts.map +1 -1
  114. package/dist/js/components/Alert/AlertToggleExpandButton.d.ts +5 -5
  115. package/dist/js/components/Alert/AlertToggleExpandButton.d.ts.map +1 -1
  116. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts +34 -28
  117. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  118. package/dist/js/components/CalendarMonth/CalendarMonth.js +1 -0
  119. package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
  120. package/dist/js/components/DatePicker/DatePicker.d.ts +43 -36
  121. package/dist/js/components/DatePicker/DatePicker.d.ts.map +1 -1
  122. package/dist/js/components/DatePicker/DatePicker.js.map +1 -1
  123. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +34 -24
  124. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  125. package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
  126. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +10 -5
  127. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  128. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.js.map +1 -1
  129. package/dist/js/components/FileUpload/FileUpload.d.ts +53 -47
  130. package/dist/js/components/FileUpload/FileUpload.d.ts.map +1 -1
  131. package/dist/js/components/FileUpload/FileUpload.js.map +1 -1
  132. package/dist/js/components/FileUpload/FileUploadField.d.ts +51 -46
  133. package/dist/js/components/FileUpload/FileUploadField.d.ts.map +1 -1
  134. package/dist/js/components/FileUpload/FileUploadField.js.map +1 -1
  135. package/dist/js/components/Modal/Modal.d.ts +57 -48
  136. package/dist/js/components/Modal/Modal.d.ts.map +1 -1
  137. package/dist/js/components/Modal/Modal.js.map +1 -1
  138. package/dist/js/components/Modal/ModalBox.d.ts +12 -12
  139. package/dist/js/components/Modal/ModalBox.d.ts.map +1 -1
  140. package/dist/js/components/Modal/ModalBoxBody.d.ts +2 -2
  141. package/dist/js/components/Modal/ModalBoxBody.d.ts.map +1 -1
  142. package/dist/js/components/Modal/ModalBoxCloseButton.d.ts +2 -2
  143. package/dist/js/components/Modal/ModalBoxCloseButton.d.ts.map +1 -1
  144. package/dist/js/components/Modal/ModalBoxDescription.d.ts +3 -3
  145. package/dist/js/components/Modal/ModalBoxDescription.d.ts.map +1 -1
  146. package/dist/js/components/Modal/ModalBoxFooter.d.ts +2 -2
  147. package/dist/js/components/Modal/ModalBoxFooter.d.ts.map +1 -1
  148. package/dist/js/components/Modal/ModalBoxHeader.d.ts +3 -3
  149. package/dist/js/components/Modal/ModalBoxHeader.d.ts.map +1 -1
  150. package/dist/js/components/Modal/ModalBoxTitle.d.ts +8 -9
  151. package/dist/js/components/Modal/ModalBoxTitle.d.ts.map +1 -1
  152. package/dist/js/components/Modal/ModalBoxTitle.js.map +1 -1
  153. package/dist/js/components/Modal/ModalContent.d.ts +56 -48
  154. package/dist/js/components/Modal/ModalContent.d.ts.map +1 -1
  155. package/dist/js/components/Modal/ModalContent.js.map +1 -1
  156. package/dist/js/components/NotificationBadge/NotificationBadge.d.ts +17 -13
  157. package/dist/js/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
  158. package/dist/js/components/NotificationBadge/NotificationBadge.js +3 -3
  159. package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
  160. package/dist/js/components/Pagination/Navigation.d.ts +33 -33
  161. package/dist/js/components/Pagination/Navigation.d.ts.map +1 -1
  162. package/dist/js/components/Pagination/OptionsToggle.d.ts +27 -26
  163. package/dist/js/components/Pagination/OptionsToggle.d.ts.map +1 -1
  164. package/dist/js/components/Pagination/OptionsToggle.js.map +1 -1
  165. package/dist/js/components/Pagination/Pagination.d.ts +76 -65
  166. package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
  167. package/dist/js/components/Pagination/Pagination.js +1 -1
  168. package/dist/js/components/Pagination/Pagination.js.map +1 -1
  169. package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts +22 -18
  170. package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
  171. package/dist/js/components/Pagination/PaginationOptionsMenu.js.map +1 -1
  172. package/dist/js/components/Pagination/ToggleTemplate.d.ts +3 -0
  173. package/dist/js/components/Pagination/ToggleTemplate.d.ts.map +1 -1
  174. package/dist/js/components/Pagination/ToggleTemplate.js.map +1 -1
  175. package/dist/js/components/Popover/Popover.d.ts +88 -73
  176. package/dist/js/components/Popover/Popover.d.ts.map +1 -1
  177. package/dist/js/components/Popover/Popover.js.map +1 -1
  178. package/dist/js/components/SearchInput/AdvancedSearchMenu.d.ts +27 -26
  179. package/dist/js/components/SearchInput/AdvancedSearchMenu.d.ts.map +1 -1
  180. package/dist/js/components/SearchInput/AdvancedSearchMenu.js.map +1 -1
  181. package/dist/js/components/SearchInput/SearchInput.d.ts +71 -60
  182. package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
  183. package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
  184. package/dist/js/components/Slider/Slider.d.ts +45 -39
  185. package/dist/js/components/Slider/Slider.d.ts.map +1 -1
  186. package/dist/js/components/Slider/Slider.js.map +1 -1
  187. package/dist/js/components/Slider/SliderStep.d.ts +10 -10
  188. package/dist/js/components/Slider/SliderStep.d.ts.map +1 -1
  189. package/dist/js/components/TreeView/TreeView.d.ts +65 -53
  190. package/dist/js/components/TreeView/TreeView.d.ts.map +1 -1
  191. package/dist/js/components/TreeView/TreeView.js.map +1 -1
  192. package/dist/js/components/TreeView/TreeViewList.d.ts +4 -4
  193. package/dist/js/components/TreeView/TreeViewList.d.ts.map +1 -1
  194. package/dist/js/components/TreeView/TreeViewListItem.d.ts +46 -39
  195. package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  196. package/dist/js/components/TreeView/TreeViewListItem.js.map +1 -1
  197. package/dist/js/components/TreeView/TreeViewRoot.d.ts +4 -4
  198. package/dist/js/components/TreeView/TreeViewRoot.d.ts.map +1 -1
  199. package/dist/js/components/TreeView/TreeViewSearch.d.ts +11 -8
  200. package/dist/js/components/TreeView/TreeViewSearch.d.ts.map +1 -1
  201. package/dist/js/components/TreeView/TreeViewSearch.js.map +1 -1
  202. package/dist/js/helpers/Popper/Popper.js +8 -8
  203. package/dist/js/helpers/Popper/Popper.js.map +1 -1
  204. package/dist/umd/react-core.min.css +3634 -3634
  205. package/dist/umd/react-core.min.js +2 -2
  206. package/package.json +2 -2
  207. package/src/components/Alert/Alert.tsx +42 -34
  208. package/src/components/Alert/AlertActionCloseButton.tsx +9 -5
  209. package/src/components/Alert/AlertActionLink.tsx +6 -2
  210. package/src/components/Alert/AlertIcon.tsx +4 -4
  211. package/src/components/Alert/AlertToggleExpandButton.tsx +5 -5
  212. package/src/components/Badge/__tests__/Badge.test.tsx +45 -8
  213. package/src/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +2 -12
  214. package/src/components/CalendarMonth/CalendarMonth.tsx +36 -28
  215. package/src/components/DatePicker/DatePicker.tsx +45 -36
  216. package/src/components/ExpandableSection/ExpandableSection.tsx +35 -24
  217. package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +11 -5
  218. package/src/components/FileUpload/FileUpload.tsx +56 -49
  219. package/src/components/FileUpload/FileUploadField.tsx +56 -50
  220. package/src/components/Modal/Modal.tsx +57 -48
  221. package/src/components/Modal/ModalBox.tsx +12 -12
  222. package/src/components/Modal/ModalBoxBody.tsx +2 -2
  223. package/src/components/Modal/ModalBoxCloseButton.tsx +2 -2
  224. package/src/components/Modal/ModalBoxDescription.tsx +3 -3
  225. package/src/components/Modal/ModalBoxFooter.tsx +2 -2
  226. package/src/components/Modal/ModalBoxHeader.tsx +3 -3
  227. package/src/components/Modal/ModalBoxTitle.tsx +8 -9
  228. package/src/components/Modal/ModalContent.tsx +56 -48
  229. package/src/components/Modal/examples/Modal.md +1 -3
  230. package/src/components/NotificationBadge/NotificationBadge.tsx +22 -15
  231. package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +25 -1
  232. package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +5 -0
  233. package/src/components/NotificationBadge/examples/NotificationBadge.md +16 -3
  234. package/src/components/NotificationBadge/examples/NotificationBadgeBasic.tsx +26 -13
  235. package/src/components/NotificationBadge/examples/NotificationBadgeWithCount.tsx +28 -18
  236. package/src/components/Pagination/Navigation.tsx +33 -33
  237. package/src/components/Pagination/OptionsToggle.tsx +27 -26
  238. package/src/components/Pagination/Pagination.tsx +79 -65
  239. package/src/components/Pagination/PaginationOptionsMenu.tsx +22 -18
  240. package/src/components/Pagination/ToggleTemplate.tsx +4 -0
  241. package/src/components/Popover/Popover.tsx +89 -73
  242. package/src/components/SearchInput/AdvancedSearchMenu.tsx +29 -28
  243. package/src/components/SearchInput/SearchInput.tsx +76 -62
  244. package/src/components/Slider/Slider.tsx +47 -41
  245. package/src/components/Slider/SliderStep.tsx +10 -10
  246. package/src/components/TreeView/TreeView.tsx +67 -53
  247. package/src/components/TreeView/TreeViewList.tsx +4 -4
  248. package/src/components/TreeView/TreeViewListItem.tsx +46 -39
  249. package/src/components/TreeView/TreeViewRoot.tsx +4 -4
  250. package/src/components/TreeView/TreeViewSearch.tsx +12 -8
  251. package/src/demos/Masthead.md +9 -193
  252. package/src/demos/NotificationDrawer/NotificationDrawer.md +2 -0
  253. package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +305 -0
  254. package/src/helpers/Popper/Popper.tsx +8 -8
@@ -16,88 +16,105 @@ export declare enum PopoverPosition {
16
16
  rightStart = "right-start",
17
17
  rightEnd = "right-end"
18
18
  }
19
+ /** The main popover component. The following properties can also be passed into another component
20
+ * that has a property specifically for passing in popover properties.
21
+ */
19
22
  export interface PopoverProps {
20
- /** Accessible label, required when header is not present */
21
- 'aria-label'?: string;
22
- /** The element to append the popover to, defaults to body */
23
+ /** @beta Text announced by screen reader when alert severity variant is set to indicate
24
+ * severity level.
25
+ */
26
+ alertSeverityScreenReaderText?: string;
27
+ /** @beta Severity variants for an alert popover. This modifies the color of the header to
28
+ * match the severity.
29
+ */
30
+ alertSeverityVariant?: 'default' | 'info' | 'warning' | 'success' | 'danger';
31
+ /** The duration of the CSS fade transition animation. */
32
+ animationDuration?: number;
33
+ /** The element to append the popover to. Defaults to "document.body". */
23
34
  appendTo?: HTMLElement | ((ref?: HTMLElement) => HTMLElement);
35
+ /** Accessible label for the popover, required when header is not present. */
36
+ 'aria-label'?: string;
24
37
  /**
25
- * Body content
26
- * If you want to close the popover after an action within the bodyContent, you can use the isVisible prop for manual control,
27
- * or you can provide a function which will receive a callback as an argument to hide the popover
28
- * i.e. bodyContent={hide => <Button onClick={() => hide()}>Close</Button>}
38
+ * Body content of the popover. If you want to close the popover after an action within the
39
+ * body content, you can use the isVisible prop for manual control, or you can provide a
40
+ * function which will receive a callback as an argument to hide the popover, i.e.
41
+ * bodyContent={hide => <Button onClick={() => hide()}>Close</Button>}
29
42
  */
30
43
  bodyContent: React.ReactNode | ((hide: () => void) => React.ReactNode);
44
+ /** @deprecated - no longer used. if you want to constrain the popper to a specific element
45
+ * use the appendTo prop instead.
46
+ */
47
+ boundary?: 'scrollParent' | 'window' | 'viewport' | HTMLElement;
31
48
  /**
32
- * The reference element to which the Popover is relatively placed to.
33
- * If you cannot wrap the reference with the Popover, you can use the reference prop instead.
49
+ * The reference element to which the popover is relatively placed to. If you cannot wrap
50
+ * the reference with the Popover, you can use the reference prop instead.
34
51
  * Usage: <Popover><Button>Reference</Button></Popover>
35
52
  */
36
53
  children?: ReactElement<any>;
37
- /**
38
- * The reference element to which the Popover is relatively placed to.
39
- * If you can wrap the reference with the Popover, you can use the children prop instead.
40
- * Usage: <Popover reference={() => document.getElementById('reference-element')} />
41
- */
42
- reference?: HTMLElement | (() => HTMLElement) | React.RefObject<any>;
43
- /** Popover additional class */
54
+ /** Additional classes added to the popover. */
44
55
  className?: string;
45
- /** Aria label for the Close button */
56
+ /** Accessible label for the close button. */
46
57
  closeBtnAriaLabel?: string;
47
- /** Whether to show the close button */
48
- showClose?: boolean;
49
- /** Distance of the popover to its target, defaults to 25 */
58
+ /** Distance of the popover to its target. Defaults to 25. */
50
59
  distance?: number;
51
60
  /**
52
61
  * If true, tries to keep the popover in view by flipping it if necessary.
53
- * If the position is set to 'auto', this prop is ignored
62
+ * If the position is set to 'auto', this prop is ignored.
54
63
  */
55
64
  enableFlip?: boolean;
56
65
  /**
57
66
  * The desired position to flip the popover to if the initial position is not possible.
58
- * By setting this prop to 'flip' it attempts to flip the popover to the opposite side if there is no space.
59
- * You can also pass an array of positions that determines the flip order. It should contain the initial position
60
- * followed by alternative positions if that position is unavailable.
61
- * Example: Initial position is 'top'. Button with popover is in the top right corner. 'flipBehavior' is set to
62
- * ['top', 'right', 'left']. Since there is no space to the top, it checks if right is available. There's also no
63
- * space to the right, so it finally shows the popover on the left.
67
+ * By setting this prop to 'flip' it attempts to flip the popover to the opposite side if
68
+ * there is no space.
69
+ * You can also pass an array of positions that determines the flip order. It should contain
70
+ * the initial position followed by alternative positions if that position is unavailable.
71
+ * Example: Initial position is 'top'. Button with popover is in the top right corner.
72
+ * 'flipBehavior' is set to ['top', 'right', 'left']. Since there is no space to the top, it
73
+ * checks if right is available. There's also no space to the right, so it finally shows the
74
+ * popover on the left.
64
75
  */
65
76
  flipBehavior?: 'flip' | ('top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end')[];
66
77
  /**
67
- * Footer content
68
- * If you want to close the popover after an action within the bodyContent, you can use the isVisible prop for manual control,
69
- * or you can provide a function which will receive a callback as an argument to hide the popover
70
- * i.e. footerContent={hide => <Button onClick={() => hide()}>Close</Button>}
78
+ * Footer content of the popover. If you want to close the popover after an action within the
79
+ * footer content, you can use the isVisible prop for manual control, or you can provide a
80
+ * function which will receive a callback as an argument to hide the popover, i.e.
81
+ * footerContent={hide => <Button onClick={() => hide()}>Close</Button>}
71
82
  */
72
83
  footerContent?: React.ReactNode | ((hide: () => void) => React.ReactNode);
84
+ /** Removes fixed-width and allows width to be defined by contents. */
85
+ hasAutoWidth?: boolean;
86
+ /** Allows content to touch edges of popover container. */
87
+ hasNoPadding?: boolean;
88
+ /** Sets the heading level to use for the popover header. Defaults to h6. */
89
+ headerComponent?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
73
90
  /**
74
- * Simple header content to be placed within a title.
75
- * If you want to close the popover after an action within the bodyContent, you can use the isVisible prop for manual control,
76
- * or you can provide a function which will receive a callback as an argument to hide the popover
77
- * i.e. headerContent={hide => <Button onClick={() => hide()}>Close</Button>}
91
+ * Simple header content to be placed within a title. If you want to close the popover after
92
+ * an action within the header content, you can use the isVisible prop for manual control,
93
+ * or you can provide a function which will receive a callback as an argument to hide the
94
+ * popover, i.e. headerContent={hide => <Button onClick={() => hide()}>Close</Button>}
78
95
  */
79
96
  headerContent?: React.ReactNode | ((hide: () => void) => React.ReactNode);
80
- /** Sets the heading level to use for the popover header. Default is h6. */
81
- headerComponent?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
82
- /** @beta Icon to be displayed in the popover header **/
97
+ /** @beta Icon to be displayed in the popover header. **/
83
98
  headerIcon?: React.ReactNode;
84
- /** @beta Severity variants for an alert popover. This modifies the color of the header to match the severity. */
85
- alertSeverityVariant?: 'default' | 'info' | 'warning' | 'success' | 'danger';
86
- /** @beta Text announced by screen reader when alert severity variant is set to indicate severity level */
87
- alertSeverityScreenReaderText?: string;
88
- /** Hides the popover when a click occurs outside (only works if isVisible is not controlled by the user) */
99
+ /** Hides the popover when a click occurs outside (only works if isVisible is not controlled
100
+ * by the user).
101
+ */
89
102
  hideOnOutsideClick?: boolean;
103
+ /** Id used as part of the various popover elements (popover-${id}-header/body/footer). */
104
+ id?: string;
90
105
  /**
91
106
  * True to show the popover programmatically. Used in conjunction with the shouldClose prop.
92
- * By default, the popover child element handles click events automatically. If you want to control this programmatically,
93
- * the popover will not auto-close if the Close button is clicked, ESC key is used, or if a click occurs outside the popover.
94
- * Instead, the consumer is responsible for closing the popover themselves by adding a callback listener for the shouldClose prop.
107
+ * By default, the popover child element handles click events automatically. If you want to
108
+ * control this programmatically, the popover will not auto-close if the close button is
109
+ * clicked, the escape key is used, or if a click occurs outside the popover. Instead, the
110
+ * consumer is responsible for closing the popover themselves by adding a callback listener
111
+ * for the shouldClose prop.
95
112
  */
96
113
  isVisible?: boolean;
97
- /** Minimum width of the popover (default 6.25rem) */
98
- minWidth?: string;
99
- /** Maximum width of the popover (default 18.75rem) */
114
+ /** Maximum width of the popover (default 18.75rem). */
100
115
  maxWidth?: string;
116
+ /** Minimum width of the popover (default 6.25rem). */
117
+ minWidth?: string;
101
118
  /**
102
119
  * Lifecycle function invoked when the popover has fully transitioned out.
103
120
  * Note: The tip argument is no longer passed and has been deprecated.
@@ -124,40 +141,38 @@ export interface PopoverProps {
124
141
  */
125
142
  onShown?: (tip?: TippyInstance) => void;
126
143
  /**
127
- * Popover position. Note: With 'enableFlip' set to true,
128
- * it will change the position if there is not enough space for the starting position.
129
- * The behavior of where it flips to can be controlled through the flipBehavior prop.
144
+ * Popover position. Note: With the enableFlip property set to true, it will change the
145
+ * position if there is not enough space for the starting position. The behavior of where it
146
+ * flips to can be controlled through the flipBehavior property.
130
147
  */
131
148
  position?: PopoverPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
132
149
  /**
133
- * Callback function that is only invoked when isVisible is also controlled. Called when the popover Close button is
134
- * clicked, Enter key was used on it, or the ESC key is used.
150
+ * The reference element to which the popover is relatively placed to. If you can wrap the
151
+ * reference with the popover, you can use the children prop instead.
152
+ * Usage: <Popover reference={() => document.getElementById('reference-element')} />
153
+ */
154
+ reference?: HTMLElement | (() => HTMLElement) | React.RefObject<any>;
155
+ /** @beta Opt-in for updated popper that does not use findDOMNode. */
156
+ removeFindDomNode?: boolean;
157
+ /**
158
+ * Callback function that is only invoked when isVisible is also controlled. Called when the
159
+ * popover close button is clicked, the enter key was used on it, or the escape key is used.
135
160
  * Note: The tip argument is no longer passed and has been deprecated.
136
161
  */
137
162
  shouldClose?: (tip?: TippyInstance, hideFunction?: () => void, event?: MouseEvent | KeyboardEvent) => void;
138
163
  /**
139
- * Callback function that is only invoked when isVisible is also controlled. Called when the Enter key is
140
- * used on the focused trigger
164
+ * Callback function that is only invoked when isVisible is also controlled. Called when the
165
+ * enter key is used on the focused trigger.
141
166
  */
142
167
  shouldOpen?: (showFunction?: () => void, event?: MouseEvent | KeyboardEvent) => void;
143
- /** z-index of the popover */
144
- zIndex?: number;
145
- /** CSS fade transition animation duration */
146
- animationDuration?: number;
147
- /** id used as part of the various popover elements (popover-${id}-header/body/footer) */
148
- id?: string;
149
- /** Whether to trap focus in the popover */
150
- withFocusTrap?: boolean;
151
- /** Removes fixed-width and allows width to be defined by contents */
152
- hasAutoWidth?: boolean;
153
- /** Allows content to touch edges of popover container */
154
- hasNoPadding?: boolean;
155
- /** @deprecated - no longer used. if you want to constrain the popper to a specific element use the appendTo prop instead */
156
- boundary?: 'scrollParent' | 'window' | 'viewport' | HTMLElement;
157
- /** @deprecated - no longer used */
168
+ /** Flag indicating whether the close button should be shown. */
169
+ showClose?: boolean;
170
+ /** @deprecated - no longer used. */
158
171
  tippyProps?: Partial<TippyProps>;
159
- /** @beta Opt-in for updated popper that does not use findDOMNode. */
160
- removeFindDomNode?: boolean;
172
+ /** Whether to trap focus in the popover. */
173
+ withFocusTrap?: boolean;
174
+ /** The z-index of the popover. */
175
+ zIndex?: number;
161
176
  }
162
177
  export declare const Popover: React.FunctionComponent<PopoverProps>;
163
178
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OA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  export interface AdvancedSearchMenuProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onChange'> {
4
- /** Additional classes added to the Advanced search menu */
4
+ /** Delimiter in the query string for pairing attributes with search values.
5
+ * Required whenever attributes are passed as props.
6
+ */
7
+ advancedSearchDelimiter?: string;
8
+ /** Array of attribute values used for dynamically generated advanced search. */
9
+ attributes?: string[] | SearchAttribute[];
10
+ /** Additional classes added to the advanced search menu. */
5
11
  className?: string;
6
- /** Value of the search input */
7
- value?: string;
8
- /** Ref of the div wrapping the whole search input **/
9
- parentRef?: React.RefObject<any>;
10
- /** Ref of the input element within the search input**/
11
- parentInputRef?: React.RefObject<any>;
12
- /** Function which builds an attribute-value map by parsing the value in the search input */
12
+ formAdditionalItems?: React.ReactNode;
13
+ /** Function which builds an attribute-value map by parsing the value in the search input. */
13
14
  getAttrValueMap?: () => {
14
15
  [key: string]: string;
15
16
  };
16
- /** A callback for when the search button clicked changes */
17
+ /** Attribute label for strings unassociated with one of the provided listed attributes. */
18
+ hasWordsAttrLabel?: React.ReactNode;
19
+ /** Flag for toggling the open/close state of the advanced search menu. */
20
+ isSearchMenuOpen?: boolean;
21
+ /** A callback for when the input value changes. */
22
+ onChange?: (value: string, event: React.FormEvent<HTMLInputElement>) => void;
23
+ /** A callback for when the user clicks the clear button. */
24
+ onClear?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
25
+ /** A callback for when the search button is clicked. */
17
26
  onSearch?: (value: string, event: React.SyntheticEvent<HTMLButtonElement>, attrValueMap: {
18
27
  [key: string]: string;
19
28
  }) => void;
20
- /** A callback for when the user clicks the clear button */
21
- onClear?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
22
- /** A callback for when the input value changes */
23
- onChange?: (value: string, event: React.FormEvent<HTMLInputElement>) => void;
24
- /** Function called to toggle the advanced search menu */
29
+ /** A callback for when the open advanced search button is clicked. */
25
30
  onToggleAdvancedMenu?: (e: React.SyntheticEvent<HTMLButtonElement>) => void;
26
- /** Flag for toggling the open/close state of the advanced search menu */
27
- isSearchMenuOpen?: boolean;
28
- /** Label for the buttons which reset the advanced search form and clear the search input */
31
+ /** Ref of the input element within the search input. */
32
+ parentInputRef?: React.RefObject<any>;
33
+ /** Ref of the div wrapping the whole search input. */
34
+ parentRef?: React.RefObject<any>;
35
+ /** Label for the button which resets the advanced search form and clears the search input. */
29
36
  resetButtonLabel?: string;
30
- /** Label for the buttons which called the onSearch event handler */
37
+ /** Label for the button which calls the onSearch event handler. */
31
38
  submitSearchButtonLabel?: string;
32
- /** Array of attribute values used for dynamically generated advanced search */
33
- attributes?: string[] | SearchAttribute[];
34
- formAdditionalItems?: React.ReactNode;
35
- /** Attribute label for strings unassociated with one of the provided listed attributes */
36
- hasWordsAttrLabel?: React.ReactNode;
37
- /** Delimiter in the query string for pairing attributes with search values.
38
- * Required whenever attributes are passed as props */
39
- advancedSearchDelimiter?: string;
39
+ /** Value of the search input. */
40
+ value?: string;
40
41
  }
41
42
  export declare const AdvancedSearchMenu: React.FunctionComponent<AdvancedSearchMenuProps>;
42
43
  //# sourceMappingURL=AdvancedSearchMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdvancedSearchMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchInput/AdvancedSearchMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAChG,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACjC,uDAAuD;IACvD,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CA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,EAAE,GAAG,CAAC,GACnE,CACQ,CACb,CACU,CACd,CAAC;QACF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;IAEF,OAAO,gBAAgB,CAAC,CAAC,CAAC,CACxB,oBAAC,KAAK,IAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC;QAC/C,oBAAC,SAAS;YACR,oBAAC,aAAa;gBACZ,oBAAC,IAAI;oBACF,eAAe,EAAE;oBACjB,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI;oBACjD,oBAAC,WAAW;wBACV,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,KAAK,IACjF,uBAAuB,CACjB;wBACR,CAAC,CAAC,OAAO,IAAI,CACZ,oBAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,OAAO,IACjD,gBAAgB,CACV,CACV,CACW,CACT,CACO,CACN,CACN,CACT,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AACF,kBAAkB,CAAC,WAAW,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"AdvancedSearchMenu.js","sourceRoot":"","sources":["../../../../src/components/SearchInput/AdvancedSearchMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,C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AAQ,CAAC,EAAE,CAAC,CACX,oBAAC,SAAS,IAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,QAAQ;YACpD,oBAAC,SAAS,IACR,IAAI,EAAC,MAAM,EACX,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,iBAAiB,CAAC,UAAU,EAAE,KAAK,EAAE,GAAG,CAAC,GACnE,CACQ,CACb,CACU,CACd,CAAC;QACF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;IAEF,OAAO,gBAAgB,CAAC,CAAC,CAAC,CACxB,oBAAC,KAAK,IAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC;QAC/C,oBAAC,SAAS;YACR,oBAAC,aAAa;gBACZ,oBAAC,IAAI;oBACF,eAAe,EAAE;oBACjB,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI;oBACjD,oBAAC,WAAW;wBACV,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC,KAAK,IACjF,uBAAuB,CACjB;wBACR,CAAC,CAAC,OAAO,IAAI,CACZ,oBAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,OAAO,IACjD,gBAAgB,CACV,CACV,CACW,CACT,CACO,CACN,CACN,CACT,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AACF,kBAAkB,CAAC,WAAW,GAAG,aAAa,CAAC"}
@@ -1,76 +1,33 @@
1
1
  import * as React from 'react';
2
+ /** Properties for adding search attributes to an advanced search input. These properties must
3
+ * be passed in as an object within an array to the search input component's attribute properrty.
4
+ */
2
5
  export interface SearchAttribute {
3
6
  /** The search attribute's value to be provided in the search input's query string.
4
- * It should have no spaces and be unique for every attribute */
7
+ * It should have no spaces and be unique for every attribute.
8
+ */
5
9
  attr: string;
6
- /** The search attribute's display name. It is used to label the field in the advanced search menu */
10
+ /** The search attribute's display name. It is used to label the field in the advanced
11
+ * search menu.
12
+ */
7
13
  display: React.ReactNode;
8
14
  }
15
+ /** Properties for creating an expandable search input. These properties should be passed into
16
+ * the search input component's expandableInput property.
17
+ */
9
18
  export interface ExpandableInput {
10
- /** Flag to indicate if the search input is expanded */
19
+ /** Flag to indicate if the search input is expanded. */
11
20
  isExpanded: boolean;
12
- /** Callback function to toggle the expandable search input */
21
+ /** Callback function to toggle the expandable search input. */
13
22
  onToggleExpand: (isExpanded: boolean, event: React.SyntheticEvent<HTMLButtonElement>) => void;
14
- /** An accessible label for the expandable search input toggle */
23
+ /** An accessible label for the expandable search input toggle. */
15
24
  toggleAriaLabel: string;
16
25
  }
26
+ /** The main search input component. */
17
27
  export interface SearchInputProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onChange' | 'results' | 'ref'> {
18
- /** Additional classes added to the banner */
19
- className?: string;
20
- /** Value of the search input */
21
- value?: string;
22
- /** Flag indicating if search input is disabled */
23
- isDisabled?: boolean;
24
- /** An accessible label for the search input */
25
- 'aria-label'?: string;
26
- /** placeholder text of the search input */
27
- placeholder?: string;
28
- /** @hide A reference object to attach to the input box */
29
- innerRef?: React.RefObject<any>;
30
- /** A callback for when the input value changes */
31
- onChange?: (value: string, event: React.FormEvent<HTMLInputElement>) => void;
32
- /** A suggestion for autocompleting */
33
- hint?: string;
34
- /** Object that makes the search input expandable/collapsible */
35
- expandableInput?: ExpandableInput;
36
- /** A callback for when the search button clicked changes */
37
- onSearch?: (value: string, event: React.SyntheticEvent<HTMLButtonElement>, attrValueMap: {
38
- [key: string]: string;
39
- }) => void;
40
- /** A callback for when the user clicks the clear button */
41
- onClear?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
42
- /** Label for the buttons which reset the advanced search form and clear the search input */
43
- resetButtonLabel?: string;
44
- /** Label for the buttons which called the onSearch event handler */
45
- submitSearchButtonLabel?: string;
46
- /** A callback for when the open advanced search button is clicked */
47
- onToggleAdvancedSearch?: (event: React.SyntheticEvent<HTMLButtonElement>, isOpen?: boolean) => void;
48
- /** A flag for controlling the open state of a custom advanced search implementation */
49
- isAdvancedSearchOpen?: boolean;
50
- /** Label for the button which opens the advanced search form menu */
51
- openMenuButtonAriaLabel?: string;
52
- /** Label for the button to navigate to previous result */
53
- previousNavigationButtonAriaLabel?: string;
54
- /** Flag indicating if the previous navigation button is disabled */
55
- isPreviousNavigationButtonDisabled?: boolean;
56
- /** Label for the button to navigate to next result */
57
- nextNavigationButtonAriaLabel?: string;
58
- /** Flag indicating if the next navigation button is disabled */
59
- isNextNavigationButtonDisabled?: boolean;
60
- /** Function called when user clicks to navigate to next result */
61
- onNextClick?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
62
- /** Function called when user clicks to navigate to previous result */
63
- onPreviousClick?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
64
- /** The number of search results returned. Either a total number of results,
65
- * or a string representing the current result over the total number of results. i.e. "1 / 5" */
66
- resultsCount?: number | string;
67
- /** Array of attribute values used for dynamically generated advanced search */
68
- attributes?: string[] | SearchAttribute[];
69
- formAdditionalItems?: React.ReactNode;
70
- /** Attribute label for strings unassociated with one of the provided listed attributes */
71
- hasWordsAttrLabel?: React.ReactNode;
72
28
  /** Delimiter in the query string for pairing attributes with search values.
73
- * Required whenever attributes are passed as props */
29
+ * Required whenever attributes are passed as props.
30
+ */
74
31
  advancedSearchDelimiter?: string;
75
32
  /** The container to append the menu to.
76
33
  * If your menu is being cut off you can append it to an element higher up the DOM tree.
@@ -79,8 +36,62 @@ export interface SearchInputProps extends Omit<React.HTMLProps<HTMLDivElement>,
79
36
  * appendTo={document.getElementById('target')}
80
37
  */
81
38
  appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
39
+ /** An accessible label for the search input. */
40
+ 'aria-label'?: string;
41
+ /** Array of attribute values used for dynamically generated advanced search. */
42
+ attributes?: string[] | SearchAttribute[];
43
+ /** Additional classes added to the search input. */
44
+ className?: string;
45
+ /** Object that makes the search input expandable/collapsible. */
46
+ expandableInput?: ExpandableInput;
47
+ formAdditionalItems?: React.ReactNode;
48
+ /** Attribute label for strings unassociated with one of the provided listed attributes. */
49
+ hasWordsAttrLabel?: React.ReactNode;
50
+ /** A suggestion for autocompleting. */
51
+ hint?: string;
52
+ /** @hide A reference object to attach to the input box. */
53
+ innerRef?: React.RefObject<any>;
54
+ /** A flag for controlling the open state of a custom advanced search implementation. */
55
+ isAdvancedSearchOpen?: boolean;
56
+ /** Flag indicating if search input is disabled. */
57
+ isDisabled?: boolean;
58
+ /** Flag indicating if the next navigation button is disabled. */
59
+ isNextNavigationButtonDisabled?: boolean;
60
+ /** Flag indicating if the previous navigation button is disabled. */
61
+ isPreviousNavigationButtonDisabled?: boolean;
62
+ /** Accessible label for the button to navigate to next result. */
63
+ nextNavigationButtonAriaLabel?: string;
64
+ /** A callback for when the input value changes. */
65
+ onChange?: (value: string, event: React.FormEvent<HTMLInputElement>) => void;
66
+ /** A callback for when the user clicks the clear button. */
67
+ onClear?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
68
+ /** A callback for when the user clicks to navigate to next result. */
69
+ onNextClick?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
70
+ /** A callback for when the user clicks to navigate to previous result. */
71
+ onPreviousClick?: (event: React.SyntheticEvent<HTMLButtonElement>) => void;
72
+ /** A callback for when the search button is clicked. */
73
+ onSearch?: (value: string, event: React.SyntheticEvent<HTMLButtonElement>, attrValueMap: {
74
+ [key: string]: string;
75
+ }) => void;
76
+ /** A callback for when the open advanced search button is clicked. */
77
+ onToggleAdvancedSearch?: (event: React.SyntheticEvent<HTMLButtonElement>, isOpen?: boolean) => void;
78
+ /** Accessible label for the button which opens the advanced search form menu. */
79
+ openMenuButtonAriaLabel?: string;
80
+ /** Placeholder text of the search input. */
81
+ placeholder?: string;
82
+ /** Accessible label for the button to navigate to previous result. */
83
+ previousNavigationButtonAriaLabel?: string;
82
84
  /** @beta Opt-in for updated popper that does not use findDOMNode. */
83
85
  removeFindDomNode?: boolean;
86
+ /** Label for the button which resets the advanced search form and clears the search input. */
87
+ resetButtonLabel?: string;
88
+ /** The number of search results returned. Either a total number of results,
89
+ * or a string representing the current result over the total number of results. i.e. "1 / 5". */
90
+ resultsCount?: number | string;
91
+ /** Label for the button which calls the onSearch event handler. */
92
+ submitSearchButtonLabel?: string;
93
+ /** Value of the search input. */
94
+ value?: string;
84
95
  }
85
96
  export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
86
97
  //# sourceMappingURL=SearchInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,MAAM,WAAW,eAAe;IAC9B;oEACgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,qGAAqG;IACrG,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,cAAc,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC9F,iEAAiE;IACjE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,CAAC;IAC7G,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,KAAK,CAAC,E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