From 0c18e4b4fc17b29d66133eace20947f08c9149f0 Mon Sep 17 00:00:00 2001 From: Andrea Del Rio Date: Thu, 23 May 2024 17:24:46 -0700 Subject: [PATCH 1/6] add move glyph --- packages/eui/src-docs/src/views/icon/icons.js | 1 + .../icon/__snapshots__/icon.test.tsx.snap | 20 +++++++++++++++++++ packages/eui/src/components/icon/icon_map.ts | 1 + 3 files changed, 22 insertions(+) diff --git a/packages/eui/src-docs/src/views/icon/icons.js b/packages/eui/src-docs/src/views/icon/icons.js index 5bce6d0a093..6274d3edb8e 100644 --- a/packages/eui/src-docs/src/views/icon/icons.js +++ b/packages/eui/src-docs/src/views/icon/icons.js @@ -185,6 +185,7 @@ export const iconTypes = [ 'minusInCircleFilled', 'mobile', 'moon', + 'move', 'namespace', 'nested', 'newChat', diff --git a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap index df9be56aea5..51deb112138 100644 --- a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -7800,6 +7800,26 @@ exports[`EuiIcon props type moon is rendered 1`] = ` `; +exports[`EuiIcon props type move is rendered 1`] = ` + +`; + exports[`EuiIcon props type namespace is rendered 1`] = ` From 9a6698194687e9470c97b337a95c14db10671dc7 Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Mon, 27 May 2024 10:32:50 +0200 Subject: [PATCH 3/6] fix: ensure icon folder is not ignored --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5bd7eedeb71..95d7d951175 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ ehthumbs.db ehthumbs_vista.db *.stackdump [Dd]esktop.ini -Icon .DS_Store # Logs From d4d485e197beedd38fe960bf29ab13addc6c5e33 Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Mon, 27 May 2024 10:33:58 +0200 Subject: [PATCH 4/6] feat: add new move svg file and icon component --- .../eui/src/components/icon/assets/move.tsx | 34 +++++++++++++++++++ .../eui/src/components/icon/svgs/move.svg | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 packages/eui/src/components/icon/assets/move.tsx create mode 100644 packages/eui/src/components/icon/svgs/move.svg diff --git a/packages/eui/src/components/icon/assets/move.tsx b/packages/eui/src/components/icon/assets/move.tsx new file mode 100644 index 00000000000..9f0fb23c907 --- /dev/null +++ b/packages/eui/src/components/icon/assets/move.tsx @@ -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 & SVGRProps) => ( + + {title ? {title} : null} + + +); +export const icon = EuiIconMove; diff --git a/packages/eui/src/components/icon/svgs/move.svg b/packages/eui/src/components/icon/svgs/move.svg new file mode 100644 index 00000000000..2714d3297d7 --- /dev/null +++ b/packages/eui/src/components/icon/svgs/move.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file From ee322bba572e82718981fa3b8e087a3101133963 Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Mon, 27 May 2024 10:36:12 +0200 Subject: [PATCH 5/6] test: update move icon snapshot --- .../eui/src/components/icon/__snapshots__/icon.test.tsx.snap | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap index 5ca933497ca..aba908690e6 100644 --- a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -7806,7 +7806,6 @@ exports[`EuiIcon props type move is rendered 1`] = ` class="euiIcon emotion-euiIcon-m-isLoaded" data-icon-type="move" data-is-loaded="true" - fill="none" height="16" role="img" viewBox="0 0 16 16" @@ -7815,7 +7814,6 @@ exports[`EuiIcon props type move is rendered 1`] = ` > `; From 2bf2815692383078077193e89aa4c0786d702b94 Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Mon, 27 May 2024 10:47:37 +0200 Subject: [PATCH 6/6] chore: add changelog --- packages/eui/changelogs/upcoming/7789.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 packages/eui/changelogs/upcoming/7789.md diff --git a/packages/eui/changelogs/upcoming/7789.md b/packages/eui/changelogs/upcoming/7789.md new file mode 100644 index 00000000000..84ba031c97a --- /dev/null +++ b/packages/eui/changelogs/upcoming/7789.md @@ -0,0 +1 @@ +- Added `move` glyph to `EuiIcon`