Skip to content

Commit

Permalink
Upgrade EUI to v30.1.1 (elastic#81499) (elastic#82210)
Browse files Browse the repository at this point in the history
* eui to v30.0.0

* removed unused RecentLinks component

* update compressed -> display prop

* euiformrow compressed -> display

* euipopover remove withtitle

* euibuttongroup prop updates

* remove euibuttontoggle

* src snapshot updates

* tutorial euibuttongroup update

* x-pack snapshot updates

* euibuttongroup test updates

* TODO

* misc. js file updates

* remove euinavdrawer scss references

* translation removals

* more x-pack snapshot updates

* update data-test-subj lookup

* icons logoAMP -> logoObservability

* cypress selector updates

* update euibuttontoggle onchange, test interaction

* Fix auto-update toggle in Visualize

* some more change -> click test updates

* idtoselectedmap change

* Fix feature table button group

* Remove empty SASS file

* Fix feature table button group II

* Using `compressed` to also dictate dual range row

* Fix a few security labels

* An ML fix

* Apply suggestions from code review

Co-authored-by: Caroline Horn <[email protected]>

* remove unused translation

* update view_type_toggle snapshot

* more snapshot updates

* eui to 30.1.0

* undo temp ts-ignore

* more x-pack snapshot updates

* eui to 30.1.1

* update feature privilege text

* Update x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/sub_feature_form.tsx

Co-authored-by: Joe Portner <[email protected]>

* reuse i18n token

* Adapt log entry action button to new `minWidth` prop

* clean up label

* Combine auto apply strings into one

* ternary fix

* cases status useCallback

Co-authored-by: cchaos <[email protected]>
Co-authored-by: Caroline Horn <[email protected]>
Co-authored-by: Joe Portner <[email protected]>
Co-authored-by: Felix Stürmer <[email protected]>

Co-authored-by: cchaos <[email protected]>
Co-authored-by: Caroline Horn <[email protected]>
Co-authored-by: Joe Portner <[email protected]>
Co-authored-by: Felix Stürmer <[email protected]>
  • Loading branch information
5 people authored Oct 31, 2020
1 parent d9c8724 commit df1f031
Show file tree
Hide file tree
Showing 208 changed files with 1,254 additions and 1,115 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,16 @@
"**/grunt-*/**",
"x-pack/typescript",
"@elastic/eui/rehype-react",
"@elastic/eui/remark-parse",
"@elastic/eui/remark-rehype",
"@elastic/eui/remark-rehype/**"
"@elastic/eui/remark-rehype/**",
"@elastic/eui/unified"
]
},
"dependencies": {
"@elastic/datemath": "5.0.3",
"@elastic/elasticsearch": "7.10.0-rc.1",
"@elastic/eui": "29.5.0",
"@elastic/eui": "30.1.1",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "^2.5.0",
"@elastic/request-crypto": "1.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-ui-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"@babel/core": "^7.11.6",
"@elastic/eui": "29.5.0",
"@elastic/eui": "30.1.1",
"@kbn/babel-preset": "1.0.0",
"@kbn/optimizer": "1.0.0",
"babel-loader": "^8.0.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-ui-shared-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@elastic/charts": "24.0.0",
"@elastic/eui": "29.5.0",
"@elastic/eui": "30.1.1",
"@elastic/numeral": "^2.5.0",
"@kbn/i18n": "1.0.0",
"@kbn/monaco": "1.0.0",
Expand Down
52 changes: 0 additions & 52 deletions src/core/public/chrome/ui/header/recent_links.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function NumberInputOption<ParamName extends string>({
'data-test-subj': dataTestSubj,
}: NumberInputOptionProps<ParamName>) {
return (
<EuiFormRow label={label} error={error} isInvalid={isInvalid} fullWidth compressed>
<EuiFormRow label={label} error={error} isInvalid={isInvalid} fullWidth display="rowCompressed">
<EuiFieldNumber
data-test-subj={dataTestSubj}
disabled={disabled}
Expand Down
8 changes: 7 additions & 1 deletion src/plugins/charts/public/static/components/range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ function RangeOption<ParamName extends string>({
}
};
return (
<EuiFormRow label={label} fullWidth={true} isInvalid={!isValidState} error={error} compressed>
<EuiFormRow
label={label}
fullWidth={true}
isInvalid={!isValidState}
error={error}
display="rowCompressed"
>
<EuiRange
compressed
fullWidth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function RequiredNumberInputOption<ParamName extends string>({
);

return (
<EuiFormRow label={label} error={error} isInvalid={isInvalid} fullWidth compressed>
<EuiFormRow label={label} error={error} isInvalid={isInvalid} fullWidth display="rowCompressed">
<EuiFieldNumber
compressed
fullWidth
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/charts/public/static/components/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function SelectOption<ParamName extends string, ValidParamValues extends string

return (
<EuiFormRow
compressed
display="rowCompressed"
fullWidth
helpText={helpText}
id={id}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/charts/public/static/components/switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function SwitchOption<ParamName extends string>({
setValue,
}: SwitchOptionProps<ParamName>) {
return (
<EuiFormRow fullWidth={true} compressed={true}>
<EuiFormRow fullWidth={true} display="rowCompressed">
<EuiToolTip content={tooltip} delay="long" position="right">
<EuiSwitch
compressed={true}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/charts/public/static/components/text_input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function TextInputOption<ParamName extends string>({
setValue,
}: TextInputOptionProps<ParamName>) {
return (
<EuiFormRow helpText={helpText} label={label} fullWidth compressed>
<EuiFormRow helpText={helpText} label={label} fullWidth display="rowCompressed">
<EuiFieldText
compressed
fullWidth
Expand Down

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

1 change: 0 additions & 1 deletion src/plugins/data/public/ui/filter_bar/filter_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ function FilterBarUI(props: Props) {
isOpen={isAddFilterPopoverOpen}
closePopover={() => setIsAddFilterPopoverOpen(false)}
anchorPosition="downLeft"
withTitle
panelPaddingSize="none"
ownFocus={true}
initialFocus=".filterEditor__hiddenItem"
Expand Down
1 change: 0 additions & 1 deletion src/plugins/data/public/ui/filter_bar/filter_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ export function FilterItem(props: Props) {
}}
button={badge}
anchorPosition="downLeft"
withTitle={true}
panelPaddingSize="none"
>
<EuiContextMenu initialPanelId={0} panels={getPanels()} />
Expand Down
1 change: 0 additions & 1 deletion src/plugins/data/public/ui/filter_bar/filter_options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ class FilterOptionsUI extends Component<Props, State> {
}
anchorPosition="rightUp"
panelPaddingSize="none"
withTitle
repositionOnScroll
>
<EuiPopoverTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export function QueryLanguageSwitcher(props: Props) {
button={button}
isOpen={isPopoverOpen}
closePopover={() => setIsPopoverOpen(false)}
withTitle
repositionOnScroll
>
<EuiPopoverTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function ActionBar({
</EuiFormRow>
</EuiFlexItem>
<EuiFlexItem>
<EuiFormRow displayOnly>
<EuiFormRow display="center">
{isSuccessor ? (
<FormattedMessage
id="discover.context.olderDocumentsDescription"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function DiscoverFieldSearch({ onChange, value, types }: Props) {
legend={legend}
options={toggleButtons(id)}
idSelected={`${id}-${values[id]}`}
onChange={(optionId) => handleValueChange(id, optionId.replace(`${id}-`, ''))}
onChange={(optionId: string) => handleValueChange(id, optionId.replace(`${id}-`, ''))}
buttonSize="compressed"
isFullWidth
data-test-subj={`${id}ButtonGroup`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const PanelOptionsMenu: React.FC<PanelOptionsMenuProps> = ({
panelPaddingSize="none"
anchorPosition="downRight"
data-test-subj={open ? 'embeddablePanelContextMenuOpen' : 'embeddablePanelContextMenuClosed'}
withTitle
>
<EuiContextMenu initialPanelId="mainMenu" panels={panelDescriptor ? [panelDescriptor] : []} />
</EuiPopover>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export class PanelOptionsMenu extends React.Component<PanelOptionsMenuProps, Sta
? 'embeddablePanelContextMenuOpen'
: 'embeddablePanelContextMenuClosed'
}
withTitle
>
<EuiContextMenu
initialPanelId="mainMenu"
Expand Down

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

Loading

0 comments on commit df1f031

Please sign in to comment.