@patternfly/react-core 5.2.0-prerelease.2 → 5.2.0-prerelease.20

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 (712) hide show
  1. package/CHANGELOG.md +92 -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/Chip/package.json +1 -1
  21. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  22. package/dist/dynamic/components/CodeBlock/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/DragDrop/package.json +1 -1
  28. package/dist/dynamic/components/Drawer/package.json +1 -1
  29. package/dist/dynamic/components/Dropdown/package.json +1 -1
  30. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  31. package/dist/dynamic/components/EmptyState/package.json +1 -1
  32. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  33. package/dist/dynamic/components/FileUpload/package.json +1 -1
  34. package/dist/dynamic/components/Form/package.json +1 -1
  35. package/dist/dynamic/components/FormSelect/package.json +1 -1
  36. package/dist/dynamic/components/HelperText/package.json +1 -1
  37. package/dist/dynamic/components/Hint/package.json +1 -1
  38. package/dist/dynamic/components/Icon/package.json +1 -1
  39. package/dist/dynamic/components/InputGroup/package.json +1 -1
  40. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  41. package/dist/dynamic/components/Label/package.json +1 -1
  42. package/dist/dynamic/components/List/package.json +1 -1
  43. package/dist/dynamic/components/LoginPage/package.json +1 -1
  44. package/dist/dynamic/components/Masthead/package.json +1 -1
  45. package/dist/dynamic/components/Menu/package.json +1 -1
  46. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  47. package/dist/dynamic/components/Modal/package.json +1 -1
  48. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  49. package/dist/dynamic/components/Nav/package.json +1 -1
  50. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  51. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  52. package/dist/dynamic/components/NumberInput/package.json +1 -1
  53. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  54. package/dist/dynamic/components/Page/package.json +1 -1
  55. package/dist/dynamic/components/Pagination/package.json +1 -1
  56. package/dist/dynamic/components/Panel/package.json +1 -1
  57. package/dist/dynamic/components/Popover/package.json +1 -1
  58. package/dist/dynamic/components/Progress/package.json +1 -1
  59. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  60. package/dist/dynamic/components/Radio/package.json +1 -1
  61. package/dist/dynamic/components/SearchInput/package.json +1 -1
  62. package/dist/dynamic/components/Select/package.json +1 -1
  63. package/dist/dynamic/components/Sidebar/package.json +1 -1
  64. package/dist/dynamic/components/SimpleList/package.json +1 -1
  65. package/dist/dynamic/components/Skeleton/package.json +1 -1
  66. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  67. package/dist/dynamic/components/Slider/package.json +1 -1
  68. package/dist/dynamic/components/Spinner/package.json +1 -1
  69. package/dist/dynamic/components/Switch/package.json +1 -1
  70. package/dist/dynamic/components/Tabs/package.json +1 -1
  71. package/dist/dynamic/components/Text/package.json +1 -1
  72. package/dist/dynamic/components/TextArea/package.json +1 -1
  73. package/dist/dynamic/components/TextInput/package.json +1 -1
  74. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  75. package/dist/dynamic/components/Tile/package.json +1 -1
  76. package/dist/dynamic/components/TimePicker/package.json +1 -1
  77. package/dist/dynamic/components/Timestamp/package.json +1 -1
  78. package/dist/dynamic/components/Title/package.json +1 -1
  79. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  80. package/dist/dynamic/components/Toolbar/package.json +1 -1
  81. package/dist/dynamic/components/Tooltip/package.json +1 -1
  82. package/dist/dynamic/components/TreeView/package.json +1 -1
  83. package/dist/dynamic/components/Truncate/package.json +1 -1
  84. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  85. package/dist/dynamic/components/Wizard/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
  90. package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
  91. package/dist/dynamic/deprecated/components/Select/package.json +1 -1
  92. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  93. package/dist/dynamic/deprecated/components/package.json +1 -1
  94. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  95. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  96. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  97. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  98. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  99. package/dist/dynamic/helpers/constants/package.json +1 -1
  100. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  101. package/dist/dynamic/helpers/favorites/package.json +1 -1
  102. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  103. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  104. package/dist/dynamic/helpers/package.json +1 -1
  105. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  106. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  107. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  108. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  109. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  110. package/dist/dynamic/helpers/util/package.json +1 -1
  111. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  112. package/dist/dynamic/layouts/Flex/package.json +1 -1
  113. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  114. package/dist/dynamic/layouts/Grid/package.json +1 -1
  115. package/dist/dynamic/layouts/Level/package.json +1 -1
  116. package/dist/dynamic/layouts/Split/package.json +1 -1
  117. package/dist/dynamic/layouts/Stack/package.json +1 -1
  118. package/dist/dynamic/next/components/package.json +1 -1
  119. package/dist/esm/components/AboutModal/AboutModalBoxContent.js +1 -1
  120. package/dist/esm/components/AboutModal/AboutModalBoxContent.js.map +1 -1
  121. package/dist/esm/components/ActionList/ActionListItem.d.ts.map +1 -1
  122. package/dist/esm/components/ActionList/ActionListItem.js +2 -1
  123. package/dist/esm/components/ActionList/ActionListItem.js.map +1 -1
  124. package/dist/esm/components/BackgroundImage/BackgroundImage.d.ts.map +1 -1
  125. package/dist/esm/components/BackgroundImage/BackgroundImage.js +2 -1
  126. package/dist/esm/components/BackgroundImage/BackgroundImage.js.map +1 -1
  127. package/dist/esm/components/Brand/Brand.d.ts.map +1 -1
  128. package/dist/esm/components/Brand/Brand.js +4 -2
  129. package/dist/esm/components/Brand/Brand.js.map +1 -1
  130. package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  131. package/dist/esm/components/CalendarMonth/CalendarMonth.js +15 -39
  132. package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
  133. package/dist/esm/components/Chip/Chip.d.ts +1 -1
  134. package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
  135. package/dist/esm/components/Chip/Chip.js +4 -3
  136. package/dist/esm/components/Chip/Chip.js.map +1 -1
  137. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
  138. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  139. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
  140. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
  141. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
  142. package/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js +1 -1
  143. package/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js.map +1 -1
  144. package/dist/esm/components/CodeBlock/CodeBlockAction.d.ts.map +1 -1
  145. package/dist/esm/components/CodeBlock/CodeBlockAction.js +2 -1
  146. package/dist/esm/components/CodeBlock/CodeBlockAction.js.map +1 -1
  147. package/dist/esm/components/DatePicker/DatePicker.d.ts.map +1 -1
  148. package/dist/esm/components/DatePicker/DatePicker.js +2 -1
  149. package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
  150. package/dist/esm/components/DescriptionList/DescriptionList.d.ts.map +1 -1
  151. package/dist/esm/components/DescriptionList/DescriptionList.js +6 -3
  152. package/dist/esm/components/DescriptionList/DescriptionList.js.map +1 -1
  153. package/dist/esm/components/DragDrop/Draggable.d.ts.map +1 -1
  154. package/dist/esm/components/DragDrop/Draggable.js +2 -1
  155. package/dist/esm/components/DragDrop/Draggable.js.map +1 -1
  156. package/dist/esm/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
  157. package/dist/esm/components/Drawer/DrawerPanelContent.js +12 -9
  158. package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
  159. package/dist/esm/components/Dropdown/Dropdown.d.ts +2 -0
  160. package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
  161. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  162. package/dist/esm/components/DualListSelector/DualListSelectorControl.d.ts.map +1 -1
  163. package/dist/esm/components/DualListSelector/DualListSelectorControl.js +2 -1
  164. package/dist/esm/components/DualListSelector/DualListSelectorControl.js.map +1 -1
  165. package/dist/esm/components/DualListSelector/DualListSelectorPane.d.ts.map +1 -1
  166. package/dist/esm/components/DualListSelector/DualListSelectorPane.js +4 -3
  167. package/dist/esm/components/DualListSelector/DualListSelectorPane.js.map +1 -1
  168. package/dist/esm/components/EmptyState/EmptyStateHeader.js +2 -2
  169. package/dist/esm/components/EmptyState/EmptyStateHeader.js.map +1 -1
  170. package/dist/esm/components/EmptyState/EmptyStateIcon.d.ts.map +1 -1
  171. package/dist/esm/components/EmptyState/EmptyStateIcon.js +2 -2
  172. package/dist/esm/components/EmptyState/EmptyStateIcon.js.map +1 -1
  173. package/dist/esm/components/ExpandableSection/ExpandableSection.js +1 -1
  174. package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
  175. package/dist/esm/components/Form/Form.d.ts.map +1 -1
  176. package/dist/esm/components/Form/Form.js +2 -1
  177. package/dist/esm/components/Form/Form.js.map +1 -1
  178. package/dist/esm/components/Form/FormAlert.d.ts.map +1 -1
  179. package/dist/esm/components/Form/FormAlert.js +2 -1
  180. package/dist/esm/components/Form/FormAlert.js.map +1 -1
  181. package/dist/esm/components/InputGroup/InputGroup.d.ts.map +1 -1
  182. package/dist/esm/components/InputGroup/InputGroup.js +1 -51
  183. package/dist/esm/components/InputGroup/InputGroup.js.map +1 -1
  184. package/dist/esm/components/JumpLinks/JumpLinks.js +1 -1
  185. package/dist/esm/components/JumpLinks/JumpLinks.js.map +1 -1
  186. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  187. package/dist/esm/components/Label/Label.js +2 -1
  188. package/dist/esm/components/Label/Label.js.map +1 -1
  189. package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
  190. package/dist/esm/components/Menu/Menu.js +8 -5
  191. package/dist/esm/components/Menu/Menu.js.map +1 -1
  192. package/dist/esm/components/Menu/MenuContainer.d.ts +2 -0
  193. package/dist/esm/components/Menu/MenuContainer.d.ts.map +1 -1
  194. package/dist/esm/components/Menu/MenuContainer.js.map +1 -1
  195. package/dist/esm/components/Menu/MenuContent.d.ts.map +1 -1
  196. package/dist/esm/components/Menu/MenuContent.js +3 -1
  197. package/dist/esm/components/Menu/MenuContent.js.map +1 -1
  198. package/dist/esm/components/Menu/MenuSearchInput.d.ts.map +1 -1
  199. package/dist/esm/components/Menu/MenuSearchInput.js +2 -1
  200. package/dist/esm/components/Menu/MenuSearchInput.js.map +1 -1
  201. package/dist/esm/components/Modal/ModalBoxHeader.js +1 -1
  202. package/dist/esm/components/Modal/ModalBoxHeader.js.map +1 -1
  203. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js +1 -1
  204. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
  205. package/dist/esm/components/Nav/NavExpandable.d.ts +3 -3
  206. package/dist/esm/components/Nav/NavExpandable.d.ts.map +1 -1
  207. package/dist/esm/components/Nav/NavExpandable.js +2 -2
  208. package/dist/esm/components/Nav/NavExpandable.js.map +1 -1
  209. package/dist/esm/components/Nav/NavItem.d.ts +2 -0
  210. package/dist/esm/components/Nav/NavItem.d.ts.map +1 -1
  211. package/dist/esm/components/Nav/NavItem.js +2 -2
  212. package/dist/esm/components/Nav/NavItem.js.map +1 -1
  213. package/dist/esm/components/Nav/NavList.js +3 -3
  214. package/dist/esm/components/Nav/NavList.js.map +1 -1
  215. package/dist/esm/components/NotificationDrawer/NotificationDrawerGroup.js +1 -1
  216. package/dist/esm/components/NotificationDrawer/NotificationDrawerGroup.js.map +1 -1
  217. package/dist/esm/components/NotificationDrawer/NotificationDrawerList.d.ts.map +1 -1
  218. package/dist/esm/components/NotificationDrawer/NotificationDrawerList.js +2 -1
  219. package/dist/esm/components/NotificationDrawer/NotificationDrawerList.js.map +1 -1
  220. package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.d.ts.map +1 -1
  221. package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.js +1 -1
  222. package/dist/esm/components/NotificationDrawer/NotificationDrawerListItem.js.map +1 -1
  223. package/dist/esm/components/NumberInput/NumberInput.d.ts.map +1 -1
  224. package/dist/esm/components/NumberInput/NumberInput.js +2 -1
  225. package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
  226. package/dist/esm/components/Panel/PanelMain.d.ts.map +1 -1
  227. package/dist/esm/components/Panel/PanelMain.js +2 -1
  228. package/dist/esm/components/Panel/PanelMain.js.map +1 -1
  229. package/dist/esm/components/SearchInput/SearchInput.d.ts +2 -0
  230. package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
  231. package/dist/esm/components/SearchInput/SearchInput.js +4 -3
  232. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  233. package/dist/esm/components/Select/Select.d.ts +2 -0
  234. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  235. package/dist/esm/components/Select/Select.js.map +1 -1
  236. package/dist/esm/components/Skeleton/Skeleton.d.ts.map +1 -1
  237. package/dist/esm/components/Skeleton/Skeleton.js +3 -1
  238. package/dist/esm/components/Skeleton/Skeleton.js.map +1 -1
  239. package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
  240. package/dist/esm/components/Slider/Slider.js +10 -7
  241. package/dist/esm/components/Slider/Slider.js.map +1 -1
  242. package/dist/esm/components/Spinner/Spinner.d.ts.map +1 -1
  243. package/dist/esm/components/Spinner/Spinner.js +2 -1
  244. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  245. package/dist/esm/components/Tabs/OverflowTab.js +1 -1
  246. package/dist/esm/components/Tabs/OverflowTab.js.map +1 -1
  247. package/dist/esm/components/Tabs/Tabs.js +3 -3
  248. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  249. package/dist/esm/components/TimePicker/TimePicker.d.ts.map +1 -1
  250. package/dist/esm/components/TimePicker/TimePicker.js +2 -1
  251. package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
  252. package/dist/esm/components/Timestamp/Timestamp.js +1 -1
  253. package/dist/esm/components/Timestamp/Timestamp.js.map +1 -1
  254. package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  255. package/dist/esm/components/Toolbar/ToolbarItem.js +2 -1
  256. package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
  257. package/dist/esm/components/TreeView/TreeViewList.d.ts.map +1 -1
  258. package/dist/esm/components/TreeView/TreeViewList.js +2 -1
  259. package/dist/esm/components/TreeView/TreeViewList.js.map +1 -1
  260. package/dist/esm/components/TreeView/TreeViewRoot.d.ts.map +1 -1
  261. package/dist/esm/components/TreeView/TreeViewRoot.js +7 -7
  262. package/dist/esm/components/TreeView/TreeViewRoot.js.map +1 -1
  263. package/dist/esm/components/Wizard/Wizard.d.ts +3 -1
  264. package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
  265. package/dist/esm/components/Wizard/Wizard.js +5 -5
  266. package/dist/esm/components/Wizard/Wizard.js.map +1 -1
  267. package/dist/esm/components/Wizard/WizardNavInternal.d.ts +3 -2
  268. package/dist/esm/components/Wizard/WizardNavInternal.d.ts.map +1 -1
  269. package/dist/esm/components/Wizard/WizardNavInternal.js +2 -2
  270. package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
  271. package/dist/esm/components/Wizard/WizardNavItem.d.ts.map +1 -1
  272. package/dist/esm/components/Wizard/WizardNavItem.js +4 -2
  273. package/dist/esm/components/Wizard/WizardNavItem.js.map +1 -1
  274. package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +1 -1
  275. package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +2 -1
  276. package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +1 -1
  277. package/dist/esm/deprecated/components/Select/SelectMenu.js +1 -1
  278. package/dist/esm/deprecated/components/Select/SelectMenu.js.map +1 -1
  279. package/dist/esm/helpers/Popper/Popper.d.ts +2 -1
  280. package/dist/esm/helpers/Popper/Popper.d.ts.map +1 -1
  281. package/dist/esm/helpers/Popper/Popper.js +7 -16
  282. package/dist/esm/helpers/Popper/Popper.js.map +1 -1
  283. package/dist/esm/helpers/datetimeUtils.d.ts +1 -1
  284. package/dist/esm/helpers/datetimeUtils.d.ts.map +1 -1
  285. package/dist/esm/helpers/datetimeUtils.js.map +1 -1
  286. package/dist/esm/helpers/util.d.ts +9 -0
  287. package/dist/esm/helpers/util.d.ts.map +1 -1
  288. package/dist/esm/helpers/util.js +18 -0
  289. package/dist/esm/helpers/util.js.map +1 -1
  290. package/dist/esm/layouts/Gallery/Gallery.d.ts.map +1 -1
  291. package/dist/esm/layouts/Gallery/Gallery.js +6 -2
  292. package/dist/esm/layouts/Gallery/Gallery.js.map +1 -1
  293. package/dist/js/components/AboutModal/AboutModalBoxContent.js +1 -1
  294. package/dist/js/components/AboutModal/AboutModalBoxContent.js.map +1 -1
  295. package/dist/js/components/ActionList/ActionListItem.d.ts.map +1 -1
  296. package/dist/js/components/ActionList/ActionListItem.js +2 -1
  297. package/dist/js/components/ActionList/ActionListItem.js.map +1 -1
  298. package/dist/js/components/BackgroundImage/BackgroundImage.d.ts.map +1 -1
  299. package/dist/js/components/BackgroundImage/BackgroundImage.js +2 -1
  300. package/dist/js/components/BackgroundImage/BackgroundImage.js.map +1 -1
  301. package/dist/js/components/Brand/Brand.d.ts.map +1 -1
  302. package/dist/js/components/Brand/Brand.js +4 -2
  303. package/dist/js/components/Brand/Brand.js.map +1 -1
  304. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  305. package/dist/js/components/CalendarMonth/CalendarMonth.js +15 -39
  306. package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
  307. package/dist/js/components/Chip/Chip.d.ts +1 -1
  308. package/dist/js/components/Chip/Chip.d.ts.map +1 -1
  309. package/dist/js/components/Chip/Chip.js +4 -3
  310. package/dist/js/components/Chip/Chip.js.map +1 -1
  311. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
  312. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  313. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
  314. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
  315. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
  316. package/dist/js/components/ClipboardCopy/ClipboardCopyToggle.js +1 -1
  317. package/dist/js/components/ClipboardCopy/ClipboardCopyToggle.js.map +1 -1
  318. package/dist/js/components/CodeBlock/CodeBlockAction.d.ts.map +1 -1
  319. package/dist/js/components/CodeBlock/CodeBlockAction.js +2 -1
  320. package/dist/js/components/CodeBlock/CodeBlockAction.js.map +1 -1
  321. package/dist/js/components/DatePicker/DatePicker.d.ts.map +1 -1
  322. package/dist/js/components/DatePicker/DatePicker.js +2 -1
  323. package/dist/js/components/DatePicker/DatePicker.js.map +1 -1
  324. package/dist/js/components/DescriptionList/DescriptionList.d.ts.map +1 -1
  325. package/dist/js/components/DescriptionList/DescriptionList.js +6 -3
  326. package/dist/js/components/DescriptionList/DescriptionList.js.map +1 -1
  327. package/dist/js/components/DragDrop/Draggable.d.ts.map +1 -1
  328. package/dist/js/components/DragDrop/Draggable.js +2 -1
  329. package/dist/js/components/DragDrop/Draggable.js.map +1 -1
  330. package/dist/js/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
  331. package/dist/js/components/Drawer/DrawerPanelContent.js +11 -8
  332. package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
  333. package/dist/js/components/Dropdown/Dropdown.d.ts +2 -0
  334. package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
  335. package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
  336. package/dist/js/components/DualListSelector/DualListSelectorControl.d.ts.map +1 -1
  337. package/dist/js/components/DualListSelector/DualListSelectorControl.js +2 -1
  338. package/dist/js/components/DualListSelector/DualListSelectorControl.js.map +1 -1
  339. package/dist/js/components/DualListSelector/DualListSelectorPane.d.ts.map +1 -1
  340. package/dist/js/components/DualListSelector/DualListSelectorPane.js +4 -3
  341. package/dist/js/components/DualListSelector/DualListSelectorPane.js.map +1 -1
  342. package/dist/js/components/EmptyState/EmptyStateHeader.js +2 -2
  343. package/dist/js/components/EmptyState/EmptyStateHeader.js.map +1 -1
  344. package/dist/js/components/EmptyState/EmptyStateIcon.d.ts.map +1 -1
  345. package/dist/js/components/EmptyState/EmptyStateIcon.js +2 -2
  346. package/dist/js/components/EmptyState/EmptyStateIcon.js.map +1 -1
  347. package/dist/js/components/ExpandableSection/ExpandableSection.js +1 -1
  348. package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
  349. package/dist/js/components/Form/Form.d.ts.map +1 -1
  350. package/dist/js/components/Form/Form.js +2 -1
  351. package/dist/js/components/Form/Form.js.map +1 -1
  352. package/dist/js/components/Form/FormAlert.d.ts.map +1 -1
  353. package/dist/js/components/Form/FormAlert.js +2 -1
  354. package/dist/js/components/Form/FormAlert.js.map +1 -1
  355. package/dist/js/components/InputGroup/InputGroup.d.ts.map +1 -1
  356. package/dist/js/components/InputGroup/InputGroup.js +1 -51
  357. package/dist/js/components/InputGroup/InputGroup.js.map +1 -1
  358. package/dist/js/components/JumpLinks/JumpLinks.js +1 -1
  359. package/dist/js/components/JumpLinks/JumpLinks.js.map +1 -1
  360. package/dist/js/components/Label/Label.d.ts.map +1 -1
  361. package/dist/js/components/Label/Label.js +2 -1
  362. package/dist/js/components/Label/Label.js.map +1 -1
  363. package/dist/js/components/Menu/Menu.d.ts.map +1 -1
  364. package/dist/js/components/Menu/Menu.js +8 -5
  365. package/dist/js/components/Menu/Menu.js.map +1 -1
  366. package/dist/js/components/Menu/MenuContainer.d.ts +2 -0
  367. package/dist/js/components/Menu/MenuContainer.d.ts.map +1 -1
  368. package/dist/js/components/Menu/MenuContainer.js.map +1 -1
  369. package/dist/js/components/Menu/MenuContent.d.ts.map +1 -1
  370. package/dist/js/components/Menu/MenuContent.js +3 -1
  371. package/dist/js/components/Menu/MenuContent.js.map +1 -1
  372. package/dist/js/components/Menu/MenuSearchInput.d.ts.map +1 -1
  373. package/dist/js/components/Menu/MenuSearchInput.js +2 -1
  374. package/dist/js/components/Menu/MenuSearchInput.js.map +1 -1
  375. package/dist/js/components/Modal/ModalBoxHeader.js +1 -1
  376. package/dist/js/components/Modal/ModalBoxHeader.js.map +1 -1
  377. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js +1 -1
  378. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
  379. package/dist/js/components/Nav/NavExpandable.d.ts +3 -3
  380. package/dist/js/components/Nav/NavExpandable.d.ts.map +1 -1
  381. package/dist/js/components/Nav/NavExpandable.js +2 -2
  382. package/dist/js/components/Nav/NavExpandable.js.map +1 -1
  383. package/dist/js/components/Nav/NavItem.d.ts +2 -0
  384. package/dist/js/components/Nav/NavItem.d.ts.map +1 -1
  385. package/dist/js/components/Nav/NavItem.js +2 -2
  386. package/dist/js/components/Nav/NavItem.js.map +1 -1
  387. package/dist/js/components/Nav/NavList.js +2 -2
  388. package/dist/js/components/Nav/NavList.js.map +1 -1
  389. package/dist/js/components/NotificationDrawer/NotificationDrawerGroup.js +1 -1
  390. package/dist/js/components/NotificationDrawer/NotificationDrawerGroup.js.map +1 -1
  391. package/dist/js/components/NotificationDrawer/NotificationDrawerList.d.ts.map +1 -1
  392. package/dist/js/components/NotificationDrawer/NotificationDrawerList.js +2 -1
  393. package/dist/js/components/NotificationDrawer/NotificationDrawerList.js.map +1 -1
  394. package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.d.ts.map +1 -1
  395. package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.js +1 -1
  396. package/dist/js/components/NotificationDrawer/NotificationDrawerListItem.js.map +1 -1
  397. package/dist/js/components/NumberInput/NumberInput.d.ts.map +1 -1
  398. package/dist/js/components/NumberInput/NumberInput.js +2 -1
  399. package/dist/js/components/NumberInput/NumberInput.js.map +1 -1
  400. package/dist/js/components/Panel/PanelMain.d.ts.map +1 -1
  401. package/dist/js/components/Panel/PanelMain.js +2 -1
  402. package/dist/js/components/Panel/PanelMain.js.map +1 -1
  403. package/dist/js/components/SearchInput/SearchInput.d.ts +2 -0
  404. package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
  405. package/dist/js/components/SearchInput/SearchInput.js +4 -3
  406. package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
  407. package/dist/js/components/Select/Select.d.ts +2 -0
  408. package/dist/js/components/Select/Select.d.ts.map +1 -1
  409. package/dist/js/components/Select/Select.js.map +1 -1
  410. package/dist/js/components/Skeleton/Skeleton.d.ts.map +1 -1
  411. package/dist/js/components/Skeleton/Skeleton.js +3 -1
  412. package/dist/js/components/Skeleton/Skeleton.js.map +1 -1
  413. package/dist/js/components/Slider/Slider.d.ts.map +1 -1
  414. package/dist/js/components/Slider/Slider.js +10 -7
  415. package/dist/js/components/Slider/Slider.js.map +1 -1
  416. package/dist/js/components/Spinner/Spinner.d.ts.map +1 -1
  417. package/dist/js/components/Spinner/Spinner.js +2 -1
  418. package/dist/js/components/Spinner/Spinner.js.map +1 -1
  419. package/dist/js/components/Tabs/OverflowTab.js +1 -1
  420. package/dist/js/components/Tabs/OverflowTab.js.map +1 -1
  421. package/dist/js/components/Tabs/Tabs.js +2 -2
  422. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  423. package/dist/js/components/TimePicker/TimePicker.d.ts.map +1 -1
  424. package/dist/js/components/TimePicker/TimePicker.js +2 -1
  425. package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
  426. package/dist/js/components/Timestamp/Timestamp.js +1 -1
  427. package/dist/js/components/Timestamp/Timestamp.js.map +1 -1
  428. package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  429. package/dist/js/components/Toolbar/ToolbarItem.js +2 -1
  430. package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
  431. package/dist/js/components/TreeView/TreeViewList.d.ts.map +1 -1
  432. package/dist/js/components/TreeView/TreeViewList.js +2 -1
  433. package/dist/js/components/TreeView/TreeViewList.js.map +1 -1
  434. package/dist/js/components/TreeView/TreeViewRoot.d.ts.map +1 -1
  435. package/dist/js/components/TreeView/TreeViewRoot.js +7 -7
  436. package/dist/js/components/TreeView/TreeViewRoot.js.map +1 -1
  437. package/dist/js/components/Wizard/Wizard.d.ts +3 -1
  438. package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
  439. package/dist/js/components/Wizard/Wizard.js +5 -5
  440. package/dist/js/components/Wizard/Wizard.js.map +1 -1
  441. package/dist/js/components/Wizard/WizardNavInternal.d.ts +3 -2
  442. package/dist/js/components/Wizard/WizardNavInternal.d.ts.map +1 -1
  443. package/dist/js/components/Wizard/WizardNavInternal.js +2 -2
  444. package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
  445. package/dist/js/components/Wizard/WizardNavItem.d.ts.map +1 -1
  446. package/dist/js/components/Wizard/WizardNavItem.js +4 -2
  447. package/dist/js/components/Wizard/WizardNavItem.js.map +1 -1
  448. package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +1 -1
  449. package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +2 -1
  450. package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +1 -1
  451. package/dist/js/deprecated/components/Select/SelectMenu.js +1 -1
  452. package/dist/js/deprecated/components/Select/SelectMenu.js.map +1 -1
  453. package/dist/js/helpers/Popper/Popper.d.ts +2 -1
  454. package/dist/js/helpers/Popper/Popper.d.ts.map +1 -1
  455. package/dist/js/helpers/Popper/Popper.js +9 -19
  456. package/dist/js/helpers/Popper/Popper.js.map +1 -1
  457. package/dist/js/helpers/datetimeUtils.d.ts +1 -1
  458. package/dist/js/helpers/datetimeUtils.d.ts.map +1 -1
  459. package/dist/js/helpers/datetimeUtils.js.map +1 -1
  460. package/dist/js/helpers/util.d.ts +9 -0
  461. package/dist/js/helpers/util.d.ts.map +1 -1
  462. package/dist/js/helpers/util.js +20 -1
  463. package/dist/js/helpers/util.js.map +1 -1
  464. package/dist/js/layouts/Gallery/Gallery.d.ts.map +1 -1
  465. package/dist/js/layouts/Gallery/Gallery.js +6 -2
  466. package/dist/js/layouts/Gallery/Gallery.js.map +1 -1
  467. package/dist/styles/assets/images/logo__pf--reverse-on-md.svg +1 -1
  468. package/dist/styles/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
  469. package/dist/styles/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
  470. package/dist/styles/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
  471. package/dist/styles/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
  472. package/dist/styles/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
  473. package/dist/styles/assets/images/pf_logo_white.hbs +35 -0
  474. package/dist/styles/assets/images/pf_logo_white.svg +38 -0
  475. package/dist/umd/react-core.min.js +3 -3
  476. package/helpers/package.json +1 -1
  477. package/layouts/package.json +1 -1
  478. package/next/package.json +1 -1
  479. package/package.json +6 -6
  480. package/src/components/AboutModal/AboutModalBoxContent.tsx +1 -1
  481. package/src/components/AboutModal/examples/AboutModal.md +1 -0
  482. package/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx +3 -2
  483. package/src/components/Accordion/__tests__/Accordion.test.tsx +3 -2
  484. package/src/components/Accordion/__tests__/AccordionContent.test.tsx +3 -2
  485. package/src/components/Accordion/__tests__/AccordionExpandedContentBody.test.tsx +3 -2
  486. package/src/components/Accordion/__tests__/AccordionToggle.test.tsx +7 -6
  487. package/src/components/ActionList/ActionListItem.tsx +2 -1
  488. package/src/components/ActionList/__tests__/ActionList.test.tsx +7 -6
  489. package/src/components/ActionList/__tests__/ActionListGroup.test.tsx +3 -2
  490. package/src/components/ActionList/__tests__/ActionListItem.test.tsx +3 -2
  491. package/src/components/Alert/__tests__/Alert.test.tsx +15 -13
  492. package/src/components/Alert/__tests__/AlertIcon.test.tsx +3 -2
  493. package/src/components/Alert/__tests__/AlertToggleExpandButton.test.tsx +3 -2
  494. package/src/components/Alert/examples/Alert.md +143 -103
  495. package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +2 -1
  496. package/src/components/Alert/examples/AlertGroupAsync.tsx +2 -1
  497. package/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx +2 -1
  498. package/src/components/Alert/examples/AlertGroupSingularDynamic.tsx +2 -1
  499. package/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx +2 -1
  500. package/src/components/Alert/examples/AlertGroupToast.tsx +2 -1
  501. package/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx +2 -1
  502. package/src/components/Avatar/__tests__/Avatar.test.tsx +2 -1
  503. package/src/components/BackToTop/__tests__/BackToTop.test.tsx +2 -1
  504. package/src/components/Backdrop/__tests__/Backdrop.test.tsx +5 -4
  505. package/src/components/BackgroundImage/BackgroundImage.tsx +2 -1
  506. package/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx +2 -5
  507. package/src/components/Badge/__tests__/Badge.test.tsx +5 -4
  508. package/src/components/Banner/__tests__/Banner.test.tsx +4 -3
  509. package/src/components/Brand/Brand.tsx +5 -2
  510. package/src/components/Button/examples/Button.md +1 -1
  511. package/src/components/CalendarMonth/CalendarMonth.tsx +18 -43
  512. package/src/components/Checkbox/__tests__/Checkbox.test.tsx +224 -69
  513. package/src/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +3 -198
  514. package/src/components/Chip/Chip.tsx +4 -2
  515. package/src/components/Chip/__tests__/Chip.test.tsx +249 -32
  516. package/src/components/Chip/__tests__/ChipGroup.test.tsx +288 -61
  517. package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +9 -209
  518. package/src/components/Chip/__tests__/__snapshots__/ChipGroup.test.tsx.snap +2 -313
  519. package/src/components/ClipboardCopy/ClipboardCopy.tsx +1 -1
  520. package/src/components/ClipboardCopy/ClipboardCopyButton.tsx +2 -0
  521. package/src/components/ClipboardCopy/ClipboardCopyToggle.tsx +1 -1
  522. package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +344 -0
  523. package/src/components/ClipboardCopy/__tests__/ClipboardCopyAction.test.tsx +37 -0
  524. package/src/components/ClipboardCopy/__tests__/ClipboardCopyButton.test.tsx +136 -19
  525. package/src/components/ClipboardCopy/__tests__/ClipboardCopyExpanded.test.tsx +71 -14
  526. package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +78 -34
  527. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +57 -0
  528. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyAction.test.tsx.snap +11 -0
  529. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +50 -24
  530. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +3 -23
  531. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +5 -6
  532. package/src/components/CodeBlock/CodeBlockAction.tsx +2 -1
  533. package/src/components/DataList/__tests__/DataList.test.tsx +6 -5
  534. package/src/components/DataList/examples/DataList.md +4 -0
  535. package/src/components/DataList/examples/DataListWidthModifiers.tsx +8 -3
  536. package/src/components/DatePicker/DatePicker.tsx +2 -1
  537. package/src/components/DescriptionList/DescriptionList.tsx +6 -3
  538. package/src/components/DragDrop/Draggable.tsx +2 -1
  539. package/src/components/Drawer/DrawerPanelContent.tsx +12 -9
  540. package/src/components/Drawer/examples/Drawer.md +2 -0
  541. package/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx +4 -3
  542. package/src/components/Drawer/examples/DrawerStatic.tsx +2 -1
  543. package/src/components/Dropdown/Dropdown.tsx +2 -0
  544. package/src/components/DualListSelector/DualListSelectorControl.tsx +2 -1
  545. package/src/components/DualListSelector/DualListSelectorPane.tsx +4 -3
  546. package/src/components/EmptyState/EmptyStateHeader.tsx +2 -2
  547. package/src/components/EmptyState/EmptyStateIcon.tsx +2 -2
  548. package/src/components/EmptyState/__tests__/EmptyState.test.tsx +5 -8
  549. package/src/components/EmptyState/examples/EmptyState.md +1 -0
  550. package/src/components/EmptyState/examples/EmptyStateCustomIconColor.tsx +3 -1
  551. package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
  552. package/src/components/FileUpload/examples/FileUploadCustomPreview.tsx +2 -1
  553. package/src/components/FileUpload/examples/FileUploadCustomUpload.tsx +2 -1
  554. package/src/components/Form/Form.tsx +2 -1
  555. package/src/components/Form/FormAlert.tsx +2 -1
  556. package/src/components/Form/examples/Form.md +1 -0
  557. package/src/components/Form/examples/FormBasic.tsx +2 -1
  558. package/src/components/Form/examples/FormGroupLabelInfo.tsx +2 -1
  559. package/src/components/Form/examples/FormLimitWidth.tsx +2 -1
  560. package/src/components/Hint/__tests__/Hint.test.tsx +5 -4
  561. package/src/components/Hint/__tests__/HintBody.test.tsx +3 -2
  562. package/src/components/Hint/__tests__/HintFooter.test.tsx +3 -2
  563. package/src/components/Hint/__tests__/HintTitle.test.tsx +3 -2
  564. package/src/components/Icon/__tests__/Icon.test.tsx +12 -11
  565. package/src/components/InputGroup/InputGroup.tsx +1 -53
  566. package/src/components/InputGroup/__tests__/InputGroup.test.tsx +7 -44
  567. package/src/components/JumpLinks/JumpLinks.tsx +1 -1
  568. package/src/components/Label/Label.tsx +2 -1
  569. package/src/components/Menu/Menu.tsx +8 -5
  570. package/src/components/Menu/MenuContainer.tsx +2 -0
  571. package/src/components/Menu/MenuContent.tsx +4 -2
  572. package/src/components/Menu/MenuSearchInput.tsx +2 -1
  573. package/src/components/Menu/__mocks__/Menu.tsx +2 -1
  574. package/src/components/MenuToggle/examples/MenuToggle.css +3 -2
  575. package/src/components/Modal/ModalBoxHeader.tsx +1 -1
  576. package/src/components/Modal/examples/Modal.md +2 -0
  577. package/src/components/Modal/examples/ModalCustomHeaderFooter.tsx +3 -2
  578. package/src/components/Modal/examples/ModalWithForm.tsx +4 -3
  579. package/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx +1 -1
  580. package/src/components/Nav/NavExpandable.tsx +5 -5
  581. package/src/components/Nav/NavItem.tsx +4 -1
  582. package/src/components/Nav/NavList.tsx +3 -3
  583. package/src/components/Nav/examples/Nav.md +8 -0
  584. package/src/components/Nav/examples/NavExpandableThirdLevel.tsx +1 -1
  585. package/src/components/Nav/examples/NavLinkText.tsx +109 -0
  586. package/src/components/Nav/examples/nav.css +1 -0
  587. package/src/components/NotificationDrawer/NotificationDrawerGroup.tsx +1 -1
  588. package/src/components/NotificationDrawer/NotificationDrawerList.tsx +2 -1
  589. package/src/components/NotificationDrawer/NotificationDrawerListItem.tsx +1 -3
  590. package/src/components/NumberInput/NumberInput.tsx +2 -1
  591. package/src/components/NumberInput/__tests__/NumberInput.test.tsx +0 -1
  592. package/src/components/Page/__tests__/PageSidebarBody.test.tsx +15 -14
  593. package/src/components/Page/examples/Page.md +1 -0
  594. package/src/components/Page/examples/PageCenteredSection.tsx +3 -2
  595. package/src/components/Panel/PanelMain.tsx +2 -1
  596. package/src/components/Panel/__tests__/Panel.test.tsx +11 -10
  597. package/src/components/Panel/__tests__/PanelFooter.test.tsx +5 -4
  598. package/src/components/Panel/__tests__/PanelHeader.test.tsx +5 -4
  599. package/src/components/Panel/__tests__/PanelMain.test.tsx +7 -5
  600. package/src/components/Panel/__tests__/PanelMainBody.test.tsx +5 -4
  601. package/src/components/Progress/__tests__/ProgressHelperText.test.tsx +3 -2
  602. package/src/components/ProgressStepper/__tests__/ProgressStep.test.tsx +10 -9
  603. package/src/components/ProgressStepper/__tests__/ProgressStepper.test.tsx +5 -4
  604. package/src/components/SearchInput/SearchInput.tsx +7 -2
  605. package/src/components/SearchInput/__tests__/SearchInput.test.tsx +13 -3
  606. package/src/components/Select/Select.tsx +2 -0
  607. package/src/components/Sidebar/__tests__/Sidebar.test.tsx +7 -6
  608. package/src/components/Sidebar/__tests__/SidebarContent.test.tsx +5 -4
  609. package/src/components/Sidebar/__tests__/SidebarPanel.test.tsx +5 -4
  610. package/src/components/Skeleton/Skeleton.tsx +4 -2
  611. package/src/components/Skeleton/examples/Skeleton.md +8 -0
  612. package/src/components/Skeleton/examples/SkeletonText.tsx +15 -7
  613. package/src/components/Slider/Slider.tsx +10 -7
  614. package/src/components/Spinner/Spinner.tsx +2 -1
  615. package/src/components/Tabs/OverflowTab.tsx +1 -1
  616. package/src/components/Tabs/Tabs.tsx +3 -3
  617. package/src/components/Tabs/__tests__/OverflowTab.test.tsx +9 -8
  618. package/src/components/Text/__tests__/TextContent.test.tsx +3 -2
  619. package/src/components/TextArea/__tests__/TextArea.test.tsx +2 -1
  620. package/src/components/TextInputGroup/__tests__/TextInputGroup.test.tsx +3 -2
  621. package/src/components/TextInputGroup/__tests__/TextInputGroupMain.test.tsx +10 -9
  622. package/src/components/TextInputGroup/__tests__/TextInputGroupUtilities.test.tsx +3 -3
  623. package/src/components/TimePicker/TimePicker.tsx +3 -1
  624. package/src/components/Timestamp/Timestamp.tsx +1 -1
  625. package/src/components/Timestamp/__tests__/Timestamp.test.tsx +5 -4
  626. package/src/components/Title/__tests__/Title.test.tsx +5 -4
  627. package/src/components/Toolbar/ToolbarItem.tsx +2 -1
  628. package/src/components/TreeView/TreeViewList.tsx +2 -1
  629. package/src/components/TreeView/TreeViewRoot.tsx +7 -11
  630. package/src/components/Truncate/__tests__/Truncate.test.tsx +10 -9
  631. package/src/components/Truncate/examples/Truncate.md +8 -5
  632. package/src/components/Truncate/examples/TruncateExamples.css +1 -1
  633. package/src/components/Wizard/Wizard.tsx +13 -3
  634. package/src/components/Wizard/WizardNavInternal.tsx +10 -3
  635. package/src/components/Wizard/WizardNavItem.tsx +4 -2
  636. package/src/components/Wizard/__tests__/Wizard.test.tsx +12 -0
  637. package/src/components/Wizard/examples/Wizard.md +4 -2
  638. package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +2 -1
  639. package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +2 -1
  640. package/src/components/Wizard/examples/WizardWithCustomNavItem.tsx +1 -1
  641. package/src/components/Wizard/examples/WizardWithSubmitProgress.tsx +2 -1
  642. package/src/demos/Banner.md +20 -12
  643. package/src/demos/CardDemos.md +25 -2911
  644. package/src/demos/{Card/Card.md → CardView/CardView.md} +1 -1
  645. package/src/demos/{Card → CardView}/examples/CardView.tsx +1 -1
  646. package/src/demos/CustomMenus/CustomMenus.md +1 -0
  647. package/src/demos/CustomMenus/examples/ComposableDateSelect.tsx +5 -4
  648. package/src/demos/CustomMenus/examples/DateSelectDemo.tsx +5 -4
  649. package/src/demos/JumpLinks.md +4 -1
  650. package/src/demos/Nav.md +10 -1673
  651. package/src/demos/PasswordStrength.md +1 -0
  652. package/src/demos/PrimaryDetail.md +2 -2
  653. package/src/demos/ProgressDemo.md +2 -2
  654. package/src/demos/RTL/RTL.md +31 -0
  655. package/src/demos/RTL/examples/PaginatedTable.css +7 -0
  656. package/src/demos/RTL/examples/PaginatedTable.jsx +507 -0
  657. package/src/demos/RTL/examples/translations.en.json +67 -0
  658. package/src/demos/RTL/examples/translations.he.json +82 -0
  659. package/src/demos/Tabs.md +6 -2
  660. package/src/demos/Toolbar.md +1 -551
  661. package/src/demos/Wizard/WizardDemo.md +6 -761
  662. package/src/demos/examples/Card/CardAggregateStatus.tsx +249 -0
  663. package/src/demos/examples/Card/CardDetails.tsx +95 -0
  664. package/src/demos/examples/Card/CardEventsView.tsx +154 -0
  665. package/src/demos/examples/Card/CardHorizontalGrid.tsx +240 -0
  666. package/src/demos/examples/Card/CardHorizontalSplit.tsx +30 -0
  667. package/src/demos/examples/Card/CardLogView.tsx +118 -0
  668. package/src/demos/examples/Card/CardNested.tsx +532 -0
  669. package/src/demos/examples/Card/CardStatus.tsx +262 -0
  670. package/src/demos/examples/Card/CardStatusTabbed.tsx +113 -0
  671. package/src/demos/examples/Card/CardTrendDemo1.tsx +106 -0
  672. package/src/demos/examples/Card/CardTrendDemo2.tsx +76 -0
  673. package/src/demos/examples/Card/CardUtilizationDemo1.tsx +109 -0
  674. package/src/demos/examples/Card/CardUtilizationDemo2.tsx +103 -0
  675. package/src/demos/examples/Card/CardUtilizationDemo3.tsx +174 -0
  676. package/src/demos/examples/Card/CardUtilizationDemo4.tsx +50 -0
  677. package/src/demos/examples/Card/CardWithAccordion.tsx +514 -0
  678. package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -2
  679. package/src/demos/examples/Nav/NavDefault.tsx +98 -0
  680. package/src/demos/examples/Nav/NavDrilldown.tsx +2 -0
  681. package/src/demos/examples/Nav/NavExpandable.tsx +124 -0
  682. package/src/demos/examples/Nav/NavFlyout.tsx +278 -0
  683. package/src/demos/examples/Nav/NavGrouped.tsx +99 -0
  684. package/src/demos/examples/Nav/NavHorizontal.tsx +237 -0
  685. package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +297 -0
  686. package/src/demos/examples/Nav/NavManual.tsx +273 -0
  687. package/src/demos/examples/Nav/NavWithSubnav.tsx +142 -0
  688. package/src/demos/examples/Nav/deprecated/NavLight.tsx +96 -0
  689. package/src/demos/examples/Nav/deprecated/NavTertiary.tsx +92 -0
  690. package/src/demos/examples/Tabs/NestedTabs.tsx +2 -1
  691. package/src/demos/examples/Tabs/TabsAndTable.tsx +2 -1
  692. package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +35 -14
  693. package/src/demos/examples/Wizard/InModal.tsx +75 -0
  694. package/src/demos/examples/Wizard/InModalWithDrawer.tsx +115 -0
  695. package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +122 -0
  696. package/src/demos/examples/Wizard/InPage.tsx +35 -0
  697. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +196 -0
  698. package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +201 -0
  699. package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherText.tsx +2 -1
  700. package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherRouterLink.tsx +3 -1
  701. package/src/deprecated/components/Select/SelectMenu.tsx +1 -1
  702. package/src/deprecated/components/Wizard/examples/WizardFinished.tsx +2 -1
  703. package/src/deprecated/components/Wizard/examples/WizardValidateOnButtonPress.tsx +2 -1
  704. package/src/helpers/Popper/Popper.tsx +10 -19
  705. package/src/helpers/__mocks__/util.ts +2 -0
  706. package/src/helpers/datetimeUtils.ts +1 -1
  707. package/src/helpers/util.ts +22 -0
  708. package/src/layouts/Flex/__tests__/Flex.test.tsx +2 -1
  709. package/src/layouts/Gallery/Gallery.tsx +6 -6
  710. package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopy.test.tsx +0 -40
  711. package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +0 -55
  712. /package/src/demos/{Card/examples/CardData.jsx → CardView/examples/CardViewData.jsx} +0 -0
@@ -5,6 +5,7 @@ import { PanelMain } from '../PanelMain';
5
5
  import { PanelMainBody } from '../PanelMainBody';
6
6
  import userEvent from '@testing-library/user-event';
7
7
  import { useEffect } from 'react';
8
+ import styles from '@patternfly/react-styles/css/components/Panel/panel';
8
9
 
9
10
  test('Renders without children', () => {
10
11
  render(
@@ -20,14 +21,14 @@ test('Renders children', () => {
20
21
  expect(screen.getByText('Test')).toBeVisible();
21
22
  });
22
23
 
23
- test('Renders with the class pf-v5-c-panel', () => {
24
+ test(`Renders with the class ${styles.panel}`, () => {
24
25
  render(<Panel>Test</Panel>);
25
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel');
26
+ expect(screen.getByText('Test')).toHaveClass(styles.panel);
26
27
  });
27
28
 
28
- test('Renders with only the class pf-v5-c-panel by default', () => {
29
+ test(`Renders with only the class ${styles.panel} by default`, () => {
29
30
  render(<Panel>Test</Panel>);
30
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel', { exact: true });
31
+ expect(screen.getByText('Test')).toHaveClass(styles.panel, { exact: true });
31
32
  });
32
33
 
33
34
  test('Renders with custom class name when className prop is passed', () => {
@@ -35,19 +36,19 @@ test('Renders with custom class name when className prop is passed', () => {
35
36
  expect(screen.getByText('Test')).toHaveClass('test-class');
36
37
  });
37
38
 
38
- test('Renders with class name pf-m-raised when variant is raised', () => {
39
+ test(`Renders with class name ${styles.modifiers.raised} when variant is raised`, () => {
39
40
  render(<Panel variant="raised">Test</Panel>);
40
- expect(screen.getByText('Test')).toHaveClass('pf-m-raised');
41
+ expect(screen.getByText('Test')).toHaveClass(styles.modifiers.raised);
41
42
  });
42
43
 
43
- test('Renders with class name pf-m-bordered when variant is bordered', () => {
44
+ test(`Renders with class name ${styles.modifiers.bordered} when variant is bordered`, () => {
44
45
  render(<Panel variant="bordered">Test</Panel>);
45
- expect(screen.getByText('Test')).toHaveClass('pf-m-bordered');
46
+ expect(screen.getByText('Test')).toHaveClass(styles.modifiers.bordered);
46
47
  });
47
48
 
48
- test('Renders with class name pf-m-scrollable when isScrollable is true', () => {
49
+ test(`Renders with class name ${styles.modifiers.scrollable} when isScrollable is true`, () => {
49
50
  render(<Panel isScrollable>Test</Panel>);
50
- expect(screen.getByText('Test')).toHaveClass('pf-m-scrollable');
51
+ expect(screen.getByText('Test')).toHaveClass(styles.modifiers.scrollable);
51
52
  });
52
53
 
53
54
  test('Renders with ref', async () => {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { PanelFooter } from '../PanelFooter';
4
+ import styles from '@patternfly/react-styles/css/components/Panel/panel';
4
5
 
5
6
  test('Renders without children', () => {
6
7
  render(
@@ -16,14 +17,14 @@ test('Renders children', () => {
16
17
  expect(screen.getByText('Test')).toBeVisible();
17
18
  });
18
19
 
19
- test('Renders with the class pf-v5-c-panel__footer', () => {
20
+ test(`Renders with the class ${styles.panelFooter}`, () => {
20
21
  render(<PanelFooter>Test</PanelFooter>);
21
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__footer');
22
+ expect(screen.getByText('Test')).toHaveClass(styles.panelFooter);
22
23
  });
23
24
 
24
- test('Renders with only the class pf-v5-c-panel__footer by default', () => {
25
+ test(`Renders with only the class ${styles.panelFooter} by default`, () => {
25
26
  render(<PanelFooter>Test</PanelFooter>);
26
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__footer', { exact: true });
27
+ expect(screen.getByText('Test')).toHaveClass(styles.panelFooter, { exact: true });
27
28
  });
28
29
 
29
30
  test('Renders with custom class name when className prop is passed', () => {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { PanelHeader } from '../PanelHeader';
4
+ import styles from '@patternfly/react-styles/css/components/Panel/panel';
4
5
 
5
6
  test('Renders without children', () => {
6
7
  render(
@@ -16,14 +17,14 @@ test('Renders children', () => {
16
17
  expect(screen.getByText('Test')).toBeVisible();
17
18
  });
18
19
 
19
- test('Renders with the class pf-v5-c-panel__header', () => {
20
+ test(`Renders with the class ${styles.panelHeader}`, () => {
20
21
  render(<PanelHeader>Test</PanelHeader>);
21
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__header');
22
+ expect(screen.getByText('Test')).toHaveClass(styles.panelHeader);
22
23
  });
23
24
 
24
- test('Renders with only the class pf-v5-c-panel__header by default', () => {
25
+ test(`Renders with only the class ${styles.panelHeader} by default`, () => {
25
26
  render(<PanelHeader>Test</PanelHeader>);
26
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__header', { exact: true });
27
+ expect(screen.getByText('Test')).toHaveClass(styles.panelHeader, { exact: true });
27
28
  });
28
29
 
29
30
  test('Renders with custom class name when className prop is passed', () => {
@@ -1,6 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { PanelMain } from '../PanelMain';
4
+ import cssPanelMainMaxHeight from '@patternfly/react-tokens/dist/esm/c_panel__main_MaxHeight';
5
+ import styles from '@patternfly/react-styles/css/components/Panel/panel';
4
6
 
5
7
  test('Renders without children', () => {
6
8
  render(
@@ -16,14 +18,14 @@ test('Renders children', () => {
16
18
  expect(screen.getByText('Test')).toBeVisible();
17
19
  });
18
20
 
19
- test('Renders with the class pf-v5-c-panel__main', () => {
21
+ test(`Renders with the class ${styles.panelMain}`, () => {
20
22
  render(<PanelMain>Test</PanelMain>);
21
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__main');
23
+ expect(screen.getByText('Test')).toHaveClass(styles.panelMain);
22
24
  });
23
25
 
24
- test('Renders with only the class pf-v5-c-panel__main by default', () => {
26
+ test(`Renders with only the class ${styles.panelMain} by default`, () => {
25
27
  render(<PanelMain>Test</PanelMain>);
26
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__main', { exact: true });
28
+ expect(screen.getByText('Test')).toHaveClass(styles.panelMain, { exact: true });
27
29
  });
28
30
 
29
31
  test('Renders with custom class name when className prop is passed', () => {
@@ -34,7 +36,7 @@ test('Renders with custom class name when className prop is passed', () => {
34
36
  test('Renders with custom max height name when maxHeight prop is passed', () => {
35
37
  render(<PanelMain maxHeight="100px">Test</PanelMain>);
36
38
  const styles = getComputedStyle(screen.getByText('Test'));
37
- expect(styles.getPropertyValue('--pf-v5-c-panel__main--MaxHeight')).toBe('100px');
39
+ expect(styles.getPropertyValue(cssPanelMainMaxHeight.name)).toBe('100px');
38
40
  });
39
41
 
40
42
  test('Renders with the inherited element props spread to the component', () => {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { PanelMainBody } from '../PanelMainBody';
4
+ import styles from '@patternfly/react-styles/css/components/Panel/panel';
4
5
 
5
6
  test('Renders without children', () => {
6
7
  render(
@@ -16,14 +17,14 @@ test('Renders children', () => {
16
17
  expect(screen.getByText('Test')).toBeVisible();
17
18
  });
18
19
 
19
- test('Renders with the class pf-v5-c-panel__main-body', () => {
20
+ test(`Renders with the class ${styles.panelMainBody}`, () => {
20
21
  render(<PanelMainBody>Test</PanelMainBody>);
21
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__main-body');
22
+ expect(screen.getByText('Test')).toHaveClass(styles.panelMainBody);
22
23
  });
23
24
 
24
- test('Renders with only the class pf-v5-c-panel__main-body by default', () => {
25
+ test(`Renders with only the class ${styles.panelMainBody} by default`, () => {
25
26
  render(<PanelMainBody>Test</PanelMainBody>);
26
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-panel__main-body', { exact: true });
27
+ expect(screen.getByText('Test')).toHaveClass(styles.panelMainBody, { exact: true });
27
28
  });
28
29
 
29
30
  test('Renders with custom class name when className prop is passed', () => {
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { ProgressHelperText } from '../ProgressHelperText';
4
+ import styles from '@patternfly/react-styles/css/components/Progress/progress';
4
5
 
5
6
  test('Renders without children', () => {
6
7
  render(
@@ -17,10 +18,10 @@ test('Renders children', () => {
17
18
  expect(screen.getByText('Test')).toBeVisible();
18
19
  });
19
20
 
20
- test('Renders with class pf-v5-c-progress__helper-text on the div containing the helper text component', () => {
21
+ test(`Renders with class ${styles.progressHelperText} on the div containing the helper text component`, () => {
21
22
  render(<ProgressHelperText>Test</ProgressHelperText>);
22
23
 
23
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-progress__helper-text');
24
+ expect(screen.getByText('Test')).toHaveClass(styles.progressHelperText);
24
25
  });
25
26
 
26
27
  test('Renders with inherited element props spread to the component', () => {
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { ProgressStep, ProgressStepVariant } from '../ProgressStep';
4
4
  import { capitalize } from '../../../helpers';
5
+ import styles from '@patternfly/react-styles/css/components/ProgressStepper/progress-stepper';
5
6
 
6
7
  jest.mock('@patternfly/react-icons/dist/esm/icons/check-circle-icon', () => () => 'Success icon mock');
7
8
  jest.mock('@patternfly/react-icons/dist/esm/icons/resources-full-icon', () => () => 'Info icon mock');
@@ -23,9 +24,9 @@ test('Renders children', () => {
23
24
  expect(screen.getByText('Test')).toBeVisible();
24
25
  });
25
26
 
26
- test('Renders with class pf-v5-c-progress-stepper__step on the containing li element', () => {
27
+ test(`Renders with class ${styles.progressStepperStep} on the containing li element`, () => {
27
28
  render(<ProgressStep>Test</ProgressStep>);
28
- expect(screen.getByRole('listitem')).toHaveClass('pf-v5-c-progress-stepper__step');
29
+ expect(screen.getByRole('listitem')).toHaveClass(styles.progressStepperStep);
29
30
  });
30
31
 
31
32
  test('Renders with custom class name on the containing li element when className prop is provided', () => {
@@ -36,7 +37,7 @@ test('Renders with custom class name on the containing li element when className
36
37
  ['default', undefined].forEach((variant) => {
37
38
  test(`Renders with no additional classes when variant=${variant} on containing li element`, () => {
38
39
  render(<ProgressStep variant={`${variant as ProgressStepVariant}`}>Test</ProgressStep>);
39
- expect(screen.getByRole('listitem')).toHaveClass('pf-v5-c-progress-stepper__step', { exact: true });
40
+ expect(screen.getByRole('listitem')).toHaveClass(styles.progressStepperStep, { exact: true });
40
41
  });
41
42
  });
42
43
 
@@ -77,9 +78,9 @@ test('Renders the element passed via the icon prop', () => {
77
78
  expect(screen.getByText('Custom Icon')).toBeVisible();
78
79
  });
79
80
 
80
- test('Renders the icon element inside span element with class pf-v5-c-progress-stepper__step-icon', () => {
81
+ test(`Renders the icon element inside span element with class ${styles.progressStepperStepIcon}`, () => {
81
82
  render(<ProgressStep icon="Custom Icon">Test</ProgressStep>);
82
- expect(screen.getByText('Custom Icon')).toHaveClass('pf-v5-c-progress-stepper__step-icon');
83
+ expect(screen.getByText('Custom Icon')).toHaveClass(styles.progressStepperStepIcon);
83
84
  });
84
85
 
85
86
  test('Does not render with class pf-m-current by default on containing li element', () => {
@@ -112,14 +113,14 @@ test('Renders the element passed via the description prop', () => {
112
113
  expect(screen.getByRole('button', { name: 'Description' })).toBeVisible();
113
114
  });
114
115
 
115
- test('Renders the description element inside div element with class pf-v5-c-progress-stepper__step-description', () => {
116
+ test(`Renders the description element inside div element with class ${styles.progressStepperStepDescription}`, () => {
116
117
  render(<ProgressStep description="Description">Test</ProgressStep>);
117
- expect(screen.getByText('Description')).toHaveClass('pf-v5-c-progress-stepper__step-description');
118
+ expect(screen.getByText('Description')).toHaveClass(styles.progressStepperStepDescription);
118
119
  });
119
120
 
120
- test('Renders children inside class pf-v5-c-progress-stepper__step-title', () => {
121
+ test(`Renders children inside class ${styles.progressStepperStepTitle}`, () => {
121
122
  render(<ProgressStep>Test</ProgressStep>);
122
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-progress-stepper__step-title');
123
+ expect(screen.getByText('Test')).toHaveClass(styles.progressStepperStepTitle);
123
124
  });
124
125
 
125
126
  test('Renders Component element as div by default', () => {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { ProgressStepper } from '../ProgressStepper';
4
+ import styles from '@patternfly/react-styles/css/components/ProgressStepper/progress-stepper';
4
5
 
5
6
  test('Renders without children', () => {
6
7
  render(
@@ -16,14 +17,14 @@ test('Renders children', () => {
16
17
  expect(screen.getByRole('list')).toBeVisible();
17
18
  });
18
19
 
19
- test('Renders with only class name pf-v5-c-progress-stepper by default', () => {
20
+ test(`Renders with only class name ${styles.progressStepper} by default`, () => {
20
21
  render(<ProgressStepper>Test</ProgressStepper>);
21
- expect(screen.getByRole('list')).toHaveClass('pf-v5-c-progress-stepper', { exact: true });
22
+ expect(screen.getByRole('list')).toHaveClass(styles.progressStepper, { exact: true });
22
23
  });
23
24
 
24
- test('Renders with class name pf-v5-c-progress-stepper', () => {
25
+ test(`Renders with class name ${styles.progressStepper}`, () => {
25
26
  render(<ProgressStepper>Test</ProgressStepper>);
26
- expect(screen.getByRole('list')).toHaveClass('pf-v5-c-progress-stepper');
27
+ expect(screen.getByRole('list')).toHaveClass(styles.progressStepper);
27
28
  });
28
29
 
29
30
  test('Renders with custom class name when className prop is provided', () => {
@@ -13,6 +13,7 @@ import { AdvancedSearchMenu } from './AdvancedSearchMenu';
13
13
  import { TextInputGroup, TextInputGroupMain, TextInputGroupUtilities } from '../TextInputGroup';
14
14
  import { InputGroup, InputGroupItem } from '../InputGroup';
15
15
  import { Popper } from '../../helpers';
16
+ import textInputGroupStyles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group';
16
17
 
17
18
  /** Properties for adding search attributes to an advanced search input. These properties must
18
19
  * be passed in as an object within an array to the search input component's attribute properrty.
@@ -58,6 +59,9 @@ export interface SearchInputProps extends Omit<React.HTMLProps<HTMLDivElement>,
58
59
  appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
59
60
  /** An accessible label for the search input. */
60
61
  'aria-label'?: string;
62
+ /** Flag to indicate utilities should be displayed. By default if this prop is undefined or false, utilities will only be displayed when the search input has a value. */
63
+
64
+ areUtilitiesDisplayed?: boolean;
61
65
  /** Array of attribute values used for dynamically generated advanced search. */
62
66
  attributes?: string[] | SearchInputSearchAttribute[];
63
67
  /** Additional classes added to the search input. */
@@ -151,6 +155,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
151
155
  appendTo,
152
156
  zIndex = 9999,
153
157
  name,
158
+ areUtilitiesDisplayed,
154
159
  ...props
155
160
  }: SearchInputProps) => {
156
161
  const [isSearchMenuOpen, setIsSearchMenuOpen] = React.useState(false);
@@ -294,11 +299,11 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
294
299
  onChange={onChangeHandler}
295
300
  name={name}
296
301
  />
297
- {renderUtilities && (
302
+ {(renderUtilities || areUtilitiesDisplayed) && (
298
303
  <TextInputGroupUtilities>
299
304
  {resultsCount && <Badge isRead>{resultsCount}</Badge>}
300
305
  {!!onNextClick && !!onPreviousClick && (
301
- <div className="pf-v5-c-text-input-group__group">
306
+ <div className={textInputGroupStyles.textInputGroupGroup}>
302
307
  <Button
303
308
  variant={ButtonVariant.plain}
304
309
  aria-label={previousNavigationButtonAriaLabel}
@@ -7,6 +7,8 @@ import { SearchInput } from '../SearchInput';
7
7
  import { FormGroup } from '../../Form';
8
8
  import { Button } from '../../Button';
9
9
  import { ExternalLinkSquareAltIcon } from '@patternfly/react-icons';
10
+ import badgeStyles from '@patternfly/react-styles/css/components/Badge/badge';
11
+ import textInputGroupStyles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group';
10
12
 
11
13
  const props = {
12
14
  onChange: jest.fn(),
@@ -30,7 +32,7 @@ describe('SearchInput', () => {
30
32
 
31
33
  test('result count', () => {
32
34
  render(<SearchInput {...props} resultsCount={3} aria-label="simple text input" data-testid="test-id" />);
33
- expect(screen.getByTestId('test-id').querySelector('.pf-v5-c-badge')).toBeInTheDocument();
35
+ expect(screen.getByTestId('test-id').querySelector(`.${badgeStyles.badge}`)).toBeInTheDocument();
34
36
  });
35
37
 
36
38
  test('renders search input in strict mode', async () => {
@@ -64,8 +66,8 @@ describe('SearchInput', () => {
64
66
  render(<SearchInput {...props} resultsCount="3 / 7" aria-label="simple text input" data-testid="test-id" />);
65
67
 
66
68
  const input = screen.getByTestId('test-id');
67
- expect(input.querySelector('.pf-v5-c-text-input-group__group')).toBeInTheDocument();
68
- expect(input.querySelector('.pf-v5-c-badge')).toBeInTheDocument();
69
+ expect(input.querySelector(`.${textInputGroupStyles.textInputGroupGroup}`)).toBeInTheDocument();
70
+ expect(input.querySelector(`.${badgeStyles.badge}`)).toBeInTheDocument();
69
71
 
70
72
  await user.click(screen.getByRole('button', { name: 'Previous' }));
71
73
  expect(props.onPreviousClick).toHaveBeenCalled();
@@ -248,3 +250,11 @@ test('toggleAriaLabel is applied to the expandable toggle', () => {
248
250
 
249
251
  expect(screen.getByRole('button')).toHaveAccessibleName('Test label');
250
252
  });
253
+
254
+ test('Utilities are rendered when areUtilitiesDisplayed is set', () => {
255
+ render(
256
+ <SearchInput {...props} areUtilitiesDisplayed resetButtonLabel='test-util-display'/>
257
+ );
258
+ expect(screen.getByLabelText('test-util-display')).toBeVisible();
259
+ });
260
+
@@ -25,6 +25,8 @@ export interface SelectPopperProps {
25
25
  * appendTo={document.getElementById('target')}
26
26
  */
27
27
  appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
28
+ /** Flag to prevent the popper from overflowing its container and becoming partially obscured. */
29
+ preventOverflow?: boolean;
28
30
  }
29
31
 
30
32
  export interface SelectToggleProps {
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { Sidebar } from '../Sidebar';
4
+ import styles from '@patternfly/react-styles/css/components/Sidebar/sidebar';
4
5
 
5
6
  test('Renders without children', () => {
6
7
  render(
@@ -16,14 +17,14 @@ test('Renders children', () => {
16
17
  expect(screen.getByText('Test')).toBeVisible();
17
18
  });
18
19
 
19
- test('Renders with only class name pf-v5-c-sidebar by default', () => {
20
+ test(`Renders with only class name ${styles.sidebar} by default`, () => {
20
21
  render(<Sidebar>Test</Sidebar>);
21
- expect(screen.getByText('Test').parentElement).toHaveClass('pf-v5-c-sidebar', { exact: true });
22
+ expect(screen.getByText('Test').parentElement).toHaveClass(styles.sidebar, { exact: true });
22
23
  });
23
24
 
24
- test('Renders with class name pf-v5-c-sidebar', () => {
25
+ test(`Renders with class name ${styles.sidebar}`, () => {
25
26
  render(<Sidebar>Test</Sidebar>);
26
- expect(screen.getByText('Test').parentElement).toHaveClass('pf-v5-c-sidebar');
27
+ expect(screen.getByText('Test').parentElement).toHaveClass(styles.sidebar);
27
28
  });
28
29
 
29
30
  test('Renders with custom class name when className prop is provided', () => {
@@ -61,9 +62,9 @@ test('Renders with class name pf-m-gutter when hasGutter prop is passed', () =>
61
62
  expect(screen.getByText('Test').parentElement).toHaveClass('pf-m-gutter');
62
63
  });
63
64
 
64
- test('Renders with class name pf-m-sidebar__main by default for child component', () => {
65
+ test(`Renders with class name ${styles.sidebarMain} by default for child component`, () => {
65
66
  render(<Sidebar>Test</Sidebar>);
66
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-sidebar__main');
67
+ expect(screen.getByText('Test')).toHaveClass(styles.sidebarMain);
67
68
  });
68
69
 
69
70
  test('Renders with inherited element props spread to the component', () => {
@@ -1,20 +1,21 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { SidebarContent } from '../SidebarContent';
4
+ import styles from '@patternfly/react-styles/css/components/Sidebar/sidebar';
4
5
 
5
6
  test('Renders children', () => {
6
7
  render(<SidebarContent>Test</SidebarContent>);
7
8
  expect(screen.getByText('Test')).toBeVisible();
8
9
  });
9
10
 
10
- test('Renders with only class name pf-v5-c-sidebar__content by default', () => {
11
+ test(`Renders with only class name ${styles.sidebarContent} by default`, () => {
11
12
  render(<SidebarContent>Test</SidebarContent>);
12
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-sidebar__content', { exact: true });
13
+ expect(screen.getByText('Test')).toHaveClass(styles.sidebarContent, { exact: true });
13
14
  });
14
15
 
15
- test('Renders with class name pf-v5-c-sidebar__content', () => {
16
+ test(`Renders with class name ${styles.sidebarContent}`, () => {
16
17
  render(<SidebarContent>Test</SidebarContent>);
17
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-sidebar__content');
18
+ expect(screen.getByText('Test')).toHaveClass(styles.sidebarContent);
18
19
  });
19
20
 
20
21
  test('Renders with custom class name when className prop is provided', () => {
@@ -1,20 +1,21 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { SidebarPanel, SidebarPanelWidthType } from '../SidebarPanel';
4
+ import styles from '@patternfly/react-styles/css/components/Sidebar/sidebar';
4
5
 
5
6
  test('Renders children', () => {
6
7
  render(<SidebarPanel>Test</SidebarPanel>);
7
8
  expect(screen.getByText('Test')).toBeVisible();
8
9
  });
9
10
 
10
- test('Renders with with only class name pf-v5-c-sidebar__panel by default', () => {
11
+ test(`Renders with with only class name ${styles.sidebarPanel} by default`, () => {
11
12
  render(<SidebarPanel>Test</SidebarPanel>);
12
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-sidebar__panel', { exact: true });
13
+ expect(screen.getByText('Test')).toHaveClass(styles.sidebarPanel, { exact: true });
13
14
  });
14
15
 
15
- test('Renders with with class name pf-v5-c-sidebar__panel', () => {
16
+ test(`Renders with with class name ${styles.sidebarPanel}`, () => {
16
17
  render(<SidebarPanel>Test</SidebarPanel>);
17
- expect(screen.getByText('Test')).toHaveClass('pf-v5-c-sidebar__panel');
18
+ expect(screen.getByText('Test')).toHaveClass(styles.sidebarPanel);
18
19
  });
19
20
 
20
21
  test('Renders with custom class name when className prop is provided', () => {
@@ -1,6 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import styles from '@patternfly/react-styles/css/components/Skeleton/skeleton';
3
3
  import { css } from '@patternfly/react-styles';
4
+ import cssHeight from '@patternfly/react-tokens/dist/esm/c_skeleton_Height';
5
+ import cssWidth from '@patternfly/react-tokens/dist/esm/c_skeleton_Width';
4
6
 
5
7
  export interface SkeletonProps extends React.HTMLProps<HTMLDivElement> {
6
8
  /** Additional classes added to the Skeleton */
@@ -42,8 +44,8 @@ export const Skeleton: React.FunctionComponent<SkeletonProps> = ({
42
44
  )}
43
45
  {...((width || height) && {
44
46
  style: {
45
- '--pf-v5-c-skeleton--Width': width ? width : undefined,
46
- '--pf-v5-c-skeleton--Height': height ? height : undefined,
47
+ [cssWidth.name]: width ? width : undefined,
48
+ [cssHeight.name]: height ? height : undefined,
47
49
  ...props.style
48
50
  } as React.CSSProperties
49
51
  })}
@@ -5,6 +5,14 @@ cssPrefix: pf-v5-c-skeleton
5
5
  propComponents: ['Skeleton']
6
6
  ---
7
7
 
8
+ import global_FontSize_4xl from '@patternfly/react-tokens/dist/esm/global_FontSize_4xl';
9
+ import global_FontSize_3xl from '@patternfly/react-tokens/dist/esm/global_FontSize_3xl';
10
+ import global_FontSize_2xl from '@patternfly/react-tokens/dist/esm/global_FontSize_2xl';
11
+ import global_FontSize_xl from '@patternfly/react-tokens/dist/esm/global_FontSize_xl';
12
+ import global_FontSize_lg from '@patternfly/react-tokens/dist/esm/global_FontSize_lg';
13
+ import global_FontSize_md from '@patternfly/react-tokens/dist/esm/global_FontSize_md';
14
+ import global_FontSize_sm from '@patternfly/react-tokens/dist/esm/global_FontSize_sm';
15
+
8
16
  ## Examples
9
17
 
10
18
  ### Default
@@ -1,27 +1,35 @@
1
1
  import React from 'react';
2
2
  import { Skeleton } from '@patternfly/react-core';
3
+ /* eslint-disable camelcase */
4
+ import global_FontSize_4xl from '@patternfly/react-tokens/dist/esm/global_FontSize_4xl';
5
+ import global_FontSize_3xl from '@patternfly/react-tokens/dist/esm/global_FontSize_3xl';
6
+ import global_FontSize_2xl from '@patternfly/react-tokens/dist/esm/global_FontSize_2xl';
7
+ import global_FontSize_xl from '@patternfly/react-tokens/dist/esm/global_FontSize_xl';
8
+ import global_FontSize_lg from '@patternfly/react-tokens/dist/esm/global_FontSize_lg';
9
+ import global_FontSize_md from '@patternfly/react-tokens/dist/esm/global_FontSize_md';
10
+ import global_FontSize_sm from '@patternfly/react-tokens/dist/esm/global_FontSize_sm';
3
11
 
4
12
  export const SkeletonText: React.FunctionComponent = () => (
5
13
  <React.Fragment>
6
- --pf-v5-global--FontSize--4xl
14
+ {global_FontSize_4xl.name}
7
15
  <Skeleton fontSize="4xl" screenreaderText="Loading font size 4xl" />
8
16
  <br />
9
- --pf-v5-global--FontSize--3xl
17
+ {global_FontSize_3xl.name}
10
18
  <Skeleton fontSize="3xl" screenreaderText="Loading font size 3xl" />
11
19
  <br />
12
- --pf-v5-global--FontSize--2xl
20
+ {global_FontSize_2xl.name}
13
21
  <Skeleton fontSize="2xl" screenreaderText="Loading font size 2xl" />
14
22
  <br />
15
- --pf-v5-global--FontSize--xl
23
+ {global_FontSize_xl.name}
16
24
  <Skeleton fontSize="xl" screenreaderText="Loading font size xl" />
17
25
  <br />
18
- --pf-v5-global--FontSize--lg
26
+ {global_FontSize_lg.name}
19
27
  <Skeleton fontSize="lg" screenreaderText="Loading font size lg" />
20
28
  <br />
21
- --pf-v5-global--FontSize--md
29
+ {global_FontSize_md.name}
22
30
  <Skeleton fontSize="md" screenreaderText="Loading font size md" />
23
31
  <br />
24
- --pf-v5-global--FontSize--sm
32
+ {global_FontSize_sm.name}
25
33
  <Skeleton fontSize="sm" screenreaderText="Loading font size sm" />
26
34
  </React.Fragment>
27
35
  );
@@ -6,6 +6,9 @@ import { SliderStep } from './SliderStep';
6
6
  import { InputGroup, InputGroupText, InputGroupItem } from '../InputGroup';
7
7
  import { TextInput } from '../TextInput';
8
8
  import { Tooltip } from '../Tooltip';
9
+ import cssSliderValue from '@patternfly/react-tokens/dist/esm/c_slider_value';
10
+ import cssFormControlWidthChars from '@patternfly/react-tokens/dist/esm/c_slider__value_c_form_control_width_chars';
11
+ import { getLanguageDirection } from '../../helpers/util';
9
12
 
10
13
  /** Properties for creating custom steps in a slider. These properties should be passed in as
11
14
  * an object within an array to the slider component's customSteps property.
@@ -123,7 +126,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
123
126
  let isRTL: boolean;
124
127
 
125
128
  React.useEffect(() => {
126
- isRTL = window.getComputedStyle(sliderRailRef.current).getPropertyValue('direction') === 'rtl';
129
+ isRTL = getLanguageDirection(sliderRailRef.current) === 'rtl';
127
130
  });
128
131
 
129
132
  React.useEffect(() => {
@@ -139,9 +142,9 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
139
142
 
140
143
  // calculate style value percentage
141
144
  const stylePercent = ((localValue - min) * 100) / (max - min);
142
- const style = { '--pf-v5-c-slider--value': `${stylePercent}%` } as React.CSSProperties;
145
+ const style = { [cssSliderValue.name]: `${stylePercent}%` } as React.CSSProperties;
143
146
  const widthChars = React.useMemo(() => localInputValue.toString().length, [localInputValue]);
144
- const inputStyle = { '--pf-v5-c-slider__value--c-form-control--width-chars': widthChars } as React.CSSProperties;
147
+ const inputStyle = { [cssFormControlWidthChars.name]: widthChars } as React.CSSProperties;
145
148
 
146
149
  const onChangeHandler = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
147
150
  setLocalInputValue(Number(value));
@@ -221,7 +224,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
221
224
  const onSliderRailClick = (e: any) => {
222
225
  handleThumbMove(e);
223
226
  if (snapValue && !areCustomStepsContinuous) {
224
- thumbRef.current.style.setProperty('--pf-v5-c-slider--value', `${snapValue}%`);
227
+ thumbRef.current.style.setProperty(cssSliderValue.name, `${snapValue}%`);
225
228
  setValue(snapValue);
226
229
  if (onChange) {
227
230
  onChange(e, snapValue);
@@ -258,7 +261,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
258
261
 
259
262
  const newPercentage = getPercentage(newPosition, end);
260
263
 
261
- thumbRef.current.style.setProperty('--pf-v5-c-slider--value', `${newPercentage}%`);
264
+ thumbRef.current.style.setProperty(cssSliderValue.name, `${newPercentage}%`);
262
265
  // convert percentage to value
263
266
  const newValue = Math.round(((newPercentage * (max - min)) / 100 + min) * 100) / 100;
264
267
  setValue(newValue);
@@ -266,7 +269,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
266
269
  if (!customSteps) {
267
270
  // snap to new value if not custom steps
268
271
  snapValue = Math.round((Math.round((newValue - min) / step) * step + min) * 100) / 100;
269
- thumbRef.current.style.setProperty('--pf-v5-c-slider--value', `${snapValue}%`);
272
+ thumbRef.current.style.setProperty(cssSliderValue.name, `${snapValue}%`);
270
273
  setValue(snapValue);
271
274
  }
272
275
 
@@ -354,7 +357,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
354
357
  }
355
358
 
356
359
  if (newValue !== localValue) {
357
- thumbRef.current.style.setProperty('--pf-v5-c-slider--value', `${newValue}%`);
360
+ thumbRef.current.style.setProperty(cssSliderValue.name, `${newValue}%`);
358
361
  setValue(newValue);
359
362
  if (onChange) {
360
363
  onChange(e, newValue);
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import styles from '@patternfly/react-styles/css/components/Spinner/spinner';
3
3
  import { css } from '@patternfly/react-styles';
4
+ import cssDiameter from '@patternfly/react-tokens/dist/esm/c_spinner_diameter';
4
5
 
5
6
  export enum spinnerSize {
6
7
  sm = 'sm',
@@ -42,7 +43,7 @@ export const Spinner: React.FunctionComponent<SpinnerProps> = ({
42
43
  role="progressbar"
43
44
  aria-valuetext={ariaValueText}
44
45
  viewBox="0 0 100 100"
45
- {...(diameter && { style: { ['--pf-v5-c-spinner--diameter']: diameter } as React.CSSProperties })}
46
+ {...(diameter && { style: { [cssDiameter.name]: diameter } as React.CSSProperties })}
46
47
  {...(ariaLabel && { 'aria-label': ariaLabel })}
47
48
  {...(ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy })}
48
49
  {...(!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' })}