From d2f002713b401fac67d0774306b1cf890b5d820f Mon Sep 17 00:00:00 2001 From: Michael Marcialis Date: Tue, 11 Jul 2023 16:42:06 -0400 Subject: [PATCH 1/3] add `at` and `key` icon glyphs --- src-docs/src/views/icon/icons.js | 2 ++ src/components/icon/assets/at.tsx | 37 +++++++++++++++++++++++++++++ src/components/icon/assets/key.tsx | 38 ++++++++++++++++++++++++++++++ src/components/icon/icon_map.ts | 2 ++ src/components/icon/svgs/at.svg | 3 +++ src/components/icon/svgs/key.svg | 4 ++++ 6 files changed, 86 insertions(+) create mode 100644 src/components/icon/assets/at.tsx create mode 100644 src/components/icon/assets/key.tsx create mode 100644 src/components/icon/svgs/at.svg create mode 100644 src/components/icon/svgs/key.svg diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 3990f22e712..5c4aeaa375f 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -25,6 +25,7 @@ export const iconTypes = [ 'arrowEnd', 'article', 'asterisk', + 'at', 'beaker', 'bell', 'bellSlash', @@ -131,6 +132,7 @@ export const iconTypes = [ 'inspect', 'invert', 'ip', + 'key', 'keyboard', 'kqlField', 'kqlFunction', diff --git a/src/components/icon/assets/at.tsx b/src/components/icon/assets/at.tsx new file mode 100644 index 00000000000..d4e64ac148a --- /dev/null +++ b/src/components/icon/assets/at.tsx @@ -0,0 +1,37 @@ +/* + * 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 EuiIconAt = ({ + title, + titleId, + ...props +}: SVGProps & SVGRProps) => ( + + {title ? {title} : null} + + +); +export const icon = EuiIconAt; diff --git a/src/components/icon/assets/key.tsx b/src/components/icon/assets/key.tsx new file mode 100644 index 00000000000..93678d67755 --- /dev/null +++ b/src/components/icon/assets/key.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 EuiIconKey = ({ + title, + titleId, + ...props +}: SVGProps & SVGRProps) => ( + + {title ? {title} : null} + + + +); +export const icon = EuiIconKey; diff --git a/src/components/icon/icon_map.ts b/src/components/icon/icon_map.ts index a838994d90b..9e02eefa889 100644 --- a/src/components/icon/icon_map.ts +++ b/src/components/icon/icon_map.ts @@ -26,6 +26,7 @@ export const typeToPathMap = { arrowEnd: 'arrowEnd', article: 'article', asterisk: 'asterisk', + at: 'at', auditbeatApp: 'app_auditbeat', beaker: 'beaker', bell: 'bell', @@ -186,6 +187,7 @@ export const typeToPathMap = { inspect: 'inspect', invert: 'invert', ip: 'ip', + key: 'key', keyboard: 'keyboard', kqlField: 'kql_field', kqlFunction: 'kql_function', diff --git a/src/components/icon/svgs/at.svg b/src/components/icon/svgs/at.svg new file mode 100644 index 00000000000..7720a229133 --- /dev/null +++ b/src/components/icon/svgs/at.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/icon/svgs/key.svg b/src/components/icon/svgs/key.svg new file mode 100644 index 00000000000..4c16a6461b3 --- /dev/null +++ b/src/components/icon/svgs/key.svg @@ -0,0 +1,4 @@ + + + + From c180d985bed2c294561e593d72b132479900531c Mon Sep 17 00:00:00 2001 From: Michael Marcialis Date: Tue, 11 Jul 2023 16:48:13 -0400 Subject: [PATCH 2/3] update snapshots --- .../icon/__snapshots__/icon.test.tsx.snap | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 8b45e1f35f4..7e9530147f1 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -924,6 +924,25 @@ exports[`EuiIcon props type asterisk is rendered 1`] = ` `; +exports[`EuiIcon props type at is rendered 1`] = ` + +`; + exports[`EuiIcon props type auditbeatApp is rendered 1`] = `