@deepnoid/ui 0.1.0 → 0.1.2
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/.turbo/turbo-build.log +173 -173
- package/dist/{chunk-VWMXZUR2.mjs → chunk-2TJDQIKB.mjs} +1 -1
- package/dist/{chunk-IE2BRM7Z.mjs → chunk-2ZT6V4QR.mjs} +0 -9
- package/dist/{chunk-PKVQXVCS.mjs → chunk-56VCX2QR.mjs} +1 -1
- package/dist/{chunk-UAMIPCUD.mjs → chunk-AMA53H3C.mjs} +2 -2
- package/dist/{chunk-XAA5KY6A.mjs → chunk-CF6O6TCF.mjs} +1 -1
- package/dist/{chunk-3AMZ55Y6.mjs → chunk-DNFBQYVG.mjs} +3 -3
- package/dist/{chunk-QNA2GDTN.mjs → chunk-GLBASISV.mjs} +1 -1
- package/dist/{chunk-QJHZJRSQ.mjs → chunk-HKXUNG3H.mjs} +1 -1
- package/dist/{chunk-XTGRSVYO.mjs → chunk-J5WJD6XZ.mjs} +1 -1
- package/dist/{chunk-MW6Y3FSE.mjs → chunk-KWWYMTJP.mjs} +4 -4
- package/dist/chunk-M2IRRTFM.mjs +79 -0
- package/dist/{chunk-Q5WACGVP.mjs → chunk-N4F3R6HG.mjs} +1 -1
- package/dist/chunk-OELLMF2V.mjs +283 -0
- package/dist/{chunk-WQBOPCH6.mjs → chunk-ON5SGXHZ.mjs} +1 -1
- package/dist/chunk-OQS4LGZK.mjs +27 -0
- package/dist/chunk-OYNGJ33M.mjs +285 -0
- package/dist/{chunk-KCYJYS66.mjs → chunk-RCU5MLBU.mjs} +1 -1
- package/dist/{chunk-X2MQCISM.mjs → chunk-S65S7QZ5.mjs} +1 -1
- package/dist/chunk-TMSBICKB.mjs +314 -0
- package/dist/{chunk-RRL6KBU4.mjs → chunk-U2YKMXVG.mjs} +1 -1
- package/dist/{chunk-CATOSBI7.mjs → chunk-VP3NVHFU.mjs} +2 -2
- package/dist/{chunk-VBFXKJTI.mjs → chunk-VRGHUYRU.mjs} +2 -2
- package/dist/{chunk-5S4XGPBB.mjs → chunk-VVOOYDJS.mjs} +1 -1
- package/dist/{chunk-FYJZ7Q5L.mjs → chunk-XIHAABHB.mjs} +1 -1
- package/dist/{chunk-2HSK6XGZ.mjs → chunk-YZNQ2QGK.mjs} +1 -1
- package/dist/{chunk-P5WT7WJO.mjs → chunk-ZEZ6ZA3N.mjs} +1 -1
- package/dist/components/avatar/avatar.js +0 -9
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +0 -9
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.js +0 -9
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +0 -9
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +0 -9
- package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
- package/dist/components/breadcrumb/index.js +0 -9
- package/dist/components/breadcrumb/index.mjs +2 -2
- package/dist/components/button/button-group.js +0 -9
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.js +0 -9
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/index.js +0 -9
- package/dist/components/button/index.mjs +3 -3
- package/dist/components/checkbox/checkbox.js +0 -9
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.js +0 -9
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.js +0 -9
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.js +0 -9
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/dateTimePicker/calendar.js +0 -9
- package/dist/components/dateTimePicker/calendar.mjs +2 -2
- package/dist/components/dateTimePicker/dateTimePicker.js +0 -9
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.js +0 -9
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.js +0 -9
- package/dist/components/dateTimePicker/timePicker.mjs +5 -5
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +429 -379
- package/dist/components/input/index.mjs +3 -2
- package/dist/components/input/input.d.mts +96 -81
- package/dist/components/input/input.d.ts +96 -81
- package/dist/components/input/input.js +429 -379
- package/dist/components/input/input.mjs +3 -2
- package/dist/components/list/index.js +0 -9
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/list.js +0 -9
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +0 -9
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.js +0 -9
- package/dist/components/modal/index.mjs +4 -4
- package/dist/components/modal/modal.js +0 -9
- package/dist/components/modal/modal.mjs +4 -4
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +320 -292
- package/dist/components/pagination/index.mjs +4 -3
- package/dist/components/pagination/pagination.d.mts +39 -95
- package/dist/components/pagination/pagination.d.ts +39 -95
- package/dist/components/pagination/pagination.js +322 -296
- package/dist/components/pagination/pagination.mjs +6 -7
- package/dist/components/radio/index.js +0 -9
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.js +0 -9
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/select/index.js +0 -9
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/option.js +0 -9
- package/dist/components/select/option.mjs +2 -2
- package/dist/components/select/select.js +0 -9
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +1193 -775
- package/dist/components/table/index.mjs +10 -5
- package/dist/components/table/table-body.d.mts +10 -16
- package/dist/components/table/table-body.d.ts +10 -16
- package/dist/components/table/table-body.js +54 -3792
- package/dist/components/table/table-body.mjs +3 -6
- package/dist/components/table/table-head.d.mts +4 -6
- package/dist/components/table/table-head.d.ts +4 -6
- package/dist/components/table/table-head.js +6 -44
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.d.mts +91 -231
- package/dist/components/table/table.d.ts +91 -231
- package/dist/components/table/table.js +1193 -775
- package/dist/components/table/table.mjs +10 -5
- package/dist/components/tabs/index.js +0 -9
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +0 -9
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.js +0 -9
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.js +0 -9
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.js +0 -9
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.js +0 -9
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +0 -9
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/index.js +822 -958
- package/dist/index.mjs +56 -56
- package/dist/utils/tailwind-variants.js +0 -9
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5IQKKLZY.mjs +0 -139
- package/dist/chunk-PFYYYUJW.mjs +0 -56
- package/dist/chunk-RQ76IOYC.mjs +0 -300
- package/dist/chunk-SK2A72R2.mjs +0 -263
- package/dist/chunk-YGOEKSNZ.mjs +0 -345
|
@@ -1,336 +1,191 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
4
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
5
6
|
|
|
6
|
-
interface
|
|
7
|
+
interface TableBaseProps extends Omit<ComponentPropsWithRef<"table">, "ref" | "color" | "slot" | "size" | "height" | "defaultChecked" | "defaultValue"> {
|
|
7
8
|
rows: TableRow[];
|
|
8
9
|
columns: TableColumn[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
selectableRows?: boolean;
|
|
11
|
+
totalData?: number;
|
|
12
|
+
pagination?: {
|
|
13
|
+
page: number;
|
|
14
|
+
perPage: number;
|
|
15
|
+
};
|
|
16
|
+
onPageChange: (pagination: {
|
|
17
|
+
page: number;
|
|
18
|
+
perPage: number;
|
|
19
|
+
}) => void;
|
|
20
|
+
emptyContent?: ReactNode;
|
|
12
21
|
classNames?: SlotsToClasses<TableSlots>;
|
|
13
|
-
onRowAction?: (e: react__default.MouseEvent, params: TableRow) => void;
|
|
14
22
|
}
|
|
15
23
|
interface TableRef {
|
|
16
24
|
checkedRows: Set<number>;
|
|
17
25
|
setCheckedRows: (rows: Set<number>) => void;
|
|
18
26
|
}
|
|
19
|
-
declare const Table:
|
|
27
|
+
declare const Table: react.ForwardRefExoticComponent<TableBaseProps & TableVariantProps & react.RefAttributes<TableRef>>;
|
|
20
28
|
|
|
21
|
-
declare const
|
|
29
|
+
declare const tableStyle: tailwind_variants.TVReturnType<{
|
|
22
30
|
variant: {
|
|
23
31
|
solid: {
|
|
24
|
-
tbody: string;
|
|
32
|
+
tbody: string[];
|
|
25
33
|
};
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
outline: {
|
|
35
|
+
tbody: string[];
|
|
36
|
+
th: string[];
|
|
37
|
+
td: string[];
|
|
28
38
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
underline: {
|
|
40
|
+
tbody: string[];
|
|
41
|
+
th: string[];
|
|
32
42
|
};
|
|
33
43
|
};
|
|
34
44
|
size: {
|
|
35
45
|
sm: {
|
|
36
|
-
tr: string;
|
|
46
|
+
tr: string[];
|
|
37
47
|
};
|
|
38
48
|
md: {
|
|
39
|
-
tr: string;
|
|
49
|
+
tr: string[];
|
|
40
50
|
};
|
|
41
51
|
lg: {
|
|
42
|
-
tr: string;
|
|
52
|
+
tr: string[];
|
|
43
53
|
};
|
|
44
54
|
xl: {
|
|
45
|
-
tr: string;
|
|
55
|
+
tr: string[];
|
|
46
56
|
};
|
|
47
57
|
};
|
|
48
58
|
color: {
|
|
49
59
|
primary: {
|
|
50
|
-
|
|
51
|
-
tr: string;
|
|
52
|
-
td: string;
|
|
53
|
-
expandedTr: string;
|
|
60
|
+
tbody: string[];
|
|
54
61
|
};
|
|
55
62
|
secondary: {
|
|
56
|
-
|
|
57
|
-
tr: string;
|
|
58
|
-
td: string;
|
|
59
|
-
expandedTr: string;
|
|
63
|
+
tbody: string[];
|
|
60
64
|
};
|
|
61
65
|
neutral: {
|
|
62
|
-
|
|
63
|
-
tr: string;
|
|
64
|
-
td: string;
|
|
65
|
-
expandedTr: string;
|
|
66
|
+
tbody: string[];
|
|
66
67
|
};
|
|
67
68
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
false: {
|
|
73
|
-
loadingWrapper: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
isSelected: {
|
|
77
|
-
true: {};
|
|
78
|
-
};
|
|
79
|
-
isMultiSelect: {
|
|
80
|
-
true: {};
|
|
81
|
-
};
|
|
82
|
-
isChecked: {
|
|
83
|
-
true: {};
|
|
84
|
-
};
|
|
85
|
-
isCheckedRow: {
|
|
86
|
-
true: {
|
|
87
|
-
tr: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
hideHeader: {
|
|
91
|
-
true: {
|
|
92
|
-
thead: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
isCompact: {
|
|
96
|
-
true: {
|
|
97
|
-
td: string;
|
|
98
|
-
};
|
|
99
|
-
false: {};
|
|
100
|
-
};
|
|
101
|
-
isHeaderSticky: {
|
|
102
|
-
true: {
|
|
103
|
-
thead: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
isExpanded: {
|
|
107
|
-
true: {
|
|
108
|
-
tr: string;
|
|
109
|
-
};
|
|
69
|
+
height: {
|
|
70
|
+
narrow: {};
|
|
71
|
+
wide: {};
|
|
110
72
|
};
|
|
111
73
|
}, {
|
|
112
|
-
base: string;
|
|
113
|
-
table: string;
|
|
114
|
-
thead: string;
|
|
115
|
-
tbody: string;
|
|
74
|
+
base: string[];
|
|
75
|
+
table: string[];
|
|
76
|
+
thead: string[];
|
|
77
|
+
tbody: string[];
|
|
116
78
|
tr: string[];
|
|
117
79
|
th: string[];
|
|
118
80
|
td: string[];
|
|
119
|
-
tfoot: string;
|
|
120
|
-
expandedTr: string;
|
|
121
|
-
sortIcon: string[];
|
|
122
|
-
emptyWrapper: string;
|
|
123
|
-
loadingWrapper: string[];
|
|
124
81
|
}, undefined, {
|
|
125
82
|
variant: {
|
|
126
83
|
solid: {
|
|
127
|
-
tbody: string;
|
|
84
|
+
tbody: string[];
|
|
128
85
|
};
|
|
129
|
-
|
|
130
|
-
|
|
86
|
+
outline: {
|
|
87
|
+
tbody: string[];
|
|
88
|
+
th: string[];
|
|
89
|
+
td: string[];
|
|
131
90
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
91
|
+
underline: {
|
|
92
|
+
tbody: string[];
|
|
93
|
+
th: string[];
|
|
135
94
|
};
|
|
136
95
|
};
|
|
137
96
|
size: {
|
|
138
97
|
sm: {
|
|
139
|
-
tr: string;
|
|
98
|
+
tr: string[];
|
|
140
99
|
};
|
|
141
100
|
md: {
|
|
142
|
-
tr: string;
|
|
101
|
+
tr: string[];
|
|
143
102
|
};
|
|
144
103
|
lg: {
|
|
145
|
-
tr: string;
|
|
104
|
+
tr: string[];
|
|
146
105
|
};
|
|
147
106
|
xl: {
|
|
148
|
-
tr: string;
|
|
107
|
+
tr: string[];
|
|
149
108
|
};
|
|
150
109
|
};
|
|
151
110
|
color: {
|
|
152
111
|
primary: {
|
|
153
|
-
|
|
154
|
-
tr: string;
|
|
155
|
-
td: string;
|
|
156
|
-
expandedTr: string;
|
|
112
|
+
tbody: string[];
|
|
157
113
|
};
|
|
158
114
|
secondary: {
|
|
159
|
-
|
|
160
|
-
tr: string;
|
|
161
|
-
td: string;
|
|
162
|
-
expandedTr: string;
|
|
115
|
+
tbody: string[];
|
|
163
116
|
};
|
|
164
117
|
neutral: {
|
|
165
|
-
|
|
166
|
-
tr: string;
|
|
167
|
-
td: string;
|
|
168
|
-
expandedTr: string;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
isLoading: {
|
|
172
|
-
true: {
|
|
173
|
-
loadingWrapper: string;
|
|
174
|
-
};
|
|
175
|
-
false: {
|
|
176
|
-
loadingWrapper: string;
|
|
118
|
+
tbody: string[];
|
|
177
119
|
};
|
|
178
120
|
};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
isMultiSelect: {
|
|
183
|
-
true: {};
|
|
184
|
-
};
|
|
185
|
-
isChecked: {
|
|
186
|
-
true: {};
|
|
187
|
-
};
|
|
188
|
-
isCheckedRow: {
|
|
189
|
-
true: {
|
|
190
|
-
tr: string;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
hideHeader: {
|
|
194
|
-
true: {
|
|
195
|
-
thead: string;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
isCompact: {
|
|
199
|
-
true: {
|
|
200
|
-
td: string;
|
|
201
|
-
};
|
|
202
|
-
false: {};
|
|
203
|
-
};
|
|
204
|
-
isHeaderSticky: {
|
|
205
|
-
true: {
|
|
206
|
-
thead: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
isExpanded: {
|
|
210
|
-
true: {
|
|
211
|
-
tr: string;
|
|
212
|
-
};
|
|
121
|
+
height: {
|
|
122
|
+
narrow: {};
|
|
123
|
+
wide: {};
|
|
213
124
|
};
|
|
214
125
|
}, {
|
|
215
|
-
base: string;
|
|
216
|
-
table: string;
|
|
217
|
-
thead: string;
|
|
218
|
-
tbody: string;
|
|
126
|
+
base: string[];
|
|
127
|
+
table: string[];
|
|
128
|
+
thead: string[];
|
|
129
|
+
tbody: string[];
|
|
219
130
|
tr: string[];
|
|
220
131
|
th: string[];
|
|
221
132
|
td: string[];
|
|
222
|
-
tfoot: string;
|
|
223
|
-
expandedTr: string;
|
|
224
|
-
sortIcon: string[];
|
|
225
|
-
emptyWrapper: string;
|
|
226
|
-
loadingWrapper: string[];
|
|
227
133
|
}, tailwind_variants.TVReturnType<{
|
|
228
134
|
variant: {
|
|
229
135
|
solid: {
|
|
230
|
-
tbody: string;
|
|
136
|
+
tbody: string[];
|
|
231
137
|
};
|
|
232
|
-
|
|
233
|
-
|
|
138
|
+
outline: {
|
|
139
|
+
tbody: string[];
|
|
140
|
+
th: string[];
|
|
141
|
+
td: string[];
|
|
234
142
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
143
|
+
underline: {
|
|
144
|
+
tbody: string[];
|
|
145
|
+
th: string[];
|
|
238
146
|
};
|
|
239
147
|
};
|
|
240
148
|
size: {
|
|
241
149
|
sm: {
|
|
242
|
-
tr: string;
|
|
150
|
+
tr: string[];
|
|
243
151
|
};
|
|
244
152
|
md: {
|
|
245
|
-
tr: string;
|
|
153
|
+
tr: string[];
|
|
246
154
|
};
|
|
247
155
|
lg: {
|
|
248
|
-
tr: string;
|
|
156
|
+
tr: string[];
|
|
249
157
|
};
|
|
250
158
|
xl: {
|
|
251
|
-
tr: string;
|
|
159
|
+
tr: string[];
|
|
252
160
|
};
|
|
253
161
|
};
|
|
254
162
|
color: {
|
|
255
163
|
primary: {
|
|
256
|
-
|
|
257
|
-
tr: string;
|
|
258
|
-
td: string;
|
|
259
|
-
expandedTr: string;
|
|
164
|
+
tbody: string[];
|
|
260
165
|
};
|
|
261
166
|
secondary: {
|
|
262
|
-
|
|
263
|
-
tr: string;
|
|
264
|
-
td: string;
|
|
265
|
-
expandedTr: string;
|
|
167
|
+
tbody: string[];
|
|
266
168
|
};
|
|
267
169
|
neutral: {
|
|
268
|
-
|
|
269
|
-
tr: string;
|
|
270
|
-
td: string;
|
|
271
|
-
expandedTr: string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
isLoading: {
|
|
275
|
-
true: {
|
|
276
|
-
loadingWrapper: string;
|
|
277
|
-
};
|
|
278
|
-
false: {
|
|
279
|
-
loadingWrapper: string;
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
isSelected: {
|
|
283
|
-
true: {};
|
|
284
|
-
};
|
|
285
|
-
isMultiSelect: {
|
|
286
|
-
true: {};
|
|
287
|
-
};
|
|
288
|
-
isChecked: {
|
|
289
|
-
true: {};
|
|
290
|
-
};
|
|
291
|
-
isCheckedRow: {
|
|
292
|
-
true: {
|
|
293
|
-
tr: string;
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
hideHeader: {
|
|
297
|
-
true: {
|
|
298
|
-
thead: string;
|
|
170
|
+
tbody: string[];
|
|
299
171
|
};
|
|
300
172
|
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
};
|
|
305
|
-
false: {};
|
|
306
|
-
};
|
|
307
|
-
isHeaderSticky: {
|
|
308
|
-
true: {
|
|
309
|
-
thead: string;
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
|
-
isExpanded: {
|
|
313
|
-
true: {
|
|
314
|
-
tr: string;
|
|
315
|
-
};
|
|
173
|
+
height: {
|
|
174
|
+
narrow: {};
|
|
175
|
+
wide: {};
|
|
316
176
|
};
|
|
317
177
|
}, {
|
|
318
|
-
base: string;
|
|
319
|
-
table: string;
|
|
320
|
-
thead: string;
|
|
321
|
-
tbody: string;
|
|
178
|
+
base: string[];
|
|
179
|
+
table: string[];
|
|
180
|
+
thead: string[];
|
|
181
|
+
tbody: string[];
|
|
322
182
|
tr: string[];
|
|
323
183
|
th: string[];
|
|
324
184
|
td: string[];
|
|
325
|
-
tfoot: string;
|
|
326
|
-
expandedTr: string;
|
|
327
|
-
sortIcon: string[];
|
|
328
|
-
emptyWrapper: string;
|
|
329
|
-
loadingWrapper: string[];
|
|
330
185
|
}, undefined, unknown, unknown, undefined>>;
|
|
331
|
-
type TableVariantProps = VariantProps<typeof
|
|
332
|
-
type TableSlots = keyof ReturnType<typeof
|
|
333
|
-
type TableReturnType = ReturnType<typeof
|
|
186
|
+
type TableVariantProps = VariantProps<typeof tableStyle>;
|
|
187
|
+
type TableSlots = keyof ReturnType<typeof tableStyle>;
|
|
188
|
+
type TableReturnType = ReturnType<typeof tableStyle>;
|
|
334
189
|
type RowValue = Record<string | symbol, any>;
|
|
335
190
|
type CellParams<R extends RowValue = any, V = any, F = V> = {
|
|
336
191
|
id: string | number;
|
|
@@ -348,9 +203,14 @@ type TableRow<R extends RowValue = RowValue> = R;
|
|
|
348
203
|
type TableColumn<R extends RowValue = RowValue, V = any, F = V> = {
|
|
349
204
|
field: string;
|
|
350
205
|
headerName?: string | ReactElement;
|
|
206
|
+
align?: "left" | "center" | "right";
|
|
207
|
+
width?: number;
|
|
208
|
+
minWidth?: number;
|
|
209
|
+
maxWidth?: number;
|
|
210
|
+
height?: number;
|
|
351
211
|
className?: string;
|
|
212
|
+
renderCell?: (params: CellParams<R, V, F>) => ReactNode;
|
|
352
213
|
valueFormatter?: (params: ValueFormatterParams<V>) => F;
|
|
353
|
-
renderCell?: (params: CellParams<R, V, F>) => react__default.ReactNode;
|
|
354
214
|
};
|
|
355
215
|
|
|
356
216
|
export { type TableColumn, type TableRef, type TableReturnType, type TableRow, type TableSlots, type TableVariantProps, Table as default };
|