@hyphen/hyphen-components 2.9.1 → 2.9.3
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 +3 -3
- 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 +3 -3
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Box/Box.tsx +1 -1
- package/src/components/Pagination/Pagination.tsx +2 -2
|
@@ -455,7 +455,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
455
455
|
if (i === array.length - 1 || !child || typeof child === 'string' || typeof child === 'number') {
|
|
456
456
|
return child; // Not gap if child is last element or if the children are strings or numbers.
|
|
457
457
|
}
|
|
458
|
-
var childClasses = classNames(child.props.className, [].concat(new Set(childGapClasses)));
|
|
458
|
+
var childClasses = classNames(child.props.className, [].concat(Array.from(new Set(childGapClasses))));
|
|
459
459
|
return React.cloneElement(child, {
|
|
460
460
|
className: childClasses,
|
|
461
461
|
key: (_child$key = child.key) != null ? _child$key : i
|
|
@@ -3516,7 +3516,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
3516
3516
|
},
|
|
3517
3517
|
gap: isCompact ? 'xs' : 'sm'
|
|
3518
3518
|
}, React.createElement(Button, {
|
|
3519
|
-
variant: "
|
|
3519
|
+
variant: "secondary",
|
|
3520
3520
|
size: isCompact ? 'sm' : 'md',
|
|
3521
3521
|
isDisabled: activePage === 1,
|
|
3522
3522
|
onClick: function onClick() {
|
|
@@ -3542,7 +3542,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
3542
3542
|
className: className
|
|
3543
3543
|
}, isPage ? pageNumber : '...');
|
|
3544
3544
|
})), React.createElement(Button, {
|
|
3545
|
-
variant: "
|
|
3545
|
+
variant: "secondary",
|
|
3546
3546
|
size: isCompact ? 'sm' : 'md',
|
|
3547
3547
|
isDisabled: activePage === pageTotal,
|
|
3548
3548
|
onClick: function onClick() {
|