From ec77f42e604e3ed9bd1620370752aa414d22dad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Tue, 21 Jan 2025 13:17:02 +0100 Subject: [PATCH 1/7] Plugs icon --- packages/eui/src-docs/src/views/icon/icons.js | 1 + .../eui/src/components/icon/assets/plugs.tsx | 38 +++++++++++++++++++ packages/eui/src/components/icon/icon_map.ts | 1 + .../eui/src/components/icon/svgs/plugs.svg | 3 ++ .../components/display/icons/icon_types.ts | 1 + 5 files changed, 44 insertions(+) create mode 100644 packages/eui/src/components/icon/assets/plugs.tsx create mode 100644 packages/eui/src/components/icon/svgs/plugs.svg diff --git a/packages/eui/src-docs/src/views/icon/icons.js b/packages/eui/src-docs/src/views/icon/icons.js index e897ae29468..c9c55d0959a 100644 --- a/packages/eui/src-docs/src/views/icon/icons.js +++ b/packages/eui/src-docs/src/views/icon/icons.js @@ -220,6 +220,7 @@ export const iconTypes = [ 'pivot', 'play', 'playFilled', + 'plugs', 'plus', 'plusInCircle', 'plusInCircleFilled', diff --git a/packages/eui/src/components/icon/assets/plugs.tsx b/packages/eui/src/components/icon/assets/plugs.tsx new file mode 100644 index 00000000000..8c685b17869 --- /dev/null +++ b/packages/eui/src/components/icon/assets/plugs.tsx @@ -0,0 +1,38 @@ +/* + * 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 EuiIconPlugs = ({ + title, + titleId, + ...props +}: SVGProps & SVGRProps) => ( + + {title ? {title} : null} + + +); +export const icon = EuiIconPlugs; diff --git a/packages/eui/src/components/icon/icon_map.ts b/packages/eui/src/components/icon/icon_map.ts index 0ab00a84ddb..226979ad3a9 100644 --- a/packages/eui/src/components/icon/icon_map.ts +++ b/packages/eui/src/components/icon/icon_map.ts @@ -346,6 +346,7 @@ export const typeToPathMap = { pivot: 'pivot', play: 'play', playFilled: 'playFilled', + plugs: 'plugs', plus: 'plus', plusInCircle: 'plus_in_circle', plusInCircleFilled: 'plus_in_circle_filled', diff --git a/packages/eui/src/components/icon/svgs/plugs.svg b/packages/eui/src/components/icon/svgs/plugs.svg new file mode 100644 index 00000000000..2038cee608d --- /dev/null +++ b/packages/eui/src/components/icon/svgs/plugs.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/website/docs/components/display/icons/icon_types.ts b/packages/website/docs/components/display/icons/icon_types.ts index 3ee4a499530..29c0cada79f 100644 --- a/packages/website/docs/components/display/icons/icon_types.ts +++ b/packages/website/docs/components/display/icons/icon_types.ts @@ -210,6 +210,7 @@ export const iconTypes: Array = [ 'pivot', 'play', 'playFilled', + 'plugs', 'plus', 'plusInCircle', 'plusInCircleFilled', From ad9726d24d02b400d044a31722caad10fad1ea2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Tue, 21 Jan 2025 13:37:19 +0100 Subject: [PATCH 2/7] Web icon --- packages/eui/src-docs/src/views/icon/icons.js | 1 + .../eui/src/components/icon/assets/web.tsx | 38 +++++++++++++++++++ packages/eui/src/components/icon/icon_map.ts | 1 + packages/eui/src/components/icon/svgs/web.svg | 3 ++ .../components/display/icons/icon_types.ts | 1 + 5 files changed, 44 insertions(+) create mode 100644 packages/eui/src/components/icon/assets/web.tsx create mode 100644 packages/eui/src/components/icon/svgs/web.svg diff --git a/packages/eui/src-docs/src/views/icon/icons.js b/packages/eui/src-docs/src/views/icon/icons.js index c9c55d0959a..626a4d6538c 100644 --- a/packages/eui/src-docs/src/views/icon/icons.js +++ b/packages/eui/src-docs/src/views/icon/icons.js @@ -315,6 +315,7 @@ export const iconTypes = [ 'visVisualBuilder', 'warning', 'warningFilled', + 'web', 'wordWrap', 'wordWrapDisabled', 'wrench', diff --git a/packages/eui/src/components/icon/assets/web.tsx b/packages/eui/src/components/icon/assets/web.tsx new file mode 100644 index 00000000000..5455b447ec4 --- /dev/null +++ b/packages/eui/src/components/icon/assets/web.tsx @@ -0,0 +1,38 @@ +/* + * 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 EuiIconWeb = ({ + title, + titleId, + ...props +}: SVGProps & SVGRProps) => ( + + {title ? {title} : null} + + +); +export const icon = EuiIconWeb; diff --git a/packages/eui/src/components/icon/icon_map.ts b/packages/eui/src/components/icon/icon_map.ts index 226979ad3a9..90576e5861e 100644 --- a/packages/eui/src/components/icon/icon_map.ts +++ b/packages/eui/src/components/icon/icon_map.ts @@ -459,6 +459,7 @@ export const typeToPathMap = { warningFilled: 'warningFilled', alert: 'warning', // NOTE: This is an undocumented alias for `warning`, added for legacy compatability with Elastic Charts watchesApp: 'app_watches', + web: 'web', wordWrap: 'wordWrap', wordWrapDisabled: 'wordWrapDisabled', workplaceSearchApp: 'app_workplace_search', diff --git a/packages/eui/src/components/icon/svgs/web.svg b/packages/eui/src/components/icon/svgs/web.svg new file mode 100644 index 00000000000..1a6edc10a27 --- /dev/null +++ b/packages/eui/src/components/icon/svgs/web.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/website/docs/components/display/icons/icon_types.ts b/packages/website/docs/components/display/icons/icon_types.ts index 29c0cada79f..f4ffa9f16cf 100644 --- a/packages/website/docs/components/display/icons/icon_types.ts +++ b/packages/website/docs/components/display/icons/icon_types.ts @@ -305,6 +305,7 @@ export const iconTypes: Array = [ 'visVisualBuilder', 'warning', 'warningFilled', + 'web', 'wordWrap', 'wordWrapDisabled', 'wrench', From 4d826cfd5fb8d54c7cd07ea4a55783cea482291f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Tue, 21 Jan 2025 13:42:00 +0100 Subject: [PATCH 3/7] Jet tests --- .../icon/__snapshots__/icon.test.tsx.snap | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) 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 695bd82c6f4..2ab0d167be8 100644 --- a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -8661,6 +8661,26 @@ exports[`EuiIcon props type playFilled is rendered 1`] = ` `; +exports[`EuiIcon props type plugs is rendered 1`] = ` + +`; + exports[`EuiIcon props type plus is rendered 1`] = ` From 28b70029dc84f03fb32596c30b04ac56561c4adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Gonz=C3=A1lez?= Date: Thu, 23 Jan 2025 09:45:16 +0100 Subject: [PATCH 7/7] Removing empty spaces --- packages/eui/changelogs/upcoming/8285.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/eui/changelogs/upcoming/8285.md b/packages/eui/changelogs/upcoming/8285.md index 1c8eae765cd..08019a2fc1d 100644 --- a/packages/eui/changelogs/upcoming/8285.md +++ b/packages/eui/changelogs/upcoming/8285.md @@ -1,2 +1 @@ - Added `plugs` and `web` glyphs to `EuiIcon` -