@croquiscom/pds 0.22.0 → 0.23.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,30 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ddf084e: Input, Textarea, Dropdown 컴포넌트 스타일 변경
8
+ - 5497c25: Button, IconButton variant 및 스타일 변경
9
+
10
+ ## BreakPoint
11
+
12
+ Button variant가 다음과 같이 변경되었습니다.
13
+
14
+ - variant => kind
15
+ - variant 제거
16
+ - brand
17
+ - negative
18
+ - outlined_primary
19
+ - outlined_black
20
+ - outlined_white
21
+ - outlined_negative
22
+ - dotted
23
+
24
+ IconButton variant가 다음과 같이 변경되었습니다.
25
+
26
+ - variant => kind
27
+
3
28
  ## 0.22.0
4
29
 
5
30
  ### Minor Changes
@@ -1,19 +1,19 @@
1
1
  import React, { ButtonHTMLAttributes, ReactElement } from 'react';
2
- import { ButtonSize, ButtonVariant } from './types';
2
+ import { ButtonSize, ButtonKind } from './types';
3
3
  import { IconProps } from '../icons/generated';
4
4
  export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
5
5
  fill?: boolean;
6
6
  /** @default secondary */
7
- variant?: ButtonVariant;
7
+ kind?: ButtonKind;
8
8
  /** @default medium */
9
9
  size?: ButtonSize;
10
10
  /** @default button */
11
11
  type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
12
12
  /** @default false */
13
13
  loading?: boolean;
14
- /** 좌측 영역에 렌더링 될 아이콘 요소 */
14
+ /** @desc 좌측 영역에 렌더링 될 아이콘 요소 */
15
15
  startIcon?: ReactElement<IconProps>;
16
- /** 우측 영역에 렌더링 될 아이콘 요소 */
16
+ /** @desc 우측 영역에 렌더링 될 아이콘 요소 */
17
17
  endIcon?: ReactElement<IconProps>;
18
18
  }
19
19
  export interface ButtonIconProps {
@@ -2,17 +2,11 @@ import React from 'react';
2
2
  import { ComponentMeta } from '@storybook/react';
3
3
  declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./Button").ButtonProps & React.RefAttributes<HTMLButtonElement>>>;
4
4
  export default _default;
5
- export declare const Brand: any;
6
5
  export declare const Primary: any;
7
6
  export declare const Secondary: any;
8
7
  export declare const Black: any;
9
- export declare const Negative: any;
10
- export declare const OutlinedPrimary: any;
11
- export declare const OutlinedNegative: any;
12
- export declare const OutlinedBlack: any;
13
- export declare const OutlinedWhite: any;
14
- export declare const Dotted: any;
15
8
  export declare const StartIcon: any;
16
9
  export declare const EndIcon: any;
17
10
  export declare const Loading: any;
11
+ export declare const FullWidth: any;
18
12
  export declare const Focus: () => JSX.Element;
@@ -1,11 +1,16 @@
1
1
  import React, { ReactElement } from 'react';
2
- import { ButtonShape, IconButtonVariant } from './types';
2
+ import { ButtonShape, IconButtonKind } from './types';
3
3
  import { ButtonProps } from './Button';
4
4
  import { IconProps } from '../icons/generated';
5
- export interface IconButtonProps extends Omit<ButtonProps, 'size' | 'loading' | 'startIcon' | 'endIcon'> {
6
- /** @default secondary */
7
- variant?: IconButtonVariant;
8
- /** 렌더링 될 아이콘 요소 */
5
+ export interface IconButtonProps extends Omit<ButtonProps, 'size' | 'loading' | 'startIcon' | 'endIcon' | 'kind'> {
6
+ /**
7
+ * @desc shape 'circle'의 경우 적용되지 않습니다.
8
+ * @default outlined_secondary
9
+ */
10
+ kind?: IconButtonKind;
11
+ /**
12
+ * @desc 렌더링 될 아이콘 요소
13
+ */
9
14
  icon?: ReactElement<IconProps>;
10
15
  /** @default rectangle */
11
16
  shape?: ButtonShape;
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.ForwardRefExoticComponent<import("./IconButton").IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
5
- };
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./IconButton").IconButtonProps & React.RefAttributes<HTMLButtonElement>>>;
6
4
  export default _default;
7
5
  export declare const Rectangle: any;
8
6
  export declare const Circle: any;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps } from './Button';
3
3
  import { TextButtonKind, TextButtonSize } from './types';
4
- export interface TextButtonProps extends Omit<ButtonProps, 'loading' | 'variant'> {
4
+ export interface TextButtonProps extends Omit<ButtonProps, 'loading' | 'kind'> {
5
5
  /** @default text */
6
6
  kind?: TextButtonKind;
7
7
  /** @default false */
@@ -1,6 +1,6 @@
1
- import { ButtonSize, ButtonVariant, ButtonShape, TextButtonKind, TextButtonSize } from './types';
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 getButtonVariant: (variant?: ButtonVariant) => import("@emotion/utils").SerializedStyles;
3
+ export declare const getButtonKind: (kind?: ButtonKind | IconButtonKind) => import("@emotion/utils").SerializedStyles;
4
4
  export declare const button_size_css: Record<ButtonSize, string>;
5
5
  export declare const button_icon_size_css: Record<ButtonSize, number>;
6
6
  export declare const text_button_icon_size_css: Record<TextButtonSize, number>;
@@ -1,6 +1,6 @@
1
- export declare type ButtonVariant = 'brand' | 'primary' | 'secondary' | 'black' | 'negative' | 'outlined_primary' | 'outlined_black' | 'outlined_white' | 'outlined_negative' | 'dotted';
1
+ export declare type ButtonKind = 'primary' | 'secondary' | 'black';
2
2
  export declare type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
3
  export declare type ButtonShape = 'rectangle' | 'circle';
4
- export declare type IconButtonVariant = 'secondary' | 'outlined_primary' | 'outlined_negative';
4
+ export declare type IconButtonKind = 'outlined_secondary' | 'outlined_primary' | 'outlined_negative';
5
5
  export declare type TextButtonKind = 'text' | 'link';
6
6
  export declare type TextButtonSize = Exclude<ButtonSize, 'xsmall' | 'xlarge'>;
@@ -1,27 +1,20 @@
1
1
  export declare const dropdown_label_base_css: import("@emotion/utils").SerializedStyles;
2
- export declare const dropdown_label_expanded_style: {
3
- border: string;
4
- '&:hover': {
5
- border: string;
6
- };
7
- };
8
2
  export declare const dropdown_label_selected_style: {
9
3
  color: string;
10
4
  };
11
5
  export declare const dropdown_item_group_css: import("@emotion/utils").SerializedStyles;
12
6
  export declare const dropdown_item_base_css: import("@emotion/utils").SerializedStyles;
13
7
  export declare const dropdown_item_disabled_style: {
14
- backgroundColor: string;
15
8
  color: string;
16
9
  cursor: string;
17
- };
18
- export declare const dropdown_item_selected_style: {
19
- backgroundColor: string;
20
- color: string;
21
10
  '&:hover, &:focus': {
22
11
  backgroundColor: string;
23
12
  };
24
13
  };
14
+ export declare const dropdown_item_selected_style: {
15
+ color: string;
16
+ backgroundColor: string;
17
+ };
25
18
  export declare const dropdown_item_focused_style: {
26
19
  backgroundColor: string;
27
20
  };