-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(icons): add CopyIcon * feat(icons): update CopyIcon to approved design
- Loading branch information
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const rollupIconList = ['src/LoadingIcon.tsx', 'src/PlusIcon.tsx']; | ||
export const rollupIconList = ['src/CopyIcon.tsx', 'src/LoadingIcon.tsx', 'src/PlusIcon.tsx']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* This file was automatically generated with @twilio-labs/svg-to-react | ||
*/ | ||
import * as React from 'react'; | ||
import {UID} from 'react-uid'; | ||
import {IconWrapper, IconWrapperProps} from './helpers/IconWrapper'; | ||
|
||
export interface CopyIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const CopyIcon: React.FC<CopyIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[CopyIcon]: Missing a title for non-decorative icon.'); | ||
} | ||
|
||
return ( | ||
<IconWrapper as={as} size={size} iconColor={iconColor}> | ||
<UID> | ||
{uid => ( | ||
<svg role="img" aria-hidden={decorative} aria-labelledby={uid} width="100%" height="100%" viewBox="0 0 24 24"> | ||
{title ? <title id={uid}>{title}</title> : null} | ||
<path | ||
fill="currentColor" | ||
fillRule="evenodd" | ||
d="M17 1a1 1 0 01.993.883L18 2v4h4a1 1 0 01.993.883L23 7v15a1 1 0 01-1 1H7a1 1 0 01-1-1v-4H2a1 1 0 01-.993-.883L1 17V2a1 1 0 01.883-.993L2 1h15zm4 7H8v13h13V8zm-5-2V3H3v13h3V7a1 1 0 01.883-.993L7 6h9z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
CopyIcon.displayName = 'CopyIcon'; | ||
export {CopyIcon}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
d51d0d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: