Skip to content

Commit

Permalink
feat: codegen icon (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: dev-redo <[email protected]>
  • Loading branch information
dev-redo and dev-redo authored Aug 22, 2024
1 parent 5ae418a commit 9d37e8c
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Corca <[email protected]>",
"description": "Design System for Corca, Inc.",
"private": false,
"version": "0.0.34",
"version": "0.0.35",
"packageManager": "[email protected]",
"type": "module",
"exports": {
Expand Down
35 changes: 35 additions & 0 deletions src/icon/generated-default/IconCode.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import type { SVGProps } from 'react';
import { Ref, forwardRef } from 'react';
import type { IconProps } from '../share/props';
const IconCode = (
{
title = 'IconCode',
titleId = 'CDS-IconCodeIcon',
size = 20,
color = '#363738',
...props
}: SVGProps<SVGSVGElement> & IconProps,
ref: Ref<SVGSVGElement>,
) => (
<svg
width={size}
height={size}
fill="none"
viewBox="0 0 20 20"
color={color}
ref={ref}
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
d="M5.556 6.5 2 10l3.556 3.5m8.888-7L18 10l-3.556 3.5M11.778 3 8.222 17"
/>
</svg>
);
const ForwardRef = forwardRef(IconCode);
export { ForwardRef as IconCode };
35 changes: 35 additions & 0 deletions src/icon/generated-default/IconCoins.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import type { SVGProps } from 'react';
import { Ref, forwardRef } from 'react';
import type { IconProps } from '../share/props';
const IconCoins = (
{
title = 'IconCoins',
titleId = 'CDS-IconCoinsIcon',
size = 20,
color = '#363738',
...props
}: SVGProps<SVGSVGElement> & IconProps,
ref: Ref<SVGSVGElement>,
) => (
<svg
width={size}
height={size}
fill="none"
viewBox="0 0 20 20"
color={color}
ref={ref}
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
d="M4 6c0 .796.632 1.559 1.757 2.121S8.41 9 10 9s3.117-.316 4.243-.879C15.368 7.56 16 6.796 16 6M4 6c0-.796.632-1.559 1.757-2.121S8.41 3 10 3s3.117.316 4.243.879C15.368 4.44 16 5.204 16 6M4 6v4m12-4v4M4 10c0 1.657 2.687 3 6 3s6-1.343 6-3M4 10v4c0 1.657 2.687 3 6 3s6-1.343 6-3v-4"
/>
</svg>
);
const ForwardRef = forwardRef(IconCoins);
export { ForwardRef as IconCoins };
35 changes: 35 additions & 0 deletions src/icon/generated-default/IconDownload.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import type { SVGProps } from 'react';
import { Ref, forwardRef } from 'react';
import type { IconProps } from '../share/props';
const IconDownload = (
{
title = 'IconDownload',
titleId = 'CDS-IconDownloadIcon',
size = 20,
color = '#363738',
...props
}: SVGProps<SVGSVGElement> & IconProps,
ref: Ref<SVGSVGElement>,
) => (
<svg
width={size}
height={size}
fill="none"
viewBox="0 0 20 20"
color={color}
ref={ref}
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
d="M4 13.39v1.528c0 .406.158.795.44 1.082.28.287.662.448 1.06.448h9c.398 0 .78-.161 1.06-.448.282-.287.44-.676.44-1.082V13.39M6.25 9.353 10 13.177m0 0 3.75-3.824M10 13.177V4"
/>
</svg>
);
const ForwardRef = forwardRef(IconDownload);
export { ForwardRef as IconDownload };
35 changes: 35 additions & 0 deletions src/icon/generated-default/IconReceipt.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import type { SVGProps } from 'react';
import { Ref, forwardRef } from 'react';
import type { IconProps } from '../share/props';
const IconReceipt = (
{
title = 'IconReceipt',
titleId = 'CDS-IconReceiptIcon',
size = 20,
color = '#363738',
...props
}: SVGProps<SVGSVGElement> & IconProps,
ref: Ref<SVGSVGElement>,
) => (
<svg
width={size}
height={size}
fill="none"
viewBox="0 0 20 20"
color={color}
ref={ref}
aria-labelledby={titleId}
{...props}
>
{title ? <title id={titleId}>{title}</title> : null}
<path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={1.5}
d="M7.429 6.889h5.142M7.43 10h5.142m-1.714 3.111h1.714M4 17V4.556c0-.413.18-.809.502-1.1A1.8 1.8 0 0 1 5.714 3h8.572c.454 0 .89.164 1.212.456.321.291.502.687.502 1.1V17H4"
/>
</svg>
);
const ForwardRef = forwardRef(IconReceipt);
export { ForwardRef as IconReceipt };
4 changes: 4 additions & 0 deletions src/icon/generated-default/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ export { IconChevronLeftSmall } from './IconChevronLeftSmall';
export { IconChevronRighSmall } from './IconChevronRighSmall';
export { IconChevronUpSmall } from './IconChevronUpSmall';
export { IconClock } from './IconClock';
export { IconCode } from './IconCode';
export { IconCoins } from './IconCoins';
export { IconCopy } from './IconCopy';
export { IconCurrencyWon } from './IconCurrencyWon';
export { IconDashboardbar } from './IconDashboardbar';
export { IconDotsHor } from './IconDotsHor';
export { IconDotsVert } from './IconDotsVert';
export { IconDownload } from './IconDownload';
export { IconEarth } from './IconEarth';
export { IconEditSquare } from './IconEditSquare';
export { IconEdit } from './IconEdit';
Expand All @@ -36,6 +39,7 @@ export { IconMegaphone } from './IconMegaphone';
export { IconMinus } from './IconMinus';
export { IconPictureSearch } from './IconPictureSearch';
export { IconQuestionCircle } from './IconQuestionCircle';
export { IconReceipt } from './IconReceipt';
export { IconSearch } from './IconSearch';
export { IconSetting } from './IconSetting';
export { IconShop } from './IconShop';
Expand Down

0 comments on commit 9d37e8c

Please sign in to comment.