@patternfly/react-core 5.2.0-prerelease.9 → 6.0.0-alpha.2

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 (405) hide show
  1. package/CHANGELOG.md +129 -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/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  120. package/dist/esm/components/CalendarMonth/CalendarMonth.js +15 -39
  121. package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
  122. package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
  123. package/dist/esm/components/Chip/Chip.js +2 -2
  124. package/dist/esm/components/Chip/Chip.js.map +1 -1
  125. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
  126. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  127. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
  128. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
  129. package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
  130. package/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js +1 -1
  131. package/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js.map +1 -1
  132. package/dist/esm/components/Drawer/DrawerPanelContent.js +4 -4
  133. package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
  134. package/dist/esm/components/Dropdown/Dropdown.d.ts +2 -0
  135. package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
  136. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  137. package/dist/esm/components/ExpandableSection/ExpandableSection.js +1 -1
  138. package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
  139. package/dist/esm/components/InputGroup/InputGroup.d.ts.map +1 -1
  140. package/dist/esm/components/InputGroup/InputGroup.js +1 -51
  141. package/dist/esm/components/InputGroup/InputGroup.js.map +1 -1
  142. package/dist/esm/components/Masthead/Masthead.d.ts +0 -2
  143. package/dist/esm/components/Masthead/Masthead.d.ts.map +1 -1
  144. package/dist/esm/components/Masthead/Masthead.js +3 -3
  145. package/dist/esm/components/Masthead/Masthead.js.map +1 -1
  146. package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
  147. package/dist/esm/components/Menu/Menu.js +2 -1
  148. package/dist/esm/components/Menu/Menu.js.map +1 -1
  149. package/dist/esm/components/Menu/MenuContainer.d.ts +2 -0
  150. package/dist/esm/components/Menu/MenuContainer.d.ts.map +1 -1
  151. package/dist/esm/components/Menu/MenuContainer.js.map +1 -1
  152. package/dist/esm/components/Nav/NavExpandable.d.ts +3 -3
  153. package/dist/esm/components/Nav/NavExpandable.d.ts.map +1 -1
  154. package/dist/esm/components/Nav/NavExpandable.js +2 -2
  155. package/dist/esm/components/Nav/NavExpandable.js.map +1 -1
  156. package/dist/esm/components/Nav/NavItem.d.ts +2 -0
  157. package/dist/esm/components/Nav/NavItem.d.ts.map +1 -1
  158. package/dist/esm/components/Nav/NavItem.js +2 -2
  159. package/dist/esm/components/Nav/NavItem.js.map +1 -1
  160. package/dist/esm/components/Nav/NavList.js +3 -3
  161. package/dist/esm/components/Nav/NavList.js.map +1 -1
  162. package/dist/esm/components/NotificationBadge/NotificationBadge.js +1 -1
  163. package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
  164. package/dist/esm/components/Page/PageSection.d.ts +2 -5
  165. package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
  166. package/dist/esm/components/Page/PageSection.js +1 -7
  167. package/dist/esm/components/Page/PageSection.js.map +1 -1
  168. package/dist/esm/components/Page/PageSidebar.d.ts +0 -2
  169. package/dist/esm/components/Page/PageSidebar.d.ts.map +1 -1
  170. package/dist/esm/components/Page/PageSidebar.js +2 -2
  171. package/dist/esm/components/Page/PageSidebar.js.map +1 -1
  172. package/dist/esm/components/SearchInput/SearchInput.d.ts +2 -0
  173. package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
  174. package/dist/esm/components/SearchInput/SearchInput.js +2 -2
  175. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  176. package/dist/esm/components/Select/Select.d.ts +2 -0
  177. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  178. package/dist/esm/components/Select/Select.js.map +1 -1
  179. package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
  180. package/dist/esm/components/Slider/Slider.js +2 -1
  181. package/dist/esm/components/Slider/Slider.js.map +1 -1
  182. package/dist/esm/components/Tabs/Tabs.js +3 -3
  183. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  184. package/dist/esm/demos/DashboardWrapper.js +1 -1
  185. package/dist/esm/demos/DashboardWrapper.js.map +1 -1
  186. package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -2
  187. package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +1 -1
  188. package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js +2 -2
  189. package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +1 -1
  190. package/dist/esm/helpers/Popper/Popper.d.ts +2 -1
  191. package/dist/esm/helpers/Popper/Popper.d.ts.map +1 -1
  192. package/dist/esm/helpers/Popper/Popper.js +7 -16
  193. package/dist/esm/helpers/Popper/Popper.js.map +1 -1
  194. package/dist/esm/helpers/datetimeUtils.d.ts +1 -1
  195. package/dist/esm/helpers/datetimeUtils.d.ts.map +1 -1
  196. package/dist/esm/helpers/datetimeUtils.js.map +1 -1
  197. package/dist/esm/helpers/util.d.ts +9 -0
  198. package/dist/esm/helpers/util.d.ts.map +1 -1
  199. package/dist/esm/helpers/util.js +18 -0
  200. package/dist/esm/helpers/util.js.map +1 -1
  201. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  202. package/dist/js/components/CalendarMonth/CalendarMonth.js +15 -39
  203. package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
  204. package/dist/js/components/Chip/Chip.d.ts.map +1 -1
  205. package/dist/js/components/Chip/Chip.js +2 -2
  206. package/dist/js/components/Chip/Chip.js.map +1 -1
  207. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +1 -1
  208. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  209. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.d.ts.map +1 -1
  210. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
  211. package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
  212. package/dist/js/components/ClipboardCopy/ClipboardCopyToggle.js +1 -1
  213. package/dist/js/components/ClipboardCopy/ClipboardCopyToggle.js.map +1 -1
  214. package/dist/js/components/Drawer/DrawerPanelContent.js +3 -3
  215. package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
  216. package/dist/js/components/Dropdown/Dropdown.d.ts +2 -0
  217. package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
  218. package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
  219. package/dist/js/components/ExpandableSection/ExpandableSection.js +1 -1
  220. package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
  221. package/dist/js/components/InputGroup/InputGroup.d.ts.map +1 -1
  222. package/dist/js/components/InputGroup/InputGroup.js +1 -51
  223. package/dist/js/components/InputGroup/InputGroup.js.map +1 -1
  224. package/dist/js/components/Masthead/Masthead.d.ts +0 -2
  225. package/dist/js/components/Masthead/Masthead.d.ts.map +1 -1
  226. package/dist/js/components/Masthead/Masthead.js +3 -3
  227. package/dist/js/components/Masthead/Masthead.js.map +1 -1
  228. package/dist/js/components/Menu/Menu.d.ts.map +1 -1
  229. package/dist/js/components/Menu/Menu.js +2 -1
  230. package/dist/js/components/Menu/Menu.js.map +1 -1
  231. package/dist/js/components/Menu/MenuContainer.d.ts +2 -0
  232. package/dist/js/components/Menu/MenuContainer.d.ts.map +1 -1
  233. package/dist/js/components/Menu/MenuContainer.js.map +1 -1
  234. package/dist/js/components/Nav/NavExpandable.d.ts +3 -3
  235. package/dist/js/components/Nav/NavExpandable.d.ts.map +1 -1
  236. package/dist/js/components/Nav/NavExpandable.js +2 -2
  237. package/dist/js/components/Nav/NavExpandable.js.map +1 -1
  238. package/dist/js/components/Nav/NavItem.d.ts +2 -0
  239. package/dist/js/components/Nav/NavItem.d.ts.map +1 -1
  240. package/dist/js/components/Nav/NavItem.js +2 -2
  241. package/dist/js/components/Nav/NavItem.js.map +1 -1
  242. package/dist/js/components/Nav/NavList.js +2 -2
  243. package/dist/js/components/Nav/NavList.js.map +1 -1
  244. package/dist/js/components/NotificationBadge/NotificationBadge.js +1 -1
  245. package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
  246. package/dist/js/components/Page/PageSection.d.ts +2 -5
  247. package/dist/js/components/Page/PageSection.d.ts.map +1 -1
  248. package/dist/js/components/Page/PageSection.js +1 -7
  249. package/dist/js/components/Page/PageSection.js.map +1 -1
  250. package/dist/js/components/Page/PageSidebar.d.ts +0 -2
  251. package/dist/js/components/Page/PageSidebar.d.ts.map +1 -1
  252. package/dist/js/components/Page/PageSidebar.js +2 -2
  253. package/dist/js/components/Page/PageSidebar.js.map +1 -1
  254. package/dist/js/components/SearchInput/SearchInput.d.ts +2 -0
  255. package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
  256. package/dist/js/components/SearchInput/SearchInput.js +2 -2
  257. package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
  258. package/dist/js/components/Select/Select.d.ts +2 -0
  259. package/dist/js/components/Select/Select.d.ts.map +1 -1
  260. package/dist/js/components/Select/Select.js.map +1 -1
  261. package/dist/js/components/Slider/Slider.d.ts.map +1 -1
  262. package/dist/js/components/Slider/Slider.js +2 -1
  263. package/dist/js/components/Slider/Slider.js.map +1 -1
  264. package/dist/js/components/Tabs/Tabs.js +2 -2
  265. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  266. package/dist/js/demos/DashboardWrapper.js +1 -1
  267. package/dist/js/demos/DashboardWrapper.js.map +1 -1
  268. package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -2
  269. package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +1 -1
  270. package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js +2 -2
  271. package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +1 -1
  272. package/dist/js/helpers/Popper/Popper.d.ts +2 -1
  273. package/dist/js/helpers/Popper/Popper.d.ts.map +1 -1
  274. package/dist/js/helpers/Popper/Popper.js +9 -19
  275. package/dist/js/helpers/Popper/Popper.js.map +1 -1
  276. package/dist/js/helpers/datetimeUtils.d.ts +1 -1
  277. package/dist/js/helpers/datetimeUtils.d.ts.map +1 -1
  278. package/dist/js/helpers/datetimeUtils.js.map +1 -1
  279. package/dist/js/helpers/util.d.ts +9 -0
  280. package/dist/js/helpers/util.d.ts.map +1 -1
  281. package/dist/js/helpers/util.js +20 -1
  282. package/dist/js/helpers/util.js.map +1 -1
  283. package/dist/styles/assets/images/logo__pf--reverse-on-md.svg +1 -1
  284. package/dist/styles/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
  285. package/dist/styles/base-no-reset.css +849 -0
  286. package/dist/styles/base.css +861 -13
  287. package/dist/umd/react-core.min.js +1 -1
  288. package/helpers/package.json +1 -1
  289. package/layouts/package.json +1 -1
  290. package/next/package.json +1 -1
  291. package/package.json +8 -7
  292. package/src/components/CalendarMonth/CalendarMonth.tsx +18 -43
  293. package/src/components/Checkbox/__tests__/Checkbox.test.tsx +223 -69
  294. package/src/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +3 -198
  295. package/src/components/Chip/Chip.tsx +2 -1
  296. package/src/components/Chip/__tests__/Chip.test.tsx +249 -32
  297. package/src/components/Chip/__tests__/ChipGroup.test.tsx +288 -61
  298. package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +9 -209
  299. package/src/components/Chip/__tests__/__snapshots__/ChipGroup.test.tsx.snap +2 -313
  300. package/src/components/ClipboardCopy/ClipboardCopy.tsx +1 -1
  301. package/src/components/ClipboardCopy/ClipboardCopyButton.tsx +2 -0
  302. package/src/components/ClipboardCopy/ClipboardCopyToggle.tsx +1 -1
  303. package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +344 -0
  304. package/src/components/ClipboardCopy/__tests__/ClipboardCopyAction.test.tsx +37 -0
  305. package/src/components/ClipboardCopy/__tests__/ClipboardCopyButton.test.tsx +136 -19
  306. package/src/components/ClipboardCopy/__tests__/ClipboardCopyExpanded.test.tsx +71 -14
  307. package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +78 -34
  308. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +57 -0
  309. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyAction.test.tsx.snap +11 -0
  310. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +50 -24
  311. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +3 -23
  312. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +5 -6
  313. package/src/components/Drawer/DrawerPanelContent.tsx +4 -4
  314. package/src/components/Dropdown/Dropdown.tsx +2 -0
  315. package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
  316. package/src/components/InputGroup/InputGroup.tsx +1 -53
  317. package/src/components/InputGroup/__tests__/InputGroup.test.tsx +7 -44
  318. package/src/components/Masthead/Masthead.tsx +0 -5
  319. package/src/components/Masthead/examples/Masthead.md +0 -44
  320. package/src/components/Menu/Menu.tsx +2 -1
  321. package/src/components/Menu/MenuContainer.tsx +2 -0
  322. package/src/components/Nav/NavExpandable.tsx +5 -5
  323. package/src/components/Nav/NavItem.tsx +4 -1
  324. package/src/components/Nav/NavList.tsx +3 -3
  325. package/src/components/Nav/examples/Nav.md +8 -0
  326. package/src/components/Nav/examples/NavExpandableThirdLevel.tsx +1 -1
  327. package/src/components/Nav/examples/NavLinkText.tsx +109 -0
  328. package/src/components/Nav/examples/nav.css +1 -0
  329. package/src/components/NotificationBadge/NotificationBadge.tsx +1 -1
  330. package/src/components/NumberInput/__tests__/NumberInput.test.tsx +0 -1
  331. package/src/components/Page/PageSection.tsx +3 -9
  332. package/src/components/Page/PageSidebar.tsx +0 -4
  333. package/src/components/Page/__tests__/Generated/PageSidebar.test.tsx +1 -1
  334. package/src/components/Page/__tests__/Page.test.tsx +1 -40
  335. package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +0 -195
  336. package/src/components/Page/examples/PageGroupSection.tsx +3 -4
  337. package/src/components/Page/examples/PageHorizontalNav.tsx +3 -4
  338. package/src/components/Page/examples/PageMainSectionPadding.tsx +2 -7
  339. package/src/components/Page/examples/PageMultipleSidebarBody.tsx +3 -4
  340. package/src/components/Page/examples/PageTertiaryNav.tsx +3 -4
  341. package/src/components/Page/examples/PageUncontrolledNav.tsx +3 -4
  342. package/src/components/Page/examples/PageVerticalNav.tsx +3 -4
  343. package/src/components/SearchInput/SearchInput.tsx +5 -1
  344. package/src/components/SearchInput/__tests__/SearchInput.test.tsx +8 -0
  345. package/src/components/Select/Select.tsx +2 -0
  346. package/src/components/Slider/Slider.tsx +2 -1
  347. package/src/components/Tabs/Tabs.tsx +3 -3
  348. package/src/demos/Banner.md +2 -4
  349. package/src/demos/CardView/examples/CardView.tsx +2 -8
  350. package/src/demos/DashboardWrapper.tsx +1 -1
  351. package/src/demos/JumpLinks.md +1 -1
  352. package/src/demos/Nav.md +10 -1673
  353. package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +2 -3
  354. package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +2 -3
  355. package/src/demos/PrimaryDetail.md +4 -7
  356. package/src/demos/Tabs.md +6 -8
  357. package/src/demos/Wizard/WizardDemo.md +6 -761
  358. package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +4 -5
  359. package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +1 -2
  360. package/src/demos/examples/DashboardWrapper.js +127 -0
  361. package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -4
  362. package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +1 -2
  363. package/src/demos/examples/Nav/NavDefault.tsx +97 -0
  364. package/src/demos/examples/Nav/NavDrilldown.tsx +2 -0
  365. package/src/demos/examples/Nav/NavExpandable.tsx +123 -0
  366. package/src/demos/examples/Nav/NavFlyout.tsx +277 -0
  367. package/src/demos/examples/Nav/NavGrouped.tsx +98 -0
  368. package/src/demos/examples/Nav/NavHorizontal.tsx +236 -0
  369. package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +296 -0
  370. package/src/demos/examples/Nav/NavManual.tsx +272 -0
  371. package/src/demos/examples/Nav/NavWithSubnav.tsx +141 -0
  372. package/src/demos/examples/Nav/deprecated/NavLight.tsx +95 -0
  373. package/src/demos/examples/Nav/deprecated/NavTertiary.tsx +91 -0
  374. package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +1 -2
  375. package/src/demos/examples/Page/PageStickySectionGroup.tsx +1 -2
  376. package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +1 -2
  377. package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +1 -2
  378. package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +2 -3
  379. package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +2 -3
  380. package/src/demos/examples/Tabs/ModalTabs.tsx +1 -2
  381. package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +2 -2
  382. package/src/demos/examples/Tabs/TabsAndTable.tsx +2 -3
  383. package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +1 -2
  384. package/src/demos/examples/Wizard/InModal.tsx +75 -0
  385. package/src/demos/examples/Wizard/InModalWithDrawer.tsx +115 -0
  386. package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +122 -0
  387. package/src/demos/examples/Wizard/InPage.tsx +35 -0
  388. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +195 -0
  389. package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +200 -0
  390. package/src/deprecated/components/PageHeader/PageHeaderToolsItem.tsx +0 -4
  391. package/src/deprecated/components/PageHeader/examples/PageVerticalNavUsingPageHeaderComponent.tsx +4 -4
  392. package/src/deprecated/components/PageHeader/tests/PageHeaderToolsItem.test.tsx +1 -3
  393. package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderToolsItem.test.tsx.snap +1 -1
  394. package/src/helpers/Popper/Popper.tsx +10 -19
  395. package/src/helpers/__mocks__/util.ts +2 -0
  396. package/src/helpers/datetimeUtils.ts +1 -1
  397. package/src/helpers/util.ts +22 -0
  398. package/dist/styles/assets/images/pf-c-brand__logo-on-lg-white.svg +0 -32
  399. package/dist/styles/assets/images/pf-c-brand__logo-on-md-white.svg +0 -42
  400. package/dist/styles/assets/images/pf-c-brand__logo-on-sm-white.svg +0 -17
  401. package/dist/styles/assets/images/pf-c-brand__logo-on-xl-white.svg +0 -39
  402. package/dist/styles/assets/images/pf_logo_white.hbs +0 -35
  403. package/dist/styles/assets/images/pf_logo_white.svg +0 -38
  404. package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopy.test.tsx +0 -40
  405. package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +0 -55
@@ -41,21 +41,6 @@ exports[`Page Check dark page against snapshot 1`] = `
41
41
  >
42
42
  Section with default background
43
43
  </section>
44
- <section
45
- class="pf-v5-c-page__main-section pf-m-light"
46
- >
47
- Section with light background
48
- </section>
49
- <section
50
- class="pf-v5-c-page__main-section pf-m-dark-200"
51
- >
52
- Section with dark background
53
- </section>
54
- <section
55
- class="pf-v5-c-page__main-section pf-m-dark-100"
56
- >
57
- Section with darker background
58
- </section>
59
44
  </main>
60
45
  </div>
61
46
  </DocumentFragment>
@@ -101,21 +86,6 @@ exports[`Page Check page horizontal layout example against snapshot 1`] = `
101
86
  >
102
87
  Section with default background
103
88
  </section>
104
- <section
105
- class="pf-v5-c-page__main-section pf-m-light"
106
- >
107
- Section with light background
108
- </section>
109
- <section
110
- class="pf-v5-c-page__main-section pf-m-dark-200"
111
- >
112
- Section with dark background
113
- </section>
114
- <section
115
- class="pf-v5-c-page__main-section pf-m-dark-100"
116
- >
117
- Section with darker background
118
- </section>
119
89
  </main>
120
90
  </div>
121
91
  </DocumentFragment>
@@ -265,21 +235,6 @@ exports[`Page Check page to verify breadcrumb is created - PageBreadcrumb syntax
265
235
  >
266
236
  Section with default background
267
237
  </section>
268
- <section
269
- class="pf-v5-c-page__main-section pf-m-light"
270
- >
271
- Section with light background
272
- </section>
273
- <section
274
- class="pf-v5-c-page__main-section pf-m-dark-200"
275
- >
276
- Section with dark background
277
- </section>
278
- <section
279
- class="pf-v5-c-page__main-section pf-m-dark-100"
280
- >
281
- Section with darker background
282
- </section>
283
238
  </main>
284
239
  </div>
285
240
  </DocumentFragment>
@@ -429,21 +384,6 @@ exports[`Page Check page to verify breadcrumb is created 1`] = `
429
384
  >
430
385
  Section with default background
431
386
  </section>
432
- <section
433
- class="pf-v5-c-page__main-section pf-m-light"
434
- >
435
- Section with light background
436
- </section>
437
- <section
438
- class="pf-v5-c-page__main-section pf-m-dark-200"
439
- >
440
- Section with dark background
441
- </section>
442
- <section
443
- class="pf-v5-c-page__main-section pf-m-dark-100"
444
- >
445
- Section with darker background
446
- </section>
447
387
  </main>
448
388
  </div>
449
389
  </DocumentFragment>
@@ -713,21 +653,6 @@ exports[`Page Check page to verify grouped nav and breadcrumb - new components s
713
653
  >
714
654
  Section with default background
715
655
  </section>
716
- <section
717
- class="pf-v5-c-page__main-section pf-m-light"
718
- >
719
- Section with light background
720
- </section>
721
- <section
722
- class="pf-v5-c-page__main-section pf-m-dark-200"
723
- >
724
- Section with dark background
725
- </section>
726
- <section
727
- class="pf-v5-c-page__main-section pf-m-dark-100"
728
- >
729
- Section with darker background
730
- </section>
731
656
  </main>
732
657
  </div>
733
658
  </DocumentFragment>
@@ -1004,21 +929,6 @@ exports[`Page Check page to verify grouped nav and breadcrumb - old / props synt
1004
929
  >
1005
930
  Section with default background
1006
931
  </section>
1007
- <section
1008
- class="pf-v5-c-page__main-section pf-m-light"
1009
- >
1010
- Section with light background
1011
- </section>
1012
- <section
1013
- class="pf-v5-c-page__main-section pf-m-dark-200"
1014
- >
1015
- Section with dark background
1016
- </section>
1017
- <section
1018
- class="pf-v5-c-page__main-section pf-m-dark-100"
1019
- >
1020
- Section with darker background
1021
- </section>
1022
932
  </main>
1023
933
  </div>
1024
934
  </DocumentFragment>
@@ -1180,21 +1090,6 @@ exports[`Page Check page to verify nav is created - PageNavigation syntax 1`] =
1180
1090
  >
1181
1091
  Section with default background
1182
1092
  </section>
1183
- <section
1184
- class="pf-v5-c-page__main-section pf-m-light"
1185
- >
1186
- Section with light background
1187
- </section>
1188
- <section
1189
- class="pf-v5-c-page__main-section pf-m-dark-200"
1190
- >
1191
- Section with dark background
1192
- </section>
1193
- <section
1194
- class="pf-v5-c-page__main-section pf-m-dark-100"
1195
- >
1196
- Section with darker background
1197
- </section>
1198
1093
  </main>
1199
1094
  </div>
1200
1095
  </DocumentFragment>
@@ -1360,21 +1255,6 @@ exports[`Page Check page to verify skip to content points to main content region
1360
1255
  >
1361
1256
  Section with default background
1362
1257
  </section>
1363
- <section
1364
- class="pf-v5-c-page__main-section pf-m-light"
1365
- >
1366
- Section with light background
1367
- </section>
1368
- <section
1369
- class="pf-v5-c-page__main-section pf-m-dark-200"
1370
- >
1371
- Section with dark background
1372
- </section>
1373
- <section
1374
- class="pf-v5-c-page__main-section pf-m-dark-100"
1375
- >
1376
- Section with darker background
1377
- </section>
1378
1258
  </main>
1379
1259
  </div>
1380
1260
  </DocumentFragment>
@@ -1421,21 +1301,6 @@ exports[`Page Check page vertical layout example against snapshot 1`] = `
1421
1301
  >
1422
1302
  Section with default background
1423
1303
  </section>
1424
- <section
1425
- class="pf-v5-c-page__main-section pf-m-light"
1426
- >
1427
- Section with light background
1428
- </section>
1429
- <section
1430
- class="pf-v5-c-page__main-section pf-m-dark-200"
1431
- >
1432
- Section with dark background
1433
- </section>
1434
- <section
1435
- class="pf-v5-c-page__main-section pf-m-dark-100"
1436
- >
1437
- Section with darker background
1438
- </section>
1439
1304
  </main>
1440
1305
  </div>
1441
1306
  </DocumentFragment>
@@ -1585,21 +1450,6 @@ exports[`Page Sticky bottom breadcrumb on all height breakpoints - PageBreadcrum
1585
1450
  >
1586
1451
  Section with default background
1587
1452
  </section>
1588
- <section
1589
- class="pf-v5-c-page__main-section pf-m-light"
1590
- >
1591
- Section with light background
1592
- </section>
1593
- <section
1594
- class="pf-v5-c-page__main-section pf-m-dark-200"
1595
- >
1596
- Section with dark background
1597
- </section>
1598
- <section
1599
- class="pf-v5-c-page__main-section pf-m-dark-100"
1600
- >
1601
- Section with darker background
1602
- </section>
1603
1453
  </main>
1604
1454
  </div>
1605
1455
  </DocumentFragment>
@@ -1749,21 +1599,6 @@ exports[`Page Verify sticky bottom breadcrumb on all height breakpoints 1`] = `
1749
1599
  >
1750
1600
  Section with default background
1751
1601
  </section>
1752
- <section
1753
- class="pf-v5-c-page__main-section pf-m-light"
1754
- >
1755
- Section with light background
1756
- </section>
1757
- <section
1758
- class="pf-v5-c-page__main-section pf-m-dark-200"
1759
- >
1760
- Section with dark background
1761
- </section>
1762
- <section
1763
- class="pf-v5-c-page__main-section pf-m-dark-100"
1764
- >
1765
- Section with darker background
1766
- </section>
1767
1602
  </main>
1768
1603
  </div>
1769
1604
  </DocumentFragment>
@@ -1913,21 +1748,6 @@ exports[`Page Verify sticky top breadcrumb on all height breakpoints - PageBread
1913
1748
  >
1914
1749
  Section with default background
1915
1750
  </section>
1916
- <section
1917
- class="pf-v5-c-page__main-section pf-m-light"
1918
- >
1919
- Section with light background
1920
- </section>
1921
- <section
1922
- class="pf-v5-c-page__main-section pf-m-dark-200"
1923
- >
1924
- Section with dark background
1925
- </section>
1926
- <section
1927
- class="pf-v5-c-page__main-section pf-m-dark-100"
1928
- >
1929
- Section with darker background
1930
- </section>
1931
1751
  </main>
1932
1752
  </div>
1933
1753
  </DocumentFragment>
@@ -2077,21 +1897,6 @@ exports[`Page Verify sticky top breadcrumb on all height breakpoints 1`] = `
2077
1897
  >
2078
1898
  Section with default background
2079
1899
  </section>
2080
- <section
2081
- class="pf-v5-c-page__main-section pf-m-light"
2082
- >
2083
- Section with light background
2084
- </section>
2085
- <section
2086
- class="pf-v5-c-page__main-section pf-m-dark-200"
2087
- >
2088
- Section with dark background
2089
- </section>
2090
- <section
2091
- class="pf-v5-c-page__main-section pf-m-dark-100"
2092
- >
2093
- Section with darker background
2094
- </section>
2095
1900
  </main>
2096
1901
  </div>
2097
1902
  </DocumentFragment>
@@ -12,7 +12,6 @@ import {
12
12
  PageGroup,
13
13
  PageBreadcrumb,
14
14
  PageNavigation,
15
- PageSectionVariants,
16
15
  PageToggleButton,
17
16
  Breadcrumb,
18
17
  BreadcrumbItem,
@@ -102,10 +101,10 @@ export const PageGroupSection: React.FunctionComponent = () => {
102
101
  </BreadcrumbItem>
103
102
  </Breadcrumb>
104
103
  </PageBreadcrumb>
105
- <PageSection variant={PageSectionVariants.light}>Grouped section</PageSection>
104
+ <PageSection>Grouped section</PageSection>
106
105
  </PageGroup>
107
- <PageSection variant={PageSectionVariants.dark}>Section 1</PageSection>
108
- <PageSection variant={PageSectionVariants.dark}>Section 2</PageSection>
106
+ <PageSection>Section 1</PageSection>
107
+ <PageSection>Section 2</PageSection>
109
108
  </Page>
110
109
  );
111
110
  };
@@ -6,7 +6,6 @@ import {
6
6
  MastheadBrand,
7
7
  MastheadContent,
8
8
  PageSection,
9
- PageSectionVariants,
10
9
  Toolbar,
11
10
  ToolbarContent,
12
11
  ToolbarItem
@@ -35,9 +34,9 @@ export const PageHorizontalNav: React.FunctionComponent = () => {
35
34
 
36
35
  return (
37
36
  <Page header={header}>
38
- <PageSection variant={PageSectionVariants.darker}>Section with darker background</PageSection>
39
- <PageSection variant={PageSectionVariants.dark}>Section with dark background</PageSection>
40
- <PageSection variant={PageSectionVariants.light}>Section with light background</PageSection>
37
+ <PageSection>Section 1</PageSection>
38
+ <PageSection>Section 2</PageSection>
39
+ <PageSection>Section 3</PageSection>
41
40
  </Page>
42
41
  );
43
42
  };
@@ -9,7 +9,6 @@ import {
9
9
  PageSidebar,
10
10
  PageSidebarBody,
11
11
  PageSection,
12
- PageSectionVariants,
13
12
  PageToggleButton,
14
13
  Toolbar,
15
14
  ToolbarContent,
@@ -63,13 +62,9 @@ export const PageMainSectionPadding: React.FunctionComponent = () => {
63
62
  return (
64
63
  <Page header={header} sidebar={sidebar}>
65
64
  <PageSection>Section with default padding</PageSection>
66
- <PageSection variant={PageSectionVariants.light} padding={{ default: 'noPadding' }}>
67
- Section with no padding
68
- </PageSection>
65
+ <PageSection padding={{ default: 'noPadding' }}>Section with no padding</PageSection>
69
66
  <PageSection padding={{ default: 'noPadding', md: 'padding' }}>Section with padding on medium</PageSection>
70
- <PageSection variant={PageSectionVariants.light} padding={{ md: 'noPadding' }}>
71
- Section with no padding on medium
72
- </PageSection>
67
+ <PageSection padding={{ md: 'noPadding' }}>Section with no padding on medium</PageSection>
73
68
  </Page>
74
69
  );
75
70
  };
@@ -9,7 +9,6 @@ import {
9
9
  PageSidebar,
10
10
  PageSidebarBody,
11
11
  PageSection,
12
- PageSectionVariants,
13
12
  PageToggleButton,
14
13
  Toolbar,
15
14
  ToolbarContent,
@@ -66,9 +65,9 @@ export const PageMultipleSidebarBody: React.FunctionComponent = () => {
66
65
 
67
66
  return (
68
67
  <Page header={header} sidebar={sidebar}>
69
- <PageSection variant={PageSectionVariants.darker}>Section with darker background</PageSection>
70
- <PageSection variant={PageSectionVariants.dark}>Section with dark background</PageSection>
71
- <PageSection variant={PageSectionVariants.light}>Section with light background</PageSection>
68
+ <PageSection>Section 1</PageSection>
69
+ <PageSection>Section 2</PageSection>
70
+ <PageSection>Section 3</PageSection>
72
71
  </Page>
73
72
  );
74
73
  };
@@ -6,7 +6,6 @@ import {
6
6
  MastheadBrand,
7
7
  MastheadContent,
8
8
  PageSection,
9
- PageSectionVariants,
10
9
  Toolbar,
11
10
  ToolbarContent,
12
11
  ToolbarItem
@@ -34,9 +33,9 @@ export const PageTertiaryNav: React.FunctionComponent = () => {
34
33
 
35
34
  return (
36
35
  <Page header={header} tertiaryNav="Navigation">
37
- <PageSection variant={PageSectionVariants.darker}>Section with darker background</PageSection>
38
- <PageSection variant={PageSectionVariants.dark}>Section with dark background</PageSection>
39
- <PageSection variant={PageSectionVariants.light}>Section with light background</PageSection>
36
+ <PageSection>Section 1</PageSection>
37
+ <PageSection>Section 2</PageSection>
38
+ <PageSection>Section 3</PageSection>
40
39
  </Page>
41
40
  );
42
41
  };
@@ -9,7 +9,6 @@ import {
9
9
  PageSidebar,
10
10
  PageSidebarBody,
11
11
  PageSection,
12
- PageSectionVariants,
13
12
  PageToggleButton,
14
13
  Toolbar,
15
14
  ToolbarContent,
@@ -50,9 +49,9 @@ export const PageUncontrolledNav: React.FunctionComponent = () => {
50
49
 
51
50
  return (
52
51
  <Page isManagedSidebar header={header} sidebar={sidebar}>
53
- <PageSection variant={PageSectionVariants.darker}>Section with darker background</PageSection>
54
- <PageSection variant={PageSectionVariants.dark}>Section with dark background</PageSection>
55
- <PageSection variant={PageSectionVariants.light}>Section with light background</PageSection>
52
+ <PageSection>Section 1</PageSection>
53
+ <PageSection>Section 2</PageSection>
54
+ <PageSection>Section 3</PageSection>
56
55
  </Page>
57
56
  );
58
57
  };
@@ -9,7 +9,6 @@ import {
9
9
  PageSidebar,
10
10
  PageSidebarBody,
11
11
  PageSection,
12
- PageSectionVariants,
13
12
  PageToggleButton,
14
13
  Toolbar,
15
14
  ToolbarContent,
@@ -62,9 +61,9 @@ export const PageVerticalNav: React.FunctionComponent = () => {
62
61
 
63
62
  return (
64
63
  <Page header={header} sidebar={sidebar}>
65
- <PageSection variant={PageSectionVariants.darker}>Section with darker background</PageSection>
66
- <PageSection variant={PageSectionVariants.dark}>Section with dark background</PageSection>
67
- <PageSection variant={PageSectionVariants.light}>Section with light background</PageSection>
64
+ <PageSection>Section 1</PageSection>
65
+ <PageSection>Section 2</PageSection>
66
+ <PageSection>Section 3</PageSection>
68
67
  </Page>
69
68
  );
70
69
  };
@@ -59,6 +59,9 @@ export interface SearchInputProps extends Omit<React.HTMLProps<HTMLDivElement>,
59
59
  appendTo?: HTMLElement | (() => HTMLElement) | 'inline';
60
60
  /** An accessible label for the search input. */
61
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;
62
65
  /** Array of attribute values used for dynamically generated advanced search. */
63
66
  attributes?: string[] | SearchInputSearchAttribute[];
64
67
  /** Additional classes added to the search input. */
@@ -152,6 +155,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
152
155
  appendTo,
153
156
  zIndex = 9999,
154
157
  name,
158
+ areUtilitiesDisplayed,
155
159
  ...props
156
160
  }: SearchInputProps) => {
157
161
  const [isSearchMenuOpen, setIsSearchMenuOpen] = React.useState(false);
@@ -295,7 +299,7 @@ const SearchInputBase: React.FunctionComponent<SearchInputProps> = ({
295
299
  onChange={onChangeHandler}
296
300
  name={name}
297
301
  />
298
- {renderUtilities && (
302
+ {(renderUtilities || areUtilitiesDisplayed) && (
299
303
  <TextInputGroupUtilities>
300
304
  {resultsCount && <Badge isRead>{resultsCount}</Badge>}
301
305
  {!!onNextClick && !!onPreviousClick && (
@@ -250,3 +250,11 @@ test('toggleAriaLabel is applied to the expandable toggle', () => {
250
250
 
251
251
  expect(screen.getByRole('button')).toHaveAccessibleName('Test label');
252
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 {
@@ -8,6 +8,7 @@ import { TextInput } from '../TextInput';
8
8
  import { Tooltip } from '../Tooltip';
9
9
  import cssSliderValue from '@patternfly/react-tokens/dist/esm/c_slider_value';
10
10
  import cssFormControlWidthChars from '@patternfly/react-tokens/dist/esm/c_slider__value_c_form_control_width_chars';
11
+ import { getLanguageDirection } from '../../helpers/util';
11
12
 
12
13
  /** Properties for creating custom steps in a slider. These properties should be passed in as
13
14
  * an object within an array to the slider component's customSteps property.
@@ -125,7 +126,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
125
126
  let isRTL: boolean;
126
127
 
127
128
  React.useEffect(() => {
128
- isRTL = window.getComputedStyle(sliderRailRef.current).getPropertyValue('direction') === 'rtl';
129
+ isRTL = getLanguageDirection(sliderRailRef.current) === 'rtl';
129
130
  });
130
131
 
131
132
  React.useEffect(() => {
@@ -6,7 +6,7 @@ import { PickOptional } from '../../helpers/typeUtils';
6
6
  import AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-icon';
7
7
  import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
8
8
  import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
9
- import { getUniqueId, isElementInView, formatBreakpointMods } from '../../helpers/util';
9
+ import { getUniqueId, isElementInView, formatBreakpointMods, getLanguageDirection } from '../../helpers/util';
10
10
  import { TabContent } from './TabContent';
11
11
  import { TabProps } from './Tab';
12
12
  import { TabsContextProvider } from './TabsContext';
@@ -333,7 +333,7 @@ class Tabs extends React.Component<TabsProps, TabsState> {
333
333
  if (canUseDOM) {
334
334
  window.addEventListener('resize', this.handleScrollButtons, false);
335
335
  }
336
- this.direction = getComputedStyle(this.tabList.current).getPropertyValue('direction');
336
+ this.direction = getLanguageDirection(this.tabList.current);
337
337
  // call the handle resize function to check if scroll buttons should be shown
338
338
  this.handleScrollButtons();
339
339
  }
@@ -381,7 +381,7 @@ class Tabs extends React.Component<TabsProps, TabsState> {
381
381
  this.setState({ showScrollButtons: false });
382
382
  }
383
383
 
384
- this.direction = getComputedStyle(this.tabList.current).getPropertyValue('direction');
384
+ this.direction = getLanguageDirection(this.tabList.current);
385
385
  }
386
386
 
387
387
  render() {
@@ -20,7 +20,6 @@ import {
20
20
  Gallery,
21
21
  GalleryItem,
22
22
  PageSection,
23
- PageSectionVariants,
24
23
  TextContent,
25
24
  Text
26
25
  } from '@patternfly/react-core';
@@ -47,7 +46,7 @@ class BannerDemo extends React.Component {
47
46
  <div className={css(display.displayNone, display.displayBlockOnLg)}>Ned Username</div>
48
47
  </Flex>
49
48
  </Banner>
50
- <PageSection variant={PageSectionVariants.light}>
49
+ <PageSection>
51
50
  <TextContent>
52
51
  <Text component="h1">Main title</Text>
53
52
  <Text component="p">
@@ -87,7 +86,6 @@ import {
87
86
  Gallery,
88
87
  GalleryItem,
89
88
  PageSection,
90
- PageSectionVariants,
91
89
  TextContent,
92
90
  Text
93
91
  } from '@patternfly/react-core';
@@ -122,7 +120,7 @@ class BannerDemo extends React.Component {
122
120
  </FlexItem>
123
121
  <FlexItem grow={{ default: 'grow' }} style={{ minHeight: 0 }}>
124
122
  <DashboardWrapper breadcrumb={null}>
125
- <PageSection variant={PageSectionVariants.light}>
123
+ <PageSection>
126
124
  <TextContent>
127
125
  <Text component="h1">Main title</Text>
128
126
  <Text component="p">
@@ -25,7 +25,6 @@ import {
25
25
  OverflowMenuDropdownItem,
26
26
  OverflowMenuItem,
27
27
  PageSection,
28
- PageSectionVariants,
29
28
  Pagination,
30
29
  TextContent,
31
30
  Text,
@@ -472,7 +471,7 @@ export const CardViewBasic: React.FunctionComponent = () => {
472
471
  return (
473
472
  <React.Fragment>
474
473
  <DashboardWrapper mainContainerId="main-content-card-view-default-nav" breadcrumb={null}>
475
- <PageSection variant={PageSectionVariants.light}>
474
+ <PageSection>
476
475
  <TextContent>
477
476
  <Text component="h1">Projects</Text>
478
477
  <Text component="p">This is a demo that showcases PatternFly cards.</Text>
@@ -554,12 +553,7 @@ export const CardViewBasic: React.FunctionComponent = () => {
554
553
  ))}
555
554
  </Gallery>
556
555
  </PageSection>
557
- <PageSection
558
- isFilled={false}
559
- stickyOnBreakpoint={{ default: 'bottom' }}
560
- padding={{ default: 'noPadding' }}
561
- variant="light"
562
- >
556
+ <PageSection isFilled={false} stickyOnBreakpoint={{ default: 'bottom' }} padding={{ default: 'noPadding' }}>
563
557
  <Pagination
564
558
  itemCount={totalItemCount}
565
559
  page={page}
@@ -37,7 +37,7 @@ export const DashboardBreadcrumb = (
37
37
  );
38
38
 
39
39
  const PageTemplateTitle = (
40
- <PageSection variant="light">
40
+ <PageSection>
41
41
  <TextContent>
42
42
  <Text component="h1">Main title</Text>
43
43
  <Text component="p">This is a full page demo.</Text>
@@ -64,7 +64,7 @@ ScrollspyH2 = () => {
64
64
 
65
65
  return (
66
66
  <DashboardWrapper breadcrumb={null} mainContainerId="scrollable-element">
67
- <PageSection variant="light">
67
+ <PageSection>
68
68
  <Title headingLevel="h1" size="2xl">
69
69
  Main title
70
70
  </Title>