@frontile/collections 0.17.0-beta.24 → 0.17.0-beta.25
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/declarations/components/table/index.d.ts +9 -0
- package/declarations/components/table/table-body.d.ts +250 -0
- package/declarations/components/table/table-cell.d.ts +243 -0
- package/declarations/components/table/table-column.d.ts +234 -0
- package/declarations/components/table/table-footer.d.ts +242 -0
- package/declarations/components/table/table-header.d.ts +241 -0
- package/declarations/components/table/table-row.d.ts +249 -0
- package/declarations/components/table/table.d.ts +331 -0
- package/declarations/components/table/types.d.ts +15 -0
- package/declarations/components/table/utils.d.ts +10 -0
- package/declarations/components/table.d.ts +2 -0
- package/dist/table-92ff_YNO.js +277 -0
- package/dist/table-92ff_YNO.js.map +1 -0
- package/dist/table-9AY4L0Gb.js +197 -0
- package/dist/table-9AY4L0Gb.js.map +1 -0
- package/dist/table-9lHVhRR5.js +241 -0
- package/dist/table-9lHVhRR5.js.map +1 -0
- package/dist/table-BIkLOscH.js +269 -0
- package/dist/table-BIkLOscH.js.map +1 -0
- package/dist/table-BPp_OXkX.js +206 -0
- package/dist/table-BPp_OXkX.js.map +1 -0
- package/dist/table-BQBLUGgl.js +208 -0
- package/dist/table-BQBLUGgl.js.map +1 -0
- package/dist/table-BUboQojw.js +267 -0
- package/dist/table-BUboQojw.js.map +1 -0
- package/dist/table-BUrvD0CN.js +324 -0
- package/dist/table-BUrvD0CN.js.map +1 -0
- package/dist/table-B_z4aWPh.js +276 -0
- package/dist/table-B_z4aWPh.js.map +1 -0
- package/dist/table-Bi_i2GOl.js +279 -0
- package/dist/table-Bi_i2GOl.js.map +1 -0
- package/dist/table-BkWhyzMo.js +214 -0
- package/dist/table-BkWhyzMo.js.map +1 -0
- package/dist/table-Bp_EqrlK.js +309 -0
- package/dist/table-Bp_EqrlK.js.map +1 -0
- package/dist/table-Bq1HGB9C.js +240 -0
- package/dist/table-Bq1HGB9C.js.map +1 -0
- package/dist/table-C-_mQMW_.js +141 -0
- package/dist/table-C-_mQMW_.js.map +1 -0
- package/dist/table-CaBDs-LD.js +269 -0
- package/dist/table-CaBDs-LD.js.map +1 -0
- package/dist/table-CcbmieDl.js +329 -0
- package/dist/table-CcbmieDl.js.map +1 -0
- package/dist/table-CdLut7xT.js +172 -0
- package/dist/table-CdLut7xT.js.map +1 -0
- package/dist/table-Cs_Xm3-T.js +144 -0
- package/dist/table-Cs_Xm3-T.js.map +1 -0
- package/dist/table-CwxlKxz0.js +185 -0
- package/dist/table-CwxlKxz0.js.map +1 -0
- package/dist/table-D1jyvvdd.js +242 -0
- package/dist/table-D1jyvvdd.js.map +1 -0
- package/dist/table-D7QCvl0_.js +269 -0
- package/dist/table-D7QCvl0_.js.map +1 -0
- package/dist/table-DApb61os.js +185 -0
- package/dist/table-DApb61os.js.map +1 -0
- package/dist/table-DFIwJpJO.js +144 -0
- package/dist/table-DFIwJpJO.js.map +1 -0
- package/dist/table-DIZvtyjH.js +185 -0
- package/dist/table-DIZvtyjH.js.map +1 -0
- package/dist/table-DYOLmjfk.js +325 -0
- package/dist/table-DYOLmjfk.js.map +1 -0
- package/dist/table-Da60U9eH.js +269 -0
- package/dist/table-Da60U9eH.js.map +1 -0
- package/dist/table-Dcyk7CLS.js +144 -0
- package/dist/table-Dcyk7CLS.js.map +1 -0
- package/dist/table-DzNT9tDs.js +280 -0
- package/dist/table-DzNT9tDs.js.map +1 -0
- package/dist/table-EDCy6SCT.js +214 -0
- package/dist/table-EDCy6SCT.js.map +1 -0
- package/dist/table-GRGxN-x5.js +309 -0
- package/dist/table-GRGxN-x5.js.map +1 -0
- package/dist/table-Lk0tmBng.js +309 -0
- package/dist/table-Lk0tmBng.js.map +1 -0
- package/dist/table-k5i2kvUD.js +324 -0
- package/dist/table-k5i2kvUD.js.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { useStyles } from '@frontile/theme';
|
|
3
|
+
import { TableColumn } from './table-column';
|
|
4
|
+
import type { ColumnDefinition, SlotsToClasses, TableSlots } from './types';
|
|
5
|
+
interface TableHeaderSignature<T = unknown> {
|
|
6
|
+
Args: {
|
|
7
|
+
/** Array of column definitions for automatic header generation */
|
|
8
|
+
columns?: ColumnDefinition<T>[];
|
|
9
|
+
/** Additional CSS class to apply to the header section */
|
|
10
|
+
class?: string;
|
|
11
|
+
/** Whether the header should be sticky during vertical scrolling */
|
|
12
|
+
isSticky?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @internal Style functions object from Table component
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
styleFns?: ReturnType<ReturnType<typeof useStyles>['table']>;
|
|
18
|
+
/**
|
|
19
|
+
* @internal Classes object from Table component
|
|
20
|
+
* @ignore
|
|
21
|
+
*/
|
|
22
|
+
classes?: SlotsToClasses<TableSlots>;
|
|
23
|
+
};
|
|
24
|
+
Element: HTMLTableSectionElement;
|
|
25
|
+
Blocks: {
|
|
26
|
+
default: [
|
|
27
|
+
{
|
|
28
|
+
Column: typeof TableColumn;
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
declare class TableHeader<T = unknown> extends Component<TableHeaderSignature<T>> {
|
|
34
|
+
get styles(): {
|
|
35
|
+
base: (slotProps?: ({
|
|
36
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
37
|
+
layout?: "fixed" | "auto" | undefined;
|
|
38
|
+
striped?: boolean | undefined;
|
|
39
|
+
isSticky?: boolean | undefined;
|
|
40
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
41
|
+
isScrollable?: boolean | undefined;
|
|
42
|
+
hasStickyHeader?: boolean | undefined;
|
|
43
|
+
isInStickyRow?: boolean | undefined;
|
|
44
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
45
|
+
wrapper: (slotProps?: ({
|
|
46
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
47
|
+
layout?: "fixed" | "auto" | undefined;
|
|
48
|
+
striped?: boolean | undefined;
|
|
49
|
+
isSticky?: boolean | undefined;
|
|
50
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
51
|
+
isScrollable?: boolean | undefined;
|
|
52
|
+
hasStickyHeader?: boolean | undefined;
|
|
53
|
+
isInStickyRow?: boolean | undefined;
|
|
54
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
55
|
+
table: (slotProps?: ({
|
|
56
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
57
|
+
layout?: "fixed" | "auto" | undefined;
|
|
58
|
+
striped?: boolean | undefined;
|
|
59
|
+
isSticky?: boolean | undefined;
|
|
60
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
61
|
+
isScrollable?: boolean | undefined;
|
|
62
|
+
hasStickyHeader?: boolean | undefined;
|
|
63
|
+
isInStickyRow?: boolean | undefined;
|
|
64
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
65
|
+
thead: (slotProps?: ({
|
|
66
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
67
|
+
layout?: "fixed" | "auto" | undefined;
|
|
68
|
+
striped?: boolean | undefined;
|
|
69
|
+
isSticky?: boolean | undefined;
|
|
70
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
71
|
+
isScrollable?: boolean | undefined;
|
|
72
|
+
hasStickyHeader?: boolean | undefined;
|
|
73
|
+
isInStickyRow?: boolean | undefined;
|
|
74
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
75
|
+
tbody: (slotProps?: ({
|
|
76
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
77
|
+
layout?: "fixed" | "auto" | undefined;
|
|
78
|
+
striped?: boolean | undefined;
|
|
79
|
+
isSticky?: boolean | undefined;
|
|
80
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
81
|
+
isScrollable?: boolean | undefined;
|
|
82
|
+
hasStickyHeader?: boolean | undefined;
|
|
83
|
+
isInStickyRow?: boolean | undefined;
|
|
84
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
85
|
+
tfoot: (slotProps?: ({
|
|
86
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
87
|
+
layout?: "fixed" | "auto" | undefined;
|
|
88
|
+
striped?: boolean | undefined;
|
|
89
|
+
isSticky?: boolean | undefined;
|
|
90
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
91
|
+
isScrollable?: boolean | undefined;
|
|
92
|
+
hasStickyHeader?: boolean | undefined;
|
|
93
|
+
isInStickyRow?: boolean | undefined;
|
|
94
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
95
|
+
tr: (slotProps?: ({
|
|
96
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
97
|
+
layout?: "fixed" | "auto" | undefined;
|
|
98
|
+
striped?: boolean | undefined;
|
|
99
|
+
isSticky?: boolean | undefined;
|
|
100
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
101
|
+
isScrollable?: boolean | undefined;
|
|
102
|
+
hasStickyHeader?: boolean | undefined;
|
|
103
|
+
isInStickyRow?: boolean | undefined;
|
|
104
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
105
|
+
th: (slotProps?: ({
|
|
106
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
107
|
+
layout?: "fixed" | "auto" | undefined;
|
|
108
|
+
striped?: boolean | undefined;
|
|
109
|
+
isSticky?: boolean | undefined;
|
|
110
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
111
|
+
isScrollable?: boolean | undefined;
|
|
112
|
+
hasStickyHeader?: boolean | undefined;
|
|
113
|
+
isInStickyRow?: boolean | undefined;
|
|
114
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
115
|
+
td: (slotProps?: ({
|
|
116
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
117
|
+
layout?: "fixed" | "auto" | undefined;
|
|
118
|
+
striped?: boolean | undefined;
|
|
119
|
+
isSticky?: boolean | undefined;
|
|
120
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
121
|
+
isScrollable?: boolean | undefined;
|
|
122
|
+
hasStickyHeader?: boolean | undefined;
|
|
123
|
+
isInStickyRow?: boolean | undefined;
|
|
124
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
125
|
+
emptyCell: (slotProps?: ({
|
|
126
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
127
|
+
layout?: "fixed" | "auto" | undefined;
|
|
128
|
+
striped?: boolean | undefined;
|
|
129
|
+
isSticky?: boolean | undefined;
|
|
130
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
131
|
+
isScrollable?: boolean | undefined;
|
|
132
|
+
hasStickyHeader?: boolean | undefined;
|
|
133
|
+
isInStickyRow?: boolean | undefined;
|
|
134
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
135
|
+
} & {
|
|
136
|
+
base: (slotProps?: ({
|
|
137
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
138
|
+
layout?: "fixed" | "auto" | undefined;
|
|
139
|
+
striped?: boolean | undefined;
|
|
140
|
+
isSticky?: boolean | undefined;
|
|
141
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
142
|
+
isScrollable?: boolean | undefined;
|
|
143
|
+
hasStickyHeader?: boolean | undefined;
|
|
144
|
+
isInStickyRow?: boolean | undefined;
|
|
145
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
146
|
+
wrapper: (slotProps?: ({
|
|
147
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
148
|
+
layout?: "fixed" | "auto" | undefined;
|
|
149
|
+
striped?: boolean | undefined;
|
|
150
|
+
isSticky?: boolean | undefined;
|
|
151
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
152
|
+
isScrollable?: boolean | undefined;
|
|
153
|
+
hasStickyHeader?: boolean | undefined;
|
|
154
|
+
isInStickyRow?: boolean | undefined;
|
|
155
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
156
|
+
table: (slotProps?: ({
|
|
157
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
158
|
+
layout?: "fixed" | "auto" | undefined;
|
|
159
|
+
striped?: boolean | undefined;
|
|
160
|
+
isSticky?: boolean | undefined;
|
|
161
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
162
|
+
isScrollable?: boolean | undefined;
|
|
163
|
+
hasStickyHeader?: boolean | undefined;
|
|
164
|
+
isInStickyRow?: boolean | undefined;
|
|
165
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
166
|
+
thead: (slotProps?: ({
|
|
167
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
168
|
+
layout?: "fixed" | "auto" | undefined;
|
|
169
|
+
striped?: boolean | undefined;
|
|
170
|
+
isSticky?: boolean | undefined;
|
|
171
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
172
|
+
isScrollable?: boolean | undefined;
|
|
173
|
+
hasStickyHeader?: boolean | undefined;
|
|
174
|
+
isInStickyRow?: boolean | undefined;
|
|
175
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
176
|
+
tbody: (slotProps?: ({
|
|
177
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
178
|
+
layout?: "fixed" | "auto" | undefined;
|
|
179
|
+
striped?: boolean | undefined;
|
|
180
|
+
isSticky?: boolean | undefined;
|
|
181
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
182
|
+
isScrollable?: boolean | undefined;
|
|
183
|
+
hasStickyHeader?: boolean | undefined;
|
|
184
|
+
isInStickyRow?: boolean | undefined;
|
|
185
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
186
|
+
tfoot: (slotProps?: ({
|
|
187
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
188
|
+
layout?: "fixed" | "auto" | undefined;
|
|
189
|
+
striped?: boolean | undefined;
|
|
190
|
+
isSticky?: boolean | undefined;
|
|
191
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
192
|
+
isScrollable?: boolean | undefined;
|
|
193
|
+
hasStickyHeader?: boolean | undefined;
|
|
194
|
+
isInStickyRow?: boolean | undefined;
|
|
195
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
196
|
+
tr: (slotProps?: ({
|
|
197
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
198
|
+
layout?: "fixed" | "auto" | undefined;
|
|
199
|
+
striped?: boolean | undefined;
|
|
200
|
+
isSticky?: boolean | undefined;
|
|
201
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
202
|
+
isScrollable?: boolean | undefined;
|
|
203
|
+
hasStickyHeader?: boolean | undefined;
|
|
204
|
+
isInStickyRow?: boolean | undefined;
|
|
205
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
206
|
+
th: (slotProps?: ({
|
|
207
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
208
|
+
layout?: "fixed" | "auto" | undefined;
|
|
209
|
+
striped?: boolean | undefined;
|
|
210
|
+
isSticky?: boolean | undefined;
|
|
211
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
212
|
+
isScrollable?: boolean | undefined;
|
|
213
|
+
hasStickyHeader?: boolean | undefined;
|
|
214
|
+
isInStickyRow?: boolean | undefined;
|
|
215
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
216
|
+
td: (slotProps?: ({
|
|
217
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
218
|
+
layout?: "fixed" | "auto" | undefined;
|
|
219
|
+
striped?: boolean | undefined;
|
|
220
|
+
isSticky?: boolean | undefined;
|
|
221
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
222
|
+
isScrollable?: boolean | undefined;
|
|
223
|
+
hasStickyHeader?: boolean | undefined;
|
|
224
|
+
isInStickyRow?: boolean | undefined;
|
|
225
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
226
|
+
emptyCell: (slotProps?: ({
|
|
227
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
228
|
+
layout?: "fixed" | "auto" | undefined;
|
|
229
|
+
striped?: boolean | undefined;
|
|
230
|
+
isSticky?: boolean | undefined;
|
|
231
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
232
|
+
isScrollable?: boolean | undefined;
|
|
233
|
+
hasStickyHeader?: boolean | undefined;
|
|
234
|
+
isInStickyRow?: boolean | undefined;
|
|
235
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
236
|
+
} & {};
|
|
237
|
+
get classNames(): string;
|
|
238
|
+
get rowClassNames(): string;
|
|
239
|
+
}
|
|
240
|
+
export { TableHeader, type TableHeaderSignature };
|
|
241
|
+
export default TableHeader;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { useStyles } from '@frontile/theme';
|
|
3
|
+
import { TableCell } from './table-cell';
|
|
4
|
+
import type { ColumnDefinition, SlotsToClasses, TableSlots } from './types';
|
|
5
|
+
interface TableRowSignature<T> {
|
|
6
|
+
Args: {
|
|
7
|
+
/** The data item for this row */
|
|
8
|
+
item?: T;
|
|
9
|
+
/** Array of column definitions for automatic cell generation */
|
|
10
|
+
columns?: ColumnDefinition<T>[];
|
|
11
|
+
/** Additional CSS class to apply to the row */
|
|
12
|
+
class?: string;
|
|
13
|
+
/** Whether this row should be sticky during vertical scrolling */
|
|
14
|
+
isSticky?: boolean;
|
|
15
|
+
/** Array of item keys that should be sticky (used to determine if this row is sticky) */
|
|
16
|
+
stickyKeys?: string[];
|
|
17
|
+
/** Whether the table has a sticky header (affects positioning of sticky rows) */
|
|
18
|
+
isStickyHeader?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @internal Style functions object from Table component
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
styleFns?: ReturnType<ReturnType<typeof useStyles>['table']>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal Classes object from Table component
|
|
26
|
+
* @ignore
|
|
27
|
+
*/
|
|
28
|
+
classes?: SlotsToClasses<TableSlots>;
|
|
29
|
+
};
|
|
30
|
+
Element: HTMLTableRowElement;
|
|
31
|
+
Blocks: {
|
|
32
|
+
default: [
|
|
33
|
+
{
|
|
34
|
+
Cell: typeof TableCell;
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
declare class TableRow<T = unknown> extends Component<TableRowSignature<T>> {
|
|
40
|
+
get isSticky(): boolean;
|
|
41
|
+
get styles(): {
|
|
42
|
+
base: (slotProps?: ({
|
|
43
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
44
|
+
layout?: "fixed" | "auto" | undefined;
|
|
45
|
+
striped?: boolean | undefined;
|
|
46
|
+
isSticky?: boolean | undefined;
|
|
47
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
48
|
+
isScrollable?: boolean | undefined;
|
|
49
|
+
hasStickyHeader?: boolean | undefined;
|
|
50
|
+
isInStickyRow?: boolean | undefined;
|
|
51
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
52
|
+
wrapper: (slotProps?: ({
|
|
53
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
54
|
+
layout?: "fixed" | "auto" | undefined;
|
|
55
|
+
striped?: boolean | undefined;
|
|
56
|
+
isSticky?: boolean | undefined;
|
|
57
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
58
|
+
isScrollable?: boolean | undefined;
|
|
59
|
+
hasStickyHeader?: boolean | undefined;
|
|
60
|
+
isInStickyRow?: boolean | undefined;
|
|
61
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
62
|
+
table: (slotProps?: ({
|
|
63
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
64
|
+
layout?: "fixed" | "auto" | undefined;
|
|
65
|
+
striped?: boolean | undefined;
|
|
66
|
+
isSticky?: boolean | undefined;
|
|
67
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
68
|
+
isScrollable?: boolean | undefined;
|
|
69
|
+
hasStickyHeader?: boolean | undefined;
|
|
70
|
+
isInStickyRow?: boolean | undefined;
|
|
71
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
72
|
+
thead: (slotProps?: ({
|
|
73
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
74
|
+
layout?: "fixed" | "auto" | undefined;
|
|
75
|
+
striped?: boolean | undefined;
|
|
76
|
+
isSticky?: boolean | undefined;
|
|
77
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
78
|
+
isScrollable?: boolean | undefined;
|
|
79
|
+
hasStickyHeader?: boolean | undefined;
|
|
80
|
+
isInStickyRow?: boolean | undefined;
|
|
81
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
82
|
+
tbody: (slotProps?: ({
|
|
83
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
84
|
+
layout?: "fixed" | "auto" | undefined;
|
|
85
|
+
striped?: boolean | undefined;
|
|
86
|
+
isSticky?: boolean | undefined;
|
|
87
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
88
|
+
isScrollable?: boolean | undefined;
|
|
89
|
+
hasStickyHeader?: boolean | undefined;
|
|
90
|
+
isInStickyRow?: boolean | undefined;
|
|
91
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
92
|
+
tfoot: (slotProps?: ({
|
|
93
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
94
|
+
layout?: "fixed" | "auto" | undefined;
|
|
95
|
+
striped?: boolean | undefined;
|
|
96
|
+
isSticky?: boolean | undefined;
|
|
97
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
98
|
+
isScrollable?: boolean | undefined;
|
|
99
|
+
hasStickyHeader?: boolean | undefined;
|
|
100
|
+
isInStickyRow?: boolean | undefined;
|
|
101
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
102
|
+
tr: (slotProps?: ({
|
|
103
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
104
|
+
layout?: "fixed" | "auto" | undefined;
|
|
105
|
+
striped?: boolean | undefined;
|
|
106
|
+
isSticky?: boolean | undefined;
|
|
107
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
108
|
+
isScrollable?: boolean | undefined;
|
|
109
|
+
hasStickyHeader?: boolean | undefined;
|
|
110
|
+
isInStickyRow?: boolean | undefined;
|
|
111
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
112
|
+
th: (slotProps?: ({
|
|
113
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
114
|
+
layout?: "fixed" | "auto" | undefined;
|
|
115
|
+
striped?: boolean | undefined;
|
|
116
|
+
isSticky?: boolean | undefined;
|
|
117
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
118
|
+
isScrollable?: boolean | undefined;
|
|
119
|
+
hasStickyHeader?: boolean | undefined;
|
|
120
|
+
isInStickyRow?: boolean | undefined;
|
|
121
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
122
|
+
td: (slotProps?: ({
|
|
123
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
124
|
+
layout?: "fixed" | "auto" | undefined;
|
|
125
|
+
striped?: boolean | undefined;
|
|
126
|
+
isSticky?: boolean | undefined;
|
|
127
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
128
|
+
isScrollable?: boolean | undefined;
|
|
129
|
+
hasStickyHeader?: boolean | undefined;
|
|
130
|
+
isInStickyRow?: boolean | undefined;
|
|
131
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
132
|
+
emptyCell: (slotProps?: ({
|
|
133
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
134
|
+
layout?: "fixed" | "auto" | undefined;
|
|
135
|
+
striped?: boolean | undefined;
|
|
136
|
+
isSticky?: boolean | undefined;
|
|
137
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
138
|
+
isScrollable?: boolean | undefined;
|
|
139
|
+
hasStickyHeader?: boolean | undefined;
|
|
140
|
+
isInStickyRow?: boolean | undefined;
|
|
141
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
142
|
+
} & {
|
|
143
|
+
base: (slotProps?: ({
|
|
144
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
145
|
+
layout?: "fixed" | "auto" | undefined;
|
|
146
|
+
striped?: boolean | undefined;
|
|
147
|
+
isSticky?: boolean | undefined;
|
|
148
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
149
|
+
isScrollable?: boolean | undefined;
|
|
150
|
+
hasStickyHeader?: boolean | undefined;
|
|
151
|
+
isInStickyRow?: boolean | undefined;
|
|
152
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
153
|
+
wrapper: (slotProps?: ({
|
|
154
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
155
|
+
layout?: "fixed" | "auto" | undefined;
|
|
156
|
+
striped?: boolean | undefined;
|
|
157
|
+
isSticky?: boolean | undefined;
|
|
158
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
159
|
+
isScrollable?: boolean | undefined;
|
|
160
|
+
hasStickyHeader?: boolean | undefined;
|
|
161
|
+
isInStickyRow?: boolean | undefined;
|
|
162
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
163
|
+
table: (slotProps?: ({
|
|
164
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
165
|
+
layout?: "fixed" | "auto" | undefined;
|
|
166
|
+
striped?: boolean | undefined;
|
|
167
|
+
isSticky?: boolean | undefined;
|
|
168
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
169
|
+
isScrollable?: boolean | undefined;
|
|
170
|
+
hasStickyHeader?: boolean | undefined;
|
|
171
|
+
isInStickyRow?: boolean | undefined;
|
|
172
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
173
|
+
thead: (slotProps?: ({
|
|
174
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
175
|
+
layout?: "fixed" | "auto" | undefined;
|
|
176
|
+
striped?: boolean | undefined;
|
|
177
|
+
isSticky?: boolean | undefined;
|
|
178
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
179
|
+
isScrollable?: boolean | undefined;
|
|
180
|
+
hasStickyHeader?: boolean | undefined;
|
|
181
|
+
isInStickyRow?: boolean | undefined;
|
|
182
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
183
|
+
tbody: (slotProps?: ({
|
|
184
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
185
|
+
layout?: "fixed" | "auto" | undefined;
|
|
186
|
+
striped?: boolean | undefined;
|
|
187
|
+
isSticky?: boolean | undefined;
|
|
188
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
189
|
+
isScrollable?: boolean | undefined;
|
|
190
|
+
hasStickyHeader?: boolean | undefined;
|
|
191
|
+
isInStickyRow?: boolean | undefined;
|
|
192
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
193
|
+
tfoot: (slotProps?: ({
|
|
194
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
195
|
+
layout?: "fixed" | "auto" | undefined;
|
|
196
|
+
striped?: boolean | undefined;
|
|
197
|
+
isSticky?: boolean | undefined;
|
|
198
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
199
|
+
isScrollable?: boolean | undefined;
|
|
200
|
+
hasStickyHeader?: boolean | undefined;
|
|
201
|
+
isInStickyRow?: boolean | undefined;
|
|
202
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
203
|
+
tr: (slotProps?: ({
|
|
204
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
205
|
+
layout?: "fixed" | "auto" | undefined;
|
|
206
|
+
striped?: boolean | undefined;
|
|
207
|
+
isSticky?: boolean | undefined;
|
|
208
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
209
|
+
isScrollable?: boolean | undefined;
|
|
210
|
+
hasStickyHeader?: boolean | undefined;
|
|
211
|
+
isInStickyRow?: boolean | undefined;
|
|
212
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
213
|
+
th: (slotProps?: ({
|
|
214
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
215
|
+
layout?: "fixed" | "auto" | undefined;
|
|
216
|
+
striped?: boolean | undefined;
|
|
217
|
+
isSticky?: boolean | undefined;
|
|
218
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
219
|
+
isScrollable?: boolean | undefined;
|
|
220
|
+
hasStickyHeader?: boolean | undefined;
|
|
221
|
+
isInStickyRow?: boolean | undefined;
|
|
222
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
223
|
+
td: (slotProps?: ({
|
|
224
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
225
|
+
layout?: "fixed" | "auto" | undefined;
|
|
226
|
+
striped?: boolean | undefined;
|
|
227
|
+
isSticky?: boolean | undefined;
|
|
228
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
229
|
+
isScrollable?: boolean | undefined;
|
|
230
|
+
hasStickyHeader?: boolean | undefined;
|
|
231
|
+
isInStickyRow?: boolean | undefined;
|
|
232
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
233
|
+
emptyCell: (slotProps?: ({
|
|
234
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
235
|
+
layout?: "fixed" | "auto" | undefined;
|
|
236
|
+
striped?: boolean | undefined;
|
|
237
|
+
isSticky?: boolean | undefined;
|
|
238
|
+
stickyPosition?: "top" | "right" | "bottom" | "left" | undefined;
|
|
239
|
+
isScrollable?: boolean | undefined;
|
|
240
|
+
hasStickyHeader?: boolean | undefined;
|
|
241
|
+
isInStickyRow?: boolean | undefined;
|
|
242
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
243
|
+
} & {};
|
|
244
|
+
get classNames(): string;
|
|
245
|
+
get rowKey(): string;
|
|
246
|
+
getValue: (item: T, column: ColumnDefinition<T>) => import("@glint/template").ContentValue;
|
|
247
|
+
}
|
|
248
|
+
export { TableRow, type TableRowSignature };
|
|
249
|
+
export default TableRow;
|