Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiIcon] Add new expand glyphs #7875

Merged
merged 6 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/eui/changelogs/upcoming/7875.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added `minusInSquare` and `plusInSquare` glyphs to `EuiIcon`.
2 changes: 2 additions & 0 deletions packages/eui/src-docs/src/views/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const iconTypes = [
'minus',
'minusInCircle',
'minusInCircleFilled',
'minusInSquare',
'mobile',
'moon',
'move',
Expand Down Expand Up @@ -213,6 +214,7 @@ export const iconTypes = [
'plus',
'plusInCircle',
'plusInCircleFilled',
'plusInSquare',
'popout',
'push',
'questionInCircle',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7732,6 +7732,29 @@ exports[`EuiIcon props type minusInCircleFilled is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type minusInSquare is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon emotion-euiIcon-m-isLoaded"
data-icon-type="minusInSquare"
data-is-loaded="true"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M12 7.5H4a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1Z"
/>
<path
clip-rule="evenodd"
d="M1 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3Zm2-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Z"
fill-rule="evenodd"
/>
</svg>
`;

exports[`EuiIcon props type mobile is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down Expand Up @@ -8419,6 +8442,29 @@ exports[`EuiIcon props type plusInCircleFilled is rendered 1`] = `
</svg>
`;

exports[`EuiIcon props type plusInSquare is rendered 1`] = `
<svg
aria-hidden="true"
class="euiIcon emotion-euiIcon-m-isLoaded"
data-icon-type="plusInSquare"
data-is-loaded="true"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 3.5a.5.5 0 0 1 .5.5v3.5H12a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5Z"
/>
<path
clip-rule="evenodd"
d="M1 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3Zm2-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Z"
fill-rule="evenodd"
/>
</svg>
`;

exports[`EuiIcon props type popout is rendered 1`] = `
<svg
aria-hidden="true"
Expand Down
39 changes: 39 additions & 0 deletions packages/eui/src/components/icon/assets/minus_in_square.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* 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 EuiIconMinusInSquare = ({
title,
titleId,
...props
}: SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={16}
height={16}
viewBox="0 0 16 16"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M12 7.5H4a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1Z" />
<path
fillRule="evenodd"
d="M1 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3Zm2-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Z"
clipRule="evenodd"
/>
</svg>
);
export const icon = EuiIconMinusInSquare;
39 changes: 39 additions & 0 deletions packages/eui/src/components/icon/assets/plus_in_square.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* 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 EuiIconPlusInSquare = ({
title,
titleId,
...props
}: SVGProps<SVGSVGElement> & SVGRProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={16}
height={16}
viewBox="0 0 16 16"
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path d="M8 3.5a.5.5 0 0 1 .5.5v3.5H12a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5Z" />
<path
fillRule="evenodd"
d="M1 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3Zm2-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Z"
clipRule="evenodd"
/>
</svg>
);
export const icon = EuiIconPlusInSquare;
2 changes: 2 additions & 0 deletions packages/eui/src/components/icon/icon_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export const typeToPathMap = {
minus: 'minus',
minusInCircle: 'minus_in_circle',
minusInCircleFilled: 'minus_in_circle_filled',
minusInSquare: 'minus_in_square',
mobile: 'mobile',
monitoringApp: 'app_monitoring',
moon: 'moon',
Expand Down Expand Up @@ -337,6 +338,7 @@ export const typeToPathMap = {
plus: 'plus',
plusInCircle: 'plus_in_circle',
plusInCircleFilled: 'plus_in_circle_filled',
plusInSquare: 'plus_in_square',
popout: 'popout',
push: 'push',
questionInCircle: 'question_in_circle',
Expand Down
4 changes: 4 additions & 0 deletions packages/eui/src/components/icon/svgs/minus_in_square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/eui/src/components/icon/svgs/plus_in_square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading