@versini/ui-button 13.1.0 → 14.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/277.js +1 -1
- package/dist/370.js +1 -1
- package/dist/726.js +1 -1
- package/dist/795.js +1 -1
- package/dist/946.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/ButtonCopy.js +1 -1
- package/dist/components/Button/ButtonGroup.js +11 -2
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ButtonLink.js +1 -1
- package/package.json +2 -2
package/dist/277.js
CHANGED
package/dist/370.js
CHANGED
package/dist/726.js
CHANGED
package/dist/795.js
CHANGED
package/dist/946.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-button
|
|
2
|
+
@versini/ui-button v14.0.0
|
|
3
3
|
© 2026 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -29,7 +29,16 @@ const getButtonGroupStyle = ({ orientation = "horizontal", childCount })=>{
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
const getValidChildCount = (children)=>{
|
|
32
|
-
|
|
32
|
+
const flattened = react.Children.toArray(children);
|
|
33
|
+
let count = 0;
|
|
34
|
+
for (const child of flattened){
|
|
35
|
+
if (/*#__PURE__*/ react.isValidElement(child) && child.type === react.Fragment) {
|
|
36
|
+
count += getValidChildCount(child.props.children);
|
|
37
|
+
} else {
|
|
38
|
+
count += 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return count;
|
|
33
42
|
};
|
|
34
43
|
function ButtonGroup({ children, gap = "medium", orientation = "horizontal", className, ...otherProps }) {
|
|
35
44
|
const childCount = getValidChildCount(children);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-button",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"sideEffects": [
|
|
75
75
|
"**/*.css"
|
|
76
76
|
],
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "0f7cad25854a6216ada805a75f32a3aa1ccc1464"
|
|
78
78
|
}
|