Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a5a542a
[i18n] support user defined component
ym Oct 4, 2021
21efaa8
[EuiI18n] Move arguments of lookupToken to lookupTokenOptions
ym Oct 5, 2021
763c496
[EuiI18n] Add documents on how to use i18n.render
ym Oct 5, 2021
ecb5f68
[EuiBasicTable & EuiInMemoryTable] Fix missing i18n token for default…
constancecchen Oct 5, 2021
2fb3572
update i18ntokens
thompsongl Oct 5, 2021
e34edb2
39.0.0
thompsongl Oct 5, 2021
1766512
Updated documentation.
thompsongl Oct 5, 2021
65ff97c
[EuiBasicTable & EuiInMemoryTable] Fix multiple accessibility/axe err…
constancecchen Oct 5, 2021
da30b23
Update dependency @elastic/charts to v37 (#5243)
renovate[bot] Oct 6, 2021
aef0436
[EuiIcon] Added support for `ghost` and `text` colors on logos (#5245)
cchaos Oct 6, 2021
56e1c28
Adding Cypress for browser-based component unit testing (#5042)
chandlerprall Oct 6, 2021
c897b66
[EuiErrorBoundary] Add default `data-test-subj` (#5232)
thompsongl Oct 7, 2021
19a05aa
[EuiDataGrid][chore] Organize toolbar controls into their own subfold…
constancecchen Oct 7, 2021
fc5613a
[Docs] Replace Static HTML Element IDs Generated IDs (Layout Section)…
breehall Oct 11, 2021
5b1baed
[EuiDataGrid] Add unit tests for all toolbar control files + minor co…
constancecchen Oct 11, 2021
c052dfe
refractor to 3.5.0 (#5260)
thompsongl Oct 12, 2021
dcfb890
[EuiPopover] Allow content to be accessible during opening animation …
thompsongl Oct 12, 2021
eaaad49
update i18ntokens
thompsongl Oct 12, 2021
4aac12f
39.1.0
thompsongl Oct 12, 2021
7dc448a
Updated documentation.
thompsongl Oct 12, 2021
24a79c2
Fix typo
thompsongl Oct 12, 2021
f576d6a
fixed super date picker crash (#5263)
JordanSh Oct 13, 2021
fdec161
Kibana release documentation suggestion
cee-chen Oct 13, 2021
6dbe59a
Fix missing 39.1.0 changelog
cee-chen Oct 13, 2021
8a59d7c
[EuiFilterButton] Fix unstyled '0' content when numFilters is undefin…
constancecchen Oct 13, 2021
843d629
[Docs] Add ThemeLanguages and new Breakpoints page (#5227)
cchaos Oct 13, 2021
1fbcb44
update i18ntokens
cee-chen Oct 13, 2021
38c3990
39.1.1
cee-chen Oct 13, 2021
478593a
Updated documentation.
cee-chen Oct 13, 2021
cec9157
Updated documentation.
cee-chen Oct 13, 2021
be22b92
Fixed name
thompsongl Oct 14, 2021
4b5c71c
[Docs] Replace Static HTML Element IDs Generated IDs (Nav Section) (#…
breehall Oct 14, 2021
038a66d
[EuiToken] Update `tokenKeyword` and rename old `tokenKeyword` as `to…
andreadelrio Oct 14, 2021
ac97179
Convert flakey Jest focus/keyboard tests to Cypress (#5261)
constancecchen Oct 14, 2021
5a84d96
[Docs] Replace Static HTML Element IDs Generated IDs (Display Section…
breehall Oct 15, 2021
12c934c
Update dependency @elastic/charts to v38 (#5277)
renovate[bot] Oct 18, 2021
f385043
[EuiAccordion] Allow interactive content within the `buttonContent` (…
cchaos Oct 19, 2021
27d9842
Ensure unique ID in combobox with prepended or appended labels (#5229)
1Copenut Oct 19, 2021
648345e
update i18ntokens
chandlerprall Oct 19, 2021
d5cee9c
40.0.0
chandlerprall Oct 19, 2021
19e069e
Updated documentation.
chandlerprall Oct 19, 2021
5f63931
Add combined Jest+Cypress code coverage reports (#5262)
constancecchen Oct 20, 2021
cdbbf80
[EuiMarkdownEditor] Add `remark-breaks` and line break plugin (#5272)
i-a-n Oct 20, 2021
ce737ca
[Docs] Separated out Borders to its own page & [EuiTableRowCell] fixe…
cchaos Oct 20, 2021
394529c
Fix CL from #5272
cchaos Oct 25, 2021
5ef7599
[Docs] Update EuiDatePicker types (#5318)
thompsongl Oct 25, 2021
d95b1da
[Cypress] Add flakey test retries + harden intermittent context menu …
constancecchen Oct 25, 2021
cff0a2f
[Docs] Fix Colors guidelines (#5316)
thompsongl Oct 26, 2021
d04941e
Update dependency @elastic/charts to ^38.1.0 (#5321)
renovate[bot] Oct 26, 2021
a8c8fb7
[Docs] Separated out Typography to its own page (#5300)
cchaos Oct 26, 2021
f4c9cc3
[EuiDataGrid] Allow the grid to expand & contract with changing rowCo…
chandlerprall Oct 27, 2021
5640271
[EuiDataGrid] Fix large density not increasing font size on Amsterdam…
constancecchen Oct 27, 2021
9fd21b5
Updating Renovate spec for "major" only
cchaos Oct 28, 2021
1e6b6d2
[EuiDataGrid] Fix row height not updating dynamically when set to `au…
constancecchen Oct 28, 2021
cdc18de
Fix changelog location
cee-chen Oct 28, 2021
8b95187
40.1.0
cee-chen Oct 28, 2021
6636fb3
Updated documentation.
cee-chen Oct 28, 2021
edffcfd
v39.1.2 changelog
cee-chen Oct 28, 2021
b9e962b
[EuiAutoSizer] `AutoSizer` wrapper and `testenv` mock (#5278)
thompsongl Oct 28, 2021
e12e7cf
[Docs] Add new "Theming / Sizing" page (#5326)
cchaos Oct 28, 2021
b8b66a8
docs
thompsongl Oct 28, 2021
0d13d53
CL
thompsongl Oct 28, 2021
3abd616
type updates
thompsongl Oct 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ module.exports = {
}
],
],
// Used for Cypress code coverage - note that the env has to be Cypress-specific, otherwise Jest --coverage throws errors
"env": {
"cypress_test": {
"plugins": ["istanbul"]
}
}
};
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ docs
packages
scripts
generator-eui
cypress
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,11 @@ module.exports = {
'react/prefer-stateless-function': 'off',
},
},
{
globals: {
cy: true,
},
files: ['*.spec.js'],
},
],
};
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Provide a detailed summary of your PR. Explain how you arrived at your solution.
- [ ] Props have proper **autodocs** and **[playground toggles](https://github.com/elastic/eui/blob/master/wiki/documentation-guidelines.md#adding-playground-toggles)**
- [ ] Added **[documentation](https://github.com/elastic/eui/blob/master/wiki/documentation-guidelines.md)**
- [ ] Checked **[Code Sandbox](https://codesandbox.io/)** works for any docs examples
- [ ] Added or updated **[jest tests](https://github.com/elastic/eui/blob/master/wiki/testing.md)**
- [ ] Added or updated **[jest](https://github.com/elastic/eui/blob/master/wiki/testing.md) and [cypress](https://github.com/elastic/eui/blob/master/wiki/cypress-testing.md) tests**
- [ ] Checked for **breaking changes** and labeled appropriately
- [ ] Checked for **accessibility** including keyboard-only and screenreader modes
- [ ] A **[changelog](https://github.com/elastic/eui/blob/master/wiki/documentation-guidelines.md#changelog)** entry exists and is marked appropriately
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ test/spec/screenshots/baseline/**/*.png
test/spec/screenshots/diff/**/*.png
test/spec/screenshots/screen/**/*.png
test/failure-screenshots/**/*.png
cypress/screenshots
cypress/videos

coverage/
reports/
.nyc_output/
tmp/
dist/
lib/
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ src-docs/
packages/react-datepicker
packages/eslint-plugin
.nvmrc
cypress

# typescript output
types/
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
14
65 changes: 64 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,76 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Added `EuiAutoSizer` component for setting dimensions on virtualized lists ([#5278](https://github.com/elastic/eui/pull/5278))
- Added `testenv` mock for `EuiAutoSizer` ([#5278](https://github.com/elastic/eui/pull/5278))
- Added `render` prop to `EuiI18n` ([#5236](https://github.com/elastic/eui/pull/5236))

## [`40.1.0`](https://github.com/elastic/eui/tree/v40.1.0)

- Added styling support for `valign` prop on `EuiTableRowCell` ([#5283](https://github.com/elastic/eui/pull/5283))
- Added `remark-breaks` plugin to mimic GitHub-flavored markdown line breaks within `EuiMarkdownEditor` ([#5272](https://github.com/elastic/eui/pull/5272))
- Removed `EuiErrorBoundary` from `EuiDatePicker` when unsupported props are used ([#5318](https://github.com/elastic/eui/pull/5318))

**Bug fixes**

- Fixed default text alignment in `EuiTableRowCell` on Safari ([#5283](https://github.com/elastic/eui/pull/5283))
- Fixed `mobileOptions.truncateText` from getting overridden by `truncateText` in `EuiTableRowCell` ([#5283](https://github.com/elastic/eui/pull/5283))
- Fixed issue with dynamic row counts in `EuiDataGrid` ([#5313](https://github.com/elastic/eui/pull/5313))
- Fixed `EuiDataGrid` to dynamically update row heights when set to `auto` ([#5281](https://github.com/elastic/eui/pull/5281))

**Theme: Amsterdam**

- Fixed `mobileOptions.enlarge` styling in `EuiTableRowCell` ([#5283](https://github.com/elastic/eui/pull/5283))
- Fixed `EuiDataGrid`'s expanded density not increasing font size on Amsterdam ([#5320](https://github.com/elastic/eui/pull/5320))

## [`40.0.0`](https://github.com/elastic/eui/tree/v40.0.0)

- Updated `tokenKeyword` to match the definition of keyword field type ([#5251](https://github.com/elastic/eui/pull/5251))
- Added `element`, `buttonElement`, and `arrowProps` props to further customize `EuiAccordion` ([#5258](https://github.com/elastic/eui/pull/5258))

**Bug fixes**

- Fixed missing `id` for `EuiCombobox` by generating one if `prepend` or `append` exists ([#5229](https://github.com/elastic/eui/pull/5229))

**Breaking changes**

- Renamed `tokenKeyword` icon to `tokenTag` in `EuiToken` ([#5251](https://github.com/elastic/eui/pull/5251))

## [`39.1.2`](https://github.com/elastic/eui/tree/v39.1.2)

**Note: this release is a backport containing changes originally made in `40.1.0`**

**Bug fixes**

- Fixed `EuiDataGrid` to dynamically update row heights when set to `auto` ([#5281](https://github.com/elastic/eui/pull/5281))

## [`39.1.1`](https://github.com/elastic/eui/tree/v39.1.1)

**Bug fixes**

- Fixed `EuiSuperDatePicker` from crashing due to invalid time input ([#5263](https://github.com/elastic/eui/pull/5263))
- Fixed content in `EuiFilterButton` again when `numFilters` is undefined ([#5268](https://github.com/elastic/eui/pull/5268))

## [`39.1.0`](https://github.com/elastic/eui/tree/v39.1.0)

- Added support for `ghost` and `text` `EuiIcon` colors on Elastic logos ([#5245](https://github.com/elastic/eui/pull/5245))
- Added a default `data-test-subj` to `EuiErrorBoundary` ([#5232](https://github.com/elastic/eui/pull/5232))

**Bug fixes**

- Fixed content in `EuiPopover` from being inaccessible during the opening animation ([#5249](https://github.com/elastic/eui/pull/5249))
- Fixed multiple accessibility issues in `EuiBasicTable` and `EuiInMemoryTable` ([#5241](https://github.com/elastic/eui/pull/5241))

## [`39.0.0`](https://github.com/elastic/eui/tree/v39.0.0)

- Added `maxWidth` prop to `EuiTour`, made `subtitle` optional, and fixed heading levels and footer background ([#5225](https://github.com/elastic/eui/pull/5225))
- Updated `tint`, `shade`, `saturate`, `desaturate`, and `makeHighContrastColor` utility functions to maintain color format supplied ([#5230](https://github.com/elastic/eui/pull/5230))
- Converted generated icon files to Typescript, eliminating the last `.js` files in our source files ([#5212](https://github.com/elastic/eui/pull/5212))

**Bug fixes**

- Fixed tick and level alignment in `Eui[Dual]Range` ([#5181](https://github.com/elastic/eui/pull/5181))
- Fixed duplicate IDs on mobile/desktop select all checkboxes in `EuiBasicTable` ([#5237](https://github.com/elastic/eui/pull/5237))
- Fixed duplicate IDs on mobile/desktop select all checkboxes in EuiBasicTable ([#5237](https://github.com/elastic/eui/pull/5237))
- Fixed missing i18n token in `EuiBasicTable`'s no items message ([#5242](https://github.com/elastic/eui/pull/5242))

**Breaking changes**

Expand Down
11 changes: 11 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"component": {
"componentFolder": "src",
"testFiles": "**/*.spec.tsx",
"video": false
},
"retries": {
"runMode": 2,
"openMode": 0
}
}
34 changes: 34 additions & 0 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

/// <reference types="cypress" />

// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
// @see https://on.cypress.io/plugins-guide

module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config

require('@cypress/code-coverage/task')(on, config);
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'));

if (config.testingType === 'component') {
const { startDevServer } = require('@cypress/webpack-dev-server');

// Your project's Webpack configuration
const webpackConfig = require('./webpack.config.js');

on('dev-server:start', (options) =>
startDevServer({ options, webpackConfig })
);
}

return config;
};
60 changes: 60 additions & 0 deletions cypress/plugins/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

/* eslint-disable @typescript-eslint/no-var-requires */

const path = require('path');
const webpack = require('webpack');

const plugins = [
// Force EuiIcon's dynamic imports to be included in the single eui.js build,
// instead of being split out into multiple files
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
];

module.exports = {
mode: 'development',

devtool: 'cheap-module-source-map',

resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
},

module: {
rules: [
{
test: /\.(js|tsx?)$/,
loader: 'babel-loader',
exclude: /node_modules/,
options: {
plugins: ['istanbul'],
},
},
{
test: /\.scss$/,
loaders: [
'style-loader',
'css-loader',
'postcss-loader',
'sass-loader',
],
exclude: /node_modules/,
},
{
test: /\.(woff|woff2|ttf|eot|ico|png|gif|jpg|jpeg)(\?|$)/,
loader: 'file-loader',
},
],
strictExportPresence: false,
},

plugins,
};
16 changes: 16 additions & 0 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

import '@cypress/code-coverage/support';
62 changes: 31 additions & 31 deletions docs/bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/bundle.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/icon.accessibility.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/icon.accessibility.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/icon.aggregate.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/icon.aggregate.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading