UNPKG

@10up/react-focus-trap-hoc

Version:

Higher order component used to trap keyboard focus within a wrapped component.

63 lines (62 loc) 1.64 kB
{ "name": "@10up/react-focus-trap-hoc", "description": "Higher order component used to trap keyboard focus within a wrapped component.", "license": "MIT", "author": "Dominic Magnifico <dominicmagnifico@gmail.com>", "homepage": "https://github.com/10up/react-focus-trap-hoc#readme", "bugs": { "url": "https://github.com/10up/react-focus-trap-hoc/issues" }, "version": "1.0.1", "main": "index", "files": [ "*.md", "dist", "LICENSE", "lib", "src", "index.js" ], "keywords": [ "react", "focus", "trap", "modal", "accessibility", "a11y" ], "repository": { "type": "git", "url": "git@github.com:10up/react-focus-trap-hoc.git" }, "readmeFilename": "README.md", "scripts": { "build": "npm run build:commonjs & npm run build:umd & npm run build:umd:min", "build:commonjs": "mkdir -p lib && babel ./src -d lib", "build:umd": "webpack dist/react-focus-trap-hoc.js", "build:umd:min": "NODE_ENV=production webpack dist/react-focus-trap-hoc.min.js", "prepublish": "npm run build" }, "devDependencies": { "babel-cli": "^6.24.1", "babel-core": "^6.25.0", "babel-eslint": "^7.2.3", "babel-loader": "^6.4.1", "babel-preset-env": "^1.6.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "eslint": "^3.19.0", "eslint-config-airbnb": "^14.1.0", "eslint-loader": "^1.9.0", "eslint-plugin-import": "^2.7.0", "eslint-plugin-jsx-a11y": "^4.0.0", "eslint-plugin-react": "^6.10.3", "prop-types": "^15.5.10", "react": "^15.6.1", "webpack": "^2.7.0" }, "peerDependencies": { "prop-types": "^15.0.0-0 || ^16.0.0-0", "react": "^15.0.0-0 || ^16.0.0-0" } }