@versini/ui-table 4.0.10 → 4.0.12

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.
@@ -24,7 +24,7 @@ const Y = "av-button", W = "icon", Q = "button", P = "link", he = ({
24
24
  "justify-start": s === "left",
25
25
  "justify-end": s === "right",
26
26
  "h-6 w-6 p-0": r === "small" && !i && !(t || a),
27
- "h-6 px-2": r === "small" && !i && (t || a),
27
+ "h-6 px-1 sm:px-2": r === "small" && !i && (t || a),
28
28
  "h-8 w-8 p-1": r === "medium" && !i && !(t || a),
29
29
  "h-8 px-3": r === "medium" && !i && (t || a),
30
30
  "h-12 w-12 p-2": r === "large" && !i && !(t || a),
@@ -365,7 +365,7 @@ const Be = {
365
365
  bottom: 0,
366
366
  right: 0
367
367
  };
368
- function A(e) {
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] = A(), [y, O] = A(), [I, G] = A(), j = w(0), v = w(null), f = w(null), oe = Ce([ae, 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 && (j.current = G.width + Te[h] + (n ? 0 : Ie), v.current && !v.current.style.width && (v.current.style.width = `${R[h]}px`));
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 + j.current : p && y && O.width > 0 && (x = O.width + j.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(() => {
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.0.0
507
+ @versini/ui-button v7.1.1
508
508
  © 2025 gizmette.com
509
509
  */
510
510
  try {
511
511
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
512
- version: "7.0.0",
513
- buildTime: "08/07/2025 04:11 PM EDT",
512
+ version: "7.1.1",
513
+ buildTime: "08/10/2025 01:26 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: l("justify-center", t),
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
- ), je = ({
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
- }), Ae = ({
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 } = je({
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 = Ae({ buttonClassName: t });
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.10
3
+ @versini/ui-table v4.0.12
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
8
- version: "4.0.10",
9
- buildTime: "08/07/2025 04:12 PM EDT",
8
+ version: "4.0.12",
9
+ buildTime: "08/10/2025 01:26 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.10",
3
+ "version": "4.0.12",
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.0.0",
48
+ "@versini/ui-button": "7.1.1",
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": "42daab1fb88c366495abbc1db78a9987de05e59b"
56
+ "gitHead": "381a563cd0bb01eeddea33e57c0f5705663b5be4"
57
57
  }