@versini/ui-table 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +21 -21
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2,19 +2,19 @@ import l from "clsx";
|
|
|
2
2
|
import { jsx as i, jsxs as _, Fragment as se } from "react/jsx-runtime";
|
|
3
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";
|
|
4
4
|
/*!
|
|
5
|
-
@versini/ui-table v4.0.
|
|
5
|
+
@versini/ui-table v4.0.2
|
|
6
6
|
© 2025 gizmette.com
|
|
7
7
|
*/
|
|
8
8
|
try {
|
|
9
9
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
10
|
-
version: "4.0.
|
|
11
|
-
buildTime: "03/19/2025
|
|
10
|
+
version: "4.0.2",
|
|
11
|
+
buildTime: "03/19/2025 03:54 PM EDT",
|
|
12
12
|
homepage: "https://github.com/aversini/ui-components",
|
|
13
13
|
license: "MIT"
|
|
14
14
|
});
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
|
-
const R = "thead",
|
|
17
|
+
const R = "thead", P = "tfoot", p = "tbody", B = {
|
|
18
18
|
ASC: "asc",
|
|
19
19
|
DESC: "desc"
|
|
20
20
|
}, ie = ({
|
|
@@ -82,7 +82,7 @@ const R = "thead", U = "tfoot", p = "tbody", B = {
|
|
|
82
82
|
mode: e,
|
|
83
83
|
className: a,
|
|
84
84
|
cellWrapper: t
|
|
85
|
-
}) => t === R || t ===
|
|
85
|
+
}) => t === R || t === P ? l(
|
|
86
86
|
{
|
|
87
87
|
"bg-table-head-dark": e === "dark" || e === "system",
|
|
88
88
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
@@ -121,7 +121,7 @@ const R = "thead", U = "tfoot", p = "tbody", B = {
|
|
|
121
121
|
"text-copy-dark": r === "light" || r === "alt-system",
|
|
122
122
|
"dark:text-copy-dark": r === "system",
|
|
123
123
|
"dark:text-copy-light": r === "alt-system",
|
|
124
|
-
"px-4 py-3": !t && (e === R || e ===
|
|
124
|
+
"px-4 py-3": !t && (e === R || e === P),
|
|
125
125
|
"p-4": !t && e === p,
|
|
126
126
|
"px-2 py-1.5": t
|
|
127
127
|
},
|
|
@@ -529,7 +529,7 @@ const Re = {
|
|
|
529
529
|
radius: C,
|
|
530
530
|
variant: J,
|
|
531
531
|
animated: k
|
|
532
|
-
}), ae = xe({ mode: t, raw: d, iconClassName: 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
533
|
return D(() => {
|
|
534
534
|
T && T.current && k && (L.current = W.width + Ee[h] + (c ? 0 : Se));
|
|
535
535
|
}, [W, T, h, c, k]), D(() => {
|
|
@@ -558,7 +558,7 @@ const Re = {
|
|
|
558
558
|
{
|
|
559
559
|
label: y,
|
|
560
560
|
labelRef: f,
|
|
561
|
-
labelClass:
|
|
561
|
+
labelClass: j,
|
|
562
562
|
labelInnerClass: "pr-2"
|
|
563
563
|
}
|
|
564
564
|
),
|
|
@@ -568,7 +568,7 @@ const Re = {
|
|
|
568
568
|
{
|
|
569
569
|
label: b,
|
|
570
570
|
labelRef: u,
|
|
571
|
-
labelClass:
|
|
571
|
+
labelClass: j,
|
|
572
572
|
labelInnerClass: "pl-2"
|
|
573
573
|
}
|
|
574
574
|
)
|
|
@@ -584,13 +584,13 @@ const Re = {
|
|
|
584
584
|
}) => /* @__PURE__ */ i("span", { ref: e, className: a, children: t && /* @__PURE__ */ i("span", { className: r, children: t }) });
|
|
585
585
|
Y.displayName = "ButtonIcon";
|
|
586
586
|
/*!
|
|
587
|
-
@versini/ui-button v6.0.
|
|
587
|
+
@versini/ui-button v6.0.2
|
|
588
588
|
© 2025 gizmette.com
|
|
589
589
|
*/
|
|
590
590
|
try {
|
|
591
591
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
592
|
-
version: "6.0.
|
|
593
|
-
buildTime: "03/19/2025
|
|
592
|
+
version: "6.0.2",
|
|
593
|
+
buildTime: "03/19/2025 03:54 PM EDT",
|
|
594
594
|
homepage: "https://github.com/aversini/ui-components",
|
|
595
595
|
license: "MIT"
|
|
596
596
|
});
|
|
@@ -635,7 +635,7 @@ const Z = I.forwardRef(
|
|
|
635
635
|
}
|
|
636
636
|
);
|
|
637
637
|
Z.displayName = "ButtonSort";
|
|
638
|
-
const
|
|
638
|
+
const U = ({
|
|
639
639
|
children: e,
|
|
640
640
|
fill: a,
|
|
641
641
|
viewBox: t,
|
|
@@ -685,7 +685,7 @@ const ze = ({
|
|
|
685
685
|
monotone: r,
|
|
686
686
|
...s
|
|
687
687
|
}) => /* @__PURE__ */ _(
|
|
688
|
-
|
|
688
|
+
U,
|
|
689
689
|
{
|
|
690
690
|
defaultViewBox: "0 0 576 512",
|
|
691
691
|
size: "size-5",
|
|
@@ -711,7 +711,7 @@ const ze = ({
|
|
|
711
711
|
monotone: r,
|
|
712
712
|
...s
|
|
713
713
|
}) => /* @__PURE__ */ _(
|
|
714
|
-
|
|
714
|
+
U,
|
|
715
715
|
{
|
|
716
716
|
defaultViewBox: "0 0 576 512",
|
|
717
717
|
size: "size-5",
|
|
@@ -737,7 +737,7 @@ const ze = ({
|
|
|
737
737
|
monotone: r,
|
|
738
738
|
...s
|
|
739
739
|
}) => /* @__PURE__ */ _(
|
|
740
|
-
|
|
740
|
+
U,
|
|
741
741
|
{
|
|
742
742
|
defaultViewBox: "0 0 576 512",
|
|
743
743
|
size: "size-5",
|
|
@@ -776,7 +776,7 @@ const x = I.createContext({
|
|
|
776
776
|
stickyHeader: !1,
|
|
777
777
|
stickyFooter: !1,
|
|
778
778
|
compact: !1
|
|
779
|
-
}),
|
|
779
|
+
}), Ue = ({
|
|
780
780
|
children: e,
|
|
781
781
|
mode: a = "system",
|
|
782
782
|
caption: t,
|
|
@@ -815,7 +815,7 @@ const x = I.createContext({
|
|
|
815
815
|
)
|
|
816
816
|
}
|
|
817
817
|
);
|
|
818
|
-
},
|
|
818
|
+
}, je = ({
|
|
819
819
|
children: e,
|
|
820
820
|
className: a,
|
|
821
821
|
...t
|
|
@@ -834,7 +834,7 @@ const x = I.createContext({
|
|
|
834
834
|
...t
|
|
835
835
|
}) => {
|
|
836
836
|
const r = N(x);
|
|
837
|
-
r.cellWrapper =
|
|
837
|
+
r.cellWrapper = P;
|
|
838
838
|
const s = ce({
|
|
839
839
|
className: a,
|
|
840
840
|
mode: r.mode,
|
|
@@ -912,12 +912,12 @@ const x = I.createContext({
|
|
|
912
912
|
);
|
|
913
913
|
};
|
|
914
914
|
export {
|
|
915
|
-
|
|
915
|
+
Ue as Table,
|
|
916
916
|
De as TableBody,
|
|
917
917
|
Le as TableCell,
|
|
918
918
|
He as TableCellSort,
|
|
919
919
|
B as TableCellSortDirections,
|
|
920
920
|
We as TableFooter,
|
|
921
|
-
|
|
921
|
+
je as TableHead,
|
|
922
922
|
Fe as TableRow
|
|
923
923
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-table",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@tailwindcss/typography": "0.5.16",
|
|
46
|
-
"@versini/ui-button": "6.0.
|
|
46
|
+
"@versini/ui-button": "6.0.2",
|
|
47
47
|
"@versini/ui-icons": "4.8.1",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
49
|
"tailwindcss": "4.0.14"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"sideEffects": [
|
|
52
52
|
"**/*.css"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "d49d5de3e0b587456da5a6da691396873e9ffe2d"
|
|
55
55
|
}
|