@patternfly/react-core 6.2.1 → 6.3.0-prerelease.1

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 (295) hide show
  1. package/CHANGELOG.md +33 -7
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/AboutModal/package.json +1 -1
  5. package/dist/dynamic/components/Accordion/package.json +1 -1
  6. package/dist/dynamic/components/ActionList/package.json +1 -1
  7. package/dist/dynamic/components/Alert/package.json +1 -1
  8. package/dist/dynamic/components/Avatar/package.json +1 -1
  9. package/dist/dynamic/components/BackToTop/package.json +1 -1
  10. package/dist/dynamic/components/Backdrop/package.json +1 -1
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  12. package/dist/dynamic/components/Badge/package.json +1 -1
  13. package/dist/dynamic/components/Banner/package.json +1 -1
  14. package/dist/dynamic/components/Brand/package.json +1 -1
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  16. package/dist/dynamic/components/Button/package.json +1 -1
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  18. package/dist/dynamic/components/Card/package.json +1 -1
  19. package/dist/dynamic/components/Checkbox/package.json +1 -1
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  22. package/dist/dynamic/components/Content/package.json +1 -1
  23. package/dist/dynamic/components/DataList/package.json +1 -1
  24. package/dist/dynamic/components/DatePicker/package.json +1 -1
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  26. package/dist/dynamic/components/Divider/package.json +1 -1
  27. package/dist/dynamic/components/Drawer/package.json +1 -1
  28. package/dist/dynamic/components/Dropdown/package.json +1 -1
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  30. package/dist/dynamic/components/EmptyState/package.json +1 -1
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  32. package/dist/dynamic/components/FileUpload/package.json +1 -1
  33. package/dist/dynamic/components/Form/package.json +1 -1
  34. package/dist/dynamic/components/FormSelect/package.json +1 -1
  35. package/dist/dynamic/components/HelperText/package.json +1 -1
  36. package/dist/dynamic/components/Hint/package.json +1 -1
  37. package/dist/dynamic/components/Icon/package.json +1 -1
  38. package/dist/dynamic/components/InputGroup/package.json +1 -1
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  40. package/dist/dynamic/components/Label/package.json +1 -1
  41. package/dist/dynamic/components/List/package.json +1 -1
  42. package/dist/dynamic/components/LoginPage/package.json +1 -1
  43. package/dist/dynamic/components/Masthead/package.json +1 -1
  44. package/dist/dynamic/components/Menu/package.json +1 -1
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  46. package/dist/dynamic/components/Modal/package.json +1 -1
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  48. package/dist/dynamic/components/Nav/package.json +1 -1
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  51. package/dist/dynamic/components/NumberInput/package.json +1 -1
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  53. package/dist/dynamic/components/Page/package.json +1 -1
  54. package/dist/dynamic/components/Pagination/package.json +1 -1
  55. package/dist/dynamic/components/Panel/package.json +1 -1
  56. package/dist/dynamic/components/Popover/package.json +1 -1
  57. package/dist/dynamic/components/Progress/package.json +1 -1
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  59. package/dist/dynamic/components/Radio/package.json +1 -1
  60. package/dist/dynamic/components/SearchInput/package.json +1 -1
  61. package/dist/dynamic/components/Select/package.json +1 -1
  62. package/dist/dynamic/components/Sidebar/package.json +1 -1
  63. package/dist/dynamic/components/SimpleList/package.json +1 -1
  64. package/dist/dynamic/components/Skeleton/package.json +1 -1
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  66. package/dist/dynamic/components/Slider/package.json +1 -1
  67. package/dist/dynamic/components/Spinner/package.json +1 -1
  68. package/dist/dynamic/components/Switch/package.json +1 -1
  69. package/dist/dynamic/components/Tabs/package.json +1 -1
  70. package/dist/dynamic/components/TextArea/package.json +1 -1
  71. package/dist/dynamic/components/TextInput/package.json +1 -1
  72. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  73. package/dist/dynamic/components/TimePicker/package.json +1 -1
  74. package/dist/dynamic/components/Timestamp/package.json +1 -1
  75. package/dist/dynamic/components/Title/package.json +1 -1
  76. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  77. package/dist/dynamic/components/Toolbar/package.json +1 -1
  78. package/dist/dynamic/components/Tooltip/package.json +1 -1
  79. package/dist/dynamic/components/TreeView/package.json +1 -1
  80. package/dist/dynamic/components/Truncate/package.json +1 -1
  81. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  82. package/dist/dynamic/components/Wizard/package.json +1 -1
  83. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  84. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/package.json +1 -1
  90. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  91. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  92. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  93. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  94. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  95. package/dist/dynamic/helpers/constants/package.json +1 -1
  96. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  97. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  98. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  99. package/dist/dynamic/helpers/package.json +1 -1
  100. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  101. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  102. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  103. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  104. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  105. package/dist/dynamic/helpers/util/package.json +1 -1
  106. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  107. package/dist/dynamic/layouts/Flex/package.json +1 -1
  108. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  109. package/dist/dynamic/layouts/Grid/package.json +1 -1
  110. package/dist/dynamic/layouts/Level/package.json +1 -1
  111. package/dist/dynamic/layouts/Split/package.json +1 -1
  112. package/dist/dynamic/layouts/Stack/package.json +1 -1
  113. package/dist/dynamic/styles/package.json +1 -1
  114. package/dist/esm/components/Divider/Divider.d.ts +2 -0
  115. package/dist/esm/components/Divider/Divider.d.ts.map +1 -1
  116. package/dist/esm/components/Divider/Divider.js +2 -2
  117. package/dist/esm/components/Divider/Divider.js.map +1 -1
  118. package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +1 -1
  119. package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  120. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
  121. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  122. package/dist/esm/components/Form/FormFieldGroup.d.ts +1 -1
  123. package/dist/esm/components/Form/FormFieldGroup.d.ts.map +1 -1
  124. package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts +1 -1
  125. package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
  126. package/dist/esm/components/Form/InternalFormFieldGroup.d.ts +1 -1
  127. package/dist/esm/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  128. package/dist/esm/components/List/List.d.ts.map +1 -1
  129. package/dist/esm/components/List/List.js +2 -2
  130. package/dist/esm/components/List/List.js.map +1 -1
  131. package/dist/esm/components/List/ListItem.d.ts +4 -2
  132. package/dist/esm/components/List/ListItem.d.ts.map +1 -1
  133. package/dist/esm/components/List/ListItem.js +2 -2
  134. package/dist/esm/components/List/ListItem.js.map +1 -1
  135. package/dist/esm/components/Nav/Nav.d.ts +1 -1
  136. package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
  137. package/dist/esm/components/Nav/NavItemSeparator.d.ts.map +1 -1
  138. package/dist/esm/components/Nav/NavItemSeparator.js +2 -2
  139. package/dist/esm/components/Nav/NavItemSeparator.js.map +1 -1
  140. package/dist/esm/components/Progress/ProgressContainer.d.ts.map +1 -1
  141. package/dist/esm/components/Progress/ProgressContainer.js +12 -6
  142. package/dist/esm/components/Progress/ProgressContainer.js.map +1 -1
  143. package/dist/esm/components/Tabs/Tabs.d.ts +1 -1
  144. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  145. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  146. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
  147. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  148. package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  149. package/dist/esm/components/Toolbar/ToolbarItem.js +4 -3
  150. package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
  151. package/dist/esm/components/TreeView/TreeViewListItem.d.ts +2 -2
  152. package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  153. package/dist/esm/components/Truncate/Truncate.d.ts +11 -1
  154. package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
  155. package/dist/esm/components/Truncate/Truncate.js +46 -10
  156. package/dist/esm/components/Truncate/Truncate.js.map +1 -1
  157. package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
  158. package/dist/js/components/Divider/Divider.d.ts +2 -0
  159. package/dist/js/components/Divider/Divider.d.ts.map +1 -1
  160. package/dist/js/components/Divider/Divider.js +2 -2
  161. package/dist/js/components/Divider/Divider.js.map +1 -1
  162. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +1 -1
  163. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  164. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
  165. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  166. package/dist/js/components/Form/FormFieldGroup.d.ts +1 -1
  167. package/dist/js/components/Form/FormFieldGroup.d.ts.map +1 -1
  168. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts +1 -1
  169. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
  170. package/dist/js/components/Form/InternalFormFieldGroup.d.ts +1 -1
  171. package/dist/js/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  172. package/dist/js/components/List/List.d.ts.map +1 -1
  173. package/dist/js/components/List/List.js +2 -2
  174. package/dist/js/components/List/List.js.map +1 -1
  175. package/dist/js/components/List/ListItem.d.ts +4 -2
  176. package/dist/js/components/List/ListItem.d.ts.map +1 -1
  177. package/dist/js/components/List/ListItem.js +2 -2
  178. package/dist/js/components/List/ListItem.js.map +1 -1
  179. package/dist/js/components/Nav/Nav.d.ts +1 -1
  180. package/dist/js/components/Nav/Nav.d.ts.map +1 -1
  181. package/dist/js/components/Nav/NavItemSeparator.d.ts.map +1 -1
  182. package/dist/js/components/Nav/NavItemSeparator.js +2 -2
  183. package/dist/js/components/Nav/NavItemSeparator.js.map +1 -1
  184. package/dist/js/components/Progress/ProgressContainer.d.ts.map +1 -1
  185. package/dist/js/components/Progress/ProgressContainer.js +10 -4
  186. package/dist/js/components/Progress/ProgressContainer.js.map +1 -1
  187. package/dist/js/components/Tabs/Tabs.d.ts +1 -1
  188. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  189. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  190. package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
  191. package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  192. package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  193. package/dist/js/components/Toolbar/ToolbarItem.js +4 -3
  194. package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
  195. package/dist/js/components/TreeView/TreeViewListItem.d.ts +2 -2
  196. package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  197. package/dist/js/components/Truncate/Truncate.d.ts +11 -1
  198. package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
  199. package/dist/js/components/Truncate/Truncate.js +45 -9
  200. package/dist/js/components/Truncate/Truncate.js.map +1 -1
  201. package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
  202. package/dist/umd/assets/{output-C3Y87JYn.css → output-ZyJGbFvY.css} +18548 -18548
  203. package/dist/umd/react-core.min.js +1 -1
  204. package/helpers/package.json +1 -1
  205. package/layouts/package.json +1 -1
  206. package/next/package.json +1 -1
  207. package/package.json +8 -8
  208. package/src/components/Alert/examples/Alert.md +0 -3
  209. package/src/components/Card/examples/Card.md +4 -0
  210. package/src/components/Card/examples/CardHeaderWraps.tsx +26 -0
  211. package/src/components/CodeBlock/examples/CodeBlockBasic.tsx +1 -1
  212. package/src/components/CodeBlock/examples/CodeBlockExpandable.tsx +10 -3
  213. package/src/components/DescriptionList/examples/DescriptionListAutoFitBasic.tsx +1 -1
  214. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthModified.tsx +5 -1
  215. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthResponsive.tsx +5 -1
  216. package/src/components/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  217. package/src/components/DescriptionList/examples/DescriptionListColumnFill.tsx +1 -1
  218. package/src/components/DescriptionList/examples/DescriptionListCompact.tsx +1 -1
  219. package/src/components/DescriptionList/examples/DescriptionListCompactHorizontal.tsx +1 -1
  220. package/src/components/DescriptionList/examples/DescriptionListDefaultAutoColumn.tsx +1 -1
  221. package/src/components/DescriptionList/examples/DescriptionListDefaultInlineGrid.tsx +1 -1
  222. package/src/components/DescriptionList/examples/DescriptionListDefaultResponsiveColumns.tsx +1 -1
  223. package/src/components/DescriptionList/examples/DescriptionListDefaultThreeColLg.tsx +1 -1
  224. package/src/components/DescriptionList/examples/DescriptionListDefaultTwoCol.tsx +1 -0
  225. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardHorizontalTermWidth.tsx +7 -1
  226. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardThreeColumn.tsx +5 -1
  227. package/src/components/DescriptionList/examples/DescriptionListFluidHorizontal.tsx +1 -1
  228. package/src/components/DescriptionList/examples/DescriptionListHorizontal.tsx +1 -1
  229. package/src/components/DescriptionList/examples/DescriptionListHorizontalAutoColumn.tsx +6 -1
  230. package/src/components/DescriptionList/examples/DescriptionListHorizontalCustomTermWidth.tsx +1 -0
  231. package/src/components/DescriptionList/examples/DescriptionListHorizontalResponsiveColumns.tsx +1 -1
  232. package/src/components/DescriptionList/examples/DescriptionListHorizontalThreeColLg.tsx +1 -1
  233. package/src/components/DescriptionList/examples/DescriptionListHorizontalTwoCol.tsx +1 -1
  234. package/src/components/DescriptionList/examples/DescriptionListIconsOnTerms.tsx +1 -1
  235. package/src/components/DescriptionList/examples/DescriptionListResponsiveHoriVertGroup.tsx +1 -0
  236. package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +1 -1
  237. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +1 -1
  238. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +5 -1
  239. package/src/components/DescriptionList/examples/DescriptionListWithTermHelpText.tsx +1 -1
  240. package/src/components/Divider/Divider.tsx +4 -1
  241. package/src/components/Divider/__tests__/Divider.test.tsx +10 -0
  242. package/src/components/DualListSelector/examples/DualListSelectorBasicSearch.tsx +1 -0
  243. package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +1 -0
  244. package/src/components/DualListSelector/examples/DualListSelectorTree.tsx +1 -0
  245. package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
  246. package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +1 -1
  247. package/src/components/Form/FormFieldGroup.tsx +1 -1
  248. package/src/components/Form/FormFieldGroupExpandable.tsx +1 -1
  249. package/src/components/Form/InternalFormFieldGroup.tsx +1 -1
  250. package/src/components/List/List.tsx +3 -0
  251. package/src/components/List/ListItem.tsx +7 -4
  252. package/src/components/List/__tests__/List.test.tsx +97 -101
  253. package/src/components/List/__tests__/ListItem.test.tsx +51 -0
  254. package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +4 -261
  255. package/src/components/List/__tests__/__snapshots__/ListItem.test.tsx.snap +34 -0
  256. package/src/components/Nav/Nav.tsx +1 -1
  257. package/src/components/Nav/NavItemSeparator.tsx +2 -1
  258. package/src/components/Progress/ProgressContainer.tsx +23 -16
  259. package/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx +1 -1
  260. package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +1 -0
  261. package/src/components/SearchInput/examples/SearchInputBasic.tsx +1 -0
  262. package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +7 -1
  263. package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +1 -0
  264. package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +1 -0
  265. package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +1 -0
  266. package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +1 -0
  267. package/src/components/Tabs/Tabs.tsx +3 -1
  268. package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
  269. package/src/components/Toolbar/ToolbarItem.tsx +11 -1
  270. package/src/components/TreeView/TreeViewListItem.tsx +2 -2
  271. package/src/components/TreeView/__tests__/TreeView.test.tsx +26 -1
  272. package/src/components/TreeView/__tests__/TreeViewList.test.tsx +46 -0
  273. package/src/components/TreeView/__tests__/TreeViewListItem.test.tsx +278 -156
  274. package/src/components/TreeView/__tests__/TreeViewSearch.test.tsx +12 -1
  275. package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +9 -0
  276. package/src/components/Truncate/Truncate.tsx +118 -32
  277. package/src/components/Truncate/__tests__/Truncate.test.tsx +71 -3
  278. package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +54 -14
  279. package/src/components/Truncate/examples/Truncate.md +32 -36
  280. package/src/components/Truncate/examples/TruncateCustomTooltipPosition.tsx +10 -0
  281. package/src/components/Truncate/examples/TruncateDefault.tsx +7 -0
  282. package/src/components/Truncate/examples/TruncateMaxChars.tsx +27 -0
  283. package/src/components/Truncate/examples/TruncateMiddle.tsx +11 -0
  284. package/src/components/Truncate/examples/TruncateStart.tsx +7 -0
  285. package/src/components/Wizard/WizardNavInternal.tsx +1 -1
  286. package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +1 -1
  287. package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  288. package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +1 -1
  289. package/src/demos/SearchInput/SearchInput.md +2 -0
  290. package/src/demos/examples/Card/CardDetails.tsx +2 -2
  291. package/src/demos/examples/Card/CardEventsView.tsx +1 -1
  292. package/src/demos/examples/Card/CardLogView.tsx +1 -1
  293. package/src/demos/examples/Card/CardStatusTabbed.tsx +3 -3
  294. package/src/components/List/__tests__/Generated/ListItem.test.tsx +0 -12
  295. package/src/components/List/__tests__/Generated/__snapshots__/ListItem.test.tsx.snap +0 -13
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.2.1-prerelease.5","private":true}
1
+ {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.3.0-prerelease.0","private":true}
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.2.1-prerelease.5","private":true}
1
+ {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.3.0-prerelease.0","private":true}
package/next/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.2.1-prerelease.5","private":true}
1
+ {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.3.0-prerelease.0","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "6.2.1",
3
+ "version": "6.3.0-prerelease.1",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -46,22 +46,22 @@
46
46
  "subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
47
47
  },
48
48
  "dependencies": {
49
- "@patternfly/react-icons": "^6.2.1",
50
- "@patternfly/react-styles": "^6.2.1",
51
- "@patternfly/react-tokens": "^6.2.1",
49
+ "@patternfly/react-icons": "^6.3.0-prerelease.1",
50
+ "@patternfly/react-styles": "^6.3.0-prerelease.1",
51
+ "@patternfly/react-tokens": "^6.3.0-prerelease.1",
52
52
  "focus-trap": "7.6.4",
53
53
  "react-dropzone": "^14.3.5",
54
54
  "tslib": "^2.8.1"
55
55
  },
56
56
  "devDependencies": {
57
- "@patternfly/patternfly": "6.2.1",
57
+ "@patternfly/patternfly": "6.3.0-prerelease.6",
58
58
  "case-anything": "^3.1.2",
59
59
  "css": "^3.0.0",
60
60
  "fs-extra": "^11.3.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "react": "^17 || ^18",
64
- "react-dom": "^17 || ^18"
63
+ "react": "^17 || ^18 || ^19",
64
+ "react-dom": "^17 || ^18 || ^19"
65
65
  },
66
- "gitHead": "04a395a81b43a7c435b0a23f7309e6ccf20935ec"
66
+ "gitHead": "dfd5811438352c387d46b86489353e3de5d4f271"
67
67
  }
@@ -149,9 +149,6 @@ const AlertTimeout: React.FunctionComponent = () => {
149
149
  <Button variant="secondary" onClick={onClick}>
150
150
  Add alert
151
151
  </Button>
152
- <Button variant="secondary" onClick={() => setAlerts([])}>
153
- Remove all alerts
154
- </Button>
155
152
  <AlertGroup hasAnimations isLiveRegion>{alerts}</AlertGroup>
156
153
  </Fragment>
157
154
  );
@@ -89,6 +89,10 @@ Images can also be placed in the card header without a `<CardTitle>`.
89
89
 
90
90
  ```
91
91
 
92
+ ### Card with header that wraps
93
+ ```ts file='./CardHeaderWraps.tsx'
94
+ ```
95
+
92
96
  ### With HTML heading element
93
97
 
94
98
  You may use the `component` property to place the card's title within an HTML heading element.
@@ -0,0 +1,26 @@
1
+ import { Card, CardBody, CardHeader, Button, CardTitle } from '@patternfly/react-core';
2
+
3
+ export const CardBasic: React.FunctionComponent = () => (
4
+ <Card ouiaId="BasicCard">
5
+ <CardHeader
6
+ hasWrap
7
+ actions={{
8
+ hasNoOffset: true,
9
+ actions: [
10
+ <Button variant="primary" ouiaId="Primary" key="primary">
11
+ Primary action
12
+ </Button>,
13
+ <Button variant="secondary" ouiaId="Secondary" key="secondary">
14
+ Secondary action
15
+ </Button>,
16
+ <Button variant="tertiary" ouiaId="Tertiary" key="tertiary">
17
+ Tertiary action
18
+ </Button>
19
+ ]
20
+ }}
21
+ >
22
+ <CardTitle>This is a longer card title that takes up more space</CardTitle>
23
+ </CardHeader>
24
+ <CardBody>This is the card body</CardBody>
25
+ </Card>
26
+ );
@@ -38,7 +38,7 @@ url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs`;
38
38
  <ClipboardCopyButton
39
39
  id="basic-copy-button"
40
40
  textId="code-content"
41
- aria-label="Copy to clipboard"
41
+ aria-label="Copy to clipboard basic example code block"
42
42
  onClick={(e) => onClick(e, code)}
43
43
  exitDelay={copied ? 1500 : 600}
44
44
  maxWidth="110px"
@@ -17,6 +17,7 @@ export const ExpandableCodeBlock: React.FunctionComponent = () => {
17
17
  const [isRunning, setisRunning] = useState(false);
18
18
  const runText: string = 'Run in web terminal';
19
19
  const doneRunText: string = 'Running in web terminal';
20
+ const toggleId: string = 'expandable-code-toggle';
20
21
 
21
22
  const onToggle = (isExpanded) => {
22
23
  setIsExpanded(isExpanded);
@@ -85,12 +86,18 @@ url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs`;
85
86
  <CodeBlock actions={actions}>
86
87
  <CodeBlockCode>
87
88
  {code}
88
- <ExpandableSection isExpanded={isExpanded} isDetached contentId="code-block-expand">
89
+ <ExpandableSection isExpanded={isExpanded} isDetached contentId="code-block-expand" toggleId={toggleId}>
89
90
  {expandedCode}
90
91
  </ExpandableSection>
91
92
  </CodeBlockCode>
92
- <ExpandableSectionToggle isExpanded={isExpanded} onToggle={onToggle} contentId="code-block-expand" direction="up">
93
- {isExpanded ? 'Show Less' : 'Show More'}
93
+ <ExpandableSectionToggle
94
+ isExpanded={isExpanded}
95
+ onToggle={onToggle}
96
+ contentId="code-block-expand"
97
+ direction="up"
98
+ toggleId={toggleId}
99
+ >
100
+ {isExpanded ? 'Show less expandable example content' : 'Show more expandable example content'}
94
101
  </ExpandableSectionToggle>
95
102
  </CodeBlock>
96
103
  );
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListAutoFitBasic: React.FunctionComponent = () => (
11
- <DescriptionList isAutoFit>
11
+ <DescriptionList isAutoFit aria-label="Basic auto-fit">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>example</DescriptionListDescription>
@@ -8,7 +8,11 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListAutoFitMinWidthModified: React.FunctionComponent = () => (
11
- <DescriptionList isAutoFit autoFitMinModifier={{ default: '200px' }}>
11
+ <DescriptionList
12
+ isAutoFit
13
+ autoFitMinModifier={{ default: '200px' }}
14
+ aria-label="Auto-fit grid with minimum width modification"
15
+ >
12
16
  <DescriptionListGroup>
13
17
  <DescriptionListTerm>Name</DescriptionListTerm>
14
18
  <DescriptionListDescription>example</DescriptionListDescription>
@@ -8,7 +8,11 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListAutoFitMinWidthResponsive: React.FunctionComponent = () => (
11
- <DescriptionList isAutoFit autoFitMinModifier={{ md: '100px', lg: '150px', xl: '200px', '2xl': '300px' }}>
11
+ <DescriptionList
12
+ isAutoFit
13
+ autoFitMinModifier={{ md: '100px', lg: '150px', xl: '200px', '2xl': '300px' }}
14
+ aria-label="Responsive auto-fit grid with minimum width"
15
+ >
12
16
  <DescriptionListGroup>
13
17
  <DescriptionListTerm>Name</DescriptionListTerm>
14
18
  <DescriptionListDescription>example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListBasic: React.FunctionComponent = () => (
11
- <DescriptionList>
11
+ <DescriptionList aria-label="Basic example">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListColumnFill: React.FunctionComponent = () => (
11
- <DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '3Col' }}>
11
+ <DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '3Col' }} aria-label="Column fill enabled">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListCompact: React.FunctionComponent = () => (
11
- <DescriptionList isCompact>
11
+ <DescriptionList isCompact aria-label="Compact example">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListCompactHorizontal: React.FunctionComponent = () => (
11
- <DescriptionList isCompact isHorizontal>
11
+ <DescriptionList isCompact isHorizontal aria-label="Compact horizontal">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListDefaultAutoColumn: React.FunctionComponent = () => (
11
- <DescriptionList isAutoColumnWidths columnModifier={{ default: '3Col' }}>
11
+ <DescriptionList isAutoColumnWidths columnModifier={{ default: '3Col' }} aria-label="Default auto column width">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListDefaultInlineGrid: React.FunctionComponent = () => (
11
- <DescriptionList columnModifier={{ default: '3Col' }} isInlineGrid>
11
+ <DescriptionList columnModifier={{ default: '3Col' }} isInlineGrid aria-label="Default inline grid">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListDefaultResponsiveColumns: React.FunctionComponent = () => (
11
- <DescriptionList columnModifier={{ lg: '2Col', xl: '3Col' }}>
11
+ <DescriptionList columnModifier={{ lg: '2Col', xl: '3Col' }} aria-label="Default responsive columns">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListDefaultThreeColLg: React.FunctionComponent = () => (
11
- <DescriptionList columnModifier={{ lg: '3Col' }}>
11
+ <DescriptionList columnModifier={{ lg: '3Col' }} aria-label="Three-column on large screens">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -12,6 +12,7 @@ export const DescriptionListDefaultTwoCol: React.FunctionComponent = () => (
12
12
  columnModifier={{
13
13
  default: '2Col'
14
14
  }}
15
+ aria-label="Two-column"
15
16
  >
16
17
  <DescriptionListGroup>
17
18
  <DescriptionListTerm>Name</DescriptionListTerm>
@@ -2,7 +2,13 @@ import { Button, DescriptionList, DescriptionListTerm, DescriptionListDescriptio
2
2
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
3
3
 
4
4
  export const DescriptionListDisplaySizeAndCardHorizontalTermWidth: React.FunctionComponent = () => (
5
- <DescriptionList displaySize="lg" isHorizontal columnModifier={{ lg: '2Col' }} termWidth="10ch">
5
+ <DescriptionList
6
+ displaySize="lg"
7
+ isHorizontal
8
+ columnModifier={{ lg: '2Col' }}
9
+ termWidth="10ch"
10
+ aria-label="Display size with card, horizontal and modified term width"
11
+ >
6
12
  <Card component="div">
7
13
  <DescriptionListTerm>Name</DescriptionListTerm>
8
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -2,7 +2,11 @@ import { Button, DescriptionList, DescriptionListTerm, DescriptionListDescriptio
2
2
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
3
3
 
4
4
  export const DescriptionListDisplayLgAndCardThreeColumn: React.FunctionComponent = () => (
5
- <DescriptionList displaySize="lg" columnModifier={{ lg: '3Col' }}>
5
+ <DescriptionList
6
+ displaySize="lg"
7
+ columnModifier={{ lg: '3Col' }}
8
+ aria-label="Display size with card and three column on large breakpoint"
9
+ >
6
10
  <Card component="div">
7
11
  <DescriptionListTerm>Name</DescriptionListTerm>
8
12
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListFluidHorizontal: React.FunctionComponent = () => (
11
- <DescriptionList isHorizontal isFluid>
11
+ <DescriptionList isHorizontal isFluid aria-label="Fluid horizontal">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListHorizontal: React.FunctionComponent = () => (
11
- <DescriptionList isHorizontal>
11
+ <DescriptionList isHorizontal aria-label="Horizontal">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,12 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListHorizontalAutoColumn: React.FunctionComponent = () => (
11
- <DescriptionList isHorizontal isAutoColumnWidths columnModifier={{ lg: '2Col' }}>
11
+ <DescriptionList
12
+ isHorizontal
13
+ isAutoColumnWidths
14
+ columnModifier={{ lg: '2Col' }}
15
+ aria-label="Horizontal auto column width"
16
+ >
12
17
  <DescriptionListGroup>
13
18
  <DescriptionListTerm>Name</DescriptionListTerm>
14
19
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -18,6 +18,7 @@ export const DescriptionListHorizontalCustomTermWidth: React.FunctionComponent =
18
18
  xl: '30ch',
19
19
  '2xl': '35ch'
20
20
  }}
21
+ aria-label="Horizontal with custom term width modifier"
21
22
  >
22
23
  <DescriptionListGroup>
23
24
  <DescriptionListTerm>Name longer than the default term width</DescriptionListTerm>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListHorizontalResponsiveColumns: React.FunctionComponent = () => (
11
- <DescriptionList isHorizontal columnModifier={{ lg: '2Col', xl: '3Col' }}>
11
+ <DescriptionList isHorizontal columnModifier={{ lg: '2Col', xl: '3Col' }} aria-label="Horizontal responsive columns">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListHorizontalThreeColLg: React.FunctionComponent = () => (
11
- <DescriptionList isHorizontal columnModifier={{ lg: '3Col' }}>
11
+ <DescriptionList isHorizontal columnModifier={{ lg: '3Col' }} aria-label="Three-columns horizontal on large screens">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,7 +8,7 @@ import {
8
8
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
9
9
 
10
10
  export const DescriptionListHorizontalTwoCol: React.FunctionComponent = () => (
11
- <DescriptionList isHorizontal columnModifier={{ default: '2Col' }}>
11
+ <DescriptionList isHorizontal columnModifier={{ default: '2Col' }} aria-label="Two-column horizontal">
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -13,7 +13,7 @@ import GlobeIcon from '@patternfly/react-icons/dist/esm/icons/globe-icon';
13
13
  import FlagIcon from '@patternfly/react-icons/dist/esm/icons/flag-icon';
14
14
 
15
15
  export const DescriptionListIconsOnTerms: React.FunctionComponent = () => (
16
- <DescriptionList>
16
+ <DescriptionList aria-label="With icons examples">
17
17
  <DescriptionListGroup>
18
18
  <DescriptionListTerm icon={<CubeIcon />}>Name</DescriptionListTerm>
19
19
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -16,6 +16,7 @@ export const DescriptionListResponsiveHoriVertGroup: React.FunctionComponent = (
16
16
  xl: 'vertical',
17
17
  '2xl': 'horizontal'
18
18
  }}
19
+ aria-label="Responsive orientation"
19
20
  >
20
21
  <DescriptionListGroup>
21
22
  <DescriptionListTerm>Name</DescriptionListTerm>
@@ -29,7 +29,7 @@ export const DescriptionListWithCard: React.FunctionComponent = () => {
29
29
  name="toggle-isSelectable"
30
30
  />
31
31
  </div>
32
- <DescriptionList columnModifier={{ lg: '2Col' }}>
32
+ <DescriptionList columnModifier={{ lg: '2Col' }} aria-label="With card example">
33
33
  <Card component="div" isSelectable={isSelectable}>
34
34
  <DescriptionListTerm>Name</DescriptionListTerm>
35
35
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -30,7 +30,7 @@ export const DescriptionListWithLargeDisplaySize: React.FunctionComponent = () =
30
30
  name="toggle-display-size"
31
31
  />
32
32
  </div>
33
- <DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }}>
33
+ <DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }} aria-label="Large display size">
34
34
  <DescriptionListGroup>
35
35
  <DescriptionListTerm>Name</DescriptionListTerm>
36
36
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -30,7 +30,11 @@ export const DescriptionListWithLargeDisplaySizeAndCard: React.FunctionComponent
30
30
  name="toggle-display-size-with-card"
31
31
  />
32
32
  </div>
33
- <DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }}>
33
+ <DescriptionList
34
+ displaySize={displaySize}
35
+ columnModifier={{ lg: '2Col' }}
36
+ aria-label="With large display size and card"
37
+ >
34
38
  <Card component="div">
35
39
  <DescriptionListTerm>Name</DescriptionListTerm>
36
40
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -10,7 +10,7 @@ import {
10
10
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
11
11
 
12
12
  export const DescriptionListWithTermHelpText: React.FunctionComponent = () => (
13
- <DescriptionList>
13
+ <DescriptionList aria-label="Term help text">
14
14
  <DescriptionListGroup>
15
15
  <DescriptionListTermHelpText>
16
16
  <Popover headerContent={<div>Name</div>} bodyContent={<div>Additional name info</div>}>
@@ -31,6 +31,8 @@ export interface DividerProps extends React.HTMLProps<HTMLElement> {
31
31
  xl?: 'vertical' | 'horizontal';
32
32
  '2xl'?: 'vertical' | 'horizontal';
33
33
  };
34
+ /** The ARIA role of the divider when the component property has a value other than "hr". */
35
+ role?: 'separator' | 'presentation';
34
36
  }
35
37
 
36
38
  export const Divider: React.FunctionComponent<DividerProps> = ({
@@ -38,6 +40,7 @@ export const Divider: React.FunctionComponent<DividerProps> = ({
38
40
  component = DividerVariant.hr,
39
41
  inset,
40
42
  orientation,
43
+ role = 'separator',
41
44
  ...props
42
45
  }: DividerProps) => {
43
46
  const Component: any = component;
@@ -50,7 +53,7 @@ export const Divider: React.FunctionComponent<DividerProps> = ({
50
53
  formatBreakpointMods(orientation, styles),
51
54
  className
52
55
  )}
53
- {...(component !== 'hr' && { role: 'separator' })}
56
+ {...(component !== 'hr' && { role })}
54
57
  {...props}
55
58
  />
56
59
  );
@@ -91,6 +91,16 @@ test(`Test all insets`, () => {
91
91
  });
92
92
  });
93
93
 
94
+ test('Does not render with value passed to role by default', () => {
95
+ render(<Divider role="presentation" />);
96
+ expect(screen.queryByRole('presentation')).not.toBeInTheDocument();
97
+ });
98
+
99
+ test('Renders with value passed to role when component is not "hr"', () => {
100
+ render(<Divider component="li" role="presentation" />);
101
+ expect(screen.getByRole('presentation')).toBeInTheDocument();
102
+ });
103
+
94
104
  test('Matches the snapshot', () => {
95
105
  const { asFragment } = render(<Divider />);
96
106
  expect(asFragment()).toMatchSnapshot();
@@ -102,6 +102,7 @@ export const DualListSelectorSearch: React.FunctionComponent = () => {
102
102
  value={isAvailable ? availableFilter : chosenFilter}
103
103
  onChange={(_event, value) => onFilterChange(value, isAvailable)}
104
104
  onClear={() => onFilterChange('', isAvailable)}
105
+ aria-label={isAvailable ? 'Search available options' : 'Search chosen options'}
105
106
  />
106
107
  );
107
108
 
@@ -115,6 +115,7 @@ export const DualListSelectorComplexOptionsActionsNext: React.FunctionComponent
115
115
  onChange={(_event, value) => onFilterChange(value, isAvailable)}
116
116
  onClear={() => onFilterChange('', isAvailable)}
117
117
  isDisabled={isDisabled}
118
+ aria-label={isAvailable ? 'Search available options' : 'Search chosen options'}
118
119
  />
119
120
  );
120
121
 
@@ -182,6 +182,7 @@ export const DualListSelectorComposableTree: React.FunctionComponent<ExampleProp
182
182
  value={isChosen ? chosenFilter : availableFilter}
183
183
  onChange={(_event, value) => onChange(value)}
184
184
  onClear={() => onChange('')}
185
+ aria-label={isChosen ? 'Search chosen items' : 'Search available items'}
185
186
  />
186
187
  );
187
188
  };
@@ -15,7 +15,7 @@ export enum ExpandableSectionVariant {
15
15
 
16
16
  /** The main expandable section component. */
17
17
 
18
- export interface ExpandableSectionProps extends React.HTMLProps<HTMLDivElement> {
18
+ export interface ExpandableSectionProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
19
19
  /** Content rendered inside the expandable section. */
20
20
  children?: React.ReactNode;
21
21
  /** Additional classes added to the expandable section. */
@@ -7,7 +7,7 @@ import { Button } from '../Button';
7
7
  * property passed in. Allows for more custom control over the expandable section's toggle.
8
8
  */
9
9
 
10
- export interface ExpandableSectionToggleProps extends React.HTMLProps<HTMLDivElement> {
10
+ export interface ExpandableSectionToggleProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
11
11
  /** Content rendered inside the expandable toggle. */
12
12
  children?: React.ReactNode;
13
13
  /** Additional classes added to the expandable toggle. */
@@ -1,6 +1,6 @@
1
1
  import { InternalFormFieldGroup } from './InternalFormFieldGroup';
2
2
 
3
- export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
3
+ export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label' | 'onToggle'> {
4
4
  /** Anything that can be rendered as form field group content. */
5
5
  children?: React.ReactNode;
6
6
  /** Additional classes added to the form field group. */
@@ -1,7 +1,7 @@
1
1
  import { useState } from 'react';
2
2
  import { InternalFormFieldGroup } from './InternalFormFieldGroup';
3
3
 
4
- export interface FormFieldGroupExpandableProps extends React.HTMLProps<HTMLDivElement> {
4
+ export interface FormFieldGroupExpandableProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
5
5
  /** Anything that can be rendered as form field group content. */
6
6
  children?: React.ReactNode;
7
7
  /** Additional classes added to the form field group. */
@@ -3,7 +3,7 @@ import { css } from '@patternfly/react-styles';
3
3
  import { FormFieldGroupToggle } from './FormFieldGroupToggle';
4
4
  import { GenerateId } from '../../helpers';
5
5
 
6
- export interface InternalFormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
6
+ export interface InternalFormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label' | 'onToggle'> {
7
7
  /** Anything that can be rendered as form field group content. */
8
8
  children?: React.ReactNode;
9
9
  /** Additional classes added to the form field group. */
@@ -49,12 +49,14 @@ export const List: React.FunctionComponent<ListProps> = ({
49
49
  type = OrderType.number,
50
50
  ref = null,
51
51
  component = ListComponent.ul,
52
+ 'aria-label': ariaLabel,
52
53
  ...props
53
54
  }: ListProps) =>
54
55
  component === ListComponent.ol ? (
55
56
  <ol
56
57
  ref={ref as React.Ref<HTMLOListElement>}
57
58
  type={type}
59
+ aria-label={ariaLabel}
58
60
  {...(isPlain && { role: 'list' })}
59
61
  {...props}
60
62
  className={css(
@@ -71,6 +73,7 @@ export const List: React.FunctionComponent<ListProps> = ({
71
73
  ) : (
72
74
  <ul
73
75
  ref={ref as React.Ref<HTMLUListElement>}
76
+ aria-label={ariaLabel}
74
77
  {...(isPlain && { role: 'list' })}
75
78
  {...props}
76
79
  className={css(
@@ -2,18 +2,21 @@ import styles from '@patternfly/react-styles/css/components/List/list';
2
2
  import { css } from '@patternfly/react-styles';
3
3
 
4
4
  export interface ListItemProps extends React.HTMLProps<HTMLLIElement> {
5
- /** Icon for the list item */
6
- icon?: React.ReactNode | null;
5
+ /** Additional classes added to the list item */
6
+ className?: string;
7
7
  /** Anything that can be rendered inside of list item */
8
8
  children: React.ReactNode;
9
+ /** Icon for the list item */
10
+ icon?: React.ReactNode | null;
9
11
  }
10
12
 
11
13
  export const ListItem: React.FunctionComponent<ListItemProps> = ({
12
- icon = null,
14
+ className,
13
15
  children = null,
16
+ icon = null,
14
17
  ...props
15
18
  }: ListItemProps) => (
16
- <li className={css(icon && styles.listItem)} {...props}>
19
+ <li className={css(icon && styles.listItem, className)} {...props}>
17
20
  {icon && <span className={css(styles.listItemIcon)}>{icon}</span>}
18
21
  <span className={icon && css(`${styles.list}__item-text`)}>{children}</span>
19
22
  </li>