Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Bump @wordpress/icons from 6.1.1 to 9.36.0 (#11611)
Browse files Browse the repository at this point in the history
* Bump @wordpress/icons from 6.1.1 to 9.36.0

Bumps [@wordpress/icons](https://github.com/WordPress/gutenberg/tree/HEAD/packages/icons) from 6.1.1 to 9.36.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/icons/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/icons@9.36.0/packages/icons)

---
updated-dependencies:
- dependency-name: "@wordpress/icons"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add sparkles icon to codebase

* Fix failing JS-unit tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Niels Lange <info@nielslange.de>
  • Loading branch information
dependabot[bot] and nielslange authored Nov 16, 2023
1 parent dbaa4d2 commit a4eec7f
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 525 deletions.
3 changes: 2 additions & 1 deletion assets/js/blocks/product-new/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*/
import { __ } from '@wordpress/i18n';
import { createBlock, registerBlockType } from '@wordpress/blocks';
import { Icon, sparkles } from '@wordpress/icons';
import { Icon } from '@wordpress/icons';
import { sparkles } from '@woocommerce/icons';

/**
* Internal dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const ListItemsContainer = < T extends object = object >( {
return (
<div className="woocommerce-search-list__list is-not-found">
<span className="woocommerce-search-list__not-found-icon">
<Icon icon={ info } />
<Icon icon={ info } role="img" />
</span>
<span className="woocommerce-search-list__not-found-text">
{ search
Expand Down
1 change: 1 addition & 0 deletions assets/js/editor-components/tag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const Tag = ( {
icon={ cancelCircleFilled }
size={ 20 }
className="clear-icon"
role="img"
/>
</Button>
) }
Expand Down
3 changes: 2 additions & 1 deletion assets/js/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ export { default as miniCartAlt } from './library/mini-cart-alt';
export { default as productDetails } from './library/product-details';
export { default as productMeta } from './library/product-meta';
export { default as removeCart } from './library/remove-cart';
export { default as sparkles } from './library/sparkles';
export { default as stacks } from './library/stacks';
export { default as thumbnailsPositionLeft } from './library/thumbnails-position-left';
export { default as thumbnailsPositionBottom } from './library/thumbnails-position-bottom';
export { default as thumbnailsPositionLeft } from './library/thumbnails-position-left';
export { default as thumbnailsPositionRight } from './library/thumbnails-position-right';
export { default as thumbUp } from './library/thumb-up';
export { default as toggle } from './library/toggle';
Expand Down
15 changes: 15 additions & 0 deletions assets/js/icons/library/sparkles.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* External dependencies
*/
import { SVG } from '@wordpress/primitives';

const sparkles = (
<SVG viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M10 11c-1.588-.479-4-.91-4-.91s2-.241 4-.454c1.8-.191 3.365-.502 4-3.181C14.635 3.775 15 1 15 1s.365 2.775 1 5.455c.635 2.679 2 2.969 4 3.181 2 .213 4 .455 4 .455s-2.412.43-4 .909c-1.588.479-3 1-4 4.546-.746 2.643-.893 4.948-1 5.454-.107-.506-.167-2.5-1-5.454C13 12 11.588 11.479 10 11zM7.333 3.5C6.803 3.333 6 3.182 6 3.182s.667-.085 1.333-.16c.6-.066 1.122-.175 1.334-1.113C8.878.971 9 0 9 0s.122.971.333 1.91c.212.937.667 1.038 1.334 1.113.666.074 1.333.159 1.333.159s-.804.15-1.333.318c-.53.167-1 .35-1.334 1.59C9.085 6.017 9.036 6.824 9 7c-.036-.177-.056-.875-.333-1.91-.334-1.24-.804-1.423-1.334-1.59zM2.444 18C1.474 17.713 0 17.454 0 17.454s1.222-.145 2.444-.272c1.1-.115 2.057-.302 2.445-1.91C5.277 13.666 5.5 12 5.5 12s.223 1.665.611 3.273c.388 1.607 1.222 1.781 2.445 1.909 1.222.127 2.444.273 2.444.273s-1.474.258-2.444.545c-.971.287-1.834.6-2.445 2.727-.456 1.586-.546 2.97-.611 3.273-.065-.304-.102-1.5-.611-3.273C4.278 18.6 3.415 18.287 2.444 18z"
fill="currentColor"
/>
</SVG>
);

export default sparkles;
Loading

0 comments on commit a4eec7f

Please sign in to comment.