@versini/ui-truncate 1.1.3 → 1.1.4
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 +22 -22
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ const y = "av-button";
|
|
|
9
9
|
try {
|
|
10
10
|
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
11
11
|
version: "1.0.0",
|
|
12
|
-
buildTime: "12/
|
|
12
|
+
buildTime: "12/25/2024 10:51 AM EST",
|
|
13
13
|
homepage: "https://github.com/aversini/ui-components",
|
|
14
14
|
license: "MIT"
|
|
15
15
|
});
|
|
@@ -24,7 +24,7 @@ const C = (e) => {
|
|
|
24
24
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
25
25
|
}
|
|
26
26
|
return t;
|
|
27
|
-
}, T = "icon", w = "button", j = "link",
|
|
27
|
+
}, T = "icon", w = "button", j = "link", A = ({
|
|
28
28
|
type: e,
|
|
29
29
|
size: t,
|
|
30
30
|
labelRight: r,
|
|
@@ -58,7 +58,7 @@ const C = (e) => {
|
|
|
58
58
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || a)
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
},
|
|
61
|
+
}, L = ({
|
|
62
62
|
mode: e,
|
|
63
63
|
noBackground: t,
|
|
64
64
|
noTruncate: r,
|
|
@@ -90,7 +90,7 @@ const C = (e) => {
|
|
|
90
90
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
91
91
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
92
92
|
});
|
|
93
|
-
},
|
|
93
|
+
}, W = ({
|
|
94
94
|
mode: e,
|
|
95
95
|
disabled: t,
|
|
96
96
|
variant: r
|
|
@@ -118,7 +118,7 @@ const C = (e) => {
|
|
|
118
118
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
119
119
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
120
120
|
});
|
|
121
|
-
},
|
|
121
|
+
}, V = ({
|
|
122
122
|
mode: e,
|
|
123
123
|
disabled: t,
|
|
124
124
|
variant: r
|
|
@@ -146,7 +146,7 @@ const C = (e) => {
|
|
|
146
146
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
147
147
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
148
148
|
});
|
|
149
|
-
},
|
|
149
|
+
}, $ = ({
|
|
150
150
|
mode: e,
|
|
151
151
|
noBorder: t,
|
|
152
152
|
variant: r
|
|
@@ -174,7 +174,7 @@ const C = (e) => {
|
|
|
174
174
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
175
175
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
176
176
|
});
|
|
177
|
-
},
|
|
177
|
+
}, G = ({ focusMode: e }) => o("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
178
178
|
"focus:outline-focus-dark": e === "dark",
|
|
179
179
|
"focus:outline-focus-light": e === "light",
|
|
180
180
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -200,17 +200,17 @@ const C = (e) => {
|
|
|
200
200
|
y,
|
|
201
201
|
t,
|
|
202
202
|
C(m),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
L({ mode: a, variant: c, noBackground: g, noTruncate: v }),
|
|
204
|
+
A({ type: e, size: n, labelRight: s, labelLeft: b, align: f }),
|
|
205
|
+
$({ mode: a, variant: c, noBorder: u }),
|
|
206
|
+
G({ focusMode: i }),
|
|
207
|
+
W({ mode: a, variant: c, disabled: d }),
|
|
208
|
+
V({ mode: a, variant: c, disabled: d }),
|
|
209
209
|
{
|
|
210
210
|
"w-full": l,
|
|
211
211
|
"disabled:cursor-not-allowed disabled:opacity-50": d
|
|
212
212
|
}
|
|
213
|
-
)),
|
|
213
|
+
)), D = (e, t, r) => {
|
|
214
214
|
var a;
|
|
215
215
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
216
216
|
}, p = k.forwardRef((e, t) => {
|
|
@@ -220,7 +220,7 @@ const C = (e) => {
|
|
|
220
220
|
{
|
|
221
221
|
ref: t,
|
|
222
222
|
onClick: (d) => {
|
|
223
|
-
|
|
223
|
+
D(d, a, r);
|
|
224
224
|
},
|
|
225
225
|
...i
|
|
226
226
|
}
|
|
@@ -271,19 +271,19 @@ const N = k.forwardRef(
|
|
|
271
271
|
);
|
|
272
272
|
N.displayName = "Button";
|
|
273
273
|
/*!
|
|
274
|
-
@versini/ui-button v1.3.
|
|
274
|
+
@versini/ui-button v1.3.1
|
|
275
275
|
© 2024 gizmette.com
|
|
276
276
|
*/
|
|
277
277
|
try {
|
|
278
278
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
279
|
-
version: "1.3.
|
|
280
|
-
buildTime: "12/
|
|
279
|
+
version: "1.3.1",
|
|
280
|
+
buildTime: "12/25/2024 10:51 AM EST",
|
|
281
281
|
homepage: "https://github.com/aversini/ui-components",
|
|
282
282
|
license: "MIT"
|
|
283
283
|
});
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const O = k.forwardRef(
|
|
287
287
|
({
|
|
288
288
|
children: e,
|
|
289
289
|
disabled: t = !1,
|
|
@@ -360,10 +360,10 @@ const D = k.forwardRef(
|
|
|
360
360
|
) });
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
|
-
|
|
364
|
-
const
|
|
363
|
+
O.displayName = "ButtonSort";
|
|
364
|
+
const P = 200, F = ({
|
|
365
365
|
string: e,
|
|
366
|
-
idealLength: t =
|
|
366
|
+
idealLength: t = P
|
|
367
367
|
}) => {
|
|
368
368
|
if (e.length <= t)
|
|
369
369
|
return { string: e, isTruncated: !1 };
|
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 v1.1.
|
|
3
|
+
@versini/ui-truncate v1.1.4
|
|
4
4
|
© 2024 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
8
|
-
version: "1.1.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "1.1.4",
|
|
9
|
+
buildTime: "12/25/2024 10:51 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": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@tailwindcss/typography": "0.5.15",
|
|
42
|
-
"@versini/ui-button": "1.3.
|
|
42
|
+
"@versini/ui-button": "1.3.1",
|
|
43
43
|
"tailwindcss": "3.4.17"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": [
|
|
46
46
|
"**/*.css"
|
|
47
47
|
],
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "a15d974fcc1a098a9f35a80ff37b1b0901278d96"
|
|
49
49
|
}
|