|
1 | | -/** |
2 | | - * External dependencies |
3 | | - */ |
4 | | -import { Icon } from '@wordpress/components'; |
5 | | - |
6 | | -export const IconChecked = () => ( |
7 | | - <Icon |
8 | | - icon={ |
9 | | - <svg |
10 | | - viewBox="0 0 16 16" |
11 | | - width="16" |
12 | | - height="16" |
13 | | - xmlns="http://www.w3.org/2000/svg" |
14 | | - > |
15 | | - <defs> |
16 | | - <path |
17 | | - id="checked" |
18 | | - d="M15.2222 1H2.7778C1.791 1 1 1.8 1 2.7778v12.4444C1 16.2 1.7911 17 2.7778 17h12.4444C16.209 17 17 16.2 17 15.2222V2.7778C17 1.8 16.2089 1 15.2222 1zm-8 12.4444L2.7778 9 4.031 7.7467l3.1911 3.1822 6.7467-6.7467 1.2533 1.2622-8 8z" |
19 | | - /> |
20 | | - </defs> |
21 | | - <g fill="none" fillRule="evenodd" transform="translate(-1 -1)"> |
22 | | - <mask id="checked-mask" fill="#fff"> |
23 | | - <use xlinkHref="#checked" /> |
24 | | - </mask> |
25 | | - <path fill="#1E8CBE" d="M0 0h18v18H0z" mask="url(#checked-mask)" /> |
26 | | - </g> |
27 | | - </svg> |
28 | | - } |
29 | | - /> |
30 | | -); |
31 | | - |
32 | | -export const IconUnchecked = () => ( |
33 | | - <Icon |
34 | | - icon={ |
35 | | - <svg |
36 | | - viewBox="0 0 16 16" |
37 | | - width="16" |
38 | | - height="16" |
39 | | - xmlns="http://www.w3.org/2000/svg" |
40 | | - > |
41 | | - <defs> |
42 | | - <path |
43 | | - id="unchecked" |
44 | | - d="M15.2222 2.7778v12.4444H2.7778V2.7778h12.4444zm0-1.7778H2.7778C1.8 1 1 1.8 1 2.7778v12.4444C1 16.2 1.8 17 2.7778 17h12.4444C16.2 17 17 16.2 17 15.2222V2.7778C17 1.8 16.2 1 15.2222 1z" |
45 | | - /> |
46 | | - </defs> |
47 | | - <g fill="none" fillRule="evenodd" transform="translate(-1 -1)"> |
48 | | - <mask id="unchecked-mask" fill="#fff"> |
49 | | - <use xlinkHref="#unchecked" /> |
50 | | - </mask> |
51 | | - <path fill="#6C7781" d="M0 0h18v18H0z" mask="url(#unchecked-mask)" /> |
52 | | - </g> |
53 | | - </svg> |
54 | | - } |
55 | | - /> |
56 | | -); |
57 | | - |
58 | | -export const IconNewReleases = () => ( |
59 | | - <Icon |
60 | | - icon={ |
61 | | - <svg |
62 | | - xmlns="http://www.w3.org/2000/svg" |
63 | | - width="24" |
64 | | - height="24" |
65 | | - viewBox="0 0 24 24" |
66 | | - > |
67 | | - <path d="M0 0h24v24H0z" fill="none" /> |
68 | | - <path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z" /> |
69 | | - </svg> |
70 | | - } |
71 | | - /> |
72 | | -); |
73 | | - |
74 | | -export const IconWidgets = () => ( |
75 | | - <Icon |
76 | | - icon={ |
77 | | - <svg |
78 | | - xmlns="http://www.w3.org/2000/svg" |
79 | | - width="24" |
80 | | - height="24" |
81 | | - viewBox="0 0 24 24" |
82 | | - > |
83 | | - <path d="M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z" /> |
84 | | - <path d="M0 0h24v24H0z" fill="none" /> |
85 | | - </svg> |
86 | | - } |
87 | | - /> |
88 | | -); |
| 1 | +// Export each icon as a named component. |
| 2 | +export { default as IconCheckChecked } from './checkbox-checked'; |
| 3 | +export { default as IconCheckUnchecked } from './checkbox-unchecked'; |
| 4 | +export { default as IconNewReleases } from './new-releases'; |
| 5 | +export { default as IconRadioSelected } from './radio-selected'; |
| 6 | +export { default as IconRadioUnselected } from './radio-unselected'; |
| 7 | +export { default as IconStar } from './star'; |
| 8 | +export { default as IconWidgets } from './widgets'; |
0 commit comments