fone-design-system_v2 1.0.75 → 1.0.77
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/Button/Button.d.ts +8 -37
- package/dist/components/Select/Select.d.ts +8 -33
- package/dist/components/Table2/Table2.d.ts +12 -67
- package/dist/components/Table2/{useOutsideClick.d.ts → hooks/useOutsideClick.d.ts} +1 -1
- package/dist/components/Table2/{Cell.d.ts → rows/Cell.d.ts} +2 -11
- package/dist/components/Table2/rows/CellButton.d.ts +7 -0
- package/dist/components/Table2/{CellCheckbox.d.ts → rows/CellCheckbox.d.ts} +2 -2
- package/dist/components/Table2/{CellDatePicker2.d.ts → rows/CellDatePicker2.d.ts} +2 -2
- package/dist/components/Table2/{CellEdit.d.ts → rows/CellEdit.d.ts} +2 -1
- package/dist/components/Table2/{CellFile.d.ts → rows/CellFile.d.ts} +2 -2
- package/dist/components/Table2/{CellFrontCheckbox.d.ts → rows/CellFrontCheckbox.d.ts} +3 -3
- package/dist/components/Table2/{CellInput.d.ts → rows/CellInput.d.ts} +2 -2
- package/dist/components/Table2/{CellModal.d.ts → rows/CellModal.d.ts} +2 -7
- package/dist/components/Table2/rows/CellNo.d.ts +6 -0
- package/dist/components/Table2/{CellSelect.d.ts → rows/CellSelect.d.ts} +2 -2
- package/dist/components/Table2/{CellTextarea.d.ts → rows/CellTextarea.d.ts} +2 -3
- package/dist/components/Table2/{Row.d.ts → rows/Row.d.ts} +2 -12
- package/dist/components/Table2/{Rows.d.ts → rows/Rows.d.ts} +2 -12
- package/dist/fone-design-system.es.js +16528 -17011
- package/dist/fone-design-system.umd.js +149 -143
- package/package.json +1 -1
- package/dist/components/Table2/AddButton.d.ts +0 -15
- package/dist/components/Table2/Body.d.ts +0 -0
- package/dist/components/Table2/BodyItem.d.ts +0 -0
- package/dist/components/Table2/Box.d.ts +0 -1
- package/dist/components/Table2/Buttons.d.ts +0 -23
- package/dist/components/Table2/CellButton.d.ts +0 -12
- package/dist/components/Table2/CellNo.d.ts +0 -10
- package/dist/components/Table2/RemoveButton.d.ts +0 -15
- package/dist/components/Table2/SaveButton.d.ts +0 -11
- package/dist/components/Table2/TableProvider.d.ts +0 -0
- package/dist/components/Table2/Title.d.ts +0 -6
- package/dist/components/Table2/TitleContainer.d.ts +0 -29
- package/dist/components/Table2/Total.d.ts +0 -5
- package/dist/components/Table2/useElementHeight.d.ts +0 -3
- /package/dist/components/Table2/{Header.d.ts → headers/Header.d.ts} +0 -0
- /package/dist/components/Table2/{HeaderItem.d.ts → headers/HeaderItem.d.ts} +0 -0
- /package/dist/components/Table2/{CellCheckboxN.d.ts → rows/CellCheckboxN.d.ts} +0 -0
- /package/dist/components/Table2/{CellCustom.d.ts → rows/CellCustom.d.ts} +0 -0
- /package/dist/components/Table2/{CellDate.d.ts → rows/CellDate.d.ts} +0 -0
- /package/dist/components/Table2/{CellText.d.ts → rows/CellText.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Table as ReactTable } from '@tanstack/react-table';
|
|
2
|
-
interface Props<T> {
|
|
3
|
-
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
4
|
-
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
5
|
-
table: ReactTable<T>;
|
|
6
|
-
isPlusButton: boolean;
|
|
7
|
-
onAddFn?: () => void;
|
|
8
|
-
isAddRowActive?: boolean;
|
|
9
|
-
clickedRowIndex: number;
|
|
10
|
-
setClickedRowIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
11
|
-
radio: boolean;
|
|
12
|
-
scrollAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
13
|
-
}
|
|
14
|
-
declare const AddButton: <T>({ setTableData, setRowSelection, table, isPlusButton, onAddFn, isAddRowActive, clickedRowIndex, setClickedRowIndex, radio, scrollAreaRef, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default AddButton;
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function Box(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Table as ReactTable } from '@tanstack/react-table';
|
|
2
|
-
interface Props<T> {
|
|
3
|
-
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
4
|
-
onRemoveRow?: () => void;
|
|
5
|
-
rowSelection: Record<string, boolean>;
|
|
6
|
-
tableData: T[];
|
|
7
|
-
onDelete?: (rows: T[]) => void;
|
|
8
|
-
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
9
|
-
table: ReactTable<T>;
|
|
10
|
-
onSave?: (checkedRows: T[], allRows: T[]) => void;
|
|
11
|
-
buttons: React.ReactNode;
|
|
12
|
-
isPlusButton: boolean;
|
|
13
|
-
onAddFn?: () => void;
|
|
14
|
-
isAddRowActive?: boolean;
|
|
15
|
-
clickedRowIndex: number;
|
|
16
|
-
setClickedRowIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
17
|
-
onDelFn?: (checkedRows: T[]) => void;
|
|
18
|
-
deleteAllData?: boolean;
|
|
19
|
-
radio: boolean;
|
|
20
|
-
scrollAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
21
|
-
}
|
|
22
|
-
declare const Buttons: <T>({ setTableData, rowSelection, tableData, onDelete, setRowSelection, table, onSave, buttons, isPlusButton, onAddFn, isAddRowActive, clickedRowIndex, setClickedRowIndex, onDelFn, deleteAllData, radio, scrollAreaRef, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export default Buttons;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
-
interface Props<T extends object> {
|
|
3
|
-
cell: TableCell<T, unknown>;
|
|
4
|
-
align?: "start" | "center" | "right";
|
|
5
|
-
setCurrentEditingCell: React.Dispatch<React.SetStateAction<{
|
|
6
|
-
rowIndex: number;
|
|
7
|
-
columnId: string;
|
|
8
|
-
isActive: boolean;
|
|
9
|
-
}>>;
|
|
10
|
-
}
|
|
11
|
-
declare const CellButton: <T extends object>({ align, cell, setCurrentEditingCell, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default CellButton;
|
|
@@ -1,10 +0,0 @@
|
|
|
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,15 +0,0 @@
|
|
|
1
|
-
import { Table as ReactTable } from '@tanstack/react-table';
|
|
2
|
-
interface Props<T> {
|
|
3
|
-
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
4
|
-
rowSelection: Record<string, boolean>;
|
|
5
|
-
onDelete?: (checkedRows: T[]) => void;
|
|
6
|
-
table: ReactTable<T>;
|
|
7
|
-
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
8
|
-
setIsWarning: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
setWarningText: React.Dispatch<React.SetStateAction<string>>;
|
|
10
|
-
onDelFn?: (checkedRows: T[]) => void;
|
|
11
|
-
deleteAllData?: boolean;
|
|
12
|
-
setClickedRowIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
13
|
-
}
|
|
14
|
-
declare const RemoveButton: <T>({ rowSelection, table, setTableData, onDelete, setRowSelection, setIsWarning, setWarningText, onDelFn, deleteAllData, setClickedRowIndex, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default RemoveButton;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Table as ReactTable } from '@tanstack/react-table';
|
|
2
|
-
interface Props<T> {
|
|
3
|
-
onSave?: (checkedRows: T[], allRows: T[]) => void;
|
|
4
|
-
rowSelection: Record<string, boolean>;
|
|
5
|
-
table: ReactTable<T>;
|
|
6
|
-
setIsWarning: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
-
setWarningText: React.Dispatch<React.SetStateAction<string>>;
|
|
8
|
-
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
9
|
-
}
|
|
10
|
-
declare const SaveButton: <T>({ rowSelection, onSave, table, setIsWarning, setWarningText, setRowSelection, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default SaveButton;
|
|
File without changes
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Table as ReactTable } from '@tanstack/react-table';
|
|
2
|
-
interface Props<T> {
|
|
3
|
-
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
4
|
-
onRemoveRow?: () => void;
|
|
5
|
-
rowSelection: Record<string, boolean>;
|
|
6
|
-
tableData: T[];
|
|
7
|
-
onDelete?: (checkedRows: T[]) => void;
|
|
8
|
-
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
9
|
-
table: ReactTable<T>;
|
|
10
|
-
onSave?: (checkedRows: T[], allRows: T[]) => void;
|
|
11
|
-
title: string | null;
|
|
12
|
-
isTotal: boolean;
|
|
13
|
-
total: number;
|
|
14
|
-
buttons?: React.ReactNode;
|
|
15
|
-
isPlusButton: boolean;
|
|
16
|
-
titleRef: React.RefObject<HTMLDivElement | null>;
|
|
17
|
-
onAddFn?: () => void;
|
|
18
|
-
isAddRowActive?: boolean;
|
|
19
|
-
isPlusButtonDisabled?: boolean;
|
|
20
|
-
clickedRowIndex: number;
|
|
21
|
-
setClickedRowIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
22
|
-
onDelFn?: (rows: T[]) => void;
|
|
23
|
-
deleteAllData?: boolean;
|
|
24
|
-
radio: boolean;
|
|
25
|
-
scrollAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
26
|
-
isTableTitleIcon?: boolean;
|
|
27
|
-
}
|
|
28
|
-
declare const TitleContainer: <T>({ setTableData, rowSelection, tableData, onDelete, setRowSelection, table, onSave, title, isTotal, total, buttons, isPlusButton, titleRef, onAddFn, isAddRowActive, clickedRowIndex, setClickedRowIndex, onDelFn, deleteAllData, radio, scrollAreaRef, isTableTitleIcon, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export default TitleContainer;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|