fone-design-system_v2 1.0.209 → 1.0.211
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/Image/Image.d.ts +11 -0
- package/dist/components/Image/index.d.ts +2 -0
- package/dist/components/Radio/RadioGroup.d.ts +6 -1
- package/dist/components/Table2/Table2.d.ts +1 -1
- package/dist/components/Table2/rows/Rows.d.ts +1 -0
- package/dist/components/Table2/types/table.types.d.ts +30 -0
- package/dist/fone-design-system.es.js +11694 -11662
- package/dist/fone-design-system.umd.js +175 -175
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface ImageProps extends Omit<BoxProps, "component"> {
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
height?: string | number;
|
|
8
|
+
component?: React.ElementType;
|
|
9
|
+
}
|
|
10
|
+
declare const Image: ({ src, alt, component: Component, width, height, ...props }: ImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Image;
|
|
@@ -7,6 +7,11 @@ export interface RadioGroupProps<T extends FieldValues> extends MuiRadioGroupPro
|
|
|
7
7
|
name: string;
|
|
8
8
|
label?: React.ReactNode;
|
|
9
9
|
row?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* `FormControlLabel` 내부에서 라디오와 라벨 사이 간격.
|
|
12
|
+
* (기본값: "6px")
|
|
13
|
+
*/
|
|
14
|
+
optionGap?: string | number;
|
|
10
15
|
children?: React.ReactNode;
|
|
11
16
|
options?: Array<Omit<FormControlLabelProps, "control"> & RadioProps>;
|
|
12
17
|
formName?: FieldPath<T>;
|
|
@@ -16,5 +21,5 @@ export interface RadioGroupProps<T extends FieldValues> extends MuiRadioGroupPro
|
|
|
16
21
|
field?: any;
|
|
17
22
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
18
23
|
}
|
|
19
|
-
declare const RadioGroup: ({ name, label, row, children, options, formName, control, field, value, onChange, sx, defaultValue, ...props }: RadioGroupProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
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;
|
|
20
25
|
export default RadioGroup;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Table2Props } from './types';
|
|
2
|
-
declare const Table2: <T extends object>({ data, columns, onChange, checkbox, no, radio, selectedCell, onRowClick, onRowDoubleClick, isLoading, scrollTo, isEditMode, rowClickTriggerIdx, reorderMode, onReorder, onCellClick, rowHeight, headerRowHeight, sx, }: Table2Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Table2: <T extends object>({ data, columns, onChange, checkbox, no, radio, selectedCell, onRowClick, onRowDoubleClick, isLoading, rowCountChangeScrollPosition, scrollTo, isEditMode, rowClickTriggerIdx, resetTriggerOnDataChange, reorderMode, onReorder, onCellClick, rowHeight, headerRowHeight, sx, }: Table2Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Table2;
|
|
@@ -24,6 +24,7 @@ interface Props<T extends object = any> {
|
|
|
24
24
|
tableSx?: CSSProperties;
|
|
25
25
|
rowHeight: number;
|
|
26
26
|
headerRowHeight: number;
|
|
27
|
+
rowCountChangeScrollPosition?: "top" | "bottom" | number | "preserve";
|
|
27
28
|
}
|
|
28
29
|
declare const Rows: import('react').ForwardRefExoticComponent<Props<any> & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
30
|
export default Rows;
|
|
@@ -29,6 +29,32 @@ export type ColumnDef<T extends object> = TanstackColumnDef<T> & {
|
|
|
29
29
|
visible?: boolean;
|
|
30
30
|
simpleSelect?: boolean;
|
|
31
31
|
showEditIcon?: boolean;
|
|
32
|
+
/** 바디 셀의 내용을 컬럼 단위로 커스텀 렌더링합니다. */
|
|
33
|
+
renderCell?: (params: {
|
|
34
|
+
rowData: T;
|
|
35
|
+
rowIndex: number;
|
|
36
|
+
column: ColumnDef<T>;
|
|
37
|
+
columnId: string;
|
|
38
|
+
value: unknown;
|
|
39
|
+
}) => React.ReactNode;
|
|
40
|
+
/** 바디 td 요소에 추가 속성이나 스타일을 주입합니다. */
|
|
41
|
+
getCellProps?: (params: {
|
|
42
|
+
rowData: T;
|
|
43
|
+
rowIndex: number;
|
|
44
|
+
column: ColumnDef<T>;
|
|
45
|
+
columnId: string;
|
|
46
|
+
value: unknown;
|
|
47
|
+
}) => React.TdHTMLAttributes<HTMLTableCellElement>;
|
|
48
|
+
/** 헤더 셀의 내용을 컬럼 단위로 커스텀 렌더링합니다. */
|
|
49
|
+
renderHeaderCell?: (params: {
|
|
50
|
+
column: ColumnDef<T>;
|
|
51
|
+
columnId: string;
|
|
52
|
+
}) => React.ReactNode;
|
|
53
|
+
/** 헤더 th 요소에 추가 속성이나 스타일을 주입합니다. */
|
|
54
|
+
getHeaderCellProps?: (params: {
|
|
55
|
+
column: ColumnDef<T>;
|
|
56
|
+
columnId: string;
|
|
57
|
+
}) => React.ThHTMLAttributes<HTMLTableCellElement>;
|
|
32
58
|
};
|
|
33
59
|
export interface Table2Props {
|
|
34
60
|
/** Cell 클릭 시 해당 Cell Border 스타일 변경 여부를 설정합니다. */
|
|
@@ -53,12 +79,16 @@ export interface Table2Props {
|
|
|
53
79
|
onRowDoubleClick?: (row: any, rowIndex: number) => void;
|
|
54
80
|
/** 로딩 상태 표시 여부를 설정합니다. */
|
|
55
81
|
isLoading?: boolean;
|
|
82
|
+
/** 행 개수 변경 시 스크롤 위치 유지 방식 설정합니다. */
|
|
83
|
+
rowCountChangeScrollPosition?: "top" | "bottom" | number | "preserve";
|
|
56
84
|
/** 특정 행으로 스크롤할 인덱스를 설정합니다. */
|
|
57
85
|
scrollTo?: number;
|
|
58
86
|
/** 편집, 추가 구분 확인 Column 여부를 설정합니다. */
|
|
59
87
|
isEditMode?: boolean;
|
|
60
88
|
/** 행 클릭 트리거 인덱스를 설정합니다. */
|
|
61
89
|
rowClickTriggerIdx?: number;
|
|
90
|
+
/** 데이터 변경 시 행 클릭 트리거 인덱스 초기화 여부를 설정합니다. */
|
|
91
|
+
resetTriggerOnDataChange?: boolean;
|
|
62
92
|
/** 행 드래그앤드롭 재정렬 모드를 활성화합니다. */
|
|
63
93
|
reorderMode?: boolean;
|
|
64
94
|
/** 행 순서가 변경될 때 재정렬된 데이터를 반환합니다. */
|