Skip to content

Commit

Permalink
Upgrade EUI to v44.0.0 (#122386)
Browse files Browse the repository at this point in the history
* Upgrade EUI to 44.0.0

* Account for EuiSuperSelect deprecations

* Update test snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
Constance and kibanamachine authored Jan 11, 2022
1 parent 33af3fc commit 7ec1606
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"@elastic/datemath": "link:bazel-bin/packages/elastic-datemath",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.1.0-canary.2",
"@elastic/ems-client": "8.0.0",
"@elastic/eui": "43.1.1",
"@elastic/eui": "44.0.0",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/dev/license_checker/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ export const LICENSE_OVERRIDES = {
'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
'@elastic/ems-client@8.0.0': ['Elastic License 2.0'],
'@elastic/eui@43.1.1': ['SSPL-1.0 OR Elastic License 2.0'],
'@elastic/eui@44.0.0': ['SSPL-1.0 OR Elastic License 2.0'],
'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
};

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const BlockedWindowItem: React.FC<Props> = ({ blockedWindow, index }) =>
options={syncOptions}
onChange={(value) => setBlockedTimeWindow(index, 'jobType', value)}
itemClassName="blockedWindowSelectItem"
popoverClassName="blockedWindowSelectPopover"
popoverProps={{ className: 'blockedWindowSelectPopover' }}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const SearchOrFilter = React.memo<Props>(
itemClassName={timelineSelectModeItemsClassName}
onChange={handleChange}
options={options}
popoverClassName={searchOrFilterPopoverClassName}
popoverProps={{ className: searchOrFilterPopoverClassName }}
valueOfSelected={kqlMode}
/>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ export class EuiSuperSelect<T extends string> extends Component<EuiSuperSelectPr
itemClassName,
itemLayoutAlign,
fullWidth,
popoverClassName,
popoverProps,
compressed,
...rest
} = this.props;

const popoverClasses = classNames('euiSuperSelect', popoverClassName);
const popoverClasses = classNames('euiSuperSelect', popoverProps?.className);

const buttonClasses = classNames(
{
Expand Down Expand Up @@ -240,6 +240,7 @@ export class EuiSuperSelect<T extends string> extends Component<EuiSuperSelectPr

return (
<EuiInputPopover
{...popoverProps}
className={popoverClasses}
input={button}
isOpen={isOpen || this.state.isPopoverOpen}
Expand Down

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

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

8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1633,10 +1633,10 @@
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ==

"@elastic/eui@43.1.1":
version "43.1.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-43.1.1.tgz#5a4526c0a3fad45dcbe470dc33d1d9b701904494"
integrity sha512-ilVAfhM2QtrA8RiG5vgVBOW5xqyjpDeMTH2c/Nf8vEYVgebmTnDAJuaDj5lHpk01oqt2jEEelZkD40XKY2376w==
"@elastic/eui@44.0.0":
version "44.0.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-44.0.0.tgz#5d2dde9715fce5448b7d98367fd274dce974fe0a"
integrity sha512-Co3hSmvHn91upvylKvk5IJDR02KL+hdLQcJWU5DfRxTUv3iua3ZLmCMwG3WeoV/XE7kTsxDlNslRO5I3hk5uWg==
dependencies:
"@types/chroma-js" "^2.0.0"
"@types/lodash" "^4.14.160"
Expand Down

0 comments on commit 7ec1606

Please sign in to comment.