@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.
@@ -481,11 +481,11 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
481
481
  */
482
482
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
483
483
  var decorateChildren = function decorateChildren(child, i, array) {
484
- var _child$key;
484
+ var _child$props, _child$key;
485
485
  if (i === array.length - 1 || !child || typeof child === 'string' || typeof child === 'number') {
486
486
  return child; // Not gap if child is last element or if the children are strings or numbers.
487
487
  }
488
- var childClasses = classNames(child.props.className, [].concat(Array.from(new Set(childGapClasses))));
488
+ var childClasses = classNames((_child$props = child.props) == null ? void 0 : _child$props.className, [].concat(Array.from(new Set(childGapClasses))));
489
489
  return React.cloneElement(child, {
490
490
  className: childClasses,
491
491
  key: (_child$key = child.key) != null ? _child$key : i