New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rmwc/drawer

Package Overview
Dependencies
Maintainers
0
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/drawer - npm Package Compare versions

Comparing version

to
14.2.7

.babelrc

6

package.json
{
"name": "@rmwc/drawer",
"version": "14.2.6",
"version": "14.2.7",
"description": "RMWC Drawer component",

@@ -42,5 +42,5 @@ "main": "./index.js",

"@material/drawer": "^14.0.0",
"@rmwc/base": "workspace:*",
"@rmwc/types": "workspace:*"
"@rmwc/base": "14.2.7",
"@rmwc/types": "14.2.7"
}
}

@@ -59,8 +59,6 @@ # Drawers

{/* Optional DrawerAppContent */}
<DrawerAppContent
style={{ minHeight: '15rem', padding: '1rem' }}
>
DrawerAppContent is an optional component that will resize
content when the dismissible drawer is open and closed. It
must be placed directly after the Drawer component.
<DrawerAppContent style={{ minHeight: '15rem', padding: '1rem' }}>
DrawerAppContent is an optional component that will resize content
when the dismissible drawer is open and closed. It must be placed
directly after the Drawer component.
</DrawerAppContent>

@@ -122,8 +120,3 @@ </div>

{/** Make the drawer appear right-to-left */}
<Drawer
dir="rtl"
modal
open={open}
onClose={() => setOpen(false)}
>
<Drawer dir="rtl" modal open={open} onClose={() => setOpen(false)}>
{/** Set the content back to left-to-right */}

@@ -153,2 +146,3 @@ <DrawerHeader dir="ltr">

## Drawer
A Drawer component.

@@ -158,36 +152,29 @@

| Name | Type | Description |
|------|------|-------------|
| `dismissible` | `boolean` | Makes a dismissible drawer. |
| `foundationRef` | `Ref<MDCModalDrawerFoundation<> \| MDCDismissibleDrawerFoundation<>>` | Advanced: A reference to the MDCFoundation. |
| `modal` | `boolean` | Makes a modal / temporary drawer. |
| `onClose` | `(evt: DrawerOnOpenEventT) => void` | Callback that fires when the Drawer is closed. |
| `onOpen` | `(evt: DrawerOnCloseEventT) => void` | Callback that fires when the Drawer is opened. |
| `open` | `boolean` | Opens or closes the Drawer. |
| Name | Type | Description |
| --------------- | --------------------------------------------------------------------- | ---------------------------------------------- |
| `dismissible` | `boolean` | Makes a dismissible drawer. |
| `foundationRef` | `Ref<MDCModalDrawerFoundation<> \| MDCDismissibleDrawerFoundation<>>` | Advanced: A reference to the MDCFoundation. |
| `modal` | `boolean` | Makes a modal / temporary drawer. |
| `onClose` | `(evt: DrawerOnOpenEventT) => void` | Callback that fires when the Drawer is closed. |
| `onOpen` | `(evt: DrawerOnCloseEventT) => void` | Callback that fires when the Drawer is opened. |
| `open` | `boolean` | Opens or closes the Drawer. |
## DrawerHeader
## DrawerHeader
An optional header for the Drawer.
## DrawerTitle
## DrawerTitle
An title for the DrawerHeader.
## DrawerSubtitle
## DrawerSubtitle
A subtitle for the DrawerHeader.
## DrawerContent
## DrawerContent
Content for Drawers.
## DrawerAppContent
## DrawerAppContent
For the Dismissible variant only. Sibling element that is resized when the drawer opens/closes.