@hyphen/hyphen-components 4.3.1 → 4.3.2
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/hyphen-components.cjs.development.js +2 -2
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +2 -2
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Box/Box.tsx +1 -1
|
@@ -457,11 +457,11 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
457
457
|
*/
|
|
458
458
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
459
459
|
var decorateChildren = function decorateChildren(child, i, array) {
|
|
460
|
-
var _child$key;
|
|
460
|
+
var _child$props, _child$key;
|
|
461
461
|
if (i === array.length - 1 || !child || typeof child === 'string' || typeof child === 'number') {
|
|
462
462
|
return child; // Not gap if child is last element or if the children are strings or numbers.
|
|
463
463
|
}
|
|
464
|
-
var childClasses = classNames(child.props.className, [].concat(Array.from(new Set(childGapClasses))));
|
|
464
|
+
var childClasses = classNames((_child$props = child.props) == null ? void 0 : _child$props.className, [].concat(Array.from(new Set(childGapClasses))));
|
|
465
465
|
return cloneElement(child, {
|
|
466
466
|
className: childClasses,
|
|
467
467
|
key: (_child$key = child.key) != null ? _child$key : i
|