@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyphen/hyphen-components",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "@hyphen"
@@ -553,9 +553,7 @@ export const Box: FC<BoxProps> = forwardRef(
553
553
  return child; // Not gap if child is last element or if the children are strings or numbers.
554
554
  }
555
555
 
556
- const childClasses = classNames(child.props.className, [
557
- ...new Set(childGapClasses),
558
- ]);
556
+ const childClasses = classNames(child.props.className, [...Array.from(new Set(childGapClasses))]);
559
557
 
560
558
  return cloneElement(child, {
561
559
  className: childClasses,