Skip to content

Commit 7d53964

Browse files
committed
feat(icons): add SchemeIcon and CodeIcon
1 parent 583cc95 commit 7d53964

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

.changeset/fast-planets-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Add SchemeIcon and CodeIcon.

src/icons/CodeIcon.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { wrapIcon } from './wrap-icon';
2+
3+
export const CodeIcon = wrapIcon(
4+
'CodeIcon',
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
width="16"
8+
height="16"
9+
fill="none"
10+
viewBox="0 0 16 16"
11+
>
12+
<g clipPath="url(#a)">
13+
<path
14+
fill="currentColor"
15+
fillRule="evenodd"
16+
d="M10.136 1.136A.65.65 0 0 0 8.864.864l-3 14a.65.65 0 0 0 1.272.272zM4.46 4.54a.65.65 0 0 1 0 .92L1.92 8l2.54 2.54a.65.65 0 0 1-.92.92l-3-3a.65.65 0 0 1 0-.92l3-3a.65.65 0 0 1 .92 0m7.08 0a.65.65 0 0 0 0 .92L14.08 8l-2.54 2.54a.65.65 0 1 0 .92.92l3-3a.65.65 0 0 0 0-.92l-3-3a.65.65 0 0 0-.92 0"
17+
clipRule="evenodd"
18+
/>
19+
</g>
20+
<defs>
21+
<clipPath id="a">
22+
<path fill="#fff" d="M0 0h16v16H0z" />
23+
</clipPath>
24+
</defs>
25+
</svg>,
26+
);

src/icons/SchemeIcon.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { wrapIcon } from './wrap-icon';
2+
3+
export const SchemeIcon = wrapIcon(
4+
'SchemeIcon',
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
width="16"
8+
height="16"
9+
fill="none"
10+
viewBox="0 0 16 16"
11+
>
12+
<g clipPath="url(#a)">
13+
<path
14+
fill="currentColor"
15+
fillRule="evenodd"
16+
d="M10 1.998a1.2 1.2 0 0 1 1.2-1.2H14a1.2 1.2 0 0 1 1.2 1.2V6A1.2 1.2 0 0 1 14 7.2h-2.8A1.2 1.2 0 0 1 10 6v-.98H8.2v6.056H10V9.998a1.2 1.2 0 0 1 1.2-1.2H14a1.2 1.2 0 0 1 1.2 1.2V14a1.2 1.2 0 0 1-1.2 1.2h-2.8A1.2 1.2 0 0 1 10 14v-1.724H8.2a1.2 1.2 0 0 1-1.2-1.2V8.6H5.2V10A1.2 1.2 0 0 1 4 11.2H1.2A1.2 1.2 0 0 1 0 10V5.998a1.2 1.2 0 0 1 1.2-1.2H4a1.2 1.2 0 0 1 1.2 1.2V7.4H7V5.02a1.2 1.2 0 0 1 1.2-1.2H10zm4 0h-2.8V6H14zm-10 4H1.2V10H4zm7.2 4H14V14h-2.8z"
17+
clipRule="evenodd"
18+
/>
19+
</g>
20+
<defs>
21+
<clipPath id="a">
22+
<path fill="#fff" d="M0 0h16v16H0z" />
23+
</clipPath>
24+
</defs>
25+
</svg>,
26+
);

src/icons/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export { ClearIcon } from './ClearIcon';
1717
export { CloseCircleFilledIcon } from './CloseCircleFilledIcon';
1818
export { CloseCircleIcon } from './CloseCircleIcon';
1919
export { CloseIcon } from './CloseIcon';
20+
export { CodeIcon } from './CodeIcon';
2021
export { CopyIcon } from './CopyIcon';
2122
export { CountIcon } from './CountIcon';
2223
export { CubeIcon } from './CubeIcon';
@@ -57,6 +58,7 @@ export { PlusIcon } from './PlusIcon';
5758
export { ReloadIcon } from './ReloadIcon';
5859
export { ReturnIcon } from './ReturnIcon';
5960
export { RightIcon } from './RightIcon';
61+
export { SchemeIcon } from './SchemeIcon';
6062
export { SearchIcon } from './SearchIcon';
6163
export { SettingsIcon } from './SettingsIcon';
6264
export { ShieldFilledIcon } from './ShieldFilledIcon';

0 commit comments

Comments
 (0)