-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [Metrics UI] Design Refresh: Inventory View, Episode 1 * Removing unused i18n labels * Removing obsolete code removed in previous PR Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
069d347
commit d92bc99
Showing
25 changed files
with
493 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { EuiPanel } from '@elastic/eui'; | ||
import { euiStyled } from '../../../observability/public'; | ||
|
||
export const ToolbarPanel = euiStyled(EuiPanel).attrs(() => ({ | ||
grow: false, | ||
paddingSize: 'none', | ||
}))` | ||
border-top: none; | ||
border-right: none; | ||
border-left: none; | ||
border-radius: 0; | ||
padding: ${props => `12px ${props.theme.eui.paddingSizes.m}`}; | ||
`; |
53 changes: 53 additions & 0 deletions
53
x-pack/plugins/infra/public/pages/metrics/inventory_view/components/dropdown_button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { EuiFlexGroup, EuiFlexItem, EuiButtonEmpty } from '@elastic/eui'; | ||
import React, { ReactNode } from 'react'; | ||
import { withTheme, EuiTheme } from '../../../../../../observability/public'; | ||
|
||
interface Props { | ||
label: string; | ||
onClick: () => void; | ||
theme: EuiTheme; | ||
children: ReactNode; | ||
} | ||
|
||
export const DropdownButton = withTheme(({ onClick, label, theme, children }: Props) => { | ||
return ( | ||
<EuiFlexGroup | ||
alignItems="center" | ||
gutterSize="none" | ||
style={{ | ||
border: theme.eui.euiFormInputGroupBorder, | ||
boxShadow: `0px 3px 2px ${theme.eui.euiTableActionsBorderColor}, 0px 1px 1px ${theme.eui.euiTableActionsBorderColor}`, | ||
}} | ||
> | ||
<EuiFlexItem | ||
grow={false} | ||
style={{ | ||
padding: 12, | ||
background: theme.eui.euiFormInputGroupLabelBackground, | ||
fontSize: '0.75em', | ||
fontWeight: 600, | ||
color: theme.eui.euiTitleColor, | ||
}} | ||
> | ||
{label} | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EuiButtonEmpty | ||
color="text" | ||
iconType="arrowDown" | ||
onClick={onClick} | ||
iconSide="right" | ||
size="xs" | ||
> | ||
{children} | ||
</EuiButtonEmpty> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.