diff --git a/.eslintignore b/.eslintignore
index 6585ff5ebeea..61a5a1ef9086 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -7,6 +7,6 @@ types
eui.d.ts
**/*.snap.js
**/assets/**/*.js
+package.json
src-docs/src/views/icon/icon_example.js
-src-framer/code/canvas.tsx
packages/react-datepicker/examples
diff --git a/.npmignore b/.npmignore
index 1538d294d5d7..d5cb84fcb18b 100644
--- a/.npmignore
+++ b/.npmignore
@@ -6,7 +6,6 @@ wiki/
generator-eui/
test/
src-docs/
-src-framer/
packages/react-datepicker
packages/eslint-plugin
.nvmrc
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0321a7067291..2d4624c7bccc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)
+- Added `initialSelected` to `EuiTableSelectionType` properties to set initial selected checkboxes for `EuiBasicTable` ([#3418](https://github.com/elastic/eui/pull/3418))
- Added exports for `EuiSteps` and related components types ([#3471](https://github.com/elastic/eui/pull/3471))
- Added `displayName` to components using `React.forwardRef` ([#3451](https://github.com/elastic/eui/pull/3451))
- Added event target checker for `EuiOverlayMask`'s `onClick` prop ([#3462](https://github.com/elastic/eui/pull/3462))
@@ -7,6 +8,17 @@
**Bug Fixes**
- Fixed issue where multiple `EuiToolTip` components could be visible when element was focused ([#3335](https://github.com/elastic/eui/pull/3335))
+- Fixed `EuiSuperSelect` not rendering full width when `isOpen` is `true` ([#3495](https://github.com/elastic/eui/pull/3495))
+- Fixed `EuiBasicTable` shows no items if all items of last page is deleted ([#3422](https://github.com/elastic/eui/pull/3422))
+- Fixed TypeScript module name in generated `eui_charts_theme.d.ts` file ([#3492](https://github.com/elastic/eui/pull/3492))
+
+**Deprecations**
+
+- Added a deprecation notice for `EuiNavDrawer` family of components. Advise usage of `EuiCollapsibleNav` instead ([#3487](https://github.com/elastic/eui/pull/3487))
+
+**Notes**
+
+- Removed `src-framer` files from the repository ([#3487](https://github.com/elastic/eui/pull/3487))
## [`24.0.0`](https://github.com/elastic/eui/tree/v24.0.0)
diff --git a/package.json b/package.json
index 6bcd0994f8d8..c731c751b447 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,7 @@
"extract-i18n-strings": "node ./scripts/babel/fetch-i18n-strings",
"lint": "yarn tsc --noEmit && yarn lint-es && yarn lint-sass",
"lint-fix": "yarn lint-es-fix",
- "lint-es": "eslint --cache '{src,src-docs,src-framer}/**/*.{ts,tsx,js}' --max-warnings 0",
+ "lint-es": "eslint --cache \"{src,src-docs}/**/*.{ts,tsx,js}\" --max-warnings 0",
"lint-es-fix": "yarn lint-es --fix",
"lint-sass": "sass-lint -v --max-warnings 0",
"lint-sass-fix": "sass-lint-auto-fix -c ./.sass-lint-fix.yml",
diff --git a/scripts/compile-eui.js b/scripts/compile-eui.js
index ebda61cb8416..c48fddefbc2d 100755
--- a/scripts/compile-eui.js
+++ b/scripts/compile-eui.js
@@ -1,3 +1,23 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you under
+ * the Apache License, Version 2.0 (the "License"); you may
+ * not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
const { execSync } = require('child_process');
const chalk = require('chalk');
const shell = require('shelljs');
@@ -118,7 +138,13 @@ function compileBundle() {
files: ['themes.ts'],
resolveModuleId() {
return '@elastic/eui/dist/eui_charts_theme';
- }
+ },
+ resolveModuleImport(params) {
+ if (params.importedModuleId === '../../components/common') {
+ return '@elastic/eui/src/components/common';
+ }
+ return null;
+ }
});
console.log(chalk.green('✔ Finished chart theme module'));
}
diff --git a/scripts/dtsgenerator.js b/scripts/dtsgenerator.js
index fe03bf5cd985..cbf0771f9a61 100644
--- a/scripts/dtsgenerator.js
+++ b/scripts/dtsgenerator.js
@@ -31,12 +31,11 @@ const generator = dtsGenerator({
exclude: [
'node_modules/**/*.d.ts',
'*/custom_typings/**/*.d.ts',
- 'src-framer/**/*',
'**/*.test.ts',
'**/*.test.tsx',
'**/*.testenv.ts',
'**/*.testenv.tsx',
- 'src/themes/charts/*' // A separate d.ts file is generated for the charts theme file
+ 'src/themes/charts/*', // A separate d.ts file is generated for the charts theme file
],
resolveModuleId(params) {
if (
diff --git a/src-docs/.eslintrc.js b/src-docs/.eslintrc.js
index b46174a01cd8..0242d922ac54 100644
--- a/src-docs/.eslintrc.js
+++ b/src-docs/.eslintrc.js
@@ -3,5 +3,5 @@ module.exports = {
rules: {
'@typescript-eslint/no-var-requires': 'off',
'local/require-license-header': 'off',
- }
-}
+ },
+};
diff --git a/src-docs/src/views/form_controls/display_toggles.js b/src-docs/src/views/form_controls/display_toggles.js
index d0f2e2c7a51d..2d18cf4bc848 100644
--- a/src-docs/src/views/form_controls/display_toggles.js
+++ b/src-docs/src/views/form_controls/display_toggles.js
@@ -13,6 +13,8 @@ import {
EuiSpacer,
} from '../../../../src/components';
+import { SIZES } from '../../../../src/components/spacer/spacer';
+
export class DisplayToggles extends Component {
constructor(props) {
super(props);
@@ -50,6 +52,7 @@ export class DisplayToggles extends Component {
canInvalid,
children,
extras,
+ spacerSize,
} = this.props;
const canProps = {};
@@ -66,7 +69,7 @@ export class DisplayToggles extends Component {
return (
+ Please use{' '}
+
+ EuiCollapsableNav
+ {' '}
+ instead of EuiNavDrawer for your global navigation
+ needs. Feature enhancements are no longer being made to this
+ component.
+
EuiNavDrawer provides a side navigation feature
that is complete with interactions and a mobile-friendly design. It
diff --git a/src-docs/src/views/tables/in_memory/in_memory_selection.js b/src-docs/src/views/tables/in_memory/in_memory_selection.js
index c84f86f21c41..6a149cb65f57 100644
--- a/src-docs/src/views/tables/in_memory/in_memory_selection.js
+++ b/src-docs/src/views/tables/in_memory/in_memory_selection.js
@@ -1,4 +1,4 @@
-import React, { useState } from 'react';
+import React, { useState, Fragment, useRef } from 'react';
import { formatDate } from '../../../../../src/services/format';
import { createDataStore } from '../data_store';
import {
@@ -7,6 +7,9 @@ import {
EuiButton,
EuiInMemoryTable,
EuiEmptyPrompt,
+ EuiFlexGroup,
+ EuiFlexItem,
+ EuiSpacer,
} from '../../../../../src/components';
import { Random } from '../../../../../src/services/random';
@@ -61,6 +64,7 @@ export const Table = () => {
const [selection, setSelection] = useState([]);
const [error, setError] = useState();
+ const tableRef = useRef();
const loadUsers = () => {
setMessage('Loading users...');
@@ -208,16 +212,33 @@ export const Table = () => {
pageSizeOptions: [3, 5, 8],
};
+ const onlineUsers = store.users.filter(user => user.online);
+
const selectionValue = {
selectable: user => user.online,
selectableMessage: selectable =>
!selectable ? 'User is currently offline' : undefined,
onSelectionChange: selection => setSelection(selection),
+ initialSelected: onlineUsers,
+ };
+
+ const onSelection = () => {
+ tableRef.current.setSelection(onlineUsers);
};
return (
-
The following example shows how to use EuiInMemoryTable{' '}
along with item selection. It also shows how you can display messages,
- errors and show loading indication.
+ errors and show loading indication. You can set items to be selected
+ initially by passing an array of items as the{' '}
+
{this.props.childText}
-= ( - props: P - ) => Partial
;
-
- export type OverrideObject
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+