@patternfly/react-core 5.3.0-prerelease.8 → 5.3.0

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 (307) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/README.md +1 -0
  3. package/components/package.json +1 -1
  4. package/deprecated/package.json +1 -1
  5. package/dist/dynamic/components/AboutModal/package.json +1 -1
  6. package/dist/dynamic/components/Accordion/package.json +1 -1
  7. package/dist/dynamic/components/ActionList/package.json +1 -1
  8. package/dist/dynamic/components/Alert/package.json +1 -1
  9. package/dist/dynamic/components/Avatar/package.json +1 -1
  10. package/dist/dynamic/components/BackToTop/package.json +1 -1
  11. package/dist/dynamic/components/Backdrop/package.json +1 -1
  12. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  13. package/dist/dynamic/components/Badge/package.json +1 -1
  14. package/dist/dynamic/components/Banner/package.json +1 -1
  15. package/dist/dynamic/components/Brand/package.json +1 -1
  16. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  17. package/dist/dynamic/components/Button/package.json +1 -1
  18. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  19. package/dist/dynamic/components/Card/package.json +1 -1
  20. package/dist/dynamic/components/Checkbox/package.json +1 -1
  21. package/dist/dynamic/components/Chip/package.json +1 -1
  22. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  23. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  24. package/dist/dynamic/components/DataList/package.json +1 -1
  25. package/dist/dynamic/components/DatePicker/package.json +1 -1
  26. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  27. package/dist/dynamic/components/Divider/package.json +1 -1
  28. package/dist/dynamic/components/DragDrop/package.json +1 -1
  29. package/dist/dynamic/components/Drawer/package.json +1 -1
  30. package/dist/dynamic/components/Dropdown/package.json +1 -1
  31. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  32. package/dist/dynamic/components/EmptyState/package.json +1 -1
  33. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  34. package/dist/dynamic/components/FileUpload/package.json +1 -1
  35. package/dist/dynamic/components/Form/package.json +1 -1
  36. package/dist/dynamic/components/FormSelect/package.json +1 -1
  37. package/dist/dynamic/components/HelperText/package.json +1 -1
  38. package/dist/dynamic/components/Hint/package.json +1 -1
  39. package/dist/dynamic/components/Icon/package.json +1 -1
  40. package/dist/dynamic/components/InputGroup/package.json +1 -1
  41. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  42. package/dist/dynamic/components/Label/package.json +1 -1
  43. package/dist/dynamic/components/List/package.json +1 -1
  44. package/dist/dynamic/components/LoginPage/package.json +1 -1
  45. package/dist/dynamic/components/Masthead/package.json +1 -1
  46. package/dist/dynamic/components/Menu/package.json +1 -1
  47. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  48. package/dist/dynamic/components/Modal/package.json +1 -1
  49. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  50. package/dist/dynamic/components/Nav/package.json +1 -1
  51. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  52. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  53. package/dist/dynamic/components/NumberInput/package.json +1 -1
  54. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  55. package/dist/dynamic/components/Page/package.json +1 -1
  56. package/dist/dynamic/components/Pagination/package.json +1 -1
  57. package/dist/dynamic/components/Panel/package.json +1 -1
  58. package/dist/dynamic/components/Popover/package.json +1 -1
  59. package/dist/dynamic/components/Progress/package.json +1 -1
  60. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  61. package/dist/dynamic/components/Radio/package.json +1 -1
  62. package/dist/dynamic/components/SearchInput/package.json +1 -1
  63. package/dist/dynamic/components/Select/package.json +1 -1
  64. package/dist/dynamic/components/Sidebar/package.json +1 -1
  65. package/dist/dynamic/components/SimpleList/package.json +1 -1
  66. package/dist/dynamic/components/Skeleton/package.json +1 -1
  67. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  68. package/dist/dynamic/components/Slider/package.json +1 -1
  69. package/dist/dynamic/components/Spinner/package.json +1 -1
  70. package/dist/dynamic/components/Switch/package.json +1 -1
  71. package/dist/dynamic/components/Tabs/package.json +1 -1
  72. package/dist/dynamic/components/Text/package.json +1 -1
  73. package/dist/dynamic/components/TextArea/package.json +1 -1
  74. package/dist/dynamic/components/TextInput/package.json +1 -1
  75. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  76. package/dist/dynamic/components/Tile/package.json +1 -1
  77. package/dist/dynamic/components/TimePicker/package.json +1 -1
  78. package/dist/dynamic/components/Timestamp/package.json +1 -1
  79. package/dist/dynamic/components/Title/package.json +1 -1
  80. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  81. package/dist/dynamic/components/Toolbar/package.json +1 -1
  82. package/dist/dynamic/components/Tooltip/package.json +1 -1
  83. package/dist/dynamic/components/TreeView/package.json +1 -1
  84. package/dist/dynamic/components/Truncate/package.json +1 -1
  85. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  86. package/dist/dynamic/components/Wizard/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
  90. package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
  91. package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
  92. package/dist/dynamic/deprecated/components/Select/package.json +1 -1
  93. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  94. package/dist/dynamic/deprecated/components/package.json +1 -1
  95. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  96. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  97. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  98. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  99. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  100. package/dist/dynamic/helpers/constants/package.json +1 -1
  101. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  102. package/dist/dynamic/helpers/favorites/package.json +1 -1
  103. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  104. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  105. package/dist/dynamic/helpers/package.json +1 -1
  106. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  107. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  108. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  109. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  110. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  111. package/dist/dynamic/helpers/util/package.json +1 -1
  112. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  113. package/dist/dynamic/layouts/Flex/package.json +1 -1
  114. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  115. package/dist/dynamic/layouts/Grid/package.json +1 -1
  116. package/dist/dynamic/layouts/Level/package.json +1 -1
  117. package/dist/dynamic/layouts/Split/package.json +1 -1
  118. package/dist/dynamic/layouts/Stack/package.json +1 -1
  119. package/dist/dynamic/next/components/DualListSelector/package.json +1 -1
  120. package/dist/dynamic/next/components/Modal/package.json +1 -1
  121. package/dist/dynamic/next/components/package.json +1 -1
  122. package/dist/dynamic/styles/package.json +1 -1
  123. package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  124. package/dist/esm/components/CalendarMonth/CalendarMonth.js +30 -12
  125. package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
  126. package/dist/esm/components/Card/Card.d.ts +13 -5
  127. package/dist/esm/components/Card/Card.d.ts.map +1 -1
  128. package/dist/esm/components/Card/Card.js +7 -3
  129. package/dist/esm/components/Card/Card.js.map +1 -1
  130. package/dist/esm/components/Card/CardHeader.d.ts +3 -1
  131. package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
  132. package/dist/esm/components/Card/CardHeader.js +10 -10
  133. package/dist/esm/components/Card/CardHeader.js.map +1 -1
  134. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +2 -2
  135. package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  136. package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +10 -2
  137. package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
  138. package/dist/esm/components/Dropdown/Dropdown.d.ts +4 -0
  139. package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
  140. package/dist/esm/components/Dropdown/Dropdown.js +4 -3
  141. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  142. package/dist/esm/components/Label/Label.d.ts +2 -0
  143. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  144. package/dist/esm/components/Label/Label.js +9 -8
  145. package/dist/esm/components/Label/Label.js.map +1 -1
  146. package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
  147. package/dist/esm/components/Menu/Menu.js +5 -1
  148. package/dist/esm/components/Menu/Menu.js.map +1 -1
  149. package/dist/esm/components/MenuToggle/MenuToggle.d.ts +9 -0
  150. package/dist/esm/components/MenuToggle/MenuToggle.d.ts.map +1 -1
  151. package/dist/esm/components/MenuToggle/MenuToggle.js +29 -3
  152. package/dist/esm/components/MenuToggle/MenuToggle.js.map +1 -1
  153. package/dist/esm/components/MenuToggle/MenuToggleCheckbox.js +2 -2
  154. package/dist/esm/components/MenuToggle/MenuToggleCheckbox.js.map +1 -1
  155. package/dist/esm/components/TextArea/TextArea.d.ts +0 -4
  156. package/dist/esm/components/TextArea/TextArea.d.ts.map +1 -1
  157. package/dist/esm/components/TextArea/TextArea.js.map +1 -1
  158. package/dist/esm/helpers/GenerateId/GenerateId.d.ts +5 -1
  159. package/dist/esm/helpers/GenerateId/GenerateId.d.ts.map +1 -1
  160. package/dist/esm/helpers/GenerateId/GenerateId.js +14 -2
  161. package/dist/esm/helpers/GenerateId/GenerateId.js.map +1 -1
  162. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  163. package/dist/js/components/CalendarMonth/CalendarMonth.js +30 -12
  164. package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
  165. package/dist/js/components/Card/Card.d.ts +13 -5
  166. package/dist/js/components/Card/Card.d.ts.map +1 -1
  167. package/dist/js/components/Card/Card.js +7 -3
  168. package/dist/js/components/Card/Card.js.map +1 -1
  169. package/dist/js/components/Card/CardHeader.d.ts +3 -1
  170. package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
  171. package/dist/js/components/Card/CardHeader.js +10 -10
  172. package/dist/js/components/Card/CardHeader.js.map +1 -1
  173. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +2 -2
  174. package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
  175. package/dist/js/components/ClipboardCopy/ClipboardCopy.js +10 -2
  176. package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
  177. package/dist/js/components/Dropdown/Dropdown.d.ts +4 -0
  178. package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
  179. package/dist/js/components/Dropdown/Dropdown.js +4 -3
  180. package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
  181. package/dist/js/components/Label/Label.d.ts +2 -0
  182. package/dist/js/components/Label/Label.d.ts.map +1 -1
  183. package/dist/js/components/Label/Label.js +9 -8
  184. package/dist/js/components/Label/Label.js.map +1 -1
  185. package/dist/js/components/Menu/Menu.d.ts.map +1 -1
  186. package/dist/js/components/Menu/Menu.js +5 -1
  187. package/dist/js/components/Menu/Menu.js.map +1 -1
  188. package/dist/js/components/MenuToggle/MenuToggle.d.ts +9 -0
  189. package/dist/js/components/MenuToggle/MenuToggle.d.ts.map +1 -1
  190. package/dist/js/components/MenuToggle/MenuToggle.js +30 -4
  191. package/dist/js/components/MenuToggle/MenuToggle.js.map +1 -1
  192. package/dist/js/components/MenuToggle/MenuToggleCheckbox.js +2 -2
  193. package/dist/js/components/MenuToggle/MenuToggleCheckbox.js.map +1 -1
  194. package/dist/js/components/TextArea/TextArea.d.ts +0 -4
  195. package/dist/js/components/TextArea/TextArea.d.ts.map +1 -1
  196. package/dist/js/components/TextArea/TextArea.js.map +1 -1
  197. package/dist/js/helpers/GenerateId/GenerateId.d.ts +5 -1
  198. package/dist/js/helpers/GenerateId/GenerateId.d.ts.map +1 -1
  199. package/dist/js/helpers/GenerateId/GenerateId.js +14 -2
  200. package/dist/js/helpers/GenerateId/GenerateId.js.map +1 -1
  201. package/dist/umd/react-core.min.js +1 -1
  202. package/helpers/package.json +1 -1
  203. package/layouts/package.json +1 -1
  204. package/next/package.json +1 -1
  205. package/package.json +6 -6
  206. package/src/components/CalendarMonth/CalendarMonth.tsx +38 -13
  207. package/src/components/Card/Card.tsx +24 -7
  208. package/src/components/Card/CardHeader.tsx +11 -10
  209. package/src/components/Card/examples/Card.md +11 -9
  210. package/src/components/Card/examples/CardClickableSelectable.tsx +11 -8
  211. package/src/components/Card/examples/CardSelectable.tsx +3 -6
  212. package/src/components/Card/examples/CardSingleSelectable.tsx +14 -6
  213. package/src/components/Chip/__tests__/ChipGroup.test.tsx +3 -1
  214. package/src/components/ClipboardCopy/ClipboardCopy.tsx +17 -3
  215. package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +2 -0
  216. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
  217. package/src/components/DragDrop/examples/DragDrop.md +1 -0
  218. package/src/components/Drawer/__tests__/Drawer.test.tsx +2 -0
  219. package/src/components/Drawer/__tests__/DrawerPanelContent.test.tsx +2 -0
  220. package/src/components/Drawer/__tests__/Generated/DrawerPanelContent.test.tsx +2 -0
  221. package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +1 -1
  222. package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +8 -8
  223. package/src/components/Dropdown/Dropdown.tsx +12 -2
  224. package/src/components/Form/__tests__/FormFieldGroup.test.tsx +2 -0
  225. package/src/components/Form/__tests__/FormSection.test.tsx +2 -0
  226. package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +2 -2
  227. package/src/components/Form/__tests__/__snapshots__/FormSection.test.tsx.snap +2 -2
  228. package/src/components/Label/Label.tsx +16 -5
  229. package/src/components/Label/__tests__/LabelGroup.test.tsx +2 -0
  230. package/src/components/Label/__tests__/__snapshots__/LabelGroup.test.tsx.snap +8 -8
  231. package/src/components/Label/examples/LabelCompact.tsx +19 -1
  232. package/src/components/Label/examples/LabelFilled.tsx +106 -16
  233. package/src/components/Label/examples/LabelOutline.tsx +168 -16
  234. package/src/components/Menu/Menu.tsx +5 -3
  235. package/src/components/MenuToggle/MenuToggle.tsx +35 -0
  236. package/src/components/MenuToggle/MenuToggleCheckbox.tsx +2 -2
  237. package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +15 -0
  238. package/src/components/MenuToggle/examples/MenuToggle.md +39 -14
  239. package/src/components/MenuToggle/examples/MenuToggleSplitButtonCheckboxWithToggleText.tsx +51 -0
  240. package/src/components/MenuToggle/examples/MenuToggleStatus.tsx +20 -0
  241. package/src/components/MultipleFileUpload/__tests__/MultipleFileUpload.test.tsx +2 -0
  242. package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadStatus.test.tsx +2 -0
  243. package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +16 -16
  244. package/src/components/SearchInput/__tests__/SearchInput.test.tsx +1 -0
  245. package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +2 -2
  246. package/src/components/Select/examples/Select.md +30 -11
  247. package/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx +6 -1
  248. package/src/components/Select/examples/SelectValidated.tsx +74 -0
  249. package/src/components/Tabs/__tests__/Tabs.test.tsx +2 -0
  250. package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +3 -3
  251. package/src/components/TextArea/TextArea.tsx +0 -4
  252. package/src/components/Toolbar/__tests__/Toolbar.test.tsx +2 -0
  253. package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +11 -11
  254. package/src/demos/AlertGroup.md +2 -0
  255. package/src/demos/BackToTop.md +1 -0
  256. package/src/demos/Banner.md +5 -4
  257. package/src/demos/CardView/CardView.md +2 -0
  258. package/src/demos/CardView/examples/CardView.tsx +1 -1
  259. package/src/demos/DataList/examples/DataListBasic.tsx +1 -1
  260. package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +1 -1
  261. package/src/demos/DataListDemo.md +1 -0
  262. package/src/demos/Filters/examples/FilterAttributeSearch.tsx +1 -1
  263. package/src/demos/Filters/examples/FilterCheckboxSelect.tsx +1 -1
  264. package/src/demos/Filters/examples/FilterFaceted.tsx +1 -1
  265. package/src/demos/Filters/examples/FilterMixedSelectGroup.tsx +1 -1
  266. package/src/demos/Filters/examples/FilterSameSelectGroup.tsx +1 -1
  267. package/src/demos/Filters/examples/FilterSearchInput.tsx +1 -1
  268. package/src/demos/Filters/examples/FilterSingleSelect.tsx +1 -1
  269. package/src/demos/JumpLinks.md +2 -1
  270. package/src/demos/Nav.md +2 -0
  271. package/src/demos/PrimaryDetail.md +1 -0
  272. package/src/demos/RTL/RTL.md +1 -1
  273. package/src/demos/RTL/examples/{PaginatedTable.jsx → PaginatedTable.tsx} +48 -22
  274. package/src/demos/Tabs.md +5 -2
  275. package/src/demos/Toolbar.md +1 -0
  276. package/src/demos/Wizard/WizardDemo.md +1 -0
  277. package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +2 -2
  278. package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +1 -1
  279. package/src/demos/examples/Card/CardStatus.tsx +1 -1
  280. package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +1 -1
  281. package/src/demos/examples/Nav/NavDefault.tsx +2 -2
  282. package/src/demos/examples/Nav/NavDrilldown.tsx +1 -1
  283. package/src/demos/examples/Nav/NavExpandable.tsx +2 -2
  284. package/src/demos/examples/Nav/NavGrouped.tsx +1 -1
  285. package/src/demos/examples/Nav/NavHorizontal.tsx +1 -1
  286. package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +1 -1
  287. package/src/demos/examples/Nav/NavWithSubnav.tsx +2 -2
  288. package/src/demos/examples/Nav/deprecated/NavLight.tsx +1 -1
  289. package/src/demos/examples/Nav/deprecated/NavTertiary.tsx +2 -2
  290. package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +1 -1
  291. package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +1 -1
  292. package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +1 -1
  293. package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +1 -1
  294. package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +1 -1
  295. package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +1 -1
  296. package/src/demos/examples/Tabs/ModalTabs.tsx +1 -1
  297. package/src/demos/examples/Tabs/NestedTabs.tsx +1 -1
  298. package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +1 -1
  299. package/src/demos/examples/Tabs/TabsAndTable.tsx +2 -2
  300. package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +1 -1
  301. package/src/demos/examples/Wizard/InModal.tsx +1 -1
  302. package/src/demos/examples/Wizard/InPage.tsx +1 -1
  303. package/src/deprecated/components/Select/__tests__/Select.test.tsx +2 -0
  304. package/src/deprecated/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +25 -25
  305. package/src/helpers/GenerateId/GenerateId.ts +17 -3
  306. package/src/helpers/GenerateId/__mocks__/GenerateId.ts +11 -0
  307. package/src/helpers/GenerateId/__tests__/GenerateId.test.tsx +3 -1
@@ -467,7 +467,7 @@ export const FilterFaceted: React.FunctionComponent = () => {
467
467
  <Table aria-label="Selectable table">
468
468
  <Thead>
469
469
  <Tr>
470
- <Th />
470
+ <Th screenReaderText="Row select" />
471
471
  <Th width={20}>{columnNames.name}</Th>
472
472
  <Th width={10}>{columnNames.threads}</Th>
473
473
  <Th width={10}>{columnNames.apps}</Th>
@@ -517,7 +517,7 @@ export const FilterMixedSelectGroup: React.FunctionComponent = () => {
517
517
  <Table aria-label="Selectable table">
518
518
  <Thead>
519
519
  <Tr>
520
- <Th />
520
+ <Th screenReaderText="Row select" />
521
521
  <Th width={20}>{columnNames.name}</Th>
522
522
  <Th width={10}>{columnNames.threads}</Th>
523
523
  <Th width={10}>{columnNames.apps}</Th>
@@ -490,7 +490,7 @@ export const FilterSameSelectGroup: React.FunctionComponent = () => {
490
490
  <Table aria-label="Selectable table">
491
491
  <Thead>
492
492
  <Tr>
493
- <Th />
493
+ <Th screenReaderText="Row select" />
494
494
  <Th width={20}>{columnNames.name}</Th>
495
495
  <Th width={10}>{columnNames.threads}</Th>
496
496
  <Th width={10}>{columnNames.apps}</Th>
@@ -298,7 +298,7 @@ export const FilterSearchInput: React.FunctionComponent = () => {
298
298
  <Table aria-label="Selectable table">
299
299
  <Thead>
300
300
  <Tr>
301
- <Th />
301
+ <Th screenReaderText="Row select" />
302
302
  <Th width={20}>{columnNames.name}</Th>
303
303
  <Th width={10}>{columnNames.threads}</Th>
304
304
  <Th width={10}>{columnNames.apps}</Th>
@@ -362,7 +362,7 @@ export const FilterSingleSelect: React.FunctionComponent = () => {
362
362
  <Table aria-label="Selectable table">
363
363
  <Thead>
364
364
  <Tr>
365
- <Th />
365
+ <Th screenReaderText="Row select" />
366
366
  <Th width={20}>{columnNames.name}</Th>
367
367
  <Th width={10}>{columnNames.threads}</Th>
368
368
  <Th width={10}>{columnNames.apps}</Th>
@@ -4,6 +4,7 @@ section: components
4
4
  ---
5
5
 
6
6
  import mastheadStyles from '@patternfly/react-styles/css/components/Masthead/masthead';
7
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
7
8
 
8
9
  ## Demos
9
10
 
@@ -34,7 +35,7 @@ import {
34
35
  TextContent,
35
36
  getResizeObserver
36
37
  } from '@patternfly/react-core';
37
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
38
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
38
39
  import mastheadStyles from '@patternfly/react-styles/css/components/Masthead/masthead';
39
40
 
40
41
  ScrollspyH2 = () => {
package/src/demos/Nav.md CHANGED
@@ -11,6 +11,8 @@ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
11
11
  import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
12
12
  import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
13
13
  import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
14
+ import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
15
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
14
16
 
15
17
  ## Demos
16
18
 
@@ -24,6 +24,7 @@ import azureIcon from './assets/FuseConnector_Icons_AzureServices.png';
24
24
  import restIcon from './assets/FuseConnector_Icons_REST.png';
25
25
  import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
26
26
  import { data } from '@patternfly/react-core/src/demos/CardView/examples/CardViewData.jsx';
27
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
27
28
 
28
29
  ## Demos
29
30
 
@@ -26,6 +26,6 @@ This demonstrates how the UI adapts to the writing mode of the page.
26
26
 
27
27
  ### Paginated table
28
28
 
29
- ```js file="./examples/PaginatedTable.jsx" isFullscreen
29
+ ```js file="./examples/PaginatedTable.tsx" isFullscreen
30
30
 
31
31
  ```
@@ -58,10 +58,22 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico
58
58
  import HandPaperIcon from '@patternfly/react-icons/dist/esm/icons/hand-paper-icon';
59
59
  import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
60
60
 
61
- export const PaginatedTableAction = () => {
62
- const [translation, setTranslation] = React.useState(translationsEn);
63
- const [page, setPage] = React.useState(1);
64
- const [perPage, setPerPage] = React.useState(10);
61
+ interface Row {
62
+ name: string;
63
+ status: string;
64
+ location: string;
65
+ lastModified: string;
66
+ url: string;
67
+ }
68
+
69
+ interface Translation {
70
+ [key: string]: any;
71
+ }
72
+
73
+ export const PaginatedTableAction: React.FunctionComponent = () => {
74
+ const [translation, setTranslation] = React.useState<Translation>(translationsEn);
75
+ const [page, setPage] = React.useState<number>(1);
76
+ const [perPage, setPerPage] = React.useState<number>(10);
65
77
 
66
78
  const columns = [
67
79
  translation.table.columns.servers,
@@ -71,13 +83,13 @@ export const PaginatedTableAction = () => {
71
83
  translation.table.columns.url
72
84
  ];
73
85
 
74
- const numRows = 25;
75
- const getRandomInteger = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
86
+ const numRows: number = 25;
87
+ const getRandomInteger = (min: number, max: number) => Math.floor(Math.random() * (max - min + 1)) + min;
76
88
  const createRows = () => {
77
- const rows = [];
89
+ const rows: Row[] = [];
78
90
  for (let i = 0; i < numRows; i++) {
79
91
  const num = i + 1;
80
- const rowObj = {
92
+ const rowObj: Row = {
81
93
  name: translation.table.rows.node + num,
82
94
  status: [
83
95
  translation.table.rows.status.stopped,
@@ -110,14 +122,14 @@ export const PaginatedTableAction = () => {
110
122
 
111
123
  const rows = createRows();
112
124
  const [managedRows, setManagedRows] = React.useState(rows);
113
- const [paginatedRows, setPaginatedRows] = React.useState(rows.slice(0, 10));
114
- const [isDirRTL, setIsDirRTL] = React.useState(false);
125
+ const [paginatedRows, setPaginatedRows] = React.useState<Row[]>(rows.slice(0, 10));
126
+ const [isDirRTL, setIsDirRTL] = React.useState<boolean>(false);
115
127
 
116
- const capitalize = (input) => input[0].toUpperCase() + input.substring(1);
128
+ const capitalize = (input: string) => input[0].toUpperCase() + input.substring(1);
117
129
 
118
130
  const switchTranslation = () => {
119
131
  setIsDirRTL((prevIsDirRTL) => !prevIsDirRTL);
120
- setTranslation((prevTranslation) => (prevTranslation === translationsEn ? translationsHe : translationsEn));
132
+ setTranslation((prevTranslation: string) => (prevTranslation === translationsEn ? translationsHe : translationsEn));
121
133
  };
122
134
 
123
135
  React.useEffect(() => {
@@ -133,17 +145,29 @@ export const PaginatedTableAction = () => {
133
145
 
134
146
  // Pagination logic
135
147
 
136
- const handleSetPage = (_evt, newPage, _perPage, startIdx, endIdx) => {
148
+ const handleSetPage = (
149
+ _evt: React.MouseEvent | React.KeyboardEvent | MouseEvent,
150
+ newPage: number,
151
+ _perPage: number | undefined,
152
+ startIdx: number | undefined,
153
+ endIdx: number | undefined
154
+ ) => {
137
155
  setPaginatedRows(managedRows.slice(startIdx, endIdx));
138
156
  setPage(newPage);
139
157
  };
140
158
 
141
- const handlePerPageSelect = (_evt, newPerPage, _newPage, startIdx, endIdx) => {
159
+ const handlePerPageSelect = (
160
+ _evt: React.MouseEvent | React.KeyboardEvent | MouseEvent,
161
+ newPerPage: number,
162
+ _newPage: number,
163
+ startIdx: number | undefined,
164
+ endIdx: number | undefined
165
+ ) => {
142
166
  setPaginatedRows(managedRows.slice(startIdx, endIdx));
143
167
  setPerPage(newPerPage);
144
168
  };
145
169
 
146
- const renderPagination = (variant) => {
170
+ const renderPagination = (variant: PaginationVariant) => {
147
171
  const { pagination } = translation;
148
172
 
149
173
  return (
@@ -181,7 +205,7 @@ export const PaginatedTableAction = () => {
181
205
  }
182
206
  };
183
207
 
184
- const renderLabel = (labelText) => {
208
+ const renderLabel = (labelText: string) => {
185
209
  switch (labelText) {
186
210
  case 'Running':
187
211
  case 'רץ':
@@ -280,9 +304,9 @@ export const PaginatedTableAction = () => {
280
304
  </PageSidebar>
281
305
  );
282
306
 
283
- const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
284
- const [isKebabDropdownOpen, setIsKebabDropdownOpen] = React.useState(false);
285
- const [isFullKebabDropdownOpen, setIsFullKebabDropdownOpen] = React.useState(false);
307
+ const [isDropdownOpen, setIsDropdownOpen] = React.useState<boolean>(false);
308
+ const [isKebabDropdownOpen, setIsKebabDropdownOpen] = React.useState<boolean>(false);
309
+ const [isFullKebabDropdownOpen, setIsFullKebabDropdownOpen] = React.useState<boolean>(false);
286
310
 
287
311
  const kebabDropdownItems = (
288
312
  <>
@@ -434,15 +458,17 @@ export const PaginatedTableAction = () => {
434
458
  </Masthead>
435
459
  );
436
460
 
461
+ const breadcrumbItemsLength = Object.keys(breadcrumbItems).length;
462
+
437
463
  return (
438
464
  <React.Fragment>
439
465
  <Page sidebar={sidebar} header={masthead} isManagedSidebar>
440
466
  <PageBreadcrumb>
441
467
  <Breadcrumb aria-label={translation.breadcrumbs.ariaLabel || undefined}>
442
- {Object.keys(breadcrumbItems).map((key, idx, arr) => (
468
+ {Object.keys(breadcrumbItems).map((key: string, idx: number, arr: string[]) => (
443
469
  <BreadcrumbItem key={idx} isActive={arr.length - 1 === idx} to={`${breadcrumbItems[key].url}`}>
444
470
  {translation.breadcrumbs[key]}
445
- {breadcrumbItems.length}
471
+ {breadcrumbItemsLength}
446
472
  </BreadcrumbItem>
447
473
  ))}
448
474
  </Breadcrumb>
@@ -465,7 +491,7 @@ export const PaginatedTableAction = () => {
465
491
  </Tr>
466
492
  </Thead>
467
493
  <Tbody>
468
- {paginatedRows.map((row, rowIndex) => (
494
+ {paginatedRows.map((row: Row, rowIndex: number) => (
469
495
  <Tr key={rowIndex}>
470
496
  <>
471
497
  {Object.entries(row).map(([key, value]) => {
package/src/demos/Tabs.md CHANGED
@@ -11,7 +11,10 @@ import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
11
11
  import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
12
12
  import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
13
13
  import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
14
+ import display from '@patternfly/react-styles/css/utilities/Display/display';
15
+ import sizing from '@patternfly/react-styles/css/utilities/Sizing/sizing';
14
16
  import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
17
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
15
18
 
16
19
  ## Demos
17
20
 
@@ -43,7 +46,7 @@ import {
43
46
  import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
44
47
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
45
48
  import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
46
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
49
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
47
50
 
48
51
 
49
52
  TabsOpenDemo = () => {
@@ -235,7 +238,7 @@ import {
235
238
  import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
236
239
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
237
240
  import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
238
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
241
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
239
242
 
240
243
  TabsOpenWithSecondaryTabsDemo = () => {
241
244
  const [activeTabKey, setActiveTabKey] = React.useState(0);
@@ -11,6 +11,7 @@ import DownloadIcon from '@patternfly/react-icons/dist/esm/icons/download-icon';
11
11
  import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
12
12
  import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
13
13
  import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
14
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
14
15
 
15
16
  ## Demos
16
17
 
@@ -6,6 +6,7 @@ source: react-demos
6
6
 
7
7
  import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
8
8
  import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
9
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
9
10
 
10
11
  ## Demos
11
12
 
@@ -33,8 +33,8 @@ import {
33
33
  } from '@patternfly/react-core';
34
34
  import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
35
35
  import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
36
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
37
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
36
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
37
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
38
38
 
39
39
  interface NotificationProps {
40
40
  title: string;
@@ -12,7 +12,7 @@ import {
12
12
  Page,
13
13
  Switch
14
14
  } from '@patternfly/react-core';
15
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
15
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
16
16
 
17
17
  export const Name = () => {
18
18
  const [isAlwaysVisible, setIsAlwaysVisible] = React.useState(false);
@@ -94,7 +94,7 @@ export const CardStatus: React.FunctionComponent = () => {
94
94
  <Table variant="compact">
95
95
  <Thead>
96
96
  <Tr>
97
- <Th />
97
+ <Th screenReaderText="Row expansion" />
98
98
  {columns.map((column, columnIndex) => (
99
99
  <Th key={columnIndex} modifier="fitContent">
100
100
  {column}
@@ -20,7 +20,7 @@ import {
20
20
  getResizeObserver,
21
21
  DrawerContext
22
22
  } from '@patternfly/react-core';
23
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
23
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
24
24
  import mastheadStyles from '@patternfly/react-styles/css/components/Masthead/masthead';
25
25
 
26
26
  const JumpLinksWrapper = ({ offsetHeight, headings }) => {
@@ -16,8 +16,8 @@ import {
16
16
  TextContent,
17
17
  Text
18
18
  } from '@patternfly/react-core';
19
- import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
20
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
19
+ import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
20
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
21
21
 
22
22
  export const NavDefault: React.FunctionComponent = () => {
23
23
  const [activeItem, setActiveItem] = React.useState<number | string>(0);
@@ -12,7 +12,7 @@ import {
12
12
  Menu,
13
13
  PageSection
14
14
  } from '@patternfly/react-core';
15
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
15
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
16
16
 
17
17
  interface MenuHeights {
18
18
  [menuId: string]: number;
@@ -17,8 +17,8 @@ import {
17
17
  TextContent,
18
18
  Text
19
19
  } from '@patternfly/react-core';
20
- import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
21
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
20
+ import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
21
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
22
22
 
23
23
  export const NavExpandableDemo: React.FunctionComponent = () => {
24
24
  const [activeGroup, setActiveGroup] = React.useState<string | number>('grp-1');
@@ -12,7 +12,7 @@ import {
12
12
  TextContent,
13
13
  Text
14
14
  } from '@patternfly/react-core';
15
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
15
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
16
16
 
17
17
  export const NavGrouped: React.FunctionComponent = () => {
18
18
  const [activeItem, setActiveItem] = React.useState<number | string>('grp-1_itm-1');
@@ -39,7 +39,7 @@ import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-ico
39
39
  import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
40
40
  import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
41
41
  import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
42
- import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
42
+ import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
43
43
 
44
44
  export const NavHorizontal: React.FunctionComponent = () => {
45
45
  const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
@@ -43,7 +43,7 @@ import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
43
43
  import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
44
44
  import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
45
45
  import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.svg';
46
- import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
46
+ import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
47
47
 
48
48
  export const NavHorizontalWithSubnav: React.FunctionComponent = () => {
49
49
  const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
@@ -17,8 +17,8 @@ import {
17
17
  TextContent,
18
18
  Text
19
19
  } from '@patternfly/react-core';
20
- import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
21
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
20
+ import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
21
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
22
22
 
23
23
  export const NavWithSubnav: React.FunctionComponent = () => {
24
24
  const [activeItem, setActiveItem] = React.useState<string | number>(0);
@@ -16,7 +16,7 @@ import {
16
16
  TextContent,
17
17
  Text
18
18
  } from '@patternfly/react-core';
19
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
19
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
20
20
 
21
21
  export const NavLight: React.FunctionComponent = () => {
22
22
  const [activeItem, setActiveItem] = React.useState<string | number>(0);
@@ -14,8 +14,8 @@ import {
14
14
  TextContent,
15
15
  Text
16
16
  } from '@patternfly/react-core';
17
- import { DashboardBreadcrumb } from '@patternfly/react-core/src/demos/DashboardWrapper';
18
- import { DashboardHeader } from '@patternfly/react-core/src/demos/DashboardHeader';
17
+ import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
18
+ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
19
19
 
20
20
  export const NavTertiary: React.FunctionComponent = () => {
21
21
  const [activeItem, setActiveItem] = React.useState<string | number>(0);
@@ -51,7 +51,7 @@ import swaggerIcon from './assets/camel-swagger-java_200x150.png';
51
51
  import azureIcon from './assets/FuseConnector_Icons_AzureServices.png';
52
52
  import restIcon from './assets/FuseConnector_Icons_REST.png';
53
53
  import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
54
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
54
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
55
55
  import { data } from '@patternfly/react-core/src/demos/CardView/examples/CardViewData.jsx';
56
56
 
57
57
  export const PrimaryDetailCardView: React.FunctionComponent = () => {
@@ -40,7 +40,7 @@ import {
40
40
  SelectOptionProps,
41
41
  MenuToggle
42
42
  } from '@patternfly/react-core';
43
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
43
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
44
44
  import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
45
45
  import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
46
46
  import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
@@ -31,7 +31,7 @@ import {
31
31
  TextContent,
32
32
  Title
33
33
  } from '@patternfly/react-core';
34
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
34
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
35
35
 
36
36
  export const PrimaryDetailDataListInCard: React.FunctionComponent = () => {
37
37
  const [drawerPanelBodyContent, setDrawerPanelBodyContent] = React.useState(1);
@@ -40,7 +40,7 @@ import {
40
40
  SelectOptionProps,
41
41
  MenuToggle
42
42
  } from '@patternfly/react-core';
43
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
43
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
44
44
  import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
45
45
  import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
46
46
  import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
@@ -40,7 +40,7 @@ import {
40
40
  SelectOptionProps,
41
41
  MenuToggle
42
42
  } from '@patternfly/react-core';
43
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
43
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
44
44
  import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
45
45
  import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
46
46
  import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
@@ -22,7 +22,7 @@ import {
22
22
  TextContent,
23
23
  Title
24
24
  } from '@patternfly/react-core';
25
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
25
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
26
26
 
27
27
  export const PrimaryDetailSimpleListInCard: React.FunctionComponent = () => {
28
28
  const [drawerPanelBodyContent, setDrawerPanelBodyContent] = React.useState(1);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
2
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
3
3
  import {
4
4
  PageSection,
5
5
  TextContent,
@@ -16,7 +16,7 @@ import {
16
16
  Flex,
17
17
  FlexItem
18
18
  } from '@patternfly/react-core';
19
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
19
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
20
20
  import sizing from '@patternfly/react-styles/css/utilities/Sizing/sizing';
21
21
 
22
22
  export const NestedTabs: React.FunctionComponent = () => {
@@ -17,7 +17,7 @@ import {
17
17
  TitleSizes,
18
18
  CardTitle
19
19
  } from '@patternfly/react-core';
20
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
20
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
21
21
 
22
22
  export const NestedUnindentedTabs: React.FunctionComponent = () => {
23
23
  const [activeTabKey, setActiveTabKey] = React.useState(1);
@@ -57,7 +57,7 @@ import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
57
57
  import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
58
58
  import { KeyTypes } from '../../../helpers';
59
59
  import display from '@patternfly/react-styles/css/utilities/Display/display';
60
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
60
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
61
61
 
62
62
  interface Repository {
63
63
  name: string;
@@ -230,7 +230,7 @@ export const TablesAndTabs = () => {
230
230
  <Table aria-label="`Composable` table">
231
231
  <Thead noWrap>
232
232
  <Tr>
233
- <Th />
233
+ <Th screenReaderText="Row select" />
234
234
  <Th>{columnNames.name}</Th>
235
235
  <Th>{columnNames.branches}</Th>
236
236
  <Th>{columnNames.prs}</Th>
@@ -20,7 +20,7 @@ import {
20
20
  DropdownList,
21
21
  MenuFooter
22
22
  } from '@patternfly/react-core';
23
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
23
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
24
24
  import PauseIcon from '@patternfly/react-icons/dist/esm/icons/pause-icon';
25
25
  import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
26
26
  import ExpandIcon from '@patternfly/react-icons/dist/esm/icons/expand-icon';
@@ -11,7 +11,7 @@ import {
11
11
  WizardHeader,
12
12
  WizardStep
13
13
  } from '@patternfly/react-core';
14
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
14
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
15
15
 
16
16
  export const WizardInModalDemo: React.FunctionComponent = () => (
17
17
  <>
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PageSection, PageSectionTypes, PageSectionVariants, Wizard, WizardStep } from '@patternfly/react-core';
3
- import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
3
+ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
4
4
 
5
5
  export const WizardFullPage: React.FunctionComponent = () => (
6
6
  <React.Fragment>
@@ -9,6 +9,8 @@ import { SelectGroup } from '../SelectGroup';
9
9
  import { SelectVariant, SelectDirection } from '../selectConstants';
10
10
  import { KeyTypes } from '../../../../helpers';
11
11
 
12
+ jest.mock('../../../../helpers/GenerateId/GenerateId');
13
+
12
14
  class User implements SelectOptionObject {
13
15
  private firstName: string;
14
16
  private lastName: string;