@versini/ui-table 4.0.10 → 4.0.11
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 +14 -12
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -365,7 +365,7 @@ const Be = {
|
|
|
365
365
|
bottom: 0,
|
|
366
366
|
right: 0
|
|
367
367
|
};
|
|
368
|
-
function
|
|
368
|
+
function j(e) {
|
|
369
369
|
const r = Ne(), t = w(0), a = w(null), [s, i] = ne(Be), c = K(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
|
|
370
370
|
const n = d[0];
|
|
371
371
|
n && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
@@ -431,13 +431,13 @@ const R = {
|
|
|
431
431
|
radius: T,
|
|
432
432
|
variant: H,
|
|
433
433
|
animated: k
|
|
434
|
-
}), le = fe({ mode: t, raw: d, iconClassName: te, variant: H }), F = xe({ animated: k }), ie = "flex items-center justify-center relative w-full h-full overflow-hidden", [u, V] =
|
|
434
|
+
}), le = fe({ mode: t, raw: d, iconClassName: te, variant: H }), F = xe({ 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 = Ce([ae, v]);
|
|
435
435
|
return q(() => {
|
|
436
|
-
I && I.current && k && (
|
|
436
|
+
I && I.current && k && (A.current = G.width + Te[h] + (n ? 0 : Ie), v.current && !v.current.style.width && (v.current.style.width = `${R[h]}px`));
|
|
437
437
|
}, [G, I, h, n, k]), q(() => {
|
|
438
438
|
if (v && v.current && k) {
|
|
439
439
|
let x = R[h];
|
|
440
|
-
m && u && V.width > 0 ? x = V.width +
|
|
440
|
+
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 > R[h] && (f.current = setTimeout(() => {
|
|
441
441
|
u.current && m && (u.current.style.opacity = "1"), y.current && p && (y.current.style.opacity = "1"), f.current = null;
|
|
442
442
|
}, Re * 0.8))), x === R[h] && (u.current && (u.current.style.opacity = "0"), y.current && (y.current.style.opacity = "0"));
|
|
443
443
|
}
|
|
@@ -504,13 +504,13 @@ const R = {
|
|
|
504
504
|
);
|
|
505
505
|
Z.displayName = "ButtonIcon";
|
|
506
506
|
/*!
|
|
507
|
-
@versini/ui-button v7.
|
|
507
|
+
@versini/ui-button v7.1.0
|
|
508
508
|
© 2025 gizmette.com
|
|
509
509
|
*/
|
|
510
510
|
try {
|
|
511
511
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
512
|
-
version: "7.
|
|
513
|
-
buildTime: "08/
|
|
512
|
+
version: "7.1.0",
|
|
513
|
+
buildTime: "08/10/2025 12:46 PM EDT",
|
|
514
514
|
homepage: "https://github.com/aversini/ui-components",
|
|
515
515
|
license: "MIT"
|
|
516
516
|
});
|
|
@@ -544,10 +544,12 @@ const ee = S.forwardRef(
|
|
|
544
544
|
return /* @__PURE__ */ o("div", { className: c, children: /* @__PURE__ */ o(
|
|
545
545
|
Z,
|
|
546
546
|
{
|
|
547
|
-
className:
|
|
547
|
+
className: t,
|
|
548
548
|
ref: i,
|
|
549
549
|
mode: r,
|
|
550
550
|
radius: "small",
|
|
551
|
+
size: "small",
|
|
552
|
+
align: "center",
|
|
551
553
|
...s,
|
|
552
554
|
children: e
|
|
553
555
|
}
|
|
@@ -785,7 +787,7 @@ const C = S.createContext({
|
|
|
785
787
|
"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
788
|
},
|
|
787
789
|
r
|
|
788
|
-
),
|
|
790
|
+
), Ae = ({
|
|
789
791
|
cellWrapper: e,
|
|
790
792
|
className: r,
|
|
791
793
|
compact: t,
|
|
@@ -809,7 +811,7 @@ const C = S.createContext({
|
|
|
809
811
|
},
|
|
810
812
|
r
|
|
811
813
|
)
|
|
812
|
-
}),
|
|
814
|
+
}), je = ({
|
|
813
815
|
buttonClassName: e
|
|
814
816
|
}) => l("rounded-none text-sm", e), De = ({
|
|
815
817
|
children: e,
|
|
@@ -897,7 +899,7 @@ const C = S.createContext({
|
|
|
897
899
|
align: a,
|
|
898
900
|
...s
|
|
899
901
|
}) => {
|
|
900
|
-
const i = B(C), c = r || (i.cellWrapper === z ? "th" : "td"), { mainClasses: d, alignClasses: n } =
|
|
902
|
+
const i = B(C), c = r || (i.cellWrapper === z ? "th" : "td"), { mainClasses: d, alignClasses: n } = Ae({
|
|
901
903
|
cellWrapper: i.cellWrapper,
|
|
902
904
|
className: t,
|
|
903
905
|
mode: i.mode,
|
|
@@ -919,7 +921,7 @@ const C = S.createContext({
|
|
|
919
921
|
cellId: b,
|
|
920
922
|
...h
|
|
921
923
|
}) => {
|
|
922
|
-
const m =
|
|
924
|
+
const m = je({ buttonClassName: t });
|
|
923
925
|
return /* @__PURE__ */ o(
|
|
924
926
|
Pe,
|
|
925
927
|
{
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
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";
|
|
2
2
|
/*!
|
|
3
|
-
@versini/ui-table v4.0.
|
|
3
|
+
@versini/ui-table v4.0.11
|
|
4
4
|
© 2025 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
8
|
-
version: "4.0.
|
|
9
|
-
buildTime: "08/
|
|
8
|
+
version: "4.0.11",
|
|
9
|
+
buildTime: "08/10/2025 12:46 PM EDT",
|
|
10
10
|
homepage: "https://github.com/aversini/ui-components",
|
|
11
11
|
license: "MIT"
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-table",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@tailwindcss/typography": "0.5.16",
|
|
48
|
-
"@versini/ui-button": "7.
|
|
48
|
+
"@versini/ui-button": "7.1.0",
|
|
49
49
|
"@versini/ui-icons": "4.10.0",
|
|
50
50
|
"clsx": "2.1.1",
|
|
51
51
|
"tailwindcss": "4.1.11"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"sideEffects": [
|
|
54
54
|
"**/*.css"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "6d8fef53d038c1153effea9b0cfaf01f983c1774"
|
|
57
57
|
}
|