Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop @icons/material dep by vendoring two icons #783

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"popup"
],
"dependencies": {
"@icons/material": "^0.2.4",
"lodash": "^4.17.15",
"lodash-es": "^4.17.15",
"material-colors": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/chrome/ChromeFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as color from '../../helpers/color'
import isUndefined from 'lodash/isUndefined'

import { EditableInput } from '../common'
import UnfoldMoreHorizontalIcon from '@icons/material/UnfoldMoreHorizontalIcon'
import UnfoldMoreHorizontalIcon from './UnfoldMoreHorizontalIcon'

export class ChromeFields extends React.Component {
constructor(props) {
Expand Down
19 changes: 19 additions & 0 deletions src/components/chrome/UnfoldMoreHorizontalIcon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'

const DEFAULT_SIZE = 24

export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, ...style }}
{ ...props }
>
<path d="M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z" />
</svg>
)
19 changes: 19 additions & 0 deletions src/components/swatches/CheckIcon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'

const DEFAULT_SIZE = 24

export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, ...style }}
{ ...props }
>
<path d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z" />
</svg>
)
2 changes: 1 addition & 1 deletion src/components/swatches/SwatchesColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import reactCSS from 'reactcss'
import * as colorUtils from '../../helpers/color'

import { Swatch } from '../common'
import CheckIcon from '@icons/material/CheckIcon'
import CheckIcon from './CheckIcon'

export const SwatchesColor = ({ color, onClick = () => {}, onSwatchHover, first,
last, active }) => {
Expand Down