From 3c582362fbc33279bff7ca282f30dd7ab58117dd Mon Sep 17 00:00:00 2001 From: Filipe Varela Date: Mon, 31 May 2021 17:11:51 +0100 Subject: [PATCH 1/9] Icons: tweak people icon --- packages/icons/src/library/people.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icons/src/library/people.js b/packages/icons/src/library/people.js index a521af10f3b77..a91164f2a7cae 100644 --- a/packages/icons/src/library/people.js +++ b/packages/icons/src/library/people.js @@ -5,7 +5,7 @@ import { SVG, Path } from '@wordpress/primitives'; const people = ( - + ); From 76512954397b8238aa3c777a00c8f2b11dca1463 Mon Sep 17 00:00:00 2001 From: Filipe Varela Date: Tue, 1 Jun 2021 13:36:27 +0100 Subject: [PATCH 2/9] Add new icons Adds the following icons: - `add-card` - `bug`/`no-bug` - `key` - `post-author` - `security` --- packages/icons/src/index.js | 6 ++++++ packages/icons/src/library/add-card.js | 16 ++++++++++++++++ packages/icons/src/library/bug.js | 16 ++++++++++++++++ packages/icons/src/library/key.js | 16 ++++++++++++++++ packages/icons/src/library/no-bug.js | 16 ++++++++++++++++ packages/icons/src/library/post-author.js | 16 ++++++++++++++++ packages/icons/src/library/security.js | 16 ++++++++++++++++ 7 files changed, 102 insertions(+) create mode 100644 packages/icons/src/library/add-card.js create mode 100644 packages/icons/src/library/bug.js create mode 100644 packages/icons/src/library/key.js create mode 100644 packages/icons/src/library/no-bug.js create mode 100644 packages/icons/src/library/post-author.js create mode 100644 packages/icons/src/library/security.js diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index 7e65e59008b53..e6b4e3170b43d 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -1,5 +1,6 @@ export { default as Icon } from './icon'; +export { default as addCard } from './library/add-card'; export { default as addSubmenu } from './library/add-submenu'; export { default as alignCenter } from './library/align-center'; export { default as alignJustify } from './library/align-justify'; @@ -19,6 +20,7 @@ export { default as blockDefault } from './library/block-default'; export { default as blockTable } from './library/block-table'; export { default as box } from './library/box'; export { default as brush } from './library/brush'; +export { default as bug } from './library/bug'; export { default as button } from './library/button'; export { default as buttons } from './library/buttons'; export { default as calendar } from './library/calendar'; @@ -94,6 +96,7 @@ export { default as justifyLeft } from './library/justify-left'; export { default as justifyCenter } from './library/justify-center'; export { default as justifyRight } from './library/justify-right'; export { default as justifySpaceBetween } from './library/justify-space-between'; +export { default as key } from './library/key'; export { default as keyboardClose } from './library/keyboard-close'; export { default as keyboardReturn } from './library/keyboard-return'; export { default as layout } from './library/layout'; @@ -118,6 +121,7 @@ export { default as moreHorizontalMobile } from './library/more-horizontal-mobil export { default as moreVertical } from './library/more-vertical'; export { default as moveTo } from './library/move-to'; export { default as navigation } from './library/navigation'; +export { default as noBug } from './library/no-bug'; export { default as overlayText } from './library/overlay-text'; export { default as pageBreak } from './library/page-break'; export { default as customLink } from './library/custom-link'; @@ -136,6 +140,7 @@ export { default as plugins } from './library/plugins'; export { default as plusCircleFilled } from './library/plus-circle-filled'; export { default as plusCircle } from './library/plus-circle'; export { default as plus } from './library/plus'; +export { default as postAuthor } from './library/post-author'; export { default as postCategories } from './library/post-categories'; export { default as postContent } from './library/post-content'; export { default as postComments } from './library/post-comments'; @@ -166,6 +171,7 @@ export { default as rotateLeft } from './library/rotate-left'; export { default as rotateRight } from './library/rotate-right'; export { default as rss } from './library/rss'; export { default as search } from './library/search'; +export { default as security } from './library/security'; export { default as separator } from './library/separator'; export { default as settings } from './library/settings'; export { default as share } from './library/share'; diff --git a/packages/icons/src/library/add-card.js b/packages/icons/src/library/add-card.js new file mode 100644 index 0000000000000..bedd33f250025 --- /dev/null +++ b/packages/icons/src/library/add-card.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const addCard = ( + + + +); + +export default addCard; diff --git a/packages/icons/src/library/bug.js b/packages/icons/src/library/bug.js new file mode 100644 index 0000000000000..1837ab47749ad --- /dev/null +++ b/packages/icons/src/library/bug.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const bug = ( + + + +); + +export default bug; diff --git a/packages/icons/src/library/key.js b/packages/icons/src/library/key.js new file mode 100644 index 0000000000000..6eb7a4a40065a --- /dev/null +++ b/packages/icons/src/library/key.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const key = ( + + + +); + +export default key; diff --git a/packages/icons/src/library/no-bug.js b/packages/icons/src/library/no-bug.js new file mode 100644 index 0000000000000..8abd1c2417327 --- /dev/null +++ b/packages/icons/src/library/no-bug.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const noBug = ( + + + +); + +export default noBug; diff --git a/packages/icons/src/library/post-author.js b/packages/icons/src/library/post-author.js new file mode 100644 index 0000000000000..fc0567f146b01 --- /dev/null +++ b/packages/icons/src/library/post-author.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const postAuthor = ( + + + +); + +export default postAuthor; diff --git a/packages/icons/src/library/security.js b/packages/icons/src/library/security.js new file mode 100644 index 0000000000000..bff180f9b08de --- /dev/null +++ b/packages/icons/src/library/security.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const security = ( + + + +); + +export default security; From 8bc8166c63efaafdde67418b6c7ea5de5c2d165c Mon Sep 17 00:00:00 2001 From: Filipe Varela Date: Wed, 2 Jun 2021 11:31:26 +0100 Subject: [PATCH 3/9] Remove old post author icon --- packages/block-library/src/post-author/icon.js | 10 ---------- packages/block-library/src/post-author/index.js | 2 +- packages/block-library/src/post-comment-author/icon.js | 10 ---------- .../block-library/src/post-comment-author/index.js | 2 +- 4 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 packages/block-library/src/post-author/icon.js delete mode 100644 packages/block-library/src/post-comment-author/icon.js diff --git a/packages/block-library/src/post-author/icon.js b/packages/block-library/src/post-author/icon.js deleted file mode 100644 index 87fa4ecf2a52f..0000000000000 --- a/packages/block-library/src/post-author/icon.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * WordPress dependencies - */ -import { Path, SVG } from '@wordpress/components'; - -export default ( - - - -); diff --git a/packages/block-library/src/post-author/index.js b/packages/block-library/src/post-author/index.js index d3c19ddabf111..cccc00c3f5c2c 100644 --- a/packages/block-library/src/post-author/index.js +++ b/packages/block-library/src/post-author/index.js @@ -3,7 +3,7 @@ */ import metadata from './block.json'; import edit from './edit'; -import icon from './icon'; +import { postAuthor as icon } from '@wordpress/icons'; const { name } = metadata; export { metadata, name }; diff --git a/packages/block-library/src/post-comment-author/icon.js b/packages/block-library/src/post-comment-author/icon.js deleted file mode 100644 index 87fa4ecf2a52f..0000000000000 --- a/packages/block-library/src/post-comment-author/icon.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * WordPress dependencies - */ -import { Path, SVG } from '@wordpress/components'; - -export default ( - - - -); diff --git a/packages/block-library/src/post-comment-author/index.js b/packages/block-library/src/post-comment-author/index.js index d3c19ddabf111..cccc00c3f5c2c 100644 --- a/packages/block-library/src/post-comment-author/index.js +++ b/packages/block-library/src/post-comment-author/index.js @@ -3,7 +3,7 @@ */ import metadata from './block.json'; import edit from './edit'; -import icon from './icon'; +import { postAuthor as icon } from '@wordpress/icons'; const { name } = metadata; export { metadata, name }; From 2822acc5b75113b6e0b6290a258a24dba7549aa7 Mon Sep 17 00:00:00 2001 From: Filipe Varela Date: Wed, 2 Jun 2021 11:33:51 +0100 Subject: [PATCH 4/9] Rename `security` icon to `shield` --- packages/icons/src/index.js | 4 ++-- packages/icons/src/library/{security.js => shield.js} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename packages/icons/src/library/{security.js => shield.js} (92%) diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index e6b4e3170b43d..fae4e7cf27ee4 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -171,12 +171,12 @@ export { default as rotateLeft } from './library/rotate-left'; export { default as rotateRight } from './library/rotate-right'; export { default as rss } from './library/rss'; export { default as search } from './library/search'; -export { default as security } from './library/security'; export { default as separator } from './library/separator'; export { default as settings } from './library/settings'; export { default as share } from './library/share'; -export { default as siteLogo } from './library/site-logo'; +export { default as shield } from './library/shield'; export { default as shortcode } from './library/shortcode'; +export { default as siteLogo } from './library/site-logo'; export { default as stack } from './library/stack'; export { default as starEmpty } from './library/star-empty'; export { default as starFilled } from './library/star-filled'; diff --git a/packages/icons/src/library/security.js b/packages/icons/src/library/shield.js similarity index 92% rename from packages/icons/src/library/security.js rename to packages/icons/src/library/shield.js index bff180f9b08de..2181483e2c211 100644 --- a/packages/icons/src/library/security.js +++ b/packages/icons/src/library/shield.js @@ -3,7 +3,7 @@ */ import { SVG, Path } from '@wordpress/primitives'; -const security = ( +const shield = ( ); -export default security; +export default shield; From 7c8fa25e3393437ddfa10d2fbf2a10550403d02d Mon Sep 17 00:00:00 2001 From: Filipe Varela Date: Wed, 2 Jun 2021 11:38:42 +0100 Subject: [PATCH 5/9] Rename `noBug` to `removeBug` --- packages/icons/src/index.js | 2 +- packages/icons/src/library/{no-bug.js => remove-bug.js} | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) rename packages/icons/src/library/{no-bug.js => remove-bug.js} (92%) diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index fae4e7cf27ee4..29e656324f076 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -121,7 +121,6 @@ export { default as moreHorizontalMobile } from './library/more-horizontal-mobil export { default as moreVertical } from './library/more-vertical'; export { default as moveTo } from './library/move-to'; export { default as navigation } from './library/navigation'; -export { default as noBug } from './library/no-bug'; export { default as overlayText } from './library/overlay-text'; export { default as pageBreak } from './library/page-break'; export { default as customLink } from './library/custom-link'; @@ -164,6 +163,7 @@ export { default as queryPaginationPrevious } from './library/query-pagination-p export { default as quote } from './library/quote'; export { default as receipt } from './library/receipt'; export { default as redo } from './library/redo'; +export { default as removeBug } from './library/remove-bug'; export { default as replace } from './library/replace'; export { default as resizeCornerNE } from './library/resize-corner-n-e'; export { default as reusableBlock } from './library/reusable-block'; diff --git a/packages/icons/src/library/no-bug.js b/packages/icons/src/library/remove-bug.js similarity index 92% rename from packages/icons/src/library/no-bug.js rename to packages/icons/src/library/remove-bug.js index 8abd1c2417327..a8144c4f80e23 100644 --- a/packages/icons/src/library/no-bug.js +++ b/packages/icons/src/library/remove-bug.js @@ -3,14 +3,12 @@ */ import { SVG, Path } from '@wordpress/primitives'; -const noBug = ( +const removeBug = ( ); -export default noBug; +export default removeBug; From cde14654b529a832d84ef67424bb1d31c6399772 Mon Sep 17 00:00:00 2001 From: Filipe Varela Date: Wed, 2 Jun 2021 11:42:30 +0100 Subject: [PATCH 6/9] Remove unnecessary attributes from `addCard` --- packages/icons/src/library/add-card.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/icons/src/library/add-card.js b/packages/icons/src/library/add-card.js index bedd33f250025..273b20e202191 100644 --- a/packages/icons/src/library/add-card.js +++ b/packages/icons/src/library/add-card.js @@ -7,8 +7,6 @@ const addCard = ( ); From 4f8230c61c2c0b6abb7f89c0d046bdee502da96a Mon Sep 17 00:00:00 2001 From: Filipe Varela Date: Thu, 3 Jun 2021 14:27:01 +0100 Subject: [PATCH 7/9] Update shield shape --- packages/icons/src/library/shield.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icons/src/library/shield.js b/packages/icons/src/library/shield.js index 2181483e2c211..3dc11ab96a131 100644 --- a/packages/icons/src/library/shield.js +++ b/packages/icons/src/library/shield.js @@ -6,7 +6,7 @@ import { SVG, Path } from '@wordpress/primitives'; const shield = ( From 96402ab4f80d29987d2823a6dcfb7a208b8588b5 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Fri, 4 Jun 2021 09:22:44 +0200 Subject: [PATCH 8/9] Linting. --- packages/icons/src/library/add-card.js | 4 +--- packages/icons/src/library/remove-bug.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/icons/src/library/add-card.js b/packages/icons/src/library/add-card.js index 273b20e202191..17610fbe31b40 100644 --- a/packages/icons/src/library/add-card.js +++ b/packages/icons/src/library/add-card.js @@ -5,9 +5,7 @@ import { SVG, Path } from '@wordpress/primitives'; const addCard = ( - + ); diff --git a/packages/icons/src/library/remove-bug.js b/packages/icons/src/library/remove-bug.js index a8144c4f80e23..d92fc76d3dda4 100644 --- a/packages/icons/src/library/remove-bug.js +++ b/packages/icons/src/library/remove-bug.js @@ -5,9 +5,7 @@ import { SVG, Path } from '@wordpress/primitives'; const removeBug = ( - + ); From 085d6324e801c07119802eab9b162b4b63fb1d32 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Fri, 4 Jun 2021 09:41:04 +0200 Subject: [PATCH 9/9] More linting. --- packages/block-library/src/post-author/index.js | 4 ++++ packages/block-library/src/post-comment-author/index.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/block-library/src/post-author/index.js b/packages/block-library/src/post-author/index.js index cccc00c3f5c2c..68fb2c2f737c2 100644 --- a/packages/block-library/src/post-author/index.js +++ b/packages/block-library/src/post-author/index.js @@ -3,6 +3,10 @@ */ import metadata from './block.json'; import edit from './edit'; + +/** + * WordPress dependencies + */ import { postAuthor as icon } from '@wordpress/icons'; const { name } = metadata; diff --git a/packages/block-library/src/post-comment-author/index.js b/packages/block-library/src/post-comment-author/index.js index cccc00c3f5c2c..68fb2c2f737c2 100644 --- a/packages/block-library/src/post-comment-author/index.js +++ b/packages/block-library/src/post-comment-author/index.js @@ -3,6 +3,10 @@ */ import metadata from './block.json'; import edit from './edit'; + +/** + * WordPress dependencies + */ import { postAuthor as icon } from '@wordpress/icons'; const { name } = metadata;