@types/react-modal
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -41,32 +41,47 @@ // Type definitions for react-modal 2.2 | ||
isOpen: boolean; | ||
/* Object indicating styles to be used for the modal, divided into overlay and content styles. */ | ||
style?: Styles; | ||
/* String className to be applied to the portal. Defaults to "ReactModalPortal". */ | ||
portalClassName?: string; | ||
/* String className to be applied to the document.body. */ | ||
bodyOpenClassName?: string; | ||
/* String or object className to be applied to the modal content. */ | ||
className?: string | Classes; | ||
/* String or object className to be applied to the overlay. */ | ||
overlayClassName?: string | Classes; | ||
/* Set this to properly hide your application from assistive screenreaders and other assistive technologies while the modal is open. */ | ||
appElement?: HTMLElement | {}; | ||
/* Function that will be run after the modal has opened. */ | ||
onAfterOpen?(): void; | ||
/* Function that will be run when the modal is requested to be closed, prior to actually closing. */ | ||
onRequestClose?(event: (MouseEvent | KeyboardEvent)): void; | ||
/* Number indicating the milliseconds to wait before closing the modal. Defaults to zero (no timeout). */ | ||
closeTimeoutMS?: number; | ||
/* Boolean indicating if the appElement should be hidden. Defaults to true. */ | ||
ariaHideApp?: boolean; | ||
/* Boolean indicating if the overlay should close the modal. Defaults to true. */ | ||
shouldCloseOnOverlayClick?: boolean; | ||
/* String className to be applied to the portal. Defaults to "ReactModalPortal". */ | ||
portalClassName?: string; | ||
/* String or object className to be applied to the overlay. */ | ||
overlayClassName?: string | Classes; | ||
/* String or object className to be applied to the modal content. */ | ||
className?: string | Classes; | ||
/* String indicating how the content container should be announced to screenreaders. */ | ||
contentLabel?: string; | ||
/* String indicating the role of the modal, allowing the 'dialog' role to be applied if desired. */ | ||
role?: string; | ||
/* Function that will be called to get the parent element that the modal will be attached to. */ | ||
parentSelector?(): HTMLElement; | ||
/* String className to be applied to the document.body. */ | ||
bodyOpenClassName?: string; | ||
/* Additional aria attributes. */ | ||
aria?: Aria; | ||
/* String indicating the role of the modal, allowing the 'dialog' role to be applied if desired. */ | ||
role?: string; | ||
/* String indicating how the content container should be announced to screenreaders. */ | ||
contentLabel: string; | ||
} | ||
@@ -73,0 +88,0 @@ } |
{ | ||
"name": "@types/react-modal", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "TypeScript definitions for react-modal", | ||
@@ -37,5 +37,4 @@ "license": "MIT", | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "4c8d345bb80733ac784f097bb456efb9d23a3eeef1a2b3984d5b42a3556c0103", | ||
"typesPublisherContentHash": "a78a9484434593607d39c8f6421e50eba18a2628c796fad821a27323fc2ffc9d", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 15 Aug 2017 18:11:20 GMT | ||
* Last updated: Mon, 21 Aug 2017 21:59:27 GMT | ||
* Dependencies: react | ||
@@ -14,0 +14,0 @@ * Global values: ReactModal |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6365