fone-design-system_v2 1.0.69 → 1.0.70

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.
@@ -1,12 +1,19 @@
1
1
  import { default as React } from 'react';
2
2
  import { GlobalStylesProps } from '@mui/material';
3
+ import { Theme, ThemeOptions } from '@mui/material/styles';
3
4
  type DSStyles = GlobalStylesProps["styles"];
5
+ type ThemeOverridesInput = ThemeOptions | ((baseTheme: Theme) => ThemeOptions);
4
6
  type Props = {
5
7
  children: React.ReactNode;
6
8
  htmlFontSize?: string;
7
9
  globalStyles?: DSStyles | DSStyles[];
8
10
  /** true면 기본 GlobalStyles를 렌더하지 않음 */
9
11
  disableBaseGlobalStyles?: boolean;
12
+ /**
13
+ * consumer(Taskhub)가 DS theme 위에 덧입힐 오버라이드
14
+ * - 겹치는 것만 덮이고 나머지는 DS theme 유지됨
15
+ */
16
+ themeOverrides?: ThemeOverridesInput;
10
17
  };
11
- export declare function DesignSystemProvider({ children, htmlFontSize, globalStyles, disableBaseGlobalStyles, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export declare function DesignSystemProvider({ children, htmlFontSize, globalStyles, disableBaseGlobalStyles, themeOverrides, }: Props): import("react/jsx-runtime").JSX.Element;
12
19
  export {};
@@ -1,42 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { ButtonProps as MuiButtonProps } from '@mui/material';
3
- export interface ButtonProps extends Omit<MuiButtonProps<"button">, "color" | "size"> {
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;
3
+ export interface ButtonProps extends MuiButtonProps<"button"> {
4
+ iconOnly?: boolean;
40
5
  }
41
6
  declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
42
7
  export default Button;