@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
|
@@ -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
|
|
@@ -3512,7 +3512,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
3512
3512
|
},
|
|
3513
3513
|
gap: isCompact ? 'xs' : 'sm'
|
|
3514
3514
|
}, React.createElement(Button, {
|
|
3515
|
-
variant: "
|
|
3515
|
+
variant: "secondary",
|
|
3516
3516
|
size: isCompact ? 'sm' : 'md',
|
|
3517
3517
|
isDisabled: activePage === 1,
|
|
3518
3518
|
onClick: function onClick() {
|
|
@@ -3538,7 +3538,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
3538
3538
|
className: className
|
|
3539
3539
|
}, isPage ? pageNumber : '...');
|
|
3540
3540
|
})), React.createElement(Button, {
|
|
3541
|
-
variant: "
|
|
3541
|
+
variant: "secondary",
|
|
3542
3542
|
size: isCompact ? 'sm' : 'md',
|
|
3543
3543
|
isDisabled: activePage === pageTotal,
|
|
3544
3544
|
onClick: function onClick() {
|