Skip to content

Commit

Permalink
[EuiIcon] Add move glyph (#7789)
Browse files Browse the repository at this point in the history
Co-authored-by: Lene Gadewoll <[email protected]>
  • Loading branch information
andreadelrio and mgadewoll authored Jun 10, 2024
1 parent 7fac1ce commit 971c76e
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ ehthumbs.db
ehthumbs_vista.db
*.stackdump
[Dd]esktop.ini
Icon
.DS_Store

# Logs
Expand Down
1 change: 1 addition & 0 deletions packages/eui/changelogs/upcoming/7789.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added `move` glyph to `EuiIcon`
1 change: 1 addition & 0 deletions packages/eui/src-docs/src/views/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export const iconTypes = [
'minusInCircleFilled',
'mobile',
'moon',
'move',
'namespace',
'nested',
'newChat',
Expand Down
18 changes: 18 additions & 0 deletions packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7800,6 +7800,24 @@ exports[`EuiIcon props type moon is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type move is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon emotion-euiIcon-m-isLoaded"
data-icon-type="move"
data-is-loaded="true"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M14.883 7.644a.5.5 0 0 1 .006.707l-1.984 2.016a.5.5 0 0 1-.856-.347l-.009-1.004-3.024.024V12h1a.5.5 0 0 1 .354.854l-2 2a.5.5 0 0 1-.707 0l-2-2A.5.5 0 0 1 6.016 12h1V9.057l-3.008.024.008.995a.5.5 0 0 1-.85.36L1.148 8.454a.5.5 0 0 1-.005-.707L3.127 5.73a.5.5 0 0 1 .857.347l.008 1.004 3.024-.025V4h-1a.5.5 0 0 1-.353-.854l2-2a.5.5 0 0 1 .707 0l2 2a.5.5 0 0 1-.354.854h-1v3.04l3.008-.024-.008-.996a.5.5 0 0 1 .85-.36l2.017 1.984Z"
/>
</svg>
`;

exports[`EuiIcon props type namespace is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
34 changes: 34 additions & 0 deletions packages/eui/src/components/icon/assets/move.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js

import * as React from 'react';
import type { SVGProps } from 'react';
interface SVGRProps {
title?: string;
titleId?: string;
}
const EuiIconMove = ({
title,
titleId,
...props
}: SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={16}
height={16}
viewBox="0 0 16 16"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M14.883 7.644a.5.5 0 0 1 .006.707l-1.984 2.016a.5.5 0 0 1-.856-.347l-.009-1.004-3.024.024V12h1a.5.5 0 0 1 .354.854l-2 2a.5.5 0 0 1-.707 0l-2-2A.5.5 0 0 1 6.016 12h1V9.057l-3.008.024.008.995a.5.5 0 0 1-.85.36L1.148 8.454a.5.5 0 0 1-.005-.707L3.127 5.73a.5.5 0 0 1 .857.347l.008 1.004 3.024-.025V4h-1a.5.5 0 0 1-.353-.854l2-2a.5.5 0 0 1 .707 0l2 2a.5.5 0 0 1-.354.854h-1v3.04l3.008-.024-.008-.996a.5.5 0 0 1 .85-.36l2.017 1.984Z" />
</svg>
);
export const icon = EuiIconMove;
1 change: 1 addition & 0 deletions packages/eui/src/components/icon/icon_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export const typeToPathMap = {
mobile: 'mobile',
monitoringApp: 'app_monitoring',
moon: 'moon',
move: 'move',
namespace: 'namespace',
nested: 'nested',
newChat: 'new_chat',
Expand Down
3 changes: 3 additions & 0 deletions packages/eui/src/components/icon/svgs/move.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 971c76e

Please sign in to comment.