@versini/ui-table 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Table/Table.js +908 -10
- package/dist/index.js +12 -911
- package/package.json +6 -6
|
@@ -1,12 +1,910 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import "react";
|
|
1
|
+
import l from "clsx";
|
|
2
|
+
import { jsx as i, jsxs as _, Fragment as se } from "react/jsx-runtime";
|
|
3
|
+
import R, { useRef as w, useLayoutEffect as D, useState as le, useMemo as q, useEffect as G, useCallback as oe, useContext as N } from "react";
|
|
4
|
+
const I = "thead", A = "tfoot", p = "tbody", T = {
|
|
5
|
+
ASC: "asc",
|
|
6
|
+
DESC: "desc"
|
|
7
|
+
}, ie = ({
|
|
8
|
+
mode: e,
|
|
9
|
+
className: a,
|
|
10
|
+
wrapperClassName: t,
|
|
11
|
+
stickyHeader: r,
|
|
12
|
+
stickyFooter: s
|
|
13
|
+
}) => ({
|
|
14
|
+
wrapper: l(
|
|
15
|
+
"not-prose relative w-full rounded-lg shadow-md",
|
|
16
|
+
{
|
|
17
|
+
"overflow-x-auto": !r && !s,
|
|
18
|
+
"overflow-y-scroll": r || s,
|
|
19
|
+
"bg-surface-darker": e === "dark" || e === "system",
|
|
20
|
+
"bg-surface-light": e === "light" || e === "alt-system",
|
|
21
|
+
"dark:bg-surface-light": e === "system",
|
|
22
|
+
"dark:bg-surface-darker": e === "alt-system",
|
|
23
|
+
"text-copy-light": e === "dark",
|
|
24
|
+
"text-copy-dark": e === "light",
|
|
25
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
26
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
27
|
+
},
|
|
28
|
+
t
|
|
29
|
+
),
|
|
30
|
+
table: l("my-0 w-full text-left text-sm", a, {
|
|
31
|
+
"text-copy-light": e === "dark",
|
|
32
|
+
"text-copy-dark": e === "light",
|
|
33
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
34
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
35
|
+
}),
|
|
36
|
+
caption: l("py-2 text-sm font-bold", {
|
|
37
|
+
"text-copy-light": e === "dark",
|
|
38
|
+
"text-copy-dark": e === "light",
|
|
39
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
40
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
41
|
+
})
|
|
42
|
+
}), ne = ({
|
|
43
|
+
className: e,
|
|
44
|
+
stickyHeader: a,
|
|
45
|
+
mode: t
|
|
46
|
+
}) => l(
|
|
47
|
+
{
|
|
48
|
+
"sticky top-0 z-10": a,
|
|
49
|
+
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && t === "dark",
|
|
50
|
+
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && t === "system",
|
|
51
|
+
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && t === "light",
|
|
52
|
+
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && t === "alt-system"
|
|
53
|
+
},
|
|
54
|
+
e
|
|
55
|
+
), ce = ({
|
|
56
|
+
className: e,
|
|
57
|
+
stickyFooter: a,
|
|
58
|
+
mode: t
|
|
59
|
+
}) => l(
|
|
60
|
+
{
|
|
61
|
+
"sticky bottom-0 z-10": a,
|
|
62
|
+
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && t === "dark",
|
|
63
|
+
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && t === "system",
|
|
64
|
+
"shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && t === "light",
|
|
65
|
+
"shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && t === "alt-system"
|
|
66
|
+
},
|
|
67
|
+
e
|
|
68
|
+
), de = ({
|
|
69
|
+
mode: e,
|
|
70
|
+
className: a,
|
|
71
|
+
cellWrapper: t
|
|
72
|
+
}) => t === I || t === A ? l(
|
|
73
|
+
{
|
|
74
|
+
"bg-table-head-dark": e === "dark" || e === "system",
|
|
75
|
+
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
76
|
+
"dark:bg-table-head-light": e === "system",
|
|
77
|
+
"dark:bg-table-head-dark": e === "alt-system"
|
|
78
|
+
},
|
|
79
|
+
a
|
|
80
|
+
) : l(
|
|
81
|
+
"border-b last:border-0",
|
|
82
|
+
{
|
|
83
|
+
"border-table-dark": e === "dark" || e === "system",
|
|
84
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === p && e === "dark",
|
|
85
|
+
"border-table-light": e === "light" || e === "alt-system",
|
|
86
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === p && e === "light",
|
|
87
|
+
"dark:border-table-light": e === "system",
|
|
88
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === p && e === "system",
|
|
89
|
+
"dark:border-table-dark": e === "alt-system",
|
|
90
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === p && e === "alt-system"
|
|
91
|
+
},
|
|
92
|
+
a
|
|
93
|
+
), ge = ({
|
|
94
|
+
cellWrapper: e,
|
|
95
|
+
className: a,
|
|
96
|
+
compact: t,
|
|
97
|
+
mode: r,
|
|
98
|
+
align: s
|
|
99
|
+
}) => ({
|
|
100
|
+
alignClasses: l({
|
|
101
|
+
"flex justify-start text-left": s === "left",
|
|
102
|
+
"flex justify-center text-center": s === "center",
|
|
103
|
+
"flex justify-end text-right": s === "right"
|
|
104
|
+
}),
|
|
105
|
+
mainClasses: l(
|
|
106
|
+
{
|
|
107
|
+
"text-copy-light": r === "dark" || r === "system",
|
|
108
|
+
"text-copy-dark": r === "light" || r === "alt-system",
|
|
109
|
+
"dark:text-copy-dark": r === "system",
|
|
110
|
+
"dark:text-copy-light": r === "alt-system",
|
|
111
|
+
"px-4 py-3": !t && (e === I || e === A),
|
|
112
|
+
"p-4": !t && e === p,
|
|
113
|
+
"px-2 py-1.5": t
|
|
114
|
+
},
|
|
115
|
+
a
|
|
116
|
+
)
|
|
117
|
+
}), he = ({
|
|
118
|
+
buttonClassName: e
|
|
119
|
+
}) => l("rounded-none text-sm", e), F = "av-button", j = "icon", $ = "button", O = "link", be = ({
|
|
120
|
+
type: e,
|
|
121
|
+
size: a,
|
|
122
|
+
labelRight: t,
|
|
123
|
+
labelLeft: r,
|
|
124
|
+
align: s,
|
|
125
|
+
animated: o
|
|
126
|
+
}) => {
|
|
127
|
+
const n = "max-h-8 py-0 px-2", d = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
|
128
|
+
switch (e) {
|
|
129
|
+
case $:
|
|
130
|
+
case O:
|
|
131
|
+
return l({
|
|
132
|
+
[n]: a === "small",
|
|
133
|
+
[d]: a === "medium",
|
|
134
|
+
[c]: a === "large"
|
|
135
|
+
});
|
|
136
|
+
case j:
|
|
137
|
+
return l("flex items-center", {
|
|
138
|
+
"justify-center": s === "center",
|
|
139
|
+
"justify-start": s === "left",
|
|
140
|
+
"justify-end": s === "right",
|
|
141
|
+
"h-6 w-6 p-0": a === "small" && !o && !(t || r),
|
|
142
|
+
"h-6 px-2": a === "small" && !o && (t || r),
|
|
143
|
+
"h-8 w-8 p-1": a === "medium" && !o && !(t || r),
|
|
144
|
+
"h-8 px-3": a === "medium" && !o && (t || r),
|
|
145
|
+
"h-12 w-12 p-2": a === "large" && !o && !(t || r),
|
|
146
|
+
"h-12 px-4": a === "large" && !o && (t || r),
|
|
147
|
+
"h-6 py-0": a === "small" && o && !(t || r),
|
|
148
|
+
"h-6": a === "small" && o && (t || r),
|
|
149
|
+
"h-8 py-1": a === "medium" && o && !(t || r),
|
|
150
|
+
"h-8": a === "medium" && o && (t || r),
|
|
151
|
+
"h-12 py-2": a === "large" && o && !(t || r),
|
|
152
|
+
"h-12": a === "large" && o && (t || r)
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}, me = ({
|
|
156
|
+
type: e,
|
|
157
|
+
size: a,
|
|
158
|
+
labelRight: t,
|
|
159
|
+
labelLeft: r
|
|
160
|
+
}) => {
|
|
161
|
+
const s = "text-sm font-medium", o = "text-base font-medium", n = "text-lg font-medium";
|
|
162
|
+
switch (e) {
|
|
163
|
+
case $:
|
|
164
|
+
case O:
|
|
165
|
+
return l({
|
|
166
|
+
"text-center": e === O,
|
|
167
|
+
[s]: a === "small",
|
|
168
|
+
[o]: a === "medium",
|
|
169
|
+
[n]: a === "large"
|
|
170
|
+
});
|
|
171
|
+
case j:
|
|
172
|
+
return l({
|
|
173
|
+
[s]: a === "small" && (t || r),
|
|
174
|
+
[o]: a === "medium" && (t || r),
|
|
175
|
+
[n]: a === "large" && (t || r)
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}, ue = ({
|
|
179
|
+
mode: e,
|
|
180
|
+
noBackground: a,
|
|
181
|
+
truncate: t,
|
|
182
|
+
variant: r
|
|
183
|
+
}) => {
|
|
184
|
+
if (a)
|
|
185
|
+
return "not-prose";
|
|
186
|
+
if (r === "primary")
|
|
187
|
+
return l("not-prose", {
|
|
188
|
+
truncate: t,
|
|
189
|
+
"text-copy-light": e === "dark" || e === "system",
|
|
190
|
+
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
191
|
+
"dark:text-copy-lighter": e === "system",
|
|
192
|
+
"dark:text-copy-light": e === "alt-system"
|
|
193
|
+
});
|
|
194
|
+
if (r === "secondary")
|
|
195
|
+
return l("not-prose", {
|
|
196
|
+
truncate: t,
|
|
197
|
+
"text-copy-light": e === "light" || e === "system",
|
|
198
|
+
"text-copy-lighter": e === "dark" || e === "alt-system",
|
|
199
|
+
"dark:text-copy-lighter": e === "alt-system",
|
|
200
|
+
"dark:text-copy-light": e === "system"
|
|
201
|
+
});
|
|
202
|
+
if (r === "danger")
|
|
203
|
+
return l("not-prose", {
|
|
204
|
+
truncate: t,
|
|
205
|
+
"text-copy-light": e === "dark" || e === "system",
|
|
206
|
+
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
207
|
+
"dark:text-copy-lighter": e === "system",
|
|
208
|
+
"dark:text-copy-light": e === "alt-system"
|
|
209
|
+
});
|
|
210
|
+
if (r === "selected")
|
|
211
|
+
return l("not-prose text-copy-lighter", {
|
|
212
|
+
truncate: t
|
|
213
|
+
});
|
|
214
|
+
}, ye = ({
|
|
215
|
+
mode: e,
|
|
216
|
+
noBackground: a,
|
|
217
|
+
variant: t
|
|
218
|
+
}) => {
|
|
219
|
+
if (!a) {
|
|
220
|
+
if (t === "primary")
|
|
221
|
+
return l({
|
|
222
|
+
"bg-action-dark": e === "dark",
|
|
223
|
+
"bg-action-light": e === "light",
|
|
224
|
+
"bg-action-dark dark:bg-action-light": e === "system",
|
|
225
|
+
"bg-action-light dark:bg-action-dark": e === "alt-system"
|
|
226
|
+
});
|
|
227
|
+
if (t === "secondary")
|
|
228
|
+
return l({
|
|
229
|
+
"bg-action-dark": e === "light",
|
|
230
|
+
"bg-action-light": e === "dark",
|
|
231
|
+
"bg-action-dark dark:bg-action-light": e === "alt-system",
|
|
232
|
+
"bg-action-light dark:bg-action-dark": e === "system"
|
|
233
|
+
});
|
|
234
|
+
if (t === "danger")
|
|
235
|
+
return l({
|
|
236
|
+
"bg-action-danger-dark": e === "dark",
|
|
237
|
+
"bg-action-danger-light": e === "light",
|
|
238
|
+
"bg-action-danger-dark dark:bg-action-danger-light": e === "system",
|
|
239
|
+
"bg-action-danger-light dark:bg-action-danger-dark": e === "alt-system"
|
|
240
|
+
});
|
|
241
|
+
if (t === "selected")
|
|
242
|
+
return "bg-action-selected-dark";
|
|
243
|
+
}
|
|
244
|
+
}, ke = ({
|
|
245
|
+
radius: e
|
|
246
|
+
}) => l({
|
|
247
|
+
"rounded-full": e === "large",
|
|
248
|
+
"rounded-md": e === "medium",
|
|
249
|
+
"rounded-xs": e === "small"
|
|
250
|
+
}), fe = ({
|
|
251
|
+
mode: e,
|
|
252
|
+
disabled: a,
|
|
253
|
+
variant: t
|
|
254
|
+
}) => {
|
|
255
|
+
if (a)
|
|
256
|
+
return "";
|
|
257
|
+
if (t === "primary")
|
|
258
|
+
return l("hover:text-copy-light-hover", {
|
|
259
|
+
"hover:bg-action-dark-hover": e === "dark",
|
|
260
|
+
"hover:bg-action-light-hover": e === "light",
|
|
261
|
+
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
262
|
+
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
263
|
+
});
|
|
264
|
+
if (t === "secondary")
|
|
265
|
+
return l("hover:text-copy-light-hover", {
|
|
266
|
+
"hover:bg-action-dark-hover": e === "light",
|
|
267
|
+
"hover:bg-action-light-hover": e === "dark",
|
|
268
|
+
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
269
|
+
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
270
|
+
});
|
|
271
|
+
if (t === "danger")
|
|
272
|
+
return l("hover:text-copy-light-hover", {
|
|
273
|
+
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
274
|
+
"hover:bg-action-danger-light-hover": e === "light",
|
|
275
|
+
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
276
|
+
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
277
|
+
});
|
|
278
|
+
if (t === "selected")
|
|
279
|
+
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
280
|
+
}, ve = ({
|
|
281
|
+
mode: e,
|
|
282
|
+
disabled: a,
|
|
283
|
+
variant: t
|
|
284
|
+
}) => {
|
|
285
|
+
if (a)
|
|
286
|
+
return "";
|
|
287
|
+
if (t === "primary")
|
|
288
|
+
return l("active:text-copy-light-active", {
|
|
289
|
+
"active:bg-action-dark-active": e === "dark",
|
|
290
|
+
"active:bg-action-light-active": e === "light",
|
|
291
|
+
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
292
|
+
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
293
|
+
});
|
|
294
|
+
if (t === "secondary")
|
|
295
|
+
return l("active:text-copy-light-active", {
|
|
296
|
+
"active:bg-action-dark-active": e === "light",
|
|
297
|
+
"active:bg-action-light-active": e === "dark",
|
|
298
|
+
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
299
|
+
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
300
|
+
});
|
|
301
|
+
if (t === "danger")
|
|
302
|
+
return l("active:text-copy-lighter-active", {
|
|
303
|
+
"active:bg-action-danger-dark-active": e === "dark",
|
|
304
|
+
"active:bg-action-danger-light-active": e === "light",
|
|
305
|
+
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
306
|
+
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
307
|
+
});
|
|
308
|
+
if (t === "selected")
|
|
309
|
+
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
310
|
+
}, pe = ({
|
|
311
|
+
mode: e,
|
|
312
|
+
noBorder: a,
|
|
313
|
+
variant: t
|
|
314
|
+
}) => {
|
|
315
|
+
if (a)
|
|
316
|
+
return "border border-transparent";
|
|
317
|
+
if (t === "primary")
|
|
318
|
+
return l("border", {
|
|
319
|
+
"border-border-dark": e === "dark",
|
|
320
|
+
"border-border-accent": e === "light",
|
|
321
|
+
"border-border-dark dark:border-border-accent": e === "system",
|
|
322
|
+
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
323
|
+
});
|
|
324
|
+
if (t === "secondary")
|
|
325
|
+
return l("border", {
|
|
326
|
+
"border-border-dark": e === "light",
|
|
327
|
+
"border-border-accent": e === "dark",
|
|
328
|
+
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
329
|
+
"border-border-accent dark:border-border-dark": e === "system"
|
|
330
|
+
});
|
|
331
|
+
if (t === "danger")
|
|
332
|
+
return l("border", {
|
|
333
|
+
"border-border-danger-dark": e === "dark",
|
|
334
|
+
"border-border-danger-medium": e === "light",
|
|
335
|
+
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
336
|
+
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
337
|
+
});
|
|
338
|
+
if (t === "selected")
|
|
339
|
+
return "border border-border-selected-dark";
|
|
340
|
+
}, _e = ({
|
|
341
|
+
focusMode: e
|
|
342
|
+
}) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
343
|
+
"focus:outline-focus-dark": e === "dark",
|
|
344
|
+
"focus:outline-focus-light": e === "light",
|
|
345
|
+
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
346
|
+
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
347
|
+
}), xe = ({
|
|
348
|
+
mode: e,
|
|
349
|
+
raw: a,
|
|
350
|
+
iconClassName: t
|
|
351
|
+
}) => a ? "" : l(
|
|
352
|
+
{
|
|
353
|
+
"text-copy-accent-dark": e === "light" || e === "alt-system",
|
|
354
|
+
"text-copy-light": e === "dark" || e === "system",
|
|
355
|
+
"dark:text-copy-light": e === "alt-system",
|
|
356
|
+
"dark:text-copy-accent-dark": e === "system"
|
|
357
|
+
},
|
|
358
|
+
t
|
|
359
|
+
), we = ({
|
|
360
|
+
animated: e
|
|
361
|
+
}) => l({
|
|
362
|
+
"transition-opacity duration-300 ease-in": e
|
|
363
|
+
}), Ne = ({
|
|
364
|
+
type: e,
|
|
365
|
+
className: a,
|
|
366
|
+
raw: t,
|
|
367
|
+
mode: r,
|
|
368
|
+
focusMode: s,
|
|
369
|
+
disabled: o,
|
|
370
|
+
fullWidth: n,
|
|
371
|
+
size: d,
|
|
372
|
+
noBorder: c,
|
|
373
|
+
labelRight: g,
|
|
374
|
+
labelLeft: m,
|
|
375
|
+
noBackground: h,
|
|
376
|
+
variant: b,
|
|
377
|
+
truncate: y,
|
|
378
|
+
align: E,
|
|
379
|
+
radius: S,
|
|
380
|
+
animated: C
|
|
381
|
+
}) => (b || (b = "primary"), t ? l(F, a) : l(
|
|
382
|
+
F,
|
|
383
|
+
ue({
|
|
384
|
+
mode: r,
|
|
385
|
+
variant: b,
|
|
386
|
+
noBackground: h,
|
|
387
|
+
truncate: y
|
|
388
|
+
}),
|
|
389
|
+
ye({ mode: r, noBackground: h, variant: b }),
|
|
390
|
+
ke({ radius: S }),
|
|
391
|
+
be({
|
|
392
|
+
type: e,
|
|
393
|
+
size: d,
|
|
394
|
+
labelRight: g,
|
|
395
|
+
labelLeft: m,
|
|
396
|
+
align: E,
|
|
397
|
+
animated: C
|
|
398
|
+
}),
|
|
399
|
+
me({ type: e, size: d, labelRight: g, labelLeft: m }),
|
|
400
|
+
pe({ mode: r, variant: b, noBorder: c }),
|
|
401
|
+
_e({ focusMode: s }),
|
|
402
|
+
fe({ mode: r, variant: b, disabled: o }),
|
|
403
|
+
ve({ mode: r, variant: b, disabled: o }),
|
|
404
|
+
{
|
|
405
|
+
"w-full": n,
|
|
406
|
+
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
407
|
+
},
|
|
408
|
+
l({
|
|
409
|
+
"transition-[width] duration-300 ease-in-out": C
|
|
410
|
+
}),
|
|
411
|
+
a
|
|
412
|
+
)), Ce = (e, a, t) => {
|
|
413
|
+
var r;
|
|
414
|
+
!a && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((r = e == null ? void 0 : e.currentTarget) == null ? void 0 : r.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
415
|
+
}, X = R.forwardRef((e, a) => {
|
|
416
|
+
const { onClick: t, noInternalClick: r = !1, ...s } = e;
|
|
417
|
+
return /* @__PURE__ */ i(
|
|
418
|
+
"button",
|
|
419
|
+
{
|
|
420
|
+
ref: a,
|
|
421
|
+
onClick: (o) => {
|
|
422
|
+
Ce(o, r, t);
|
|
423
|
+
},
|
|
424
|
+
...s
|
|
425
|
+
}
|
|
426
|
+
);
|
|
427
|
+
});
|
|
428
|
+
X.displayName = "BaseButton";
|
|
429
|
+
function Be() {
|
|
430
|
+
const e = w(!1);
|
|
431
|
+
return G(() => (e.current = !0, () => {
|
|
432
|
+
e.current = !1;
|
|
433
|
+
}), []), oe(() => e.current, []);
|
|
434
|
+
}
|
|
435
|
+
function Te(e) {
|
|
436
|
+
return q(() => e.every((a) => a == null) ? () => {
|
|
437
|
+
} : (a) => {
|
|
438
|
+
e.forEach((t) => {
|
|
439
|
+
typeof t == "function" ? t(a) : t != null && (t.current = a);
|
|
440
|
+
});
|
|
441
|
+
}, e);
|
|
442
|
+
}
|
|
443
|
+
const Re = {
|
|
444
|
+
x: 0,
|
|
445
|
+
y: 0,
|
|
446
|
+
width: 0,
|
|
447
|
+
height: 0,
|
|
448
|
+
top: 0,
|
|
449
|
+
left: 0,
|
|
450
|
+
bottom: 0,
|
|
451
|
+
right: 0
|
|
452
|
+
};
|
|
453
|
+
function L(e) {
|
|
454
|
+
const a = Be(), t = w(0), r = w(null), [s, o] = le(Re), n = q(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
|
|
455
|
+
const c = d[0];
|
|
456
|
+
c && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
457
|
+
r.current && a() && o(c.contentRect);
|
|
458
|
+
}));
|
|
459
|
+
}), [a]);
|
|
460
|
+
return G(() => (r.current && (n == null || n.observe(r.current, e)), () => {
|
|
461
|
+
n == null || n.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
462
|
+
}), [n, e]), [r, s];
|
|
463
|
+
}
|
|
464
|
+
const Ie = {
|
|
465
|
+
small: 24,
|
|
466
|
+
// w-6
|
|
467
|
+
medium: 32,
|
|
468
|
+
// w-8
|
|
469
|
+
large: 48
|
|
470
|
+
// w-12
|
|
471
|
+
}, Ee = {
|
|
472
|
+
small: 8 * 2,
|
|
473
|
+
// px-2 x 2
|
|
474
|
+
medium: 12 * 2,
|
|
475
|
+
// px-3 x 2
|
|
476
|
+
large: 16 * 2
|
|
477
|
+
// px-4 x 2
|
|
478
|
+
}, Se = 2, Y = R.forwardRef(
|
|
479
|
+
({
|
|
480
|
+
children: e,
|
|
481
|
+
disabled: a = !1,
|
|
482
|
+
mode: t = "system",
|
|
483
|
+
focusMode: r = "system",
|
|
484
|
+
fullWidth: s = !1,
|
|
485
|
+
className: o,
|
|
486
|
+
type: n = "button",
|
|
487
|
+
raw: d = !1,
|
|
488
|
+
noBorder: c = !1,
|
|
489
|
+
"aria-label": g,
|
|
490
|
+
label: m,
|
|
491
|
+
size: h = "medium",
|
|
492
|
+
labelRight: b,
|
|
493
|
+
labelLeft: y,
|
|
494
|
+
noBackground: E = !1,
|
|
495
|
+
align: S = "center",
|
|
496
|
+
radius: C = "large",
|
|
497
|
+
variant: J = "primary",
|
|
498
|
+
iconClassName: K,
|
|
499
|
+
animated: k = !1,
|
|
500
|
+
...Q
|
|
501
|
+
}, ee) => {
|
|
502
|
+
const te = Ne({
|
|
503
|
+
type: j,
|
|
504
|
+
mode: t,
|
|
505
|
+
focusMode: r,
|
|
506
|
+
fullWidth: s,
|
|
507
|
+
disabled: a,
|
|
508
|
+
raw: d,
|
|
509
|
+
className: o,
|
|
510
|
+
noBorder: c,
|
|
511
|
+
size: h,
|
|
512
|
+
labelRight: b,
|
|
513
|
+
labelLeft: y,
|
|
514
|
+
noBackground: E,
|
|
515
|
+
align: S,
|
|
516
|
+
radius: C,
|
|
517
|
+
variant: J,
|
|
518
|
+
animated: k
|
|
519
|
+
}), ae = xe({ mode: t, raw: d, iconClassName: K }), U = we({ animated: k }), [u, z] = L(), [f, V] = L(), [B, W] = L(), M = w(0), v = w(null), re = Te([ee, v]);
|
|
520
|
+
return D(() => {
|
|
521
|
+
B && B.current && k && (M.current = W.width + Ee[h] + (c ? 0 : Se));
|
|
522
|
+
}, [W, B, h, c, k]), D(() => {
|
|
523
|
+
v && v.current && k && (b && u && z.width > 0 ? (u.current && (u.current.style.opacity = "100"), v.current.style.width = `${z.width + M.current}px`) : y && V.width > 0 ? (f.current && (f.current.style.opacity = "100"), v.current.style.width = `${V.width + M.current}px`) : (u.current && (u.current.style.opacity = "0"), f.current && (f.current.style.opacity = "0"), v.current.style.width = `${Ie[h]}px`));
|
|
524
|
+
}, [
|
|
525
|
+
z,
|
|
526
|
+
b,
|
|
527
|
+
u,
|
|
528
|
+
V,
|
|
529
|
+
y,
|
|
530
|
+
f,
|
|
531
|
+
h,
|
|
532
|
+
k
|
|
533
|
+
]), /* @__PURE__ */ _(
|
|
534
|
+
X,
|
|
535
|
+
{
|
|
536
|
+
ref: re,
|
|
537
|
+
className: te,
|
|
538
|
+
disabled: a,
|
|
539
|
+
type: n,
|
|
540
|
+
"aria-label": g || m,
|
|
541
|
+
...Q,
|
|
542
|
+
children: [
|
|
543
|
+
/* @__PURE__ */ i(
|
|
544
|
+
H,
|
|
545
|
+
{
|
|
546
|
+
label: y,
|
|
547
|
+
labelRef: f,
|
|
548
|
+
labelClass: U,
|
|
549
|
+
labelInnerClass: "pr-2"
|
|
550
|
+
}
|
|
551
|
+
),
|
|
552
|
+
/* @__PURE__ */ i("span", { ref: B, className: ae, children: e }),
|
|
553
|
+
/* @__PURE__ */ i(
|
|
554
|
+
H,
|
|
555
|
+
{
|
|
556
|
+
label: b,
|
|
557
|
+
labelRef: u,
|
|
558
|
+
labelClass: U,
|
|
559
|
+
labelInnerClass: "pl-2"
|
|
560
|
+
}
|
|
561
|
+
)
|
|
562
|
+
]
|
|
563
|
+
}
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
), H = ({
|
|
567
|
+
labelRef: e,
|
|
568
|
+
labelClass: a,
|
|
569
|
+
label: t,
|
|
570
|
+
labelInnerClass: r
|
|
571
|
+
}) => /* @__PURE__ */ i("span", { ref: e, className: a, children: t && /* @__PURE__ */ i("span", { className: r, children: t }) });
|
|
572
|
+
Y.displayName = "ButtonIcon";
|
|
573
|
+
/*!
|
|
574
|
+
@versini/ui-button v6.0.5
|
|
575
|
+
© 2025 gizmette.com
|
|
576
|
+
*/
|
|
577
|
+
try {
|
|
578
|
+
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
579
|
+
version: "6.0.5",
|
|
580
|
+
buildTime: "04/12/2025 09:18 AM EDT",
|
|
581
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
582
|
+
license: "MIT"
|
|
583
|
+
});
|
|
584
|
+
} catch {
|
|
585
|
+
}
|
|
586
|
+
const Z = R.forwardRef(
|
|
587
|
+
({
|
|
588
|
+
children: e,
|
|
589
|
+
mode: a = "system",
|
|
590
|
+
className: t,
|
|
591
|
+
active: r = !1,
|
|
592
|
+
...s
|
|
593
|
+
}, o) => {
|
|
594
|
+
const n = r ? l(
|
|
595
|
+
"relative",
|
|
596
|
+
"focus-within:static",
|
|
597
|
+
"focus-within:after:border-transparent",
|
|
598
|
+
"after:absolute",
|
|
599
|
+
"after:content-['']",
|
|
600
|
+
"after:border-b-2",
|
|
601
|
+
"after:bottom-[-4px]",
|
|
602
|
+
"after:left-0",
|
|
603
|
+
"after:right-0",
|
|
604
|
+
{
|
|
605
|
+
"after:border-table-dark": a === "dark",
|
|
606
|
+
"after:border-table-light": a === "light",
|
|
607
|
+
"after:border-table-dark dark:after:border-table-light": a === "system",
|
|
608
|
+
"after:border-table-light dark:after:border-table-dark": a === "alt-system"
|
|
609
|
+
}
|
|
610
|
+
) : "";
|
|
611
|
+
return /* @__PURE__ */ i("div", { className: n, children: /* @__PURE__ */ i(
|
|
612
|
+
Y,
|
|
613
|
+
{
|
|
614
|
+
className: l("justify-center", t),
|
|
615
|
+
ref: o,
|
|
616
|
+
mode: a,
|
|
617
|
+
radius: "small",
|
|
618
|
+
...s,
|
|
619
|
+
children: e
|
|
620
|
+
}
|
|
621
|
+
) });
|
|
622
|
+
}
|
|
623
|
+
);
|
|
624
|
+
Z.displayName = "ButtonSort";
|
|
625
|
+
const P = ({
|
|
626
|
+
children: e,
|
|
627
|
+
fill: a,
|
|
628
|
+
viewBox: t,
|
|
629
|
+
className: r,
|
|
630
|
+
defaultViewBox: s,
|
|
631
|
+
size: o,
|
|
632
|
+
title: n,
|
|
633
|
+
semantic: d = !1,
|
|
634
|
+
...c
|
|
635
|
+
}) => {
|
|
636
|
+
const g = l(o, r);
|
|
637
|
+
return /* @__PURE__ */ i(se, { children: /* @__PURE__ */ _(
|
|
638
|
+
"svg",
|
|
639
|
+
{
|
|
640
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
641
|
+
className: g,
|
|
642
|
+
viewBox: t || s,
|
|
643
|
+
fill: a || "currentColor",
|
|
644
|
+
role: "img",
|
|
645
|
+
"aria-hidden": !d,
|
|
646
|
+
focusable: !1,
|
|
647
|
+
...c,
|
|
648
|
+
children: [
|
|
649
|
+
n && d && /* @__PURE__ */ i("title", { children: n }),
|
|
650
|
+
e
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
) });
|
|
654
|
+
};
|
|
655
|
+
/*!
|
|
656
|
+
@versini/ui-svgicon v4.2.0
|
|
657
|
+
© 2025 gizmette.com
|
|
658
|
+
*/
|
|
659
|
+
try {
|
|
660
|
+
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
661
|
+
version: "4.2.0",
|
|
662
|
+
buildTime: "04/05/2025 07:49 PM EDT",
|
|
663
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
664
|
+
license: "MIT"
|
|
665
|
+
});
|
|
666
|
+
} catch {
|
|
667
|
+
}
|
|
668
|
+
const ze = ({
|
|
669
|
+
className: e,
|
|
670
|
+
viewBox: a,
|
|
671
|
+
title: t,
|
|
672
|
+
monotone: r,
|
|
673
|
+
...s
|
|
674
|
+
}) => /* @__PURE__ */ _(
|
|
675
|
+
P,
|
|
676
|
+
{
|
|
677
|
+
defaultViewBox: "0 0 576 512",
|
|
678
|
+
size: "size-5",
|
|
679
|
+
viewBox: a,
|
|
680
|
+
className: e,
|
|
681
|
+
title: t || "Sort",
|
|
682
|
+
...s,
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ i(
|
|
685
|
+
"path",
|
|
686
|
+
{
|
|
687
|
+
d: "M297.4 137.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l41.3-41.4V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.3l41.4 41.4c12.5 12.5 32.8 12.5 45.3 0 6.2-6.2 9.4-14.4 9.4-22.6s-3.1-16.4-9.4-22.6l-96-96c-6.3-6.4-14.5-9.5-22.7-9.5s-16.4 3.1-22.6 9.4z",
|
|
688
|
+
opacity: r ? "1" : "0.4"
|
|
689
|
+
}
|
|
690
|
+
),
|
|
691
|
+
/* @__PURE__ */ i("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
692
|
+
]
|
|
693
|
+
}
|
|
694
|
+
), Ve = ({
|
|
695
|
+
className: e,
|
|
696
|
+
viewBox: a,
|
|
697
|
+
title: t,
|
|
698
|
+
monotone: r,
|
|
699
|
+
...s
|
|
700
|
+
}) => /* @__PURE__ */ _(
|
|
701
|
+
P,
|
|
702
|
+
{
|
|
703
|
+
defaultViewBox: "0 0 576 512",
|
|
704
|
+
size: "size-5",
|
|
705
|
+
viewBox: a,
|
|
706
|
+
className: e,
|
|
707
|
+
title: t || "Sort Down",
|
|
708
|
+
...s,
|
|
709
|
+
children: [
|
|
710
|
+
/* @__PURE__ */ i(
|
|
711
|
+
"path",
|
|
712
|
+
{
|
|
713
|
+
d: "M288 64c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32",
|
|
714
|
+
opacity: r ? "1" : "0.4"
|
|
715
|
+
}
|
|
716
|
+
),
|
|
717
|
+
/* @__PURE__ */ i("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
), Me = ({
|
|
721
|
+
className: e,
|
|
722
|
+
viewBox: a,
|
|
723
|
+
title: t,
|
|
724
|
+
monotone: r,
|
|
725
|
+
...s
|
|
726
|
+
}) => /* @__PURE__ */ _(
|
|
727
|
+
P,
|
|
728
|
+
{
|
|
729
|
+
defaultViewBox: "0 0 576 512",
|
|
730
|
+
size: "size-5",
|
|
731
|
+
viewBox: a,
|
|
732
|
+
className: e,
|
|
733
|
+
title: t || "Sort Up",
|
|
734
|
+
...s,
|
|
735
|
+
children: [
|
|
736
|
+
/* @__PURE__ */ i(
|
|
737
|
+
"path",
|
|
738
|
+
{
|
|
739
|
+
d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32",
|
|
740
|
+
opacity: r ? "1" : "0.4"
|
|
741
|
+
}
|
|
742
|
+
),
|
|
743
|
+
/* @__PURE__ */ i("path", { d: "M128 32c9 0 17.5 3.8 23.6 10.4l88 96c11.9 13 11.1 33.3-2 45.2s-33.3 11.1-45.2-2L160 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3l-32.4 35.3c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32" })
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
);
|
|
747
|
+
/*!
|
|
748
|
+
@versini/ui-icons v4.9.0
|
|
749
|
+
© 2025 gizmette.com
|
|
750
|
+
*/
|
|
751
|
+
try {
|
|
752
|
+
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
753
|
+
version: "4.9.0",
|
|
754
|
+
buildTime: "04/05/2025 07:49 PM EDT",
|
|
755
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
756
|
+
license: "MIT"
|
|
757
|
+
});
|
|
758
|
+
} catch {
|
|
759
|
+
}
|
|
760
|
+
const x = R.createContext({
|
|
761
|
+
mode: "light",
|
|
762
|
+
cellWrapper: "thead",
|
|
763
|
+
stickyHeader: !1,
|
|
764
|
+
stickyFooter: !1,
|
|
765
|
+
compact: !1
|
|
766
|
+
}), Pe = ({
|
|
767
|
+
children: e,
|
|
768
|
+
mode: a = "system",
|
|
769
|
+
caption: t,
|
|
770
|
+
compact: r,
|
|
771
|
+
summary: s,
|
|
772
|
+
className: o,
|
|
773
|
+
wrapperClassName: n,
|
|
774
|
+
maxHeight: d,
|
|
775
|
+
stickyHeader: c,
|
|
776
|
+
stickyFooter: g,
|
|
777
|
+
...m
|
|
778
|
+
}) => {
|
|
779
|
+
const h = ie({
|
|
780
|
+
mode: a,
|
|
781
|
+
className: o,
|
|
782
|
+
wrapperClassName: n,
|
|
783
|
+
stickyHeader: c,
|
|
784
|
+
stickyFooter: g
|
|
785
|
+
});
|
|
786
|
+
return /* @__PURE__ */ i(
|
|
787
|
+
x.Provider,
|
|
788
|
+
{
|
|
789
|
+
value: { mode: a, stickyHeader: c, stickyFooter: g, compact: r },
|
|
790
|
+
children: /* @__PURE__ */ i(
|
|
791
|
+
"div",
|
|
792
|
+
{
|
|
793
|
+
className: h.wrapper,
|
|
794
|
+
...d && {
|
|
795
|
+
style: { maxHeight: d }
|
|
796
|
+
},
|
|
797
|
+
children: /* @__PURE__ */ _("table", { className: h.table, summary: s, ...m, children: [
|
|
798
|
+
t && /* @__PURE__ */ i("caption", { className: h.caption, children: t }),
|
|
799
|
+
e
|
|
800
|
+
] })
|
|
801
|
+
}
|
|
802
|
+
)
|
|
803
|
+
}
|
|
804
|
+
);
|
|
805
|
+
}, Ue = ({
|
|
806
|
+
children: e,
|
|
807
|
+
className: a,
|
|
808
|
+
...t
|
|
809
|
+
}) => {
|
|
810
|
+
const r = N(x);
|
|
811
|
+
r.cellWrapper = I;
|
|
812
|
+
const s = ne({
|
|
813
|
+
className: a,
|
|
814
|
+
mode: r.mode,
|
|
815
|
+
stickyHeader: r.stickyHeader
|
|
816
|
+
});
|
|
817
|
+
return /* @__PURE__ */ i("thead", { className: s, ...t, children: e });
|
|
818
|
+
}, We = ({
|
|
819
|
+
children: e,
|
|
820
|
+
className: a,
|
|
821
|
+
...t
|
|
822
|
+
}) => {
|
|
823
|
+
const r = N(x);
|
|
824
|
+
r.cellWrapper = A;
|
|
825
|
+
const s = ce({
|
|
826
|
+
className: a,
|
|
827
|
+
mode: r.mode,
|
|
828
|
+
stickyFooter: r.stickyFooter
|
|
829
|
+
});
|
|
830
|
+
return /* @__PURE__ */ i("tfoot", { className: s, ...t, children: e });
|
|
831
|
+
}, De = ({ children: e, ...a }) => {
|
|
832
|
+
const t = N(x);
|
|
833
|
+
return t.cellWrapper = p, /* @__PURE__ */ i("tbody", { ...a, children: e });
|
|
834
|
+
}, Fe = ({
|
|
835
|
+
children: e,
|
|
836
|
+
className: a,
|
|
837
|
+
...t
|
|
838
|
+
}) => {
|
|
839
|
+
const r = N(x), s = de({
|
|
840
|
+
mode: r.mode,
|
|
841
|
+
cellWrapper: r.cellWrapper,
|
|
842
|
+
className: a
|
|
843
|
+
});
|
|
844
|
+
return /* @__PURE__ */ i("tr", { className: s, ...t, children: e });
|
|
845
|
+
}, Le = ({
|
|
846
|
+
children: e,
|
|
847
|
+
component: a,
|
|
848
|
+
className: t,
|
|
849
|
+
align: r,
|
|
850
|
+
...s
|
|
851
|
+
}) => {
|
|
852
|
+
const o = N(x), n = a || (o.cellWrapper === I ? "th" : "td"), { mainClasses: d, alignClasses: c } = ge({
|
|
853
|
+
cellWrapper: o.cellWrapper,
|
|
854
|
+
className: t,
|
|
855
|
+
mode: o.mode,
|
|
856
|
+
compact: o.compact,
|
|
857
|
+
align: r
|
|
858
|
+
});
|
|
859
|
+
return r ? /* @__PURE__ */ i(n, { className: d, ...s, children: /* @__PURE__ */ i("div", { className: c, children: e }) }) : /* @__PURE__ */ i(n, { className: d, ...s, children: e });
|
|
860
|
+
}, He = ({
|
|
861
|
+
align: e,
|
|
862
|
+
children: a,
|
|
863
|
+
buttonClassName: t,
|
|
864
|
+
className: r,
|
|
865
|
+
component: s,
|
|
866
|
+
focusMode: o = "alt-system",
|
|
867
|
+
mode: n = "alt-system",
|
|
868
|
+
onClick: d,
|
|
869
|
+
sortDirection: c,
|
|
870
|
+
sortedCell: g,
|
|
871
|
+
cellId: m,
|
|
872
|
+
...h
|
|
873
|
+
}) => {
|
|
874
|
+
const b = he({ buttonClassName: t });
|
|
875
|
+
return /* @__PURE__ */ i(
|
|
876
|
+
Le,
|
|
877
|
+
{
|
|
878
|
+
component: s,
|
|
879
|
+
className: r,
|
|
880
|
+
role: "columnheader",
|
|
881
|
+
"aria-sort": c === T.ASC && g === m ? "ascending" : c === T.DESC && g === m ? "descending" : "other",
|
|
882
|
+
...h,
|
|
883
|
+
children: /* @__PURE__ */ i(
|
|
884
|
+
Z,
|
|
885
|
+
{
|
|
886
|
+
active: g === m,
|
|
887
|
+
className: b,
|
|
888
|
+
onClick: d,
|
|
889
|
+
align: e,
|
|
890
|
+
noBorder: !0,
|
|
891
|
+
focusMode: o,
|
|
892
|
+
mode: n,
|
|
893
|
+
fullWidth: !0,
|
|
894
|
+
labelRight: a,
|
|
895
|
+
children: c === T.ASC && g === m ? /* @__PURE__ */ i(Me, { className: "size-4", monotone: !0 }) : c === T.DESC && g === m ? /* @__PURE__ */ i(Ve, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ i(ze, { className: "size-4", monotone: !0 })
|
|
896
|
+
}
|
|
897
|
+
)
|
|
898
|
+
}
|
|
899
|
+
);
|
|
900
|
+
};
|
|
4
901
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
902
|
+
Pe as Table,
|
|
903
|
+
De as TableBody,
|
|
904
|
+
Le as TableCell,
|
|
905
|
+
He as TableCellSort,
|
|
906
|
+
T as TableCellSortDirections,
|
|
907
|
+
We as TableFooter,
|
|
908
|
+
Ue as TableHead,
|
|
909
|
+
Fe as TableRow
|
|
12
910
|
};
|