Skip to content

Commit c7abc03

Browse files
committed
Merge branch 'main' into global-default-font-size-unit
2 parents 96442fd + cdf1e43 commit c7abc03

2,224 files changed

Lines changed: 10092 additions & 18628 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildkite/scripts/pipeline_test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ docker run \
1313
docker.elastic.co/eui/ci:5.3 \
1414
bash -c "/opt/yarn*/bin/yarn \
1515
&& yarn cypress install \
16-
&& NODE_OPTIONS=\"--max-old-space-size=2048\" npm run test-ci"
16+
&& yarn lint \
17+
&& yarn test-unit --node-options=--max_old_space_size=2048 \
18+
&& yarn test-cypress --node-options=--max_old_space_size=2048"

.github/config/label_commenter_config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,18 @@ labels:
77
labeled:
88
issue:
99
body: 👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
10+
- name: breaking change
11+
labeled:
12+
pr:
13+
body: |
14+
This PR contains breaking changes. The opener of this pull request is asked to perform the following due diligence steps below, to assist EUI in our next Kibana upgrade:
15+
- If this PR contains **prop/API changes**:
16+
- [ ] Search through Kibana for `<EuiComponent` usages ([example search](https://github.com/search?q=repo%3Aelastic%2Fkibana+%3CEuiAccordion&type=code))
17+
- [ ] In the PR description or in a PR comment, include a count or list with the number of component usages in Kibana that will need to be updated (if that amount is "none", include that information as well)
18+
- If this PR contains **CSS changes**:
19+
- [ ] Search through Kibana for the changed EUI selectors, e.g. `.euiComponent` ([example search](https://github.com/search?q=repo%3Aelastic%2Fkibana+.euiAccordion&type=code))
20+
- [ ] In the PR description or in a PR comment, include a count or list with the number of custom CSS overrides in Kibana that will need to be updated (if that amount is "none", include that information as well)
21+
- 🔍 Tip: When searching through Kibana, consider excluding `**/target, **/*.snap, **/*.storyshot` files to reduce noise and only look at source code usages
22+
- ⚠️ For extremely risky changes, the EUI team should potentially consider the following precautions:
23+
- Using a [pre-release](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/releasing-versions.md#pre-release-process) release candidate to test Kibana CI ahead of time
24+
- Using [`kibana-a-la-carte`](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/testing/testing-in-kibana.md#testing-in-the-cloud) for manual QA, and to give other Kibana teams a staging server to quickly test against

.github/pull_request_template.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,27 @@
22

33
Provide a detailed summary of your PR. Explain how you arrived at your solution. If it includes changes to UI elements include a screenshot or gif.
44

5+
If this is your first PR in the EUI repo, please ensure you've fully read through our [contributing to EUI](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui#how-to-ensure-the-timely-review-of-pull-requests) wiki guide.
6+
57
## QA
68

79
Remove or strikethrough items that do not apply to your PR.
810

911
### General checklist
1012

11-
- [ ] Checked in both **light and dark** modes
12-
- [ ] Checked in **mobile**
13-
- [ ] Checked in **Chrome**, **Safari**, **Edge**, and **Firefox**
14-
- [ ] Props have proper **autodocs** (using `@default` if default values are missing) and **[playground toggles](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/documenting/playgrounds.md)**
15-
- [ ] Added **[documentation](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/documenting)**
16-
- [ ] Checked **[Code Sandbox](https://codesandbox.io/)** works for any docs examples
17-
- [ ] Added or updated **[jest](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/testing/unit-testing.md) and [cypress](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/testing/cypress-testing.md) tests**
18-
- [ ] Checked for **breaking changes** and labeled appropriately
19-
- [ ] Checked for **accessibility** including keyboard-only and screenreader modes
20-
- [ ] Updated the **[Figma](https://www.figma.com/community/file/964536385682658129)** library counterpart
21-
- [ ] A **[changelog](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/documenting/changelogs.md)** entry exists and is marked appropriately
13+
- Browser QA
14+
- [ ] Checked in both **light and dark** modes
15+
- [ ] Checked in **mobile**
16+
- [ ] Checked in **Chrome**, **Safari**, **Edge**, and **Firefox**
17+
- [ ] Checked for **accessibility** including keyboard-only and screenreader modes
18+
- Docs site QA
19+
- [ ] Added **[documentation](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/documenting)**
20+
- [ ] Props have proper **autodocs** (using `@default` if default values are missing) and **[playground toggles](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/documenting/playgrounds.md)**
21+
- [ ] Checked **[Code Sandbox](https://codesandbox.io/)** works for any docs examples
22+
- Code quality checklist
23+
- [ ] Added or updated **[jest](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/testing/unit-testing.md) and [cypress](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/testing/cypress-testing.md) tests**
24+
- Release checklist
25+
- [ ] A **[changelog](https://github.com/elastic/eui/blob/main/wiki/contributing-to-eui/documenting/changelogs.md)** entry exists and is marked appropriately.
26+
- [ ] If applicable, added the **breaking change** issue label (and filled out the breaking change checklist)
27+
- Designer checklist
28+
- [ ] Updated the **[Figma](https://www.figma.com/community/file/964536385682658129)** library counterpart
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: "Community contribution"
2+
on:
3+
pull_request_target:
4+
types: [opened, reopened]
5+
6+
jobs:
7+
community-pr-message:
8+
env:
9+
USER_LOGIN: ${{ github.event.pull_request.user.login }}
10+
IS_ORG_MEMBER: "" # https://github.com/github/vscode-github-actions/issues/47
11+
runs-on: ubuntu-latest
12+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- name: "Check for org membership"
18+
# https://docs.github.com/en/rest/orgs/members?apiVersion=2022-11-28#check-organization-membership-for-a-user
19+
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-writing-an-environment-variable-to-github_env
20+
run: |
21+
DATA=$(
22+
curl -L -i -w "%{http_code}" \
23+
-H "Accept: application/vnd.github+json" \
24+
-H "Authorization: Bearer ${{ secrets.EUI_COMMUNITY_PR }}" \
25+
-H "X-GitHub-Api-Version: 2022-11-28" \
26+
https://api.github.com/orgs/elastic/members/"$USER_LOGIN"
27+
)
28+
29+
HTTP_CODE=$(echo "$DATA" | awk '/([0-9]{3})$/{print}')
30+
echo "IS_ORG_MEMBER=$HTTP_CODE" >> "$GITHUB_ENV"
31+
- name: "Add comment to community pull requests"
32+
uses: actions/github-script@v6
33+
if: ${{ env.IS_ORG_MEMBER != '204' }}
34+
with:
35+
script: |
36+
github.rest.issues.createComment({
37+
issue_number: context.issue.number,
38+
owner: context.repo.owner,
39+
repo: context.repo.repo,
40+
body: "👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually?",
41+
});
42+
43+
github.rest.issues.addLabels({
44+
issue_number: context.issue.number,
45+
owner: context.repo.owner,
46+
repo: context.repo.repo,
47+
labels: ['community contribution']
48+
});

.github/workflows/label_commenter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ name: Auto-respond to issues with comments based on labels
33
on:
44
issues:
55
types: [labeled]
6+
pull_request_target:
7+
types: [labeled]
68

79
permissions:
810
contents: read
911
issues: write
12+
pull-requests: write
1013

1114
jobs:
1215
comment:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ test/failure-screenshots/**/*.png
77
cypress/screenshots
88
cypress/videos
99

10+
storybook-static/
1011
coverage/
1112
reports/
1213
.nyc_output/
1314
tmp/
15+
docs/
1416
dist/
1517
lib/
1618
es/

.storybook/preview.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import React from 'react';
1212
import type { Preview } from '@storybook/react';
13+
import { MINIMAL_VIEWPORTS } from '@storybook/addon-viewport';
1314

1415
/*
1516
* Preload all EuiIcons - Storybook does not support dynamic icon loading
@@ -96,6 +97,9 @@ const preview: Preview = {
9697
date: /Date$/,
9798
},
9899
},
100+
viewport: {
101+
viewports: MINIMAL_VIEWPORTS,
102+
},
99103
},
100104
// Due to CommonProps, these props appear on almost every Story, but generally
101105
// aren't super useful to test - let's disable them by default and (if needed)

CHANGELOG.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,101 @@
1+
## [`88.5.4`](https://github.com/elastic/eui/tree/v88.5.4)
2+
3+
- This release contains internal changes to a beta component needed by Kibana.
4+
5+
## [`88.5.3`](https://github.com/elastic/eui/tree/v88.5.3)
6+
7+
**Bug fixes**
8+
9+
- Fixed `EuiComboBox` search input width not resetting correctly on selection ([#7240](https://github.com/elastic/eui/pull/7240))
10+
11+
## [`88.5.2`](https://github.com/elastic/eui/tree/v88.5.2)
12+
13+
**Bug fixes**
14+
15+
- Fixed broken `EuiTextTruncate` testenv mocks ([#7234](https://github.com/elastic/eui/pull/7234))
16+
17+
## [`88.5.1`](https://github.com/elastic/eui/tree/v88.5.1)
18+
19+
- Improved the performance of `EuiComboBox` by removing the `react-autosizer-input` dependency ([#7215](https://github.com/elastic/eui/pull/7215))
20+
21+
**Dependency updates**
22+
23+
- Updated `react-element-to-jsx-string` to v5.0.0 ([#7214](https://github.com/elastic/eui/pull/7214))
24+
- Removed unused `@types/vfile-message` dependency ([#7214](https://github.com/elastic/eui/pull/7214))
25+
26+
## [`88.5.0`](https://github.com/elastic/eui/tree/v88.5.0)
27+
28+
- Updated `EuiCallOut` with a new `onDismiss` prop ([#7156](https://github.com/elastic/eui/pull/7156))
29+
- Added a new `renderCustomToolbar` prop to `EuiDataGrid`, which allows custom rendering of the toolbar. ([#7190](https://github.com/elastic/eui/pull/7190))
30+
- Added a new `allowResetButton` prop to `toolbarVisibility.showDisplaySelector` of `EuiDataGrid`, which allows hiding the "Reset to default" button from the display settings popover. ([#7190](https://github.com/elastic/eui/pull/7190))
31+
- Added a new `additionalDisplaySettings` prop to `toolbarVisibility.showDisplaySelector` of `EuiDataGrid`, which allows rendering extra settings inside the display settings popover. ([#7190](https://github.com/elastic/eui/pull/7190))
32+
- Updated `EuiDataGrid`'s toolbar display settings button icon ([#7190](https://github.com/elastic/eui/pull/7190))
33+
- Updated `EuiTextTruncate` with significantly improved iteration performance. Removed `measurementRenderAPI` prop, as `EuiTextTruncation` now only uses more performant canvas render API ([#7210](https://github.com/elastic/eui/pull/7210))
34+
- Updated `EuiPopover` with a new configurable `repositionToCrossAxis` prop ([#7211](https://github.com/elastic/eui/pull/7211))
35+
- Updated `EuiDatePicker` to support `compressed` input styling ([#7218](https://github.com/elastic/eui/pull/7218))
36+
- Added `gradient` and `palette` icon glyphs. ([#7220](https://github.com/elastic/eui/pull/7220))
37+
38+
**Bug fixes**
39+
40+
- Fixed `EuiPopover`'s missing animations on popover close ([#7211](https://github.com/elastic/eui/pull/7211))
41+
- Fixed `EuiInputPopover` anchoring to the wrong side and missing shadows on smaller screens ([#7211](https://github.com/elastic/eui/pull/7211))
42+
- Fixed `EuiSuperDatePicker` icon spacing on the quick select button ([#7217](https://github.com/elastic/eui/pull/7217))
43+
- Fixed a missing type in `EuiMarkdownEditor`'s default processing plugins ([#7221](https://github.com/elastic/eui/pull/7221))
44+
45+
## [`88.4.1`](https://github.com/elastic/eui/tree/v88.4.1)
46+
47+
**Bug fixes**
48+
49+
- Fixed missing `className`s on `EuiTextTruncate` ([#7212](https://github.com/elastic/eui/pull/7212))
50+
- Fixed `title`s on `EuiComboBox` dropdown options to always be present ([#7212](https://github.com/elastic/eui/pull/7212))
51+
- Fixed `EuiComboBox` truncation issues when search is an empty space ([#7212](https://github.com/elastic/eui/pull/7212))
52+
53+
## [`88.4.0`](https://github.com/elastic/eui/tree/v88.4.0)
54+
55+
- Updated `EuiComboBox` to allow configuring text truncation behavior via `truncationProps`. These props can be set on the entire combobox as well as on on individual dropdown options. ([#7028](https://github.com/elastic/eui/pull/7028))
56+
- Updated `EuiInMemoryTable` with a new `searchFormat` prop (defaults to `eql`). When setting this prop to `text`, the built-in search bar will ignore EQL syntax and allow searching for plain strings with special characters and symbols. ([#7175](https://github.com/elastic/eui/pull/7175))
57+
58+
**Bug fixes**
59+
60+
- `EuiComboBox` now always shows the highlighted search text, even on truncated text ([#7028](https://github.com/elastic/eui/pull/7028))
61+
- Fixed missing i18n in `EuiSearchBar`'s default placeholder and aria-label text ([#7175](https://github.com/elastic/eui/pull/7175))
62+
- Fixed the inline compressed styles of `EuiDescriptionListTitle` to use a taller line-height for readability ([#7185](https://github.com/elastic/eui/pull/7185))
63+
- Fixed `EuiComboBox` to correctly truncate selected items when displayed as pills and plain text ([#7193](https://github.com/elastic/eui/pull/7193))
64+
65+
**Accessibility**
66+
67+
- Added `aria-current` attribute to `EuiTablePagination` ([#7186](https://github.com/elastic/eui/pull/7186))
68+
69+
**CSS-in-JS conversions**
70+
71+
- Converted `EuiDroppable` and `EuiDraggable` to Emotion; Removed `$euiDragAndDropSpacing` Sass variables ([#7187](https://github.com/elastic/eui/pull/7187))
72+
73+
## [`88.3.0`](https://github.com/elastic/eui/tree/v88.3.0)
74+
75+
- `EuiGlobalToastList` now shows a "Clear all" button by default once above a certain number of toasts (defaults to 3). This threshold is configurable with the `showClearAllButtonAt` prop ([#7111](https://github.com/elastic/eui/pull/7111))
76+
- Added an optional `onClearAllToasts` callback to `EuiGlobalToastList` ([#7111](https://github.com/elastic/eui/pull/7111))
77+
- Added the `value`, `onChange`, and `onCancel` props that allow `EuiInlineEdit` to be used as a controlled component ([#7157](https://github.com/elastic/eui/pull/7157))
78+
- Added `grabOmnidirectional`, `transitionLeftIn`, `transitionLeftOut`, `transitionTopIn`, and `transitionTopOut` icon glyphs. ([#7168](https://github.com/elastic/eui/pull/7168))
79+
80+
**Bug fixes**
81+
82+
- Fixed `EuiInlineEdit` components to correctly spread `...rest` attributes to the parent wrapper ([#7157](https://github.com/elastic/eui/pull/7157))
83+
- Fixed `EuiListGroupItem` to correctly render the `extraAction` button when `showToolTip` is also passed ([#7159](https://github.com/elastic/eui/pull/7159))
84+
85+
**Dependency updates**
86+
87+
- Updated `@hello-pangea/dnd` to v16.3.0 ([#7125](https://github.com/elastic/eui/pull/7125))
88+
- Updated `@types/lodash` to v4.14.198 ([#7126](https://github.com/elastic/eui/pull/7126))
89+
90+
**Accessibility**
91+
92+
- `EuiAccordion` now correctly respects reduced motion settings ([#7161](https://github.com/elastic/eui/pull/7161))
93+
- `EuiAccordion` now shows a focus outline to keyboard users around its revealed children on open ([#7161](https://github.com/elastic/eui/pull/7161))
94+
95+
**CSS-in-JS conversions**
96+
97+
- Converted `EuiSplitPanel` to Emotion ([#7172](https://github.com/elastic/eui/pull/7172))
98+
199
## [`88.2.0`](https://github.com/elastic/eui/tree/v88.2.0)
2100

3101
- Added a new `EuiTextTruncate` component, which provides custom truncation options beyond native CSS ([#7116](https://github.com/elastic/eui/pull/7116))

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eui.elastic.co

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# @elastic/eui-team owns all files
2+
* @elastic/eui-team

0 commit comments

Comments
 (0)