Skip to content

Commit 0884fe2

Browse files
authored
Merge pull request #618 from atls/fix/icons-generator
fix(icons): generator template
2 parents a220b42 + 78c04b6 commit 0884fe2

File tree

15 files changed

+44
-44
lines changed

15 files changed

+44
-44
lines changed

.yarnrc.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
compressionLevel: mixed
22

3-
defaultSemverRangePrefix: ""
3+
defaultSemverRangePrefix: ''
44

55
enableGlobalCache: true
66

77
globalFolder: ../.yarn/berry
88

9-
npmRegistryServer: "https://registry.npmjs.org"
9+
npmRegistryServer: 'https://registry.npmjs.org'
1010

1111
npmScopes:
1212
atls:
13-
npmRegistryServer: "https://registry.npmjs.org"
13+
npmRegistryServer: 'https://registry.npmjs.org'
1414

1515
packageExtensions:
16-
"@emotion/utils@*":
16+
'@emotion/utils@*':
1717
dependencies:
18-
"@emotion/sheet": "*"
19-
"@storybook/addon-webpack5-compiler-swc@*":
18+
'@emotion/sheet': '*'
19+
'@storybook/addon-webpack5-compiler-swc@*':
2020
dependencies:
21-
semver: "*"
22-
"@storybook/builder-webpack5@*":
21+
semver: '*'
22+
'@storybook/builder-webpack5@*':
2323
dependencies:
2424
file-system-cache: 2.3.0
25-
"@storybook/node-logger@*":
25+
'@storybook/node-logger@*':
2626
dependencies:
27-
storybook: "*"
28-
"@storybook/preset-react-webpack@*":
27+
storybook: '*'
28+
'@storybook/preset-react-webpack@*':
2929
dependencies:
3030
file-system-cache: 2.3.0
31-
"@storybook/react@*":
31+
'@storybook/react@*':
3232
dependencies:
33-
"@storybook/test": "*"
34-
"@storybook/types@*":
33+
'@storybook/test': '*'
34+
'@storybook/types@*':
3535
dependencies:
36-
"@types/react": "*"
37-
"@svgr/babel-plugin-transform-svg-component@*":
36+
'@types/react': '*'
37+
'@svgr/babel-plugin-transform-svg-component@*':
3838
dependencies:
39-
"@babel/template": "*"
40-
"@types/babel__template": "*"
41-
"@svgr/core@*":
39+
'@babel/template': '*'
40+
'@types/babel__template': '*'
41+
'@svgr/core@*':
4242
dependencies:
43-
"@svgr/plugin-jsx": "*"
44-
"@svgr/plugin-prettier": "*"
45-
"@svgr/plugin-svgo": "*"
46-
"@types/babel__core": "*"
47-
prettier: "*"
48-
svgo: "*"
49-
"@types/react@*":
43+
'@svgr/plugin-jsx': '*'
44+
'@svgr/plugin-prettier': '*'
45+
'@svgr/plugin-svgo': '*'
46+
'@types/babel__core': '*'
47+
prettier: '*'
48+
svgo: '*'
49+
'@types/react@*':
5050
dependencies:
5151
scheduler: 0.20.2
5252
framer-motion@*:
5353
dependencies:
54-
"@emotion/is-prop-valid": "*"
54+
'@emotion/is-prop-valid': '*'
5555
graphql-request@*:
5656
dependencies:
57-
type-fest: "*"
57+
type-fest: '*'
5858
react-datepicker@*:
5959
dependencies:
60-
"@types/react-onclickoutside": "*"
60+
'@types/react-onclickoutside': '*'
6161
swiper@*:
6262
dependencies:
63-
"@types/react": "*"
63+
'@types/react': '*'
6464

6565
pnpEnableEsmLoader: true
6666

generators/icons/src/svgr-utils/compile-icons.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const compileIcons = async (
4848
replaceAttrValues: { ...replacements[icon.name] },
4949
},
5050
{ componentName: icon.name.replace('50+', 'FiftyPlus') }
51-
),
51+
).then((value) => value.replace('...props', '...otherProps')),
5252
withReplacement: Boolean(replacements[icon.name]),
5353
}))
5454
)

ui-admin/icons/src/icons/bag.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const BagIcon = (props: IconProps): ReactNode => {
2222
viewBox='0 0 25 28'
2323
className={clsx(className, String(otherProps.className || ''))}
2424
style={iconStyle}
25-
{...props}
25+
{...otherProps}
2626
>
2727
<path
2828
fill='#fff'

ui-admin/icons/src/icons/chart.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const ChartIcon = (props: IconProps): ReactNode => {
2222
viewBox='0 0 29 28'
2323
className={clsx(className, String(otherProps.className || ''))}
2424
style={iconStyle}
25-
{...props}
25+
{...otherProps}
2626
>
2727
<path
2828
fill='#23B899'

ui-admin/icons/src/icons/check.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const CheckIcon = (props: IconProps): ReactNode => {
2121
width='1em'
2222
height='1em'
2323
style={iconStyle}
24-
{...props}
24+
{...otherProps}
2525
>
2626
<path d='M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8' />
2727
</svg>

ui-admin/icons/src/icons/close.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const CloseIcon = (props: IconProps): ReactNode => {
2222
className={clsx(className, String(otherProps.className || ''))}
2323
viewBox='0 0 24 24'
2424
style={iconStyle}
25-
{...props}
25+
{...otherProps}
2626
>
2727
<path fill='none' d='M0 0h24v24H0z' />
2828
<path d='m12 10.586 4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z' />

ui-admin/icons/src/icons/drag.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const DragIcon = (props: IconProps): ReactNode => {
2222
viewBox='0 0 16 12'
2323
className={clsx(className, String(otherProps.className || ''))}
2424
style={iconStyle}
25-
{...props}
25+
{...otherProps}
2626
>
2727
<path
2828
fill='currentColor'

ui-admin/icons/src/icons/loading.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const LoadingIcon = (props: IconProps): ReactNode => {
2121
height='1em'
2222
className={clsx(className, String(otherProps.className || ''))}
2323
style={iconStyle}
24-
{...props}
24+
{...otherProps}
2525
>
2626
<path d='M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.5 440.5 0 0 0-94.3-139.9 437.7 437.7 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150s83.9 101.8 109.7 162.7c26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36' />
2727
</svg>

ui-admin/icons/src/icons/logo.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const LogoIcon = (props: IconProps): ReactNode => {
2222
viewBox='0 0 48 54'
2323
className={clsx(className, String(otherProps.className || ''))}
2424
style={iconStyle}
25-
{...props}
25+
{...otherProps}
2626
>
2727
<path
2828
fill='#387DFF'

ui-admin/icons/src/icons/pencil.icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const PencilIcon = (props: IconProps): ReactNode => {
2222
className={clsx(className, String(otherProps.className || ''))}
2323
viewBox='0 0 24 24'
2424
style={iconStyle}
25-
{...props}
25+
{...otherProps}
2626
>
2727
<path
2828
fill='none'

0 commit comments

Comments
 (0)