@versini/ui-truncate 3.0.8 → 3.0.10
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/Truncate/Truncate.js +12 -12
- package/dist/index.js +3 -3
- package/package.json +4 -4
|
@@ -89,7 +89,7 @@ const w = "av-button", p = "icon", x = "button", f = "link", S = ({
|
|
|
89
89
|
return i("not-prose text-copy-lighter", {
|
|
90
90
|
truncate: !r
|
|
91
91
|
});
|
|
92
|
-
},
|
|
92
|
+
}, A = ({
|
|
93
93
|
mode: e,
|
|
94
94
|
noBackground: a,
|
|
95
95
|
variant: r
|
|
@@ -119,7 +119,7 @@ const w = "av-button", p = "icon", x = "button", f = "link", S = ({
|
|
|
119
119
|
if (r === "selected")
|
|
120
120
|
return "bg-action-selected-dark";
|
|
121
121
|
}
|
|
122
|
-
},
|
|
122
|
+
}, O = ({
|
|
123
123
|
radius: e
|
|
124
124
|
}) => i({
|
|
125
125
|
"rounded-full": e === "large",
|
|
@@ -247,8 +247,8 @@ const w = "av-button", p = "icon", x = "button", f = "link", S = ({
|
|
|
247
247
|
noBackground: m,
|
|
248
248
|
noTruncate: g
|
|
249
249
|
}),
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
A({ mode: t, noBackground: m, variant: c }),
|
|
251
|
+
O({ radius: k }),
|
|
252
252
|
S({
|
|
253
253
|
type: e,
|
|
254
254
|
size: n,
|
|
@@ -327,19 +327,19 @@ const _ = y.forwardRef(
|
|
|
327
327
|
);
|
|
328
328
|
_.displayName = "Button";
|
|
329
329
|
/*!
|
|
330
|
-
@versini/ui-button v4.0.
|
|
330
|
+
@versini/ui-button v4.0.10
|
|
331
331
|
© 2025 gizmette.com
|
|
332
332
|
*/
|
|
333
333
|
try {
|
|
334
334
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
335
|
-
version: "4.0.
|
|
336
|
-
buildTime: "01/
|
|
335
|
+
version: "4.0.10",
|
|
336
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
337
337
|
homepage: "https://github.com/aversini/ui-components",
|
|
338
338
|
license: "MIT"
|
|
339
339
|
});
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
|
-
const
|
|
342
|
+
const $ = y.forwardRef(
|
|
343
343
|
({
|
|
344
344
|
children: e,
|
|
345
345
|
disabled: a = !1,
|
|
@@ -416,10 +416,10 @@ const P = y.forwardRef(
|
|
|
416
416
|
) });
|
|
417
417
|
}
|
|
418
418
|
);
|
|
419
|
-
|
|
420
|
-
const
|
|
419
|
+
$.displayName = "ButtonSort";
|
|
420
|
+
const q = 200, J = ({
|
|
421
421
|
string: e,
|
|
422
|
-
idealLength: a =
|
|
422
|
+
idealLength: a = q
|
|
423
423
|
}) => {
|
|
424
424
|
if (e.length <= a)
|
|
425
425
|
return { string: e, isTruncated: !1 };
|
|
@@ -439,7 +439,7 @@ const $ = 200, q = ({
|
|
|
439
439
|
const [o, d] = C(!1);
|
|
440
440
|
if (typeof e != "string")
|
|
441
441
|
return e;
|
|
442
|
-
const { string: s, isTruncated: n } =
|
|
442
|
+
const { string: s, isTruncated: n } = J({
|
|
443
443
|
string: e,
|
|
444
444
|
idealLength: a
|
|
445
445
|
});
|
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.
|
|
3
|
+
@versini/ui-truncate v3.0.10
|
|
4
4
|
© 2025 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
8
|
-
version: "3.0.
|
|
9
|
-
buildTime: "01/
|
|
8
|
+
version: "3.0.10",
|
|
9
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
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.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tailwindcss/typography": "0.5.
|
|
42
|
-
"@versini/ui-button": "4.0.
|
|
41
|
+
"@tailwindcss/typography": "0.5.16",
|
|
42
|
+
"@versini/ui-button": "4.0.10",
|
|
43
43
|
"tailwindcss": "3.4.17"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": [
|
|
46
46
|
"**/*.css"
|
|
47
47
|
],
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4c958ec69e74cca8bba692d7988f47151f39f2b7"
|
|
49
49
|
}
|