fone-design-system_v2 1.0.203 → 1.0.205
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,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
2
|
import { ColumnDef as TanstackColumnDef } from '@tanstack/react-table';
|
|
3
3
|
export type ColumnDef<T extends object> = TanstackColumnDef<T> & {
|
|
4
4
|
accessorKey?: string;
|
|
@@ -63,6 +63,8 @@ export interface Table2Props {
|
|
|
63
63
|
reorderMode?: boolean;
|
|
64
64
|
/** 행 순서가 변경될 때 재정렬된 데이터를 반환합니다. */
|
|
65
65
|
onReorder?: (data: any[]) => void;
|
|
66
|
+
/** 내부 table 요소 스타일을 오버라이드합니다. */
|
|
67
|
+
sx?: CSSProperties;
|
|
66
68
|
}
|
|
67
|
-
declare const Table2: <T extends object>({ data, columns, onChange, checkbox, no, radio, selectedCell, onRowClick, onRowDoubleClick, isLoading, scrollTo, isEditMode, rowClickTriggerIdx, reorderMode, onReorder, onCellClick, }: Table2Props) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
declare const Table2: <T extends object>({ data, columns, onChange, checkbox, no, radio, selectedCell, onRowClick, onRowDoubleClick, isLoading, scrollTo, isEditMode, rowClickTriggerIdx, reorderMode, onReorder, onCellClick, sx, }: Table2Props) => import("react/jsx-runtime").JSX.Element;
|
|
68
70
|
export default Table2;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { Table as ReactTable } from '@tanstack/react-table';
|
|
2
3
|
interface Props<T extends object = any> {
|
|
3
4
|
table: ReactTable<T>;
|
|
@@ -20,6 +21,7 @@ interface Props<T extends object = any> {
|
|
|
20
21
|
rowActiveIdx: number;
|
|
21
22
|
radio?: boolean;
|
|
22
23
|
reorderMode?: boolean;
|
|
24
|
+
tableSx?: CSSProperties;
|
|
23
25
|
}
|
|
24
26
|
declare const Rows: import('react').ForwardRefExoticComponent<Props<any> & import('react').RefAttributes<HTMLDivElement>>;
|
|
25
27
|
export default Rows;
|