@patternfly/react-table 6.0.0-alpha.6 → 6.0.0-alpha.61

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 +772 -2
  2. package/README.md +2 -17
  3. package/components/package.json +1 -1
  4. package/deprecated/package.json +1 -1
  5. package/dist/dynamic/components/Table/package.json +1 -1
  6. package/dist/dynamic/components/Table/utils/decorators/package.json +1 -1
  7. package/dist/dynamic/components/Table/utils/package.json +1 -1
  8. package/dist/dynamic/deprecated/components/Table/base/package.json +1 -1
  9. package/dist/dynamic/deprecated/components/Table/package.json +1 -1
  10. package/dist/dynamic/deprecated/components/package.json +1 -1
  11. package/dist/dynamic-modules.json +127 -0
  12. package/dist/esm/components/Table/ActionsColumn.d.ts +2 -0
  13. package/dist/esm/components/Table/ActionsColumn.d.ts.map +1 -1
  14. package/dist/esm/components/Table/ActionsColumn.js +4 -5
  15. package/dist/esm/components/Table/ActionsColumn.js.map +1 -1
  16. package/dist/esm/components/Table/Caption.js +1 -1
  17. package/dist/esm/components/Table/Caption.js.map +1 -1
  18. package/dist/esm/components/Table/CollapseColumn.js +1 -1
  19. package/dist/esm/components/Table/CollapseColumn.js.map +1 -1
  20. package/dist/esm/components/Table/DraggableRowWrapper.js +2 -2
  21. package/dist/esm/components/Table/DraggableRowWrapper.js.map +1 -1
  22. package/dist/esm/components/Table/EditColumn.js +1 -1
  23. package/dist/esm/components/Table/EditColumn.js.map +1 -1
  24. package/dist/esm/components/Table/EditableSelectInputCell.d.ts +3 -4
  25. package/dist/esm/components/Table/EditableSelectInputCell.d.ts.map +1 -1
  26. package/dist/esm/components/Table/EditableSelectInputCell.js +11 -7
  27. package/dist/esm/components/Table/EditableSelectInputCell.js.map +1 -1
  28. package/dist/esm/components/Table/EditableTextCell.js +3 -3
  29. package/dist/esm/components/Table/EditableTextCell.js.map +1 -1
  30. package/dist/esm/components/Table/ExpandableRowContent.js +1 -1
  31. package/dist/esm/components/Table/ExpandableRowContent.js.map +1 -1
  32. package/dist/esm/components/Table/HeaderCellInfoWrapper.js +1 -1
  33. package/dist/esm/components/Table/HeaderCellInfoWrapper.js.map +1 -1
  34. package/dist/esm/components/Table/InnerScrollContainer.js +1 -1
  35. package/dist/esm/components/Table/InnerScrollContainer.js.map +1 -1
  36. package/dist/esm/components/Table/OuterScrollContainer.js +1 -1
  37. package/dist/esm/components/Table/OuterScrollContainer.js.map +1 -1
  38. package/dist/esm/components/Table/RowWrapper.js.map +1 -1
  39. package/dist/esm/components/Table/SortColumn.js +1 -1
  40. package/dist/esm/components/Table/SortColumn.js.map +1 -1
  41. package/dist/esm/components/Table/Table.d.ts.map +1 -1
  42. package/dist/esm/components/Table/Table.js +7 -7
  43. package/dist/esm/components/Table/Table.js.map +1 -1
  44. package/dist/esm/components/Table/TableText.js +1 -1
  45. package/dist/esm/components/Table/TableText.js.map +1 -1
  46. package/dist/esm/components/Table/TableTypes.d.ts +26 -25
  47. package/dist/esm/components/Table/TableTypes.d.ts.map +1 -1
  48. package/dist/esm/components/Table/TableTypes.js.map +1 -1
  49. package/dist/esm/components/Table/Tbody.js +1 -1
  50. package/dist/esm/components/Table/Tbody.js.map +1 -1
  51. package/dist/esm/components/Table/Td.d.ts +1 -1
  52. package/dist/esm/components/Table/Td.js +6 -6
  53. package/dist/esm/components/Table/Td.js.map +1 -1
  54. package/dist/esm/components/Table/Th.d.ts +8 -0
  55. package/dist/esm/components/Table/Th.d.ts.map +1 -1
  56. package/dist/esm/components/Table/Th.js +12 -8
  57. package/dist/esm/components/Table/Th.js.map +1 -1
  58. package/dist/esm/components/Table/Thead.js +1 -1
  59. package/dist/esm/components/Table/Thead.js.map +1 -1
  60. package/dist/esm/components/Table/Tr.js +2 -2
  61. package/dist/esm/components/Table/Tr.js.map +1 -1
  62. package/dist/esm/components/Table/TreeRowWrapper.js +2 -2
  63. package/dist/esm/components/Table/TreeRowWrapper.js.map +1 -1
  64. package/dist/esm/components/Table/base/columns-are-equal.js.map +1 -1
  65. package/dist/esm/components/Table/base/evaluate-transforms.js.map +1 -1
  66. package/dist/esm/components/Table/base/merge-props.js.map +1 -1
  67. package/dist/esm/components/Table/base/provider.js.map +1 -1
  68. package/dist/esm/components/Table/base/types.d.ts +16 -17
  69. package/dist/esm/components/Table/base/types.d.ts.map +1 -1
  70. package/dist/esm/components/Table/base/types.js.map +1 -1
  71. package/dist/esm/components/Table/utils/decorators/cellActions.js +1 -1
  72. package/dist/esm/components/Table/utils/decorators/cellActions.js.map +1 -1
  73. package/dist/esm/components/Table/utils/decorators/cellWidth.js +1 -1
  74. package/dist/esm/components/Table/utils/decorators/cellWidth.js.map +1 -1
  75. package/dist/esm/components/Table/utils/decorators/classNames.js +1 -1
  76. package/dist/esm/components/Table/utils/decorators/classNames.js.map +1 -1
  77. package/dist/esm/components/Table/utils/decorators/collapsible.js +1 -1
  78. package/dist/esm/components/Table/utils/decorators/collapsible.js.map +1 -1
  79. package/dist/esm/components/Table/utils/decorators/compoundExpand.js +1 -1
  80. package/dist/esm/components/Table/utils/decorators/compoundExpand.js.map +1 -1
  81. package/dist/esm/components/Table/utils/decorators/editable.js +1 -1
  82. package/dist/esm/components/Table/utils/decorators/editable.js.map +1 -1
  83. package/dist/esm/components/Table/utils/decorators/favoritable.js +1 -1
  84. package/dist/esm/components/Table/utils/decorators/favoritable.js.map +1 -1
  85. package/dist/esm/components/Table/utils/decorators/info.js +1 -1
  86. package/dist/esm/components/Table/utils/decorators/info.js.map +1 -1
  87. package/dist/esm/components/Table/utils/decorators/selectable.js +3 -3
  88. package/dist/esm/components/Table/utils/decorators/selectable.js.map +1 -1
  89. package/dist/esm/components/Table/utils/decorators/sortable.js +1 -1
  90. package/dist/esm/components/Table/utils/decorators/sortable.js.map +1 -1
  91. package/dist/esm/components/Table/utils/decorators/treeRow.d.ts +1 -1
  92. package/dist/esm/components/Table/utils/decorators/treeRow.js +2 -2
  93. package/dist/esm/components/Table/utils/decorators/treeRow.js.map +1 -1
  94. package/dist/esm/components/Table/utils/decorators/wrappable.js +1 -1
  95. package/dist/esm/components/Table/utils/decorators/wrappable.js.map +1 -1
  96. package/dist/esm/components/Table/utils/headerUtils.js.map +1 -1
  97. package/dist/esm/components/Table/utils/utils.js.map +1 -1
  98. package/dist/esm/demos/DashboardHeader.d.ts +8 -0
  99. package/dist/esm/demos/DashboardHeader.d.ts.map +1 -0
  100. package/dist/esm/demos/DashboardHeader.js +77 -0
  101. package/dist/esm/demos/DashboardHeader.js.map +1 -0
  102. package/dist/esm/demos/DashboardWrapper.d.ts +85 -0
  103. package/dist/esm/demos/DashboardWrapper.d.ts.map +1 -0
  104. package/dist/esm/demos/DashboardWrapper.js +41 -0
  105. package/dist/esm/demos/DashboardWrapper.js.map +1 -0
  106. package/dist/esm/demos/index.d.ts +2 -0
  107. package/dist/esm/demos/index.d.ts.map +1 -1
  108. package/dist/esm/demos/index.js +2 -0
  109. package/dist/esm/demos/index.js.map +1 -1
  110. package/dist/esm/deprecated/components/Table/Body.d.ts +1 -1
  111. package/dist/esm/deprecated/components/Table/Body.d.ts.map +1 -1
  112. package/dist/esm/deprecated/components/Table/Body.js.map +1 -1
  113. package/dist/esm/deprecated/components/Table/BodyCell.js.map +1 -1
  114. package/dist/esm/deprecated/components/Table/BodyWrapper.js.map +1 -1
  115. package/dist/esm/deprecated/components/Table/Table.d.ts.map +1 -1
  116. package/dist/esm/deprecated/components/Table/Table.js +3 -4
  117. package/dist/esm/deprecated/components/Table/Table.js.map +1 -1
  118. package/dist/esm/deprecated/components/Table/base/body-row.js.map +1 -1
  119. package/dist/esm/deprecated/components/Table/base/body.js.map +1 -1
  120. package/dist/esm/deprecated/components/Table/base/header-row.js.map +1 -1
  121. package/dist/esm/deprecated/components/Table/base/resolve-row-key.js.map +1 -1
  122. package/dist/esm/test-helpers/data-helpers.js.map +1 -1
  123. package/dist/js/components/Table/ActionsColumn.d.ts +2 -0
  124. package/dist/js/components/Table/ActionsColumn.d.ts.map +1 -1
  125. package/dist/js/components/Table/ActionsColumn.js +10 -11
  126. package/dist/js/components/Table/ActionsColumn.js.map +1 -1
  127. package/dist/js/components/Table/CollapseColumn.js +2 -2
  128. package/dist/js/components/Table/CollapseColumn.js.map +1 -1
  129. package/dist/js/components/Table/DraggableCell.js +2 -2
  130. package/dist/js/components/Table/DraggableCell.js.map +1 -1
  131. package/dist/js/components/Table/EditColumn.js +4 -4
  132. package/dist/js/components/Table/EditColumn.js.map +1 -1
  133. package/dist/js/components/Table/EditableSelectInputCell.d.ts +3 -4
  134. package/dist/js/components/Table/EditableSelectInputCell.d.ts.map +1 -1
  135. package/dist/js/components/Table/EditableSelectInputCell.js +9 -5
  136. package/dist/js/components/Table/EditableSelectInputCell.js.map +1 -1
  137. package/dist/js/components/Table/EditableTextCell.js +2 -2
  138. package/dist/js/components/Table/EditableTextCell.js.map +1 -1
  139. package/dist/js/components/Table/FavoritesCell.js +2 -2
  140. package/dist/js/components/Table/FavoritesCell.js.map +1 -1
  141. package/dist/js/components/Table/HeaderCellInfoWrapper.js +4 -4
  142. package/dist/js/components/Table/HeaderCellInfoWrapper.js.map +1 -1
  143. package/dist/js/components/Table/RowWrapper.js +1 -2
  144. package/dist/js/components/Table/RowWrapper.js.map +1 -1
  145. package/dist/js/components/Table/SelectColumn.js +2 -2
  146. package/dist/js/components/Table/SelectColumn.js.map +1 -1
  147. package/dist/js/components/Table/SortColumn.js +4 -5
  148. package/dist/js/components/Table/SortColumn.js.map +1 -1
  149. package/dist/js/components/Table/Table.d.ts.map +1 -1
  150. package/dist/js/components/Table/Table.js +3 -3
  151. package/dist/js/components/Table/Table.js.map +1 -1
  152. package/dist/js/components/Table/TableText.js +3 -3
  153. package/dist/js/components/Table/TableText.js.map +1 -1
  154. package/dist/js/components/Table/TableTypes.d.ts +26 -25
  155. package/dist/js/components/Table/TableTypes.d.ts.map +1 -1
  156. package/dist/js/components/Table/TableTypes.js +2 -6
  157. package/dist/js/components/Table/TableTypes.js.map +1 -1
  158. package/dist/js/components/Table/Td.d.ts +1 -1
  159. package/dist/js/components/Table/Td.js +5 -5
  160. package/dist/js/components/Table/Td.js.map +1 -1
  161. package/dist/js/components/Table/Th.d.ts +8 -0
  162. package/dist/js/components/Table/Th.d.ts.map +1 -1
  163. package/dist/js/components/Table/Th.js +12 -8
  164. package/dist/js/components/Table/Th.js.map +1 -1
  165. package/dist/js/components/Table/Tr.js +1 -1
  166. package/dist/js/components/Table/Tr.js.map +1 -1
  167. package/dist/js/components/Table/base/columns-are-equal.js.map +1 -1
  168. package/dist/js/components/Table/base/evaluate-transforms.js.map +1 -1
  169. package/dist/js/components/Table/base/merge-props.js.map +1 -1
  170. package/dist/js/components/Table/base/provider.js.map +1 -1
  171. package/dist/js/components/Table/base/types.d.ts +16 -17
  172. package/dist/js/components/Table/base/types.d.ts.map +1 -1
  173. package/dist/js/components/Table/base/types.js +0 -4
  174. package/dist/js/components/Table/base/types.js.map +1 -1
  175. package/dist/js/components/Table/utils/decorators/compoundExpand.js.map +1 -1
  176. package/dist/js/components/Table/utils/decorators/editable.js.map +1 -1
  177. package/dist/js/components/Table/utils/decorators/favoritable.js.map +1 -1
  178. package/dist/js/components/Table/utils/decorators/selectable.js +1 -1
  179. package/dist/js/components/Table/utils/decorators/selectable.js.map +1 -1
  180. package/dist/js/components/Table/utils/decorators/sortable.js +1 -1
  181. package/dist/js/components/Table/utils/decorators/sortable.js.map +1 -1
  182. package/dist/js/components/Table/utils/decorators/treeRow.d.ts +1 -1
  183. package/dist/js/components/Table/utils/decorators/treeRow.js +4 -4
  184. package/dist/js/components/Table/utils/decorators/treeRow.js.map +1 -1
  185. package/dist/js/components/Table/utils/headerUtils.js.map +1 -1
  186. package/dist/js/components/Table/utils/utils.js.map +1 -1
  187. package/dist/js/demos/DashboardHeader.d.ts +8 -0
  188. package/dist/js/demos/DashboardHeader.d.ts.map +1 -0
  189. package/dist/js/demos/DashboardHeader.js +82 -0
  190. package/dist/js/demos/DashboardHeader.js.map +1 -0
  191. package/dist/js/demos/DashboardWrapper.d.ts +85 -0
  192. package/dist/js/demos/DashboardWrapper.d.ts.map +1 -0
  193. package/dist/js/demos/DashboardWrapper.js +45 -0
  194. package/dist/js/demos/DashboardWrapper.js.map +1 -0
  195. package/dist/js/demos/index.d.ts +2 -0
  196. package/dist/js/demos/index.d.ts.map +1 -1
  197. package/dist/js/demos/index.js +2 -0
  198. package/dist/js/demos/index.js.map +1 -1
  199. package/dist/js/deprecated/components/Table/Body.d.ts +1 -1
  200. package/dist/js/deprecated/components/Table/Body.d.ts.map +1 -1
  201. package/dist/js/deprecated/components/Table/Body.js.map +1 -1
  202. package/dist/js/deprecated/components/Table/BodyCell.js +3 -4
  203. package/dist/js/deprecated/components/Table/BodyCell.js.map +1 -1
  204. package/dist/js/deprecated/components/Table/BodyWrapper.js.map +1 -1
  205. package/dist/js/deprecated/components/Table/Table.d.ts.map +1 -1
  206. package/dist/js/deprecated/components/Table/Table.js +9 -10
  207. package/dist/js/deprecated/components/Table/Table.js.map +1 -1
  208. package/dist/js/deprecated/components/Table/base/body-row.js.map +1 -1
  209. package/dist/js/deprecated/components/Table/base/body.js.map +1 -1
  210. package/dist/js/deprecated/components/Table/base/header-row.js.map +1 -1
  211. package/dist/js/deprecated/components/Table/base/resolve-row-key.js.map +1 -1
  212. package/dist/js/test-helpers/data-helpers.js.map +1 -1
  213. package/dist/umd/assets/output-DqPIuXtB.css +27998 -0
  214. package/dist/umd/react-table.min.js +4 -4
  215. package/package.json +7 -11
  216. package/rollup.config.mjs +8 -0
  217. package/single-packages.config.json +3 -6
  218. package/src/components/Table/ActionsColumn.tsx +35 -31
  219. package/src/components/Table/EditableSelectInputCell.tsx +16 -11
  220. package/src/components/Table/EditableTextCell.tsx +1 -1
  221. package/src/components/Table/Table.tsx +4 -4
  222. package/src/components/Table/TableTypes.tsx +9 -8
  223. package/src/components/Table/Td.tsx +5 -5
  224. package/src/components/Table/Th.tsx +24 -6
  225. package/src/components/Table/__tests__/Th.test.tsx +31 -0
  226. package/src/components/Table/__tests__/__snapshots__/RowWrapper.test.tsx.snap +4 -4
  227. package/src/components/Table/base/types.tsx +6 -7
  228. package/src/components/Table/examples/Table.md +35 -4
  229. package/src/components/Table/examples/TableActions.tsx +2 -2
  230. package/src/components/Table/examples/TableActionsOverflow.tsx +3 -4
  231. package/src/components/Table/examples/TableCompoundExpandable.tsx +1 -1
  232. package/src/components/Table/examples/TableDraggable.tsx +19 -16
  233. package/src/components/Table/examples/TableEmptyState.tsx +1 -8
  234. package/src/components/Table/examples/TableExpandable.tsx +1 -1
  235. package/src/components/Table/examples/TableMisc.tsx +2 -2
  236. package/src/components/Table/examples/TableNestedExpandable.tsx +1 -1
  237. package/src/components/Table/examples/TableNestedHeaders.tsx +4 -6
  238. package/src/components/Table/examples/TableNestedStickyHeader.tsx +4 -9
  239. package/src/components/Table/examples/TableNestedTableExpandable.tsx +1 -1
  240. package/src/components/Table/examples/TableSelectable.tsx +1 -0
  241. package/src/components/Table/examples/TableSelectableRadio.tsx +1 -1
  242. package/src/components/Table/examples/TableSortableCustom.tsx +2 -3
  243. package/src/components/Table/examples/TableStickyColumnsAndHeader.tsx +1 -1
  244. package/src/components/Table/examples/TableStripedExpandable.tsx +1 -1
  245. package/src/components/Table/utils/__snapshots__/transformers.test.tsx.snap +2 -2
  246. package/src/components/Table/utils/decorators/selectable.tsx +1 -1
  247. package/src/components/Table/utils/transformers.test.tsx +4 -7
  248. package/src/demos/DashboardHeader.tsx +198 -0
  249. package/src/demos/DashboardWrapper.tsx +199 -0
  250. package/src/demos/Table.md +28 -5
  251. package/src/demos/assets/avatarImg.svg +18 -0
  252. package/src/demos/assets/index.d.ts +4 -0
  253. package/src/demos/assets/pf-logo.svg +28 -0
  254. package/src/demos/examples/TableBulkSelect.tsx +2 -2
  255. package/src/demos/examples/TableColumnManagement.tsx +1 -1
  256. package/src/demos/examples/TableColumnManagementWithDraggable.tsx +2 -6
  257. package/src/demos/examples/TableCompact.tsx +8 -3
  258. package/src/demos/examples/TableCompoundExpansion.tsx +4 -3
  259. package/src/demos/examples/TableEmptyStateDefault.tsx +1 -1
  260. package/src/demos/examples/TableEmptyStateError.tsx +3 -4
  261. package/src/demos/examples/TableEmptyStateLoading.tsx +1 -1
  262. package/src/demos/examples/TableExpandCollapseAll.tsx +3 -2
  263. package/src/demos/examples/TableSortableResponsive.tsx +6 -8
  264. package/src/demos/examples/TableStaticBottomPagination.tsx +8 -3
  265. package/src/demos/examples/TableStickyFirstColumn.tsx +1 -1
  266. package/src/demos/examples/TableStickyHeader.tsx +1 -1
  267. package/src/demos/index.ts +2 -0
  268. package/src/deprecated/components/Table/Table.tsx +2 -3
  269. package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +2225 -2143
  270. package/src/deprecated/components/Table/examples/LegacyTableEmptyState.tsx +6 -8
  271. package/src/deprecated/components/Table/examples/LegacyTableMisc.tsx +2 -2
  272. package/src/deprecated/components/Table/examples/LegacyTableSortableCustom.tsx +2 -3
  273. package/src/deprecated/components/Table/examples/Table.md +48 -41
  274. package/rollup.config.js +0 -7
@@ -56,7 +56,7 @@ import { css } from '@patternfly/react-styles';
56
56
  import styles from '@patternfly/react-styles/css/components/Table/table';
57
57
  import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
58
58
  import textStyles from '@patternfly/react-styles/css/utilities/Text/text';
59
- import global_BackgroundColor_150 from '@patternfly/react-tokens/dist/esm/global_BackgroundColor_150';
59
+ import global_background_color_secondary_default from '@patternfly/react-tokens/dist/esm/global_background_color_secondary_default';
60
60
 
61
61
  ## Table examples
62
62
 
@@ -71,6 +71,7 @@ Some general notes:
71
71
  ### Basic
72
72
 
73
73
  ```ts file="TableBasic.tsx"
74
+
74
75
  ```
75
76
 
76
77
  ### Custom row wrapper, header tooltips & popovers
@@ -82,6 +83,7 @@ Some general notes:
82
83
  To add a header tooltip or popover to `Th`, pass a `ThInfoType` object via the `info` prop.
83
84
 
84
85
  ```ts file="TableMisc.tsx"
86
+
85
87
  ```
86
88
 
87
89
  ### Sortable & wrapping headers
@@ -103,6 +105,7 @@ type OnSort = (
103
105
  The built in display for sorting is not fully responsive, as the column headers will be displayed per row when the screen size is small. To see a full page demo of a responsive sortable table, utilizing a toolbar item to control sorting for small screens, view the `Sortable - responsive` demo in the `React demos` tab.
104
106
 
105
107
  ```ts file="TableSortable.tsx"
108
+
106
109
  ```
107
110
 
108
111
  ### Sortable - custom control
@@ -110,6 +113,7 @@ The built in display for sorting is not fully responsive, as the column headers
110
113
  Sorting a table may also be controlled manually with a toolbar control. To see a full page demo of a responsive table, view the `Sortable - responsive` demo in the `React demos` tab.
111
114
 
112
115
  ```ts file="TableSortableCustom.tsx"
116
+
113
117
  ```
114
118
 
115
119
  ### Selectable with checkbox
@@ -140,6 +144,7 @@ type OnSelect = (
140
144
  checking checkboxes will check intermediate rows' checkboxes.
141
145
 
142
146
  ```ts file="TableSelectable.tsx"
147
+
143
148
  ```
144
149
 
145
150
  ### Selectable radio input
@@ -147,6 +152,7 @@ checking checkboxes will check intermediate rows' checkboxes.
147
152
  Similarly to the selectable example above, the radio buttons use the first column. The first header cell is empty, and each body row's first cell has radio button props.
148
153
 
149
154
  ```ts file="TableSelectableRadio.tsx"
155
+
150
156
  ```
151
157
 
152
158
  ### Row click handler, clickable rows
@@ -154,6 +160,7 @@ Similarly to the selectable example above, the radio buttons use the first colum
154
160
  This selectable rows feature is intended for use when a table is used to present a list of objects in a Primary-detail view.
155
161
 
156
162
  ```ts file="TableClickable.tsx"
163
+
157
164
  ```
158
165
 
159
166
  ### Actions
@@ -165,6 +172,7 @@ To make a cell an action cell, render an `ActionsColumn` component inside a row'
165
172
  If actions menus are getting clipped by other items on the page, such as sticky columns or rows, the `ActionsColumn` can be passed a `menuAppendTo` prop to adjust where the actions menu is appended.
166
173
 
167
174
  ```ts file="TableActions.tsx"
175
+
168
176
  ```
169
177
 
170
178
  ### Actions Overflow
@@ -172,6 +180,7 @@ If actions menus are getting clipped by other items on the page, such as sticky
172
180
  Useing an `OverflowMenu` in the actions column, allowing the actions to condense into a dropdown if necessary for space.
173
181
 
174
182
  ```ts file="TableActionsOverflow.tsx"
183
+
175
184
  ```
176
185
 
177
186
  ### Expandable
@@ -197,6 +206,7 @@ type OnCollapse = (
197
206
  Note: Table column widths will respond automatically when toggling expanded rows. To retain column widths between expanded and collapsed states, column header and/or data cell widths must be set.
198
207
 
199
208
  ```ts file="TableExpandable.tsx"
209
+
200
210
  ```
201
211
 
202
212
  ### Compound expandable
@@ -221,16 +231,19 @@ export type OnExpand = (
221
231
  ```
222
232
 
223
233
  ```ts file="TableCompoundExpandable.tsx"
234
+
224
235
  ```
225
236
 
226
237
  ### Cell width, breakpoint modifiers
227
238
 
228
239
  ```ts file="TableCellWidth.tsx"
240
+
229
241
  ```
230
242
 
231
243
  ### Controlling text
232
244
 
233
245
  ```ts file="TableControllingText.tsx"
246
+
234
247
  ```
235
248
 
236
249
  ### Modifiers with table text
@@ -238,11 +251,13 @@ export type OnExpand = (
238
251
  If the "wrapModifier" property is set to "truncate", it's needed to ensure that the corresponding tooltip can be opened using both keyboard and screen reader. Since this particular Td element is generic and doesn't have any predefined decorators, the focus management required to trigger the tooltip needs to be handled manually by defining and manipulating the requisite props.
239
252
 
240
253
  ```ts file="TableTextModifiers.tsx"
254
+
241
255
  ```
242
256
 
243
257
  ### Empty state
244
258
 
245
259
  ```ts file="TableEmptyState.tsx"
260
+
246
261
  ```
247
262
 
248
263
  ### Favoritable (implemented with sortable)
@@ -265,6 +280,7 @@ type OnFavorite = (
265
280
  To make a favoritable column sortable, pass a `ThSortType` object to the favoritable column's `Th` with `isFavorites` set to true.
266
281
 
267
282
  ```ts file="TableFavoritable.tsx"
283
+
268
284
  ```
269
285
 
270
286
  ### Tree table
@@ -298,6 +314,7 @@ aria-posinset, and aria-setsize as violations. This is an intentional choice at
298
314
  the voice over technologies will recognize the flat table structure as a tree.
299
315
 
300
316
  ```ts file="TableTree.tsx"
317
+
301
318
  ```
302
319
 
303
320
  ### Flat tree table with no inset
@@ -305,6 +322,7 @@ the voice over technologies will recognize the flat table structure as a tree.
305
322
  To remove the inset used to leave space for the expand/collapse toggle in a flat tree table, use the `hasNoInset` prop on the `Table` component.
306
323
 
307
324
  ```ts file="TableTreeNoInset.tsx"
325
+
308
326
  ```
309
327
 
310
328
  ### Draggable row table
@@ -318,6 +336,7 @@ To make a row draggable:
318
336
  5. The draggable `Td` in each row needs a `TdDraggableType` object passed to its `draggable` prop.
319
337
 
320
338
  ```ts isBeta file="TableDraggable.tsx"
339
+
321
340
  ```
322
341
 
323
342
  ### Sticky table modifiers
@@ -334,7 +353,7 @@ There are a few ways this can be handled:
334
353
 
335
354
  ### Sticky column
336
355
 
337
- To make a column sticky, wrap `Table` with `InnerScrollContainer` and add the following properties to the `Th` or `Td` that should be sticky:
356
+ To make a column sticky, wrap `Table` with `InnerScrollContainer` and add the following properties to the `Th` or `Td` that should be sticky:
338
357
 
339
358
  - `isStickyColumn`
340
359
  - `hasRightBorder` for a left-aligned sticky column, or `hasLeftBorder` for a right-aligned sticky column.
@@ -342,6 +361,7 @@ To make a column sticky, wrap `Table` with `InnerScrollContainer` and add the fo
342
361
  To prevent the default text wrapping behavior and allow horizontal scrolling, all `Th` or `Td` cells should also have the `modifier="nowrap"` property. To set the minimum width of the sticky column, use the `stickyMinWidth` property. For multiple sticky columns, use the `stickyLeftOffset` and `stickyRightOffset` properties for additional left or right sticky columns.
343
362
 
344
363
  ```ts file="TableStickyColumn.tsx"
364
+
345
365
  ```
346
366
 
347
367
  ### Multiple left-aligned sticky columns
@@ -351,11 +371,12 @@ To make multiple left-aligned columns sticky:
351
371
  - wrap `Table` with `InnerScrollContainer`
352
372
  - add `isStickyColumn` to all columns that should be sticky
353
373
  - add `hasRightBorder` to the rightmost sticky column
354
- - add `stickyLeftOffset` to each sticky column with a value that equals the combined width - set by `stickyMindWidth` - of the previous sticky columns. The leftmost sticky column should have a value of `0`, which is the default of this property.
374
+ - add `stickyLeftOffset` to each sticky column with a value that equals the combined width - set by `stickyMindWidth` - of the previous sticky columns. The leftmost sticky column should have a value of `0`, which is the default of this property.
355
375
 
356
376
  To prevent the default text wrapping behavior and allow horizontal scrolling, all `Th` or `Td` cells should also have the `modifier="nowrap"` property.
357
377
 
358
378
  ```ts file="TableMultipleStickyColumns.tsx"
379
+
359
380
  ```
360
381
 
361
382
  ### Multiple right-aligned sticky columns
@@ -365,11 +386,12 @@ To make multiple right-aligned columns sticky:
365
386
  - wrap `Table` with `InnerScrollContainer`
366
387
  - add `isStickyColumn` to all columns that should be sticky
367
388
  - add `hasLeftBorder` to the leftmost sticky column
368
- - add `stickyRightOffset` to each sticky column with a value that equals the combined width - set by `stickyMindWidth` - of the next sticky columns. The rightmost sticky column should have a value of `0`, which is the default of this property.
389
+ - add `stickyRightOffset` to each sticky column with a value that equals the combined width - set by `stickyMindWidth` - of the next sticky columns. The rightmost sticky column should have a value of `0`, which is the default of this property.
369
390
 
370
391
  To prevent the default text wrapping behavior and allow horizontal scrolling, all `Th` or `Td` cells should also have the `modifier="nowrap"` property.
371
392
 
372
393
  ```ts file="TableRightStickyColumn.tsx"
394
+
373
395
  ```
374
396
 
375
397
  ### Sticky columns and header
@@ -377,6 +399,7 @@ To prevent the default text wrapping behavior and allow horizontal scrolling, al
377
399
  To maintain proper sticky behavior across sticky columns and header, `Table` must be wrapped with `OuterScrollContainer` and `InnerScrollContainer`.
378
400
 
379
401
  ```ts file="TableStickyColumnsAndHeader.tsx"
402
+
380
403
  ```
381
404
 
382
405
  ### Nested column headers
@@ -393,21 +416,25 @@ The first `Tr` represents the top level of columns, and each must pass either `r
393
416
  The second `Tr` represents the second level of sub columns. The `Th` in this row each should pass `isSubHeader`, and the last sub column of a column should also pass `hasRightBorder`.
394
417
 
395
418
  ```ts file="TableNestedHeaders.tsx"
419
+
396
420
  ```
397
421
 
398
422
  ### Nested column headers and expandable rows
399
423
 
400
424
  ```ts file="TableNestedExpandable.tsx"
425
+
401
426
  ```
402
427
 
403
428
  ### Expandable with nested table
404
429
 
405
430
  ```ts file="TableNestedTableExpandable.tsx"
431
+
406
432
  ```
407
433
 
408
434
  ### Nested sticky header
409
435
 
410
436
  ```ts file="TableNestedStickyHeader.tsx"
437
+
411
438
  ```
412
439
 
413
440
  ### Striped
@@ -415,6 +442,7 @@ The second `Tr` represents the second level of sub columns. The `Th` in this row
415
442
  To apply striping to a basic table, add the `isStriped` property to `Table`.
416
443
 
417
444
  ```ts file="TableStriped.tsx"
445
+
418
446
  ```
419
447
 
420
448
  ### Striped expandable
@@ -422,6 +450,7 @@ To apply striping to a basic table, add the `isStriped` property to `Table`.
422
450
  To apply striping to an expandable table, add the `isStriped` and `isExpandable` properties to `Table`.
423
451
 
424
452
  ```ts file="TableStripedExpandable.tsx"
453
+
425
454
  ```
426
455
 
427
456
  ### Striped multiple tobdy
@@ -429,6 +458,7 @@ To apply striping to an expandable table, add the `isStriped` and `isExpandable`
429
458
  When there are multiple `Tbody` components within a table, a more granular application of striping may be controlled by adding either the `isEvenStriped` or `isOddStriped` properties to `Tbody`. These properties will stripe even or odd rows within that `Tbody` respectively.
430
459
 
431
460
  ```ts file="TableStripedMultipleTbody.tsx"
461
+
432
462
  ```
433
463
 
434
464
  ### Striped tr
@@ -436,4 +466,5 @@ When there are multiple `Tbody` components within a table, a more granular appli
436
466
  To manually control striping, add the `isStriped` property to each desired `Tr`. This replaces adding the `isStriped` property to `Table`.
437
467
 
438
468
  ```ts file="TableStripedTr.tsx"
469
+
439
470
  ```
@@ -116,8 +116,8 @@ export const TableActions: React.FunctionComponent = () => {
116
116
  <Th>{columnNames.prs}</Th>
117
117
  <Th>{columnNames.workspaces}</Th>
118
118
  <Th>{columnNames.lastCommit}</Th>
119
- <Td></Td>
120
- <Td></Td>
119
+ <Th screenReaderText="Primary action" />
120
+ <Th screenReaderText="Secondary action" />
121
121
  </Tr>
122
122
  </Thead>
123
123
  <Tbody>
@@ -66,7 +66,7 @@ export const TableActions: React.FunctionComponent = () => {
66
66
  <Th>{columnNames.prs}</Th>
67
67
  <Th>{columnNames.workspaces}</Th>
68
68
  <Th>{columnNames.lastCommit}</Th>
69
- <Td></Td>
69
+ <Th screenReaderText="Actions" />
70
70
  </Tr>
71
71
  </Thead>
72
72
  <Tbody>
@@ -106,9 +106,8 @@ export const TableActions: React.FunctionComponent = () => {
106
106
  setRepos(repos.map((r) => (r.name !== repo.name ? r : { ...r, isMenuOpen: !r.isMenuOpen })))
107
107
  }
108
108
  isExpanded={repo.isMenuOpen}
109
- >
110
- <EllipsisVIcon />
111
- </MenuToggle>
109
+ icon={<EllipsisVIcon />}
110
+ />
112
111
  )}
113
112
  isOpen={repo.isMenuOpen}
114
113
  onOpenChange={(isOpen) =>
@@ -67,7 +67,7 @@ export const TableCompoundExpandable: React.FunctionComponent = () => {
67
67
  <Th>{columnNames.prs}</Th>
68
68
  <Th>{columnNames.workspaces}</Th>
69
69
  <Th>{columnNames.lastCommit}</Th>
70
- <Th />
70
+ <Th screenReaderText="URL" />
71
71
  </Tr>
72
72
  </Thead>
73
73
  {repositories.map((repo: Repository, rowIndex: number) => {
@@ -140,30 +140,33 @@ export const TableDraggable: React.FunctionComponent = () => {
140
140
  ];
141
141
 
142
142
  return (
143
- <Table aria-label="Draggable table" className={isDragging && styles.modifiers.dragOver}>
143
+ <Table aria-label="Draggable table" className={isDragging ? styles.modifiers.dragOver : ''}>
144
144
  <Thead>
145
145
  <Tr>
146
- <Th />
146
+ <Th screenReaderText="Drag and drop" />
147
147
  {columns.map((column, columnIndex) => (
148
148
  <Th key={columnIndex}>{column}</Th>
149
149
  ))}
150
150
  </Tr>
151
151
  </Thead>
152
152
  <Tbody ref={bodyRef} onDragOver={onDragOver} onDrop={onDragOver} onDragLeave={onDragLeave}>
153
- {rows.map((row, rowIndex) => (
154
- <Tr key={rowIndex} id={row.id} draggable onDrop={onDrop} onDragEnd={onDragEnd} onDragStart={onDragStart}>
155
- <Td
156
- draggableRow={{
157
- id: `draggable-row-${row.id}`
158
- }}
159
- />
160
- {Object.keys(row).map((key, keyIndex) => (
161
- <Td key={`${rowIndex}_${keyIndex}`} dataLabel={columns[keyIndex]}>
162
- {row[key]}
163
- </Td>
164
- ))}
165
- </Tr>
166
- ))}
153
+ {rows.map((row, rowIndex) => {
154
+ const rowCellsToBuild = Object.keys(row).filter((rowCell) => rowCell !== 'id');
155
+ return (
156
+ <Tr key={rowIndex} id={row.id} draggable onDrop={onDrop} onDragEnd={onDragEnd} onDragStart={onDragStart}>
157
+ <Td
158
+ draggableRow={{
159
+ id: `draggable-row-${row.id}`
160
+ }}
161
+ />
162
+ {rowCellsToBuild.map((key, keyIndex) => (
163
+ <Td key={`${rowIndex}_${keyIndex}`} dataLabel={columns[keyIndex]}>
164
+ {row[key]}
165
+ </Td>
166
+ ))}
167
+ </Tr>
168
+ );
169
+ })}
167
170
  </Tbody>
168
171
  </Table>
169
172
  );
@@ -4,10 +4,8 @@ import {
4
4
  Bullseye,
5
5
  EmptyState,
6
6
  EmptyStateVariant,
7
- EmptyStateIcon,
8
7
  EmptyStateBody,
9
8
  Button,
10
- EmptyStateHeader,
11
9
  EmptyStateFooter,
12
10
  EmptyStateActions
13
11
  } from '@patternfly/react-core';
@@ -31,12 +29,7 @@ export const TableEmptyState: React.FunctionComponent = () => (
31
29
  <Tr>
32
30
  <Td colSpan={8}>
33
31
  <Bullseye>
34
- <EmptyState variant={EmptyStateVariant.sm}>
35
- <EmptyStateHeader
36
- icon={<EmptyStateIcon icon={SearchIcon} />}
37
- titleText="No results found"
38
- headingLevel="h2"
39
- />
32
+ <EmptyState headingLevel="h2" titleText="No results found" icon={SearchIcon} variant={EmptyStateVariant.sm}>
40
33
  <EmptyStateBody>Clear all filters and try again.</EmptyStateBody>
41
34
  <EmptyStateFooter>
42
35
  <EmptyStateActions>
@@ -120,7 +120,7 @@ export const TableExpandable: React.FunctionComponent = () => {
120
120
  <Table aria-label="Expandable table" variant={isExampleCompact ? 'compact' : undefined}>
121
121
  <Thead>
122
122
  <Tr>
123
- <Th />
123
+ <Th screenReaderText="Row expansion" />
124
124
  <Th width={25}>{columnNames.name}</Th>
125
125
  <Th width={10}>{columnNames.branches}</Th>
126
126
  <Th width={15}>{columnNames.prs}</Th>
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
3
3
  /* eslint-disable camelcase */
4
- import global_BackgroundColor_150 from '@patternfly/react-tokens/dist/esm/global_BackgroundColor_150';
4
+ import global_background_color_secondary_default from '@patternfly/react-tokens/dist/esm/global_background_color_secondary_default';
5
5
 
6
6
  interface Repository {
7
7
  name: string;
@@ -67,7 +67,7 @@ export const TableMisc: React.FunctionComponent = () => {
67
67
  {repositories.map((repo, rowIndex) => {
68
68
  const isOddRow = (rowIndex + 1) % 2;
69
69
  const customStyle = {
70
- backgroundColor: global_BackgroundColor_150.var
70
+ backgroundColor: global_background_color_secondary_default.var
71
71
  };
72
72
  // Some arbitrary logic to demonstrate that cell styles can be based on anything
73
73
  const nameColSpan = repo.branches === null && repo.prs === null ? 3 : 1;
@@ -64,7 +64,7 @@ export const TableNestedExpandable: React.FunctionComponent = () => {
64
64
  <Table aria-label="Nested column headers with expandable rows table" gridBreakPoint="">
65
65
  <Thead hasNestedHeader>
66
66
  <Tr>
67
- <Th rowSpan={2} />
67
+ <Th screenReaderText="Row expansion" rowSpan={2} />
68
68
  <Th width={35} rowSpan={2} hasRightBorder>
69
69
  {columnNames.team}
70
70
  </Th>
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Table, Thead, Tr, Th, Tbody, Td, InnerScrollContainer, ThProps } from '@patternfly/react-table';
3
- import { Stack, StackItem } from '@patternfly/react-core';
4
- import textStyles from '@patternfly/react-styles/css/utilities/Text/text';
5
-
3
+ import { Stack, StackItem, Timestamp } from '@patternfly/react-core';
6
4
  interface PodConnection {
7
5
  source: {
8
6
  podName: string;
@@ -163,7 +161,7 @@ export const TableNestedHeaders: React.FunctionComponent = () => {
163
161
  <Td dataLabel={columnNames.datetime}>
164
162
  <div>
165
163
  <span>{new Date(connection.timestamp).toDateString()}</span>{' '}
166
- <span className={textStyles.color_200}>{new Date(connection.timestamp).toLocaleTimeString()}</span>
164
+ <Timestamp>{new Date(connection.timestamp).toLocaleTimeString()}</Timestamp>
167
165
  </div>
168
166
  </Td>
169
167
  <Td dataLabel={columnNames.source}>
@@ -172,7 +170,7 @@ export const TableNestedHeaders: React.FunctionComponent = () => {
172
170
  <span>{connection.source.port.num}</span>
173
171
  </StackItem>
174
172
  <StackItem>
175
- <span className={textStyles.color_200}>({connection.source.port.protocol})</span>
173
+ <Timestamp>({connection.source.port.protocol})</Timestamp>
176
174
  </StackItem>
177
175
  </Stack>
178
176
  </Td>
@@ -182,7 +180,7 @@ export const TableNestedHeaders: React.FunctionComponent = () => {
182
180
  <span>{connection.destination.port.num}</span>
183
181
  </StackItem>
184
182
  <StackItem>
185
- <span className={textStyles.color_200}>({connection.destination.port.protocol})</span>
183
+ <Timestamp>({connection.destination.port.protocol})</Timestamp>
186
184
  </StackItem>
187
185
  </Stack>
188
186
  </Td>
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Table, Thead, Tr, Th, Tbody, Td, InnerScrollContainer, ThProps } from '@patternfly/react-table';
3
- import { Stack, StackItem } from '@patternfly/react-core';
4
- import textStyles from '@patternfly/react-styles/css/utilities/Text/text';
5
-
3
+ import { Stack, StackItem, Timestamp } from '@patternfly/react-core';
6
4
  interface PodConnection {
7
5
  source: {
8
6
  podName: string;
@@ -154,9 +152,6 @@ export const TableNestedHeaders: React.FunctionComponent = () => {
154
152
  {columnNames.destination}
155
153
  </Th>
156
154
  </Tr>
157
- <Tr isBorderRow aria-hidden="true">
158
- <Td colSpan={9}></Td>
159
- </Tr>
160
155
  </Thead>
161
156
  <Tbody>
162
157
  {sortedConnections.map((connection) => (
@@ -166,7 +161,7 @@ export const TableNestedHeaders: React.FunctionComponent = () => {
166
161
  <Td dataLabel={columnNames.datetime}>
167
162
  <div>
168
163
  <span>{new Date(connection.timestamp).toDateString()}</span>{' '}
169
- <span className={textStyles.color_200}>{new Date(connection.timestamp).toLocaleTimeString()}</span>
164
+ <Timestamp>{new Date(connection.timestamp).toLocaleTimeString()}</Timestamp>
170
165
  </div>
171
166
  </Td>
172
167
  <Td dataLabel={columnNames.source}>
@@ -175,7 +170,7 @@ export const TableNestedHeaders: React.FunctionComponent = () => {
175
170
  <span>{connection.source.port.num}</span>
176
171
  </StackItem>
177
172
  <StackItem>
178
- <span className={textStyles.color_200}>({connection.source.port.protocol})</span>
173
+ <Timestamp>({connection.source.port.protocol})</Timestamp>
179
174
  </StackItem>
180
175
  </Stack>
181
176
  </Td>
@@ -185,7 +180,7 @@ export const TableNestedHeaders: React.FunctionComponent = () => {
185
180
  <span>{connection.destination.port.num}</span>
186
181
  </StackItem>
187
182
  <StackItem>
188
- <span className={textStyles.color_200}>({connection.destination.port.protocol})</span>
183
+ <Timestamp>({connection.destination.port.protocol})</Timestamp>
189
184
  </StackItem>
190
185
  </Stack>
191
186
  </Td>
@@ -131,7 +131,7 @@ export const TableExpandable: React.FunctionComponent = () => {
131
131
  <Table aria-label="Simple table">
132
132
  <Thead>
133
133
  <Tr>
134
- <Td />
134
+ <Th screenReaderText="Row expansion" />
135
135
  <Th width={20}>{columnNames.name}</Th>
136
136
  <Th>{columnNames.branches}</Th>
137
137
  <Th>{columnNames.prs}</Th>
@@ -93,6 +93,7 @@ export const TableSelectable: React.FunctionComponent = () => {
93
93
  onSelect: (_event, isSelecting) => selectAllRepos(isSelecting),
94
94
  isSelected: areAllReposSelected
95
95
  }}
96
+ aria-label="Row select"
96
97
  />
97
98
  <Th>{columnNames.name}</Th>
98
99
  <Th>{columnNames.branches}</Th>
@@ -35,7 +35,7 @@ export const TableSelectableRadio: React.FunctionComponent = () => {
35
35
  <Table aria-label="Selectable table">
36
36
  <Thead>
37
37
  <Tr>
38
- <Th />
38
+ <Th screenReaderText="Row select" />
39
39
  <Th>{columnNames.name}</Th>
40
40
  <Th>{columnNames.branches}</Th>
41
41
  <Th>{columnNames.prs}</Th>
@@ -117,9 +117,8 @@ export const TableSortableCustom: React.FunctionComponent = () => {
117
117
  isExpanded={isSortDropdownOpen}
118
118
  variant="plain"
119
119
  aria-label="Sort columns"
120
- >
121
- <SortAmountDownIcon />
122
- </MenuToggle>
120
+ icon={<SortAmountDownIcon />}
121
+ />
123
122
  )}
124
123
  >
125
124
  <SelectGroup label="Sort column">
@@ -98,7 +98,7 @@ export const TableStickyColumnsAndHeader: React.FunctionComponent = () => {
98
98
  });
99
99
 
100
100
  return (
101
- <div style={{ height: '600px' }}>
101
+ <div style={{ height: '400px' }}>
102
102
  <OuterScrollContainer>
103
103
  <InnerScrollContainer>
104
104
  <Table aria-label="Sticky columns and header table" gridBreakPoint="" isStickyHeader>
@@ -115,7 +115,7 @@ export const TableStripedExpandable: React.FunctionComponent = () => {
115
115
  <Table aria-label="Expandable table" variant={isExampleCompact ? 'compact' : undefined} isStriped isExpandable>
116
116
  <Thead>
117
117
  <Tr>
118
- <Th />
118
+ <Th screenReaderText="Row expansion" />
119
119
  <Th width={25}>{columnNames.name}</Th>
120
120
  <Th width={10}>{columnNames.branches}</Th>
121
121
  <Th width={15}>{columnNames.prs}</Th>
@@ -10,7 +10,7 @@ Object {
10
10
  >
11
11
 
12
12
  </SelectColumn>,
13
- "className": "pf-v5-c-table__check",
13
+ "className": "pf-v6-c-table__check",
14
14
  "component": "td",
15
15
  "isVisible": true,
16
16
  }
@@ -26,6 +26,6 @@ Object {
26
26
  >
27
27
 
28
28
  </SortColumn>,
29
- "className": "pf-v5-c-table__sort pf-m-selected",
29
+ "className": "pf-v6-c-table__sort pf-m-selected",
30
30
  }
31
31
  `;
@@ -61,7 +61,7 @@ export const selectable: ITransform = (
61
61
 
62
62
  return {
63
63
  className: css(styles.tableCheck),
64
- component: 'td',
64
+ component: rowId !== -1 ? 'td' : 'th',
65
65
  isVisible: !rowData || !rowData.fullWidth,
66
66
  children: (
67
67
  <SelectColumn
@@ -18,7 +18,6 @@ import {
18
18
  textCenter,
19
19
  cellActions
20
20
  } from './';
21
- import { DropdownPosition, DropdownDirection } from '@patternfly/react-core/dist/esm/deprecated/components/Dropdown';
22
21
  import {
23
22
  IAction,
24
23
  IActions,
@@ -31,7 +30,7 @@ import {
31
30
  } from '../TableTypes';
32
31
  import { css } from '@patternfly/react-styles';
33
32
  import tableStyles from '@patternfly/react-styles/css/components/Table/table';
34
- import dropdownStyles from '@patternfly/react-styles/css/components/Dropdown/dropdown';
33
+ import menuStyles from '@patternfly/react-styles/css/components/Menu/menu';
35
34
 
36
35
  const testCellActions = async ({
37
36
  actions,
@@ -58,8 +57,8 @@ const testCellActions = async ({
58
57
  rowData,
59
58
  column: {
60
59
  extraParams: {
61
- dropdownPosition: DropdownPosition.right,
62
- dropdownDirection: DropdownDirection.down
60
+ dropdownPosition: 'right',
61
+ dropdownDirection: 'down'
63
62
  }
64
63
  }
65
64
  });
@@ -77,9 +76,7 @@ const testCellActions = async ({
77
76
  await user.click(screen.getAllByRole('button')[0]);
78
77
  await waitFor(() =>
79
78
  // eslint-disable-next-line testing-library/no-container
80
- expect(container.querySelectorAll(`.${dropdownStyles.dropdownMenu} li button`)).toHaveLength(
81
- expectDisabled ? 0 : 1
82
- )
79
+ expect(container.querySelectorAll(`.${menuStyles.menu} li button`)).toHaveLength(expectDisabled ? 0 : 1)
83
80
  );
84
81
  }
85
82
  };