@accessible/modal
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -22,3 +22,3 @@ 'use strict' | ||
var _tabbable = _interopRequireDefault(require('tabbable')) | ||
var _tabbable = _interopRequireDefault(require('@accessible/tabbable')) | ||
@@ -51,3 +51,3 @@ var _clsx = _interopRequireDefault(require('clsx')) | ||
const __reactCreateElement__ = _react.default.createElement | ||
const {useRef, useMemo, useContext, useCallback} = _react.default | ||
const {cloneElement, useRef, useMemo, useContext, useCallback} = _react.default | ||
@@ -151,3 +151,3 @@ const __DEV__ = | ||
return portalize( | ||
_react.default.cloneElement(children, { | ||
cloneElement(children, { | ||
id, | ||
@@ -210,3 +210,3 @@ role: 'dialog', | ||
) | ||
return _react.default.cloneElement(children, { | ||
return cloneElement(children, { | ||
'aria-controls': id, | ||
@@ -262,3 +262,3 @@ 'aria-haspopup': 'dialog', | ||
}, [isOpen]) | ||
return _react.default.cloneElement(children, { | ||
return cloneElement(children, { | ||
'aria-controls': id, | ||
@@ -265,0 +265,0 @@ 'aria-haspopup': 'dialog', |
import _pt from 'prop-types' | ||
import React from 'react' | ||
const __reactCreateElement__ = React.createElement | ||
const {useRef, useMemo, useContext, useCallback} = React | ||
const {cloneElement, useRef, useMemo, useContext, useCallback} = React | ||
import useSwitch from '@react-hook/switch' | ||
@@ -10,3 +10,3 @@ import useMergedRef from '@react-hook/merged-ref' | ||
import Portalize from 'react-portalize' | ||
import tabbable from 'tabbable' | ||
import tabbable from '@accessible/tabbable' | ||
import clsx from 'clsx' | ||
@@ -105,3 +105,3 @@ import raf from 'raf' | ||
return portalize( | ||
React.cloneElement(children, { | ||
cloneElement(children, { | ||
id, | ||
@@ -151,3 +151,3 @@ role: 'dialog', | ||
) | ||
return React.cloneElement(children, { | ||
return cloneElement(children, { | ||
'aria-controls': id, | ||
@@ -197,3 +197,3 @@ 'aria-haspopup': 'dialog', | ||
}, [isOpen]) | ||
return React.cloneElement(children, { | ||
return cloneElement(children, { | ||
'aria-controls': id, | ||
@@ -200,0 +200,0 @@ 'aria-haspopup': 'dialog', |
{ | ||
"name": "@accessible/modal", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/accessible-ui/modal#readme", | ||
@@ -85,2 +85,3 @@ "repository": "github:accessible-ui/modal", | ||
"dependencies": { | ||
"@accessible/tabbable": "^1.0.4", | ||
"@reach/auto-id": "^0.6.1", | ||
@@ -92,4 +93,3 @@ "@react-hook/merged-ref": "^1.0.7", | ||
"raf": "^3.4.1", | ||
"react-portalize": "^2.0.2", | ||
"tabbable": "^4.0.0" | ||
"react-portalize": "^2.0.2" | ||
}, | ||
@@ -96,0 +96,0 @@ "peerDependencies": { |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
43377
8
1
+ Added@accessible/tabbable@^1.0.4
+ Added@accessible/tabbable@1.1.2(transitive)
- Removedtabbable@^4.0.0
- Removedtabbable@4.0.0(transitive)