@versini/ui-truncate 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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as g, jsxs as W } from "react/jsx-runtime";
2
- import B, { useRef as x, useLayoutEffect as S, useMemo as F, useState as D, useEffect as V, useCallback as $ } from "react";
2
+ import B, { useRef as x, useLayoutEffect as A, useMemo as F, useState as D, useEffect as V, useCallback as $ } from "react";
3
3
  import n from "clsx";
4
4
  const O = "av-button", T = "icon", M = "button", z = "link", ee = ({
5
5
  type: e,
@@ -311,7 +311,7 @@ const O = "av-button", T = "icon", M = "button", z = "link", ee = ({
311
311
  );
312
312
  });
313
313
  L.displayName = "BaseButton";
314
- const G = B.forwardRef(
314
+ const P = B.forwardRef(
315
315
  ({
316
316
  children: e,
317
317
  disabled: t = !1,
@@ -353,7 +353,7 @@ const G = B.forwardRef(
353
353
  );
354
354
  }
355
355
  );
356
- G.displayName = "Button";
356
+ P.displayName = "Button";
357
357
  function ge() {
358
358
  const e = x(!1);
359
359
  return V(() => (e.current = !0, () => {
@@ -403,7 +403,7 @@ const be = {
403
403
  // px-3 x 2
404
404
  large: 16 * 2
405
405
  // px-4 x 2
406
- }, ye = 2, H = B.forwardRef(
406
+ }, ye = 2, G = B.forwardRef(
407
407
  ({
408
408
  children: e,
409
409
  disabled: t = !1,
@@ -422,7 +422,7 @@ const be = {
422
422
  noBackground: p = !1,
423
423
  align: R = "center",
424
424
  radius: w = "large",
425
- variant: P = "primary",
425
+ variant: H = "primary",
426
426
  iconClassName: X,
427
427
  animated: y = !1,
428
428
  ...Z
@@ -442,12 +442,12 @@ const be = {
442
442
  noBackground: p,
443
443
  align: R,
444
444
  radius: w,
445
- variant: P,
445
+ variant: H,
446
446
  animated: y
447
- }), Q = ce({ mode: r, raw: c, iconClassName: X }), j = se({ animated: y }), [b, C] = _(), [v, E] = _(), [N, A] = _(), I = x(0), k = x(null), Y = he([J, k]);
448
- return S(() => {
449
- N && N.current && y && (I.current = A.width + fe[u] + (s ? 0 : ye));
450
- }, [A, N, u, s, y]), S(() => {
447
+ }), Q = ce({ mode: r, raw: c, iconClassName: X }), j = se({ animated: y }), [b, C] = _(), [v, E] = _(), [N, S] = _(), I = x(0), k = x(null), Y = he([J, k]);
448
+ return A(() => {
449
+ N && N.current && y && (I.current = S.width + fe[u] + (s ? 0 : ye));
450
+ }, [S, N, u, s, y]), A(() => {
451
451
  k && k.current && y && (l && b && C.width > 0 ? (b.current && (b.current.style.opacity = "100"), k.current.style.width = `${C.width + I.current}px`) : m && E.width > 0 ? (v.current && (v.current.style.opacity = "100"), k.current.style.width = `${E.width + I.current}px`) : (b.current && (b.current.style.opacity = "0"), v.current && (v.current.style.opacity = "0"), k.current.style.width = `${be[u]}px`));
452
452
  }, [
453
453
  C,
@@ -497,15 +497,15 @@ const be = {
497
497
  label: r,
498
498
  labelInnerClass: a
499
499
  }) => /* @__PURE__ */ g("span", { ref: e, className: t, children: r && /* @__PURE__ */ g("span", { className: a, children: r }) });
500
- H.displayName = "ButtonIcon";
500
+ G.displayName = "ButtonIcon";
501
501
  /*!
502
- @versini/ui-button v6.0.1
502
+ @versini/ui-button v6.0.2
503
503
  © 2025 gizmette.com
504
504
  */
505
505
  try {
506
506
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
507
- version: "6.0.1",
508
- buildTime: "03/19/2025 08:57 AM EDT",
507
+ version: "6.0.2",
508
+ buildTime: "03/19/2025 03:54 PM EDT",
509
509
  homepage: "https://github.com/aversini/ui-components",
510
510
  license: "MIT"
511
511
  });
@@ -537,7 +537,7 @@ const ve = B.forwardRef(
537
537
  }
538
538
  ) : "";
539
539
  return /* @__PURE__ */ g("div", { className: d, children: /* @__PURE__ */ g(
540
- H,
540
+ G,
541
541
  {
542
542
  className: n("justify-center", r),
543
543
  ref: i,
@@ -579,7 +579,7 @@ const ke = 200, pe = ({
579
579
  return /* @__PURE__ */ W("span", { style: { wordBreak: "break-word" }, children: [
580
580
  o ? e : d,
581
581
  c && /* @__PURE__ */ g(
582
- G,
582
+ P,
583
583
  {
584
584
  mode: r,
585
585
  focusMode: a,
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Truncate as o } from "./components/Truncate/Truncate.js";
2
2
  /*!
3
- @versini/ui-truncate v4.0.1
3
+ @versini/ui-truncate v4.0.2
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
8
- version: "4.0.1",
9
- buildTime: "03/19/2025 08:58 AM EDT",
8
+ version: "4.0.2",
9
+ buildTime: "03/19/2025 03:54 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-truncate",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -40,11 +40,11 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@tailwindcss/typography": "0.5.16",
43
- "@versini/ui-button": "6.0.1",
43
+ "@versini/ui-button": "6.0.2",
44
44
  "tailwindcss": "4.0.14"
45
45
  },
46
46
  "sideEffects": [
47
47
  "**/*.css"
48
48
  ],
49
- "gitHead": "b379f52530a05cd4b81c4e121f40134458b2a9ac"
49
+ "gitHead": "d49d5de3e0b587456da5a6da691396873e9ffe2d"
50
50
  }