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

@spectrum-web-components/tray

Package Overview
Dependencies
Maintainers
7
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/tray - npm Package Compare versions

Comparing version 0.3.3-express.9 to 0.3.3

16

package.json
{
"name": "@spectrum-web-components/tray",
"version": "0.3.3-express.9+abfee7409",
"version": "0.3.3",
"publishConfig": {

@@ -47,11 +47,11 @@ "access": "public"

"dependencies": {
"@spectrum-web-components/base": "^0.5.2",
"@spectrum-web-components/modal": "^0.6.2-express.9+abfee7409",
"@spectrum-web-components/reactive-controllers": "^0.2.0",
"@spectrum-web-components/shared": "^0.13.4",
"@spectrum-web-components/underlay": "^0.8.4-express.9+abfee7409",
"@spectrum-web-components/base": "^0.5.3",
"@spectrum-web-components/modal": "^0.6.2",
"@spectrum-web-components/reactive-controllers": "^0.2.1",
"@spectrum-web-components/shared": "^0.13.5",
"@spectrum-web-components/underlay": "^0.8.4",
"tslib": "^2.0.0"
},
"devDependencies": {
"@spectrum-css/tray": "^1.0.17"
"@spectrum-css/tray": "^1.0.18"
},

@@ -63,3 +63,3 @@ "types": "./src/index.d.ts",

],
"gitHead": "abfee740957976448a3e4cf90df17d6165f857d6"
"gitHead": "57aba8030b6af96af4015a0aa830e342a17dc219"
}

@@ -29,29 +29,11 @@ ## Description

```html
<sp-button
variant="secondary"
onclick="
const trigger = this;
const interaction = 'modal';
const content = this.nextElementSibling;
const options = {
offset: 0,
placement: 'none',
receivesFocus: 'auto',
};
Overlay.open(
trigger,
interaction,
content,
options
);
"
>
Toggle tray
</sp-button>
<sp-tray>
<sp-dialog size="small" dismissable>
<h2 slot="heading">New Messages</h2>
You have 5 new messages.
</sp-dialog>
</sp-tray>
<overlay-trigger type="modal" placement="none">
<sp-button slot="trigger" variant="secondary">Toggle tray</sp-button>
<sp-tray slot="click-content">
<sp-dialog size="small" dismissable>
<h2 slot="heading">New Messages</h2>
You have 5 new messages.
</sp-dialog>
</sp-tray>
</overlay-trigger>
```

@@ -62,34 +44,16 @@

```html
<sp-button
variant="secondary"
onclick="
const trigger = this;
const interaction = 'modal';
const content = this.nextElementSibling;
const options = {
offset: 0,
placement: 'none',
receivesFocus: 'auto',
};
Overlay.open(
trigger,
interaction,
content,
options
);
"
>
Toggle menu
</sp-button>
<sp-tray>
<sp-menu style="width: 100%">
<sp-menu-item selected>Deselect</sp-menu-item>
<sp-menu-item>Select Inverse</sp-menu-item>
<sp-menu-item focused>Feather...</sp-menu-item>
<sp-menu-item>Select and Mask...</sp-menu-item>
<sp-menu-divider></sp-menu-divider>
<sp-menu-item>Save Selection</sp-menu-item>
<sp-menu-item disabled>Make Work Path</sp-menu-item>
</sp-menu>
</sp-tray>
<overlay-trigger type="modal" placement="none">
<sp-button slot="trigger" variant="secondary">Toggle menu</sp-button>
<sp-tray slot="click-content">
<sp-menu style="width: 100%">
<sp-menu-item selected>Deselect</sp-menu-item>
<sp-menu-item>Select Inverse</sp-menu-item>
<sp-menu-item focused>Feather...</sp-menu-item>
<sp-menu-item>Select and Mask...</sp-menu-item>
<sp-menu-divider></sp-menu-divider>
<sp-menu-item>Save Selection</sp-menu-item>
<sp-menu-item disabled>Make Work Path</sp-menu-item>
</sp-menu>
</sp-tray>
</overlay-trigger>
```

@@ -96,0 +60,0 @@

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