@liner-fe/internal-icon 1.0.4 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ultra.cache.json +1 -1
- package/CHANGELOG.md +43 -0
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/generate-tsx-components.ts +3 -3
package/.ultra.cache.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":{"lib":"
|
|
1
|
+
{"files":{"lib":"1765453887319.1123","node_modules":"1765453872234.0757","CHANGELOG.md":"5e97bf6ba69510338122051a60cc56d413f0d27f","README.md":"e0a89d4fcf5bddf1f816bfb20a928ddb301b8d2c","figma.json":"ce0cb3bc6c9d285b8a56ac781701c39ff93eb098","package.json":"baa0e57ba1c2dbf4c5936701ba8af177cdf326ee","src/generate-svg-files.ts":"18687c8c5c7766b988257f5bef3d296b86fefaa8","src/generate-tsx-components.ts":"ede6a08c8379a7e373ac9741c71a37dd9bd27055","src/index.ts":"9e03c9c45c92fc534262982bce233b91892c05f1","tsconfig.json":"298030567ca332304807fcdbb95d1218c9c0814f","tsup.config.ts":"4dc8bfd36076fff8fa1d84a48a072d40e6581810"},"deps":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @internal/icon
|
|
2
2
|
|
|
3
|
+
## 1.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c462c04: icon 수정
|
|
8
|
+
|
|
9
|
+
## 1.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1beba2d: icon update
|
|
14
|
+
|
|
15
|
+
## 1.0.9
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- cc51c72: icon update
|
|
20
|
+
|
|
21
|
+
## 1.0.8
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 9a97e0e: fix: icon style props 전달되지 않는 이슈 수정
|
|
26
|
+
|
|
27
|
+
## 1.0.7
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- c7fc6c5: icon version update
|
|
32
|
+
|
|
33
|
+
## 1.0.6
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- ba49191: icon version update
|
|
38
|
+
|
|
39
|
+
## 1.0.5
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- 97b49ab: fix: 아이콘 min-width, min-height 적용 롤백
|
|
44
|
+
- 186acfd: icon 패키지 추가
|
|
45
|
+
|
|
3
46
|
## 1.0.4
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -58,7 +58,7 @@ var generateTsxComponents = /* @__PURE__ */ __name(() => {
|
|
|
58
58
|
function normalizeSvgAttributes(svgString) {
|
|
59
59
|
return svgString.replace(/fill-rule/g, "fillRule").replace(/clip-rule/g, "clipRule").replace(/width="\d+"/, "width={iconSize}").replace(/height="\d+"/, "height={iconSize}").replace(
|
|
60
60
|
/xmlns="http:\/\/www.w3.org\/2000\/svg"/,
|
|
61
|
-
"ref={ref} className={className}
|
|
61
|
+
"ref={ref} className={className} {...props}"
|
|
62
62
|
).replace(/style="[^"]*"/g, "").replace(/xmlns="http:\/\/www.w3.org\/1999\/xhtml"/g, "");
|
|
63
63
|
}
|
|
64
64
|
__name(normalizeSvgAttributes, "normalizeSvgAttributes");
|
|
@@ -106,7 +106,7 @@ import { iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
|
106
106
|
import { ColorIconProps } from '../../index';
|
|
107
107
|
|
|
108
108
|
export const Icon${componentName} = forwardRef<SVGSVGElement, ColorIconProps>(
|
|
109
|
-
({ size = 'm', className,
|
|
109
|
+
({ size = 'm', className, ...props }, ref) => {
|
|
110
110
|
const iconSize = iconSizeMap[size];
|
|
111
111
|
return ${defaultSvg};
|
|
112
112
|
}
|
|
@@ -120,7 +120,7 @@ import { iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
|
120
120
|
import { IconProps } from '../../index';
|
|
121
121
|
|
|
122
122
|
export const Icon${componentName} = forwardRef<SVGSVGElement, IconProps>(
|
|
123
|
-
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary',
|
|
123
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
124
124
|
const iconSize = iconSizeMap[size];
|
|
125
125
|
if (fill && thick) {
|
|
126
126
|
return ${variantSvgs["fill-thick"] || defaultSvg};
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export const generateTsxComponents = () => {
|
|
|
26
26
|
.replace(/height="\d+"/, 'height={iconSize}')
|
|
27
27
|
.replace(
|
|
28
28
|
/xmlns="http:\/\/www.w3.org\/2000\/svg"/,
|
|
29
|
-
'ref={ref} className={className}
|
|
29
|
+
'ref={ref} className={className} {...props}',
|
|
30
30
|
)
|
|
31
31
|
.replace(/style="[^"]*"/g, '')
|
|
32
32
|
.replace(/xmlns="http:\/\/www.w3.org\/1999\/xhtml"/g, '');
|
|
@@ -93,7 +93,7 @@ import { iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
|
93
93
|
import { ColorIconProps } from '../../index';
|
|
94
94
|
|
|
95
95
|
export const Icon${componentName} = forwardRef<SVGSVGElement, ColorIconProps>(
|
|
96
|
-
({ size = 'm', className,
|
|
96
|
+
({ size = 'm', className, ...props }, ref) => {
|
|
97
97
|
const iconSize = iconSizeMap[size];
|
|
98
98
|
return ${defaultSvg};
|
|
99
99
|
}
|
|
@@ -112,7 +112,7 @@ import { iconSizeMap } from '@liner-fe/design-token-primitive';
|
|
|
112
112
|
import { IconProps } from '../../index';
|
|
113
113
|
|
|
114
114
|
export const Icon${componentName} = forwardRef<SVGSVGElement, IconProps>(
|
|
115
|
-
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary',
|
|
115
|
+
({ fill = false, thick = false, size = 'm', type = 'neutral-label-primary', className, fillType = 'inverse-label-primary', ...props }, ref) => {
|
|
116
116
|
const iconSize = iconSizeMap[size];
|
|
117
117
|
if (fill && thick) {
|
|
118
118
|
return ${variantSvgs['fill-thick'] || defaultSvg};
|