@versini/ui-table 4.0.17 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Table/Table.js +86 -86
- package/dist/index.js +3 -3
- package/package.json +7 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as o, jsxs as N
|
|
2
|
-
import z, { useRef as w, useLayoutEffect as q, useEffect as
|
|
1
|
+
import { jsx as o, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import z, { useRef as w, useLayoutEffect as q, useEffect as W, useState as ce, useMemo as K, useCallback as ne, useContext as B } from "react";
|
|
3
3
|
import l from "clsx";
|
|
4
4
|
import { TableCellSortDirections as R } from "../TableConstants/TableConstants.js";
|
|
5
|
-
const Y = "av-button",
|
|
5
|
+
const Y = "av-button", P = "icon", Q = "button", U = "link", de = ({
|
|
6
6
|
type: e,
|
|
7
7
|
size: r,
|
|
8
8
|
labelRight: t,
|
|
@@ -13,13 +13,13 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
13
13
|
const c = "max-h-8 py-0 px-2", d = "max-h-9 h-8 px-3", n = "max-h-12 py-2 px-4";
|
|
14
14
|
switch (e) {
|
|
15
15
|
case Q:
|
|
16
|
-
case
|
|
16
|
+
case U:
|
|
17
17
|
return l({
|
|
18
18
|
[c]: r === "small",
|
|
19
19
|
[d]: r === "medium",
|
|
20
20
|
[n]: r === "large"
|
|
21
21
|
});
|
|
22
|
-
case
|
|
22
|
+
case P:
|
|
23
23
|
return l("flex items-center", {
|
|
24
24
|
"justify-center": s === "center",
|
|
25
25
|
"justify-start": s === "left",
|
|
@@ -38,7 +38,7 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
38
38
|
"h-12": r === "large" && i && (t || a)
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
},
|
|
41
|
+
}, he = ({
|
|
42
42
|
type: e,
|
|
43
43
|
size: r,
|
|
44
44
|
labelRight: t,
|
|
@@ -47,21 +47,21 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
47
47
|
const s = "text-sm font-medium", i = "text-base font-medium", c = "text-lg font-medium";
|
|
48
48
|
switch (e) {
|
|
49
49
|
case Q:
|
|
50
|
-
case
|
|
50
|
+
case U:
|
|
51
51
|
return l({
|
|
52
|
-
"text-center": e ===
|
|
52
|
+
"text-center": e === U,
|
|
53
53
|
[s]: r === "small",
|
|
54
54
|
[i]: r === "medium",
|
|
55
55
|
[c]: r === "large"
|
|
56
56
|
});
|
|
57
|
-
case
|
|
57
|
+
case P:
|
|
58
58
|
return l({
|
|
59
59
|
[s]: r === "small" && (t || a),
|
|
60
60
|
[i]: r === "medium" && (t || a),
|
|
61
61
|
[c]: r === "large" && (t || a)
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, ge = ({
|
|
65
65
|
mode: e,
|
|
66
66
|
noBackground: r,
|
|
67
67
|
truncate: t,
|
|
@@ -97,7 +97,7 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
97
97
|
return l("not-prose text-copy-lighter", {
|
|
98
98
|
truncate: t
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, me = ({
|
|
101
101
|
mode: e,
|
|
102
102
|
noBackground: r,
|
|
103
103
|
variant: t
|
|
@@ -127,13 +127,13 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
127
127
|
if (t === "selected")
|
|
128
128
|
return "bg-action-selected-dark";
|
|
129
129
|
}
|
|
130
|
-
},
|
|
130
|
+
}, be = ({
|
|
131
131
|
radius: e
|
|
132
132
|
}) => l({
|
|
133
133
|
"rounded-full": e === "large",
|
|
134
134
|
"rounded-md": e === "medium",
|
|
135
135
|
"rounded-xs": e === "small"
|
|
136
|
-
}),
|
|
136
|
+
}), ue = ({
|
|
137
137
|
mode: e,
|
|
138
138
|
disabled: r,
|
|
139
139
|
variant: t
|
|
@@ -171,7 +171,7 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
171
171
|
});
|
|
172
172
|
if (t === "selected")
|
|
173
173
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
174
|
-
},
|
|
174
|
+
}, ye = ({
|
|
175
175
|
mode: e,
|
|
176
176
|
disabled: r,
|
|
177
177
|
variant: t
|
|
@@ -209,7 +209,7 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
209
209
|
});
|
|
210
210
|
if (t === "selected")
|
|
211
211
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
212
|
-
},
|
|
212
|
+
}, ke = ({
|
|
213
213
|
mode: e,
|
|
214
214
|
noBorder: r,
|
|
215
215
|
variant: t
|
|
@@ -239,14 +239,14 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
239
239
|
});
|
|
240
240
|
if (t === "selected")
|
|
241
241
|
return "border border-border-selected-dark";
|
|
242
|
-
},
|
|
242
|
+
}, ve = ({
|
|
243
243
|
focusMode: e
|
|
244
244
|
}) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
245
245
|
"focus:outline-focus-dark": e === "dark",
|
|
246
246
|
"focus:outline-focus-light": e === "light",
|
|
247
247
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
248
248
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
249
|
-
}),
|
|
249
|
+
}), pe = ({
|
|
250
250
|
mode: e,
|
|
251
251
|
raw: r,
|
|
252
252
|
iconClassName: t,
|
|
@@ -273,11 +273,11 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
273
273
|
} : a === "selected" && (s = {
|
|
274
274
|
"text-copy-lighter": !0
|
|
275
275
|
}), l(s, t);
|
|
276
|
-
},
|
|
276
|
+
}, fe = ({
|
|
277
277
|
animated: e
|
|
278
278
|
}) => l({
|
|
279
279
|
"transition-opacity duration-300 ease-in-out": e
|
|
280
|
-
}),
|
|
280
|
+
}), xe = ({
|
|
281
281
|
type: e,
|
|
282
282
|
className: r,
|
|
283
283
|
raw: t,
|
|
@@ -297,15 +297,15 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
297
297
|
animated: T
|
|
298
298
|
}) => (m || (m = "primary"), t ? l(Y, r) : l(
|
|
299
299
|
Y,
|
|
300
|
-
|
|
300
|
+
ge({
|
|
301
301
|
mode: a,
|
|
302
302
|
variant: m,
|
|
303
303
|
noBackground: h,
|
|
304
304
|
truncate: p
|
|
305
305
|
}),
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
me({ mode: a, noBackground: h, variant: m }),
|
|
307
|
+
be({ radius: M }),
|
|
308
|
+
de({
|
|
309
309
|
type: e,
|
|
310
310
|
size: d,
|
|
311
311
|
labelRight: g,
|
|
@@ -313,11 +313,11 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
313
313
|
align: L,
|
|
314
314
|
animated: T
|
|
315
315
|
}),
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
he({ type: e, size: d, labelRight: g, labelLeft: b }),
|
|
317
|
+
ke({ mode: a, variant: m, noBorder: n }),
|
|
318
|
+
ve({ focusMode: s }),
|
|
319
|
+
ue({ mode: a, variant: m, disabled: i }),
|
|
319
320
|
ye({ mode: a, variant: m, disabled: i }),
|
|
320
|
-
ke({ mode: a, variant: m, disabled: i }),
|
|
321
321
|
{
|
|
322
322
|
"w-full": c,
|
|
323
323
|
"disabled:cursor-not-allowed disabled:opacity-50": i
|
|
@@ -326,7 +326,7 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
326
326
|
"transition-[width] duration-300 ease-in": T
|
|
327
327
|
}),
|
|
328
328
|
r
|
|
329
|
-
)),
|
|
329
|
+
)), _e = (e, r, t) => {
|
|
330
330
|
!r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
331
331
|
}, X = z.forwardRef((e, r) => {
|
|
332
332
|
const { onClick: t, noInternalClick: a = !1, ...s } = e;
|
|
@@ -335,20 +335,20 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
|
|
|
335
335
|
{
|
|
336
336
|
ref: r,
|
|
337
337
|
onClick: (i) => {
|
|
338
|
-
|
|
338
|
+
_e(i, a, t);
|
|
339
339
|
},
|
|
340
340
|
...s
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
});
|
|
344
344
|
X.displayName = "BaseButton";
|
|
345
|
-
function
|
|
345
|
+
function we() {
|
|
346
346
|
const e = w(!1);
|
|
347
|
-
return
|
|
347
|
+
return W(() => (e.current = !0, () => {
|
|
348
348
|
e.current = !1;
|
|
349
|
-
}), []),
|
|
349
|
+
}), []), ne(() => e.current, []);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Ne(e) {
|
|
352
352
|
return K(() => e.every((r) => r == null) ? () => {
|
|
353
353
|
} : (r) => {
|
|
354
354
|
e.forEach((t) => {
|
|
@@ -356,7 +356,7 @@ function Ce(e) {
|
|
|
356
356
|
});
|
|
357
357
|
}, [...e]);
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const Ce = {
|
|
360
360
|
x: 0,
|
|
361
361
|
y: 0,
|
|
362
362
|
width: 0,
|
|
@@ -366,14 +366,14 @@ const Be = {
|
|
|
366
366
|
bottom: 0,
|
|
367
367
|
right: 0
|
|
368
368
|
};
|
|
369
|
-
function
|
|
370
|
-
const r =
|
|
369
|
+
function j(e) {
|
|
370
|
+
const r = we(), t = w(0), a = w(null), [s, i] = ce(Ce), c = K(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
|
|
371
371
|
const n = d[0];
|
|
372
372
|
n && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
373
373
|
a.current && r() && i(n.contentRect);
|
|
374
374
|
}));
|
|
375
375
|
}), [r]);
|
|
376
|
-
return
|
|
376
|
+
return W(() => (a.current && c?.observe(a.current, e), () => {
|
|
377
377
|
c?.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
378
378
|
}), [c, e]), [a, s];
|
|
379
379
|
}
|
|
@@ -384,14 +384,14 @@ const E = {
|
|
|
384
384
|
// w-8
|
|
385
385
|
large: 48
|
|
386
386
|
// w-12
|
|
387
|
-
},
|
|
387
|
+
}, Be = {
|
|
388
388
|
small: 16,
|
|
389
389
|
// px-2 x 2
|
|
390
390
|
medium: 24,
|
|
391
391
|
// px-3 x 2
|
|
392
392
|
large: 32
|
|
393
393
|
// px-4 x 2
|
|
394
|
-
},
|
|
394
|
+
}, Te = 2, Ie = 300, Z = z.forwardRef(
|
|
395
395
|
({
|
|
396
396
|
children: e,
|
|
397
397
|
disabled: r = !1,
|
|
@@ -415,8 +415,8 @@ const E = {
|
|
|
415
415
|
animated: k = !1,
|
|
416
416
|
...re
|
|
417
417
|
}, ae) => {
|
|
418
|
-
const se =
|
|
419
|
-
type:
|
|
418
|
+
const se = xe({
|
|
419
|
+
type: P,
|
|
420
420
|
mode: t,
|
|
421
421
|
focusMode: a,
|
|
422
422
|
fullWidth: s,
|
|
@@ -432,15 +432,15 @@ const E = {
|
|
|
432
432
|
radius: T,
|
|
433
433
|
variant: D,
|
|
434
434
|
animated: k
|
|
435
|
-
}), le =
|
|
435
|
+
}), le = pe({ mode: t, raw: d, iconClassName: te, variant: D }), F = fe({ animated: k }), ie = "flex items-center justify-center relative w-full h-full overflow-hidden", [u, V] = j(), [y, O] = j(), [I, G] = j(), A = w(0), v = w(null), f = w(null), oe = Ne([ae, v]);
|
|
436
436
|
return q(() => {
|
|
437
|
-
I && I.current && k && (
|
|
437
|
+
I && I.current && k && (A.current = G.width + Be[h] + (n ? 0 : Te), v.current && !v.current.style.width && (v.current.style.width = `${E[h]}px`));
|
|
438
438
|
}, [G, I, h, n, k]), q(() => {
|
|
439
439
|
if (v && v.current && k) {
|
|
440
440
|
let x = E[h];
|
|
441
|
-
m && u && V.width > 0 ? x = V.width +
|
|
441
|
+
m && u && V.width > 0 ? x = V.width + A.current : p && y && O.width > 0 && (x = O.width + A.current), f.current && clearTimeout(f.current), x !== parseInt(v.current.style.width || "0", 10) && (u.current && (u.current.style.opacity = "0"), y.current && (y.current.style.opacity = "0"), v.current.style.width = `${x}px`, x > E[h] && (f.current = setTimeout(() => {
|
|
442
442
|
u.current && m && (u.current.style.opacity = "1"), y.current && p && (y.current.style.opacity = "1"), f.current = null;
|
|
443
|
-
},
|
|
443
|
+
}, Ie * 0.8))), x === E[h] && (u.current && (u.current.style.opacity = "0"), y.current && (y.current.style.opacity = "0"));
|
|
444
444
|
}
|
|
445
445
|
}, [
|
|
446
446
|
V,
|
|
@@ -451,7 +451,7 @@ const E = {
|
|
|
451
451
|
y,
|
|
452
452
|
h,
|
|
453
453
|
k
|
|
454
|
-
]),
|
|
454
|
+
]), W(() => () => {
|
|
455
455
|
f.current && clearTimeout(f.current);
|
|
456
456
|
}, []), /* @__PURE__ */ o(
|
|
457
457
|
X,
|
|
@@ -505,13 +505,13 @@ const E = {
|
|
|
505
505
|
);
|
|
506
506
|
Z.displayName = "ButtonIcon";
|
|
507
507
|
/*!
|
|
508
|
-
@versini/ui-button
|
|
508
|
+
@versini/ui-button v8.0.0
|
|
509
509
|
© 2025 gizmette.com
|
|
510
510
|
*/
|
|
511
511
|
try {
|
|
512
512
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
513
|
-
version: "
|
|
514
|
-
buildTime: "
|
|
513
|
+
version: "8.0.0",
|
|
514
|
+
buildTime: "09/01/2025 03:17 PM EDT",
|
|
515
515
|
homepage: "https://github.com/aversini/ui-components",
|
|
516
516
|
license: "MIT"
|
|
517
517
|
});
|
|
@@ -570,7 +570,7 @@ const $ = ({
|
|
|
570
570
|
...n
|
|
571
571
|
}) => {
|
|
572
572
|
const g = l(i, a);
|
|
573
|
-
return /* @__PURE__ */
|
|
573
|
+
return /* @__PURE__ */ N(
|
|
574
574
|
"svg",
|
|
575
575
|
{
|
|
576
576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -586,22 +586,22 @@ const $ = ({
|
|
|
586
586
|
e
|
|
587
587
|
]
|
|
588
588
|
}
|
|
589
|
-
)
|
|
589
|
+
);
|
|
590
590
|
};
|
|
591
591
|
/*!
|
|
592
|
-
@versini/ui-svgicon v4.2.
|
|
592
|
+
@versini/ui-svgicon v4.2.1
|
|
593
593
|
© 2025 gizmette.com
|
|
594
594
|
*/
|
|
595
595
|
try {
|
|
596
596
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
597
|
-
version: "4.2.
|
|
598
|
-
buildTime: "
|
|
597
|
+
version: "4.2.1",
|
|
598
|
+
buildTime: "08/27/2025 08:27 AM EDT",
|
|
599
599
|
homepage: "https://github.com/aversini/ui-components",
|
|
600
600
|
license: "MIT"
|
|
601
601
|
});
|
|
602
602
|
} catch {
|
|
603
603
|
}
|
|
604
|
-
const
|
|
604
|
+
const Re = ({
|
|
605
605
|
className: e,
|
|
606
606
|
viewBox: r,
|
|
607
607
|
title: t,
|
|
@@ -627,7 +627,7 @@ const Ee = ({
|
|
|
627
627
|
/* @__PURE__ */ o("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" })
|
|
628
628
|
]
|
|
629
629
|
}
|
|
630
|
-
),
|
|
630
|
+
), Ee = ({
|
|
631
631
|
className: e,
|
|
632
632
|
viewBox: r,
|
|
633
633
|
title: t,
|
|
@@ -653,7 +653,7 @@ const Ee = ({
|
|
|
653
653
|
/* @__PURE__ */ o("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" })
|
|
654
654
|
]
|
|
655
655
|
}
|
|
656
|
-
),
|
|
656
|
+
), ze = ({
|
|
657
657
|
className: e,
|
|
658
658
|
viewBox: r,
|
|
659
659
|
title: t,
|
|
@@ -681,13 +681,13 @@ const Ee = ({
|
|
|
681
681
|
}
|
|
682
682
|
);
|
|
683
683
|
/*!
|
|
684
|
-
@versini/ui-icons v4.
|
|
684
|
+
@versini/ui-icons v4.11.0
|
|
685
685
|
© 2025 gizmette.com
|
|
686
686
|
*/
|
|
687
687
|
try {
|
|
688
688
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
689
|
-
version: "4.
|
|
690
|
-
buildTime: "
|
|
689
|
+
version: "4.11.0",
|
|
690
|
+
buildTime: "08/27/2025 08:28 AM EDT",
|
|
691
691
|
homepage: "https://github.com/aversini/ui-components",
|
|
692
692
|
license: "MIT"
|
|
693
693
|
});
|
|
@@ -699,7 +699,7 @@ const C = z.createContext({
|
|
|
699
699
|
stickyHeader: !1,
|
|
700
700
|
stickyFooter: !1,
|
|
701
701
|
compact: !1
|
|
702
|
-
}), S = "thead", H = "tfoot", _ = "tbody",
|
|
702
|
+
}), S = "thead", H = "tfoot", _ = "tbody", Se = ({
|
|
703
703
|
mode: e,
|
|
704
704
|
className: r,
|
|
705
705
|
wrapperClassName: t,
|
|
@@ -734,7 +734,7 @@ const C = z.createContext({
|
|
|
734
734
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
735
735
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
736
736
|
})
|
|
737
|
-
}),
|
|
737
|
+
}), Le = ({
|
|
738
738
|
className: e,
|
|
739
739
|
stickyHeader: r,
|
|
740
740
|
mode: t
|
|
@@ -747,7 +747,7 @@ const C = z.createContext({
|
|
|
747
747
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": r && t === "alt-system"
|
|
748
748
|
},
|
|
749
749
|
e
|
|
750
|
-
),
|
|
750
|
+
), Me = ({
|
|
751
751
|
className: e,
|
|
752
752
|
stickyFooter: r,
|
|
753
753
|
mode: t
|
|
@@ -760,7 +760,7 @@ const C = z.createContext({
|
|
|
760
760
|
"shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": r && t === "alt-system"
|
|
761
761
|
},
|
|
762
762
|
e
|
|
763
|
-
),
|
|
763
|
+
), Ve = ({
|
|
764
764
|
mode: e,
|
|
765
765
|
className: r,
|
|
766
766
|
cellWrapper: t
|
|
@@ -785,7 +785,7 @@ const C = z.createContext({
|
|
|
785
785
|
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === _ && e === "alt-system"
|
|
786
786
|
},
|
|
787
787
|
r
|
|
788
|
-
),
|
|
788
|
+
), Oe = ({
|
|
789
789
|
cellWrapper: e,
|
|
790
790
|
className: r,
|
|
791
791
|
compact: t,
|
|
@@ -811,7 +811,7 @@ const C = z.createContext({
|
|
|
811
811
|
)
|
|
812
812
|
}), Ae = ({
|
|
813
813
|
buttonClassName: e
|
|
814
|
-
}) => l("rounded-none text-sm", e),
|
|
814
|
+
}) => l("rounded-none text-sm", e), He = ({
|
|
815
815
|
children: e,
|
|
816
816
|
mode: r = "system",
|
|
817
817
|
caption: t,
|
|
@@ -824,7 +824,7 @@ const C = z.createContext({
|
|
|
824
824
|
stickyFooter: g,
|
|
825
825
|
...b
|
|
826
826
|
}) => {
|
|
827
|
-
const h =
|
|
827
|
+
const h = Se({
|
|
828
828
|
mode: r,
|
|
829
829
|
className: i,
|
|
830
830
|
wrapperClassName: c,
|
|
@@ -850,54 +850,54 @@ const C = z.createContext({
|
|
|
850
850
|
)
|
|
851
851
|
}
|
|
852
852
|
);
|
|
853
|
-
},
|
|
853
|
+
}, De = ({
|
|
854
854
|
children: e,
|
|
855
855
|
className: r,
|
|
856
856
|
...t
|
|
857
857
|
}) => {
|
|
858
858
|
const a = B(C);
|
|
859
859
|
a.cellWrapper = S;
|
|
860
|
-
const s =
|
|
860
|
+
const s = Le({
|
|
861
861
|
className: r,
|
|
862
862
|
mode: a.mode,
|
|
863
863
|
stickyHeader: a.stickyHeader
|
|
864
864
|
});
|
|
865
865
|
return /* @__PURE__ */ o("thead", { className: s, ...t, children: e });
|
|
866
|
-
},
|
|
866
|
+
}, Fe = ({
|
|
867
867
|
children: e,
|
|
868
868
|
className: r,
|
|
869
869
|
...t
|
|
870
870
|
}) => {
|
|
871
871
|
const a = B(C);
|
|
872
872
|
a.cellWrapper = H;
|
|
873
|
-
const s =
|
|
873
|
+
const s = Me({
|
|
874
874
|
className: r,
|
|
875
875
|
mode: a.mode,
|
|
876
876
|
stickyFooter: a.stickyFooter
|
|
877
877
|
});
|
|
878
878
|
return /* @__PURE__ */ o("tfoot", { className: s, ...t, children: e });
|
|
879
|
-
},
|
|
879
|
+
}, Ge = ({ children: e, ...r }) => {
|
|
880
880
|
const t = B(C);
|
|
881
881
|
return t.cellWrapper = _, /* @__PURE__ */ o("tbody", { ...r, children: e });
|
|
882
|
-
},
|
|
882
|
+
}, qe = ({
|
|
883
883
|
children: e,
|
|
884
884
|
className: r,
|
|
885
885
|
...t
|
|
886
886
|
}) => {
|
|
887
|
-
const a = B(C), s =
|
|
887
|
+
const a = B(C), s = Ve({
|
|
888
888
|
mode: a.mode,
|
|
889
889
|
cellWrapper: a.cellWrapper,
|
|
890
890
|
className: r
|
|
891
891
|
});
|
|
892
892
|
return /* @__PURE__ */ o("tr", { className: s, ...t, children: e });
|
|
893
|
-
},
|
|
893
|
+
}, je = ({
|
|
894
894
|
children: e,
|
|
895
895
|
component: r,
|
|
896
896
|
className: t,
|
|
897
897
|
align: a,
|
|
898
898
|
...s
|
|
899
899
|
}) => {
|
|
900
|
-
const i = B(C), c = r || (i.cellWrapper === S ? "th" : "td"), { mainClasses: d, alignClasses: n } =
|
|
900
|
+
const i = B(C), c = r || (i.cellWrapper === S ? "th" : "td"), { mainClasses: d, alignClasses: n } = Oe({
|
|
901
901
|
cellWrapper: i.cellWrapper,
|
|
902
902
|
className: t,
|
|
903
903
|
mode: i.mode,
|
|
@@ -905,7 +905,7 @@ const C = z.createContext({
|
|
|
905
905
|
align: a
|
|
906
906
|
});
|
|
907
907
|
return a ? /* @__PURE__ */ o(c, { className: d, ...s, children: /* @__PURE__ */ o("div", { className: n, children: e }) }) : /* @__PURE__ */ o(c, { className: d, ...s, children: e });
|
|
908
|
-
},
|
|
908
|
+
}, Ye = ({
|
|
909
909
|
align: e,
|
|
910
910
|
children: r,
|
|
911
911
|
buttonClassName: t,
|
|
@@ -921,7 +921,7 @@ const C = z.createContext({
|
|
|
921
921
|
}) => {
|
|
922
922
|
const m = Ae({ buttonClassName: t });
|
|
923
923
|
return /* @__PURE__ */ o(
|
|
924
|
-
|
|
924
|
+
je,
|
|
925
925
|
{
|
|
926
926
|
component: s,
|
|
927
927
|
className: a,
|
|
@@ -940,18 +940,18 @@ const C = z.createContext({
|
|
|
940
940
|
mode: c,
|
|
941
941
|
fullWidth: !0,
|
|
942
942
|
labelRight: r,
|
|
943
|
-
children: n === R.ASC && g === b ? /* @__PURE__ */ o(
|
|
943
|
+
children: n === R.ASC && g === b ? /* @__PURE__ */ o(ze, { className: "size-4", monotone: !0 }) : n === R.DESC && g === b ? /* @__PURE__ */ o(Ee, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ o(Re, { className: "size-4", monotone: !0 })
|
|
944
944
|
}
|
|
945
945
|
)
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
948
|
};
|
|
949
949
|
export {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
950
|
+
He as Table,
|
|
951
|
+
Ge as TableBody,
|
|
952
|
+
je as TableCell,
|
|
953
|
+
Ye as TableCellSort,
|
|
954
|
+
Fe as TableFooter,
|
|
955
|
+
De as TableHead,
|
|
956
|
+
qe as TableRow
|
|
957
957
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Table as r, TableBody as i, TableCell as T, TableCellSort as a, TableFooter as t, TableHead as _, TableRow as b } from "./components/Table/Table.js";
|
|
2
2
|
import { TableCellSortDirections as I } from "./components/TableConstants/TableConstants.js";
|
|
3
3
|
/*!
|
|
4
|
-
@versini/ui-table
|
|
4
|
+
@versini/ui-table v5.0.0
|
|
5
5
|
© 2025 gizmette.com
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
8
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
9
|
-
version: "
|
|
10
|
-
buildTime: "
|
|
9
|
+
version: "5.0.0",
|
|
10
|
+
buildTime: "09/01/2025 03:18 PM EDT",
|
|
11
11
|
homepage: "https://github.com/aversini/ui-components",
|
|
12
12
|
license: "MIT"
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
"test": "vitest run"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"react": "^
|
|
55
|
-
"react-dom": "^
|
|
54
|
+
"react": "^19.0.0",
|
|
55
|
+
"react-dom": "^19.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@testing-library/jest-dom": "6.8.0",
|
|
59
|
-
"@versini/ui-types": "
|
|
59
|
+
"@versini/ui-types": "6.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@tailwindcss/typography": "0.5.16",
|
|
63
|
-
"@versini/ui-button": "
|
|
64
|
-
"@versini/ui-icons": "4.
|
|
63
|
+
"@versini/ui-button": "8.0.0",
|
|
64
|
+
"@versini/ui-icons": "4.11.0",
|
|
65
65
|
"clsx": "2.1.1",
|
|
66
66
|
"tailwindcss": "4.1.12"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": [
|
|
69
69
|
"**/*.css"
|
|
70
70
|
],
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "70a47e9e30172dbb7b36306773fe9511e437fba6"
|
|
72
72
|
}
|