@croquiscom/pds 0.42.4 → 0.43.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,22 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.43.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 94ffd83: Auto Color State 유틸 스타일을 추가합니다.
8
+
9
+ ## BreakPoint
10
+
11
+ - Button 컴포넌트 Negative Kind 추가되었습니다.
12
+ - Button 컴포넌트 default/hover/pressed/disabled 스타일 적용 방식이 getAutoColorCode으로 변경되었습니다.
13
+
14
+ ## 0.42.5
15
+
16
+ ### Patch Changes
17
+
18
+ - 85e34e4: feat: PDS-140, NormalBanner icon 커스텀 가능하도록 수정
19
+
3
20
  ## 0.42.4
4
21
 
5
22
  ### Patch Changes
@@ -1,4 +1,5 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
+ import { IconProps } from '../icons/generated';
2
3
  export type NormalBannerKind = 'neutral' | 'info' | 'error' | 'success';
3
4
  export interface NormalBannerProps {
4
5
  className?: string;
@@ -6,7 +7,8 @@ export interface NormalBannerProps {
6
7
  * @default info
7
8
  */
8
9
  kind?: NormalBannerKind;
10
+ iconComponent?: React.ComponentType<IconProps>;
9
11
  title: string;
10
12
  message?: ReactNode;
11
13
  }
12
- export declare const NormalBanner: ({ className, kind, title, message }: NormalBannerProps) => JSX.Element;
14
+ export declare const NormalBanner: ({ className, kind, iconComponent, title, message }: NormalBannerProps) => JSX.Element;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<({ className, kind, title, message }: import("./NormalBanner").NormalBannerProps) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ className, kind, iconComponent, title, message }: import("./NormalBanner").NormalBannerProps) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Base: any;
6
6
  export declare const Kind: () => JSX.Element;
7
+ export declare const CustomIcon: () => JSX.Element;
@@ -5,6 +5,7 @@ export default _default;
5
5
  export declare const Primary: any;
6
6
  export declare const Secondary: any;
7
7
  export declare const Black: any;
8
+ export declare const Negative: any;
8
9
  export declare const StartIcon: any;
9
10
  export declare const EndIcon: any;
10
11
  export declare const Loading: any;
@@ -1,6 +1,7 @@
1
1
  import { ButtonSize, ButtonKind, ButtonShape, TextButtonKind, TextButtonSize, IconButtonKind } from './types';
2
2
  export declare const button_base_css: import("@emotion/utils").SerializedStyles;
3
- export declare const getButtonKind: (kind?: ButtonKind | IconButtonKind) => import("@emotion/utils").SerializedStyles;
3
+ export declare const getButtonKind: (kind?: ButtonKind) => import("@emotion/utils").SerializedStyles;
4
+ export declare const getIconButtonKind: (kind?: IconButtonKind) => import("@emotion/utils").SerializedStyles;
4
5
  export declare const button_size_css: Record<ButtonSize, string>;
5
6
  export declare const button_icon_size_css: Record<ButtonSize, number>;
6
7
  export declare const text_button_icon_size_css: Record<TextButtonSize, number>;
@@ -1,4 +1,4 @@
1
- export type ButtonKind = 'primary' | 'secondary' | 'black';
1
+ export type ButtonKind = 'primary' | 'secondary' | 'black' | 'negative';
2
2
  export type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
3
  export type ButtonShape = 'rectangle' | 'circle';
4
4
  export type IconButtonKind = 'outlined_secondary' | 'outlined_primary' | 'outlined_negative';