@croquiscom/pds 0.20.0 → 0.22.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 +18 -0
- package/dist/button/ButtonIcon.d.ts +3 -0
- package/dist/button/IconButton.d.ts +1 -1
- package/dist/button/TextButton.d.ts +17 -0
- package/dist/button/TextButton.stories.d.ts +11 -0
- package/dist/button/index.d.ts +1 -0
- package/dist/button/styles.d.ts +6 -3
- package/dist/button/types.d.ts +2 -0
- package/dist/foundation/semantic_colors.d.ts +1 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/input/styles.d.ts +7 -0
- package/dist/radio/styles.d.ts +2 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 0.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b1da4f6: TextButton 컴포넌트 추가
|
|
8
|
+
|
|
9
|
+
## 0.21.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2faa792: fix: 시맨틱 컬러 타입 오류 수정
|
|
14
|
+
|
|
15
|
+
## 0.21.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- c90a9bf: 입력 컴포넌트들 포커스 스타일 정의
|
|
20
|
+
|
|
3
21
|
## 0.20.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { IconProps } from '../icons/generated';
|
|
3
|
+
export declare const ButtonIcon: ({ size, color, children }: PropsWithChildren<IconProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -2,7 +2,7 @@ import React, { ReactElement } from 'react';
|
|
|
2
2
|
import { ButtonShape, IconButtonVariant } from './types';
|
|
3
3
|
import { ButtonProps } from './Button';
|
|
4
4
|
import { IconProps } from '../icons/generated';
|
|
5
|
-
export interface IconButtonProps extends Omit<ButtonProps, 'size'> {
|
|
5
|
+
export interface IconButtonProps extends Omit<ButtonProps, 'size' | 'loading' | 'startIcon' | 'endIcon'> {
|
|
6
6
|
/** @default secondary */
|
|
7
7
|
variant?: IconButtonVariant;
|
|
8
8
|
/** 렌더링 될 아이콘 요소 */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from './Button';
|
|
3
|
+
import { TextButtonKind, TextButtonSize } from './types';
|
|
4
|
+
export interface TextButtonProps extends Omit<ButtonProps, 'loading' | 'variant'> {
|
|
5
|
+
/** @default text */
|
|
6
|
+
kind?: TextButtonKind;
|
|
7
|
+
/** @default false */
|
|
8
|
+
underline?: boolean;
|
|
9
|
+
/** @default medium */
|
|
10
|
+
size?: TextButtonSize;
|
|
11
|
+
/**
|
|
12
|
+
* @desc kind값이 link일 경우 적용되지 않습니다.
|
|
13
|
+
* @default semantic_colors.content.primary
|
|
14
|
+
*/
|
|
15
|
+
color?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const TextButton: React.ForwardRefExoticComponent<TextButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./TextButton").TextButtonProps & React.RefAttributes<HTMLButtonElement>>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Text: any;
|
|
6
|
+
export declare const Link: any;
|
|
7
|
+
export declare const TextUnderline: any;
|
|
8
|
+
export declare const LinkUnderline: any;
|
|
9
|
+
export declare const StartIcon: any;
|
|
10
|
+
export declare const EndIcon: any;
|
|
11
|
+
export declare const Combination: () => JSX.Element;
|
package/dist/button/index.d.ts
CHANGED
package/dist/button/styles.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { ButtonSize, ButtonVariant, ButtonShape } from './types';
|
|
1
|
+
import { ButtonSize, ButtonVariant, ButtonShape, TextButtonKind, TextButtonSize } from './types';
|
|
2
2
|
export declare const button_base_css: import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare const button_icon_base_css: import("@emotion/utils").SerializedStyles;
|
|
4
3
|
export declare const getButtonVariant: (variant?: ButtonVariant) => import("@emotion/utils").SerializedStyles;
|
|
5
4
|
export declare const button_size_css: Record<ButtonSize, string>;
|
|
6
|
-
export declare const
|
|
5
|
+
export declare const button_icon_size_css: Record<ButtonSize, number>;
|
|
6
|
+
export declare const text_button_icon_size_css: Record<TextButtonSize, number>;
|
|
7
7
|
export declare const getIconButtonStyle: (shape?: ButtonShape) => import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const text_button_text_css: Record<TextButtonSize, string>;
|
|
9
|
+
export declare const text_button_size_css: Record<TextButtonSize, string>;
|
|
10
|
+
export declare const getTextButtonStyle: (kind: TextButtonKind, fixed_color: string) => import("@emotion/utils").SerializedStyles;
|
package/dist/button/types.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export declare type ButtonVariant = 'brand' | 'primary' | 'secondary' | 'black'
|
|
|
2
2
|
export declare type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
3
|
export declare type ButtonShape = 'rectangle' | 'circle';
|
|
4
4
|
export declare type IconButtonVariant = 'secondary' | 'outlined_primary' | 'outlined_negative';
|
|
5
|
+
export declare type TextButtonKind = 'text' | 'link';
|
|
6
|
+
export declare type TextButtonSize = Exclude<ButtonSize, 'xsmall' | 'xlarge'>;
|