@akinon/akitable 0.5.0 → 1.0.0
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/cjs/akitable.d.ts +11 -0
- package/dist/cjs/akitable.d.ts.map +1 -1
- package/dist/cjs/akitable.js +11 -0
- package/dist/cjs/components/datatable.css +59 -17
- package/dist/cjs/components/datatable.d.ts.map +1 -1
- package/dist/cjs/components/datatable.js +5 -1
- package/dist/cjs/components/pagination.d.ts.map +1 -1
- package/dist/cjs/components/pagination.js +5 -2
- package/dist/cjs/types.d.ts +94 -0
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/akitable.d.ts +11 -0
- package/dist/esm/akitable.d.ts.map +1 -1
- package/dist/esm/akitable.js +11 -0
- package/dist/esm/components/datatable.css +59 -17
- package/dist/esm/components/datatable.d.ts.map +1 -1
- package/dist/esm/components/datatable.js +5 -1
- package/dist/esm/components/pagination.d.ts.map +1 -1
- package/dist/esm/components/pagination.js +5 -2
- package/dist/esm/types.d.ts +94 -0
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +21 -21
package/dist/cjs/akitable.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import './akitable.css';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AkitableProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Akitable component for Akinon UI.
|
|
6
|
+
*
|
|
7
|
+
* The Akitable component is a versatile and feature-rich table component designed for displaying,
|
|
8
|
+
* editing, and interacting with tabular data. It supports custom columns, pagination, row actions,
|
|
9
|
+
* and event callbacks for enhanced user experience and flexibility.
|
|
10
|
+
*
|
|
11
|
+
* Features include row click/edit actions, customizable headers and footers, pagination controls,
|
|
12
|
+
* and integration with Akinon design system standards. It is ideal for complex data visualization
|
|
13
|
+
* needs in enterprise applications.
|
|
14
|
+
*/
|
|
4
15
|
export declare const Akitable: (props: AkitableProps) => React.JSX.Element;
|
|
5
16
|
//# sourceMappingURL=akitable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"akitable.d.ts","sourceRoot":"","sources":["../../src/akitable.tsx"],"names":[],"mappings":"AACA,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAuC,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,eAAO,MAAM,QAAQ,UAAW,aAAa,sBAgE5C,CAAC"}
|
|
1
|
+
{"version":3,"file":"akitable.d.ts","sourceRoot":"","sources":["../../src/akitable.tsx"],"names":[],"mappings":"AACA,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAuC,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,QAAQ,UAAW,aAAa,sBAgE5C,CAAC"}
|
package/dist/cjs/akitable.js
CHANGED
|
@@ -13,6 +13,17 @@ const datatable_1 = require("./components/datatable");
|
|
|
13
13
|
const error_1 = require("./components/error");
|
|
14
14
|
const footer_1 = require("./components/footer");
|
|
15
15
|
const header_1 = require("./components/header");
|
|
16
|
+
/**
|
|
17
|
+
* Akitable component for Akinon UI.
|
|
18
|
+
*
|
|
19
|
+
* The Akitable component is a versatile and feature-rich table component designed for displaying,
|
|
20
|
+
* editing, and interacting with tabular data. It supports custom columns, pagination, row actions,
|
|
21
|
+
* and event callbacks for enhanced user experience and flexibility.
|
|
22
|
+
*
|
|
23
|
+
* Features include row click/edit actions, customizable headers and footers, pagination controls,
|
|
24
|
+
* and integration with Akinon design system standards. It is ideal for complex data visualization
|
|
25
|
+
* needs in enterprise applications.
|
|
26
|
+
*/
|
|
16
27
|
const Akitable = (props) => {
|
|
17
28
|
const { actions, columns, data, footer, header, isLoading, pagination, rowKey, onPaginationChanged, onRowClick, onRowEdit } = props;
|
|
18
29
|
let parsedData = [];
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
.
|
|
1
|
+
.akitable-wrapper {
|
|
2
|
+
margin-left: -1.5rem;
|
|
3
|
+
margin-right: -1.5rem;
|
|
4
|
+
margin-bottom: 1rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.akitable-wrapper .akinon-table-wrapper .akinon-table-thead > tr > th {
|
|
2
8
|
text-transform: uppercase;
|
|
3
9
|
font-size: 0.75rem;
|
|
4
10
|
font-weight: 600;
|
|
@@ -6,50 +12,86 @@
|
|
|
6
12
|
padding-top: 0.65rem;
|
|
7
13
|
}
|
|
8
14
|
|
|
9
|
-
.akitable-wrapper {
|
|
10
|
-
margin-left: -1.5rem;
|
|
11
|
-
margin-right: -1.5rem;
|
|
12
|
-
margin-bottom: 1rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.akinon-table-content {
|
|
15
|
+
.akitable-wrapper .akinon-table-content {
|
|
16
16
|
scrollbar-color: auto;
|
|
17
17
|
scrollbar-width: auto;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.akinon-table-content::-webkit-scrollbar {
|
|
20
|
+
.akitable-wrapper .akinon-table-content::-webkit-scrollbar {
|
|
21
21
|
height: 8px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.akinon-table-content::-webkit-scrollbar-track {
|
|
24
|
+
.akitable-wrapper .akinon-table-content::-webkit-scrollbar-track {
|
|
25
25
|
background-color: var(--color-neutral-100);
|
|
26
26
|
border: none;
|
|
27
27
|
padding: 1px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.akinon-table-content::-webkit-scrollbar-thumb {
|
|
30
|
+
.akitable-wrapper .akinon-table-content::-webkit-scrollbar-thumb {
|
|
31
31
|
background-color: var(--color-neutral-300);
|
|
32
32
|
border-radius: 3px;
|
|
33
33
|
border: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* Add background for alternate rows. */
|
|
37
|
-
.akinon-table-row:nth-child(odd)
|
|
38
|
-
background-color: var(--color-neutral-
|
|
37
|
+
.akitable-wrapper .akinon-table-row:nth-child(odd) {
|
|
38
|
+
background-color: var(--color-neutral-75);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.akinon-table-row.is-selectable {
|
|
41
|
+
.akitable-wrapper .akinon-table-row.is-selectable {
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.akinon-table-row.is-selectable td {
|
|
45
|
+
.akitable-wrapper .akinon-table-row.is-selectable td {
|
|
46
46
|
transition: background-color 0.2s;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.akinon-table-row.is-selectable:hover td {
|
|
49
|
+
.akitable-wrapper .akinon-table-row.is-selectable:hover td {
|
|
50
50
|
background-color: var(--color-blue-100) !important;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.
|
|
53
|
+
.akitable-wrapper
|
|
54
|
+
.akinon-table-row.is-selectable:hover
|
|
55
|
+
td[class*='akinon-table-cell-fix-'] {
|
|
54
56
|
background-color: var(--color-blue-200) !important;
|
|
55
57
|
}
|
|
58
|
+
|
|
59
|
+
.akitable-wrapper .akinon-table-row.akitable-row-pending {
|
|
60
|
+
background-color: var(--color-green-952-10);
|
|
61
|
+
position: relative;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.akitable-wrapper .akinon-table-row.akitable-row-pending::after {
|
|
65
|
+
content: '';
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
background: repeating-linear-gradient(
|
|
72
|
+
60deg,
|
|
73
|
+
transparent 0px,
|
|
74
|
+
transparent 18px,
|
|
75
|
+
var(--color-green-952-15) 18px,
|
|
76
|
+
var(--color-green-952-15) 36px,
|
|
77
|
+
transparent 36px
|
|
78
|
+
);
|
|
79
|
+
animation: shimmer 20s linear infinite;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes shimmer {
|
|
83
|
+
0% {
|
|
84
|
+
left: -100%;
|
|
85
|
+
}
|
|
86
|
+
100% {
|
|
87
|
+
left: -4.82596083%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.akitable-wrapper .akinon-table-row.akitable-row-error {
|
|
92
|
+
background-color: var(--color-red-425-10);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.akitable-wrapper .akinon-table-tbody tr:last-child td {
|
|
96
|
+
border-bottom: 1px solid var(--color-neutral-350);
|
|
97
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../../src/components/datatable.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAOzB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAgC,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAIhF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,
|
|
1
|
+
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../../src/components/datatable.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAOzB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAgC,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAIhF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,sBA4H9D,CAAC"}
|
|
@@ -77,6 +77,10 @@ const AkitableDataTable = (props) => {
|
|
|
77
77
|
onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(record, event, rowIndex);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
}, rowClassName: (0, clsx_1.default)({
|
|
80
|
+
}, rowClassName: (record) => (0, clsx_1.default)({
|
|
81
|
+
'is-selectable': !!onRowClick,
|
|
82
|
+
'akitable-row-pending': record.rowStatus === 'pending',
|
|
83
|
+
'akitable-row-error': record.rowStatus === 'error'
|
|
84
|
+
}), rowSelection: hasActions ? rowSelection : undefined }))));
|
|
81
85
|
};
|
|
82
86
|
exports.AkitableDataTable = AkitableDataTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,kBAAkB,yBA2B9B,CAAC"}
|
|
@@ -10,8 +10,11 @@ const AkitablePagination = () => {
|
|
|
10
10
|
const { isLoading, pagination, onPaginationChanged } = (0, akitable_context_1.useAkitableContext)();
|
|
11
11
|
const { t } = i18n_1.i18n;
|
|
12
12
|
return (react_1.default.createElement("div", null,
|
|
13
|
-
react_1.default.createElement(ui_pagination_1.Pagination, {
|
|
13
|
+
react_1.default.createElement(ui_pagination_1.Pagination, { disabled: isLoading || ((pagination === null || pagination === void 0 ? void 0 : pagination.total) || 0) === 0, current: pagination === null || pagination === void 0 ? void 0 : pagination.page, pageSize: pagination === null || pagination === void 0 ? void 0 : pagination.size, pageSizeOptions: [20, 50, 100, 250], total: (pagination === null || pagination === void 0 ? void 0 : pagination.total) || 0, showTotal: (total, range) => `${range[0]}-${range[1]} of ${total} items`, showSizeChanger: true, onChange: (page, size) => {
|
|
14
|
+
onPaginationChanged === null || onPaginationChanged === void 0 ? void 0 : onPaginationChanged(page, size);
|
|
15
|
+
return null;
|
|
16
|
+
}, locale: {
|
|
14
17
|
items_per_page: t('itemsPerPage')
|
|
15
|
-
} })));
|
|
18
|
+
}, theme: "light" })));
|
|
16
19
|
};
|
|
17
20
|
exports.AkitablePagination = AkitablePagination;
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -4,52 +4,146 @@ type RowClickEvent = (record: AkitableData, event?: React.MouseEvent<HTMLElement
|
|
|
4
4
|
type RowEditCallback = (modifiedRecord: AkitableData, payload: AkitableData) => void;
|
|
5
5
|
export type PaginationChangeEvent = (page: number, size: number) => void;
|
|
6
6
|
export interface AkitableProps {
|
|
7
|
+
/**
|
|
8
|
+
* Actions available for the table rows.
|
|
9
|
+
*/
|
|
7
10
|
actions?: AkitableAction[];
|
|
11
|
+
/**
|
|
12
|
+
* Columns definition for the table.
|
|
13
|
+
*/
|
|
8
14
|
columns: AkitableColumn[];
|
|
15
|
+
/**
|
|
16
|
+
* Data source for the table.
|
|
17
|
+
*/
|
|
9
18
|
data: AkitableData[] | AkitablePaginatedData;
|
|
19
|
+
/**
|
|
20
|
+
* Header configuration for the table.
|
|
21
|
+
*/
|
|
10
22
|
header?: AkitableHeaderProps;
|
|
23
|
+
/**
|
|
24
|
+
* Footer configuration for the table.
|
|
25
|
+
*/
|
|
11
26
|
footer?: AkitableFooterProps;
|
|
27
|
+
/**
|
|
28
|
+
* Loading state for the table.
|
|
29
|
+
*/
|
|
12
30
|
isLoading?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Pagination configuration for the table.
|
|
33
|
+
*/
|
|
13
34
|
pagination?: AkitablePaginationProps;
|
|
35
|
+
/**
|
|
36
|
+
* Unique key for each table row.
|
|
37
|
+
*/
|
|
14
38
|
rowKey: string;
|
|
39
|
+
/**
|
|
40
|
+
* Callback when pagination changes.
|
|
41
|
+
*/
|
|
15
42
|
onPaginationChanged?: PaginationChangeEvent;
|
|
43
|
+
/**
|
|
44
|
+
* Callback for row click events.
|
|
45
|
+
*/
|
|
16
46
|
onRowClick?: RowClickEvent;
|
|
47
|
+
/**
|
|
48
|
+
* Callback for row edit events.
|
|
49
|
+
*/
|
|
17
50
|
onRowEdit?: RowEditCallback;
|
|
18
51
|
}
|
|
19
52
|
export interface AkitableHeaderProps {
|
|
53
|
+
/**
|
|
54
|
+
* Title of the table header.
|
|
55
|
+
*/
|
|
20
56
|
title?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Additional content for the table header.
|
|
59
|
+
*/
|
|
21
60
|
extra?: ReactNode;
|
|
22
61
|
}
|
|
23
62
|
export interface AkitableFooterProps {
|
|
63
|
+
/**
|
|
64
|
+
* Additional content for the table footer.
|
|
65
|
+
*/
|
|
24
66
|
extra?: ReactNode;
|
|
25
67
|
}
|
|
26
68
|
export interface AkitableDataTableProps {
|
|
69
|
+
/**
|
|
70
|
+
* Columns definition for the table.
|
|
71
|
+
*/
|
|
27
72
|
columns: AkitableColumn[];
|
|
73
|
+
/**
|
|
74
|
+
* Data source for the table.
|
|
75
|
+
*/
|
|
28
76
|
data: AkitableData[];
|
|
77
|
+
/**
|
|
78
|
+
* Unique key for each table row.
|
|
79
|
+
*/
|
|
29
80
|
rowKey: string;
|
|
81
|
+
/**
|
|
82
|
+
* Callback for row click events.
|
|
83
|
+
*/
|
|
30
84
|
onRowClick?: RowClickEvent;
|
|
85
|
+
/**
|
|
86
|
+
* Callback for row edit events.
|
|
87
|
+
*/
|
|
31
88
|
onRowEdit?: RowEditCallback;
|
|
32
89
|
}
|
|
33
90
|
export type AkitablePageSizes = 20 | 50 | 100 | 250;
|
|
34
91
|
export interface AkitablePaginationProps {
|
|
92
|
+
/**
|
|
93
|
+
* Current page number.
|
|
94
|
+
*/
|
|
35
95
|
page: number;
|
|
96
|
+
/**
|
|
97
|
+
* Number of rows per page.
|
|
98
|
+
*/
|
|
36
99
|
size: AkitablePageSizes;
|
|
37
100
|
}
|
|
38
101
|
export interface AkitableColumn extends TableColumnType<AkitableData> {
|
|
102
|
+
/**
|
|
103
|
+
* Whether the column is copyable.
|
|
104
|
+
*/
|
|
39
105
|
copyable?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the column is editable.
|
|
108
|
+
*/
|
|
40
109
|
editable?: boolean;
|
|
41
110
|
}
|
|
42
111
|
export interface AkitableData {
|
|
112
|
+
/**
|
|
113
|
+
* Status of the table row.
|
|
114
|
+
*/
|
|
115
|
+
rowStatus?: 'pending' | 'error';
|
|
116
|
+
/**
|
|
117
|
+
* Additional properties for the table row.
|
|
118
|
+
*/
|
|
43
119
|
[key: string]: any;
|
|
44
120
|
}
|
|
45
121
|
export interface AkitablePaginatedData {
|
|
122
|
+
/**
|
|
123
|
+
* Total count of rows.
|
|
124
|
+
*/
|
|
46
125
|
count: number;
|
|
126
|
+
/**
|
|
127
|
+
* URL for the next set of paginated data.
|
|
128
|
+
*/
|
|
47
129
|
next?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* URL for the previous set of paginated data.
|
|
132
|
+
*/
|
|
48
133
|
previous?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Results of the current page.
|
|
136
|
+
*/
|
|
49
137
|
results: AkitableData[];
|
|
50
138
|
}
|
|
51
139
|
export interface AkitableAction {
|
|
140
|
+
/**
|
|
141
|
+
* Label for the action.
|
|
142
|
+
*/
|
|
52
143
|
label: string;
|
|
144
|
+
/**
|
|
145
|
+
* Callback when the action is selected.
|
|
146
|
+
*/
|
|
53
147
|
onSelect: (selectedRowKeys: React.Key[]) => void;
|
|
54
148
|
}
|
|
55
149
|
export {};
|
package/dist/cjs/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,aAAa,GAAG,CACnB,MAAM,EAAE,YAAY,EACpB,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EACrC,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;AAEV,KAAK,eAAe,GAAG,CACrB,cAAc,EAAE,YAAY,EAC5B,OAAO,EAAE,YAAY,KAClB,IAAI,CAAC;AAEV,MAAM,MAAM,qBAAqB,GAAG,CAAC,IA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,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,CAAC,eAAe,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC;CAClD"}
|
package/dist/esm/akitable.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import './akitable.css';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AkitableProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Akitable component for Akinon UI.
|
|
6
|
+
*
|
|
7
|
+
* The Akitable component is a versatile and feature-rich table component designed for displaying,
|
|
8
|
+
* editing, and interacting with tabular data. It supports custom columns, pagination, row actions,
|
|
9
|
+
* and event callbacks for enhanced user experience and flexibility.
|
|
10
|
+
*
|
|
11
|
+
* Features include row click/edit actions, customizable headers and footers, pagination controls,
|
|
12
|
+
* and integration with Akinon design system standards. It is ideal for complex data visualization
|
|
13
|
+
* needs in enterprise applications.
|
|
14
|
+
*/
|
|
4
15
|
export declare const Akitable: (props: AkitableProps) => React.JSX.Element;
|
|
5
16
|
//# sourceMappingURL=akitable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"akitable.d.ts","sourceRoot":"","sources":["../../src/akitable.tsx"],"names":[],"mappings":"AACA,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAuC,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,eAAO,MAAM,QAAQ,UAAW,aAAa,sBAgE5C,CAAC"}
|
|
1
|
+
{"version":3,"file":"akitable.d.ts","sourceRoot":"","sources":["../../src/akitable.tsx"],"names":[],"mappings":"AACA,OAAO,gBAAgB,CAAC;AAGxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAuC,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,QAAQ,UAAW,aAAa,sBAgE5C,CAAC"}
|
package/dist/esm/akitable.js
CHANGED
|
@@ -10,6 +10,17 @@ import { AkitableDataTable } from './components/datatable';
|
|
|
10
10
|
import { fallbackRender } from './components/error';
|
|
11
11
|
import { AkitableFooter } from './components/footer';
|
|
12
12
|
import { AkitableHeader } from './components/header';
|
|
13
|
+
/**
|
|
14
|
+
* Akitable component for Akinon UI.
|
|
15
|
+
*
|
|
16
|
+
* The Akitable component is a versatile and feature-rich table component designed for displaying,
|
|
17
|
+
* editing, and interacting with tabular data. It supports custom columns, pagination, row actions,
|
|
18
|
+
* and event callbacks for enhanced user experience and flexibility.
|
|
19
|
+
*
|
|
20
|
+
* Features include row click/edit actions, customizable headers and footers, pagination controls,
|
|
21
|
+
* and integration with Akinon design system standards. It is ideal for complex data visualization
|
|
22
|
+
* needs in enterprise applications.
|
|
23
|
+
*/
|
|
13
24
|
export const Akitable = (props) => {
|
|
14
25
|
const { actions, columns, data, footer, header, isLoading, pagination, rowKey, onPaginationChanged, onRowClick, onRowEdit } = props;
|
|
15
26
|
let parsedData = [];
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
.
|
|
1
|
+
.akitable-wrapper {
|
|
2
|
+
margin-left: -1.5rem;
|
|
3
|
+
margin-right: -1.5rem;
|
|
4
|
+
margin-bottom: 1rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.akitable-wrapper .akinon-table-wrapper .akinon-table-thead > tr > th {
|
|
2
8
|
text-transform: uppercase;
|
|
3
9
|
font-size: 0.75rem;
|
|
4
10
|
font-weight: 600;
|
|
@@ -6,50 +12,86 @@
|
|
|
6
12
|
padding-top: 0.65rem;
|
|
7
13
|
}
|
|
8
14
|
|
|
9
|
-
.akitable-wrapper {
|
|
10
|
-
margin-left: -1.5rem;
|
|
11
|
-
margin-right: -1.5rem;
|
|
12
|
-
margin-bottom: 1rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.akinon-table-content {
|
|
15
|
+
.akitable-wrapper .akinon-table-content {
|
|
16
16
|
scrollbar-color: auto;
|
|
17
17
|
scrollbar-width: auto;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.akinon-table-content::-webkit-scrollbar {
|
|
20
|
+
.akitable-wrapper .akinon-table-content::-webkit-scrollbar {
|
|
21
21
|
height: 8px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.akinon-table-content::-webkit-scrollbar-track {
|
|
24
|
+
.akitable-wrapper .akinon-table-content::-webkit-scrollbar-track {
|
|
25
25
|
background-color: var(--color-neutral-100);
|
|
26
26
|
border: none;
|
|
27
27
|
padding: 1px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.akinon-table-content::-webkit-scrollbar-thumb {
|
|
30
|
+
.akitable-wrapper .akinon-table-content::-webkit-scrollbar-thumb {
|
|
31
31
|
background-color: var(--color-neutral-300);
|
|
32
32
|
border-radius: 3px;
|
|
33
33
|
border: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* Add background for alternate rows. */
|
|
37
|
-
.akinon-table-row:nth-child(odd)
|
|
38
|
-
background-color: var(--color-neutral-
|
|
37
|
+
.akitable-wrapper .akinon-table-row:nth-child(odd) {
|
|
38
|
+
background-color: var(--color-neutral-75);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.akinon-table-row.is-selectable {
|
|
41
|
+
.akitable-wrapper .akinon-table-row.is-selectable {
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.akinon-table-row.is-selectable td {
|
|
45
|
+
.akitable-wrapper .akinon-table-row.is-selectable td {
|
|
46
46
|
transition: background-color 0.2s;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.akinon-table-row.is-selectable:hover td {
|
|
49
|
+
.akitable-wrapper .akinon-table-row.is-selectable:hover td {
|
|
50
50
|
background-color: var(--color-blue-100) !important;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.
|
|
53
|
+
.akitable-wrapper
|
|
54
|
+
.akinon-table-row.is-selectable:hover
|
|
55
|
+
td[class*='akinon-table-cell-fix-'] {
|
|
54
56
|
background-color: var(--color-blue-200) !important;
|
|
55
57
|
}
|
|
58
|
+
|
|
59
|
+
.akitable-wrapper .akinon-table-row.akitable-row-pending {
|
|
60
|
+
background-color: var(--color-green-952-10);
|
|
61
|
+
position: relative;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.akitable-wrapper .akinon-table-row.akitable-row-pending::after {
|
|
65
|
+
content: '';
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
background: repeating-linear-gradient(
|
|
72
|
+
60deg,
|
|
73
|
+
transparent 0px,
|
|
74
|
+
transparent 18px,
|
|
75
|
+
var(--color-green-952-15) 18px,
|
|
76
|
+
var(--color-green-952-15) 36px,
|
|
77
|
+
transparent 36px
|
|
78
|
+
);
|
|
79
|
+
animation: shimmer 20s linear infinite;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes shimmer {
|
|
83
|
+
0% {
|
|
84
|
+
left: -100%;
|
|
85
|
+
}
|
|
86
|
+
100% {
|
|
87
|
+
left: -4.82596083%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.akitable-wrapper .akinon-table-row.akitable-row-error {
|
|
92
|
+
background-color: var(--color-red-425-10);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.akitable-wrapper .akinon-table-tbody tr:last-child td {
|
|
96
|
+
border-bottom: 1px solid var(--color-neutral-350);
|
|
97
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../../src/components/datatable.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAOzB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAgC,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAIhF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,
|
|
1
|
+
{"version":3,"file":"datatable.d.ts","sourceRoot":"","sources":["../../../src/components/datatable.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAOzB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAgC,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAIhF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,sBA4H9D,CAAC"}
|
|
@@ -74,5 +74,9 @@ export const AkitableDataTable = (props) => {
|
|
|
74
74
|
onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(record, event, rowIndex);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
}, rowClassName:
|
|
77
|
+
}, rowClassName: (record) => clsx({
|
|
78
|
+
'is-selectable': !!onRowClick,
|
|
79
|
+
'akitable-row-pending': record.rowStatus === 'pending',
|
|
80
|
+
'akitable-row-error': record.rowStatus === 'error'
|
|
81
|
+
}), rowSelection: hasActions ? rowSelection : undefined }))));
|
|
78
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,kBAAkB,yBA2B9B,CAAC"}
|
|
@@ -7,7 +7,10 @@ export const AkitablePagination = () => {
|
|
|
7
7
|
const { isLoading, pagination, onPaginationChanged } = useAkitableContext();
|
|
8
8
|
const { t } = i18n;
|
|
9
9
|
return (React.createElement("div", null,
|
|
10
|
-
React.createElement(Pagination, {
|
|
10
|
+
React.createElement(Pagination, { disabled: isLoading || ((pagination === null || pagination === void 0 ? void 0 : pagination.total) || 0) === 0, current: pagination === null || pagination === void 0 ? void 0 : pagination.page, pageSize: pagination === null || pagination === void 0 ? void 0 : pagination.size, pageSizeOptions: [20, 50, 100, 250], total: (pagination === null || pagination === void 0 ? void 0 : pagination.total) || 0, showTotal: (total, range) => `${range[0]}-${range[1]} of ${total} items`, showSizeChanger: true, onChange: (page, size) => {
|
|
11
|
+
onPaginationChanged === null || onPaginationChanged === void 0 ? void 0 : onPaginationChanged(page, size);
|
|
12
|
+
return null;
|
|
13
|
+
}, locale: {
|
|
11
14
|
items_per_page: t('itemsPerPage')
|
|
12
|
-
} })));
|
|
15
|
+
}, theme: "light" })));
|
|
13
16
|
};
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -4,52 +4,146 @@ type RowClickEvent = (record: AkitableData, event?: React.MouseEvent<HTMLElement
|
|
|
4
4
|
type RowEditCallback = (modifiedRecord: AkitableData, payload: AkitableData) => void;
|
|
5
5
|
export type PaginationChangeEvent = (page: number, size: number) => void;
|
|
6
6
|
export interface AkitableProps {
|
|
7
|
+
/**
|
|
8
|
+
* Actions available for the table rows.
|
|
9
|
+
*/
|
|
7
10
|
actions?: AkitableAction[];
|
|
11
|
+
/**
|
|
12
|
+
* Columns definition for the table.
|
|
13
|
+
*/
|
|
8
14
|
columns: AkitableColumn[];
|
|
15
|
+
/**
|
|
16
|
+
* Data source for the table.
|
|
17
|
+
*/
|
|
9
18
|
data: AkitableData[] | AkitablePaginatedData;
|
|
19
|
+
/**
|
|
20
|
+
* Header configuration for the table.
|
|
21
|
+
*/
|
|
10
22
|
header?: AkitableHeaderProps;
|
|
23
|
+
/**
|
|
24
|
+
* Footer configuration for the table.
|
|
25
|
+
*/
|
|
11
26
|
footer?: AkitableFooterProps;
|
|
27
|
+
/**
|
|
28
|
+
* Loading state for the table.
|
|
29
|
+
*/
|
|
12
30
|
isLoading?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Pagination configuration for the table.
|
|
33
|
+
*/
|
|
13
34
|
pagination?: AkitablePaginationProps;
|
|
35
|
+
/**
|
|
36
|
+
* Unique key for each table row.
|
|
37
|
+
*/
|
|
14
38
|
rowKey: string;
|
|
39
|
+
/**
|
|
40
|
+
* Callback when pagination changes.
|
|
41
|
+
*/
|
|
15
42
|
onPaginationChanged?: PaginationChangeEvent;
|
|
43
|
+
/**
|
|
44
|
+
* Callback for row click events.
|
|
45
|
+
*/
|
|
16
46
|
onRowClick?: RowClickEvent;
|
|
47
|
+
/**
|
|
48
|
+
* Callback for row edit events.
|
|
49
|
+
*/
|
|
17
50
|
onRowEdit?: RowEditCallback;
|
|
18
51
|
}
|
|
19
52
|
export interface AkitableHeaderProps {
|
|
53
|
+
/**
|
|
54
|
+
* Title of the table header.
|
|
55
|
+
*/
|
|
20
56
|
title?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Additional content for the table header.
|
|
59
|
+
*/
|
|
21
60
|
extra?: ReactNode;
|
|
22
61
|
}
|
|
23
62
|
export interface AkitableFooterProps {
|
|
63
|
+
/**
|
|
64
|
+
* Additional content for the table footer.
|
|
65
|
+
*/
|
|
24
66
|
extra?: ReactNode;
|
|
25
67
|
}
|
|
26
68
|
export interface AkitableDataTableProps {
|
|
69
|
+
/**
|
|
70
|
+
* Columns definition for the table.
|
|
71
|
+
*/
|
|
27
72
|
columns: AkitableColumn[];
|
|
73
|
+
/**
|
|
74
|
+
* Data source for the table.
|
|
75
|
+
*/
|
|
28
76
|
data: AkitableData[];
|
|
77
|
+
/**
|
|
78
|
+
* Unique key for each table row.
|
|
79
|
+
*/
|
|
29
80
|
rowKey: string;
|
|
81
|
+
/**
|
|
82
|
+
* Callback for row click events.
|
|
83
|
+
*/
|
|
30
84
|
onRowClick?: RowClickEvent;
|
|
85
|
+
/**
|
|
86
|
+
* Callback for row edit events.
|
|
87
|
+
*/
|
|
31
88
|
onRowEdit?: RowEditCallback;
|
|
32
89
|
}
|
|
33
90
|
export type AkitablePageSizes = 20 | 50 | 100 | 250;
|
|
34
91
|
export interface AkitablePaginationProps {
|
|
92
|
+
/**
|
|
93
|
+
* Current page number.
|
|
94
|
+
*/
|
|
35
95
|
page: number;
|
|
96
|
+
/**
|
|
97
|
+
* Number of rows per page.
|
|
98
|
+
*/
|
|
36
99
|
size: AkitablePageSizes;
|
|
37
100
|
}
|
|
38
101
|
export interface AkitableColumn extends TableColumnType<AkitableData> {
|
|
102
|
+
/**
|
|
103
|
+
* Whether the column is copyable.
|
|
104
|
+
*/
|
|
39
105
|
copyable?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the column is editable.
|
|
108
|
+
*/
|
|
40
109
|
editable?: boolean;
|
|
41
110
|
}
|
|
42
111
|
export interface AkitableData {
|
|
112
|
+
/**
|
|
113
|
+
* Status of the table row.
|
|
114
|
+
*/
|
|
115
|
+
rowStatus?: 'pending' | 'error';
|
|
116
|
+
/**
|
|
117
|
+
* Additional properties for the table row.
|
|
118
|
+
*/
|
|
43
119
|
[key: string]: any;
|
|
44
120
|
}
|
|
45
121
|
export interface AkitablePaginatedData {
|
|
122
|
+
/**
|
|
123
|
+
* Total count of rows.
|
|
124
|
+
*/
|
|
46
125
|
count: number;
|
|
126
|
+
/**
|
|
127
|
+
* URL for the next set of paginated data.
|
|
128
|
+
*/
|
|
47
129
|
next?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* URL for the previous set of paginated data.
|
|
132
|
+
*/
|
|
48
133
|
previous?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Results of the current page.
|
|
136
|
+
*/
|
|
49
137
|
results: AkitableData[];
|
|
50
138
|
}
|
|
51
139
|
export interface AkitableAction {
|
|
140
|
+
/**
|
|
141
|
+
* Label for the action.
|
|
142
|
+
*/
|
|
52
143
|
label: string;
|
|
144
|
+
/**
|
|
145
|
+
* Callback when the action is selected.
|
|
146
|
+
*/
|
|
53
147
|
onSelect: (selectedRowKeys: React.Key[]) => void;
|
|
54
148
|
}
|
|
55
149
|
export {};
|
package/dist/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,aAAa,GAAG,CACnB,MAAM,EAAE,YAAY,EACpB,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EACrC,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;AAEV,KAAK,eAAe,GAAG,CACrB,cAAc,EAAE,YAAY,EAC5B,OAAO,EAAE,YAAY,KAClB,IAAI,CAAC;AAEV,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,aAAa,GAAG,CACnB,MAAM,EAAE,YAAY,EACpB,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EACrC,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;AAEV,KAAK,eAAe,GAAG,CACrB,cAAc,EAAE,YAAY,EAC5B,OAAO,EAAE,YAAY,KAClB,IAAI,CAAC;AAEV,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAEzE,MAAM,WAA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EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe,CAAC,YAAY,CAAC;IAEnE;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAEhC;;OAEG;IAEH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,CAAC,eAAe,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC;CAClD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/akitable",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -9,33 +9,33 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"antd": "5.
|
|
12
|
+
"antd": "5.22.6",
|
|
13
13
|
"clsx": "^2.0.0",
|
|
14
14
|
"react-error-boundary": "^4.0.13",
|
|
15
|
-
"@akinon/akiform": "0.
|
|
16
|
-
"@akinon/
|
|
17
|
-
"@akinon/icons": "0.
|
|
18
|
-
"@akinon/ui-card": "0.
|
|
19
|
-
"@akinon/
|
|
20
|
-
"@akinon/ui-
|
|
21
|
-
"@akinon/ui-
|
|
22
|
-
"@akinon/ui-
|
|
23
|
-
"@akinon/ui-
|
|
24
|
-
"@akinon/ui-
|
|
25
|
-
"@akinon/ui-
|
|
26
|
-
"@akinon/ui-
|
|
27
|
-
"@akinon/ui-
|
|
28
|
-
"@akinon/ui-
|
|
29
|
-
"@akinon/ui-
|
|
30
|
-
"@akinon/ui-
|
|
31
|
-
"@akinon/ui-
|
|
15
|
+
"@akinon/akiform": "1.0.0",
|
|
16
|
+
"@akinon/ui-button": "1.0.0",
|
|
17
|
+
"@akinon/icons": "1.0.0",
|
|
18
|
+
"@akinon/ui-card": "1.0.0",
|
|
19
|
+
"@akinon/akilocale": "1.0.0",
|
|
20
|
+
"@akinon/ui-pagination": "1.0.0",
|
|
21
|
+
"@akinon/ui-select": "1.0.0",
|
|
22
|
+
"@akinon/ui-result": "1.0.0",
|
|
23
|
+
"@akinon/ui-skeleton": "1.0.0",
|
|
24
|
+
"@akinon/ui-steps": "1.0.0",
|
|
25
|
+
"@akinon/ui-space": "1.0.0",
|
|
26
|
+
"@akinon/ui-progress": "1.0.0",
|
|
27
|
+
"@akinon/ui-spin": "1.0.0",
|
|
28
|
+
"@akinon/ui-theme": "1.0.0",
|
|
29
|
+
"@akinon/ui-table": "1.0.0",
|
|
30
|
+
"@akinon/ui-typography": "1.0.0",
|
|
31
|
+
"@akinon/ui-input": "1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"clean-package": "2.2.0",
|
|
35
35
|
"copyfiles": "^2.4.1",
|
|
36
36
|
"rimraf": "^5.0.5",
|
|
37
|
-
"typescript": "
|
|
38
|
-
"@akinon/typescript-config": "0.
|
|
37
|
+
"typescript": "*",
|
|
38
|
+
"@akinon/typescript-config": "1.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=18",
|