From 5204eeb79916da83eea8570278ba44a3d7be8a22 Mon Sep 17 00:00:00 2001 From: ek-so Date: Wed, 31 Jul 2024 12:08:38 +0200 Subject: [PATCH] Fixed border width --- .../icon/__snapshots__/icon.test.tsx.snap | 19 +++------ .../icon/assets/cross_in_circle.tsx | 41 +++++++++++++++++++ packages/eui/src/components/icon/icon_map.ts | 4 +- .../components/icon/svgs/crossInCircle.svg | 10 ----- .../components/icon/svgs/cross_in_circle.svg | 6 +++ 5 files changed, 55 insertions(+), 25 deletions(-) create mode 100644 packages/eui/src/components/icon/assets/cross_in_circle.tsx delete mode 100644 packages/eui/src/components/icon/svgs/crossInCircle.svg create mode 100644 packages/eui/src/components/icon/svgs/cross_in_circle.svg 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 7e5420f01e6..76adb8ef306 100644 --- a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -2003,23 +2003,16 @@ exports[`EuiIcon props type crossInCircle is rendered 1`] = ` xmlns="http://www.w3.org/2000/svg" > + - - - - - `; diff --git a/packages/eui/src/components/icon/assets/cross_in_circle.tsx b/packages/eui/src/components/icon/assets/cross_in_circle.tsx new file mode 100644 index 00000000000..c6f7a801648 --- /dev/null +++ b/packages/eui/src/components/icon/assets/cross_in_circle.tsx @@ -0,0 +1,41 @@ +/* + * 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 EuiIconCrossInCircle = ({ + title, + titleId, + ...props +}: SVGProps & SVGRProps) => ( + + {title ? {title} : null} + + + + + +); +export const icon = EuiIconCrossInCircle; diff --git a/packages/eui/src/components/icon/icon_map.ts b/packages/eui/src/components/icon/icon_map.ts index f5808f2835e..6aa00c93f25 100644 --- a/packages/eui/src/components/icon/icon_map.ts +++ b/packages/eui/src/components/icon/icon_map.ts @@ -79,9 +79,9 @@ export const typeToPathMap = { createSingleMetricJob: 'ml_create_single_metric_job', cross: 'cross', crossClusterReplicationApp: 'app_cross_cluster_replication', - crossInCircle: 'crossInCircle', + crossInCircle: 'cross_in_circle', crosshairs: 'crosshairs', - currency: 'currency', + currency: 'currencsy', cut: 'cut', dashboardApp: 'app_dashboard', dataVisualizer: 'ml_data_visualizer', diff --git a/packages/eui/src/components/icon/svgs/crossInCircle.svg b/packages/eui/src/components/icon/svgs/crossInCircle.svg deleted file mode 100644 index d13e3f6937b..00000000000 --- a/packages/eui/src/components/icon/svgs/crossInCircle.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/packages/eui/src/components/icon/svgs/cross_in_circle.svg b/packages/eui/src/components/icon/svgs/cross_in_circle.svg new file mode 100644 index 00000000000..ca0ed8e2432 --- /dev/null +++ b/packages/eui/src/components/icon/svgs/cross_in_circle.svg @@ -0,0 +1,6 @@ + + + + + +