├── .browserslistrc ├── .github └── workflows │ └── workflow.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── assets ├── demo.gif ├── demo.mov ├── dialog.gif └── dialog.mov ├── blueprint.json ├── blueprint.md ├── karma.conf.js ├── package.json ├── pre-build.js ├── readme ├── api.md ├── installation.md └── usage.md ├── rollup.config.js ├── src ├── demo │ ├── index.html │ └── main.ts ├── lib │ ├── debounce.ts │ ├── focus-trap.ts │ ├── focusable.ts │ ├── index.ts │ └── shadow.ts └── test │ ├── focusable.test.ts │ └── shadow.test.ts ├── tsconfig.build.json ├── tsconfig.json ├── tslint.json └── typings.d.ts /.browserslistrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/.browserslistrc -------------------------------------------------------------------------------- /.github/workflows/workflow.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/.github/workflows/workflow.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/README.md -------------------------------------------------------------------------------- /assets/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/assets/demo.gif -------------------------------------------------------------------------------- /assets/demo.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/assets/demo.mov -------------------------------------------------------------------------------- /assets/dialog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/assets/dialog.gif -------------------------------------------------------------------------------- /assets/dialog.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/assets/dialog.mov -------------------------------------------------------------------------------- /blueprint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/blueprint.json -------------------------------------------------------------------------------- /blueprint.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/blueprint.md -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/karma.conf.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/package.json -------------------------------------------------------------------------------- /pre-build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/pre-build.js -------------------------------------------------------------------------------- /readme/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/readme/api.md -------------------------------------------------------------------------------- /readme/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/readme/installation.md -------------------------------------------------------------------------------- /readme/usage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/readme/usage.md -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/demo/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/demo/index.html -------------------------------------------------------------------------------- /src/demo/main.ts: -------------------------------------------------------------------------------- 1 | import "../lib"; 2 | 3 | -------------------------------------------------------------------------------- /src/lib/debounce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/lib/debounce.ts -------------------------------------------------------------------------------- /src/lib/focus-trap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/lib/focus-trap.ts -------------------------------------------------------------------------------- /src/lib/focusable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/lib/focusable.ts -------------------------------------------------------------------------------- /src/lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/lib/index.ts -------------------------------------------------------------------------------- /src/lib/shadow.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/lib/shadow.ts -------------------------------------------------------------------------------- /src/test/focusable.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/test/focusable.test.ts -------------------------------------------------------------------------------- /src/test/shadow.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/src/test/shadow.test.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasbm/focus-trap/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./node_modules/@appnest/web-config/tslint.json" 3 | } -------------------------------------------------------------------------------- /typings.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | --------------------------------------------------------------------------------