From 9aba8d71f1139e7f5a27ae01c8791da3a5b21053 Mon Sep 17 00:00:00 2001 From: Mengying Fan Date: Mon, 2 Dec 2024 12:43:57 +0200 Subject: [PATCH] Support configuring the click behavoir on underlay of Modal --- package-lock.json | 4 +- package.json | 2 +- .../modal/__snapshots__/modal.test.tsx.snap | 33 ++++---- src/components/modal/examples/modal-b.tsx | 2 + src/components/modal/modal.test.tsx | 14 +++- src/components/modal/modal.tsx | 82 ++++++++++--------- 6 files changed, 79 insertions(+), 58 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ea242ff..1a209efb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mapbox/mr-ui", - "version": "2.11.0", + "version": "2.12.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@mapbox/mr-ui", - "version": "2.11.0", + "version": "2.12.0", "license": "BSD-2-Clause", "dependencies": { "@mapbox/mbx-assembly": "^1.6.0", diff --git a/package.json b/package.json index a86fb2e0..b5e7e4f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/mr-ui", - "version": "2.11.0", + "version": "2.12.0", "description": "UI components for Mapbox projects", "main": "index.js", "homepage": "./", diff --git a/src/components/modal/__snapshots__/modal.test.tsx.snap b/src/components/modal/__snapshots__/modal.test.tsx.snap index 562e6395..f7f36b8c 100644 --- a/src/components/modal/__snapshots__/modal.test.tsx.snap +++ b/src/components/modal/__snapshots__/modal.test.tsx.snap @@ -23,14 +23,15 @@ exports[`Modal all options renders 1`] = `