From b5b512e198f69abd8724b375a1a79c3aa63d6bc2 Mon Sep 17 00:00:00 2001 From: Michael Marcialis Date: Fri, 22 Sep 2023 13:04:03 -0400 Subject: [PATCH 1/2] added new gradient and palette icons --- src-docs/src/views/icon/icons.js | 2 + .../icon/__snapshots__/icon.test.tsx.snap | 40 +++++++++++++++++++ src/components/icon/assets/gradient.tsx | 37 +++++++++++++++++ src/components/icon/assets/palette.tsx | 35 ++++++++++++++++ src/components/icon/icon_map.ts | 2 + src/components/icon/svgs/gradient.svg | 3 ++ src/components/icon/svgs/palette.svg | 4 ++ 7 files changed, 123 insertions(+) create mode 100644 src/components/icon/assets/gradient.tsx create mode 100644 src/components/icon/assets/palette.tsx create mode 100644 src/components/icon/svgs/gradient.svg create mode 100644 src/components/icon/svgs/palette.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index c585345c435..d00b12bc9f2 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -112,6 +112,7 @@ export const iconTypes = [ 'grab', 'grabHorizontal', 'grabOmnidirectional', + 'gradient', 'grid', 'heart', 'heatmap', @@ -185,6 +186,7 @@ export const iconTypes = [ 'package', 'pageSelect', 'pagesSelect', + 'palette', 'paperClip', 'partial', 'pause', diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index ce6e7c498e9..28179a5e9b0 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -3544,6 +3544,25 @@ exports[`EuiIcon props type grabOmnidirectional is rendered 1`] = ` `; +exports[`EuiIcon props type gradient is rendered 1`] = ` + +`; + exports[`EuiIcon props type graphApp is rendered 1`] = `