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

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 (232) hide show
  1. package/CHANGELOG.md +10 -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/ExpandableSection/ExpandableSection.d.ts +1 -1
  115. package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  116. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
  117. package/dist/esm/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  118. package/dist/esm/components/Form/FormFieldGroup.d.ts +1 -1
  119. package/dist/esm/components/Form/FormFieldGroup.d.ts.map +1 -1
  120. package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts +1 -1
  121. package/dist/esm/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
  122. package/dist/esm/components/Form/InternalFormFieldGroup.d.ts +1 -1
  123. package/dist/esm/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  124. package/dist/esm/components/List/List.d.ts.map +1 -1
  125. package/dist/esm/components/List/List.js +2 -2
  126. package/dist/esm/components/List/List.js.map +1 -1
  127. package/dist/esm/components/List/ListItem.d.ts +4 -2
  128. package/dist/esm/components/List/ListItem.d.ts.map +1 -1
  129. package/dist/esm/components/List/ListItem.js +2 -2
  130. package/dist/esm/components/List/ListItem.js.map +1 -1
  131. package/dist/esm/components/Nav/Nav.d.ts +1 -1
  132. package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
  133. package/dist/esm/components/Tabs/Tabs.d.ts +1 -1
  134. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  135. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  136. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
  137. package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  138. package/dist/esm/components/Wizard/WizardNavInternal.js.map +1 -1
  139. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts +1 -1
  140. package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
  141. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts +1 -1
  142. package/dist/js/components/ExpandableSection/ExpandableSectionToggle.d.ts.map +1 -1
  143. package/dist/js/components/Form/FormFieldGroup.d.ts +1 -1
  144. package/dist/js/components/Form/FormFieldGroup.d.ts.map +1 -1
  145. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts +1 -1
  146. package/dist/js/components/Form/FormFieldGroupExpandable.d.ts.map +1 -1
  147. package/dist/js/components/Form/InternalFormFieldGroup.d.ts +1 -1
  148. package/dist/js/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  149. package/dist/js/components/List/List.d.ts.map +1 -1
  150. package/dist/js/components/List/List.js +2 -2
  151. package/dist/js/components/List/List.js.map +1 -1
  152. package/dist/js/components/List/ListItem.d.ts +4 -2
  153. package/dist/js/components/List/ListItem.d.ts.map +1 -1
  154. package/dist/js/components/List/ListItem.js +2 -2
  155. package/dist/js/components/List/ListItem.js.map +1 -1
  156. package/dist/js/components/Nav/Nav.d.ts +1 -1
  157. package/dist/js/components/Nav/Nav.d.ts.map +1 -1
  158. package/dist/js/components/Tabs/Tabs.d.ts +1 -1
  159. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  160. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  161. package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
  162. package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
  163. package/dist/js/components/Wizard/WizardNavInternal.js.map +1 -1
  164. package/dist/umd/assets/{output-sf2Bj9Mn.css → output-Dz39wdRo.css} +15117 -15117
  165. package/dist/umd/react-core.min.js +1 -1
  166. package/helpers/package.json +1 -1
  167. package/layouts/package.json +1 -1
  168. package/next/package.json +1 -1
  169. package/package.json +5 -5
  170. package/src/components/DescriptionList/examples/DescriptionListAutoFitBasic.tsx +1 -1
  171. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthModified.tsx +5 -1
  172. package/src/components/DescriptionList/examples/DescriptionListAutoFitMinWidthResponsive.tsx +5 -1
  173. package/src/components/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  174. package/src/components/DescriptionList/examples/DescriptionListColumnFill.tsx +1 -1
  175. package/src/components/DescriptionList/examples/DescriptionListCompact.tsx +1 -1
  176. package/src/components/DescriptionList/examples/DescriptionListCompactHorizontal.tsx +1 -1
  177. package/src/components/DescriptionList/examples/DescriptionListDefaultAutoColumn.tsx +1 -1
  178. package/src/components/DescriptionList/examples/DescriptionListDefaultInlineGrid.tsx +1 -1
  179. package/src/components/DescriptionList/examples/DescriptionListDefaultResponsiveColumns.tsx +1 -1
  180. package/src/components/DescriptionList/examples/DescriptionListDefaultThreeColLg.tsx +1 -1
  181. package/src/components/DescriptionList/examples/DescriptionListDefaultTwoCol.tsx +1 -0
  182. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardHorizontalTermWidth.tsx +7 -1
  183. package/src/components/DescriptionList/examples/DescriptionListDisplaySizeAndCardThreeColumn.tsx +5 -1
  184. package/src/components/DescriptionList/examples/DescriptionListFluidHorizontal.tsx +1 -1
  185. package/src/components/DescriptionList/examples/DescriptionListHorizontal.tsx +1 -1
  186. package/src/components/DescriptionList/examples/DescriptionListHorizontalAutoColumn.tsx +6 -1
  187. package/src/components/DescriptionList/examples/DescriptionListHorizontalCustomTermWidth.tsx +1 -0
  188. package/src/components/DescriptionList/examples/DescriptionListHorizontalResponsiveColumns.tsx +1 -1
  189. package/src/components/DescriptionList/examples/DescriptionListHorizontalThreeColLg.tsx +1 -1
  190. package/src/components/DescriptionList/examples/DescriptionListHorizontalTwoCol.tsx +1 -1
  191. package/src/components/DescriptionList/examples/DescriptionListIconsOnTerms.tsx +1 -1
  192. package/src/components/DescriptionList/examples/DescriptionListResponsiveHoriVertGroup.tsx +1 -0
  193. package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +1 -1
  194. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +1 -1
  195. package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +5 -1
  196. package/src/components/DescriptionList/examples/DescriptionListWithTermHelpText.tsx +1 -1
  197. package/src/components/DualListSelector/examples/DualListSelectorBasicSearch.tsx +1 -0
  198. package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +1 -0
  199. package/src/components/DualListSelector/examples/DualListSelectorTree.tsx +1 -0
  200. package/src/components/ExpandableSection/ExpandableSection.tsx +1 -1
  201. package/src/components/ExpandableSection/ExpandableSectionToggle.tsx +1 -1
  202. package/src/components/Form/FormFieldGroup.tsx +1 -1
  203. package/src/components/Form/FormFieldGroupExpandable.tsx +1 -1
  204. package/src/components/Form/InternalFormFieldGroup.tsx +1 -1
  205. package/src/components/List/List.tsx +3 -0
  206. package/src/components/List/ListItem.tsx +7 -4
  207. package/src/components/List/__tests__/List.test.tsx +97 -101
  208. package/src/components/List/__tests__/ListItem.test.tsx +51 -0
  209. package/src/components/List/__tests__/__snapshots__/List.test.tsx.snap +4 -261
  210. package/src/components/List/__tests__/__snapshots__/ListItem.test.tsx.snap +34 -0
  211. package/src/components/Nav/Nav.tsx +1 -1
  212. package/src/components/Progress/examples/ProgressTitleOutsideOfProgressBar.tsx +1 -1
  213. package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +1 -0
  214. package/src/components/SearchInput/examples/SearchInputBasic.tsx +1 -0
  215. package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +7 -1
  216. package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +1 -0
  217. package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +1 -0
  218. package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +1 -0
  219. package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +1 -0
  220. package/src/components/Tabs/Tabs.tsx +3 -1
  221. package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
  222. package/src/components/Wizard/WizardNavInternal.tsx +1 -1
  223. package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +1 -1
  224. package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +1 -1
  225. package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +1 -1
  226. package/src/demos/SearchInput/SearchInput.md +2 -0
  227. package/src/demos/examples/Card/CardDetails.tsx +2 -2
  228. package/src/demos/examples/Card/CardEventsView.tsx +1 -1
  229. package/src/demos/examples/Card/CardLogView.tsx +1 -1
  230. package/src/demos/examples/Card/CardStatusTabbed.tsx +3 -3
  231. package/src/components/List/__tests__/Generated/ListItem.test.tsx +0 -12
  232. 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.6","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.8","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.6","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.8","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.6","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.8","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "6.2.1-prerelease.7",
3
+ "version": "6.2.1-prerelease.9",
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,7 +46,7 @@
46
46
  "subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
47
47
  },
48
48
  "dependencies": {
49
- "@patternfly/react-icons": "^6.2.1-prerelease.0",
49
+ "@patternfly/react-icons": "^6.2.1-prerelease.1",
50
50
  "@patternfly/react-styles": "^6.2.1-prerelease.0",
51
51
  "@patternfly/react-tokens": "^6.2.1-prerelease.0",
52
52
  "focus-trap": "7.6.4",
@@ -60,8 +60,8 @@
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": "a871a671931ed6e48419509ce2129e879656a84c"
66
+ "gitHead": "77cc1748f29487ca5cbcac4ebf00039479bc46f9"
67
67
  }
@@ -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>}>
@@ -102,6 +102,7 @@ export const DualListSelectorSearch: React.FunctionComponent = () => {
102
102
  value={isAvailable ? availableFilter : chosenFilter}
103
103
  onChange={(_event, value) => onFilterChange(value, isAvailable)}
104
104
  onClear={() => onFilterChange('', isAvailable)}
105
+ aria-label={isAvailable ? 'Search available options' : 'Search chosen options'}
105
106
  />
106
107
  );
107
108
 
@@ -115,6 +115,7 @@ export const DualListSelectorComplexOptionsActionsNext: React.FunctionComponent
115
115
  onChange={(_event, value) => onFilterChange(value, isAvailable)}
116
116
  onClear={() => onFilterChange('', isAvailable)}
117
117
  isDisabled={isDisabled}
118
+ aria-label={isAvailable ? 'Search available options' : 'Search chosen options'}
118
119
  />
119
120
  );
120
121
 
@@ -182,6 +182,7 @@ export const DualListSelectorComposableTree: React.FunctionComponent<ExampleProp
182
182
  value={isChosen ? chosenFilter : availableFilter}
183
183
  onChange={(_event, value) => onChange(value)}
184
184
  onClear={() => onChange('')}
185
+ aria-label={isChosen ? 'Search chosen items' : 'Search available items'}
185
186
  />
186
187
  );
187
188
  };
@@ -15,7 +15,7 @@ export enum ExpandableSectionVariant {
15
15
 
16
16
  /** The main expandable section component. */
17
17
 
18
- export interface ExpandableSectionProps extends React.HTMLProps<HTMLDivElement> {
18
+ export interface ExpandableSectionProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
19
19
  /** Content rendered inside the expandable section. */
20
20
  children?: React.ReactNode;
21
21
  /** Additional classes added to the expandable section. */
@@ -7,7 +7,7 @@ import { Button } from '../Button';
7
7
  * property passed in. Allows for more custom control over the expandable section's toggle.
8
8
  */
9
9
 
10
- export interface ExpandableSectionToggleProps extends React.HTMLProps<HTMLDivElement> {
10
+ export interface ExpandableSectionToggleProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
11
11
  /** Content rendered inside the expandable toggle. */
12
12
  children?: React.ReactNode;
13
13
  /** Additional classes added to the expandable toggle. */
@@ -1,6 +1,6 @@
1
1
  import { InternalFormFieldGroup } from './InternalFormFieldGroup';
2
2
 
3
- export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
3
+ export interface FormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label' | 'onToggle'> {
4
4
  /** Anything that can be rendered as form field group content. */
5
5
  children?: React.ReactNode;
6
6
  /** Additional classes added to the form field group. */
@@ -1,7 +1,7 @@
1
1
  import { useState } from 'react';
2
2
  import { InternalFormFieldGroup } from './InternalFormFieldGroup';
3
3
 
4
- export interface FormFieldGroupExpandableProps extends React.HTMLProps<HTMLDivElement> {
4
+ export interface FormFieldGroupExpandableProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onToggle'> {
5
5
  /** Anything that can be rendered as form field group content. */
6
6
  children?: React.ReactNode;
7
7
  /** Additional classes added to the form field group. */
@@ -3,7 +3,7 @@ import { css } from '@patternfly/react-styles';
3
3
  import { FormFieldGroupToggle } from './FormFieldGroupToggle';
4
4
  import { GenerateId } from '../../helpers';
5
5
 
6
- export interface InternalFormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
6
+ export interface InternalFormFieldGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label' | 'onToggle'> {
7
7
  /** Anything that can be rendered as form field group content. */
8
8
  children?: React.ReactNode;
9
9
  /** Additional classes added to the form field group. */
@@ -49,12 +49,14 @@ export const List: React.FunctionComponent<ListProps> = ({
49
49
  type = OrderType.number,
50
50
  ref = null,
51
51
  component = ListComponent.ul,
52
+ 'aria-label': ariaLabel,
52
53
  ...props
53
54
  }: ListProps) =>
54
55
  component === ListComponent.ol ? (
55
56
  <ol
56
57
  ref={ref as React.Ref<HTMLOListElement>}
57
58
  type={type}
59
+ aria-label={ariaLabel}
58
60
  {...(isPlain && { role: 'list' })}
59
61
  {...props}
60
62
  className={css(
@@ -71,6 +73,7 @@ export const List: React.FunctionComponent<ListProps> = ({
71
73
  ) : (
72
74
  <ul
73
75
  ref={ref as React.Ref<HTMLUListElement>}
76
+ aria-label={ariaLabel}
74
77
  {...(isPlain && { role: 'list' })}
75
78
  {...props}
76
79
  className={css(
@@ -2,18 +2,21 @@ import styles from '@patternfly/react-styles/css/components/List/list';
2
2
  import { css } from '@patternfly/react-styles';
3
3
 
4
4
  export interface ListItemProps extends React.HTMLProps<HTMLLIElement> {
5
- /** Icon for the list item */
6
- icon?: React.ReactNode | null;
5
+ /** Additional classes added to the list item */
6
+ className?: string;
7
7
  /** Anything that can be rendered inside of list item */
8
8
  children: React.ReactNode;
9
+ /** Icon for the list item */
10
+ icon?: React.ReactNode | null;
9
11
  }
10
12
 
11
13
  export const ListItem: React.FunctionComponent<ListItemProps> = ({
12
- icon = null,
14
+ className,
13
15
  children = null,
16
+ icon = null,
14
17
  ...props
15
18
  }: ListItemProps) => (
16
- <li className={css(icon && styles.listItem)} {...props}>
19
+ <li className={css(icon && styles.listItem, className)} {...props}>
17
20
  {icon && <span className={css(styles.listItemIcon)}>{icon}</span>}
18
21
  <span className={icon && css(`${styles.list}__item-text`)}>{children}</span>
19
22
  </li>