fone-design-system_v2 1.0.73 → 1.0.75
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/dist/components/Button/Button.d.ts +37 -8
- package/dist/fone-design-system.es.js +5283 -5199
- package/dist/fone-design-system.umd.js +124 -124
- package/package.json +1 -1
|
@@ -1,13 +1,42 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ButtonProps as MuiButtonProps } from '@mui/material
|
|
3
|
-
type MuiColor = NonNullable<MuiButtonProps["color"]>;
|
|
4
|
-
type MuiSize = NonNullable<MuiButtonProps["size"]>;
|
|
5
|
-
type DSButtonSize = MuiSize | "xxsmall" | "xsmall";
|
|
6
|
-
type DSButtonColor = MuiColor | string;
|
|
2
|
+
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
|
7
3
|
export interface ButtonProps extends Omit<MuiButtonProps<"button">, "color" | "size"> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
className?: any;
|
|
5
|
+
/** 자식 요소<br/>: 버튼 내에 포함될 내용 */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** 색상 설정<br/>: 버튼 색상 */
|
|
8
|
+
color?: string | "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning";
|
|
9
|
+
/** 루트 요소 타입 설정<br/>: HTML 요소 또는 다른 컴포넌트를 루트 노드로 사용 */
|
|
10
|
+
component?: React.ElementType;
|
|
11
|
+
/** 비활성화 여부<br/>: true일 경우 버튼이 비활성화 */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** 그림자 제거<br/>: true일 경우 버튼의 그림자 효과 제거 */
|
|
14
|
+
disableElevation?: boolean;
|
|
15
|
+
/** 키보드 포커스 리플 제거<br/>: true일 경우 키보드 포커스 리플 효과 비활성화 */
|
|
16
|
+
disableFocusRipple?: boolean;
|
|
17
|
+
/** 리플 효과 제거<br/>: true일 경우 리플 효과 비활성화 */
|
|
18
|
+
disableRipple?: boolean;
|
|
19
|
+
/** 끝 아이콘<br/>: 버튼의 자식 요소 뒤에 배치될 아이콘 */
|
|
20
|
+
endIcon?: React.ReactNode;
|
|
21
|
+
/** 전체 너비<br/>: true일 경우 버튼이 부모 컨테이너의 전체 너비를 차지 */
|
|
22
|
+
fullWidth?: boolean;
|
|
23
|
+
/** 링크 URL 설정<br/>: 버튼 클릭 시 이동할 링크 URL */
|
|
24
|
+
href?: string;
|
|
25
|
+
/** 로딩 상태<br/>: true일 경우 로딩 인디케이터가 표시되며 버튼이 비활성화됨 */
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
/** 로딩 인디케이터<br/>: 로딩 상태일 때 표시될 인디케이터 */
|
|
28
|
+
loadingIndicator?: React.ReactNode;
|
|
29
|
+
/** 로딩 인디케이터 위치<br/>: 'start', 'center', 'end' 중 위치 설정 */
|
|
30
|
+
loadingPosition?: "center" | "end" | "start";
|
|
31
|
+
/** 버튼 크기 설정<br/>: 'small', 'medium', 'large' 또는 사용자 지정 값 @default large */
|
|
32
|
+
size?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | string;
|
|
33
|
+
/** 시작 아이콘<br/>: 버튼의 자식 요소 앞에 배치될 아이콘 */
|
|
34
|
+
startIcon?: React.ReactNode;
|
|
35
|
+
/** 버튼 스타일 종류<br/>: 'contained', 'outlined', 'text' 중 선택 */
|
|
36
|
+
variant?: "text" | "outlined" | "contained";
|
|
37
|
+
form?: string;
|
|
38
|
+
type?: "submit" | "button" | "reset";
|
|
39
|
+
iconOnly?: boolean | undefined;
|
|
11
40
|
}
|
|
12
41
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
42
|
export default Button;
|