Skip to content

Commit

Permalink
Pages data view: Update status icons (#62136)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: afercia <afercia@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: richtabor <richtabor@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>
Co-authored-by: hanneslsm <hanneslsm@git.wordpress.org>
  • Loading branch information
8 people authored and ellatrix committed Jun 25, 2024
1 parent 364f794 commit 45ce88d
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { trash, pages, drafts, unseen, inbox } from '@wordpress/icons';
import {
trash,
pages,
drafts,
published,
scheduled,
pending,
notAllowed,
} from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -57,7 +65,7 @@ export const DEFAULT_VIEWS = {
{
title: __( 'Published' ),
slug: 'published',
icon: pages,
icon: published,
view: {
...DEFAULT_PAGE_BASE,
filters: [
Expand All @@ -72,7 +80,7 @@ export const DEFAULT_VIEWS = {
{
title: __( 'Scheduled' ),
slug: 'future',
icon: pages,
icon: scheduled,
view: {
...DEFAULT_PAGE_BASE,
filters: [
Expand Down Expand Up @@ -102,7 +110,7 @@ export const DEFAULT_VIEWS = {
{
title: __( 'Pending' ),
slug: 'pending',
icon: inbox,
icon: pending,
view: {
...DEFAULT_PAGE_BASE,
filters: [
Expand All @@ -117,7 +125,7 @@ export const DEFAULT_VIEWS = {
{
title: __( 'Private' ),
slug: 'private',
icon: unseen,
icon: notAllowed,
view: {
...DEFAULT_PAGE_BASE,
filters: [
Expand Down
4 changes: 4 additions & 0 deletions packages/icons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,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 notAllowed } from './library/not-allowed';
export { default as notFound } from './library/not-found';
export { default as overlayText } from './library/overlay-text';
export { default as pageBreak } from './library/page-break';
Expand All @@ -168,6 +169,7 @@ export { default as page } from './library/page';
export { default as pages } from './library/pages';
export { default as paragraph } from './library/paragraph';
export { default as payment } from './library/payment';
export { default as pending } from './library/pending';
export { default as percent } from './library/percent';
export { default as positionCenter } from './library/position-center';
export { default as positionLeft } from './library/position-left';
Expand Down Expand Up @@ -196,6 +198,7 @@ export { default as previous } from './library/previous';
export { default as next } from './library/next';
export { default as offline } from './library/offline';
export { default as preformatted } from './library/preformatted';
export { default as published } from './library/published';
export { default as pullLeft } from './library/pull-left';
export { default as pullRight } from './library/pull-right';
export { default as pullquote } from './library/pullquote';
Expand All @@ -220,6 +223,7 @@ export { default as rss } from './library/rss';
export { default as search } from './library/search';
export { default as seen } from './library/seen';
export { default as unseen } from './library/unseen';
export { default as scheduled } from './library/scheduled';
export { default as separator } from './library/separator';
export { default as settings } from './library/settings';
export { default as shadow } from './library/shadow';
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/src/library/drafts.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const drafts = (
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M8 2H6a2 2 0 0 0-2 2v2.4h1.5V4a.5.5 0 0 1 .5-.5h2V2ZM4 13.6V16a2 2 0 0 0 2 2h2v-1.5H6a.5.5 0 0 1-.5-.5v-2.4H4Zm0-1.2h1.5V7.6H4v4.8ZM9 2v1.5h4V2H9Zm5 0v1.5h2a.5.5 0 0 1 .5.5v2.4H18V4a2 2 0 0 0-2-2h-2Zm4 5.6h-1.5v4.8H18V7.6Zm0 6h-1.5V16a.5.5 0 0 1-.5.5h-2V18h2a2 2 0 0 0 2-2v-2.4ZM13 18v-1.5H9V18h4ZM7 7.25h8v-1.5H7v1.5Zm0 3.25h6V9H7v1.5ZM21.75 19V6h-1.5v13c0 .69-.56 1.25-1.25 1.25H8v1.5h11A2.75 2.75 0 0 0 21.75 19Z"
d="M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 0 4-4H8a4 4 0 0 0 4 4Z"
/>
</SVG>
);
Expand Down
16 changes: 16 additions & 0 deletions packages/icons/src/library/not-allowed.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const notAllowed = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M12 18.5A6.5 6.5 0 0 1 6.93 7.931l9.139 9.138A6.473 6.473 0 0 1 12 18.5Zm5.123-2.498a6.5 6.5 0 0 0-9.124-9.124l9.124 9.124ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"
/>
</SVG>
);

export default notAllowed;
16 changes: 16 additions & 0 deletions packages/icons/src/library/pending.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const pending = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm8 4a4 4 0 0 1-4-4h4V8a4 4 0 0 1 0 8Z"
/>
</SVG>
);

export default pending;
16 changes: 16 additions & 0 deletions packages/icons/src/library/published.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const published = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"
/>
</SVG>
);

export default published;
16 changes: 16 additions & 0 deletions packages/icons/src/library/scheduled.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const scheduled = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"
/>
</SVG>
);

export default scheduled;

0 comments on commit 45ce88d

Please sign in to comment.