-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from vrk-kpa/feature/add-italics-bold-quotes-i…
…cons [Feature] Add italics, bold, and quotes icons
- Loading branch information
Showing
14 changed files
with
190 additions
and
1 deletion.
There are no files selected for viewing
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.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
import React from 'react'; | ||
import { default as styled } from 'styled-components'; | ||
import classnames from 'classnames'; | ||
import { IconBold as Bold } from '../../svgrComponents/baseIcons/'; | ||
import { baseIconStyles } from '../utils/styles'; | ||
import { BaseIconProps } from './iconInterface'; | ||
import { baseClassName, cursorPointerClassName } from '../utils/classes'; | ||
import { ariaFocusableNoLabel, ariaLabelOrHidden } from '../utils/aria'; | ||
|
||
const StyledIconBold = styled((props: BaseIconProps) => { | ||
const { className, mousePointer, ariaLabel, color, fill, baseColor, highlightColor, ...passProps } = | ||
props; | ||
return ( | ||
<Bold | ||
className={classnames(baseClassName, className, { | ||
[cursorPointerClassName]: !!mousePointer | ||
})} | ||
{...passProps} | ||
{...ariaLabelOrHidden(ariaLabel)} | ||
{...ariaFocusableNoLabel(ariaLabel)} | ||
/> | ||
); | ||
})` | ||
${baseIconStyles} | ||
`; | ||
|
||
const IconBold = (props: BaseIconProps) => { | ||
return <StyledIconBold {...props}/> | ||
} | ||
|
||
IconBold.displayName = 'Icon'; | ||
export { IconBold }; |
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,33 @@ | ||
|
||
import React from 'react'; | ||
import { default as styled } from 'styled-components'; | ||
import classnames from 'classnames'; | ||
import { IconItalics as Italics } from '../../svgrComponents/baseIcons/'; | ||
import { baseIconStyles } from '../utils/styles'; | ||
import { BaseIconProps } from './iconInterface'; | ||
import { baseClassName, cursorPointerClassName } from '../utils/classes'; | ||
import { ariaFocusableNoLabel, ariaLabelOrHidden } from '../utils/aria'; | ||
|
||
const StyledIconItalics = styled((props: BaseIconProps) => { | ||
const { className, mousePointer, ariaLabel, color, fill, baseColor, highlightColor, ...passProps } = | ||
props; | ||
return ( | ||
<Italics | ||
className={classnames(baseClassName, className, { | ||
[cursorPointerClassName]: !!mousePointer | ||
})} | ||
{...passProps} | ||
{...ariaLabelOrHidden(ariaLabel)} | ||
{...ariaFocusableNoLabel(ariaLabel)} | ||
/> | ||
); | ||
})` | ||
${baseIconStyles} | ||
`; | ||
|
||
const IconItalics = (props: BaseIconProps) => { | ||
return <StyledIconItalics {...props}/> | ||
} | ||
|
||
IconItalics.displayName = 'Icon'; | ||
export { IconItalics }; |
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,33 @@ | ||
|
||
import React from 'react'; | ||
import { default as styled } from 'styled-components'; | ||
import classnames from 'classnames'; | ||
import { IconQuotes as Quotes } from '../../svgrComponents/baseIcons/'; | ||
import { baseIconStyles } from '../utils/styles'; | ||
import { BaseIconProps } from './iconInterface'; | ||
import { baseClassName, cursorPointerClassName } from '../utils/classes'; | ||
import { ariaFocusableNoLabel, ariaLabelOrHidden } from '../utils/aria'; | ||
|
||
const StyledIconQuotes = styled((props: BaseIconProps) => { | ||
const { className, mousePointer, ariaLabel, color, fill, baseColor, highlightColor, ...passProps } = | ||
props; | ||
return ( | ||
<Quotes | ||
className={classnames(baseClassName, className, { | ||
[cursorPointerClassName]: !!mousePointer | ||
})} | ||
{...passProps} | ||
{...ariaLabelOrHidden(ariaLabel)} | ||
{...ariaFocusableNoLabel(ariaLabel)} | ||
/> | ||
); | ||
})` | ||
${baseIconStyles} | ||
`; | ||
|
||
const IconQuotes = (props: BaseIconProps) => { | ||
return <StyledIconQuotes {...props}/> | ||
} | ||
|
||
IconQuotes.displayName = 'Icon'; | ||
export { IconQuotes }; |
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from 'react'; | ||
import { SVGProps } from 'react'; | ||
const SvgIconBold = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
width="1em" | ||
height="1em" | ||
viewBox="0 0 24 24" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<path | ||
d="M13.066 22H6V12h6.876c.052.009.1.031.155.031 3.262 0 4.969 2.5 4.969 4.969 0 2.408-1.544 5-4.934 5M17 6c0 2.28-1.72 4-4 4H6V2h7.066C15.345 2 17 3.682 17 6m-.504 4.9C18.019 9.822 19 8.048 19 6c0-3.42-2.551-6-5.934-6H5a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h8.066C17.084 24 20 21.056 20 17c0-2.693-1.38-4.934-3.504-6.1" | ||
fill="#222" | ||
fillRule="evenodd" | ||
className="fi-icon-base-fill" | ||
/> | ||
</svg> | ||
); | ||
export default SvgIconBold; |
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,19 @@ | ||
import * as React from 'react'; | ||
import { SVGProps } from 'react'; | ||
const SvgIconItalics = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
width="1em" | ||
height="1em" | ||
viewBox="0 0 24 24" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<path | ||
d="M18 0h-6a1 1 0 0 0 0 2h1.691L8.236 22H6a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2h-1.691l5.455-20H18a1 1 0 0 0 0-2" | ||
fill="#222" | ||
fillRule="evenodd" | ||
className="fi-icon-base-fill" | ||
/> | ||
</svg> | ||
); | ||
export default SvgIconItalics; |
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,16 @@ | ||
import * as React from 'react'; | ||
import { SVGProps } from 'react'; | ||
const SvgIconQuotes = (props: SVGProps<SVGSVGElement>) => ( | ||
<svg | ||
width="1em" | ||
height="1em" | ||
viewBox="0 0 24 24" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<g fill="#222" fillRule="evenodd" className="fi-icon-base-fill"> | ||
<path d="M16 13h-3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1.912c-.345 1.839-1.629 1.991-1.924 2A1 1 0 0 0 13 23c1.384 0 4-1.045 4-5v-4a1 1 0 0 0-1-1M23 13h-3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1.912c-.345 1.839-1.629 1.991-1.924 2A1 1 0 0 0 20 23c1.384 0 4-1.045 4-5v-4a1 1 0 0 0-1-1M12 6a1 1 0 0 0-1-1H9.088c.345-1.84 1.629-1.991 1.924-2A1 1 0 0 0 11 1C9.616 1 7 2.045 7 6v4a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V6ZM4.012 3A1 1 0 0 0 4 1C2.617 1 0 2.045 0 6v4a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H2.088c.345-1.84 1.63-1.991 1.924-2" /> | ||
</g> | ||
</svg> | ||
); | ||
export default SvgIconQuotes; |
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