@patternfly/react-core 6.2.0-prerelease.33 → 6.2.0-prerelease.34

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 (713) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/AboutModal/package.json +1 -1
  5. package/dist/dynamic/components/Accordion/package.json +1 -1
  6. package/dist/dynamic/components/ActionList/package.json +1 -1
  7. package/dist/dynamic/components/Alert/package.json +1 -1
  8. package/dist/dynamic/components/Avatar/package.json +1 -1
  9. package/dist/dynamic/components/BackToTop/package.json +1 -1
  10. package/dist/dynamic/components/Backdrop/package.json +1 -1
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  12. package/dist/dynamic/components/Badge/package.json +1 -1
  13. package/dist/dynamic/components/Banner/package.json +1 -1
  14. package/dist/dynamic/components/Brand/package.json +1 -1
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  16. package/dist/dynamic/components/Button/package.json +1 -1
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  18. package/dist/dynamic/components/Card/package.json +1 -1
  19. package/dist/dynamic/components/Checkbox/package.json +1 -1
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  22. package/dist/dynamic/components/Content/package.json +1 -1
  23. package/dist/dynamic/components/DataList/package.json +1 -1
  24. package/dist/dynamic/components/DatePicker/package.json +1 -1
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  26. package/dist/dynamic/components/Divider/package.json +1 -1
  27. package/dist/dynamic/components/Drawer/package.json +1 -1
  28. package/dist/dynamic/components/Dropdown/package.json +1 -1
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  30. package/dist/dynamic/components/EmptyState/package.json +1 -1
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  32. package/dist/dynamic/components/FileUpload/package.json +1 -1
  33. package/dist/dynamic/components/Form/package.json +1 -1
  34. package/dist/dynamic/components/FormSelect/package.json +1 -1
  35. package/dist/dynamic/components/HelperText/package.json +1 -1
  36. package/dist/dynamic/components/Hint/package.json +1 -1
  37. package/dist/dynamic/components/Icon/package.json +1 -1
  38. package/dist/dynamic/components/InputGroup/package.json +1 -1
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  40. package/dist/dynamic/components/Label/package.json +1 -1
  41. package/dist/dynamic/components/List/package.json +1 -1
  42. package/dist/dynamic/components/LoginPage/package.json +1 -1
  43. package/dist/dynamic/components/Masthead/package.json +1 -1
  44. package/dist/dynamic/components/Menu/package.json +1 -1
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  46. package/dist/dynamic/components/Modal/package.json +1 -1
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  48. package/dist/dynamic/components/Nav/package.json +1 -1
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  51. package/dist/dynamic/components/NumberInput/package.json +1 -1
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  53. package/dist/dynamic/components/Page/package.json +1 -1
  54. package/dist/dynamic/components/Pagination/package.json +1 -1
  55. package/dist/dynamic/components/Panel/package.json +1 -1
  56. package/dist/dynamic/components/Popover/package.json +1 -1
  57. package/dist/dynamic/components/Progress/package.json +1 -1
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  59. package/dist/dynamic/components/Radio/package.json +1 -1
  60. package/dist/dynamic/components/SearchInput/package.json +1 -1
  61. package/dist/dynamic/components/Select/package.json +1 -1
  62. package/dist/dynamic/components/Sidebar/package.json +1 -1
  63. package/dist/dynamic/components/SimpleList/package.json +1 -1
  64. package/dist/dynamic/components/Skeleton/package.json +1 -1
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  66. package/dist/dynamic/components/Slider/package.json +1 -1
  67. package/dist/dynamic/components/Spinner/package.json +1 -1
  68. package/dist/dynamic/components/Switch/package.json +1 -1
  69. package/dist/dynamic/components/Tabs/package.json +1 -1
  70. package/dist/dynamic/components/TextArea/package.json +1 -1
  71. package/dist/dynamic/components/TextInput/package.json +1 -1
  72. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  73. package/dist/dynamic/components/TimePicker/package.json +1 -1
  74. package/dist/dynamic/components/Timestamp/package.json +1 -1
  75. package/dist/dynamic/components/Title/package.json +1 -1
  76. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  77. package/dist/dynamic/components/Toolbar/package.json +1 -1
  78. package/dist/dynamic/components/Tooltip/package.json +1 -1
  79. package/dist/dynamic/components/TreeView/package.json +1 -1
  80. package/dist/dynamic/components/Truncate/package.json +1 -1
  81. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  82. package/dist/dynamic/components/Wizard/package.json +1 -1
  83. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  84. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/package.json +1 -1
  90. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  91. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  92. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  93. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  94. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  95. package/dist/dynamic/helpers/constants/package.json +1 -1
  96. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  97. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  98. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  99. package/dist/dynamic/helpers/package.json +1 -1
  100. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  101. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  102. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  103. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  104. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  105. package/dist/dynamic/helpers/util/package.json +1 -1
  106. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  107. package/dist/dynamic/layouts/Flex/package.json +1 -1
  108. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  109. package/dist/dynamic/layouts/Grid/package.json +1 -1
  110. package/dist/dynamic/layouts/Level/package.json +1 -1
  111. package/dist/dynamic/layouts/Split/package.json +1 -1
  112. package/dist/dynamic/layouts/Stack/package.json +1 -1
  113. package/dist/dynamic/styles/package.json +1 -1
  114. package/dist/dynamic-modules.json +1 -0
  115. package/dist/esm/components/Alert/Alert.d.ts +3 -3
  116. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  117. package/dist/esm/components/Alert/Alert.js +31 -5
  118. package/dist/esm/components/Alert/Alert.js.map +1 -1
  119. package/dist/esm/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
  120. package/dist/esm/components/Alert/AlertActionCloseButton.js +18 -1
  121. package/dist/esm/components/Alert/AlertActionCloseButton.js.map +1 -1
  122. package/dist/esm/components/Alert/AlertGroup.d.ts +4 -0
  123. package/dist/esm/components/Alert/AlertGroup.d.ts.map +1 -1
  124. package/dist/esm/components/Alert/AlertGroup.js +3 -3
  125. package/dist/esm/components/Alert/AlertGroup.js.map +1 -1
  126. package/dist/esm/components/Alert/AlertGroupContext.d.ts +8 -0
  127. package/dist/esm/components/Alert/AlertGroupContext.d.ts.map +1 -0
  128. package/dist/esm/components/Alert/AlertGroupContext.js +6 -0
  129. package/dist/esm/components/Alert/AlertGroupContext.js.map +1 -0
  130. package/dist/esm/components/Alert/AlertGroupInline.d.ts.map +1 -1
  131. package/dist/esm/components/Alert/AlertGroupInline.js +28 -6
  132. package/dist/esm/components/Alert/AlertGroupInline.js.map +1 -1
  133. package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts +2 -2
  134. package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  135. package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
  136. package/dist/esm/components/Card/Card.d.ts +2 -2
  137. package/dist/esm/components/Card/Card.d.ts.map +1 -1
  138. package/dist/esm/components/Card/Card.js.map +1 -1
  139. package/dist/esm/components/Card/CardHeader.d.ts +2 -0
  140. package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
  141. package/dist/esm/components/Card/CardHeader.js +2 -2
  142. package/dist/esm/components/Card/CardHeader.js.map +1 -1
  143. package/dist/esm/components/Card/CardTitle.d.ts +2 -2
  144. package/dist/esm/components/Card/CardTitle.d.ts.map +1 -1
  145. package/dist/esm/components/Card/CardTitle.js.map +1 -1
  146. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +4 -0
  147. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  148. package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +15 -9
  149. package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
  150. package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts +7 -0
  151. package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
  152. package/dist/esm/components/NotificationBadge/NotificationBadge.js +21 -4
  153. package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
  154. package/dist/esm/components/Page/Page.d.ts.map +1 -1
  155. package/dist/esm/components/Page/Page.js.map +1 -1
  156. package/dist/esm/components/Page/PageSection.d.ts +2 -2
  157. package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
  158. package/dist/esm/components/Page/PageSection.js.map +1 -1
  159. package/dist/esm/components/Toolbar/Toolbar.d.ts +3 -0
  160. package/dist/esm/components/Toolbar/Toolbar.d.ts.map +1 -1
  161. package/dist/esm/components/Toolbar/Toolbar.js +3 -2
  162. package/dist/esm/components/Toolbar/Toolbar.js.map +1 -1
  163. package/dist/esm/components/Truncate/Truncate.d.ts +6 -2
  164. package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
  165. package/dist/esm/components/Truncate/Truncate.js +4 -3
  166. package/dist/esm/components/Truncate/Truncate.js.map +1 -1
  167. package/dist/esm/helpers/resizeObserver.d.ts +2 -2
  168. package/dist/esm/helpers/resizeObserver.js +2 -2
  169. package/dist/js/components/Alert/Alert.d.ts +3 -3
  170. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  171. package/dist/js/components/Alert/Alert.js +30 -4
  172. package/dist/js/components/Alert/Alert.js.map +1 -1
  173. package/dist/js/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
  174. package/dist/js/components/Alert/AlertActionCloseButton.js +18 -1
  175. package/dist/js/components/Alert/AlertActionCloseButton.js.map +1 -1
  176. package/dist/js/components/Alert/AlertGroup.d.ts +4 -0
  177. package/dist/js/components/Alert/AlertGroup.d.ts.map +1 -1
  178. package/dist/js/components/Alert/AlertGroup.js +3 -3
  179. package/dist/js/components/Alert/AlertGroup.js.map +1 -1
  180. package/dist/js/components/Alert/AlertGroupContext.d.ts +8 -0
  181. package/dist/js/components/Alert/AlertGroupContext.d.ts.map +1 -0
  182. package/dist/js/components/Alert/AlertGroupContext.js +9 -0
  183. package/dist/js/components/Alert/AlertGroupContext.js.map +1 -0
  184. package/dist/js/components/Alert/AlertGroupInline.d.ts.map +1 -1
  185. package/dist/js/components/Alert/AlertGroupInline.js +27 -5
  186. package/dist/js/components/Alert/AlertGroupInline.js.map +1 -1
  187. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts +2 -2
  188. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  189. package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
  190. package/dist/js/components/Card/Card.d.ts +2 -2
  191. package/dist/js/components/Card/Card.d.ts.map +1 -1
  192. package/dist/js/components/Card/Card.js.map +1 -1
  193. package/dist/js/components/Card/CardHeader.d.ts +2 -0
  194. package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
  195. package/dist/js/components/Card/CardHeader.js +2 -2
  196. package/dist/js/components/Card/CardHeader.js.map +1 -1
  197. package/dist/js/components/Card/CardTitle.d.ts +2 -2
  198. package/dist/js/components/Card/CardTitle.d.ts.map +1 -1
  199. package/dist/js/components/Card/CardTitle.js.map +1 -1
  200. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +4 -0
  201. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  202. package/dist/js/components/ClipboardCopy/ClipboardCopy.js +14 -8
  203. package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
  204. package/dist/js/components/NotificationBadge/NotificationBadge.d.ts +7 -0
  205. package/dist/js/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
  206. package/dist/js/components/NotificationBadge/NotificationBadge.js +21 -4
  207. package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
  208. package/dist/js/components/Page/Page.d.ts.map +1 -1
  209. package/dist/js/components/Page/Page.js.map +1 -1
  210. package/dist/js/components/Page/PageSection.d.ts +2 -2
  211. package/dist/js/components/Page/PageSection.d.ts.map +1 -1
  212. package/dist/js/components/Page/PageSection.js.map +1 -1
  213. package/dist/js/components/Toolbar/Toolbar.d.ts +3 -0
  214. package/dist/js/components/Toolbar/Toolbar.d.ts.map +1 -1
  215. package/dist/js/components/Toolbar/Toolbar.js +3 -2
  216. package/dist/js/components/Toolbar/Toolbar.js.map +1 -1
  217. package/dist/js/components/Truncate/Truncate.d.ts +6 -2
  218. package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
  219. package/dist/js/components/Truncate/Truncate.js +4 -3
  220. package/dist/js/components/Truncate/Truncate.js.map +1 -1
  221. package/dist/js/helpers/resizeObserver.d.ts +2 -2
  222. package/dist/js/helpers/resizeObserver.js +2 -2
  223. package/dist/umd/assets/{output-CL2wZaU8.css → output-DwKAaf_N.css} +19297 -19158
  224. package/dist/umd/react-core.min.js +3 -3
  225. package/helpers/package.json +1 -1
  226. package/layouts/package.json +1 -1
  227. package/next/package.json +1 -1
  228. package/package.json +6 -6
  229. package/src/components/Accordion/examples/Accordion.md +1 -0
  230. package/src/components/Accordion/examples/AccordionBordered.tsx +3 -2
  231. package/src/components/Accordion/examples/AccordionDefinitionList.tsx +2 -1
  232. package/src/components/Accordion/examples/AccordionFixedWithMultipleExpandBehavior.tsx +2 -1
  233. package/src/components/Accordion/examples/AccordionSingleExpandBehavior.tsx +2 -1
  234. package/src/components/Accordion/examples/AccordionToggleIconAtStart.tsx +2 -1
  235. package/src/components/ActionList/examples/ActionList.md +1 -1
  236. package/src/components/ActionList/examples/ActionListSingleGroup.tsx +2 -2
  237. package/src/components/Alert/Alert.tsx +36 -7
  238. package/src/components/Alert/AlertActionCloseButton.tsx +34 -14
  239. package/src/components/Alert/AlertGroup.tsx +6 -0
  240. package/src/components/Alert/AlertGroupContext.tsx +11 -0
  241. package/src/components/Alert/AlertGroupInline.tsx +61 -22
  242. package/src/components/Alert/__tests__/AlertActionCloseButton.test.tsx +20 -2
  243. package/src/components/Alert/__tests__/AlertGroup.test.tsx +48 -5
  244. package/src/components/Alert/examples/Alert.md +42 -33
  245. package/src/components/Alert/examples/AlertAsyncLiveRegion.tsx +5 -5
  246. package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +1 -1
  247. package/src/components/Alert/examples/AlertGroupAsync.tsx +5 -5
  248. package/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx +3 -3
  249. package/src/components/Alert/examples/AlertGroupSingularDynamic.tsx +3 -3
  250. package/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx +4 -4
  251. package/src/components/Alert/examples/AlertGroupToast.tsx +3 -3
  252. package/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx +4 -4
  253. package/src/components/Breadcrumb/examples/Breadcrumb.md +1 -0
  254. package/src/components/Breadcrumb/examples/BreadcrumbDropdown.tsx +3 -2
  255. package/src/components/Button/examples/Button.md +1 -1
  256. package/src/components/Button/examples/ButtonProgress.tsx +5 -4
  257. package/src/components/CalendarMonth/CalendarMonth.tsx +2 -2
  258. package/src/components/CalendarMonth/examples/CalendarMonth.md +1 -0
  259. package/src/components/CalendarMonth/examples/CalendarMonthSelectableDate.tsx +2 -1
  260. package/src/components/Card/Card.tsx +2 -2
  261. package/src/components/Card/CardHeader.tsx +9 -1
  262. package/src/components/Card/CardTitle.tsx +2 -2
  263. package/src/components/Card/__tests__/Card.test.tsx +1 -3
  264. package/src/components/Card/__tests__/CardBody.test.tsx +1 -2
  265. package/src/components/Card/__tests__/CardFooter.test.tsx +1 -2
  266. package/src/components/Card/__tests__/CardHeader.test.tsx +14 -0
  267. package/src/components/Card/examples/Card.md +1 -1
  268. package/src/components/Card/examples/CardClickable.tsx +2 -1
  269. package/src/components/Card/examples/CardClickableSelectable.tsx +6 -5
  270. package/src/components/Card/examples/CardExpandable.tsx +5 -5
  271. package/src/components/Card/examples/CardExpandableWithIcon.tsx +4 -3
  272. package/src/components/Card/examples/CardHeaderInCardHead.tsx +3 -2
  273. package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +3 -2
  274. package/src/components/Card/examples/CardSelectable.tsx +5 -4
  275. package/src/components/Card/examples/CardSingleSelectable.tsx +2 -1
  276. package/src/components/Card/examples/CardTile.tsx +2 -1
  277. package/src/components/Card/examples/CardTileMulti.tsx +4 -3
  278. package/src/components/Card/examples/CardWithImageAndActions.tsx +4 -3
  279. package/src/components/Card/examples/CardWithModifiers.tsx +2 -2
  280. package/src/components/Checkbox/examples/Checkbox.md +1 -1
  281. package/src/components/Checkbox/examples/CheckboxControlled.tsx +7 -7
  282. package/src/components/ClipboardCopy/ClipboardCopy.tsx +35 -12
  283. package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +187 -1
  284. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
  285. package/src/components/ClipboardCopy/examples/ClipboardCopy.md +7 -0
  286. package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactTruncation.tsx +15 -0
  287. package/src/components/DescriptionList/examples/DescriptionList.md +1 -0
  288. package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +3 -2
  289. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +3 -2
  290. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +3 -2
  291. package/src/components/Dropdown/examples/Dropdown.md +1 -0
  292. package/src/components/Dropdown/examples/DropdownBasic.tsx +2 -1
  293. package/src/components/Dropdown/examples/DropdownWithDescriptions.tsx +2 -1
  294. package/src/components/Dropdown/examples/DropdownWithGroups.tsx +2 -1
  295. package/src/components/Dropdown/examples/DropdownWithKebabToggle.tsx +2 -1
  296. package/src/components/EmptyState/examples/EmptyState.md +2 -0
  297. package/src/components/EmptyState/examples/EmptyStateWithStatus.tsx +2 -1
  298. package/src/components/ExpandableSection/examples/ExpandableSectionBasic.tsx +2 -1
  299. package/src/components/ExpandableSection/examples/ExpandableSectionCustomToggle.tsx +2 -1
  300. package/src/components/ExpandableSection/examples/ExpandableSectionDetached.tsx +2 -1
  301. package/src/components/ExpandableSection/examples/ExpandableSectionDisclosure.tsx +2 -1
  302. package/src/components/ExpandableSection/examples/ExpandableSectionTruncateExpansion.tsx +2 -1
  303. package/src/components/FileUpload/examples/FileUpload.md +1 -0
  304. package/src/components/FileUpload/examples/FileUploadCustomPreview.tsx +3 -2
  305. package/src/components/FileUpload/examples/FileUploadCustomUpload.tsx +12 -11
  306. package/src/components/FileUpload/examples/FileUploadSimpleFile.tsx +3 -2
  307. package/src/components/FileUpload/examples/FileUploadSimpleText.tsx +4 -3
  308. package/src/components/FileUpload/examples/FileUploadTextWithEdits.tsx +4 -3
  309. package/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx +6 -5
  310. package/src/components/FileUpload/examples/FileUploadWithHelperText.tsx +4 -3
  311. package/src/components/FormSelect/examples/FormSelect.md +1 -0
  312. package/src/components/FormSelect/examples/FormSelectBasic.tsx +2 -1
  313. package/src/components/FormSelect/examples/FormSelectDisabled.tsx +2 -1
  314. package/src/components/FormSelect/examples/FormSelectGrouped.tsx +2 -1
  315. package/src/components/FormSelect/examples/FormSelectValidated.tsx +4 -3
  316. package/src/components/Hint/examples/Hint.md +1 -1
  317. package/src/components/Hint/examples/HintActionsWithNoOffset.tsx +2 -1
  318. package/src/components/Hint/examples/HintBasicWithTitle.tsx +2 -1
  319. package/src/components/Hint/examples/HintBasicWithoutTitle.tsx +2 -2
  320. package/src/components/Icon/examples/Icon.md +1 -1
  321. package/src/components/Icon/examples/IconCustomProgress.tsx +2 -2
  322. package/src/components/Icon/examples/IconProgress.tsx +2 -2
  323. package/src/components/InputGroup/examples/InputGroup.md +1 -1
  324. package/src/components/InputGroup/examples/InputGroupWithDropdown.tsx +2 -2
  325. package/src/components/InputGroup/examples/InputGroupWithPopover.tsx +3 -3
  326. package/src/components/Label/examples/Label.md +1 -1
  327. package/src/components/Label/examples/LabelEditable.tsx +3 -3
  328. package/src/components/Label/examples/LabelGroupCategoryRemovable.tsx +2 -1
  329. package/src/components/Label/examples/LabelGroupEditableAdd.tsx +3 -2
  330. package/src/components/Label/examples/LabelGroupEditableAddDropdown.tsx +8 -7
  331. package/src/components/Label/examples/LabelGroupEditableAddModal.tsx +21 -20
  332. package/src/components/Label/examples/LabelGroupEditableLabels.tsx +4 -3
  333. package/src/components/Label/examples/LabelGroupVerticalCategoryOverflowRemovable.tsx +2 -1
  334. package/src/components/LoginPage/examples/LoginPage.md +1 -1
  335. package/src/components/LoginPage/examples/LoginPageBasic.tsx +7 -7
  336. package/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx +9 -9
  337. package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +7 -7
  338. package/src/components/Menu/examples/Menu.md +1 -1
  339. package/src/components/Menu/examples/MenuBasic.tsx +3 -3
  340. package/src/components/Menu/examples/MenuDangerMenuItem.tsx +2 -1
  341. package/src/components/Menu/examples/MenuFilterDrilldown.tsx +7 -6
  342. package/src/components/Menu/examples/MenuFilteringWithSearchInput.tsx +3 -2
  343. package/src/components/Menu/examples/MenuOptionMultiSelect.tsx +2 -1
  344. package/src/components/Menu/examples/MenuOptionSingleSelect.tsx +3 -2
  345. package/src/components/Menu/examples/MenuScrollable.tsx +2 -1
  346. package/src/components/Menu/examples/MenuScrollableCustomMenuHeight.tsx +2 -1
  347. package/src/components/Menu/examples/MenuWithActions.tsx +2 -1
  348. package/src/components/Menu/examples/MenuWithCheckbox.tsx +2 -1
  349. package/src/components/Menu/examples/MenuWithDescription.tsx +2 -1
  350. package/src/components/Menu/examples/MenuWithDrilldown.tsx +5 -4
  351. package/src/components/Menu/examples/MenuWithDrilldownBreadcrumbs.tsx +3 -3
  352. package/src/components/Menu/examples/MenuWithDrilldownInitialState.tsx +5 -4
  353. package/src/components/Menu/examples/MenuWithDrilldownSubmenuFunctions.tsx +5 -4
  354. package/src/components/Menu/examples/MenuWithFavorites.tsx +3 -3
  355. package/src/components/Menu/examples/MenuWithFooter.tsx +2 -1
  356. package/src/components/Menu/examples/MenuWithIcons.tsx +2 -1
  357. package/src/components/Menu/examples/MenuWithLinks.tsx +2 -1
  358. package/src/components/Menu/examples/MenuWithSeparators.tsx +2 -1
  359. package/src/components/Menu/examples/MenuWithTitledGroups.tsx +2 -1
  360. package/src/components/Menu/examples/MenuWithViewMore.tsx +9 -8
  361. package/src/components/MenuToggle/examples/MenuToggle.md +19 -13
  362. package/src/components/MenuToggle/examples/MenuToggleTypeahead.tsx +2 -1
  363. package/src/components/Modal/examples/Modal.md +1 -1
  364. package/src/components/Modal/examples/ModalBasic.tsx +2 -2
  365. package/src/components/Modal/examples/ModalCustomFocus.tsx +2 -2
  366. package/src/components/Modal/examples/ModalCustomHeader.tsx +2 -2
  367. package/src/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
  368. package/src/components/Modal/examples/ModalCustomWidth.tsx +2 -2
  369. package/src/components/Modal/examples/ModalNoHeaderFooter.tsx +2 -2
  370. package/src/components/Modal/examples/ModalSize.tsx +3 -3
  371. package/src/components/Modal/examples/ModalTitleIcon.tsx +2 -2
  372. package/src/components/Modal/examples/ModalTopAligned.tsx +2 -2
  373. package/src/components/Modal/examples/ModalWithDescription.tsx +2 -2
  374. package/src/components/Modal/examples/ModalWithDropdown.tsx +3 -3
  375. package/src/components/Modal/examples/ModalWithForm.tsx +8 -8
  376. package/src/components/Modal/examples/ModalWithHelp.tsx +2 -2
  377. package/src/components/Modal/examples/ModalWithOverflowingContent.tsx +2 -2
  378. package/src/components/Modal/examples/ModalWithWizard.tsx +2 -2
  379. package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +1 -0
  380. package/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx +8 -7
  381. package/src/components/Nav/examples/Nav.md +1 -0
  382. package/src/components/Nav/examples/NavDefault.tsx +2 -1
  383. package/src/components/Nav/examples/NavDrilldown.tsx +2 -4
  384. package/src/components/Nav/examples/NavExpandable.tsx +3 -2
  385. package/src/components/Nav/examples/NavExpandableThirdLevel.tsx +3 -2
  386. package/src/components/Nav/examples/NavFlyout.tsx +2 -1
  387. package/src/components/Nav/examples/NavGrouped.tsx +2 -1
  388. package/src/components/Nav/examples/NavHorizontalNav.tsx +2 -1
  389. package/src/components/Nav/examples/NavHorizontalSubNav.tsx +2 -1
  390. package/src/components/Nav/examples/NavIcons.tsx +2 -1
  391. package/src/components/Nav/examples/NavMixed.tsx +3 -2
  392. package/src/components/NotificationBadge/NotificationBadge.tsx +34 -6
  393. package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +18 -3
  394. package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +34 -0
  395. package/src/components/NotificationBadge/examples/NotificationBadge.md +9 -1
  396. package/src/components/NotificationBadge/examples/NotificationBadgeBasic.tsx +4 -3
  397. package/src/components/NotificationBadge/examples/NotificationBadgeWithAnimation.tsx +48 -0
  398. package/src/components/NotificationBadge/examples/NotificationBadgeWithCount.tsx +4 -3
  399. package/src/components/NotificationDrawer/examples/NotificationDrawer.md +1 -0
  400. package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +2 -1
  401. package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +5 -4
  402. package/src/components/NotificationDrawer/examples/NotificationDrawerLightweight.tsx +4 -3
  403. package/src/components/NumberInput/examples/NumberInput.md +1 -1
  404. package/src/components/NumberInput/examples/NumberInputCustomStep.tsx +2 -1
  405. package/src/components/NumberInput/examples/NumberInputCustomStepAndThreshold.tsx +2 -1
  406. package/src/components/NumberInput/examples/NumberInputDefault.tsx +2 -1
  407. package/src/components/NumberInput/examples/NumberInputDisabled.tsx +2 -1
  408. package/src/components/NumberInput/examples/NumberInputUnit.tsx +3 -3
  409. package/src/components/NumberInput/examples/NumberInputUnitThreshold.tsx +2 -2
  410. package/src/components/NumberInput/examples/NumberInputVaryingSizes.tsx +5 -5
  411. package/src/components/NumberInput/examples/NumberInputWithStatus.tsx +3 -2
  412. package/src/components/OverflowMenu/examples/OverflowMenu.md +1 -0
  413. package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainer.tsx +4 -3
  414. package/src/components/OverflowMenu/examples/OverflowMenuGroupTypes.tsx +2 -1
  415. package/src/components/OverflowMenu/examples/OverflowMenuMultiGroup.tsx +2 -1
  416. package/src/components/OverflowMenu/examples/OverflowMenuPersistent.tsx +2 -1
  417. package/src/components/OverflowMenu/examples/OverflowMenuSimple.tsx +2 -1
  418. package/src/components/Page/Page.tsx +2 -2
  419. package/src/components/Page/PageSection.tsx +2 -2
  420. package/src/components/Page/examples/Page.md +1 -0
  421. package/src/components/Page/examples/PageCenteredSection.tsx +2 -1
  422. package/src/components/Page/examples/PageGroupSection.tsx +2 -1
  423. package/src/components/Page/examples/PageMainSectionPadding.tsx +2 -1
  424. package/src/components/Page/examples/PageMainSectionVariations.tsx +2 -1
  425. package/src/components/Page/examples/PageMultipleSidebarBody.tsx +2 -1
  426. package/src/components/Page/examples/PageVerticalNav.tsx +2 -1
  427. package/src/components/Page/examples/PageWithOrWithoutFill.tsx +2 -1
  428. package/src/components/Pagination/examples/Pagination.md +1 -1
  429. package/src/components/Pagination/examples/PaginationBottom.tsx +3 -2
  430. package/src/components/Pagination/examples/PaginationCompact.tsx +3 -2
  431. package/src/components/Pagination/examples/PaginationDisabled.tsx +3 -2
  432. package/src/components/Pagination/examples/PaginationIndeterminate.tsx +3 -3
  433. package/src/components/Pagination/examples/PaginationInset.tsx +3 -2
  434. package/src/components/Pagination/examples/PaginationNoItems.tsx +3 -2
  435. package/src/components/Pagination/examples/PaginationOffset.tsx +3 -2
  436. package/src/components/Pagination/examples/PaginationOnePage.tsx +3 -2
  437. package/src/components/Pagination/examples/PaginationSticky.tsx +4 -4
  438. package/src/components/Pagination/examples/PaginationTop.tsx +3 -2
  439. package/src/components/Popover/examples/Popover.md +1 -0
  440. package/src/components/Popover/examples/PopoverAdvanced.tsx +4 -3
  441. package/src/components/Popover/examples/PopoverAlert.tsx +2 -1
  442. package/src/components/Popover/examples/PopoverCloseControlled.tsx +2 -1
  443. package/src/components/Popover/examples/PopoverReactRef.tsx +2 -1
  444. package/src/components/Progress/examples/Progress.md +2 -0
  445. package/src/components/Progress/examples/ProgressHelperText.tsx +2 -1
  446. package/src/components/ProgressStepper/examples/ProgressStepper.md +1 -1
  447. package/src/components/ProgressStepper/examples/ProgressStepperBasicWithAlignment.tsx +3 -3
  448. package/src/components/ProgressStepper/examples/ProgressStepperCompact.tsx +3 -3
  449. package/src/components/Radio/examples/Radio.md +1 -1
  450. package/src/components/Radio/examples/RadioControlled.tsx +2 -2
  451. package/src/components/SearchInput/examples/SearchInput.md +1 -0
  452. package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +4 -3
  453. package/src/components/SearchInput/examples/SearchInputBasic.tsx +2 -1
  454. package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +3 -2
  455. package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +3 -2
  456. package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +4 -3
  457. package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +3 -2
  458. package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +2 -1
  459. package/src/components/Select/examples/Select.md +1 -1
  460. package/src/components/Select/examples/SelectBasic.tsx +4 -4
  461. package/src/components/Select/examples/SelectCheckbox.tsx +3 -2
  462. package/src/components/Select/examples/SelectFooter.tsx +3 -2
  463. package/src/components/Select/examples/SelectGrouped.tsx +3 -2
  464. package/src/components/Select/examples/SelectMultiTypeahead.tsx +9 -8
  465. package/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx +11 -10
  466. package/src/components/Select/examples/SelectMultiTypeaheadCreatable.tsx +10 -9
  467. package/src/components/Select/examples/SelectOptionVariations.tsx +3 -2
  468. package/src/components/Select/examples/SelectTypeahead.tsx +10 -9
  469. package/src/components/Select/examples/SelectTypeaheadCreatable.tsx +10 -9
  470. package/src/components/Select/examples/SelectValidated.tsx +4 -4
  471. package/src/components/Select/examples/SelectViewMore.tsx +12 -11
  472. package/src/components/SimpleList/examples/SimpleList.md +1 -0
  473. package/src/components/SimpleList/examples/SimpleListUncontrolled.tsx +2 -1
  474. package/src/components/Slider/examples/Slider.md +1 -0
  475. package/src/components/Slider/examples/SliderActions.tsx +5 -4
  476. package/src/components/Slider/examples/SliderContinuous.tsx +4 -3
  477. package/src/components/Slider/examples/SliderDisabled.tsx +2 -1
  478. package/src/components/Slider/examples/SliderDiscrete.tsx +2 -1
  479. package/src/components/Slider/examples/SliderThumbValueInput.tsx +3 -2
  480. package/src/components/Slider/examples/SliderValueInput.tsx +7 -6
  481. package/src/components/Switch/examples/Switch.md +1 -1
  482. package/src/components/Switch/examples/SwitchBasic.tsx +2 -1
  483. package/src/components/Switch/examples/SwitchCheckedWithLabel.tsx +2 -1
  484. package/src/components/Switch/examples/SwitchReversed.tsx +2 -1
  485. package/src/components/Switch/examples/SwitchWithoutLabel.tsx +2 -1
  486. package/src/components/Tabs/examples/Tabs.md +2 -2
  487. package/src/components/Tabs/examples/TabsBoxSecondary.tsx +3 -2
  488. package/src/components/Tabs/examples/TabsChildrenMounting.tsx +2 -1
  489. package/src/components/Tabs/examples/TabsContentWithBodyPadding.tsx +5 -5
  490. package/src/components/Tabs/examples/TabsDefault.tsx +3 -2
  491. package/src/components/Tabs/examples/TabsDefaultOverflow.tsx +3 -2
  492. package/src/components/Tabs/examples/TabsDynamic.tsx +7 -6
  493. package/src/components/Tabs/examples/TabsFilled.tsx +3 -2
  494. package/src/components/Tabs/examples/TabsFilledWithIcons.tsx +3 -2
  495. package/src/components/Tabs/examples/TabsHelp.tsx +3 -2
  496. package/src/components/Tabs/examples/TabsHelpAndClose.tsx +7 -6
  497. package/src/components/Tabs/examples/TabsHorizontalOverflow.tsx +3 -2
  498. package/src/components/Tabs/examples/TabsIconAndText.tsx +2 -1
  499. package/src/components/Tabs/examples/TabsInset.tsx +3 -2
  500. package/src/components/Tabs/examples/TabsNav.tsx +2 -1
  501. package/src/components/Tabs/examples/TabsNavSubtab.tsx +3 -2
  502. package/src/components/Tabs/examples/TabsPageInsets.tsx +3 -2
  503. package/src/components/Tabs/examples/TabsSeparateContent.tsx +5 -5
  504. package/src/components/Tabs/examples/TabsSubtabs.tsx +4 -3
  505. package/src/components/Tabs/examples/TabsToggledSeparateContent.tsx +6 -6
  506. package/src/components/Tabs/examples/TabsTooltipReactRef.tsx +4 -3
  507. package/src/components/Tabs/examples/TabsUnmountingInvisibleChildren.tsx +2 -1
  508. package/src/components/Tabs/examples/TabsVertical.tsx +3 -2
  509. package/src/components/Tabs/examples/TabsVerticalExpandable.tsx +3 -2
  510. package/src/components/Tabs/examples/TabsVerticalExpandableUncontrolled.tsx +2 -1
  511. package/src/components/TextArea/examples/TextArea.md +1 -1
  512. package/src/components/TextArea/examples/TextAreaAutoResizing.tsx +2 -1
  513. package/src/components/TextArea/examples/TextAreaBasic.tsx +2 -1
  514. package/src/components/TextArea/examples/TextAreaHorizontallyResizable.tsx +2 -1
  515. package/src/components/TextArea/examples/TextAreaInvalid.tsx +2 -1
  516. package/src/components/TextArea/examples/TextAreaReadOnly.tsx +2 -2
  517. package/src/components/TextArea/examples/TextAreaResizableNone.tsx +2 -1
  518. package/src/components/TextArea/examples/TextAreaValidated.tsx +5 -4
  519. package/src/components/TextArea/examples/TextAreaVerticallyResizable.tsx +2 -1
  520. package/src/components/TextInput/examples/TextInput.md +1 -0
  521. package/src/components/TextInput/examples/TextInputBasic.tsx +2 -1
  522. package/src/components/TextInput/examples/TextInputCustomIcon.tsx +3 -2
  523. package/src/components/TextInput/examples/TextInputCustomIconInvalid.tsx +2 -1
  524. package/src/components/TextInput/examples/TextInputInvalid.tsx +2 -1
  525. package/src/components/TextInput/examples/TextInputReadOnly.tsx +2 -1
  526. package/src/components/TextInput/examples/TextInputSelectUsingRef.tsx +3 -2
  527. package/src/components/TextInput/examples/TextInputStartTruncated.tsx +2 -1
  528. package/src/components/TextInputGroup/examples/TextInputGroup.md +1 -0
  529. package/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx +2 -1
  530. package/src/components/TextInputGroup/examples/TextInputGroupFilters.tsx +3 -2
  531. package/src/components/TextInputGroup/examples/TextInputGroupUtilitiesAndIcon.tsx +2 -1
  532. package/src/components/TextInputGroup/examples/TextInputGroupWithStatus.tsx +4 -5
  533. package/src/components/ToggleGroup/examples/ToggleGroup.md +1 -0
  534. package/src/components/ToggleGroup/examples/ToggleGroupCompact.tsx +2 -1
  535. package/src/components/ToggleGroup/examples/ToggleGroupDefaultMultiple.tsx +3 -2
  536. package/src/components/ToggleGroup/examples/ToggleGroupDefaultSingle.tsx +2 -1
  537. package/src/components/ToggleGroup/examples/ToggleGroupIcon.tsx +2 -1
  538. package/src/components/ToggleGroup/examples/ToggleGroupTextIcon.tsx +2 -1
  539. package/src/components/Toolbar/Toolbar.tsx +5 -0
  540. package/src/components/Toolbar/__tests__/Toolbar.test.tsx +29 -0
  541. package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +1 -1
  542. package/src/components/Toolbar/examples/Toolbar.md +1 -1
  543. package/src/components/Toolbar/examples/ToolbarComponentManagedToggleGroups.tsx +6 -6
  544. package/src/components/Toolbar/examples/ToolbarConsumerManagedToggleGroups.tsx +7 -7
  545. package/src/components/Toolbar/examples/ToolbarCustomLabelGroupContent.tsx +4 -4
  546. package/src/components/Toolbar/examples/ToolbarGroups.tsx +7 -7
  547. package/src/components/Toolbar/examples/ToolbarStacked.tsx +9 -9
  548. package/src/components/Toolbar/examples/ToolbarSticky.tsx +3 -3
  549. package/src/components/Toolbar/examples/ToolbarWithFilters.tsx +6 -6
  550. package/src/components/Tooltip/examples/Tooltip.md +1 -0
  551. package/src/components/Tooltip/examples/TooltipIcon.tsx +2 -1
  552. package/src/components/Tooltip/examples/TooltipOptions.tsx +14 -13
  553. package/src/components/Tooltip/examples/TooltipReactRef.tsx +2 -1
  554. package/src/components/TreeView/examples/TreeView.md +1 -1
  555. package/src/components/TreeView/examples/TreeViewMultiselectable.tsx +2 -1
  556. package/src/components/TreeView/examples/TreeViewSelectionExpansion.tsx +2 -1
  557. package/src/components/TreeView/examples/TreeViewSingleSelectable.tsx +3 -3
  558. package/src/components/TreeView/examples/TreeViewWithActionItems.tsx +3 -2
  559. package/src/components/TreeView/examples/TreeViewWithBadges.tsx +2 -1
  560. package/src/components/TreeView/examples/TreeViewWithCheckboxes.tsx +3 -2
  561. package/src/components/TreeView/examples/TreeViewWithCustomBadges.tsx +2 -1
  562. package/src/components/TreeView/examples/TreeViewWithIconPerItem.tsx +2 -1
  563. package/src/components/TreeView/examples/TreeViewWithIcons.tsx +2 -1
  564. package/src/components/TreeView/examples/TreeViewWithMemoization.tsx +3 -3
  565. package/src/components/TreeView/examples/TreeViewWithSearch.tsx +4 -3
  566. package/src/components/Truncate/Truncate.tsx +12 -3
  567. package/src/components/Wizard/examples/Wizard.md +1 -0
  568. package/src/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +3 -2
  569. package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +2 -1
  570. package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +3 -2
  571. package/src/components/Wizard/examples/WizardStepStatus.tsx +5 -4
  572. package/src/components/Wizard/examples/WizardToggleStepVisibility.tsx +4 -3
  573. package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +8 -7
  574. package/src/components/Wizard/examples/WizardWithCustomFooter.tsx +3 -2
  575. package/src/components/Wizard/examples/WizardWithSubmitProgress.tsx +5 -4
  576. package/src/components/Wizard/examples/WizardWithinModal.tsx +2 -1
  577. package/src/demos/AlertGroup.md +1 -1
  578. package/src/demos/BackToTop.md +1 -0
  579. package/src/demos/Button.md +3 -1
  580. package/src/demos/CustomMenus/ApplicationLauncher.md +2 -0
  581. package/src/demos/CustomMenus/ContextSelector.md +1 -0
  582. package/src/demos/CustomMenus/CustomMenus.md +2 -0
  583. package/src/demos/CustomMenus/OptionsMenu.md +1 -0
  584. package/src/demos/CustomMenus/examples/ActionsMenuDemo.tsx +4 -3
  585. package/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx +9 -9
  586. package/src/demos/CustomMenus/examples/ContextSelectorDemo.tsx +7 -6
  587. package/src/demos/CustomMenus/examples/DateSelectDemo.tsx +4 -3
  588. package/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx +8 -7
  589. package/src/demos/CustomMenus/examples/FavoritesDemo.tsx +2 -2
  590. package/src/demos/CustomMenus/examples/FlyoutDemo.tsx +4 -3
  591. package/src/demos/CustomMenus/examples/InlineSearchFilterMenuDemo.tsx +6 -5
  592. package/src/demos/CustomMenus/examples/OptionsMenuDemo.tsx +4 -3
  593. package/src/demos/CustomMenus/examples/TreeViewMenuDemo.tsx +5 -4
  594. package/src/demos/DataList/examples/DataListActionable.tsx +3 -2
  595. package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +6 -6
  596. package/src/demos/DataList/examples/DataListStaticBottomPagination.tsx +4 -4
  597. package/src/demos/DataListDemo.md +2 -0
  598. package/src/demos/DatePicker/DatePicker.md +3 -2
  599. package/src/demos/DateTimePicker.md +4 -2
  600. package/src/demos/DescriptionList/DescriptionList.md +1 -0
  601. package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +4 -3
  602. package/src/demos/ExpandableSection/ExpandableSection.md +2 -0
  603. package/src/demos/ExpandableSection/examples/ExpandableTextDemo.tsx +2 -1
  604. package/src/demos/Filters/FilterDemos.md +1 -1
  605. package/src/demos/Filters/examples/FilterAttributeSearch.tsx +29 -29
  606. package/src/demos/Filters/examples/FilterCheckboxSelect.tsx +16 -16
  607. package/src/demos/Filters/examples/FilterFaceted.tsx +17 -17
  608. package/src/demos/Filters/examples/FilterMixedSelectGroup.tsx +22 -22
  609. package/src/demos/Filters/examples/FilterSameSelectGroup.tsx +22 -22
  610. package/src/demos/Filters/examples/FilterSearchInput.tsx +11 -11
  611. package/src/demos/Filters/examples/FilterSingleSelect.tsx +17 -17
  612. package/src/demos/HelperText.md +1 -0
  613. package/src/demos/JumpLinks.md +5 -3
  614. package/src/demos/LabelGroupDemos.md +1 -0
  615. package/src/demos/Masthead.md +1 -0
  616. package/src/demos/MultipleFileUploadDemos.md +1 -1
  617. package/src/demos/Nav.md +1 -0
  618. package/src/demos/NotificationDrawer/NotificationDrawer.md +2 -0
  619. package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +10 -13
  620. package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +13 -16
  621. package/src/demos/Page.md +1 -0
  622. package/src/demos/PasswordGenerator.md +9 -7
  623. package/src/demos/PasswordStrength.md +1 -0
  624. package/src/demos/PrimaryDetail.md +1 -0
  625. package/src/demos/ProgressDemo.md +5 -3
  626. package/src/demos/ProgressStepperDemo.md +3 -1
  627. package/src/demos/RTL/RTL.md +1 -0
  628. package/src/demos/RTL/examples/PaginatedTable.jsx +16 -15
  629. package/src/demos/SearchInput/SearchInput.md +24 -22
  630. package/src/demos/Tabs.md +6 -3
  631. package/src/demos/TextInputGroupDemo.md +1 -0
  632. package/src/demos/Toolbar.md +1 -0
  633. package/src/demos/Wizard/WizardDemo.md +2 -0
  634. package/src/demos/examples/Card/CardAggregateStatus.tsx +2 -2
  635. package/src/demos/examples/Card/CardEventsView.tsx +2 -2
  636. package/src/demos/examples/Card/CardHorizontalGrid.tsx +3 -2
  637. package/src/demos/examples/Card/CardLogView.tsx +2 -2
  638. package/src/demos/examples/Card/CardNested.tsx +5 -4
  639. package/src/demos/examples/Card/CardStatus.tsx +3 -2
  640. package/src/demos/examples/Card/CardStatusTabbed.tsx +2 -1
  641. package/src/demos/examples/Card/CardWithAccordion.tsx +2 -1
  642. package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +5 -4
  643. package/src/demos/examples/HelperText/HelperTextDynamic.tsx +4 -3
  644. package/src/demos/examples/HelperText/HelperTextStatic.tsx +2 -1
  645. package/src/demos/examples/HelperText/HelperTextStaticTextDynamicVariant.tsx +4 -3
  646. package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +9 -8
  647. package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +16 -16
  648. package/src/demos/examples/MultipleFileUpload/MultipleFileUploadRejectedFile.tsx +8 -7
  649. package/src/demos/examples/Nav/NavDrilldown.tsx +3 -3
  650. package/src/demos/examples/Nav/NavExpandable.tsx +3 -3
  651. package/src/demos/examples/Nav/NavFlyout.tsx +8 -7
  652. package/src/demos/examples/Nav/NavGrouped.tsx +2 -1
  653. package/src/demos/examples/Nav/NavHorizontal.tsx +5 -5
  654. package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +6 -6
  655. package/src/demos/examples/Nav/NavManual.tsx +8 -8
  656. package/src/demos/examples/Nav/NavWithSubnav.tsx +3 -3
  657. package/src/demos/examples/Page/PageContextSelector.tsx +7 -6
  658. package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +5 -4
  659. package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +5 -4
  660. package/src/demos/examples/PasswordStrength/PasswordStrengthDemo.tsx +2 -2
  661. package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +15 -15
  662. package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +9 -9
  663. package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +5 -5
  664. package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +9 -9
  665. package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +9 -9
  666. package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +3 -3
  667. package/src/demos/examples/Tabs/ModalTabs.tsx +7 -7
  668. package/src/demos/examples/Tabs/NestedTabs.tsx +3 -2
  669. package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +3 -2
  670. package/src/demos/examples/Tabs/TabsAndTable.tsx +5 -5
  671. package/src/demos/examples/TextInputGroup/AttributeValueFiltering.tsx +10 -9
  672. package/src/demos/examples/TextInputGroup/AutoCompleteSearch.tsx +9 -8
  673. package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +17 -17
  674. package/src/demos/examples/Wizard/InModalWithDrawer.tsx +3 -2
  675. package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +3 -2
  676. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +4 -4
  677. package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +4 -4
  678. package/src/deprecated/components/Chip/examples/Chip.md +1 -1
  679. package/src/deprecated/components/Chip/examples/ChipDefault.tsx +2 -2
  680. package/src/deprecated/components/Chip/examples/ChipGroupInline.tsx +2 -1
  681. package/src/deprecated/components/Chip/examples/ChipGroupRemovableCategories.tsx +3 -3
  682. package/src/deprecated/components/Chip/examples/ChipGroupWithCategories.tsx +2 -1
  683. package/src/deprecated/components/DragDrop/examples/DragDrop.md +1 -0
  684. package/src/deprecated/components/DragDrop/examples/DragDropBasic.tsx +2 -1
  685. package/src/deprecated/components/DragDrop/examples/DragDropMultipleLists.tsx +2 -1
  686. package/src/deprecated/components/Modal/examples/Modal.md +1 -1
  687. package/src/deprecated/components/Modal/examples/ModalBasic.tsx +2 -2
  688. package/src/deprecated/components/Modal/examples/ModalCustomFocus.tsx +2 -2
  689. package/src/deprecated/components/Modal/examples/ModalCustomHeaderFooter.tsx +2 -2
  690. package/src/deprecated/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
  691. package/src/deprecated/components/Modal/examples/ModalCustomWidth.tsx +2 -2
  692. package/src/deprecated/components/Modal/examples/ModalLarge.tsx +2 -2
  693. package/src/deprecated/components/Modal/examples/ModalMedium.tsx +2 -2
  694. package/src/deprecated/components/Modal/examples/ModalNoHeaderFooter.tsx +2 -2
  695. package/src/deprecated/components/Modal/examples/ModalSmall.tsx +2 -2
  696. package/src/deprecated/components/Modal/examples/ModalTitleIcon.tsx +2 -2
  697. package/src/deprecated/components/Modal/examples/ModalTopAligned.tsx +2 -2
  698. package/src/deprecated/components/Modal/examples/ModalWithDescription.tsx +2 -2
  699. package/src/deprecated/components/Modal/examples/ModalWithDropdown.tsx +3 -3
  700. package/src/deprecated/components/Modal/examples/ModalWithForm.tsx +8 -8
  701. package/src/deprecated/components/Modal/examples/ModalWithHelp.tsx +2 -2
  702. package/src/deprecated/components/Modal/examples/ModalWithOverflowingContent.tsx +2 -2
  703. package/src/deprecated/components/Modal/examples/ModalWithWizard.tsx +2 -2
  704. package/src/deprecated/components/Tile/examples/Tile.md +5 -2
  705. package/src/deprecated/components/Wizard/examples/Wizard.md +1 -1
  706. package/src/deprecated/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +8 -7
  707. package/src/deprecated/components/Wizard/examples/WizardFinished.tsx +3 -2
  708. package/src/deprecated/components/Wizard/examples/WizardInModal.tsx +2 -2
  709. package/src/deprecated/components/Wizard/examples/WizardIncrementallyEnabledSteps.tsx +2 -1
  710. package/src/deprecated/components/Wizard/examples/WizardValidateOnButtonPress.tsx +9 -8
  711. package/src/deprecated/components/Wizard/examples/WizardWithDrawer.tsx +3 -3
  712. package/src/helpers/resizeObserver.tsx +2 -2
  713. package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +1 -2
@@ -7,7 +7,7 @@ ouia: true
7
7
  ---
8
8
 
9
9
  import './alert.css';
10
- import { Fragment, useState } from 'react';
10
+ import { Fragment, useEffect, useState } from 'react';
11
11
  import UsersIcon from '@patternfly/react-icons/dist/esm/icons/users-icon';
12
12
  import BoxIcon from '@patternfly/react-icons/dist/esm/icons/box-icon';
13
13
  import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
@@ -30,15 +30,16 @@ PatternFly supports several alert variants for different scenarios. Each variant
30
30
  | Danger | Use to indicate that a critical or blocking error has occurred |
31
31
 
32
32
  ```ts
33
+ import { Fragment } from 'react';
33
34
  import { Alert } from '@patternfly/react-core';
34
35
 
35
- <React.Fragment>
36
+ <Fragment>
36
37
  <Alert title="Custom alert title" ouiaId="CustomAlert" />
37
38
  <Alert variant="info" title="Info alert title" ouiaId="InfoAlert" />
38
39
  <Alert variant="success" title="Success alert title" ouiaId="SuccessAlert" />
39
40
  <Alert variant="warning" title="Warning alert title" ouiaId="WarningAlert" />
40
41
  <Alert variant="danger" title="Danger alert title" ouiaId="DangerAlert" />
41
- </React.Fragment>;
42
+ </Fragment>;
42
43
  ```
43
44
 
44
45
  ### Alert variations
@@ -56,14 +57,15 @@ PatternFly supports several properties and variations that can be used to add ex
56
57
  - If there is a description passed via `children` prop, then the `component` prop should be a heading element. Headings should be ordered by their level and heading levels should not be skipped. For example, a heading of an `h2` level should not be followed directly by an `h4`.
57
58
 
58
59
  ```ts
60
+ import { Fragment } from 'react';
59
61
  import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
60
62
 
61
- <React.Fragment>
63
+ <Fragment>
62
64
  <Alert
63
65
  variant="success"
64
66
  title="Success alert title"
65
67
  actionLinks={
66
- <React.Fragment>
68
+ <Fragment>
67
69
  <AlertActionLink component="a" href="#">
68
70
  View details
69
71
  </AlertActionLink>
@@ -72,7 +74,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
72
74
  >
73
75
  Ignore
74
76
  </AlertActionLink>
75
- </React.Fragment>
77
+ </Fragment>
76
78
  }
77
79
  >
78
80
  <p>Success alert description. This should tell the user more information about the alert.</p>
@@ -95,7 +97,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
95
97
  <Alert variant="success" title="h6 Success alert title" component="h6">
96
98
  <p>Short alert description.</p>
97
99
  </Alert>
98
- </React.Fragment>;
100
+ </Fragment>;
99
101
  ```
100
102
 
101
103
  ### Alert timeout
@@ -103,23 +105,23 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
103
105
  Use the `timeout` property to automatically dismiss an alert after a period of time. If set to `true`, the `timeout` will be 8000 milliseconds. Provide a specific value to dismiss the alert after a different number of milliseconds.
104
106
 
105
107
  ```ts
108
+ import { Fragment, useState } from 'react';
106
109
  import { Alert, AlertActionLink, AlertGroup, Button } from '@patternfly/react-core';
107
110
 
108
111
  const AlertTimeout: React.FunctionComponent = () => {
109
- const [alerts, setAlerts] = React.useState<React.ReactNode[]>([]);
110
- const [newAlertKey, setNewAlertKey] = React.useState<number>(0);
112
+ const [alerts, setAlerts] = useState<React.ReactNode[]>([]);
113
+ const [newAlertKey, setNewAlertKey] = useState<number>(0);
111
114
 
112
115
  const onClick = () => {
113
116
  const timeout = 8000;
114
117
  setNewAlertKey((key) => key + 1);
115
118
  setAlerts((prevAlerts) => {
116
119
  return [
117
- ...prevAlerts,
118
120
  <Alert
119
121
  title="Default timeout Alert"
120
122
  timeout={timeout}
121
123
  actionLinks={
122
- <React.Fragment>
124
+ <Fragment>
123
125
  <AlertActionLink component="a" href="#">
124
126
  View details
125
127
  </AlertActionLink>
@@ -128,18 +130,18 @@ const AlertTimeout: React.FunctionComponent = () => {
128
130
  >
129
131
  Ignore
130
132
  </AlertActionLink>
131
- </React.Fragment>
133
+ </Fragment>
132
134
  }
133
135
  key={newAlertKey}
134
136
  >
135
137
  This alert will dismiss after {`${timeout / 1000} seconds`}
136
- </Alert>
138
+ </Alert>, ...prevAlerts
137
139
  ];
138
140
  });
139
141
  };
140
142
 
141
143
  return (
142
- <React.Fragment>
144
+ <Fragment>
143
145
  <Button variant="secondary" onClick={onClick}>
144
146
  Add alert
145
147
  </Button>
@@ -147,7 +149,7 @@ const AlertTimeout: React.FunctionComponent = () => {
147
149
  Remove all alerts
148
150
  </Button>
149
151
  <AlertGroup isLiveRegion>{alerts}</AlertGroup>
150
- </React.Fragment>
152
+ </Fragment>
151
153
  );
152
154
  };
153
155
  ```
@@ -161,9 +163,10 @@ It is not recommended to use an expandable alert with a `timeout` in a [toast al
161
163
  See the [toast alert considerations](/components/alert/accessibility#toast-alerts) section of the alert accessibility documentation to understand the accessibility risks associated with using toast alerts.
162
164
 
163
165
  ```ts
166
+ import { Fragment } from 'react';
164
167
  import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
165
168
 
166
- <React.Fragment>
169
+ <Fragment>
167
170
  <Alert
168
171
  isExpandable
169
172
  variant="success"
@@ -179,7 +182,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
179
182
  variant="success"
180
183
  title="Success alert title"
181
184
  actionLinks={
182
- <React.Fragment>
185
+ <Fragment>
183
186
  <AlertActionLink component="a" href="#">
184
187
  View details
185
188
  </AlertActionLink>
@@ -188,12 +191,12 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
188
191
  >
189
192
  Ignore
190
193
  </AlertActionLink>
191
- </React.Fragment>
194
+ </Fragment>
192
195
  }
193
196
  >
194
197
  <p>Success alert description. This should tell the user more information about the alert.</p>
195
198
  </Alert>
196
- </React.Fragment>;
199
+ </Fragment>;
197
200
  ```
198
201
 
199
202
  ### Truncated alerts
@@ -201,9 +204,10 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
201
204
  Use the `truncateTitle` property to shorten a long `title`. Set `truncateTitle` equal to a number (passed in as `{n}`) to reduce the number of lines of text in the alert's `title`. Users may hover over or tab to a truncated `title` to see the full message in a tooltip.
202
205
 
203
206
  ```ts
207
+ import { Fragment } from 'react';
204
208
  import { Alert } from '@patternfly/react-core';
205
209
 
206
- <React.Fragment>
210
+ <Fragment>
207
211
  <Alert
208
212
  variant="info"
209
213
  truncateTitle={1}
@@ -225,7 +229,7 @@ import { Alert } from '@patternfly/react-core';
225
229
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque neque cursus enim fringilla tincidunt. Proin lobortis aliquam dictum. Nam vel ullamcorper nulla, nec blandit dolor. Vivamus pellentesque neque justo, nec accumsan nulla rhoncus id. Suspendisse mollis, tortor quis faucibus volutpat, sem leo fringilla turpis, ac lacinia augue metus in nulla. Cras vestibulum lacinia orci. Pellentesque sodales consequat interdum. Sed porttitor tincidunt metus nec iaculis. Pellentesque non commodo justo. Morbi feugiat rhoncus neque, vitae facilisis diam aliquam nec. Sed dapibus vitae quam at tristique. Nunc vel commodo mi. Mauris et rhoncus leo.
226
230
  `}
227
231
  />
228
- </React.Fragment>;
232
+ </Fragment>;
229
233
  ```
230
234
 
231
235
  ### Custom icons
@@ -233,6 +237,7 @@ import { Alert } from '@patternfly/react-core';
233
237
  Use the `customIcon` property to replace a default alert icon with a custom icon.
234
238
 
235
239
  ```ts
240
+ import { Fragment } from 'react';
236
241
  import { Alert } from '@patternfly/react-core';
237
242
  import UsersIcon from '@patternfly/react-icons/dist/esm/icons/users-icon';
238
243
  import BoxIcon from '@patternfly/react-icons/dist/esm/icons/box-icon';
@@ -240,13 +245,13 @@ import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
240
245
  import ServerIcon from '@patternfly/react-icons/dist/esm/icons/server-icon';
241
246
  import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
242
247
 
243
- <React.Fragment>
248
+ <Fragment>
244
249
  <Alert customIcon={<UsersIcon />} title="Default alert title" />
245
250
  <Alert customIcon={<BoxIcon />} variant="info" title="Info alert title" />
246
251
  <Alert customIcon={<DatabaseIcon />} variant="success" title="Success alert title" />
247
252
  <Alert customIcon={<ServerIcon />} variant="warning" title="Warning alert title" />
248
253
  <Alert customIcon={<LaptopIcon />} variant="danger" title="Danger alert title" />
249
- </React.Fragment>;
254
+ </Fragment>;
250
255
  ```
251
256
 
252
257
  ### Inline alerts variants
@@ -254,14 +259,15 @@ import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
254
259
  Use inline alerts to display an alert inline with content. All alert variants may use the `isInline` property to position alerts in content-heavy areas, such as within forms, wizards, or drawers.
255
260
 
256
261
  ```ts
262
+ import { Fragment } from 'react';
257
263
  import { Alert } from '@patternfly/react-core';
258
- <React.Fragment>
264
+ <Fragment>
259
265
  <Alert variant="custom" isInline title="Custom inline alert title" />
260
266
  <Alert variant="info" isInline title="Info inline alert title" />
261
267
  <Alert variant="success" isInline title="Success inline alert title" />
262
268
  <Alert variant="warning" isInline title="Warning inline alert title" />
263
269
  <Alert variant="danger" isInline title="Danger inline alert title" />
264
- </React.Fragment>;
270
+ </Fragment>;
265
271
  ```
266
272
 
267
273
  ### Inline alert variations
@@ -269,14 +275,15 @@ import { Alert } from '@patternfly/react-core';
269
275
  All general alert variations can use the `isInline` property to apply inline styling.
270
276
 
271
277
  ```ts
278
+ import { Fragment } from 'react';
272
279
  import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
273
- <React.Fragment>
280
+ <Fragment>
274
281
  <Alert
275
282
  isInline
276
283
  variant="success"
277
284
  title="Success alert title"
278
285
  actionLinks={
279
- <React.Fragment>
286
+ <Fragment>
280
287
  <AlertActionLink component="a" href="#">
281
288
  View details
282
289
  </AlertActionLink>
@@ -285,7 +292,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
285
292
  >
286
293
  Ignore
287
294
  </AlertActionLink>
288
- </React.Fragment>
295
+ </Fragment>
289
296
  }
290
297
  >
291
298
  <p>Success alert description. This should tell the user more information about the alert.</p>
@@ -309,7 +316,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
309
316
  <Alert isInline variant="success" title="h6 Success alert title" component="h6">
310
317
  <p>Short alert description.</p>
311
318
  </Alert>
312
- </React.Fragment>;
319
+ </Fragment>;
313
320
  ```
314
321
 
315
322
  ### Plain inline alert variants
@@ -317,14 +324,15 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
317
324
  Use the `isPlain` property to make any inline alert plain. Plain styling removes the colored background but keeps colored text and icons.
318
325
 
319
326
  ```ts
327
+ import { Fragment } from 'react';
320
328
  import { Alert } from '@patternfly/react-core';
321
- <React.Fragment>
329
+ <Fragment>
322
330
  <Alert variant="custom" isInline isPlain title="Custom inline alert title" />
323
331
  <Alert variant="info" isInline isPlain title="Info inline alert title" />
324
332
  <Alert variant="success" isInline isPlain title="Success inline alert title" />
325
333
  <Alert variant="warning" isInline isPlain title="Warning inline alert title" />
326
334
  <Alert variant="danger" isInline isPlain title="Danger inline alert title" />
327
- </React.Fragment>;
335
+ </Fragment>;
328
336
  ```
329
337
 
330
338
  ### Plain inline alert variations
@@ -345,9 +353,10 @@ Live region alerts allow you to expose dynamic content changes in a way that can
345
353
  By default, `isLiveRegion`alerts are static.
346
354
 
347
355
  ```ts
356
+ import { Fragment } from 'react';
348
357
  import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
349
358
 
350
- <React.Fragment>
359
+ <Fragment>
351
360
  <Alert
352
361
  isLiveRegion
353
362
  variant="info"
@@ -369,7 +378,7 @@ import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
369
378
  You can alternatively omit the <code>isLiveRegion</code> prop to specify ARIA attributes and CSS manually on the
370
379
  containing element.
371
380
  </Alert>
372
- </React.Fragment>;
381
+ </Fragment>;
373
382
  ```
374
383
 
375
384
  ### Dynamic live region alerts
@@ -1,4 +1,4 @@
1
- import { Fragment } from 'react';
1
+ import { Fragment, useEffect, useState } from 'react';
2
2
  import { Alert, AlertGroup, AlertVariant, ToggleGroup, ToggleGroupItem } from '@patternfly/react-core';
3
3
 
4
4
  interface AlertInfo {
@@ -8,15 +8,15 @@ interface AlertInfo {
8
8
  }
9
9
 
10
10
  export const AsyncLiveRegionAlert: React.FunctionComponent = () => {
11
- const [alerts, setAlerts] = React.useState<AlertInfo[]>([]);
12
- const [isActive, setIsActive] = React.useState(false);
11
+ const [alerts, setAlerts] = useState<AlertInfo[]>([]);
12
+ const [isActive, setIsActive] = useState(false);
13
13
  const getUniqueId: () => number = () => new Date().getTime();
14
14
 
15
15
  const addAlert = (alertInfo: AlertInfo) => {
16
- setAlerts((prevAlertInfo) => [...prevAlertInfo, alertInfo]);
16
+ setAlerts((prevAlertInfo) => [alertInfo, ...prevAlertInfo]);
17
17
  };
18
18
 
19
- React.useEffect(() => {
19
+ useEffect(() => {
20
20
  let timer = null;
21
21
  if (isActive) {
22
22
  timer = setInterval(() => {
@@ -14,7 +14,7 @@ export const DynamicLiveRegionAlert: React.FunctionComponent = () => {
14
14
  const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
15
15
 
16
16
  const addAlert = (alertInfo: AlertInfo) => {
17
- setAlerts((prevAlertInfo) => [...prevAlertInfo, alertInfo]);
17
+ setAlerts((prevAlertInfo) => [alertInfo, ...prevAlertInfo]);
18
18
  };
19
19
 
20
20
  const addSuccessAlert = () => {
@@ -1,4 +1,4 @@
1
- import { Fragment } from 'react';
1
+ import { Fragment, useState } from 'react';
2
2
  import {
3
3
  Alert,
4
4
  AlertProps,
@@ -12,8 +12,8 @@ import {
12
12
  import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
13
13
 
14
14
  export const AlertGroupAsync: React.FunctionComponent = () => {
15
- const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
16
- const [isRunning, setIsRunning] = React.useState(false);
15
+ const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
16
+ const [isRunning, setIsRunning] = useState(false);
17
17
 
18
18
  const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
19
19
 
@@ -21,12 +21,12 @@ export const AlertGroupAsync: React.FunctionComponent = () => {
21
21
 
22
22
  const addAlert = () => {
23
23
  setAlerts((prevAlerts) => [
24
- ...prevAlerts,
25
24
  {
26
25
  title: `Async notification ${prevAlerts.length + 1} was added to the queue.`,
27
26
  variant: 'danger',
28
27
  key: getUniqueId()
29
- }
28
+ },
29
+ ...prevAlerts
30
30
  ]);
31
31
  };
32
32
 
@@ -1,4 +1,4 @@
1
- import { Fragment } from 'react';
1
+ import { Fragment, useState } from 'react';
2
2
  import {
3
3
  Alert,
4
4
  AlertProps,
@@ -11,10 +11,10 @@ import {
11
11
  import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
12
12
 
13
13
  export const AlertGroupMultipleDynamic: React.FunctionComponent = () => {
14
- const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
14
+ const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
15
15
 
16
16
  const addAlerts = (incomingAlerts: Partial<AlertProps>[]) => {
17
- setAlerts((prevAlerts) => [...prevAlerts, ...incomingAlerts]);
17
+ setAlerts((prevAlerts) => [...incomingAlerts, ...prevAlerts]);
18
18
  };
19
19
 
20
20
  const removeAlert = (key: React.Key) => {
@@ -1,4 +1,4 @@
1
- import { Fragment } from 'react';
1
+ import { Fragment, useState } from 'react';
2
2
  import {
3
3
  Alert,
4
4
  AlertProps,
@@ -11,10 +11,10 @@ import {
11
11
  import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
12
12
 
13
13
  export const AlertGroupSingularDynamic: React.FunctionComponent = () => {
14
- const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
14
+ const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
15
15
 
16
16
  const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
17
- setAlerts((prevAlerts) => [...prevAlerts, { title, variant, key }]);
17
+ setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
18
18
  };
19
19
 
20
20
  const removeAlert = (key: React.Key) => {
@@ -1,4 +1,4 @@
1
- import { Fragment } from 'react';
1
+ import { Fragment, useState } from 'react';
2
2
  import {
3
3
  Alert,
4
4
  AlertProps,
@@ -11,8 +11,8 @@ import {
11
11
  import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
12
12
 
13
13
  export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () => {
14
- const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
15
- const [overflowMessage, setOverflowMessage] = React.useState<string>('');
14
+ const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
15
+ const [overflowMessage, setOverflowMessage] = useState<string>('');
16
16
 
17
17
  const maxDisplayed = 4;
18
18
 
@@ -25,7 +25,7 @@ export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () =>
25
25
  };
26
26
 
27
27
  const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
28
- setAlerts((prevAlerts) => [...prevAlerts, { title, variant, key }]);
28
+ setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
29
29
  setOverflowMessage(getOverflowMessage(alerts.length + 1));
30
30
  };
31
31
 
@@ -1,4 +1,4 @@
1
- import { Fragment } from 'react';
1
+ import { Fragment, useState } from 'react';
2
2
  import {
3
3
  Alert,
4
4
  AlertProps,
@@ -11,10 +11,10 @@ import {
11
11
  import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
12
12
 
13
13
  export const AlertGroupToast: React.FunctionComponent = () => {
14
- const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
14
+ const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
15
15
 
16
16
  const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
17
- setAlerts((prevAlerts) => [...prevAlerts, { title, variant, key }]);
17
+ setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
18
18
  };
19
19
 
20
20
  const removeAlert = (key: React.Key) => {
@@ -1,4 +1,4 @@
1
- import { Fragment } from 'react';
1
+ import { Fragment, useState } from 'react';
2
2
  import {
3
3
  Alert,
4
4
  AlertProps,
@@ -11,8 +11,8 @@ import {
11
11
  import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
12
12
 
13
13
  export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => {
14
- const [alerts, setAlerts] = React.useState<Partial<AlertProps>[]>([]);
15
- const [overflowMessage, setOverflowMessage] = React.useState<string>('');
14
+ const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
15
+ const [overflowMessage, setOverflowMessage] = useState<string>('');
16
16
 
17
17
  const maxDisplayed = 4;
18
18
 
@@ -25,7 +25,7 @@ export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => {
25
25
  };
26
26
 
27
27
  const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
28
- setAlerts((prevAlerts) => [...prevAlerts, { title, variant, key }]);
28
+ setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
29
29
  setOverflowMessage(getOverflowMessage(alerts.length + 1));
30
30
  };
31
31
 
@@ -6,6 +6,7 @@ propComponents: ['Breadcrumb', 'BreadcrumbItem', 'BreadcrumbHeading']
6
6
  ouia: true
7
7
  ---
8
8
 
9
+ import { useRef, useState } from 'react';
9
10
  import AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-icon';
10
11
  import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
11
12
 
@@ -1,3 +1,4 @@
1
+ import { useRef, useState } from 'react';
1
2
  import {
2
3
  Breadcrumb,
3
4
  BreadcrumbItem,
@@ -46,8 +47,8 @@ const dropdownItems = [
46
47
  ];
47
48
 
48
49
  export const BreadcrumbDropdown: React.FunctionComponent = () => {
49
- const [isOpen, setIsOpen] = React.useState(false);
50
- const badgeToggleRef = React.useRef<HTMLButtonElement>(undefined);
50
+ const [isOpen, setIsOpen] = useState(false);
51
+ const badgeToggleRef = useRef<HTMLButtonElement>(undefined);
51
52
 
52
53
  const onToggle = () => setIsOpen(!isOpen);
53
54
 
@@ -6,7 +6,7 @@ propComponents: ['Button', 'BadgeCountObject']
6
6
  ouia: true
7
7
  ---
8
8
 
9
- import { Fragment } from 'react';
9
+ import { Fragment, useState } from 'react';
10
10
  import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
11
11
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
12
12
  import ExternalLinkSquareAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-square-alt-icon';
@@ -1,3 +1,4 @@
1
+ import { useState } from 'react';
1
2
  import { Button, Flex } from '@patternfly/react-core';
2
3
  import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
3
4
 
@@ -9,10 +10,10 @@ interface LoadingPropsType {
9
10
  }
10
11
 
11
12
  export const ButtonProgress: React.FunctionComponent = () => {
12
- const [isPrimaryLoading, setIsPrimaryLoading] = React.useState<boolean>(true);
13
- const [isSecondaryLoading, setIsSecondaryLoading] = React.useState<boolean>(true);
14
- const [isInlineLoading, setIsInlineLoading] = React.useState<boolean>(true);
15
- const [isUploading, setIsUploading] = React.useState<boolean>(false);
13
+ const [isPrimaryLoading, setIsPrimaryLoading] = useState<boolean>(true);
14
+ const [isSecondaryLoading, setIsSecondaryLoading] = useState<boolean>(true);
15
+ const [isInlineLoading, setIsInlineLoading] = useState<boolean>(true);
16
+ const [isUploading, setIsUploading] = useState<boolean>(false);
16
17
 
17
18
  const primaryLoadingProps = {} as LoadingPropsType;
18
19
  primaryLoadingProps.spinnerAriaValueText = 'Loading';
@@ -1,4 +1,4 @@
1
- import { useEffect, useMemo, useRef, useState, type JSX } from 'react';
1
+ import { useEffect, useMemo, useRef, useState } from 'react';
2
2
  import { TextInput } from '../TextInput';
3
3
  import { Button } from '../Button';
4
4
  import { Select, SelectList, SelectOption } from '../Select';
@@ -23,7 +23,7 @@ export enum Weekday {
23
23
 
24
24
  export interface CalendarMonthInlineProps {
25
25
  /** Component wrapping the calendar month when used inline. Recommended to be 'article'. */
26
- component?: keyof JSX.IntrinsicElements;
26
+ component?: keyof React.JSX.IntrinsicElements;
27
27
  /** Title of the calendar rendered above the inline calendar month. Recommended to be a 'title' component. */
28
28
  title?: React.ReactNode;
29
29
  /** Id of the accessible label of the calendar month. Recommended to map to the title. */
@@ -5,6 +5,7 @@ subsection: date-and-time
5
5
  cssPrefix: pf-v6-c-calendar-month
6
6
  propComponents: ['CalendarMonth', 'CalendarFormat', 'CalendarMonthInlineProps']
7
7
  ---
8
+ import { useState } from 'react';
8
9
 
9
10
  ## Examples
10
11
 
@@ -1,7 +1,8 @@
1
+ import { useState } from 'react';
1
2
  import { CalendarMonth, Title, CalendarMonthInlineProps } from '@patternfly/react-core';
2
3
 
3
4
  export const CalendarMonthSelectableDate: React.FunctionComponent = () => {
4
- const [date, setDate] = React.useState(new Date(2020, 10, 24));
5
+ const [date, setDate] = useState(new Date(2020, 10, 24));
5
6
 
6
7
  const onMonthChange = (
7
8
  _event: React.MouseEvent | React.ChangeEvent | React.FormEvent<HTMLInputElement> | undefined,
@@ -1,4 +1,4 @@
1
- import { createContext, type JSX } from 'react';
1
+ import { createContext } from 'react';
2
2
  import styles from '@patternfly/react-styles/css/components/Card/card';
3
3
  import { css } from '@patternfly/react-styles';
4
4
  import { useOUIAProps, OUIAProps } from '../../helpers';
@@ -11,7 +11,7 @@ export interface CardProps extends React.HTMLProps<HTMLElement>, OUIAProps {
11
11
  /** Additional classes added to the Card */
12
12
  className?: string;
13
13
  /** Sets the base component to render. defaults to div */
14
- component?: keyof JSX.IntrinsicElements;
14
+ component?: keyof React.JSX.IntrinsicElements;
15
15
  /** Modifies the card to include compact styling. Should not be used with isLarge. */
16
16
  isCompact?: boolean;
17
17
  /** Flag indicating that the card is selectable. */
@@ -75,6 +75,8 @@ export interface CardHeaderProps extends React.HTMLProps<HTMLDivElement> {
75
75
  toggleButtonProps?: any;
76
76
  /** Whether to right-align expandable toggle button */
77
77
  isToggleRightAligned?: boolean;
78
+ /** Flag indicating that header wrapping is enabled */
79
+ hasWrap?: boolean;
78
80
  }
79
81
 
80
82
  export const CardHeader: React.FunctionComponent<CardHeaderProps> = ({
@@ -86,6 +88,7 @@ export const CardHeader: React.FunctionComponent<CardHeaderProps> = ({
86
88
  onExpand,
87
89
  toggleButtonProps,
88
90
  isToggleRightAligned,
91
+ hasWrap,
89
92
  ...props
90
93
  }: CardHeaderProps) => (
91
94
  <GenerateId>
@@ -177,7 +180,12 @@ export const CardHeader: React.FunctionComponent<CardHeaderProps> = ({
177
180
 
178
181
  return (
179
182
  <div
180
- className={css(styles.cardHeader, isToggleRightAligned && styles.modifiers.toggleRight, className)}
183
+ className={css(
184
+ styles.cardHeader,
185
+ isToggleRightAligned && styles.modifiers.toggleRight,
186
+ hasWrap && styles.modifiers.wrap,
187
+ className
188
+ )}
181
189
  id={id}
182
190
  {...props}
183
191
  >
@@ -1,4 +1,4 @@
1
- import { useContext, type JSX } from 'react';
1
+ import { useContext } from 'react';
2
2
  import { css } from '@patternfly/react-styles';
3
3
  import styles from '@patternfly/react-styles/css/components/Card/card';
4
4
  import { CardContext } from './Card';
@@ -9,7 +9,7 @@ export interface CardTitleProps extends React.HTMLProps<HTMLDivElement> {
9
9
  /** Additional classes added to the CardTitle */
10
10
  className?: string;
11
11
  /** Sets the base component to render. defaults to div */
12
- component?: keyof JSX.IntrinsicElements;
12
+ component?: keyof React.JSX.IntrinsicElements;
13
13
  }
14
14
 
15
15
  export const CardTitle: React.FunctionComponent<CardTitleProps> = ({
@@ -1,5 +1,3 @@
1
- import { type JSX } from 'react';
2
-
3
1
  import { render, screen } from '@testing-library/react';
4
2
  import '@testing-library/jest-dom';
5
3
 
@@ -33,7 +31,7 @@ describe('Card', () => {
33
31
  test('allows passing in a React Component as the component', () => {
34
32
  const Component = () => <div>im a div</div>;
35
33
 
36
- render(<Card component={Component as unknown as keyof JSX.IntrinsicElements} />);
34
+ render(<Card component={Component as unknown as keyof React.JSX.IntrinsicElements} />);
37
35
  expect(screen.getByText('im a div')).toBeInTheDocument();
38
36
  });
39
37
 
@@ -1,4 +1,3 @@
1
- import { type JSX } from 'react';
2
1
  import { render, screen } from '@testing-library/react';
3
2
  import { CardBody } from '../CardBody';
4
3
 
@@ -30,7 +29,7 @@ describe('CardBody', () => {
30
29
  test('allows passing in a React Component as the component', () => {
31
30
  const Component = () => <div>im a div</div>;
32
31
 
33
- render(<CardBody component={Component as unknown as keyof JSX.IntrinsicElements} />);
32
+ render(<CardBody component={Component as unknown as keyof React.JSX.IntrinsicElements} />);
34
33
  expect(screen.getByText('im a div')).toBeInTheDocument();
35
34
  });
36
35