Skip to content

Commit 479c6b4

Browse files
authored
Merge branch 'main' into rk/euizempic
2 parents 0e56cd5 + 738fa96 commit 479c6b4

9 files changed

Lines changed: 145 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
description: Dry run (do not publish the packages)
2424
required: true
2525
type: boolean
26+
npm_tag:
27+
description: "[Custom releases only] npm tag to use"
28+
required: false
29+
type: string
2630

2731
permissions:
2832
id-token: write # Required for OIDC
@@ -107,8 +111,26 @@ jobs:
107111
}
108112
return `--workspaces ${process.env.WORKSPACES.split(',').join(' ')}`;
109113
result-encoding: string
114+
- name: Prepare npm tag
115+
id: prepare_npm_tag_arg
116+
uses: actions/github-script@v8
117+
env:
118+
NPM_TAG: ${{ inputs.npm_tag }}
119+
with:
120+
# language=javascript
121+
script: |
122+
if (!process.env.NPM_TAG || typeof process.env.NPM_TAG !== 'string') {
123+
return '';
124+
}
125+
126+
if (process.env.NPM_TAG === 'latest') {
127+
throw new Error('npm_tag cannot be set to "latest" for snapshot releases!');
128+
}
129+
130+
return `--tag ${process.env.NPM_TAG}`;
131+
result-encoding: string
110132
- name: Release
111-
run: yarn release run snapshot --skip-prompts --skip-auth-check --use-auth-token --allow-custom ${{ inputs.dry_run && '--dry-run' || ''}} ${{ steps.prepare_workspaces_arg.outputs.result }}
133+
run: yarn release run snapshot --skip-prompts --skip-auth-check --use-auth-token --allow-custom ${{ inputs.dry_run && '--dry-run' || ''}} ${{ steps.prepare_npm_tag_arg.outputs.result }} ${{ steps.prepare_workspaces_arg.outputs.result }}
112134
release_official:
113135
name: Create an official release
114136
runs-on: ubuntu-latest
@@ -158,5 +180,18 @@ jobs:
158180
}
159181
return `--workspaces ${process.env.WORKSPACES.split(',').join(' ')}`;
160182
result-encoding: string
183+
- name: Prepare npm tag
184+
id: prepare_npm_tag_arg
185+
uses: actions/github-script@v8
186+
env:
187+
NPM_TAG: ${{ inputs.npm_tag }}
188+
with:
189+
# language=javascript
190+
script: |
191+
if (!process.env.NPM_TAG || typeof process.env.NPM_TAG !== 'string') {
192+
return '';
193+
}
194+
return `--tag ${process.env.NPM_TAG}`;
195+
result-encoding: string
161196
- name: Release
162-
run: yarn release run official --skip-prompts --skip-auth-check --use-auth-token --allow-custom --skip-update-versions ${{ inputs.dry_run && '--dry-run' || ''}} ${{ steps.prepare_workspaces_arg.outputs.result }}
197+
run: yarn release run official --skip-prompts --skip-auth-check --use-auth-token --allow-custom --skip-update-versions ${{ inputs.dry_run && '--dry-run' || ''}} ${{ steps.prepare_npm_tag_arg.outputs.result }} ${{ steps.prepare_workspaces_arg.outputs.result }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.17.1
1+
22.21.1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Added `productRobot` icon

packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8736,6 +8736,28 @@ exports[`EuiIcon props type popout is rendered 1`] = `
87368736
</svg>
87378737
`;
87388738

8739+
exports[`EuiIcon props type productRobot is rendered 1`] = `
8740+
<svg
8741+
class="euiIcon emotion-euiIcon-m-isLoaded"
8742+
data-icon-type="productRobot"
8743+
data-is-loaded="true"
8744+
height="16"
8745+
role="presentation"
8746+
viewBox="0 0 16 16"
8747+
width="16"
8748+
xmlns="http://www.w3.org/2000/svg"
8749+
>
8750+
<path
8751+
d="M9.208 11.23a.446.446 0 0 1 .642.616l-.015.017a1.373 1.373 0 0 1-.127.11 2.326 2.326 0 0 1-.355.227c-.31.163-.763.319-1.353.319a2.89 2.89 0 0 1-1.352-.319 2.325 2.325 0 0 1-.452-.31l-.029-.027-.016-.017a.446.446 0 0 1 .643-.617l.005.005.045.039c.045.035.118.086.219.139.199.104.51.216.937.216.428 0 .74-.112.94-.216a1.417 1.417 0 0 0 .263-.179l.005-.004ZM5.964 8a1.019 1.019 0 1 1 0 2.038 1.019 1.019 0 0 1 0-2.038Zm4.073 0a1.018 1.018 0 1 1 0 2.037 1.018 1.018 0 0 1 0-2.037Z"
8752+
/>
8753+
<path
8754+
clip-rule="evenodd"
8755+
d="M8 1a1.4 1.4 0 0 1 .446 2.726V5h1.845C11.767 5 13 6.27 13 7.746V8h1.11c.491 0 .89.526.89 1.018v3.055c0 .492-.399.927-.89.927L13 12.99v1.11c0 .491-.435.9-.927.9H3.928C3.436 15 3 14.601 3 14.11V13H1.89c-.46 0-.84-.386-.886-.835L1 12.072V9.018C1 8.527 1.4 8 1.89 8H3v-.254C3 6.27 4.234 5 5.71 5h1.845V3.726A1.4 1.4 0 0 1 8 1ZM5.72 6C4.734 6 4 6.762 4 7.746V14h8V7.746C12 6.762 11.285 6 10.301 6H5.719ZM2 12h1V9H2v3Zm11 0h1l-.005-3h-1L13 12ZM8 1.89a.51.51 0 1 0 .001 1.02.51.51 0 0 0 0-1.02Z"
8756+
fill-rule="evenodd"
8757+
/>
8758+
</svg>
8759+
`;
8760+
87398761
exports[`EuiIcon props type push is rendered 1`] = `
87408762
<svg
87418763
class="euiIcon emotion-euiIcon-m-isLoaded"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
9+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
10+
11+
import * as React from 'react';
12+
import type { SVGProps } from 'react';
13+
interface SVGRProps {
14+
title?: string;
15+
titleId?: string;
16+
}
17+
const EuiIconAgentBuilderRobot = ({
18+
title,
19+
titleId,
20+
...props
21+
}: SVGProps<SVGSVGElement> & SVGRProps) => (
22+
<svg
23+
xmlns="http://www.w3.org/2000/svg"
24+
width={16}
25+
height={16}
26+
viewBox="0 0 16 16"
27+
aria-labelledby={titleId}
28+
{...props}
29+
>
30+
{title ? <title id={titleId}>{title}</title> : null}
31+
<path d="M9.208 11.23a.446.446 0 0 1 .642.616l-.015.017a1.373 1.373 0 0 1-.127.11 2.326 2.326 0 0 1-.355.227c-.31.163-.763.319-1.353.319a2.89 2.89 0 0 1-1.352-.319 2.325 2.325 0 0 1-.452-.31l-.029-.027-.016-.017a.446.446 0 0 1 .643-.617l.005.005.045.039c.045.035.118.086.219.139.199.104.51.216.937.216.428 0 .74-.112.94-.216a1.417 1.417 0 0 0 .263-.179l.005-.004ZM5.964 8a1.019 1.019 0 1 1 0 2.038 1.019 1.019 0 0 1 0-2.038Zm4.073 0a1.018 1.018 0 1 1 0 2.037 1.018 1.018 0 0 1 0-2.037Z" />
32+
<path
33+
fillRule="evenodd"
34+
d="M8 1a1.4 1.4 0 0 1 .446 2.726V5h1.845C11.767 5 13 6.27 13 7.746V8h1.11c.491 0 .89.526.89 1.018v3.055c0 .492-.399.927-.89.927L13 12.99v1.11c0 .491-.435.9-.927.9H3.928C3.436 15 3 14.601 3 14.11V13H1.89c-.46 0-.84-.386-.886-.835L1 12.072V9.018C1 8.527 1.4 8 1.89 8H3v-.254C3 6.27 4.234 5 5.71 5h1.845V3.726A1.4 1.4 0 0 1 8 1ZM5.72 6C4.734 6 4 6.762 4 7.746V14h8V7.746C12 6.762 11.285 6 10.301 6H5.719ZM2 12h1V9H2v3Zm11 0h1l-.005-3h-1L13 12ZM8 1.89a.51.51 0 1 0 .001 1.02.51.51 0 0 0 0-1.02Z"
35+
clipRule="evenodd"
36+
/>
37+
</svg>
38+
);
39+
export const icon = EuiIconAgentBuilderRobot;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
9+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
10+
11+
import * as React from 'react';
12+
import type { SVGProps } from 'react';
13+
interface SVGRProps {
14+
title?: string;
15+
titleId?: string;
16+
}
17+
const EuiIconProductRobot = ({
18+
title,
19+
titleId,
20+
...props
21+
}: SVGProps<SVGSVGElement> & SVGRProps) => (
22+
<svg
23+
xmlns="http://www.w3.org/2000/svg"
24+
width={16}
25+
height={16}
26+
viewBox="0 0 16 16"
27+
aria-labelledby={titleId}
28+
{...props}
29+
>
30+
{title ? <title id={titleId}>{title}</title> : null}
31+
<path d="M9.208 11.23a.446.446 0 0 1 .642.616l-.015.017a1.373 1.373 0 0 1-.127.11 2.326 2.326 0 0 1-.355.227c-.31.163-.763.319-1.353.319a2.89 2.89 0 0 1-1.352-.319 2.325 2.325 0 0 1-.452-.31l-.029-.027-.016-.017a.446.446 0 0 1 .643-.617l.005.005.045.039c.045.035.118.086.219.139.199.104.51.216.937.216.428 0 .74-.112.94-.216a1.417 1.417 0 0 0 .263-.179l.005-.004ZM5.964 8a1.019 1.019 0 1 1 0 2.038 1.019 1.019 0 0 1 0-2.038Zm4.073 0a1.018 1.018 0 1 1 0 2.037 1.018 1.018 0 0 1 0-2.037Z" />
32+
<path
33+
fillRule="evenodd"
34+
d="M8 1a1.4 1.4 0 0 1 .446 2.726V5h1.845C11.767 5 13 6.27 13 7.746V8h1.11c.491 0 .89.526.89 1.018v3.055c0 .492-.399.927-.89.927L13 12.99v1.11c0 .491-.435.9-.927.9H3.928C3.436 15 3 14.601 3 14.11V13H1.89c-.46 0-.84-.386-.886-.835L1 12.072V9.018C1 8.527 1.4 8 1.89 8H3v-.254C3 6.27 4.234 5 5.71 5h1.845V3.726A1.4 1.4 0 0 1 8 1ZM5.72 6C4.734 6 4 6.762 4 7.746V14h8V7.746C12 6.762 11.285 6 10.301 6H5.719ZM2 12h1V9H2v3Zm11 0h1l-.005-3h-1L13 12ZM8 1.89a.51.51 0 1 0 .001 1.02.51.51 0 0 0 0-1.02Z"
35+
clipRule="evenodd"
36+
/>
37+
</svg>
38+
);
39+
export const icon = EuiIconProductRobot;

packages/eui/src/components/icon/icon_map.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ export const typeToPathMap = {
360360
plusInCircleFilled: 'plus_in_circle', // NOTE: To be deprecated in favor of `plus_in_circle`
361361
plusInSquare: 'plus_in_square',
362362
popout: 'popout',
363+
productRobot: 'product_robot',
363364
push: 'push',
364365
question: 'question',
365366
quote: 'quote',
Lines changed: 4 additions & 0 deletions
Loading

packages/website/docs/components/display/icons/icon_types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export const iconTypes: Array<IconType> = [
206206
'plusInCircle',
207207
'plusInSquare',
208208
'popout',
209+
'productRobot',
209210
'push',
210211
'question',
211212
'quote',

0 commit comments

Comments
 (0)