Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-modal

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-modal - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

39

react-modal/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc