@versini/ui-button 6.0.3 → 6.0.5
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.
|
@@ -39,7 +39,7 @@ const m = ({
|
|
|
39
39
|
try {
|
|
40
40
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
41
41
|
version: "4.2.0",
|
|
42
|
-
buildTime: "
|
|
42
|
+
buildTime: "04/05/2025 07:49 PM EDT",
|
|
43
43
|
homepage: "https://github.com/aversini/ui-components",
|
|
44
44
|
license: "MIT"
|
|
45
45
|
});
|
|
@@ -90,13 +90,13 @@ const I = ({
|
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
/*!
|
|
93
|
-
@versini/ui-icons v4.
|
|
93
|
+
@versini/ui-icons v4.9.0
|
|
94
94
|
© 2025 gizmette.com
|
|
95
95
|
*/
|
|
96
96
|
try {
|
|
97
97
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
98
|
-
version: "4.
|
|
99
|
-
buildTime: "
|
|
98
|
+
version: "4.9.0",
|
|
99
|
+
buildTime: "04/05/2025 07:49 PM EDT",
|
|
100
100
|
homepage: "https://github.com/aversini/ui-components",
|
|
101
101
|
license: "MIT"
|
|
102
102
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as G, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import H, { useRef as m,
|
|
2
|
+
import H, { useRef as m, useCallback as M, useEffect as E, useMemo as A, useState as W, useLayoutEffect as B } from "react";
|
|
3
3
|
import { BaseButton_private as Y } from "../../chunks/BaseButton.BFKIL4GO.js";
|
|
4
|
-
import { getButtonClasses as J,
|
|
4
|
+
import { getButtonClasses as J, TYPE_ICON as K, getIconClasses as Q, getButtonIconLabelClasses as U } from "../../chunks/utilities.B6tGQPoK.js";
|
|
5
5
|
function V() {
|
|
6
6
|
const t = m(!1);
|
|
7
7
|
return E(() => (t.current = !0, () => {
|
|
@@ -76,7 +76,7 @@ const z = {
|
|
|
76
76
|
...P
|
|
77
77
|
}, T) => {
|
|
78
78
|
const _ = J({
|
|
79
|
-
type:
|
|
79
|
+
type: K,
|
|
80
80
|
mode: e,
|
|
81
81
|
focusMode: n,
|
|
82
82
|
fullWidth: h,
|
|
@@ -92,7 +92,7 @@ const z = {
|
|
|
92
92
|
radius: S,
|
|
93
93
|
variant: j,
|
|
94
94
|
animated: u
|
|
95
|
-
}), k =
|
|
95
|
+
}), k = Q({ mode: e, raw: p, iconClassName: L }), x = U({ animated: u }), [c, C] = g(), [o, I] = g(), [b, N] = g(), d = m(0), a = m(null), q = X([T, a]);
|
|
96
96
|
return B(() => {
|
|
97
97
|
b && b.current && u && (d.current = N.width + ee[f] + (l ? 0 : te));
|
|
98
98
|
}, [N, b, f, l, u]), B(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getButtonClasses as
|
|
5
|
-
const L =
|
|
1
|
+
import { jsx as s, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import r from "clsx";
|
|
3
|
+
import v from "react";
|
|
4
|
+
import { getButtonClasses as V, TYPE_LINK as C } from "../../chunks/utilities.B6tGQPoK.js";
|
|
5
|
+
const L = v.forwardRef(
|
|
6
6
|
({
|
|
7
|
-
children:
|
|
8
|
-
mode:
|
|
7
|
+
children: t,
|
|
8
|
+
mode: n = "system",
|
|
9
9
|
focusMode: c = "system",
|
|
10
10
|
fullWidth: i = !1,
|
|
11
11
|
className: m,
|
|
@@ -17,10 +17,10 @@ const L = V.forwardRef(
|
|
|
17
17
|
noNewWindowIcon: w = !1,
|
|
18
18
|
radius: h = "large",
|
|
19
19
|
...x
|
|
20
|
-
},
|
|
21
|
-
const
|
|
20
|
+
}, y) => {
|
|
21
|
+
const N = V({
|
|
22
22
|
type: C,
|
|
23
|
-
mode:
|
|
23
|
+
mode: n,
|
|
24
24
|
focusMode: c,
|
|
25
25
|
fullWidth: i,
|
|
26
26
|
disabled: !1,
|
|
@@ -30,18 +30,18 @@ const L = V.forwardRef(
|
|
|
30
30
|
noBorder: p,
|
|
31
31
|
truncate: l,
|
|
32
32
|
radius: h
|
|
33
|
-
}), e = a === "_blank",
|
|
33
|
+
}), e = a === "_blank", b = {
|
|
34
34
|
target: a,
|
|
35
35
|
rel: e ? "noopener noreferrer" : void 0,
|
|
36
36
|
...x
|
|
37
|
-
},
|
|
37
|
+
}, u = r({
|
|
38
38
|
truncate: l,
|
|
39
39
|
"basis-11/12": l && e
|
|
40
40
|
});
|
|
41
|
-
return /* @__PURE__ */ s("a", { ref:
|
|
42
|
-
/* @__PURE__ */ s("div", { className:
|
|
41
|
+
return /* @__PURE__ */ s("a", { ref: y, className: N, ...b, children: /* @__PURE__ */ o("div", { role: "text", className: r("flex items-center justify-center"), children: [
|
|
42
|
+
/* @__PURE__ */ s("div", { className: u, children: t }),
|
|
43
43
|
e && /* @__PURE__ */ s("span", { className: "sr-only", children: ", opens in a new window" }),
|
|
44
|
-
e && !w && /* @__PURE__ */
|
|
44
|
+
e && !w && /* @__PURE__ */ o(
|
|
45
45
|
"svg",
|
|
46
46
|
{
|
|
47
47
|
xmlns: "http://www.w3.org/2000/svg",
|
package/dist/index.js
CHANGED
|
@@ -7,13 +7,13 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
7
7
|
import a from "clsx";
|
|
8
8
|
import m from "react";
|
|
9
9
|
/*!
|
|
10
|
-
@versini/ui-button v6.0.
|
|
10
|
+
@versini/ui-button v6.0.5
|
|
11
11
|
© 2025 gizmette.com
|
|
12
12
|
*/
|
|
13
13
|
try {
|
|
14
14
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
15
|
-
version: "6.0.
|
|
16
|
-
buildTime: "
|
|
15
|
+
version: "6.0.5",
|
|
16
|
+
buildTime: "04/12/2025 09:18 AM EDT",
|
|
17
17
|
homepage: "https://github.com/aversini/ui-components",
|
|
18
18
|
license: "MIT"
|
|
19
19
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-button",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@versini/ui-types": "5.0.
|
|
42
|
+
"@versini/ui-types": "5.0.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@tailwindcss/typography": "0.5.16",
|
|
46
46
|
"@versini/ui-hooks": "4.7.3",
|
|
47
|
-
"@versini/ui-icons": "4.
|
|
47
|
+
"@versini/ui-icons": "4.9.0",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
|
-
"tailwindcss": "4.
|
|
49
|
+
"tailwindcss": "4.1.3"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": [
|
|
52
52
|
"**/*.css"
|
|
53
53
|
],
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "1bc09c4f0904bd8c01a22b1a32299fdd7598ae32"
|
|
55
55
|
}
|