diff --git a/package.json b/package.json
index 296ae5f568322..089f28995b551 100644
--- a/package.json
+++ b/package.json
@@ -115,7 +115,7 @@
"@elastic/ecs": "^8.11.1",
"@elastic/elasticsearch": "^8.15.0",
"@elastic/ems-client": "8.5.3",
- "@elastic/eui": "95.11.0",
+ "@elastic/eui": "95.12.0-backport.0",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
diff --git a/packages/kbn-test/src/jest/setup/polyfills.jsdom.js b/packages/kbn-test/src/jest/setup/polyfills.jsdom.js
index 308bf18a9ffbd..e6616c2bccfa1 100644
--- a/packages/kbn-test/src/jest/setup/polyfills.jsdom.js
+++ b/packages/kbn-test/src/jest/setup/polyfills.jsdom.js
@@ -53,22 +53,16 @@ if (!Object.hasOwn(global, 'Worker')) {
if (!Object.hasOwn(global, 'matchMedia')) {
Object.defineProperty(global, 'matchMedia', {
writable: true,
- // eslint-disable-next-line no-undef
- value: jest.fn().mockImplementation((query) => ({
+ value: (query) => ({
matches: false,
media: query,
onchange: null,
- // eslint-disable-next-line no-undef
- addListener: jest.fn(), // deprecated
- // eslint-disable-next-line no-undef
- removeListener: jest.fn(), // deprecated
- // eslint-disable-next-line no-undef
- addEventListener: jest.fn(),
- // eslint-disable-next-line no-undef
- removeEventListener: jest.fn(),
- // eslint-disable-next-line no-undef
- dispatchEvent: jest.fn(),
- })),
+ addListener: () => {},
+ removeListener: () => {},
+ addEventListener: () => {},
+ removeEventListener: () => {},
+ dispatchEvent: () => {},
+ }),
});
}
}
diff --git a/packages/kbn-unified-data-table/index.ts b/packages/kbn-unified-data-table/index.ts
index 8f7e711bebcad..40a3dcc23dda8 100644
--- a/packages/kbn-unified-data-table/index.ts
+++ b/packages/kbn-unified-data-table/index.ts
@@ -28,7 +28,6 @@ export { popularizeField } from './src/utils/popularize_field';
export { useColumns, type UseColumnsProps } from './src/hooks/use_data_grid_columns';
export { OPEN_DETAILS, SELECT_ROW } from './src/components/data_table_columns'; // TODO: deprecate?
-export { DataTableRowControl } from './src/components/data_table_row_control';
export type {
UnifiedDataTableRenderCustomToolbar,
diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx b/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx
index 3519bef843c4a..d1fec11906df4 100644
--- a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx
+++ b/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_control_column.tsx
@@ -16,7 +16,6 @@ import {
EuiToolTip,
} from '@elastic/eui';
import { RowControlColumn, RowControlProps } from '@kbn/discover-utils';
-import { DataTableRowControl, Size } from '../../data_table_row_control';
import { DEFAULT_CONTROL_COLUMN_WIDTH } from '../../../constants';
import { useControlColumn } from '../../../hooks/use_control_column';
@@ -40,23 +39,25 @@ export const RowControlCell = ({
tooltipContent,
}) => {
return (
-
-
- {
- if (record) {
- onClick?.({ record, rowIndex });
- }
- }}
- />
-
-
+
+ {
+ if (record) {
+ onClick?.({ record, rowIndex });
+ }
+ }}
+ />
+
);
},
[props.columnId, record, rowIndex]
diff --git a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx b/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx
index 3d6cd19a53b1e..cc600df002502 100644
--- a/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx
+++ b/packages/kbn-unified-data-table/src/components/custom_control_columns/additional_row_control/row_menu_control_column.tsx
@@ -19,9 +19,7 @@ import {
EuiToolTip,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
-import { css } from '@emotion/react';
import { RowControlColumn, RowControlProps } from '@kbn/discover-utils';
-import { DataTableRowControl, Size } from '../../data_table_row_control';
import { DEFAULT_CONTROL_COLUMN_WIDTH } from '../../../constants';
import { useControlColumn } from '../../../hooks/use_control_column';
@@ -80,26 +78,20 @@ export const RowMenuControlCell = ({
return (