diff --git a/CHANGELOG.md b/CHANGELOG.md index 46e53d1..3e127d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,33 @@ ## Changelog +## 2.15.0 + +- [feature] support configuring z-index for Popover component +- [fix] change default z-index value of Modal component to auto + +## 2.14.0 + +- [feature] support configuring z-index for Modal component + ## 2.13.0 + - [feature] add prop exitOnUnderlayClicked to Modal component ## 2.12.0 + - [feature] add possibility to pass onCopy to Copiable component ## 2.11.0 + - [feature] support onOpenChange handler for contextMenu ## 2.10.2 + - [feature] upgrade @mapbox/mbx-assembly to 1.6.0 ## 2.10.0 -- [feature] upgrade to react 18 + +- [feature] upgrade to react 18 ## 2.9.0 diff --git a/package-lock.json b/package-lock.json index 9b5915b..770061a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mapbox/mr-ui", - "version": "2.14.0", + "version": "2.15.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@mapbox/mr-ui", - "version": "2.14.0", + "version": "2.15.0", "license": "BSD-2-Clause", "dependencies": { "@mapbox/mbx-assembly": "^1.6.0", diff --git a/package.json b/package.json index 4c29a6e..57b8784 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/mr-ui", - "version": "2.14.0", + "version": "2.15.0", "description": "UI components for Mapbox projects", "main": "index.js", "homepage": "./", diff --git a/src/components/modal/modal.tsx b/src/components/modal/modal.tsx index bc86cc2..653d2a4 100644 --- a/src/components/modal/modal.tsx +++ b/src/components/modal/modal.tsx @@ -222,7 +222,7 @@ Modal.propTypes = { /** * z-index of the modal */ - zIndex: PropTypes.number || PropTypes.string, + zIndex: PropTypes.number, /** * The modal's primary action. If this is provided, an encouraging * button will be rendered at the bottom of the modal. diff --git a/src/components/popover/popover.tsx b/src/components/popover/popover.tsx index 878a3d5..f15e7cf 100644 --- a/src/components/popover/popover.tsx +++ b/src/components/popover/popover.tsx @@ -159,11 +159,11 @@ Popover.propTypes = { /** * `'medium'`, `'small'`, or `'none'`. */ - padding: PropTypes.oneOf(['medium', 'small', 'none']) + padding: PropTypes.oneOf(['medium', 'small', 'none']), /** * z-index of the popover. - */, - zIndex: PropTypes.number || PropTypes.string, + */ + zIndex: PropTypes.number, /** * Whether or not the popover has a triangle pointer. */