@versini/ui-truncate 3.0.27 → 3.0.28

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 T, { useRef as x, useLayoutEffect as A, useMemo as F, useState as V, useEffect as q, useCallback as $ } from "react";
2
+ import T, { 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", B = "icon", M = "button", z = "link", ee = ({
5
5
  type: e,
@@ -245,7 +245,7 @@ const O = "av-button", B = "icon", M = "button", z = "link", ee = ({
245
245
  animated: e
246
246
  }) => n({
247
247
  "transition-opacity duration-300 ease-in": e
248
- }), D = ({
248
+ }), q = ({
249
249
  type: e,
250
250
  className: t,
251
251
  raw: r,
@@ -327,7 +327,7 @@ const P = T.forwardRef(
327
327
  radius: u = "large",
328
328
  ...l
329
329
  }, m) => {
330
- const p = D({
330
+ const p = q({
331
331
  type: M,
332
332
  mode: r,
333
333
  focusMode: a,
@@ -356,7 +356,7 @@ const P = T.forwardRef(
356
356
  P.displayName = "Button";
357
357
  function ge() {
358
358
  const e = x(!1);
359
- return q(() => (e.current = !0, () => {
359
+ return V(() => (e.current = !0, () => {
360
360
  e.current = !1;
361
361
  }), []), $(() => e.current, []);
362
362
  }
@@ -379,13 +379,13 @@ const me = {
379
379
  right: 0
380
380
  };
381
381
  function _(e) {
382
- const t = ge(), r = x(0), a = x(null), [o, i] = V(me), d = F(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
382
+ const t = ge(), r = x(0), a = x(null), [o, i] = D(me), d = F(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
383
383
  const s = c[0];
384
384
  s && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
385
385
  a.current && t() && i(s.contentRect);
386
386
  }));
387
387
  }), [t]);
388
- return q(() => (a.current && (d == null || d.observe(a.current, e)), () => {
388
+ return V(() => (a.current && (d == null || d.observe(a.current, e)), () => {
389
389
  d == null || d.disconnect(), r.current && cancelAnimationFrame(r.current);
390
390
  }), [d, e]), [a, o];
391
391
  }
@@ -427,7 +427,7 @@ const be = {
427
427
  animated: y = !1,
428
428
  ...Z
429
429
  }, J) => {
430
- const K = D({
430
+ const K = q({
431
431
  type: B,
432
432
  mode: r,
433
433
  focusMode: a,
@@ -499,13 +499,13 @@ const be = {
499
499
  }) => /* @__PURE__ */ g("span", { ref: e, className: t, children: r && /* @__PURE__ */ g("span", { className: a, children: r }) });
500
500
  G.displayName = "ButtonIcon";
501
501
  /*!
502
- @versini/ui-button v4.2.10
502
+ @versini/ui-button v4.2.11
503
503
  © 2025 gizmette.com
504
504
  */
505
505
  try {
506
506
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
507
- version: "4.2.10",
508
- buildTime: "03/05/2025 01:30 PM EST",
507
+ version: "4.2.11",
508
+ buildTime: "03/10/2025 02:04 PM EDT",
509
509
  homepage: "https://github.com/aversini/ui-components",
510
510
  license: "MIT"
511
511
  });
@@ -569,7 +569,7 @@ const ke = 200, pe = ({
569
569
  mode: r = "system",
570
570
  focusMode: a = "system"
571
571
  }) => {
572
- const [o, i] = V(!1);
572
+ const [o, i] = D(!1);
573
573
  if (typeof e != "string")
574
574
  return e;
575
575
  const { string: d, isTruncated: c } = pe({
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 v3.0.27
3
+ @versini/ui-truncate v3.0.28
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
8
- version: "3.0.27",
9
- buildTime: "03/05/2025 01:31 PM EST",
8
+ version: "3.0.28",
9
+ buildTime: "03/10/2025 02:05 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": "3.0.27",
3
+ "version": "3.0.28",
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": "4.2.10",
43
+ "@versini/ui-button": "4.2.11",
44
44
  "tailwindcss": "3.4.17"
45
45
  },
46
46
  "sideEffects": [
47
47
  "**/*.css"
48
48
  ],
49
- "gitHead": "9e5d6d4b86a1c509628c6e5ea0a101921cd8eb78"
49
+ "gitHead": "fc7e720b770c5ee2e8537eabf9b2f458dba07696"
50
50
  }