fone-design-system_v2 1.0.95 → 1.0.97
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/Autocomplete/Autocomplete.d.ts +4 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +17 -20
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/fone-design-system.es.js +24055 -16875
- package/dist/fone-design-system.umd.js +229 -191
- package/dist/index.d.ts +1 -0
- package/dist/theme/components/Breadcrumbs.theme.d.ts +6 -0
- package/package.json +1 -1
- package/dist/theme/components/TextField2.d.ts +0 -0
- /package/dist/theme/components/{Button.d.ts → Button.theme.d.ts} +0 -0
- /package/dist/theme/components/{Breadcrumbs.d.ts → Checkbox.theme.d.ts} +0 -0
- /package/dist/theme/components/{Checkbox.d.ts → Dialog.theme.d.ts} +0 -0
- /package/dist/theme/components/{Dialog.d.ts → Pagination.theme.d.ts} +0 -0
- /package/dist/theme/components/{Pagination.d.ts → Radio.theme.d.ts} +0 -0
- /package/dist/theme/components/{Radio.d.ts → Select.theme.d.ts} +0 -0
- /package/dist/theme/components/{Select.d.ts → TextField2.theme.d.ts} +0 -0
|
@@ -33,6 +33,10 @@ export interface AutocompleteProps<Value = any, Multiple extends boolean | undef
|
|
|
33
33
|
id?: string;
|
|
34
34
|
/** 선택된 값 */
|
|
35
35
|
value?: any;
|
|
36
|
+
/** sx 스타일 */
|
|
37
|
+
sx?: object;
|
|
38
|
+
/** slotProps */
|
|
39
|
+
slotProps?: any;
|
|
36
40
|
}
|
|
37
41
|
export declare const Autocomplete: {
|
|
38
42
|
(props: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { BreadcrumbsProps as MuiBreadcrumbsProps } from '@mui/material/Breadcrumbs';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type BreadcrumbItem = {
|
|
5
|
+
/** 아이템 컴포넌트 (완전 커스텀 렌더) */
|
|
6
|
+
customItem?: React.ReactNode;
|
|
7
|
+
/** 표시될 텍스트 */
|
|
8
|
+
text?: string;
|
|
9
|
+
/** 링크 경로 (마지막 아이템은 생략 권장) */
|
|
10
|
+
href?: string;
|
|
11
|
+
};
|
|
12
|
+
export interface BreadcrumbsProps extends Omit<MuiBreadcrumbsProps, "children"> {
|
|
3
13
|
/** 경로 아이템 목록 */
|
|
4
|
-
items:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** 표시될 텍스트 */
|
|
8
|
-
text?: string;
|
|
9
|
-
/** 링크 경로 (마지막 아이템은 생략) */
|
|
10
|
-
href?: string;
|
|
11
|
-
}[];
|
|
12
|
-
/** 구분자 */
|
|
13
|
-
separator?: string | React.ReactNode;
|
|
14
|
-
/** 최대 표시 아이템 수 */
|
|
15
|
-
maxItems?: number;
|
|
16
|
-
/** 최대 표시 아이템 수를 초과할 경우 표시할 아이템 수 */
|
|
17
|
-
itemsAfterCollapse?: number;
|
|
18
|
-
/** 최대 표시 아이템 수를 초과할 경우 표시할 아이템 수 */
|
|
19
|
-
itemsBeforeCollapse?: number;
|
|
20
|
-
sx?: any;
|
|
14
|
+
items: BreadcrumbItem[];
|
|
15
|
+
/** 루트 sx */
|
|
16
|
+
sx?: SxProps<Theme>;
|
|
21
17
|
}
|
|
22
18
|
/** 현재 페이지의 위치를 나타내는 브레드크럼 컴포넌트 */
|
|
23
19
|
export declare const Breadcrumbs: {
|
|
24
|
-
({ items,
|
|
20
|
+
({ items, sx, ...props }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
25
21
|
displayName: string;
|
|
26
22
|
};
|
|
23
|
+
export {};
|
|
@@ -4,10 +4,11 @@ type MuiColor = NonNullable<MuiButtonProps["color"]>;
|
|
|
4
4
|
type MuiSize = NonNullable<MuiButtonProps["size"]>;
|
|
5
5
|
type DSButtonSize = MuiSize | "xxsmall" | "xsmall";
|
|
6
6
|
type DSButtonColor = MuiColor | string;
|
|
7
|
-
export interface ButtonProps extends Omit<MuiButtonProps
|
|
7
|
+
export interface ButtonProps extends Omit<MuiButtonProps, "color" | "size"> {
|
|
8
8
|
color?: DSButtonColor;
|
|
9
9
|
size?: DSButtonSize;
|
|
10
10
|
iconOnly?: boolean;
|
|
11
|
+
htmlFor?: React.LabelHTMLAttributes<HTMLLabelElement>["htmlFor"];
|
|
11
12
|
}
|
|
12
|
-
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<
|
|
13
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
13
14
|
export default Button;
|