Skip to content

Commit 102aa5e

Browse files
Merge pull request #326 from storybookjs/add-document-illustrations
Add Document illustrations to Colored Icons
2 parents 275bf95 + b5a519b commit 102aa5e

5 files changed

Lines changed: 90 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import * as React from 'react';
2+
import { SVGProps } from 'react';
3+
4+
interface SVGRProps {
5+
title?: string;
6+
titleId?: string;
7+
}
8+
9+
const SvgDocument = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => (
10+
<svg
11+
width="48"
12+
height="48"
13+
viewBox="0 0 48 48"
14+
fill="none"
15+
xmlns="http://www.w3.org/2000/svg"
16+
aria-labelledby={titleId}
17+
{...props}
18+
>
19+
{title ? <title id={titleId}>{title}</title> : null}
20+
<path
21+
d="M7 0C4.79083 0 3 1.79083 3 4V44C3 46.2092 4.79083 48 7 48H41C43.2092 48 45 46.2092 45 44V9L36 0H7Z"
22+
fill="#D7F7F6"
23+
/>
24+
<rect x="9" y="17" width="9" height="5" rx="2" fill="#37D5D3" fillOpacity="0.85" />
25+
<rect x="20" y="17" width="19" height="5" rx="2" fill="#37D5D3" fillOpacity="0.85" />
26+
<rect x="9" y="26" width="9" height="5" rx="2" fill="#37D5D3" fillOpacity="0.85" />
27+
<rect x="20" y="26" width="19" height="5" rx="2" fill="#37D5D3" fillOpacity="0.85" />
28+
<rect x="9" y="35" width="9" height="5" rx="2" fill="#37D5D3" fillOpacity="0.85" />
29+
<rect x="20" y="35" width="19" height="5" rx="2" fill="#37D5D3" fillOpacity="0.85" />
30+
<path d="M36 0V5C36 7.20914 37.7909 9 40 9H45L36 0Z" fill="#37D5D3" fillOpacity="0.85" />
31+
</svg>
32+
);
33+
34+
export default SvgDocument;
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import * as React from 'react';
2+
import { SVGProps } from 'react';
3+
4+
interface SVGRProps {
5+
title?: string;
6+
titleId?: string;
7+
}
8+
9+
const SvgDocumentAlt = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => (
10+
<svg
11+
width="48"
12+
height="48"
13+
viewBox="0 0 48 48"
14+
fill="none"
15+
xmlns="http://www.w3.org/2000/svg"
16+
aria-labelledby={titleId}
17+
{...props}
18+
>
19+
{title ? <title id={titleId}>{title}</title> : null}
20+
<path
21+
d="M7 0C4.79083 0 3 1.79083 3 4V44C3 46.2092 4.79083 48 7 48H41C43.2092 48 45 46.2092 45 44V9L36 0H7Z"
22+
fill="#FFE8B6"
23+
/>
24+
<rect x="9" y="17" width="9" height="5" rx="2" fill="#FEBD32" />
25+
<rect x="20" y="17" width="19" height="5" rx="2" fill="#FEBD32" />
26+
<rect x="9" y="26" width="9" height="5" rx="2" fill="#FEBD32" />
27+
<rect x="20" y="26" width="19" height="5" rx="2" fill="#FEBD32" />
28+
<rect x="9" y="35" width="9" height="5" rx="2" fill="#FEBD32" />
29+
<rect x="20" y="35" width="19" height="5" rx="2" fill="#FEBD32" />
30+
<path d="M36 0V5C36 7.20914 37.7909 9 40 9H45L36 0Z" fill="#FEBD32" />
31+
</svg>
32+
);
33+
34+
export default SvgDocumentAlt;
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading

src/images/colored-icons/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export { default as CustomAddon } from './CustomAddon';
1616
export { default as Delete } from './Delete';
1717
export { default as Detect } from './Detect';
1818
export { default as Direction } from './Direction';
19+
export { default as Document } from './Document';
20+
export { default as DocumentAlt } from './DocumentAlt';
1921
export { default as Email } from './Email';
2022
export { default as Error } from './Error';
2123
export { default as Eye } from './Eye';

0 commit comments

Comments
 (0)