@croquiscom/pds 8.17.0 → 8.18.0
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
CHANGED
|
@@ -9,11 +9,21 @@ export interface BadgeProps {
|
|
|
9
9
|
size?: BadgeSize;
|
|
10
10
|
/** @default black */
|
|
11
11
|
color?: BadgeColor;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated endIcon이 있을 경우 무시됩니다. endIcon을 사용해주세요.
|
|
14
|
+
*/
|
|
15
|
+
icon?: ReactElement<IconProps>;
|
|
16
|
+
/**
|
|
17
|
+
* 라벨 좌측 영역에 렌더링 될 아이콘 요소
|
|
18
|
+
* - Icon 컴포넌트 color props가 있더라도 BadgeColor에 따라 currentColor가 지정됩니다.
|
|
19
|
+
* - Icon 컴포넌트 size props가 없으면 기본으로 8이 지정됩니다.
|
|
20
|
+
*/
|
|
21
|
+
startIcon?: ReactElement<IconProps>;
|
|
12
22
|
/**
|
|
13
23
|
* 라벨 우측 영역에 렌더링 될 아이콘 요소
|
|
14
24
|
* - Icon 컴포넌트 color props가 있더라도 BadgeColor에 따라 currentColor가 지정됩니다.
|
|
15
|
-
* - Icon 컴포넌트 size props가
|
|
25
|
+
* - Icon 컴포넌트 size props가 없으면 기본으로 8이 지정됩니다.
|
|
16
26
|
*/
|
|
17
|
-
|
|
27
|
+
endIcon?: ReactElement<IconProps>;
|
|
18
28
|
}
|
|
19
|
-
export declare const Badge: ({ className, kind, size, color, icon, children, }: PropsWithChildren<BadgeProps>) => React.JSX.Element;
|
|
29
|
+
export declare const Badge: ({ className, kind, size, color, icon, startIcon, endIcon, children, }: PropsWithChildren<BadgeProps>) => React.JSX.Element;
|