@liner-fe/icon 0.0.11 → 0.0.13
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/CHANGELOG.md +14 -0
- package/index.tsx +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @liner-fe/icon
|
|
2
2
|
|
|
3
|
+
## 0.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b264535: [refactor] Icon 컴포넌트 forwardRef 지원하도록 수정
|
|
8
|
+
|
|
9
|
+
## 0.0.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [1b3d4ea]
|
|
14
|
+
- Updated dependencies [c2db8f0]
|
|
15
|
+
- @liner-fe/prism@2.6.4
|
|
16
|
+
|
|
3
17
|
## 0.0.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/index.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
2
|
import { BasicColorType } from '@liner-fe/prism';
|
|
3
3
|
import { ArrowUpward } from './assets/arrow-upward';
|
|
4
4
|
import { ArrowDownward } from './assets/arrow-downward';
|
|
@@ -378,12 +378,12 @@ const iconSizeMap = {
|
|
|
378
378
|
xl: 40,
|
|
379
379
|
} as const;
|
|
380
380
|
|
|
381
|
-
export const Icon =
|
|
381
|
+
export const Icon = forwardRef<SVGSVGElement, {
|
|
382
382
|
fill?: boolean;
|
|
383
383
|
thick?: boolean;
|
|
384
384
|
name: keyof typeof IconMap;size?: keyof typeof iconSizeMap;
|
|
385
385
|
color?: BasicColorType;
|
|
386
|
-
}) => {
|
|
386
|
+
}>(({name, size = "m", ...props}, ref) => {
|
|
387
387
|
const IconComponent = IconMap[name];
|
|
388
|
-
return <IconComponent {...props} size={iconSizeMap[size]} />;
|
|
389
|
-
};
|
|
388
|
+
return <IconComponent {...props} ref={ref} size={iconSizeMap[size]} />;
|
|
389
|
+
});
|