@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
@@ -1,5 +1,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c005db8: Badge 아이콘 크기 제한 해제 및 startIcon prop 추가
8
+
3
9
  ## 8.17.0
4
10
 
5
11
  ### Minor Changes
@@ -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가 있더라도 Icon 사이즈는 8 고정됩니다.
25
+ * - Icon 컴포넌트 size props가 없으면 기본으로 8 지정됩니다.
16
26
  */
17
- icon?: ReactElement<IconProps>;
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;
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof Badge>;
6
6
  export declare const Outline: Story;
7
7
  export declare const Fill: Story;
8
8
  export declare const Icon: Story;
9
+ export declare const DeprecatedIconProp: Story;