@croquiscom/pds 8.16.3 → 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,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c005db8: Badge 아이콘 크기 제한 해제 및 startIcon prop 추가
8
+
9
+ ## 8.17.0
10
+
11
+ ### Minor Changes
12
+
13
+ - c13d7fd: Arrow 아이콘 추가
14
+
3
15
  ## 8.16.3
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path d="M4.46967 8.53033L12 16.0607L19.5303 8.53033L18.4697 7.46967L12 13.9393L5.53033 7.46967L4.46967 8.53033Z" fill="#363644"/>
3
+ <path d="M4 20.25H20V18.75H4V20.25Z" fill="#363644"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path d="M4 5.25H20V3.75H4V5.25Z" fill="#363644"/>
3
+ <path d="M12 7.93934L4.46967 15.4697L5.53033 16.5303L12 10.0607L18.4697 16.5303L19.5303 15.4697L12 7.93934Z" fill="#363644"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path d="M7 2.93933L12.0303 7.96966L10.9697 9.03032L7.75 5.81065L7.75 21H6.25L6.25 5.81065L3.03033 9.03032L1.96967 7.96966L7 2.93933Z" fill="#363644"/>
3
+ <path d="M17.75 18.1893L20.9697 14.9697L22.0303 16.0303L17 21.0607L11.9697 16.0303L13.0303 14.9697L16.25 18.1893L16.25 2.99999L17.75 2.99999L17.75 18.1893Z" fill="#363644"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path d="M7.00001 2.58582L12.2071 7.79292L10.7929 9.20714L8.00001 6.41424L8.00001 21H6.00001L6.00001 6.41424L3.20712 9.20714L1.79291 7.79292L7.00001 2.58582Z" fill="#363644"/>
3
+ <path d="M18 17.5858L20.7929 14.7929L22.2071 16.2071L17 21.4142L11.7929 16.2071L13.2071 14.7929L16 17.5858L16 3.00003L18 3.00003V17.5858Z" fill="#363644"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path d="M14.2126 14.6173C14.0903 14.8292 13.8723 14.968 13.6286 14.9894C13.3849 15.0108 13.1461 14.9119 12.9887 14.7245L9.91412 11.0625L3.94951 21.3936C3.7424 21.7523 3.28371 21.8752 2.92499 21.6681C2.56627 21.461 2.44337 21.0023 2.65047 20.6436L9.15047 9.38522C9.2728 9.17334 9.49079 9.03444 9.73451 9.01308C9.97824 8.99172 10.2171 9.09059 10.3744 9.27796L13.449 12.94L17.8601 5.29975L14.7903 5.92352C14.3844 6.006 13.9884 5.74381 13.906 5.33789C13.8235 4.93197 14.0857 4.53604 14.4916 4.45356L19.3915 3.45792C19.7974 3.37543 20.1933 3.63763 20.2758 4.04355L21.2714 8.94342C21.3539 9.34933 21.0917 9.74526 20.6858 9.82774C20.2799 9.91023 19.884 9.64803 19.8015 9.24211L19.1544 6.05784L14.2126 14.6173Z" fill="#4769F7"/>
3
+ </svg>
@@ -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;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgArrowBottom: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgArrowBottom;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgArrowTop: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgArrowTop;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgChange: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgChange;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgChangeBold: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgChangeBold;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgColoredTrendIncreasingLine: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgColoredTrendIncreasingLine;
@@ -4,6 +4,7 @@ export interface IconProps extends React.SVGProps<SVGSVGElement> {
4
4
  color?: string;
5
5
  secondaryColor?: string;
6
6
  }
7
+ export { default as IconArrowBottom } from './ArrowBottom';
7
8
  export { default as IconArrowChevronDoubleLeftBold } from './ArrowChevronDoubleLeftBold';
8
9
  export { default as IconArrowChevronDoubleRightBold } from './ArrowChevronDoubleRightBold';
9
10
  export { default as IconArrowChevronDown } from './ArrowChevronDown';
@@ -20,6 +21,7 @@ export { default as IconArrowDirectionUp } from './ArrowDirectionUp';
20
21
  export { default as IconArrowIncrease } from './ArrowIncrease';
21
22
  export { default as IconArrowIndent } from './ArrowIndent';
22
23
  export { default as IconArrowStick } from './ArrowStick';
24
+ export { default as IconArrowTop } from './ArrowTop';
23
25
  export { default as IconArrowTriangleDown } from './ArrowTriangleDown';
24
26
  export { default as IconArrowTriangleUp } from './ArrowTriangleUp';
25
27
  export { default as IconBarChart } from './BarChart';
@@ -61,6 +63,8 @@ export { default as IconCategoryLife } from './CategoryLife';
61
63
  export { default as IconCategoryShop } from './CategoryShop';
62
64
  export { default as IconCategoryZDelivery } from './CategoryZDelivery';
63
65
  export { default as IconCellphone } from './Cellphone';
66
+ export { default as IconChange } from './Change';
67
+ export { default as IconChangeBold } from './ChangeBold';
64
68
  export { default as IconCheck } from './Check';
65
69
  export { default as IconCheckBold } from './CheckBold';
66
70
  export { default as IconChecklist } from './Checklist';
@@ -133,6 +137,7 @@ export { default as IconColoredSiren } from './ColoredSiren';
133
137
  export { default as IconColoredStar } from './ColoredStar';
134
138
  export { default as IconColoredThumbsUp } from './ColoredThumbsUp';
135
139
  export { default as IconColoredTip } from './ColoredTip';
140
+ export { default as IconColoredTrendIncreasingLine } from './ColoredTrendIncreasingLine';
136
141
  export { default as IconColoredWarning } from './ColoredWarning';
137
142
  export { default as IconColoredWarningRed } from './ColoredWarningRed';
138
143
  export { default as IconColoredWrite } from './ColoredWrite';