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

angular-action-sheet

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-action-sheet - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

dist/sizes.css

5

angular-action-sheet.js

@@ -14,7 +14,6 @@ angular

close: '&onClose',
reveal: '=reveal',
size: '='
reveal: '=reveal'
},
template: '<div class="jbas-mask" ng-class="reveal ? \'jbas-mask--revealed\' : \'jbas-mask--hidden\'"></div>' +
'<div class="jbas-sheet jbas-sheet--{{ size }}" ng-class="reveal ? \'jbas-sheet--revealed\' : \'jbas-sheet--hidden\'">' +
'<div class="jbas-sheet" ng-class="reveal ? \'jbas-sheet--revealed\' : \'jbas-sheet--hidden\'">' +
'<button type="button" class="jbas-sheet__close" ng-click="sheet.close()">X</button>' +

@@ -21,0 +20,0 @@ '<div class="jbas-sheet__restrict-y"><div class="jbas-sheet__restrict-x">' +

2

package.json
{
"name": "angular-action-sheet",
"version": "0.0.4",
"version": "0.1.0",
"description": "angular directive for sliding content out like a drawer",

@@ -5,0 +5,0 @@ "main": "angular-action-sheet.js",

@@ -39,3 +39,3 @@ # angular-action-sheet

```html
<jb-action-sheet reveal="someboolean" on-close="callWhenClosed()" size="'big'">
<jb-action-sheet reveal="someboolean" on-close="callWhenClosed()">
<div>your content here</div>

@@ -45,2 +45,23 @@ </jb-action-sheet>

If you want to create custom sheet sizes, just define some styles like this:
```css
.big > .jbas-sheet {
width: 80%;
}
.med > .jbas-sheet {
width: 50%;
}
```
then include the class on the `jb-action-sheet` directive like this:
```html
<jb-action-sheet class="big"></jb-action-sheet>
```
**Optionally**: you can use the included `dist/sizes.css` which provides
`.jbas-sheet--big`, `.jbas-sheet--med`, `.jbas-sheet--small`.
**Note**: Currently this directive hacks a `.jbas-clipped` class to the body when

@@ -47,0 +68,0 @@ the sheet is in the revealed state. This will be fixed sometime to be less

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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