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