@patternfly/react-core 6.2.1-prerelease.9 → 6.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/CHANGELOG.md +11 -13
  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 +0 -2
  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 +2 -4
  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/Tabs/Tabs.d.ts +1 -1
  141. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  142. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  143. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
  144. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  145. package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  146. package/dist/esm/components/Toolbar/ToolbarItem.js +3 -4
  147. package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
  148. package/dist/esm/components/Truncate/Truncate.d.ts +1 -11
  149. package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
  150. package/dist/esm/components/Truncate/Truncate.js +6 -43
  151. package/dist/esm/components/Truncate/Truncate.js.map +1 -1
  152. package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
  153. package/dist/js/components/Divider/Divider.d.ts +0 -2
  154. package/dist/js/components/Divider/Divider.d.ts.map +1 -1
  155. package/dist/js/components/Divider/Divider.js +2 -2
  156. package/dist/js/components/Divider/Divider.js.map +1 -1
  157. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +1 -1
  158. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  159. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
  160. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  161. package/dist/js/components/Form/FormFieldGroup.d.ts +1 -1
  162. package/dist/js/components/Form/FormFieldGroup.d.ts.map +1 -1
  163. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts +1 -1
  164. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
  165. package/dist/js/components/Form/InternalFormFieldGroup.d.ts +1 -1
  166. package/dist/js/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  167. package/dist/js/components/List/List.d.ts.map +1 -1
  168. package/dist/js/components/List/List.js +2 -2
  169. package/dist/js/components/List/List.js.map +1 -1
  170. package/dist/js/components/List/ListItem.d.ts +2 -4
  171. package/dist/js/components/List/ListItem.d.ts.map +1 -1
  172. package/dist/js/components/List/ListItem.js +2 -2
  173. package/dist/js/components/List/ListItem.js.map +1 -1
  174. package/dist/js/components/Nav/Nav.d.ts +1 -1
  175. package/dist/js/components/Nav/Nav.d.ts.map +1 -1
  176. package/dist/js/components/Nav/NavItemSeparator.d.ts.map +1 -1
  177. package/dist/js/components/Nav/NavItemSeparator.js +2 -2
  178. package/dist/js/components/Nav/NavItemSeparator.js.map +1 -1
  179. package/dist/js/components/Tabs/Tabs.d.ts +1 -1
  180. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  181. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  182. package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
  183. package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  184. package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
  185. package/dist/js/components/Toolbar/ToolbarItem.js +3 -4
  186. package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
  187. package/dist/js/components/Truncate/Truncate.d.ts +1 -11
  188. package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
  189. package/dist/js/components/Truncate/Truncate.js +5 -42
  190. package/dist/js/components/Truncate/Truncate.js.map +1 -1
  191. package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
  192. package/dist/umd/assets/{output-Dz39wdRo.css → output-AyA9e2xy.css} +14502 -14589
  193. package/dist/umd/react-core.min.js +3 -3
  194. package/helpers/package.json +1 -1
  195. package/layouts/package.json +1 -1
  196. package/next/package.json +1 -1
  197. package/package.json +8 -8
  198. package/src/components/Alert/examples/Alert.md +3 -0
  199. package/src/components/DescriptionList/examples/DescriptionListAutoFitBasic.tsx +1 -1
  200. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthModified.tsx +1 -5
  201. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthResponsive.tsx +1 -5
  202. package/src/components/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  203. package/src/components/DescriptionList/examples/DescriptionListColumnFill.tsx +1 -1
  204. package/src/components/DescriptionList/examples/DescriptionListCompact.tsx +1 -1
  205. package/src/components/DescriptionList/examples/DescriptionListCompactHorizontal.tsx +1 -1
  206. package/src/components/DescriptionList/examples/DescriptionListDefaultAutoColumn.tsx +1 -1
  207. package/src/components/DescriptionList/examples/DescriptionListDefaultInlineGrid.tsx +1 -1
  208. package/src/components/DescriptionList/examples/DescriptionListDefaultResponsiveColumns.tsx +1 -1
  209. package/src/components/DescriptionList/examples/DescriptionListDefaultThreeColLg.tsx +1 -1
  210. package/src/components/DescriptionList/examples/DescriptionListDefaultTwoCol.tsx +0 -1
  211. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardHorizontalTermWidth.tsx +1 -7
  212. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardThreeColumn.tsx +1 -5
  213. package/src/components/DescriptionList/examples/DescriptionListFluidHorizontal.tsx +1 -1
  214. package/src/components/DescriptionList/examples/DescriptionListHorizontal.tsx +1 -1
  215. package/src/components/DescriptionList/examples/DescriptionListHorizontalAutoColumn.tsx +1 -6
  216. package/src/components/DescriptionList/examples/DescriptionListHorizontalCustomTermWidth.tsx +0 -1
  217. package/src/components/DescriptionList/examples/DescriptionListHorizontalResponsiveColumns.tsx +1 -1
  218. package/src/components/DescriptionList/examples/DescriptionListHorizontalThreeColLg.tsx +1 -1
  219. package/src/components/DescriptionList/examples/DescriptionListHorizontalTwoCol.tsx +1 -1
  220. package/src/components/DescriptionList/examples/DescriptionListIconsOnTerms.tsx +1 -1
  221. package/src/components/DescriptionList/examples/DescriptionListResponsiveHoriVertGroup.tsx +0 -1
  222. package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +1 -1
  223. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +1 -1
  224. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +1 -5
  225. package/src/components/DescriptionList/examples/DescriptionListWithTermHelpText.tsx +1 -1
  226. package/src/components/Divider/Divider.tsx +1 -4
  227. package/src/components/Divider/__tests__/Divider.test.tsx +0 -10
  228. package/src/components/DualListSelector/examples/DualListSelectorBasicSearch.tsx +0 -1
  229. package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +0 -1
  230. package/src/components/DualListSelector/examples/DualListSelectorTree.tsx +0 -1
  231. package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
  232. package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +1 -1
  233. package/src/components/Form/FormFieldGroup.tsx +1 -1
  234. package/src/components/Form/FormFieldGroupExpandable.tsx +1 -1
  235. package/src/components/Form/InternalFormFieldGroup.tsx +1 -1
  236. package/src/components/List/List.tsx +0 -3
  237. package/src/components/List/ListItem.tsx +4 -7
  238. package/src/components/List/__tests__/Generated/ListItem.test.tsx +12 -0
  239. package/src/components/List/__tests__/Generated/__snapshots__/ListItem.test.tsx.snap +13 -0
  240. package/src/components/List/__tests__/List.test.tsx +101 -97
  241. package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +261 -4
  242. package/src/components/Nav/Nav.tsx +1 -1
  243. package/src/components/Nav/NavItemSeparator.tsx +1 -2
  244. package/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx +1 -1
  245. package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +0 -1
  246. package/src/components/SearchInput/examples/SearchInputBasic.tsx +0 -1
  247. package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +1 -7
  248. package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +0 -1
  249. package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +0 -1
  250. package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +0 -1
  251. package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +0 -1
  252. package/src/components/Tabs/Tabs.tsx +1 -3
  253. package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
  254. package/src/components/Toolbar/ToolbarItem.tsx +1 -11
  255. package/src/components/Truncate/Truncate.tsx +22 -109
  256. package/src/components/Truncate/__tests__/Truncate.test.tsx +2 -70
  257. package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +0 -37
  258. package/src/components/Truncate/examples/Truncate.md +36 -32
  259. package/src/components/Wizard/WizardNavInternal.tsx +1 -1
  260. package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +1 -1
  261. package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  262. package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +1 -1
  263. package/src/demos/SearchInput/SearchInput.md +0 -2
  264. package/src/demos/examples/Card/CardDetails.tsx +2 -2
  265. package/src/demos/examples/Card/CardEventsView.tsx +1 -1
  266. package/src/demos/examples/Card/CardLogView.tsx +1 -1
  267. package/src/demos/examples/Card/CardStatusTabbed.tsx +3 -3
  268. package/src/components/List/__tests__/ListItem.test.tsx +0 -51
  269. package/src/components/List/__tests__/__snapshots__/ListItem.test.tsx.snap +0 -34
  270. package/src/components/Truncate/examples/TruncateCustomTooltipPosition.tsx +0 -10
  271. package/src/components/Truncate/examples/TruncateDefault.tsx +0 -7
  272. package/src/components/Truncate/examples/TruncateMaxChars.tsx +0 -27
  273. package/src/components/Truncate/examples/TruncateMiddle.tsx +0 -11
  274. package/src/components/Truncate/examples/TruncateStart.tsx +0 -7
@@ -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.8","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","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.8","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","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.8","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","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "6.2.1-prerelease.9",
3
+ "version": "6.2.2",
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-prerelease.1",
50
- "@patternfly/react-styles": "^6.2.1-prerelease.0",
51
- "@patternfly/react-tokens": "^6.2.1-prerelease.0",
49
+ "@patternfly/react-icons": "^6.2.2",
50
+ "@patternfly/react-styles": "^6.2.2",
51
+ "@patternfly/react-tokens": "^6.2.2",
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.3.0-prerelease.6",
57
+ "@patternfly/patternfly": "6.2.3",
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 || ^19",
64
- "react-dom": "^17 || ^18 || ^19"
63
+ "react": "^17 || ^18",
64
+ "react-dom": "^17 || ^18"
65
65
  },
66
- "gitHead": "77cc1748f29487ca5cbcac4ebf00039479bc46f9"
66
+ "gitHead": "f354347710422b87a910bbf8e1cc728cc31a2f11"
67
67
  }
@@ -149,6 +149,9 @@ 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>
152
155
  <AlertGroup hasAnimations isLiveRegion>{alerts}</AlertGroup>
153
156
  </Fragment>
154
157
  );
@@ -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 aria-label="Basic auto-fit">
11
+ <DescriptionList isAutoFit>
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>example</DescriptionListDescription>
@@ -8,11 +8,7 @@ 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
12
- isAutoFit
13
- autoFitMinModifier={{ default: '200px' }}
14
- aria-label="Auto-fit grid with minimum width modification"
15
- >
11
+ <DescriptionList isAutoFit autoFitMinModifier={{ default: '200px' }}>
16
12
  <DescriptionListGroup>
17
13
  <DescriptionListTerm>Name</DescriptionListTerm>
18
14
  <DescriptionListDescription>example</DescriptionListDescription>
@@ -8,11 +8,7 @@ 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
12
- isAutoFit
13
- autoFitMinModifier={{ md: '100px', lg: '150px', xl: '200px', '2xl': '300px' }}
14
- aria-label="Responsive auto-fit grid with minimum width"
15
- >
11
+ <DescriptionList isAutoFit autoFitMinModifier={{ md: '100px', lg: '150px', xl: '200px', '2xl': '300px' }}>
16
12
  <DescriptionListGroup>
17
13
  <DescriptionListTerm>Name</DescriptionListTerm>
18
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 DescriptionListBasic: React.FunctionComponent = () => (
11
- <DescriptionList aria-label="Basic example">
11
+ <DescriptionList>
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' }} aria-label="Column fill enabled">
11
+ <DescriptionList isFillColumns columnModifier={{ default: '2Col', lg: '3Col' }}>
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 aria-label="Compact example">
11
+ <DescriptionList isCompact>
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 aria-label="Compact horizontal">
11
+ <DescriptionList isCompact isHorizontal>
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' }} aria-label="Default auto column width">
11
+ <DescriptionList isAutoColumnWidths columnModifier={{ default: '3Col' }}>
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 aria-label="Default inline grid">
11
+ <DescriptionList columnModifier={{ default: '3Col' }} isInlineGrid>
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' }} aria-label="Default responsive columns">
11
+ <DescriptionList columnModifier={{ lg: '2Col', xl: '3Col' }}>
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' }} aria-label="Three-column on large screens">
11
+ <DescriptionList columnModifier={{ lg: '3Col' }}>
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -12,7 +12,6 @@ export const DescriptionListDefaultTwoCol: React.FunctionComponent = () => (
12
12
  columnModifier={{
13
13
  default: '2Col'
14
14
  }}
15
- aria-label="Two-column"
16
15
  >
17
16
  <DescriptionListGroup>
18
17
  <DescriptionListTerm>Name</DescriptionListTerm>
@@ -2,13 +2,7 @@ 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
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
- >
5
+ <DescriptionList displaySize="lg" isHorizontal columnModifier={{ lg: '2Col' }} termWidth="10ch">
12
6
  <Card component="div">
13
7
  <DescriptionListTerm>Name</DescriptionListTerm>
14
8
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -2,11 +2,7 @@ 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
6
- displaySize="lg"
7
- columnModifier={{ lg: '3Col' }}
8
- aria-label="Display size with card and three column on large breakpoint"
9
- >
5
+ <DescriptionList displaySize="lg" columnModifier={{ lg: '3Col' }}>
10
6
  <Card component="div">
11
7
  <DescriptionListTerm>Name</DescriptionListTerm>
12
8
  <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 aria-label="Fluid horizontal">
11
+ <DescriptionList isHorizontal isFluid>
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 aria-label="Horizontal">
11
+ <DescriptionList isHorizontal>
12
12
  <DescriptionListGroup>
13
13
  <DescriptionListTerm>Name</DescriptionListTerm>
14
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -8,12 +8,7 @@ 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
12
- isHorizontal
13
- isAutoColumnWidths
14
- columnModifier={{ lg: '2Col' }}
15
- aria-label="Horizontal auto column width"
16
- >
11
+ <DescriptionList isHorizontal isAutoColumnWidths columnModifier={{ lg: '2Col' }}>
17
12
  <DescriptionListGroup>
18
13
  <DescriptionListTerm>Name</DescriptionListTerm>
19
14
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -18,7 +18,6 @@ export const DescriptionListHorizontalCustomTermWidth: React.FunctionComponent =
18
18
  xl: '30ch',
19
19
  '2xl': '35ch'
20
20
  }}
21
- aria-label="Horizontal with custom term width modifier"
22
21
  >
23
22
  <DescriptionListGroup>
24
23
  <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' }} aria-label="Horizontal responsive columns">
11
+ <DescriptionList isHorizontal columnModifier={{ lg: '2Col', xl: '3Col' }}>
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' }} aria-label="Three-columns horizontal on large screens">
11
+ <DescriptionList isHorizontal columnModifier={{ lg: '3Col' }}>
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' }} aria-label="Two-column horizontal">
11
+ <DescriptionList isHorizontal columnModifier={{ default: '2Col' }}>
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 aria-label="With icons examples">
16
+ <DescriptionList>
17
17
  <DescriptionListGroup>
18
18
  <DescriptionListTerm icon={<CubeIcon />}>Name</DescriptionListTerm>
19
19
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -16,7 +16,6 @@ export const DescriptionListResponsiveHoriVertGroup: React.FunctionComponent = (
16
16
  xl: 'vertical',
17
17
  '2xl': 'horizontal'
18
18
  }}
19
- aria-label="Responsive orientation"
20
19
  >
21
20
  <DescriptionListGroup>
22
21
  <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' }} aria-label="With card example">
32
+ <DescriptionList columnModifier={{ lg: '2Col' }}>
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' }} aria-label="Large display size">
33
+ <DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }}>
34
34
  <DescriptionListGroup>
35
35
  <DescriptionListTerm>Name</DescriptionListTerm>
36
36
  <DescriptionListDescription>Example</DescriptionListDescription>
@@ -30,11 +30,7 @@ export const DescriptionListWithLargeDisplaySizeAndCard: React.FunctionComponent
30
30
  name="toggle-display-size-with-card"
31
31
  />
32
32
  </div>
33
- <DescriptionList
34
- displaySize={displaySize}
35
- columnModifier={{ lg: '2Col' }}
36
- aria-label="With large display size and card"
37
- >
33
+ <DescriptionList displaySize={displaySize} columnModifier={{ lg: '2Col' }}>
38
34
  <Card component="div">
39
35
  <DescriptionListTerm>Name</DescriptionListTerm>
40
36
  <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 aria-label="Term help text">
13
+ <DescriptionList>
14
14
  <DescriptionListGroup>
15
15
  <DescriptionListTermHelpText>
16
16
  <Popover headerContent={<div>Name</div>} bodyContent={<div>Additional name info</div>}>
@@ -31,8 +31,6 @@ 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';
36
34
  }
37
35
 
38
36
  export const Divider: React.FunctionComponent<DividerProps> = ({
@@ -40,7 +38,6 @@ export const Divider: React.FunctionComponent<DividerProps> = ({
40
38
  component = DividerVariant.hr,
41
39
  inset,
42
40
  orientation,
43
- role = 'separator',
44
41
  ...props
45
42
  }: DividerProps) => {
46
43
  const Component: any = component;
@@ -53,7 +50,7 @@ export const Divider: React.FunctionComponent<DividerProps> = ({
53
50
  formatBreakpointMods(orientation, styles),
54
51
  className
55
52
  )}
56
- {...(component !== 'hr' && { role })}
53
+ {...(component !== 'hr' && { role: 'separator' })}
57
54
  {...props}
58
55
  />
59
56
  );
@@ -91,16 +91,6 @@ 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
-
104
94
  test('Matches the snapshot', () => {
105
95
  const { asFragment } = render(<Divider />);
106
96
  expect(asFragment()).toMatchSnapshot();
@@ -102,7 +102,6 @@ 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'}
106
105
  />
107
106
  );
108
107
 
@@ -115,7 +115,6 @@ 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'}
119
118
  />
120
119
  );
121
120
 
@@ -182,7 +182,6 @@ 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'}
186
185
  />
187
186
  );
188
187
  };
@@ -15,7 +15,7 @@ export enum ExpandableSectionVariant {
15
15
 
16
16
  /** The main expandable section component. */
17
17
 
18
- export interface ExpandableSectionProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
18
+ export interface ExpandableSectionProps extends React.HTMLProps<HTMLDivElement> {
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 Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
10
+ export interface ExpandableSectionToggleProps extends React.HTMLProps<HTMLDivElement> {
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' | 'onToggle'> {
3
+ export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
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 Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
4
+ export interface FormFieldGroupExpandableProps extends React.HTMLProps<HTMLDivElement> {
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' | 'onToggle'> {
6
+ export interface InternalFormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
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,14 +49,12 @@ export const List: React.FunctionComponent<ListProps> = ({
49
49
  type = OrderType.number,
50
50
  ref = null,
51
51
  component = ListComponent.ul,
52
- 'aria-label': ariaLabel,
53
52
  ...props
54
53
  }: ListProps) =>
55
54
  component === ListComponent.ol ? (
56
55
  <ol
57
56
  ref={ref as React.Ref<HTMLOListElement>}
58
57
  type={type}
59
- aria-label={ariaLabel}
60
58
  {...(isPlain && { role: 'list' })}
61
59
  {...props}
62
60
  className={css(
@@ -73,7 +71,6 @@ export const List: React.FunctionComponent<ListProps> = ({
73
71
  ) : (
74
72
  <ul
75
73
  ref={ref as React.Ref<HTMLUListElement>}
76
- aria-label={ariaLabel}
77
74
  {...(isPlain && { role: 'list' })}
78
75
  {...props}
79
76
  className={css(
@@ -2,21 +2,18 @@ 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
- /** Additional classes added to the list item */
6
- className?: string;
7
- /** Anything that can be rendered inside of list item */
8
- children: React.ReactNode;
9
5
  /** Icon for the list item */
10
6
  icon?: React.ReactNode | null;
7
+ /** Anything that can be rendered inside of list item */
8
+ children: React.ReactNode;
11
9
  }
12
10
 
13
11
  export const ListItem: React.FunctionComponent<ListItemProps> = ({
14
- className,
15
- children = null,
16
12
  icon = null,
13
+ children = null,
17
14
  ...props
18
15
  }: ListItemProps) => (
19
- <li className={css(icon && styles.listItem, className)} {...props}>
16
+ <li className={css(icon && styles.listItem)} {...props}>
20
17
  {icon && <span className={css(styles.listItemIcon)}>{icon}</span>}
21
18
  <span className={icon && css(`${styles.list}__item-text`)}>{children}</span>
22
19
  </li>
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This test was generated
3
+ */
4
+ import { render } from '@testing-library/react';
5
+ import { ListItem } from '../../ListItem';
6
+ // any missing imports can usually be resolved by adding them here
7
+ import {} from '../..';
8
+
9
+ it('ListItem should match snapshot (auto-generated)', () => {
10
+ const { asFragment } = render(<ListItem children={<>ReactNode</>} />);
11
+ expect(asFragment()).toMatchSnapshot();
12
+ });
@@ -0,0 +1,13 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ListItem should match snapshot (auto-generated) 1`] = `
4
+ <DocumentFragment>
5
+ <li
6
+ class=""
7
+ >
8
+ <span>
9
+ ReactNode
10
+ </span>
11
+ </li>
12
+ </DocumentFragment>
13
+ `;