fone-design-system_v2 1.0.50 → 1.0.52

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.
@@ -0,0 +1,6 @@
1
+ import { Cell as TableCell } from '@tanstack/react-table';
2
+ interface CellEditProps<T> {
3
+ cell: TableCell<T, unknown>;
4
+ }
5
+ declare const CellEdit: ({ cell }: CellEditProps<any>) => import("react/jsx-runtime").JSX.Element;
6
+ export default CellEdit;
@@ -0,0 +1,10 @@
1
+ import { Cell as TableCell } from '@tanstack/react-table';
2
+ interface CellNoProps<T> {
3
+ cell: TableCell<T, unknown>;
4
+ pagination?: {
5
+ page: number;
6
+ size: number;
7
+ };
8
+ }
9
+ declare const CellNo: ({ cell, pagination }: CellNoProps<any>) => import("react/jsx-runtime").JSX.Element;
10
+ export default CellNo;
@@ -1,6 +1,7 @@
1
1
  import { default as React, Dispatch, ReactNode, SetStateAction } from 'react';
2
2
  import { ColumnDef as TanstackColumnDef } from '@tanstack/react-table';
3
3
  export type ColumnDef<T extends object> = TanstackColumnDef<T> & {
4
+ accessorKey?: string;
4
5
  width?: string;
5
6
  align?: "start" | "center" | "right";
6
7
  editable?: boolean;
@@ -26,6 +27,7 @@ export type ColumnDef<T extends object> = TanstackColumnDef<T> & {
26
27
  defaultChecked?: boolean;
27
28
  visible?: boolean;
28
29
  onChange?: (value: any) => void;
30
+ simpleSelect?: boolean;
29
31
  };
30
32
  export interface Table2Props<T extends object> {
31
33
  /** 테이블에 표시할 데이터 배열을 설정합니다. */
@@ -98,6 +100,7 @@ export interface Table2Props<T extends object> {
98
100
  }[]>>;
99
101
  /** 테이블 제목 옆에 아이콘 표시 여부를 설정합니다. */
100
102
  isTableTitleIcon?: boolean;
103
+ isEditMode?: boolean;
101
104
  }
102
- declare const Table2: <T extends object>({ data, columns, checkbox, radio, onChecked, onDelete, deleteAllData, onSave, onRowClick, onRowDoubleClick, title, isTotal, buttons, isLoading, isPlusButton, scrollTo, modalData, onAddFn, pagination, isAddRowActive, onModalApplied, rowClickTriggerIdx, onDelFn, isClickedCheckbox, onTableDataChange, checkboxCheckedIdx, No, selectedItems, setSelectedItems, isTableTitleIcon, }: Table2Props<T>) => import("react/jsx-runtime").JSX.Element;
105
+ declare const Table2: <T extends object>({ data, columns, checkbox, radio, onChecked, onDelete, deleteAllData, onSave, onRowClick, onRowDoubleClick, title, isTotal, buttons, isLoading, isPlusButton, scrollTo, modalData, onAddFn, pagination, isAddRowActive, onModalApplied, rowClickTriggerIdx, onDelFn, isClickedCheckbox, onTableDataChange, checkboxCheckedIdx, No, selectedItems, setSelectedItems, isTableTitleIcon, isEditMode, }: Table2Props<T>) => import("react/jsx-runtime").JSX.Element;
103
106
  export default Table2;