UNPKG

deep-focus-trap

Version:

A focus trap library that pierces that shadow dom. So you can use it with native web components. Deep Focus Trap is a lightweight library written in vanilla js with only one dependency (that is tree-shakable if not in use).

100 lines (99 loc) 2.64 kB
{ "name": "deep-focus-trap", "version": "0.0.3", "description": "A focus trap library that pierces that shadow dom. So you can use it with native web components. Deep Focus Trap is a lightweight library written in vanilla js with only one dependency (that is tree-shakable if not in use).", "main": "./src/index.js", "exports": { ".": "./src/index.js", "./shadow-dom": "./src/index.js", "./dom": "./src/focus-trap.js", "./focus-trap": "./src/focus-trap.js" }, "scripts": { "build": "npx rollup -c", "bump": "npx rollup -c && npm version patch --no-git-tag-version", "docs": "npx jsdoc2md ./src/focus-trap.js ./src/index.js > docs.md", "format": "npx prettier --write src/*.js", "format:check": "npx prettier -c src/*.js", "lint": "npx eslint src/index.js", "lint:fix": "npx eslint --fix src/index.js", "test": "npx jest", "test:coverage": "npx jest --config jestconfig.json", "serve": "npx vite" }, "browserslist": [ "defaults", "not IE 11" ], "files": [ "README.md", "LICENSE", "src/focus-trap.js", "src/index.js", "dist" ], "repository": { "type": "git", "url": "git+https://github.com/TheBeyondGroup/deep-focus-trap.git" }, "files": [ "readme.md", "LICENSE", "src", "dist" ], "keywords": [ "focus", "accessibility", "trap", "capture", "keyboard", "modal", "ADA", "compliance", "ShadowDOM", "Shadow", "DOM", "Web Components", "tabbable", "javascript", "JS", "A11Y", "deep", "lit", "lit-element" ], "author": { "name": "Sean McQuaid" }, "bugs": { "url": "https://github.com/TheBeyondGroup/deep-focus-trap/issues" }, "homepage": "https://github.com/TheBeyondGroup/deep-focus-trap#readme", "license": "MIT", "devDependencies": { "@babel/core": "^7.17.10", "@babel/plugin-transform-runtime": "^7.17.10", "@babel/preset-env": "^7.17.10", "@babel/preset-react": "^7.16.7", "@rollup/plugin-node-resolve": "^13.2.1", "autoprefixer": "^10.4.7", "eslint": "^8.14.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "^4.0.0", "jest": "^28.0.3", "jsdoc-to-markdown": "^7.1.1", "prettier": "^2.6.2", "rollup": "^2.71.1", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-filesize": "^9.1.2", "rollup-plugin-terser": "^7.0.2", "tailwindcss": "^3.0.24", "vite": "^2.9.8" }, "dependencies": { "shadow-dom-utils": "^0.5.0" } }