Skip to content

Commit

Permalink
New uptime app icon, deprecation warning for charts (#1463)
Browse files Browse the repository at this point in the history
* New uptime app icon, deprecation warning for charts
  • Loading branch information
snide authored Jan 23, 2019
1 parent 8f36ae1 commit aa634e8
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 31 deletions.
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))
- Adds `wrapText` prop that enables `EuiListGroupItem` text to wrap ([#1459](https://github.com/elastic/eui/pull/1459))
- 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
2 changes: 1 addition & 1 deletion src-docs/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ const navigation = [{
].map(example => createExample(example)),
},
{
name: 'Series charts (beta)',
name: 'Charts (deprecated)',
items: [
XYChartExample,
XYChartAxisExample,
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',
'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
9 changes: 4 additions & 5 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,12 @@ export const XYChartBarExample = {
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
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 @@ -6121,6 +6121,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 @@ -240,6 +240,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 @@ -561,6 +562,7 @@ const typeToIconMap = {
trash,
upgradeAssistantApp,
pinFilled,
uptimeApp,
user,
usersRolesApp,
vector,
Expand Down

0 comments on commit aa634e8

Please sign in to comment.