@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/dist/370.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/dist/726.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/dist/795.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/dist/946.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
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
- return react.Children.toArray(children).length;
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);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-button v13.1.0
2
+ @versini/ui-button v14.0.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-button",
3
- "version": "13.1.0",
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": "e1d07ef9f8c39af8e1cf471a2d1688f4bca1771c"
77
+ "gitHead": "0f7cad25854a6216ada805a75f32a3aa1ccc1464"
78
78
  }