@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.
@@ -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