focus-trap-react 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/index.d.ts +17 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Options as FocusTrapOptions } from 'focus-trap';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export = FocusTrap;
|
|
5
|
+
|
|
6
|
+
declare namespace FocusTrap {
|
|
7
|
+
export interface Props extends React.AllHTMLAttributes<any> {
|
|
8
|
+
active?: boolean;
|
|
9
|
+
paused?: boolean;
|
|
10
|
+
tag?: string;
|
|
11
|
+
focusTrapOptions?: FocusTrapOptions;
|
|
12
|
+
// Allow through any properties that weren't picked up
|
|
13
|
+
[prop: string]: any;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class FocusTrap extends React.Component<FocusTrap.Props> {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "focus-trap-react",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "A React component that traps focus.",
|
|
5
5
|
"main": "dist/focus-trap-react.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"src"
|
|
24
|
+
"src",
|
|
25
|
+
"index.d.ts"
|
|
25
26
|
],
|
|
26
27
|
"keywords": [
|
|
27
28
|
"react",
|