@versini/ui-button 3.2.2 → 4.0.1
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/chunks/{utilities.MBKmIAOS.js → utilities.CPchA_my.js} +41 -45
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/ButtonCopy.js +6 -6
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ButtonLink.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +5 -5
|
@@ -6,14 +6,14 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
|
|
|
6
6
|
labelLeft: c,
|
|
7
7
|
align: i
|
|
8
8
|
}) => {
|
|
9
|
-
const
|
|
9
|
+
const s = "max-h-8 py-0 px-2", n = "max-h-9 py-1 px-3", g = "max-h-12 py-2 px-4";
|
|
10
10
|
switch (t) {
|
|
11
11
|
case y:
|
|
12
12
|
case d:
|
|
13
13
|
return a({
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
14
|
+
[s]: e === "small",
|
|
15
|
+
[n]: e === "medium",
|
|
16
|
+
[g]: e === "large"
|
|
17
17
|
});
|
|
18
18
|
case b:
|
|
19
19
|
return a("inline-flex items-center", {
|
|
@@ -34,21 +34,21 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
|
|
|
34
34
|
labelRight: r,
|
|
35
35
|
labelLeft: c
|
|
36
36
|
}) => {
|
|
37
|
-
const i = "text-sm font-medium",
|
|
37
|
+
const i = "text-sm font-medium", s = "text-base font-medium", n = "text-lg font-medium";
|
|
38
38
|
switch (t) {
|
|
39
39
|
case y:
|
|
40
40
|
case d:
|
|
41
41
|
return a({
|
|
42
42
|
"text-center": t === d,
|
|
43
43
|
[i]: e === "small",
|
|
44
|
-
[
|
|
45
|
-
[
|
|
44
|
+
[s]: e === "medium",
|
|
45
|
+
[n]: e === "large"
|
|
46
46
|
});
|
|
47
47
|
case b:
|
|
48
48
|
return a({
|
|
49
49
|
[i]: e === "small" && (r || c),
|
|
50
|
-
[
|
|
51
|
-
[
|
|
50
|
+
[s]: e === "medium" && (r || c),
|
|
51
|
+
[n]: e === "large" && (r || c)
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
}, B = ({
|
|
@@ -62,34 +62,30 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
|
|
|
62
62
|
if (c === "primary")
|
|
63
63
|
return a("not-prose", {
|
|
64
64
|
truncate: !r,
|
|
65
|
-
"text-copy-light": t === "dark",
|
|
66
|
-
"text-copy-lighter": t === "light",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
65
|
+
"text-copy-light": t === "dark" || t === "system",
|
|
66
|
+
"text-copy-lighter": t === "light" || t === "alt-system",
|
|
67
|
+
"dark:text-copy-lighter": t === "system",
|
|
68
|
+
"dark:text-copy-light": t === "alt-system"
|
|
69
69
|
});
|
|
70
70
|
if (c === "secondary")
|
|
71
71
|
return a("not-prose", {
|
|
72
72
|
truncate: !r,
|
|
73
|
-
"text-copy-light": t === "light",
|
|
74
|
-
"text-copy-lighter": t === "dark",
|
|
75
|
-
"
|
|
76
|
-
"
|
|
73
|
+
"text-copy-light": t === "light" || t === "system",
|
|
74
|
+
"text-copy-lighter": t === "dark" || t === "alt-system",
|
|
75
|
+
"dark:text-copy-lighter": t === "alt-system",
|
|
76
|
+
"dark:text-copy-light": t === "system"
|
|
77
77
|
});
|
|
78
78
|
if (c === "danger")
|
|
79
79
|
return a("not-prose", {
|
|
80
80
|
truncate: !r,
|
|
81
|
-
"text-copy-light": t === "dark",
|
|
82
|
-
"text-copy-lighter": t === "light",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
81
|
+
"text-copy-light": t === "dark" || t === "system",
|
|
82
|
+
"text-copy-lighter": t === "light" || t === "alt-system",
|
|
83
|
+
"dark:text-copy-lighter": t === "system",
|
|
84
|
+
"dark:text-copy-light": t === "alt-system"
|
|
85
85
|
});
|
|
86
86
|
if (c === "selected")
|
|
87
|
-
return a("not-prose", {
|
|
88
|
-
truncate: !r
|
|
89
|
-
"text-copy-light": t === "dark",
|
|
90
|
-
"text-copy-lighter": t === "light",
|
|
91
|
-
"text-copy-light dark:text-copy-lighter": t === "system",
|
|
92
|
-
"text-copy-lighter dark:text-copy-light": t === "alt-system"
|
|
87
|
+
return a("not-prose text-copy-lighter", {
|
|
88
|
+
truncate: !r
|
|
93
89
|
});
|
|
94
90
|
}, w = ({
|
|
95
91
|
mode: t,
|
|
@@ -230,42 +226,42 @@ const u = "av-button", b = "icon", y = "button", d = "link", m = ({
|
|
|
230
226
|
raw: r,
|
|
231
227
|
mode: c,
|
|
232
228
|
focusMode: i,
|
|
233
|
-
disabled:
|
|
234
|
-
fullWidth:
|
|
235
|
-
size:
|
|
229
|
+
disabled: s,
|
|
230
|
+
fullWidth: n,
|
|
231
|
+
size: g,
|
|
236
232
|
noBorder: v,
|
|
237
233
|
labelRight: l,
|
|
238
234
|
labelLeft: h,
|
|
239
235
|
noBackground: k,
|
|
240
|
-
variant:
|
|
236
|
+
variant: o,
|
|
241
237
|
noTruncate: p,
|
|
242
|
-
align:
|
|
243
|
-
radius:
|
|
244
|
-
}) => (
|
|
238
|
+
align: f,
|
|
239
|
+
radius: x
|
|
240
|
+
}) => (o || (o = "primary"), r ? a(u, e) : a(
|
|
245
241
|
u,
|
|
246
242
|
B({
|
|
247
243
|
mode: c,
|
|
248
|
-
variant:
|
|
244
|
+
variant: o,
|
|
249
245
|
noBackground: k,
|
|
250
246
|
noTruncate: p
|
|
251
247
|
}),
|
|
252
|
-
w({ mode: c, noBackground: k, variant:
|
|
253
|
-
T({ radius:
|
|
248
|
+
w({ mode: c, noBackground: k, variant: o }),
|
|
249
|
+
T({ radius: x }),
|
|
254
250
|
m({
|
|
255
251
|
type: t,
|
|
256
|
-
size:
|
|
252
|
+
size: g,
|
|
257
253
|
labelRight: l,
|
|
258
254
|
labelLeft: h,
|
|
259
|
-
align:
|
|
255
|
+
align: f
|
|
260
256
|
}),
|
|
261
|
-
C({ type: t, size:
|
|
262
|
-
_({ mode: c, variant:
|
|
257
|
+
C({ type: t, size: g, labelRight: l, labelLeft: h }),
|
|
258
|
+
_({ mode: c, variant: o, noBorder: v }),
|
|
263
259
|
j({ focusMode: i }),
|
|
264
|
-
E({ mode: c, variant:
|
|
265
|
-
N({ mode: c, variant:
|
|
260
|
+
E({ mode: c, variant: o, disabled: s }),
|
|
261
|
+
N({ mode: c, variant: o, disabled: s }),
|
|
266
262
|
{
|
|
267
|
-
"w-full":
|
|
268
|
-
"disabled:cursor-not-allowed disabled:opacity-50":
|
|
263
|
+
"w-full": n,
|
|
264
|
+
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
269
265
|
},
|
|
270
266
|
e
|
|
271
267
|
));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import N from "react";
|
|
3
3
|
import { BaseButton_private as T } from "../../chunks/BaseButton.BFKIL4GO.js";
|
|
4
|
-
import { getButtonClasses as g, TYPE_BUTTON as x } from "../../chunks/utilities.
|
|
4
|
+
import { getButtonClasses as g, TYPE_BUTTON as x } from "../../chunks/utilities.CPchA_my.js";
|
|
5
5
|
const C = N.forwardRef(
|
|
6
6
|
({
|
|
7
7
|
children: s,
|
|
@@ -33,13 +33,13 @@ const m = ({
|
|
|
33
33
|
] });
|
|
34
34
|
};
|
|
35
35
|
/*!
|
|
36
|
-
@versini/ui-svgicon
|
|
36
|
+
@versini/ui-svgicon v4.0.0
|
|
37
37
|
© 2025 gizmette.com
|
|
38
38
|
*/
|
|
39
39
|
try {
|
|
40
40
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
41
|
-
version: "
|
|
42
|
-
buildTime: "01/
|
|
41
|
+
version: "4.0.0",
|
|
42
|
+
buildTime: "01/04/2025 10:02 AM EST",
|
|
43
43
|
homepage: "https://github.com/aversini/ui-components",
|
|
44
44
|
license: "MIT"
|
|
45
45
|
});
|
|
@@ -90,13 +90,13 @@ const V = ({
|
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
/*!
|
|
93
|
-
@versini/ui-icons
|
|
93
|
+
@versini/ui-icons v4.0.0
|
|
94
94
|
© 2025 gizmette.com
|
|
95
95
|
*/
|
|
96
96
|
try {
|
|
97
97
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
98
|
-
version: "
|
|
99
|
-
buildTime: "01/
|
|
98
|
+
version: "4.0.0",
|
|
99
|
+
buildTime: "01/04/2025 10:02 AM EST",
|
|
100
100
|
homepage: "https://github.com/aversini/ui-components",
|
|
101
101
|
license: "MIT"
|
|
102
102
|
});
|
|
@@ -2,7 +2,7 @@ import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import j from "clsx";
|
|
3
3
|
import v from "react";
|
|
4
4
|
import { BaseButton_private as _ } from "../../chunks/BaseButton.BFKIL4GO.js";
|
|
5
|
-
import { getButtonClasses as E, TYPE_ICON as O } from "../../chunks/utilities.
|
|
5
|
+
import { getButtonClasses as E, TYPE_ICON as O } from "../../chunks/utilities.CPchA_my.js";
|
|
6
6
|
const P = v.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
children: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import b from "clsx";
|
|
3
3
|
import v from "react";
|
|
4
|
-
import { getButtonClasses as V, TYPE_LINK as C } from "../../chunks/utilities.
|
|
4
|
+
import { getButtonClasses as V, TYPE_LINK as C } from "../../chunks/utilities.CPchA_my.js";
|
|
5
5
|
const L = v.forwardRef(
|
|
6
6
|
({
|
|
7
7
|
children: r,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getButtonClasses as I, TYPE_ICON as v } from "./chunks/utilities.
|
|
2
|
-
import { BUTTON_CLASSNAME as
|
|
1
|
+
import { getButtonClasses as I, TYPE_ICON as v } from "./chunks/utilities.CPchA_my.js";
|
|
2
|
+
import { BUTTON_CLASSNAME as P } from "./chunks/utilities.CPchA_my.js";
|
|
3
3
|
import { Button as q } from "./components/Button/Button.js";
|
|
4
4
|
import { ButtonCopy as D } from "./components/Button/ButtonCopy.js";
|
|
5
5
|
import { ButtonIcon as G } from "./components/Button/ButtonIcon.js";
|
|
@@ -9,13 +9,13 @@ import n from "clsx";
|
|
|
9
9
|
import S from "react";
|
|
10
10
|
import { BaseButton_private as E } from "./chunks/BaseButton.BFKIL4GO.js";
|
|
11
11
|
/*!
|
|
12
|
-
@versini/ui-button
|
|
12
|
+
@versini/ui-button v4.0.1
|
|
13
13
|
© 2025 gizmette.com
|
|
14
14
|
*/
|
|
15
15
|
try {
|
|
16
16
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
17
|
-
version: "
|
|
18
|
-
buildTime: "01/
|
|
17
|
+
version: "4.0.1",
|
|
18
|
+
buildTime: "01/04/2025 10:02 AM EST",
|
|
19
19
|
homepage: "https://github.com/aversini/ui-components",
|
|
20
20
|
license: "MIT"
|
|
21
21
|
});
|
|
@@ -100,7 +100,7 @@ const U = S.forwardRef(
|
|
|
100
100
|
);
|
|
101
101
|
U.displayName = "ButtonSort";
|
|
102
102
|
export {
|
|
103
|
-
|
|
103
|
+
P as BUTTON_CLASSNAME,
|
|
104
104
|
q as Button,
|
|
105
105
|
D as ButtonCopy,
|
|
106
106
|
G as ButtonIcon,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-button",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@versini/ui-svgicon": "
|
|
41
|
+
"@versini/ui-svgicon": "4.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@tailwindcss/typography": "0.5.15",
|
|
45
|
-
"@versini/ui-icons": "
|
|
46
|
-
"@versini/ui-types": "
|
|
45
|
+
"@versini/ui-icons": "4.0.0",
|
|
46
|
+
"@versini/ui-types": "4.0.0",
|
|
47
47
|
"clsx": "2.1.1",
|
|
48
48
|
"tailwindcss": "3.4.17"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": [
|
|
51
51
|
"**/*.css"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "8d426172a7405edff487d08c0fae260d4df0b56e"
|
|
54
54
|
}
|