Skip to content

Commit

Permalink
fix(package.json): fix generate-icon-components script
Browse files Browse the repository at this point in the history
  • Loading branch information
benny0642 committed May 6, 2022
1 parent 8244088 commit 7b95c83
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Expand Up @@ -27,7 +27,7 @@
"build:dist": "webpack --config ./configs/webpack.dist.js --color",
"build:lib": "BABEL_ENV=lib babel src --root-mode=upward --out-dir lib",
"build:es": "BABEL_ENV=es babel src --root-mode=upward --out-dir es",
"generate-icon-components": "npx @svgr/cli --config-file configs/svgr/svgr.config.js --icon -d src/icons/components src/icons/svg",
"generate-icon-components": "npx @svgr/cli@5.5.0 --config-file configs/svgr/svgr.config.js --icon -d src/icons/components src/icons/svg",
"clean": "rm -rf ./dist ./lib ./es ./deploy"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/icons/components/AddLocation.js
Expand Up @@ -6,12 +6,12 @@ export default function SvgAddLocation(props) {
width="1em"
height="1em"
viewBox="0 0 24 24"
fill="currentColor"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M18.4737 2.5V4.95455H21V6.59091H18.4737V9.04545H16.7895V6.59091H14.2632V4.95455H16.7895V2.5H18.4737ZM11.7368 12.3182C12.6632 12.3182 13.4211 11.5818 13.4211 10.6818C13.4211 9.78182 12.6632 9.04545 11.7368 9.04545C10.8105 9.04545 10.0526 9.78182 10.0526 10.6818C10.0526 11.5818 10.8105 12.3182 11.7368 12.3182ZM13.4211 4.34091V7.40909H15.9474V9.86364H18.4063C18.4484 10.1827 18.4737 10.51 18.4737 10.8455C18.4737 13.5618 16.2253 16.7773 11.7368 20.5C7.24842 16.7773 5 13.5618 5 10.8455C5 6.77091 8.2 4.13636 11.7368 4.13636C12.3095 4.13636 12.8737 4.20182 13.4211 4.34091Z"
d="M18.474 2.5v2.455H21V6.59h-2.526v2.454H16.79V6.591h-2.527V4.955h2.527V2.5h1.684zm-6.737 9.818c.926 0 1.684-.736 1.684-1.636 0-.9-.758-1.637-1.684-1.637-.927 0-1.684.737-1.684 1.637s.757 1.636 1.684 1.636zm1.684-7.977v3.068h2.526v2.455h2.46c.041.319.067.646.067.981 0 2.717-2.249 5.932-6.737 9.655C7.248 16.777 5 13.562 5 10.845c0-4.074 3.2-6.709 6.737-6.709.572 0 1.137.066 1.684.205z"
fill="currentColor"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/icons/components/CopyLink.js
Expand Up @@ -16,7 +16,7 @@ export default function SvgCopyLink(props) {
</g>
<defs>
<clipPath id="copy-link_svg__clip0">
<path fill="transparent" transform="translate(8 8)" d="M0 0h16v16H0z" />
<path fill="#fff" transform="translate(8 8)" d="M0 0h16v16H0z" />
</clipPath>
</defs>
</svg>
Expand Down
5 changes: 3 additions & 2 deletions packages/core/src/icons/components/Location.js
Expand Up @@ -3,14 +3,15 @@ import React from 'react';
export default function SvgLocation(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M21.657 20.45A7.819 7.819 0 0 0 24 14.879c0-2.09-.843-4.093-2.343-5.571A8.006 8.006 0 0 0 19.062 7.6a8.107 8.107 0 0 0-6.124 0 8.006 8.006 0 0 0-2.595 1.708A7.819 7.819 0 0 0 8 14.878c0 2.09.843 4.094 2.343 5.572l1.738 1.686 2.335 2.233.152.133a2.306 2.306 0 0 0 3.017-.133l2.783-2.666 1.289-1.253ZM16 18.25c-.91 0-1.781-.355-2.424-.988a3.348 3.348 0 0 1-1.004-2.387c0-.895.36-1.753 1.004-2.386A3.456 3.456 0 0 1 16 11.5c.91 0 1.781.356 2.424.989a3.348 3.348 0 0 1 1.004 2.386c0 .895-.36 1.754-1.004 2.387A3.456 3.456 0 0 1 16 18.25Z"
d="M21.657 20.45A7.819 7.819 0 0024 14.879c0-2.09-.843-4.093-2.343-5.571A8.006 8.006 0 0019.062 7.6a8.107 8.107 0 00-6.124 0 8.006 8.006 0 00-2.595 1.708A7.819 7.819 0 008 14.878c0 2.09.843 4.094 2.343 5.572l1.738 1.686 2.335 2.233.152.133a2.306 2.306 0 003.017-.133l2.783-2.666 1.289-1.253zM16 18.25c-.91 0-1.781-.355-2.424-.988a3.348 3.348 0 01-1.004-2.387c0-.895.36-1.753 1.004-2.386A3.456 3.456 0 0116 11.5c.91 0 1.781.356 2.424.989a3.348 3.348 0 011.004 2.386c0 .895-.36 1.754-1.004 2.387A3.456 3.456 0 0116 18.25z"
fill="currentColor"
/>
</svg>
Expand Down
10 changes: 8 additions & 2 deletions packages/core/src/icons/components/RadioEmpty.js
@@ -1,8 +1,14 @@
import * as React from 'react';
import React from 'react';

export default function SvgRadioEmpty(props) {
return (
<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" {...props}>
<svg
width="1em"
height="1em"
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<rect
x={7}
y={7}
Expand Down
10 changes: 8 additions & 2 deletions packages/core/src/icons/components/RadioSelected.js
@@ -1,8 +1,14 @@
import * as React from 'react';
import React from 'react';

export default function SvgRadioSelected(props) {
return (
<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" {...props}>
<svg
width="1em"
height="1em"
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<rect
x={7}
y={7}
Expand Down

0 comments on commit 7b95c83

Please sign in to comment.