Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New uptime app icon, deprecation warning for charts #1463

Merged
merged 4 commits into from
Jan 23, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Added `uptimeApp` icon ([#1445](https://github.com/elastic/eui/pull/1463))
- Added `inputRef` prop to `EuiFieldNumber` and updated `EuiFieldText`'s to a Ref type ([#1434](https://github.com/elastic/eui/pull/1434))
- Added `snowflake` icon ([#1445](https://github.com/elastic/eui/pull/1445))

Expand Down
1 change: 1 addition & 0 deletions src-docs/src/views/icon/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const iconTypes = [
'sqlApp',
'timelionApp',
'upgradeAssistantApp',
'uptimeApp',
snide marked this conversation as resolved.
Show resolved Hide resolved
'usersRolesApp',
'visualizeApp',
'watchesApp',
Expand Down
9 changes: 4 additions & 5 deletions src-docs/src/views/series_chart/series_chart_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ export const XYChartExample = {
intro: (
<Fragment>
<EuiCallOut
title="Beta Component"
color="warning"
title="Set for deprecation"
color="danger"
>
<p>
This component is still in Beta. We consider it to be reasonably stable, and welcome you to implement it,
but please be aware that breaking changes can come at any time with this component as such changes on beta
components does not necessitate a major version bump.
This component will be replaced in the near future and managed outside of EUI. We do not recommend using it at this time
and it will be removed by June 2019.
</p>
</EuiCallOut>

Expand Down
9 changes: 4 additions & 5 deletions src-docs/src/views/series_chart_area/area_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ export const XYChartAreaExample = {
intro: (
<Fragment>
<EuiCallOut
title="Beta Component"
color="warning"
title="Set for deprecation"
color="danger"
>
<p>
This component is still in Beta. We consider it to be reasonably stable, and welcome you to implement it,
but please be aware that breaking changes can come at any time with this component as such changes on beta
components does not necessitate a major version bump.
This component will be replaced in the near future and managed outside of EUI. We do not recommend using it at this time
and it will be removed by June 2019.
</p>
</EuiCallOut>

Expand Down
9 changes: 4 additions & 5 deletions src-docs/src/views/series_chart_axis/series_axis_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ export const XYChartAxisExample = {
intro: (
<Fragment>
<EuiCallOut
title="Beta Component"
color="warning"
title="Set for deprecation"
color="danger"
>
<p>
This component is still in Beta. We consider it to be reasonably stable, and welcome you to implement it,
but please be aware that breaking changes can come at any time with this component as such changes on beta
components does not necessitate a major version bump.
This component will be replaced in the near future and managed outside of EUI. We do not recommend using it at this time
and it will be removed by June 2019.
</p>
</EuiCallOut>

Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/series_chart_bar/bar_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export const XYChartBarExample = {
intro: (
<Fragment>
<EuiCallOut
title="Beta Component"
title="Planned deprecation"
color="warning"
>
<p>
This component is still in Beta. We consider it to be reasonably stable, and welcome you to implement it,
but please be aware that breaking changes can come at any time with this component as such changes on beta
components does not necessitate a major version bump.
This component is still in Beta. We consider it to be reasonably stable, and welcome you to implement it,
snide marked this conversation as resolved.
Show resolved Hide resolved
but please be aware that breaking changes can come at any time with this component as such changes on beta
components does not necessitate a major version bump.
</p>
</EuiCallOut>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ export const XYChartHistogramExample = {
intro: (
<Fragment>
<EuiCallOut
title="Beta Component"
color="warning"
title="Set for deprecation"
color="danger"
>
<p>
This component is still in Beta. We consider it to be reasonably stable, and welcome you to implement it,
but please be aware that breaking changes can come at any time with this component as such changes on beta
components does not necessitate a major version bump.
This component will be replaced in the near future and managed outside of EUI. We do not recommend using it at this time
and it will be removed by June 2019.
</p>
</EuiCallOut>

Expand Down
9 changes: 4 additions & 5 deletions src-docs/src/views/series_chart_line/line_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ export const XYChartLineExample = {
intro: (
<Fragment>
<EuiCallOut
title="Beta Component"
color="warning"
title="Set for deprecation"
color="danger"
>
<p>
This component is still in Beta. We consider it to be reasonably stable, and welcome you to implement it,
but please be aware that breaking changes can come at any time with this component as such changes on beta
components does not necessitate a major version bump.
This component will be replaced in the near future and managed outside of EUI. We do not recommend using it at this time
and it will be removed by June 2019.
</p>
</EuiCallOut>

Expand Down
19 changes: 19 additions & 0 deletions src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6105,6 +6105,25 @@ exports[`EuiIcon props type upgradeAssistantApp is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type uptimeApp is rendered 1`] = `
<svg
class="euiIcon euiIcon--medium euiIcon--app"
focusable="false"
height="32"
viewBox="0 0 32 32"
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<path
class="euiIcon__fillSecondary"
d="M4.216 12.377A10.948 10.948 0 0 0 2.181 17H.153a12.941 12.941 0 0 1 2.693-6.118l1.37 1.495zm2.948-2.703l-1.37-1.495A12.94 12.94 0 0 1 13 6v2c-2.144 0-4.144.613-5.836 1.674z"
/>
<path
d="M26 4.414V19c0 7.18-5.82 13-13 13C6.5 32 1.115 27.23.153 21H2.18c.94 5.12 5.427 9 10.819 9 6.075 0 11-4.925 11-11V4.414l-4.293 4.293-1.414-1.414L25 .586l6.707 6.707-1.414 1.414L26 4.414zm-7.836 9.909l1.472 1.354-7.577 8.235-4.835-4.442 1.353-1.473 3.364 3.09 6.223-6.764z"
/>
</svg>
`;

exports[`EuiIcon props type user is rendered 1`] = `
<svg
class="euiIcon euiIcon--medium"
Expand Down
6 changes: 6 additions & 0 deletions src/components/icon/assets/app_uptime.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ import temperature from './assets/temperature.svg';
import timelionApp from './assets/app_timelion.svg';
import trash from './assets/trash.svg';
import upgradeAssistantApp from './assets/app_upgrade_assistant.svg';
import uptimeApp from './assets/app_uptime.svg';
import user from './assets/user.svg';
import usersRolesApp from './assets/app_users_roles.svg';
import vector from './assets/vector.svg';
Expand Down Expand Up @@ -559,6 +560,7 @@ const typeToIconMap = {
trash,
upgradeAssistantApp,
pinFilled,
uptimeApp,
user,
usersRolesApp,
vector,
Expand Down