-
Notifications
You must be signed in to change notification settings - Fork 115
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 arrows, chevrons, attach; update linkexternal (#531)
Co-authored-by: Sarah Li <sali@twilio.com>
- Loading branch information
1 parent
e70c6fd
commit 2e5ecd3
Showing
18 changed files
with
298 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 ArrowBackIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const ArrowBackIcon: React.FC<ArrowBackIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[ArrowBackIcon]: 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="M9.75 15.947l-.07-.058-3.535-3.536a.502.502 0 01-.067-.082l-.043-.083-.03-.1L6 12.043v-.088l.01-.067.01-.038.034-.081.047-.074.044-.05L9.68 8.111a.5.5 0 01.765.638l-.058.069L7.706 11.5H16.5a.5.5 0 01.09.992l-.09.008H7.706l2.681 2.682a.5.5 0 01.058.638l-.058.069a.5.5 0 01-.638.058z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
ArrowBackIcon.displayName = 'ArrowBackIcon'; | ||
export {ArrowBackIcon}; |
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 ArrowDownIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const ArrowDownIcon: React.FC<ArrowDownIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[ArrowDownIcon]: 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="M11.897 17.99l.06.008.054.002a.503.503 0 00.063-.005L12 18a.49.49 0 00.103-.01l.056-.016.084-.037.015-.01.026-.016.07-.057 3.535-3.536a.5.5 0 00-.638-.765l-.069.058-2.683 2.683.001-8.781A.506.506 0 0012 7a.504.504 0 00-.492.42l-.008.093v8.779l-2.682-2.681a.5.5 0 00-.638-.058l-.07.058a.5.5 0 00-.057.638l.058.069 3.535 3.536.047.04.064.042c.02.012.04.022.062.03l.078.023z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
ArrowDownIcon.displayName = 'ArrowDownIcon'; | ||
export {ArrowDownIcon}; |
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 ArrowForwardIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const ArrowForwardIcon: React.FC<ArrowForwardIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[ArrowForwardIcon]: 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="M14.25 15.947l.07-.058 3.535-3.536a.502.502 0 00.067-.082l.043-.083.03-.1.005-.044v-.088l-.01-.067-.01-.038-.034-.081-.047-.074-.044-.05-3.535-3.535a.5.5 0 00-.765.638l.058.069 2.681 2.682H7.5a.5.5 0 00-.09.992l.09.008h8.794l-2.681 2.682a.5.5 0 00-.058.638l.058.069a.5.5 0 00.638.058z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
ArrowForwardIcon.displayName = 'ArrowForwardIcon'; | ||
export {ArrowForwardIcon}; |
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 ArrowUpIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const ArrowUpIcon: React.FC<ArrowUpIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[ArrowUpIcon]: 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="M12 7h.01c.022 0 .043.002.064.005L12 7a.49.49 0 01.16.026l.025.01c.02.007.04.016.058.027l.015.01a.14.14 0 01.026.016l.07.057 3.535 3.536a.5.5 0 01-.638.765l-.069-.058-2.683-2.683.001 8.781A.506.506 0 0112 18a.504.504 0 01-.492-.42l-.008-.093V8.708l-2.682 2.681a.5.5 0 01-.638.058l-.07-.058a.5.5 0 01-.057-.638l.058-.069 3.535-3.536a.501.501 0 01.096-.074l.015-.008a.344.344 0 01.062-.03l.017-.006a.406.406 0 01.09-.022A.486.486 0 0112 7z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
ArrowUpIcon.displayName = 'ArrowUpIcon'; | ||
export {ArrowUpIcon}; |
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 AttachIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const AttachIcon: React.FC<AttachIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[AttachIcon]: 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="M11.503 6.385a2.9 2.9 0 014.242 3.955l-.135.14-4.814 4.817A1.7 1.7 0 018.29 13.01l.108-.123 4.808-4.81a.5.5 0 01.765.638l-.057.069-4.803 4.804a.7.7 0 00.899 1.065l.085-.07 4.814-4.816a1.9 1.9 0 00-2.577-2.79l-.116.11-4.808 4.807a3.1 3.1 0 004.241 4.519l.143-.135 5.854-5.855a.5.5 0 01.765.638l-.057.07-5.855 5.854a4.1 4.1 0 01-5.953-5.634l.155-.164 4.802-4.802z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
AttachIcon.displayName = 'AttachIcon'; | ||
export {AttachIcon}; |
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 ChevronLeftIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const ChevronLeftIcon: React.FC<ChevronLeftIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[ChevronLeftIcon]: 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="M13.834 17.128a.5.5 0 01-.596.798l-.072-.054-5-4.5A.5.5 0 018.1 12.7l.066-.072 5-4.5a.5.5 0 01.73.678l-.062.066L9.248 13l4.586 4.128z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
ChevronLeftIcon.displayName = 'ChevronLeftIcon'; | ||
export {ChevronLeftIcon}; |
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 ChevronRightIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const ChevronRightIcon: React.FC<ChevronRightIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[ChevronRightIcon]: 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="M8.166 8.872a.5.5 0 01.596-.798l.072.054 5 4.5a.5.5 0 01.066.672l-.066.072-5 4.5a.5.5 0 01-.73-.678l.062-.066L12.752 13 8.166 8.872z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
ChevronRightIcon.displayName = 'ChevronRightIcon'; | ||
export {ChevronRightIcon}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
2e5ecd3
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: