@hyphen/hyphen-components 2.9.2 → 2.9.4
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/README.md +1 -1
- package/dist/css/utilities.css +1 -1
- package/dist/css/variables.css +2 -2
- package/dist/hyphen-components.cjs.development.js +2 -2
- 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 +2 -2
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Box/Box.tsx +3 -1
- package/src/components/Pagination/Pagination.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyphen/hyphen-components",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "@hyphen"
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@rollup/rollup-linux-x64-gnu": "^4.9.6"
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
|
-
"@hyphen/hyphen-design-tokens": "^4.4.
|
|
123
|
+
"@hyphen/hyphen-design-tokens": "^4.4.2",
|
|
124
124
|
"@popperjs/core": "^2.11.8",
|
|
125
125
|
"@types/react-modal": "^3.16.3",
|
|
126
126
|
"classnames": "^2.5.1",
|
|
@@ -553,7 +553,9 @@ 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, [
|
|
556
|
+
const childClasses = classNames(child.props.className, [
|
|
557
|
+
...Array.from(new Set(childGapClasses)),
|
|
558
|
+
]);
|
|
557
559
|
|
|
558
560
|
return cloneElement(child, {
|
|
559
561
|
className: childClasses,
|
|
@@ -109,7 +109,7 @@ export const Pagination: FC<PaginationProps> = ({
|
|
|
109
109
|
gap={isCompact ? 'xs' : 'sm'}
|
|
110
110
|
>
|
|
111
111
|
<Button
|
|
112
|
-
variant="
|
|
112
|
+
variant="secondary"
|
|
113
113
|
size={isCompact ? 'sm' : 'md'}
|
|
114
114
|
isDisabled={activePage === 1}
|
|
115
115
|
onClick={() => onChange(activePage - 1)}
|
|
@@ -138,7 +138,7 @@ export const Pagination: FC<PaginationProps> = ({
|
|
|
138
138
|
</Box>
|
|
139
139
|
)}
|
|
140
140
|
<Button
|
|
141
|
-
variant="
|
|
141
|
+
variant="secondary"
|
|
142
142
|
size={isCompact ? 'sm' : 'md'}
|
|
143
143
|
isDisabled={activePage === pageTotal}
|
|
144
144
|
onClick={() => onChange(activePage + 1)}
|