fone-design-system_v2 1.0.306 → 1.0.307
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/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +14 -8
- package/dist/components/Radio/RadioGroup.d.ts +3 -1
- package/dist/components/TreeView2/TreeView2.d.ts +0 -7
- package/dist/fone-design-system.es.js +4746 -4722
- package/dist/fone-design-system.umd.js +109 -109
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
size?: SizeType;
|
|
10
10
|
labelSize?: LabelProps["size"];
|
|
11
|
+
labelPlacement?: "start" | "end" | "top" | "bottom";
|
|
11
12
|
/**
|
|
12
13
|
* "primary" 같은 키면 theme.palette에서 자동으로 가져옴
|
|
13
14
|
* string(예: "#123", "var(--...)" )이면 그대로 사용
|
|
@@ -6,7 +6,7 @@ import { LabelProps } from '../Label';
|
|
|
6
6
|
* - 원본 `MuiRadioProps`에서 `checkedIcon`만 제외(Omit)한다.
|
|
7
7
|
* - 라벨/배치/비활성화 등 폼 라디오에 필요한 속성을 제공한다.
|
|
8
8
|
*/
|
|
9
|
-
export interface RadioProps extends Omit<MuiRadioProps, "checkedIcon"> {
|
|
9
|
+
export interface RadioProps extends Omit<MuiRadioProps, "checkedIcon" | "color" | "size"> {
|
|
10
10
|
/** 루트 요소에 전달할 CSS 클래스명 */
|
|
11
11
|
className?: string;
|
|
12
12
|
/**
|
|
@@ -30,15 +30,19 @@ export interface RadioProps extends Omit<MuiRadioProps, "checkedIcon"> {
|
|
|
30
30
|
*/
|
|
31
31
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
32
32
|
/**
|
|
33
|
-
* 색상 팔레트
|
|
34
|
-
* - MUI 팔레트 키 중
|
|
33
|
+
* 색상 팔레트 (MUI 기본 팔레트 또는 커스텀 string)
|
|
34
|
+
* - MUI 팔레트 키 중 하나를 자동완성으로 제공하되, 임의의 string 값도 허용한다.
|
|
35
35
|
*/
|
|
36
|
-
color?: "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
37
|
-
/**
|
|
38
|
-
|
|
36
|
+
color?: "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | (string & {});
|
|
37
|
+
/**
|
|
38
|
+
* 사이즈 (MUI 기본: small | medium 또는 커스텀 string)
|
|
39
|
+
* - 기본 키를 자동완성으로 제공하되, 임의의 string 값도 허용한다.
|
|
40
|
+
*/
|
|
41
|
+
size?: "small" | "medium" | (string & {});
|
|
39
42
|
/**
|
|
40
43
|
* 비활성화 여부
|
|
41
|
-
* @default false
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
42
46
|
disabled?: boolean;
|
|
43
47
|
/** 필수 표기 여부*/
|
|
44
48
|
required?: boolean;
|
|
@@ -46,6 +50,8 @@ export interface RadioProps extends Omit<MuiRadioProps, "checkedIcon"> {
|
|
|
46
50
|
labelPlacement?: "start" | "end" | "top" | "bottom";
|
|
47
51
|
/** 라벨 크기 */
|
|
48
52
|
labelSize?: LabelProps["size"];
|
|
53
|
+
/** 라벨 색상 */
|
|
54
|
+
labelColor?: string;
|
|
49
55
|
}
|
|
50
|
-
declare const Radio: ({ className, value, label, checked, onChange, disabled, labelPlacement, required, labelSize, ...props }: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
declare const Radio: ({ className, value, label, checked, onChange, disabled, labelPlacement, required, labelSize, labelColor, color, size, ...props }: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
57
|
export default Radio;
|
|
@@ -20,6 +20,8 @@ export interface RadioGroupProps<T extends FieldValues> extends MuiRadioGroupPro
|
|
|
20
20
|
value?: string;
|
|
21
21
|
field?: any;
|
|
22
22
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
+
radioSize?: string | number;
|
|
24
|
+
labelSize?: string | number;
|
|
23
25
|
}
|
|
24
|
-
declare const RadioGroup: ({ name, label, row, optionGap, children, options, formName, control, field, value, onChange, sx, defaultValue, ...props }: RadioGroupProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const RadioGroup: ({ name, label, row, optionGap, children, options, formName, control, field, value, onChange, radioSize, labelSize, sx, defaultValue, ...props }: RadioGroupProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
25
27
|
export default RadioGroup;
|
|
@@ -29,13 +29,6 @@ export interface TreeView2Props extends RichTreeViewProps<TreeViewBaseItem, bool
|
|
|
29
29
|
onItemClick?: (event: React.MouseEvent, itemId: string, value?: any) => void;
|
|
30
30
|
/** 아이템 더블클릭 시 콜백 */
|
|
31
31
|
onItemDoubleClick?: (itemId: string | undefined, value?: any) => void;
|
|
32
|
-
/** 행 추가 기능
|
|
33
|
-
* - boolean: 헤더의 추가 버튼만 노출(true)
|
|
34
|
-
* - function: (item, parentId)로 신규 행 생성 로직 위임
|
|
35
|
-
* item: menuLvSeq 포함한 노드 정보
|
|
36
|
-
*/
|
|
37
|
-
/** 행 삭제 콜백(실제 데이터 삭제는 부모에서 처리) */
|
|
38
|
-
/** 저장 버튼 클릭/인라인 생성 완료 등 저장 트리거 콜백 */
|
|
39
32
|
/** 프리뷰 바에 표시할 텍스트(옵션) */
|
|
40
33
|
previewText?: string;
|
|
41
34
|
/** 초기 전체 펼침 여부(true면 모든 브랜치 펼침) */
|