@hyphen/hyphen-components 2.9.1 → 2.9.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 +1 -1
- 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 +1 -1
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Box/Box.tsx +1 -3
|
@@ -451,7 +451,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
451
451
|
if (i === array.length - 1 || !child || typeof child === 'string' || typeof child === 'number') {
|
|
452
452
|
return child; // Not gap if child is last element or if the children are strings or numbers.
|
|
453
453
|
}
|
|
454
|
-
var childClasses = classNames(child.props.className, [].concat(new Set(childGapClasses)));
|
|
454
|
+
var childClasses = classNames(child.props.className, [].concat(Array.from(new Set(childGapClasses))));
|
|
455
455
|
return cloneElement(child, {
|
|
456
456
|
className: childClasses,
|
|
457
457
|
key: (_child$key = child.key) != null ? _child$key : i
|