Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
fix: Rename icons
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This renames five icons for consistency.

* `Info` > `InfoRounded`
* `QuestionmarkAlt` > `QuestionMark`
* `Questionmark` > `QuestionMarkRounded`
* `Warning` > `WarningRounded`
* `WarningAlt` > `Warning`
  • Loading branch information
rppld committed Jul 30, 2019
1 parent 3b441c2 commit 0ee985b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
8 changes: 8 additions & 0 deletions src/InfoRounded.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react'
import { Icon } from './Icon'

export const InfoRounded = props => (
<Icon a11yTitle="InfoRounded" {...props}>
<path d="M18 16a2 2 0 1 0-4 0v6a2 2 0 1 0 4 0v-6zm-2-8a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 8zm0 22C8.28 30 2 23.72 2 16S8.28 2 16 2s14 6.28 14 14-6.28 14-14 14z" />
</Icon>
)
4 changes: 2 additions & 2 deletions src/QuestionmarkAlt.js → src/QuestionMark.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { Icon } from './Icon'

export const QuestionmarkAlt = props => (
<Icon a11yTitle="QuestionmarkAlt" {...props}>
export const QuestionMark = props => (
<Icon a11yTitle="QuestionMark" {...props}>
<path d="M8 9.726C8.156 5.266 11.328 2 17.107 2 22.439 2 26 5 26 9.176c0 2.904-1.479 4.935-4.125 6.473-2.55 1.443-3.27 2.43-3.27 4.328v1.101h-4.514l-.02-1.348c-.175-2.81.954-4.518 3.64-6.055 2.412-1.424 3.23-2.45 3.23-4.329 0-2.012-1.635-3.473-4.087-3.473-2.51 0-4.125 1.5-4.281 3.853H8zM16.406 30c-1.576 0-2.84-1.196-2.84-2.696 0-1.5 1.264-2.676 2.84-2.676 1.577 0 2.822 1.177 2.822 2.676 0 1.5-1.245 2.696-2.822 2.696z" />
</Icon>
)
4 changes: 2 additions & 2 deletions src/Questionmark.js → src/QuestionMarkRounded.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import { Icon } from './Icon'

export const Questionmark = props => (
<Icon a11yTitle="Questionmark" {...props}>
export const QuestionMarkRounded = props => (
<Icon a11yTitle="QuestionMarkRounded" {...props}>
<path d="M26.78 10.826a11.578 11.578 0 0 1 0 10.348C24.49 25.724 20.245 28 16 28c-4.244 0-8.489-2.276-10.78-6.826a11.578 11.578 0 0 1 0-10.348C7.511 6.275 11.756 4 16 4c4.245 0 8.49 2.275 10.78 6.826zM11 12.863h2.54c.087-1.177.984-1.927 2.379-1.927 1.362 0 2.27.731 2.27 1.737 0 .94-.454 1.452-1.794 2.164-1.492.77-2.12 1.623-2.022 3.028l.01.674h2.509v-.55c0-.95.4-1.443 1.816-2.165C20.178 15.056 21 14.04 21 12.588 21 10.5 19.022 9 16.06 9c-3.211 0-4.974 1.633-5.06 3.863zM15.67 23c.876 0 1.568-.598 1.568-1.348 0-.75-.692-1.338-1.568-1.338-.875 0-1.578.588-1.578 1.338 0 .75.703 1.348 1.578 1.348z" />
</Icon>
)
2 changes: 1 addition & 1 deletion src/Warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Icon } from './Icon'

export const Warning = props => (
<Icon a11yTitle="Warning" {...props}>
<path d="M18 16a2 2 0 1 1-4 0v-6a2 2 0 1 1 4 0v6zm-2 8a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 24zm0-22C8.28 2 2 8.28 2 16s6.28 14 14 14 14-6.28 14-14S23.72 2 16 2z" />
<path d="M29.879 27.483a1 1 0 0 1-.88 1.477H3a1 1 0 0 1-.878-1.477l13-24c.35-.645 1.408-.645 1.758 0l13 24zM15.999 26a2 2 0 1 0 .002-3.999A2 2 0 0 0 16 26zm2-8v-5a2 2 0 1 0-4 0v5a2 2 0 1 0 4 0z" />
</Icon>
)
8 changes: 0 additions & 8 deletions src/WarningAlt.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/WarningRounded.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react'
import { Icon } from './Icon'

export const WarningRounded = props => (
<Icon a11yTitle="WarningRounded" {...props}>
<path d="M18 16a2 2 0 1 1-4 0v-6a2 2 0 1 1 4 0v6zm-2 8a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 24zm0-22C8.28 2 2 8.28 2 16s6.28 14 14 14 14-6.28 14-14S23.72 2 16 2z" />
</Icon>
)

0 comments on commit 0ee985b

Please sign in to comment.