From 352540a2e281486389cc7b2c7523e5b1c54a632b Mon Sep 17 00:00:00 2001 From: Michael Marcialis Date: Fri, 13 Oct 2023 10:39:44 -0400 Subject: [PATCH] added sparse and dense vector icons --- src-docs/src/views/icon/tokens.tsx | 3 +- .../icon/__snapshots__/icon.test.tsx.snap | 56 ++++++++++++++++++- .../icon/assets/tokenVectorDense.tsx | 36 ++++++++++++ .../icon/assets/tokenVectorSparse.tsx | 36 ++++++++++++ src/components/icon/icon_map.ts | 4 +- .../icon/svgs/tokens/tokenDenseVector.svg | 3 - .../icon/svgs/tokens/tokenVectorDense.svg | 5 ++ .../icon/svgs/tokens/tokenVectorSparse.svg | 5 ++ .../token/__snapshots__/token.test.tsx.snap | 22 +++++++- src/components/token/token_map.ts | 22 ++++++-- 10 files changed, 179 insertions(+), 13 deletions(-) create mode 100644 src/components/icon/assets/tokenVectorDense.tsx create mode 100644 src/components/icon/assets/tokenVectorSparse.tsx delete mode 100644 src/components/icon/svgs/tokens/tokenDenseVector.svg create mode 100644 src/components/icon/svgs/tokens/tokenVectorDense.svg create mode 100644 src/components/icon/svgs/tokens/tokenVectorSparse.svg diff --git a/src-docs/src/views/icon/tokens.tsx b/src-docs/src/views/icon/tokens.tsx index beaad629f09..b11f2a44b61 100644 --- a/src-docs/src/views/icon/tokens.tsx +++ b/src-docs/src/views/icon/tokens.tsx @@ -22,7 +22,6 @@ const tokens: EuiTokenMapType[] = [ 'tokenCompletionSuggester', 'tokenConstant', 'tokenDate', - 'tokenDenseVector', 'tokenElement', 'tokenEnum', 'tokenEnumMember', @@ -66,6 +65,8 @@ const tokens: EuiTokenMapType[] = [ 'tokenText', 'tokenTokenCount', 'tokenVariable', + 'tokenVectorDense', + 'tokenVectorSparse', ]; export default () => ( diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 430ad7993c8..d3d2d347700 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -9675,7 +9675,13 @@ exports[`EuiIcon props type tokenDenseVector is rendered 1`] = ` xmlns="http://www.w3.org/2000/svg" > + + `; @@ -10501,6 +10507,54 @@ exports[`EuiIcon props type tokenVariable is rendered 1`] = ` `; +exports[`EuiIcon props type tokenVectorDense is rendered 1`] = ` + +`; + +exports[`EuiIcon props type tokenVectorSparse is rendered 1`] = ` + +`; + exports[`EuiIcon props type training is rendered 1`] = ` `; +exports[`EuiToken props iconType as EuiTokenMapType tokenVectorDense is rendered 1`] = ` + + + +`; + +exports[`EuiToken props iconType as EuiTokenMapType tokenVectorSparse is rendered 1`] = ` + + + +`; + exports[`EuiToken props shape circle is rendered 1`] = `