Skip to content

Commit

Permalink
add geo job icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrtj committed Dec 18, 2024
1 parent 4bdfaaa commit 33f2003
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eui/src-docs/src/views/icon/ml.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const iconTypes = [
'regressionJob',
'createSingleMetricJob',
'createGenericJob',
'createGeoJob',
];

export default () => (
Expand Down
24 changes: 24 additions & 0 deletions packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,30 @@ exports[`EuiIcon props type createGenericJob is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type createGeoJob is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon emotion-euiIcon-m-app-isLoaded"
data-icon-type="createGeoJob"
data-is-loaded="true"
height="32"
role="img"
viewBox="0 0 32 32"
width="32"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16h-2c0-7.732-6.268-14-14-14S2 8.268 2 16s6.268 14 14 14v2Z"
/>
<path
class="euiIcon__fillSecondary"
clip-rule="evenodd"
d="M23 15h-6V9h-2v6H9v2h6v6h2v-6h6v-2Zm-1 9.196C22 27.329 25.427 32 27 32s5-4.67 5-7.804V24a5 5 0 1 0-10 .096v.1ZM27 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
fill-rule="evenodd"
/>
</svg>
`;

exports[`EuiIcon props type createMultiMetricJob is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
40 changes: 40 additions & 0 deletions packages/eui/src/components/icon/assets/ml_create_geo_job.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* 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 EuiIconMlCreateGeoJob = ({
title,
titleId,
...props
}: SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={32}
height={32}
viewBox="0 0 32 32"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16h-2c0-7.732-6.268-14-14-14S2 8.268 2 16s6.268 14 14 14v2Z" />
<path
clipRule="evenodd"
fillRule="evenodd"
d="M23 15h-6V9h-2v6H9v2h6v6h2v-6h6v-2Zm-1 9.196C22 27.329 25.427 32 27 32s5-4.67 5-7.804V24a5 5 0 1 0-10 .096v.1ZM27 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
className="euiIcon__fillSecondary"
/>
</svg>
);
export const icon = EuiIconMlCreateGeoJob;
1 change: 1 addition & 0 deletions packages/eui/src/components/icon/icon_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const typeToPathMap = {
copyClipboard: 'copy_clipboard',
createAdvancedJob: 'ml_create_advanced_job',
createGenericJob: 'ml_create_generic_job',
createGeoJob: 'ml_create_geo_job',
createMultiMetricJob: 'ml_create_multi_metric_job',
createPopulationJob: 'ml_create_population_job',
createSingleMetricJob: 'ml_create_single_metric_job',
Expand Down
12 changes: 12 additions & 0 deletions packages/eui/src/components/icon/svgs/ml_create_geo_job.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const iconTypesML: Array<IconType> = [
'regressionJob',
'createSingleMetricJob',
'createGenericJob',
'createGeoJob',
];

0 comments on commit 33f2003

Please sign in to comment.