@versini/ui-button 11.3.10 → 12.0.0
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/188.js +7 -7
- package/dist/370.js +1 -1
- package/dist/795.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/ButtonCopy.js +1 -1
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ButtonLink.js +1 -1
- package/package.json +2 -3
package/dist/188.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-button
|
|
2
|
+
@versini/ui-button v12.0.0
|
|
3
3
|
© 2026 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -79,7 +79,7 @@ const FOCUS_DARK = "focus:outline-focus-dark";
|
|
|
79
79
|
const FOCUS_LIGHT_DARK_DARK = "focus:outline-focus-light dark:focus:outline-focus-dark";
|
|
80
80
|
const FOCUS_DARK_DARK_LIGHT = "focus:outline-focus-dark dark:focus:outline-focus-light";
|
|
81
81
|
// Common utility classes
|
|
82
|
-
const
|
|
82
|
+
const NOT_PLUME = "not-plume";
|
|
83
83
|
// Size classes
|
|
84
84
|
const SIZE_SMALL = "max-h-8 py-0 px-2";
|
|
85
85
|
const SIZE_MEDIUM = "max-h-9 h-8 px-3";
|
|
@@ -153,13 +153,13 @@ const getButtonFontClasses = ({ type, size, labelRight, labelLeft })=>{
|
|
|
153
153
|
};
|
|
154
154
|
const getButtonTextCopyClasses = ({ mode, noBackground, truncate, variant })=>{
|
|
155
155
|
if (noBackground) {
|
|
156
|
-
return
|
|
156
|
+
return NOT_PLUME;
|
|
157
157
|
}
|
|
158
158
|
const truncateClass = {
|
|
159
159
|
truncate: truncate
|
|
160
160
|
};
|
|
161
161
|
if (isPrimary(variant)) {
|
|
162
|
-
return clsx(
|
|
162
|
+
return clsx(NOT_PLUME, {
|
|
163
163
|
...truncateClass,
|
|
164
164
|
[TEXT_COPY_DARK]: isLightOrSystem(mode),
|
|
165
165
|
[TEXT_COPY_LIGHT]: isDarkOrAltSystem(mode),
|
|
@@ -168,7 +168,7 @@ const getButtonTextCopyClasses = ({ mode, noBackground, truncate, variant })=>{
|
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
if (isSecondary(variant)) {
|
|
171
|
-
return clsx(
|
|
171
|
+
return clsx(NOT_PLUME, {
|
|
172
172
|
...truncateClass,
|
|
173
173
|
[TEXT_COPY_LIGHT]: isLightOrSystem(mode),
|
|
174
174
|
[TEXT_COPY_DARK]: isDarkOrAltSystem(mode),
|
|
@@ -177,7 +177,7 @@ const getButtonTextCopyClasses = ({ mode, noBackground, truncate, variant })=>{
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
if (isDanger(variant)) {
|
|
180
|
-
return clsx(
|
|
180
|
+
return clsx(NOT_PLUME, {
|
|
181
181
|
...truncateClass,
|
|
182
182
|
[TEXT_COPY_LIGHT]: isDark(mode) || isSystem(mode),
|
|
183
183
|
[TEXT_COPY_LIGHTER]: isLight(mode) || isAltSystem(mode),
|
|
@@ -186,7 +186,7 @@ const getButtonTextCopyClasses = ({ mode, noBackground, truncate, variant })=>{
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
/* v8 ignore start - selected variant edge case */ if (isSelected(variant)) {
|
|
189
|
-
return clsx(
|
|
189
|
+
return clsx(NOT_PLUME, TEXT_COPY_LIGHTER, truncateClass);
|
|
190
190
|
}
|
|
191
191
|
/* v8 ignore stop */ };
|
|
192
192
|
const getButtonBackgroundClasses = ({ mode, noBackground, variant })=>{
|
package/dist/370.js
CHANGED
package/dist/795.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-button",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"@versini/ui-types": "8.3.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@tailwindcss/typography": "0.5.19",
|
|
66
65
|
"@versini/ui-hooks": "6.1.1",
|
|
67
66
|
"@versini/ui-icons": "4.18.1",
|
|
68
67
|
"clsx": "2.1.1",
|
|
@@ -71,5 +70,5 @@
|
|
|
71
70
|
"sideEffects": [
|
|
72
71
|
"**/*.css"
|
|
73
72
|
],
|
|
74
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "ace8376be408d1f21ced7ba7a3259891476690e4"
|
|
75
74
|
}
|