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.1 to 0.0.2

dist/styles.css

12

angular-action-sheet.js

@@ -17,6 +17,6 @@ angular

},
template: '<div class="mask" ng-class="reveal ? \'mask--revealed\' : \'mask--hidden\'"></div>' +
'<div class="sheet sheet--{{ size }}" ng-class="reveal ? \'sheet--revealed\' : \'sheet--hidden\'">' +
'<button type="button" class="sheet__close" ng-click="sheet.close()">X</button>' +
'<div class="sheet__restrict-y"><div class="sheet__restrict-x">' +
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\'">' +
'<button type="button" class="jbas-sheet__close" ng-click="sheet.close()">X</button>' +
'<div class="jbas-sheet__restrict-y"><div class="jbas-sheet__restrict-x">' +
'<ng-transclude></ng-transclude>' +

@@ -49,5 +49,5 @@ '</div></div>' +

angular.element($document[0].body).toggleClass('clipped', revealedSheets.length >= 1);
angular.element($document[0].body).toggleClass('unclipped', revealedSheets.length == 0);
angular.element($document[0].body).toggleClass('jbas-clipped', revealedSheets.length >= 1);
angular.element($document[0].body).toggleClass('jbas-unclipped', revealedSheets.length == 0);
}
}
{
"name": "angular-action-sheet",
"version": "0.0.1",
"version": "0.0.2",
"description": "angular directive for sliding content out like a drawer",

@@ -20,3 +20,7 @@ "main": "angular-action-sheet.js",

},
"license": "MIT"
"license": "MIT",
"devDependencies": {
"gulp": "^3.8.11",
"gulp-sass": "^1.3.3"
}
}

@@ -28,2 +28,8 @@ # angular-action-sheet

You'll probably want the styles too (for now, just .scss is provided)
```scss
@import "node_modules/angular-action-sheet/styles/sass/styles";
```
## Usage

@@ -34,3 +40,3 @@

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

@@ -40,3 +46,3 @@ </jb-action-sheet>

**Note**: Currently this directive hacks a `.clipped` class to the body when
**Note**: Currently this directive hacks a `.jbas-clipped` class to the body when
the sheet is in the revealed state. This will be fixed sometime to be less

@@ -43,0 +49,0 @@ hacky.

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