Skip to content

Commit df14039

Browse files
committed
feat: Convert icons library files to tsx
1 parent 71b6c48 commit df14039

File tree

305 files changed

+1823
-304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+1823
-304
lines changed

packages/icons/src/library/add-submenu.js renamed to packages/icons/src/library/add-submenu.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const addSubmenu = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const addSubmenu: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z" />
914
</SVG>

packages/icons/src/library/add-template.js renamed to packages/icons/src/library/add-template.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const addTemplate = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const addTemplate: ReactElement = (
712
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
813
<Path
914
fillRule="evenodd"

packages/icons/src/library/align-center.js renamed to packages/icons/src/library/align-center.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const alignCenter = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const alignCenter: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z" />
914
</SVG>

packages/icons/src/library/align-justify.js renamed to packages/icons/src/library/align-justify.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const alignJustify = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const alignJustify: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z" />
914
</SVG>

packages/icons/src/library/align-left.js renamed to packages/icons/src/library/align-left.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const alignLeft = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const alignLeft: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z" />
914
</SVG>

packages/icons/src/library/align-none.js renamed to packages/icons/src/library/align-none.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const alignNone = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const alignNone: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z" />
914
</SVG>

packages/icons/src/library/align-right.js renamed to packages/icons/src/library/align-right.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const alignRight = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const alignRight: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z" />
914
</SVG>

packages/icons/src/library/archive.js renamed to packages/icons/src/library/archive.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const archive = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const archive: ReactElement = (
712
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
813
<Path
914
fillRule="evenodd"

packages/icons/src/library/arrow-down-right.js renamed to packages/icons/src/library/arrow-down-right.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const arrowDownRight = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const arrowDownRight: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M10 18h8v-8h-1.5v5.5L7 6 6 7l9.5 9.5H10V18Z" />
914
</SVG>

packages/icons/src/library/arrow-down.js renamed to packages/icons/src/library/arrow-down.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const arrowDown = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const arrowDown: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z" />
914
</SVG>

packages/icons/src/library/arrow-left.js renamed to packages/icons/src/library/arrow-left.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const arrowLeft = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const arrowLeft: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z" />
914
</SVG>

packages/icons/src/library/arrow-right.js renamed to packages/icons/src/library/arrow-right.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const arrowRight = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const arrowRight: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z" />
914
</SVG>

packages/icons/src/library/arrow-up-left.js renamed to packages/icons/src/library/arrow-up-left.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const arrowUpLeft = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const arrowUpLeft: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M14 6H6v8h1.5V8.5L17 18l1-1-9.5-9.5H14V6Z" />
914
</SVG>

packages/icons/src/library/arrow-up.js renamed to packages/icons/src/library/arrow-up.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const arrowUp = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const arrowUp: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z" />
914
</SVG>

packages/icons/src/library/aspect-ratio.js renamed to packages/icons/src/library/aspect-ratio.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const aspectRatio = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const aspectRatio: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z" />
914
</SVG>

packages/icons/src/library/at-symbol.js renamed to packages/icons/src/library/at-symbol.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const atSymbol = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const atSymbol: ReactElement = (
712
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
813
<Path d="M12.5939 21C14.1472 21 16.1269 20.5701 17.0711 20.1975L16.6447 18.879C16.0964 19.051 14.3299 19.6242 12.6548 19.6242C7.4467 19.6242 4.67513 16.8726 4.67513 12C4.67513 7.21338 7.50762 4.34713 12.2893 4.34713C17.132 4.34713 19.4162 7.55732 19.4162 10.7675C19.4162 14.035 19.0508 15.4968 17.4975 15.4968C16.5838 15.4968 16.0964 14.7803 16.0964 13.9777V7.5H14.4822V8.30255H14.3909C14.1777 7.67198 12.9898 7.12739 11.467 7.2707C9.18274 7.5 7.4467 9.27707 7.4467 11.8567C7.4467 14.5796 8.81726 16.672 11.467 16.758C13.203 16.8153 14.1168 16.0127 14.4822 15.1815H14.5736C14.7563 16.414 16.401 16.8439 17.467 16.8439C20.6954 16.8439 21 13.5764 21 10.7962C21 6.86943 18.0761 3 12.3807 3C6.50254 3 3 6.3535 3 11.9427C3 17.7325 6.38071 21 12.5939 21ZM11.7107 15.2962C9.73096 15.2962 9.03046 13.6051 9.03046 11.7707C9.03046 10.1083 10.0355 8.67516 11.7716 8.67516C13.599 8.67516 14.5736 9.36306 14.5736 11.7707C14.5736 14.1497 13.7513 15.2962 11.7107 15.2962Z" />
914
</SVG>

packages/icons/src/library/audio.js renamed to packages/icons/src/library/audio.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { Path, SVG } from '@wordpress/primitives';
55

6-
const audio = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const audio: ReactElement = (
712
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
813
<Path d="M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z" />
914
</SVG>

packages/icons/src/library/background.js renamed to packages/icons/src/library/background.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { Path, SVG } from '@wordpress/primitives';
55

6-
const background = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const background: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path
914
fillRule="evenodd"

packages/icons/src/library/backup.js renamed to packages/icons/src/library/backup.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const backup = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const backup: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z" />
914
</SVG>

packages/icons/src/library/bell-unread.js renamed to packages/icons/src/library/bell-unread.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path, Circle } from '@wordpress/primitives';
55

6-
const bellUnread = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const bellUnread: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M13.969 4.39A5.088 5.088 0 0 0 12 4C9.2 4 7 6.2 7 9v2.5c0 1.353-.17 2.368-.976 3-.267.209-.602.376-1.024.5v1h14v-1c-.422-.124-.757-.291-1.024-.5-.806-.632-.976-1.647-.976-3V11c-.53 0-1.037-.103-1.5-.29v.79c0 .93.066 1.98.515 2.897l.053.103H7.932l.053-.103c.449-.917.515-1.967.515-2.897V9c0-1.972 1.528-3.5 3.5-3.5.43 0 .838.072 1.214.206.167-.488.425-.933.755-1.316Zm-3.961 13.618c0-.176.023-.346.065-.508h3.854A1.996 1.996 0 0 1 12 20a1.991 1.991 0 0 1-1.992-1.992Z" />
914
<Circle cx="17" cy="7" r="2.5" />

packages/icons/src/library/bell.js renamed to packages/icons/src/library/bell.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const bell = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const bell: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path
914
fillRule="evenodd"

packages/icons/src/library/block-default.js renamed to packages/icons/src/library/block-default.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const blockDefault = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const blockDefault: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z" />
914
</SVG>

packages/icons/src/library/block-meta.js renamed to packages/icons/src/library/block-meta.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const blockMeta = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const blockMeta: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path
914
fillRule="evenodd"

packages/icons/src/library/block-table.js renamed to packages/icons/src/library/block-table.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { Path, SVG } from '@wordpress/primitives';
55

6-
const blockTable = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const blockTable: ReactElement = (
712
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
813
<Path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z" />
914
</SVG>

packages/icons/src/library/border.js renamed to packages/icons/src/library/border.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { Path, SVG } from '@wordpress/primitives';
55

6-
const border = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const border: ReactElement = (
712
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
813
<Path d="m6.6 15.6-1.2.8c.6.9 1.3 1.6 2.2 2.2l.8-1.2c-.7-.5-1.3-1.1-1.8-1.8zM5.5 12c0-.4 0-.9.1-1.3l-1.5-.3c0 .5-.1 1.1-.1 1.6s.1 1.1.2 1.6l1.5-.3c-.2-.4-.2-.9-.2-1.3zm11.9-3.6 1.2-.8c-.6-.9-1.3-1.6-2.2-2.2l-.8 1.2c.7.5 1.3 1.1 1.8 1.8zM5.3 7.6l1.2.8c.5-.7 1.1-1.3 1.8-1.8l-.7-1.3c-.9.6-1.7 1.4-2.3 2.3zm14.5 2.8-1.5.3c.1.4.1.8.1 1.3s0 .9-.1 1.3l1.5.3c.1-.5.2-1 .2-1.6s-.1-1.1-.2-1.6zM12 18.5c-.4 0-.9 0-1.3-.1l-.3 1.5c.5.1 1 .2 1.6.2s1.1-.1 1.6-.2l-.3-1.5c-.4.1-.9.1-1.3.1zm3.6-1.1.8 1.2c.9-.6 1.6-1.3 2.2-2.2l-1.2-.8c-.5.7-1.1 1.3-1.8 1.8zM10.4 4.2l.3 1.5c.4-.1.8-.1 1.3-.1s.9 0 1.3.1l.3-1.5c-.5-.1-1.1-.2-1.6-.2s-1.1.1-1.6.2z" />
914
</SVG>

packages/icons/src/library/box.js renamed to packages/icons/src/library/box.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { Path, SVG } from '@wordpress/primitives';
55

6-
const box = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const box: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path
914
fillRule="evenodd"

packages/icons/src/library/brush.js renamed to packages/icons/src/library/brush.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const brush = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const brush: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path d="M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z" />
914
</SVG>

packages/icons/src/library/bug.js renamed to packages/icons/src/library/bug.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
import { SVG, Path } from '@wordpress/primitives';
55

6-
const bug = (
6+
/**
7+
* External dependencies
8+
*/
9+
import type { ReactElement } from 'react';
10+
11+
const bug: ReactElement = (
712
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
813
<Path
914
d="M6.13 5.5l1.926 1.927A4.975 4.975 0 007.025 10H5v1.5h2V13H5v1.5h2.1a5.002 5.002 0 009.8 0H19V13h-2v-1.5h2V10h-2.025a4.979 4.979 0 00-1.167-2.74l1.76-1.76-1.061-1.06-1.834 1.834A4.977 4.977 0 0012 5.5c-1.062 0-2.046.33-2.855.895L7.19 4.44 6.13 5.5zm2.37 5v3a3.5 3.5 0 107 0v-3a3.5 3.5 0 10-7 0z"

0 commit comments

Comments
 (0)