Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@accessible/modal

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accessible/modal - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

dist/.DS_Store

10

dist/cjs/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc