@reach/dialog
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -10,2 +10,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
import createFocusTrap from "focus-trap"; | ||
import { func, bool } from "prop-types"; | ||
@@ -172,2 +173,7 @@ var createAriaHider = function createAriaHider(dialogNode) { | ||
process.env.NODE_ENV !== "production" ? Dialog.propTypes = { | ||
isOpen: bool, | ||
onDismiss: func | ||
} : void 0; | ||
export { DialogOverlay, DialogContent, Dialog }; |
@@ -26,2 +26,4 @@ "use strict"; | ||
var _propTypes = require("prop-types"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -191,4 +193,9 @@ | ||
process.env.NODE_ENV !== "production" ? Dialog.propTypes = { | ||
isOpen: _propTypes.bool, | ||
onDismiss: _propTypes.func | ||
} : void 0; | ||
exports.DialogOverlay = DialogOverlay; | ||
exports.DialogContent = DialogContent; | ||
exports.Dialog = Dialog; |
{ | ||
"name": "@reach/dialog", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Accessible React Modal Dialog.", | ||
@@ -10,3 +10,3 @@ "author": "Ryan Florence <@ryanflorence>", | ||
"scripts": { | ||
"test": "echo \"Write some tests you bum!\"", | ||
"test": "jest", | ||
"build": "node ../../shared/build-package", | ||
@@ -16,4 +16,4 @@ "lint": "eslint . --max-warnings=0" | ||
"dependencies": { | ||
"@reach/component-component": "^0.1.1", | ||
"@reach/portal": "^0.1.1", | ||
"@reach/component-component": "^0.1.2", | ||
"@reach/portal": "^0.1.2", | ||
"@reach/utils": "^0.1.2", | ||
@@ -20,0 +20,0 @@ "focus-trap": "^3.0.0" |
@@ -6,2 +6,3 @@ import React from "react"; | ||
import createFocusTrap from "focus-trap"; | ||
import { func, bool } from "prop-types"; | ||
@@ -143,2 +144,7 @@ let createAriaHider = dialogNode => { | ||
Dialog.propTypes = { | ||
isOpen: bool, | ||
onDismiss: func | ||
}; | ||
export { DialogOverlay, DialogContent, Dialog }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18004
7
492
3
Updated@reach/portal@^0.1.2