fone-design-system_v2 1.0.1
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/README.md +40 -0
- package/dist/DesignSystemProvider.d.ts +6 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +42 -0
- package/dist/components/ui/Accordion/index.d.ts +2 -0
- package/dist/components/ui/Autocomplete/Autocomplete.d.ts +40 -0
- package/dist/components/ui/Autocomplete/index.d.ts +2 -0
- package/dist/components/ui/Backdrop/Backdrop.d.ts +10 -0
- package/dist/components/ui/Backdrop/index.d.ts +2 -0
- package/dist/components/ui/Badge/Badge.d.ts +17 -0
- package/dist/components/ui/Badge/index.d.ts +2 -0
- package/dist/components/ui/BarChart/BarChart.d.ts +48 -0
- package/dist/components/ui/BarChart/index.d.ts +2 -0
- package/dist/components/ui/BottomNavigation/BottomNavigation.d.ts +23 -0
- package/dist/components/ui/BottomNavigation/index.d.ts +2 -0
- package/dist/components/ui/Box/Box.d.ts +10 -0
- package/dist/components/ui/Box/index.d.ts +2 -0
- package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +22 -0
- package/dist/components/ui/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/ui/Button/Button.d.ts +41 -0
- package/dist/components/ui/Button/index.d.ts +2 -0
- package/dist/components/ui/Card/Card.d.ts +18 -0
- package/dist/components/ui/Card/index.d.ts +2 -0
- package/dist/components/ui/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/ui/Checkbox/index.d.ts +2 -0
- package/dist/components/ui/DatePicker2/DatePicker2.d.ts +25 -0
- package/dist/components/ui/DatePicker2/DateRangeInput.d.ts +11 -0
- package/dist/components/ui/DatePicker2/index.d.ts +2 -0
- package/dist/components/ui/DatePicker3/DatePicker3.d.ts +9 -0
- package/dist/components/ui/DatePicker3/DateRangePicker.d.ts +10 -0
- package/dist/components/ui/DatePicker3/DateStyle.d.ts +1 -0
- package/dist/components/ui/DatePicker3/RHFDatePicker3Controller.d.ts +15 -0
- package/dist/components/ui/DatePicker3/RHFDateRangeController.d.ts +15 -0
- package/dist/components/ui/DatePicker3/index.d.ts +5 -0
- package/dist/components/ui/Dialog/Dialog.d.ts +44 -0
- package/dist/components/ui/Dialog/index.d.ts +2 -0
- package/dist/components/ui/Divider/Divider.d.ts +19 -0
- package/dist/components/ui/Divider/index.d.ts +2 -0
- package/dist/components/ui/DropdownMenu/DropdownMenu.d.ts +15 -0
- package/dist/components/ui/DropdownMenu/index.d.ts +2 -0
- package/dist/components/ui/Flex/Flex.d.ts +19 -0
- package/dist/components/ui/Flex/index.d.ts +2 -0
- package/dist/components/ui/FloatingButton/FloatingButton.d.ts +13 -0
- package/dist/components/ui/FloatingButton/index.d.ts +2 -0
- package/dist/components/ui/Form/Form.d.ts +13 -0
- package/dist/components/ui/Form/index.d.ts +2 -0
- package/dist/components/ui/Grid/Grid.d.ts +28 -0
- package/dist/components/ui/Grid/index.d.ts +2 -0
- package/dist/components/ui/IconButton/IconButton.d.ts +22 -0
- package/dist/components/ui/IconButton/index.d.ts +2 -0
- package/dist/components/ui/InputLabel/InputLabel.d.ts +12 -0
- package/dist/components/ui/InputLabel/index.d.ts +3 -0
- package/dist/components/ui/Label/Label.d.ts +12 -0
- package/dist/components/ui/Label/index.d.ts +2 -0
- package/dist/components/ui/Menu/Menu.d.ts +20 -0
- package/dist/components/ui/Menu/index.d.ts +2 -0
- package/dist/components/ui/MobileMenu/MobileMenu.d.ts +31 -0
- package/dist/components/ui/MobileMenu/index.d.ts +2 -0
- package/dist/components/ui/Notification/Notification.d.ts +13 -0
- package/dist/components/ui/Notification/index.d.ts +2 -0
- package/dist/components/ui/Pagination/Pagination.d.ts +31 -0
- package/dist/components/ui/Pagination/index.d.ts +2 -0
- package/dist/components/ui/PieChart/PieChart.d.ts +40 -0
- package/dist/components/ui/PieChart/index.d.ts +2 -0
- package/dist/components/ui/Progress/Progress.d.ts +11 -0
- package/dist/components/ui/Progress/index.d.ts +2 -0
- package/dist/components/ui/Radio/Group.d.ts +20 -0
- package/dist/components/ui/Radio/Radio.d.ts +15 -0
- package/dist/components/ui/Radio/index.d.ts +4 -0
- package/dist/components/ui/ScrollArea/ScrollArea.d.ts +4 -0
- package/dist/components/ui/ScrollArea/ScrollBar.d.ts +8 -0
- package/dist/components/ui/ScrollArea/index.d.ts +3 -0
- package/dist/components/ui/Searchbar/Searchbar.d.ts +22 -0
- package/dist/components/ui/Searchbar/index.d.ts +2 -0
- package/dist/components/ui/Select/Select.d.ts +35 -0
- package/dist/components/ui/Select/index.d.ts +2 -0
- package/dist/components/ui/Select2/RHFSelect2Controller.d.ts +12 -0
- package/dist/components/ui/Select2/Select2.d.ts +27 -0
- package/dist/components/ui/Select2/index.d.ts +3 -0
- package/dist/components/ui/Skeleton/Skeleton.d.ts +11 -0
- package/dist/components/ui/Skeleton/index.d.ts +2 -0
- package/dist/components/ui/Snackbar/Snackbar.d.ts +56 -0
- package/dist/components/ui/Snackbar/index.d.ts +2 -0
- package/dist/components/ui/Switch/Switch.d.ts +20 -0
- package/dist/components/ui/Switch/index.d.ts +2 -0
- package/dist/components/ui/Table/Table.d.ts +103 -0
- package/dist/components/ui/Table/index.d.ts +2 -0
- package/dist/components/ui/Table2/AddButton.d.ts +15 -0
- package/dist/components/ui/Table2/Body.d.ts +0 -0
- package/dist/components/ui/Table2/BodyItem.d.ts +0 -0
- package/dist/components/ui/Table2/Box.d.ts +1 -0
- package/dist/components/ui/Table2/Buttons.d.ts +23 -0
- package/dist/components/ui/Table2/CelButton.d.ts +12 -0
- package/dist/components/ui/Table2/Cell.d.ts +23 -0
- package/dist/components/ui/Table2/CellCheckbox.d.ts +12 -0
- package/dist/components/ui/Table2/CellCheckboxN.d.ts +6 -0
- package/dist/components/ui/Table2/CellCustom.d.ts +7 -0
- package/dist/components/ui/Table2/CellDate.d.ts +8 -0
- package/dist/components/ui/Table2/CellDatePicker.d.ts +13 -0
- package/dist/components/ui/Table2/CellFrontCheckbox.d.ts +10 -0
- package/dist/components/ui/Table2/CellInput.d.ts +14 -0
- package/dist/components/ui/Table2/CellInputEng.d.ts +0 -0
- package/dist/components/ui/Table2/CellInputNumber.d.ts +0 -0
- package/dist/components/ui/Table2/CellModal.d.ts +17 -0
- package/dist/components/ui/Table2/CellSelect.d.ts +15 -0
- package/dist/components/ui/Table2/CellText.d.ts +10 -0
- package/dist/components/ui/Table2/CellTextarea.d.ts +13 -0
- package/dist/components/ui/Table2/Header.d.ts +8 -0
- package/dist/components/ui/Table2/HeaderItem.d.ts +8 -0
- package/dist/components/ui/Table2/Pagination.d.ts +10 -0
- package/dist/components/ui/Table2/RemoveButton.d.ts +15 -0
- package/dist/components/ui/Table2/Row.d.ts +24 -0
- package/dist/components/ui/Table2/Rows.d.ts +25 -0
- package/dist/components/ui/Table2/SaveButton.d.ts +11 -0
- package/dist/components/ui/Table2/Table2.d.ts +69 -0
- package/dist/components/ui/Table2/TableProvider.d.ts +0 -0
- package/dist/components/ui/Table2/Title.d.ts +5 -0
- package/dist/components/ui/Table2/TitleContainer.d.ts +28 -0
- package/dist/components/ui/Table2/Total.d.ts +5 -0
- package/dist/components/ui/Table2/emptyMessage.d.ts +1 -0
- package/dist/components/ui/Table2/index.d.ts +2 -0
- package/dist/components/ui/Table2/useElementHeight.d.ts +3 -0
- package/dist/components/ui/Tabs/Tabs.d.ts +33 -0
- package/dist/components/ui/Tabs/index.d.ts +2 -0
- package/dist/components/ui/Tag/Tag.d.ts +20 -0
- package/dist/components/ui/Tag/index.d.ts +2 -0
- package/dist/components/ui/TextField/TextField.d.ts +33 -0
- package/dist/components/ui/TextField/index.d.ts +2 -0
- package/dist/components/ui/TextField2/RHFTextField2Controller.d.ts +11 -0
- package/dist/components/ui/TextField2/TextField2.d.ts +19 -0
- package/dist/components/ui/TextField2/index.d.ts +3 -0
- package/dist/components/ui/Tooltip/Tooltip.d.ts +30 -0
- package/dist/components/ui/Tooltip/index.d.ts +2 -0
- package/dist/components/ui/TransferList/TransferList.d.ts +11 -0
- package/dist/components/ui/TransferList/index.d.ts +2 -0
- package/dist/components/ui/TreeView/TreeView.d.ts +49 -0
- package/dist/components/ui/TreeView/index.d.ts +2 -0
- package/dist/components/ui/Typography/Typography.d.ts +24 -0
- package/dist/components/ui/Typography/index.d.ts +2 -0
- package/dist/emptyBox.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/fone-design-system.es.js +82974 -0
- package/dist/fone-design-system.umd.js +710 -0
- package/dist/fone-design-system_v2.css +1 -0
- package/dist/happy.jpg +0 -0
- package/dist/index.d.ts +46 -0
- package/dist/lib/createEmotionCache.d.ts +1 -0
- package/dist/lib/dayjsSetup.d.ts +2 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/pages/_app.d.ts +5 -0
- package/dist/pages/_document.d.ts +3 -0
- package/dist/pages/api/hello.d.ts +6 -0
- package/dist/pages/index.d.ts +1 -0
- package/dist/react-datepicker.css +756 -0
- package/dist/styles.css +2112 -0
- package/dist/styles.css.map +1 -0
- package/dist/theme/theme.d.ts +1 -0
- package/package.json +107 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColumnDef, ColumnFiltersState, ColumnSizingState, OnChangeFn, PaginationState, RowSelectionState, Updater } from '@tanstack/react-table';
|
|
3
|
+
export interface TableProps<T extends object> {
|
|
4
|
+
/** 테이블 데이터 */
|
|
5
|
+
data: T[];
|
|
6
|
+
/** 테이블 컬럼 정의 */
|
|
7
|
+
columns: ColumnDef<T, unknown>[];
|
|
8
|
+
/** 셀 변경 핸들러 */
|
|
9
|
+
onChangeCell?: (rowIndex: number, columnId: keyof T, value: string) => void;
|
|
10
|
+
/** 체크박스 활성화 여부 */
|
|
11
|
+
checkbox?: boolean;
|
|
12
|
+
/** 체크박스 크기 */
|
|
13
|
+
checkboxSize?: "small" | "medium" | "large";
|
|
14
|
+
/** 체크박스 색상 */
|
|
15
|
+
checkboxColor?: string;
|
|
16
|
+
/** 체크박스 선택 데이터 */
|
|
17
|
+
setCheckedDatas?: (data: T[]) => void;
|
|
18
|
+
/** 정렬 on/off */
|
|
19
|
+
sorting?: boolean;
|
|
20
|
+
/** 페이지네이션 옵션
|
|
21
|
+
*
|
|
22
|
+
* pageIndex: 페이지 인덱스
|
|
23
|
+
* pageSize: 페이지 크기
|
|
24
|
+
*
|
|
25
|
+
* ex) {pageIndex: number, pageSize: number}
|
|
26
|
+
*/
|
|
27
|
+
pagination?: PaginationState & {
|
|
28
|
+
total: number;
|
|
29
|
+
};
|
|
30
|
+
/** 페이지네이션 변경 핸들러 */
|
|
31
|
+
onPaginationChange?: (updater: Updater<PaginationState> & {
|
|
32
|
+
total: number;
|
|
33
|
+
}) => void;
|
|
34
|
+
/** 필터 상태 */
|
|
35
|
+
columnFilters?: ColumnFiltersState;
|
|
36
|
+
/** 필터 변경 핸들러 */
|
|
37
|
+
onColumnFiltersChange?: (filter: ColumnFiltersState) => void;
|
|
38
|
+
/** 로딩 상태 */
|
|
39
|
+
isLoading?: boolean;
|
|
40
|
+
/** 초기 로딩 상태 */
|
|
41
|
+
isInitialLoading?: boolean;
|
|
42
|
+
/** 테이블 클래스명 */
|
|
43
|
+
className?: string;
|
|
44
|
+
/** 행 갯수 */
|
|
45
|
+
rowHeight?: number;
|
|
46
|
+
/** 컬럼 리사이즈 활성화 여부 */
|
|
47
|
+
resize?: boolean;
|
|
48
|
+
/** 컬럼 리사이즈 변경 핸들러 */
|
|
49
|
+
onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
|
|
50
|
+
/** 행 선택 변경 핸들러 */
|
|
51
|
+
onRowSelectionChange?: OnChangeFn<RowSelectionState>;
|
|
52
|
+
/** 테이블 제목 */
|
|
53
|
+
title?: string;
|
|
54
|
+
/** 스크롤 핸들러 */
|
|
55
|
+
onScroll?: () => void;
|
|
56
|
+
/** pagination 모드 */
|
|
57
|
+
mode?: "infinite" | "pagination";
|
|
58
|
+
/** 선택 옵션 (type이 select일 때만 사용) */
|
|
59
|
+
selectOptions?: {
|
|
60
|
+
[key in keyof T]?: {
|
|
61
|
+
value: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
/** 모달 열림 핸들러 */
|
|
66
|
+
onModalOpen?: (params: {
|
|
67
|
+
rowIndex: number;
|
|
68
|
+
columnId: keyof T;
|
|
69
|
+
value: any;
|
|
70
|
+
onClose: () => void;
|
|
71
|
+
onChange: (value: any) => void;
|
|
72
|
+
}) => void;
|
|
73
|
+
/** 행 클릭 핸들러 */
|
|
74
|
+
onRowClick?: (rowValue: T) => void;
|
|
75
|
+
/** 저장 핸들러 */
|
|
76
|
+
onSave?: (rowValue: T[]) => void;
|
|
77
|
+
/** 삭제 핸들러 */
|
|
78
|
+
onDelete?: (rowValue: T[]) => void;
|
|
79
|
+
/** 추가 핸들러 */
|
|
80
|
+
addRow?: () => void;
|
|
81
|
+
/** 추가 버튼 */
|
|
82
|
+
addButton?: {
|
|
83
|
+
title: string;
|
|
84
|
+
onClick?: () => void;
|
|
85
|
+
}[];
|
|
86
|
+
/** 행 참조 */
|
|
87
|
+
rowRefs?: React.RefObject<HTMLTableRowElement[]>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Tanstack Table을 사용한 공용 테이블 컴포넌트
|
|
91
|
+
*
|
|
92
|
+
* `columns`와 `data`를 넣어 테이블을 만들 수 있습니다.
|
|
93
|
+
*
|
|
94
|
+
* `columns`의 `header`는 테이블의 열 이름입니다.
|
|
95
|
+
*
|
|
96
|
+
* `data`의 키 값과 `columns`의 `accessorKey` 값이 같아야 해당 데이터가 표시됩니다.
|
|
97
|
+
*
|
|
98
|
+
* `data`의 각 요소는 `columns`의 각 요소와 매칭됩니다.
|
|
99
|
+
*/
|
|
100
|
+
export declare function Table<T extends object>({ data, columns, checkbox, checkboxSize, checkboxColor, sorting, setCheckedDatas, mode, pagination, onPaginationChange, isLoading, isInitialLoading, onScroll, className, resize, onColumnSizingChange, title, rowHeight, onRowClick, onSave, addButton, addRow, onDelete, rowRefs, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
export declare namespace Table {
|
|
102
|
+
var displayName: string;
|
|
103
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Box(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
buttons: React.ReactNode;
|
|
12
|
+
isPlusButton: boolean;
|
|
13
|
+
onAddFn?: () => void;
|
|
14
|
+
isAddRowActive?: boolean;
|
|
15
|
+
clickedRowIndex: number;
|
|
16
|
+
setClickedRowIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
17
|
+
onDelFn?: () => 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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 CelButton: <T extends object>({ align, cell, setCurrentEditingCell, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default CelButton;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
cell: TableCell<T, unknown>;
|
|
4
|
+
idx: number;
|
|
5
|
+
isHover: boolean;
|
|
6
|
+
isClicked: boolean;
|
|
7
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
8
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
9
|
+
setCurrentEditingCell: React.Dispatch<React.SetStateAction<{
|
|
10
|
+
rowIndex: number;
|
|
11
|
+
columnId: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}>>;
|
|
14
|
+
radio: boolean;
|
|
15
|
+
rowSelection: Record<string, boolean>;
|
|
16
|
+
pagination?: {
|
|
17
|
+
page: number;
|
|
18
|
+
size: number;
|
|
19
|
+
};
|
|
20
|
+
isScrollHighlighted: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const Cell: <T extends object>({ cell, idx, isHover, isClicked, setTableData, setRowSelection, setCurrentEditingCell, radio, rowSelection, pagination, isScrollHighlighted, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Cell;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
id: string;
|
|
4
|
+
align?: "start" | "center" | "end" | "right";
|
|
5
|
+
cell: TableCell<T, unknown>;
|
|
6
|
+
isHover: boolean;
|
|
7
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
8
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
9
|
+
radio: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const CellCheckbox: <T extends object>({ cell, setTableData, setRowSelection, radio, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default CellCheckbox;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
cell: TableCell<T, unknown>;
|
|
4
|
+
}
|
|
5
|
+
declare const CellCheckboxN: <T extends object>({ cell }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CellCheckboxN;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
id: string;
|
|
4
|
+
cell: TableCell<T, unknown>;
|
|
5
|
+
}
|
|
6
|
+
declare const CellCustom: <T extends object>({ cell }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CellCustom;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object> {
|
|
3
|
+
cell: TableCell<T, unknown>;
|
|
4
|
+
align?: "start" | "center" | "end" | "right";
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CellDate: <T extends object>({ id, align, cell }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CellDate;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
id: string;
|
|
4
|
+
cell: TableCell<T, unknown>;
|
|
5
|
+
isHover: boolean;
|
|
6
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
9
|
+
isClicked: boolean;
|
|
10
|
+
radio: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const CellDatePicker: <T extends object>({ cell, isHover, setTableData, isSelected, setRowSelection, isClicked, radio, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default CellDatePicker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object> {
|
|
3
|
+
cell: TableCell<T, unknown>;
|
|
4
|
+
align?: "start" | "center" | "end" | "right";
|
|
5
|
+
radio: boolean;
|
|
6
|
+
rowSelection: Record<string, boolean>;
|
|
7
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
8
|
+
}
|
|
9
|
+
declare const CellFrontCheckbox: <T extends object>({ align, cell, radio, rowSelection, setRowSelection, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default CellFrontCheckbox;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
id: string;
|
|
4
|
+
align?: "start" | "center" | "right" | "end";
|
|
5
|
+
cell: TableCell<T, unknown>;
|
|
6
|
+
isHover: boolean;
|
|
7
|
+
isClicked: boolean;
|
|
8
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
9
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
10
|
+
radio: boolean;
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
declare const CellInput: <T extends object>({ align, cell, isHover, isClicked, setTableData, setRowSelection, radio, type, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default CellInput;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
align?: "start" | "center" | "end" | "right";
|
|
4
|
+
cell: TableCell<T, unknown>;
|
|
5
|
+
isHover: boolean;
|
|
6
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
7
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
setCurrentEditingCell: React.Dispatch<React.SetStateAction<{
|
|
10
|
+
rowIndex: number;
|
|
11
|
+
columnId: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}>>;
|
|
14
|
+
radio: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const CellModal: <T extends object>({ align, cell, isHover, setTableData, setRowSelection, setCurrentEditingCell, radio, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default CellModal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
id: string;
|
|
4
|
+
align?: "start" | "center" | "end" | "right";
|
|
5
|
+
cell: TableCell<T, unknown>;
|
|
6
|
+
isHover: boolean;
|
|
7
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
10
|
+
isClicked: boolean;
|
|
11
|
+
radio: boolean;
|
|
12
|
+
isScrollHighlighted: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const CellSelect: <T extends object>({ align, cell, isHover, setTableData, isSelected, isClicked, setRowSelection, radio, isScrollHighlighted, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default CellSelect;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
id: string;
|
|
4
|
+
align?: "start" | "center" | "end" | "right";
|
|
5
|
+
cell: TableCell<T, unknown>;
|
|
6
|
+
isHover: boolean;
|
|
7
|
+
isClicked: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const CellText: <T extends object>({ align, cell, isHover, isClicked, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default CellText;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Cell as TableCell } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
id: string;
|
|
4
|
+
align?: "start" | "center" | "right" | "end";
|
|
5
|
+
cell: TableCell<T, unknown>;
|
|
6
|
+
isHover: boolean;
|
|
7
|
+
isClicked: boolean;
|
|
8
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
9
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
10
|
+
radio: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const CellTextarea: <T extends object>({ align, cell, isHover, isClicked, setTableData, setRowSelection, radio, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default CellTextarea;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Table as ReactTable } from '@tanstack/react-table';
|
|
3
|
+
interface Props<T extends object = any> {
|
|
4
|
+
table: ReactTable<T>;
|
|
5
|
+
headerGroupsLength: number;
|
|
6
|
+
}
|
|
7
|
+
declare const Header: React.ForwardRefExoticComponent<Props<any> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default Header;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Header } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
header: Header<T, unknown>;
|
|
4
|
+
idx: number;
|
|
5
|
+
headerGroupsLength: number;
|
|
6
|
+
}
|
|
7
|
+
declare const HeaderItem: <T extends object>({ header, idx, headerGroupsLength, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default HeaderItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface PaginationProps {
|
|
3
|
+
page: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
totalElements: number;
|
|
6
|
+
size: number;
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
10
|
+
export default Pagination;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
tableData: T[];
|
|
6
|
+
onDelete?: (checkedRows: T[]) => void;
|
|
7
|
+
table: ReactTable<T>;
|
|
8
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
9
|
+
setIsWarning: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
+
setWarningText: React.Dispatch<React.SetStateAction<string>>;
|
|
11
|
+
onDelFn?: () => void;
|
|
12
|
+
deleteAllData?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const RemoveButton: <T>({ rowSelection, table, tableData, setTableData, onDelete, setRowSelection, setIsWarning, setWarningText, onDelFn, deleteAllData, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default RemoveButton;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Row as tableRow } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
row: tableRow<T>;
|
|
4
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
5
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
6
|
+
onRowClick?: (row: T, rowIndex: number) => void;
|
|
7
|
+
onRowDoubleClick?: (row: T, rowIndex: number) => void;
|
|
8
|
+
setCurrentEditingCell: React.Dispatch<React.SetStateAction<{
|
|
9
|
+
rowIndex: number;
|
|
10
|
+
columnId: string;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
}>>;
|
|
13
|
+
isScrollHighlighted?: boolean;
|
|
14
|
+
isClicked?: boolean;
|
|
15
|
+
radio: boolean;
|
|
16
|
+
rowSelection: Record<string, boolean>;
|
|
17
|
+
isClickedCheckbox: boolean;
|
|
18
|
+
pagination?: {
|
|
19
|
+
page: number;
|
|
20
|
+
size: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
declare const Row: import('react').ForwardRefExoticComponent<Props<any> & import('react').RefAttributes<HTMLDivElement>>;
|
|
24
|
+
export default Row;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Table as ReactTable } from '@tanstack/react-table';
|
|
2
|
+
interface Props<T extends object = any> {
|
|
3
|
+
table: ReactTable<T>;
|
|
4
|
+
setTableData: React.Dispatch<React.SetStateAction<T[]>>;
|
|
5
|
+
setRowSelection: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
onRowClick?: (row: T, rowIndex: number) => void;
|
|
8
|
+
onRowDoubleClick?: (row: T, rowIndex: number) => void;
|
|
9
|
+
scrollTo?: number;
|
|
10
|
+
clickedRowIndex: number;
|
|
11
|
+
setCurrentEditingCell: React.Dispatch<React.SetStateAction<{
|
|
12
|
+
rowIndex: number;
|
|
13
|
+
columnId: string;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
}>>;
|
|
16
|
+
radio: boolean;
|
|
17
|
+
rowSelection: Record<string, boolean>;
|
|
18
|
+
isClickedCheckbox: boolean;
|
|
19
|
+
pagination?: {
|
|
20
|
+
page: number;
|
|
21
|
+
size: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare const Rows: import('react').ForwardRefExoticComponent<Props<any> & import('react').RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export default Rows;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColumnDef as TanstackColumnDef } from '@tanstack/react-table';
|
|
3
|
+
export type ColumnDef<T extends object> = TanstackColumnDef<T> & {
|
|
4
|
+
width?: string;
|
|
5
|
+
align?: "start" | "center" | "right";
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
type?: "input" | "select" | "checkbox" | "checkboxN" | "datePicker" | "modal" | "button" | "text" | "date" | ((row: T) => "input" | "select" | "checkbox" | "checkboxN" | "datePicker" | "modal" | "button" | "custom" | "text" | "date") | string;
|
|
8
|
+
selectItems?: {
|
|
9
|
+
value: string | number;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
required?: boolean;
|
|
13
|
+
modalFn?: ((row: T) => void) | (() => void);
|
|
14
|
+
setSort?: React.Dispatch<React.SetStateAction<string[]>>;
|
|
15
|
+
button?: React.ReactNode | ((row: T) => React.ReactNode);
|
|
16
|
+
ellipsis?: boolean;
|
|
17
|
+
onCellChange?: (row: T) => void;
|
|
18
|
+
role?: "group";
|
|
19
|
+
select?: boolean;
|
|
20
|
+
all?: boolean;
|
|
21
|
+
tags?: (row: T) => React.ReactNode[];
|
|
22
|
+
disabled?: (row: T) => boolean | boolean;
|
|
23
|
+
uniqueCheck?: (rows: T[], currentRow: T) => boolean;
|
|
24
|
+
isOnly?: boolean;
|
|
25
|
+
maxLength?: number;
|
|
26
|
+
numRange?: number[];
|
|
27
|
+
component?: (row: T) => React.ReactNode;
|
|
28
|
+
};
|
|
29
|
+
export interface Table2Props<T extends object> {
|
|
30
|
+
data: T[] | undefined;
|
|
31
|
+
columns: ColumnDef<T>[];
|
|
32
|
+
No?: boolean;
|
|
33
|
+
checkbox?: boolean;
|
|
34
|
+
radio?: boolean;
|
|
35
|
+
onChecked?: (checkedRows: T[]) => void;
|
|
36
|
+
onDelete?: (checkedRows: T[]) => void;
|
|
37
|
+
onSave?: (checkedRows: T[], allRows: T[]) => void;
|
|
38
|
+
onRowClick?: (row: T, rowIndex: number) => void;
|
|
39
|
+
onRowDoubleClick?: (row: T, rowIndex: number) => void;
|
|
40
|
+
title?: string;
|
|
41
|
+
isTotal?: boolean;
|
|
42
|
+
deleteAllData?: boolean;
|
|
43
|
+
buttons?: React.ReactNode;
|
|
44
|
+
isLoading?: boolean;
|
|
45
|
+
isPlusButton?: boolean;
|
|
46
|
+
scrollTo?: number;
|
|
47
|
+
modalData?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
} | string;
|
|
50
|
+
onAddFn?: () => void;
|
|
51
|
+
pagination?: {
|
|
52
|
+
page: number;
|
|
53
|
+
size: number;
|
|
54
|
+
totalElements: number;
|
|
55
|
+
totalPages: number;
|
|
56
|
+
onPageChange: (page: number) => void;
|
|
57
|
+
};
|
|
58
|
+
isAddRowActive?: boolean;
|
|
59
|
+
onModalApplied?: () => void;
|
|
60
|
+
rowClickTriggerIdx?: number;
|
|
61
|
+
onDelFn?: () => void;
|
|
62
|
+
isClickedCheckbox?: boolean;
|
|
63
|
+
onTableDataChange?: (data: T[]) => void;
|
|
64
|
+
checkboxCheckedIdx?: number;
|
|
65
|
+
selectedItems?: any[];
|
|
66
|
+
setSelectedItems?: React.Dispatch<React.SetStateAction<any[]>>;
|
|
67
|
+
}
|
|
68
|
+
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, }: Table2Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export default Table2;
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
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;
|
|
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?: () => void;
|
|
23
|
+
deleteAllData?: boolean;
|
|
24
|
+
radio: boolean;
|
|
25
|
+
scrollAreaRef: React.RefObject<HTMLDivElement | null>;
|
|
26
|
+
}
|
|
27
|
+
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, }: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default TitleContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EmptyMessage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { TabsProps as MuiTabsProps } from '@mui/material/Tabs';
|
|
4
|
+
export interface TabsProps extends MuiTabsProps {
|
|
5
|
+
/** 현재 선택된 탭의 인덱스 */
|
|
6
|
+
value: number;
|
|
7
|
+
/** 탭 변경 이벤트 핸들러 */
|
|
8
|
+
onChange: (event: React.SyntheticEvent, newValue: number) => void;
|
|
9
|
+
/** 탭 방향 */
|
|
10
|
+
orientation?: "horizontal" | "vertical";
|
|
11
|
+
/** 탭 변형 */
|
|
12
|
+
variant?: "standard" | "scrollable" | "fullWidth";
|
|
13
|
+
/** 탭 항목 목록 */
|
|
14
|
+
items: {
|
|
15
|
+
label: string;
|
|
16
|
+
content: React.ReactNode;
|
|
17
|
+
key: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
icon?: React.ReactNode;
|
|
20
|
+
iconPosition?: "start" | "end" | "top" | "bottom";
|
|
21
|
+
}[];
|
|
22
|
+
/** 탭 텍스트 색상 */
|
|
23
|
+
textColor?: "inherit" | "primary" | "secondary";
|
|
24
|
+
/** 탭 인디케이터 색상 */
|
|
25
|
+
indicatorColor?: "primary" | "secondary";
|
|
26
|
+
/** 탭 선택 포커스 여부 */
|
|
27
|
+
selectionFollowsFocus?: boolean;
|
|
28
|
+
/** MUI에서 제공하는 스타일 속성 */
|
|
29
|
+
sx?: SxProps<Theme>;
|
|
30
|
+
}
|
|
31
|
+
/** 콘텐츠를 구분하여 표시하는 탭 컴포넌트 */
|
|
32
|
+
declare const Tabs: ({ value, onChange, orientation, variant, items, sx, textColor, indicatorColor, selectionFollowsFocus, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default Tabs;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChipProps } from '@mui/material/Chip';
|
|
3
|
+
export interface TagProps extends ChipProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
/** 태그의 스타일 */
|
|
6
|
+
variant?: "filled" | "outlined";
|
|
7
|
+
/** 태그의 크기 */
|
|
8
|
+
size?: "small" | "medium";
|
|
9
|
+
/** 태그의 라벨(텍스트) */
|
|
10
|
+
label: string;
|
|
11
|
+
/** 태그의 색상 */
|
|
12
|
+
color?: "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning";
|
|
13
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
14
|
+
onDelete?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
component?: React.ElementType;
|
|
17
|
+
href?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const Tag: ({ className, label, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Tag;
|