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

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 (340) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/AboutModal/package.json +1 -1
  5. package/dist/dynamic/components/Accordion/package.json +1 -1
  6. package/dist/dynamic/components/ActionList/package.json +1 -1
  7. package/dist/dynamic/components/Alert/package.json +1 -1
  8. package/dist/dynamic/components/Avatar/package.json +1 -1
  9. package/dist/dynamic/components/BackToTop/package.json +1 -1
  10. package/dist/dynamic/components/Backdrop/package.json +1 -1
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  12. package/dist/dynamic/components/Badge/package.json +1 -1
  13. package/dist/dynamic/components/Banner/package.json +1 -1
  14. package/dist/dynamic/components/Brand/package.json +1 -1
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  16. package/dist/dynamic/components/Button/package.json +1 -1
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  18. package/dist/dynamic/components/Card/package.json +1 -1
  19. package/dist/dynamic/components/Checkbox/package.json +1 -1
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  22. package/dist/dynamic/components/Content/package.json +1 -1
  23. package/dist/dynamic/components/DataList/package.json +1 -1
  24. package/dist/dynamic/components/DatePicker/package.json +1 -1
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  26. package/dist/dynamic/components/Divider/package.json +1 -1
  27. package/dist/dynamic/components/Drawer/package.json +1 -1
  28. package/dist/dynamic/components/Dropdown/package.json +1 -1
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  30. package/dist/dynamic/components/EmptyState/package.json +1 -1
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  32. package/dist/dynamic/components/FileUpload/package.json +1 -1
  33. package/dist/dynamic/components/Form/package.json +1 -1
  34. package/dist/dynamic/components/FormSelect/package.json +1 -1
  35. package/dist/dynamic/components/HelperText/package.json +1 -1
  36. package/dist/dynamic/components/Hint/package.json +1 -1
  37. package/dist/dynamic/components/Icon/package.json +1 -1
  38. package/dist/dynamic/components/InputGroup/package.json +1 -1
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  40. package/dist/dynamic/components/Label/package.json +1 -1
  41. package/dist/dynamic/components/List/package.json +1 -1
  42. package/dist/dynamic/components/LoginPage/package.json +1 -1
  43. package/dist/dynamic/components/Masthead/package.json +1 -1
  44. package/dist/dynamic/components/Menu/package.json +1 -1
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  46. package/dist/dynamic/components/Modal/package.json +1 -1
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  48. package/dist/dynamic/components/Nav/package.json +1 -1
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  51. package/dist/dynamic/components/NumberInput/package.json +1 -1
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  53. package/dist/dynamic/components/Page/package.json +1 -1
  54. package/dist/dynamic/components/Pagination/package.json +1 -1
  55. package/dist/dynamic/components/Panel/package.json +1 -1
  56. package/dist/dynamic/components/Popover/package.json +1 -1
  57. package/dist/dynamic/components/Progress/package.json +1 -1
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  59. package/dist/dynamic/components/Radio/package.json +1 -1
  60. package/dist/dynamic/components/SearchInput/package.json +1 -1
  61. package/dist/dynamic/components/Select/package.json +1 -1
  62. package/dist/dynamic/components/Sidebar/package.json +1 -1
  63. package/dist/dynamic/components/SimpleList/package.json +1 -1
  64. package/dist/dynamic/components/Skeleton/package.json +1 -1
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  66. package/dist/dynamic/components/Slider/package.json +1 -1
  67. package/dist/dynamic/components/Spinner/package.json +1 -1
  68. package/dist/dynamic/components/Switch/package.json +1 -1
  69. package/dist/dynamic/components/Tabs/package.json +1 -1
  70. package/dist/dynamic/components/TextArea/package.json +1 -1
  71. package/dist/dynamic/components/TextInput/package.json +1 -1
  72. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  73. package/dist/dynamic/components/TimePicker/package.json +1 -1
  74. package/dist/dynamic/components/Timestamp/package.json +1 -1
  75. package/dist/dynamic/components/Title/package.json +1 -1
  76. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  77. package/dist/dynamic/components/Toolbar/package.json +1 -1
  78. package/dist/dynamic/components/Tooltip/package.json +1 -1
  79. package/dist/dynamic/components/TreeView/package.json +1 -1
  80. package/dist/dynamic/components/Truncate/package.json +1 -1
  81. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  82. package/dist/dynamic/components/Wizard/package.json +1 -1
  83. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  84. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/package.json +1 -1
  90. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  91. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  92. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  93. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  94. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  95. package/dist/dynamic/helpers/constants/package.json +1 -1
  96. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  97. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  98. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  99. package/dist/dynamic/helpers/package.json +1 -1
  100. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  101. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  102. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  103. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  104. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  105. package/dist/dynamic/helpers/util/package.json +1 -1
  106. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  107. package/dist/dynamic/layouts/Flex/package.json +1 -1
  108. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  109. package/dist/dynamic/layouts/Grid/package.json +1 -1
  110. package/dist/dynamic/layouts/Level/package.json +1 -1
  111. package/dist/dynamic/layouts/Split/package.json +1 -1
  112. package/dist/dynamic/layouts/Stack/package.json +1 -1
  113. package/dist/dynamic/styles/package.json +1 -1
  114. package/dist/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/Dropdown/DropdownGroup.d.ts +1 -1
  119. package/dist/esm/components/Dropdown/DropdownGroup.d.ts.map +1 -1
  120. package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts +1 -1
  121. package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  122. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
  123. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  124. package/dist/esm/components/Form/FormFieldGroup.d.ts +1 -1
  125. package/dist/esm/components/Form/FormFieldGroup.d.ts.map +1 -1
  126. package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts +1 -1
  127. package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
  128. package/dist/esm/components/Form/InternalFormFieldGroup.d.ts +1 -1
  129. package/dist/esm/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  130. package/dist/esm/components/List/List.d.ts.map +1 -1
  131. package/dist/esm/components/List/List.js +2 -2
  132. package/dist/esm/components/List/List.js.map +1 -1
  133. package/dist/esm/components/List/ListItem.d.ts +4 -2
  134. package/dist/esm/components/List/ListItem.d.ts.map +1 -1
  135. package/dist/esm/components/List/ListItem.js +2 -2
  136. package/dist/esm/components/List/ListItem.js.map +1 -1
  137. package/dist/esm/components/LoginPage/LoginForm.d.ts +2 -0
  138. package/dist/esm/components/LoginPage/LoginForm.d.ts.map +1 -1
  139. package/dist/esm/components/LoginPage/LoginForm.js +3 -3
  140. package/dist/esm/components/LoginPage/LoginForm.js.map +1 -1
  141. package/dist/esm/components/Nav/Nav.d.ts +1 -1
  142. package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
  143. package/dist/esm/components/Nav/NavItemSeparator.d.ts.map +1 -1
  144. package/dist/esm/components/Nav/NavItemSeparator.js +2 -2
  145. package/dist/esm/components/Nav/NavItemSeparator.js.map +1 -1
  146. package/dist/esm/components/Page/Page.d.ts +3 -1
  147. package/dist/esm/components/Page/Page.d.ts.map +1 -1
  148. package/dist/esm/components/Page/Page.js +1 -1
  149. package/dist/esm/components/Page/Page.js.map +1 -1
  150. package/dist/esm/components/Select/SelectGroup.d.ts +1 -1
  151. package/dist/esm/components/Select/SelectGroup.d.ts.map +1 -1
  152. package/dist/esm/components/Tabs/Tabs.d.ts +1 -1
  153. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  154. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  155. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
  156. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  157. package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  158. package/dist/esm/components/Toolbar/ToolbarItem.js +4 -3
  159. package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
  160. package/dist/esm/components/TreeView/TreeViewListItem.d.ts +2 -2
  161. package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  162. package/dist/esm/components/Truncate/Truncate.d.ts +11 -1
  163. package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
  164. package/dist/esm/components/Truncate/Truncate.js +43 -6
  165. package/dist/esm/components/Truncate/Truncate.js.map +1 -1
  166. package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
  167. package/dist/esm/deprecated/components/Wizard/WizardNavItem.d.ts.map +1 -1
  168. package/dist/esm/deprecated/components/Wizard/WizardNavItem.js +1 -1
  169. package/dist/esm/deprecated/components/Wizard/WizardNavItem.js.map +1 -1
  170. package/dist/js/components/Divider/Divider.d.ts +2 -0
  171. package/dist/js/components/Divider/Divider.d.ts.map +1 -1
  172. package/dist/js/components/Divider/Divider.js +2 -2
  173. package/dist/js/components/Divider/Divider.js.map +1 -1
  174. package/dist/js/components/Dropdown/DropdownGroup.d.ts +1 -1
  175. package/dist/js/components/Dropdown/DropdownGroup.d.ts.map +1 -1
  176. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +1 -1
  177. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  178. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
  179. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  180. package/dist/js/components/Form/FormFieldGroup.d.ts +1 -1
  181. package/dist/js/components/Form/FormFieldGroup.d.ts.map +1 -1
  182. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts +1 -1
  183. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
  184. package/dist/js/components/Form/InternalFormFieldGroup.d.ts +1 -1
  185. package/dist/js/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  186. package/dist/js/components/List/List.d.ts.map +1 -1
  187. package/dist/js/components/List/List.js +2 -2
  188. package/dist/js/components/List/List.js.map +1 -1
  189. package/dist/js/components/List/ListItem.d.ts +4 -2
  190. package/dist/js/components/List/ListItem.d.ts.map +1 -1
  191. package/dist/js/components/List/ListItem.js +2 -2
  192. package/dist/js/components/List/ListItem.js.map +1 -1
  193. package/dist/js/components/LoginPage/LoginForm.d.ts +2 -0
  194. package/dist/js/components/LoginPage/LoginForm.d.ts.map +1 -1
  195. package/dist/js/components/LoginPage/LoginForm.js +3 -3
  196. package/dist/js/components/LoginPage/LoginForm.js.map +1 -1
  197. package/dist/js/components/Nav/Nav.d.ts +1 -1
  198. package/dist/js/components/Nav/Nav.d.ts.map +1 -1
  199. package/dist/js/components/Nav/NavItemSeparator.d.ts.map +1 -1
  200. package/dist/js/components/Nav/NavItemSeparator.js +2 -2
  201. package/dist/js/components/Nav/NavItemSeparator.js.map +1 -1
  202. package/dist/js/components/Page/Page.d.ts +3 -1
  203. package/dist/js/components/Page/Page.d.ts.map +1 -1
  204. package/dist/js/components/Page/Page.js +1 -1
  205. package/dist/js/components/Page/Page.js.map +1 -1
  206. package/dist/js/components/Select/SelectGroup.d.ts +1 -1
  207. package/dist/js/components/Select/SelectGroup.d.ts.map +1 -1
  208. package/dist/js/components/Tabs/Tabs.d.ts +1 -1
  209. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  210. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  211. package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
  212. package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  213. package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  214. package/dist/js/components/Toolbar/ToolbarItem.js +4 -3
  215. package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
  216. package/dist/js/components/TreeView/TreeViewListItem.d.ts +2 -2
  217. package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  218. package/dist/js/components/Truncate/Truncate.d.ts +11 -1
  219. package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
  220. package/dist/js/components/Truncate/Truncate.js +42 -5
  221. package/dist/js/components/Truncate/Truncate.js.map +1 -1
  222. package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
  223. package/dist/js/deprecated/components/Wizard/WizardNavItem.d.ts.map +1 -1
  224. package/dist/js/deprecated/components/Wizard/WizardNavItem.js +1 -1
  225. package/dist/js/deprecated/components/Wizard/WizardNavItem.js.map +1 -1
  226. package/dist/umd/assets/{output-o1HtgXp0.css → output-4sV3U4I1.css} +19812 -19724
  227. package/dist/umd/react-core.min.js +3 -3
  228. package/helpers/package.json +1 -1
  229. package/layouts/package.json +1 -1
  230. package/next/package.json +1 -1
  231. package/package.json +8 -8
  232. package/src/components/Alert/examples/Alert.md +0 -3
  233. package/src/components/Card/examples/Card.md +4 -0
  234. package/src/components/Card/examples/CardHeaderWraps.tsx +26 -0
  235. package/src/components/DescriptionList/examples/DescriptionListAutoFitBasic.tsx +1 -1
  236. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthModified.tsx +5 -1
  237. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthResponsive.tsx +5 -1
  238. package/src/components/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  239. package/src/components/DescriptionList/examples/DescriptionListColumnFill.tsx +1 -1
  240. package/src/components/DescriptionList/examples/DescriptionListCompact.tsx +1 -1
  241. package/src/components/DescriptionList/examples/DescriptionListCompactHorizontal.tsx +1 -1
  242. package/src/components/DescriptionList/examples/DescriptionListDefaultAutoColumn.tsx +1 -1
  243. package/src/components/DescriptionList/examples/DescriptionListDefaultInlineGrid.tsx +1 -1
  244. package/src/components/DescriptionList/examples/DescriptionListDefaultResponsiveColumns.tsx +1 -1
  245. package/src/components/DescriptionList/examples/DescriptionListDefaultThreeColLg.tsx +1 -1
  246. package/src/components/DescriptionList/examples/DescriptionListDefaultTwoCol.tsx +1 -0
  247. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardHorizontalTermWidth.tsx +7 -1
  248. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardThreeColumn.tsx +5 -1
  249. package/src/components/DescriptionList/examples/DescriptionListFluidHorizontal.tsx +1 -1
  250. package/src/components/DescriptionList/examples/DescriptionListHorizontal.tsx +1 -1
  251. package/src/components/DescriptionList/examples/DescriptionListHorizontalAutoColumn.tsx +6 -1
  252. package/src/components/DescriptionList/examples/DescriptionListHorizontalCustomTermWidth.tsx +1 -0
  253. package/src/components/DescriptionList/examples/DescriptionListHorizontalResponsiveColumns.tsx +1 -1
  254. package/src/components/DescriptionList/examples/DescriptionListHorizontalThreeColLg.tsx +1 -1
  255. package/src/components/DescriptionList/examples/DescriptionListHorizontalTwoCol.tsx +1 -1
  256. package/src/components/DescriptionList/examples/DescriptionListIconsOnTerms.tsx +1 -1
  257. package/src/components/DescriptionList/examples/DescriptionListResponsiveHoriVertGroup.tsx +1 -0
  258. package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +1 -1
  259. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +1 -1
  260. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +5 -1
  261. package/src/components/DescriptionList/examples/DescriptionListWithTermHelpText.tsx +1 -1
  262. package/src/components/Divider/Divider.tsx +4 -1
  263. package/src/components/Divider/__tests__/Divider.test.tsx +10 -0
  264. package/src/components/Dropdown/DropdownGroup.tsx +1 -1
  265. package/src/components/DualListSelector/examples/DualListSelectorBasicSearch.tsx +1 -0
  266. package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +1 -0
  267. package/src/components/DualListSelector/examples/DualListSelectorTree.tsx +1 -0
  268. package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
  269. package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +1 -1
  270. package/src/components/ExpandableSection/examples/ExpandableSectionBasic.tsx +5 -1
  271. package/src/components/ExpandableSection/examples/ExpandableSectionDetached.tsx +1 -1
  272. package/src/components/ExpandableSection/examples/ExpandableSectionDisclosure.tsx +3 -1
  273. package/src/components/ExpandableSection/examples/ExpandableSectionIndented.tsx +1 -1
  274. package/src/components/ExpandableSection/examples/ExpandableSectionTruncateExpansion.tsx +1 -1
  275. package/src/components/ExpandableSection/examples/ExpandableSectionUncontrolled.tsx +1 -1
  276. package/src/components/ExpandableSection/examples/ExpandableSectionUncontrolledDynamicToggleText.tsx +4 -1
  277. package/src/components/Form/FormFieldGroup.tsx +1 -1
  278. package/src/components/Form/FormFieldGroupExpandable.tsx +1 -1
  279. package/src/components/Form/InternalFormFieldGroup.tsx +1 -1
  280. package/src/components/List/List.tsx +3 -0
  281. package/src/components/List/ListItem.tsx +7 -4
  282. package/src/components/List/__tests__/List.test.tsx +97 -101
  283. package/src/components/List/__tests__/ListItem.test.tsx +51 -0
  284. package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +4 -261
  285. package/src/components/List/__tests__/__snapshots__/ListItem.test.tsx.snap +34 -0
  286. package/src/components/LoginPage/LoginForm.tsx +5 -2
  287. package/src/components/LoginPage/__tests__/LoginForm.test.tsx +12 -0
  288. package/src/components/LoginPage/examples/LoginPage.md +1 -0
  289. package/src/components/Nav/Nav.tsx +1 -1
  290. package/src/components/Nav/NavItemSeparator.tsx +2 -1
  291. package/src/components/Page/Page.tsx +4 -1
  292. package/src/components/Page/__tests__/Page.test.tsx +18 -0
  293. package/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx +1 -1
  294. package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +1 -0
  295. package/src/components/SearchInput/examples/SearchInputBasic.tsx +1 -0
  296. package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +7 -1
  297. package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +1 -0
  298. package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +1 -0
  299. package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +1 -0
  300. package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +1 -0
  301. package/src/components/Select/SelectGroup.tsx +1 -1
  302. package/src/components/Skeleton/examples/SkeletonDefault.tsx +1 -1
  303. package/src/components/Skeleton/examples/SkeletonPercentageHeight.tsx +6 -6
  304. package/src/components/Skeleton/examples/SkeletonPercentageWidth.tsx +5 -5
  305. package/src/components/Skeleton/examples/SkeletonShapes.tsx +9 -9
  306. package/src/components/Skeleton/examples/SkeletonText.tsx +7 -7
  307. package/src/components/Tabs/Tabs.tsx +3 -1
  308. package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
  309. package/src/components/Toolbar/ToolbarItem.tsx +11 -1
  310. package/src/components/TreeView/TreeViewListItem.tsx +2 -2
  311. package/src/components/TreeView/__tests__/TreeView.test.tsx +26 -1
  312. package/src/components/TreeView/__tests__/TreeViewList.test.tsx +46 -0
  313. package/src/components/TreeView/__tests__/TreeViewListItem.test.tsx +278 -156
  314. package/src/components/TreeView/__tests__/TreeViewSearch.test.tsx +12 -1
  315. package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +9 -0
  316. package/src/components/Truncate/Truncate.tsx +109 -22
  317. package/src/components/Truncate/__tests__/Truncate.test.tsx +70 -2
  318. package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +37 -0
  319. package/src/components/Truncate/examples/Truncate.md +32 -36
  320. package/src/components/Truncate/examples/TruncateCustomTooltipPosition.tsx +10 -0
  321. package/src/components/Truncate/examples/TruncateDefault.tsx +7 -0
  322. package/src/components/Truncate/examples/TruncateMaxChars.tsx +27 -0
  323. package/src/components/Truncate/examples/TruncateMiddle.tsx +11 -0
  324. package/src/components/Truncate/examples/TruncateStart.tsx +7 -0
  325. package/src/components/Wizard/WizardNavInternal.tsx +1 -1
  326. package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +1 -1
  327. package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  328. package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +1 -1
  329. package/src/demos/ExpandableSection/examples/ExpandableTextDemo.tsx +1 -1
  330. package/src/demos/SearchInput/SearchInput.md +2 -0
  331. package/src/demos/examples/Card/CardDetails.tsx +2 -2
  332. package/src/demos/examples/Card/CardEventsView.tsx +1 -1
  333. package/src/demos/examples/Card/CardLogView.tsx +1 -1
  334. package/src/demos/examples/Card/CardStatusTabbed.tsx +3 -3
  335. package/src/demos/examples/Skeleton/SkeletonCard.tsx +6 -6
  336. package/src/deprecated/components/Wizard/WizardNavItem.tsx +13 -11
  337. package/src/deprecated/components/Wizard/__tests__/Generated/__snapshots__/WizardNavItem.test.tsx.snap +5 -1
  338. package/src/deprecated/components/Wizard/__tests__/__snapshots__/Wizard.test.tsx.snap +83 -31
  339. package/src/components/List/__tests__/Generated/ListItem.test.tsx +0 -12
  340. 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.0","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.2.1-prerelease.10","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.0","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.2.1-prerelease.10","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.0","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.2.1-prerelease.10","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "6.2.1-prerelease.1",
3
+ "version": "6.2.1-prerelease.11",
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.0",
50
- "@patternfly/react-styles": "^6.2.0",
51
- "@patternfly/react-tokens": "^6.2.0",
49
+ "@patternfly/react-icons": "^6.2.1-prerelease.1",
50
+ "@patternfly/react-styles": "^6.2.1-prerelease.0",
51
+ "@patternfly/react-tokens": "^6.2.1-prerelease.0",
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.0-prerelease.28",
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": "67083921690cf0fb228cc2cb5045a914f636706f"
66
+ "gitHead": "87c19611176f13b41ed77950b7e6debc415f2f90"
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
+ );
@@ -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();
@@ -10,7 +10,7 @@ export interface DropdownGroupProps extends Omit<MenuGroupProps, 'ref'> {
10
10
  /** Classes applied to root element of dropdown group */
11
11
  className?: string;
12
12
  /** Label of the dropdown group */
13
- label?: string;
13
+ label?: React.ReactNode;
14
14
  }
15
15
 
16
16
  export const DropdownGroup: React.FunctionComponent<DropdownGroupProps> = ({
@@ -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. */
@@ -9,7 +9,11 @@ export const ExpandableSectionBasic: React.FunctionComponent = () => {
9
9
  };
10
10
 
11
11
  return (
12
- <ExpandableSection toggleText={isExpanded ? 'Show less' : 'Show more'} onToggle={onToggle} isExpanded={isExpanded}>
12
+ <ExpandableSection
13
+ toggleText={isExpanded ? 'Show less basic example content' : 'Show more basic example content'}
14
+ onToggle={onToggle}
15
+ isExpanded={isExpanded}
16
+ >
13
17
  This content is visible only when the component is expanded.
14
18
  </ExpandableSection>
15
19
  );
@@ -25,7 +25,7 @@ export const ExpandableSectionDetached: React.FunctionComponent = () => {
25
25
  contentId={contentId}
26
26
  direction="up"
27
27
  >
28
- {isExpanded ? 'Show less' : 'Show more'}
28
+ {isExpanded ? 'Show less detached example content' : 'Show more detached example content'}
29
29
  </ExpandableSectionToggle>
30
30
  </StackItem>
31
31
  </Stack>
@@ -10,7 +10,9 @@ export const ExpandableSectionDisclosure: React.FunctionComponent = () => {
10
10
 
11
11
  return (
12
12
  <ExpandableSection
13
- toggleText={isExpanded ? 'Show less' : 'Show more'}
13
+ toggleText={
14
+ isExpanded ? 'Show less disclosure variation example content' : 'Show more disclosure variation example content'
15
+ }
14
16
  onToggle={onToggle}
15
17
  isExpanded={isExpanded}
16
18
  displaySize="lg"
@@ -21,7 +21,7 @@ export const ExpandableSectionIndented: React.FunctionComponent = () => {
21
21
  />
22
22
  <br />
23
23
  <ExpandableSection
24
- toggleText={isExpanded ? 'Show less' : 'Show more'}
24
+ toggleText={isExpanded ? 'Show less indented example content' : 'Show more indented example content'}
25
25
  onToggle={onToggle}
26
26
  isExpanded={isExpanded}
27
27
  isIndented
@@ -11,7 +11,7 @@ export const ExpandableSectionTruncateExpansion: React.FunctionComponent = () =>
11
11
  return (
12
12
  <ExpandableSection
13
13
  variant={ExpandableSectionVariant.truncate}
14
- toggleText={isExpanded ? 'Show less' : 'Show more'}
14
+ toggleText={isExpanded ? 'Show less truncated content' : 'Show more truncated content'}
15
15
  onToggle={onToggle}
16
16
  isExpanded={isExpanded}
17
17
  >
@@ -1,7 +1,7 @@
1
1
  import { ExpandableSection } from '@patternfly/react-core';
2
2
 
3
3
  export const ExpandableSectionUncontrolled: React.FunctionComponent = () => (
4
- <ExpandableSection toggleText="Show more">
4
+ <ExpandableSection toggleText="Show more uncontrolled example content">
5
5
  This content is visible only when the component is expanded.
6
6
  </ExpandableSection>
7
7
  );
@@ -1,7 +1,10 @@
1
1
  import { ExpandableSection } from '@patternfly/react-core';
2
2
 
3
3
  export const ExpandableSectionUncontrolledDynamicToggle: React.FunctionComponent = () => (
4
- <ExpandableSection toggleTextExpanded="Show less" toggleTextCollapsed="Show more">
4
+ <ExpandableSection
5
+ toggleTextExpanded="Show less uncontrolled dynamic toggle example content"
6
+ toggleTextCollapsed="Show more uncontrolled dynamic toggle example content"
7
+ >
5
8
  This content is visible only when the component is expanded.
6
9
  </ExpandableSection>
7
10
  );
@@ -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. */