@launchpad-ui/popover
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -15,2 +15,3 @@ var __defProp = Object.defineProperty; | ||
"../../scripts/react-shim.js"() { | ||
"use strict"; | ||
} | ||
@@ -28,2 +29,3 @@ }); | ||
"src/features.ts"() { | ||
"use strict"; | ||
init_react_shim(); | ||
@@ -153,5 +155,2 @@ features_default = domAnimation; | ||
this.setState({ isOpen: this.props.isOpen }); | ||
if (this.props.interactionKind === "click") { | ||
document.querySelectorAll(".Modal").forEach((modal) => modal.dispatchEvent(new CustomEvent(`modal-trap-${this.props.isOpen ? "pause" : "start"}`))); | ||
} | ||
} | ||
@@ -168,3 +167,2 @@ await this.updatePopover(); | ||
interactionKind, | ||
autoFocus, | ||
enforceFocus, | ||
@@ -203,3 +201,2 @@ targetClassName, | ||
isModal, | ||
autoFocus, | ||
enforceFocus, | ||
@@ -206,0 +203,0 @@ onClose: this.handleOverlayClose |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __create = Object.create; | ||
@@ -29,2 +30,3 @@ var __defProp = Object.defineProperty; | ||
"../../scripts/react-shim.js"() { | ||
"use strict"; | ||
React = __toESM(require("react")); | ||
@@ -42,2 +44,3 @@ } | ||
"src/features.ts"() { | ||
"use strict"; | ||
init_react_shim(); | ||
@@ -167,5 +170,2 @@ import_framer_motion = require("framer-motion"); | ||
this.setState({ isOpen: this.props.isOpen }); | ||
if (this.props.interactionKind === "click") { | ||
document.querySelectorAll(".Modal").forEach((modal) => modal.dispatchEvent(new CustomEvent(`modal-trap-${this.props.isOpen ? "pause" : "start"}`))); | ||
} | ||
} | ||
@@ -182,3 +182,2 @@ await this.updatePopover(); | ||
interactionKind, | ||
autoFocus, | ||
enforceFocus, | ||
@@ -217,3 +216,2 @@ targetClassName, | ||
isModal, | ||
autoFocus, | ||
enforceFocus, | ||
@@ -220,0 +218,0 @@ onClose: this.handleOverlayClose |
@@ -10,3 +10,2 @@ /// <reference types="node" /> | ||
allowBoundaryElementOverflow?: boolean; | ||
autoFocus?: boolean; | ||
content?: string | JSX.Element | JSX.Element[]; | ||
@@ -13,0 +12,0 @@ children: React.ReactNode; |
{ | ||
"name": "@launchpad-ui/popover", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"publishConfig": { | ||
@@ -30,6 +30,6 @@ "access": "public" | ||
"@floating-ui/dom": "^0.5.2", | ||
"@launchpad-ui/overlay": "~0.1.7", | ||
"@launchpad-ui/overlay": "~0.1.8", | ||
"@launchpad-ui/tokens": "~0.1.5", | ||
"@react-aria/focus": "^3.6.0", | ||
"clsx": "^1.1.1", | ||
"clsx": "^1.2.0", | ||
"framer-motion": "^6.3.13", | ||
@@ -36,0 +36,0 @@ "lodash-es": "^4.17.21", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
92165
1025
Updated@launchpad-ui/overlay@~0.1.8
Updatedclsx@^1.2.0