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

rc-drawer

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-drawer - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

52

lib/Drawer.js

@@ -7,6 +7,26 @@ 'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _react = require('react');

@@ -26,12 +46,2 @@

function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
function getOffset(ele) {

@@ -52,8 +62,8 @@ var el = ele;

var Drawer = function (_React$Component) {
_inherits(Drawer, _React$Component);
(0, _inherits3["default"])(Drawer, _React$Component);
function Drawer(props) {
_classCallCheck(this, Drawer);
(0, _classCallCheck3["default"])(this, Drawer);
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
var _this = (0, _possibleConstructorReturn3["default"])(this, _React$Component.call(this, props));

@@ -295,3 +305,3 @@ _this.onOverlayClicked = function () {

// if touch is supported by the browser
touchSupported: (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && 'ontouchstart' in window
touchSupported: (typeof window === 'undefined' ? 'undefined' : (0, _typeof3["default"])(window)) === 'object' && 'ontouchstart' in window
};

@@ -341,7 +351,7 @@ return _this;

var sidebarStyle = _extends({}, this.props.sidebarStyle);
var contentStyle = _extends({}, this.props.contentStyle);
var overlayStyle = _extends({}, this.props.overlayStyle);
var sidebarStyle = (0, _extends3["default"])({}, this.props.sidebarStyle);
var contentStyle = (0, _extends3["default"])({}, this.props.contentStyle);
var overlayStyle = (0, _extends3["default"])({}, this.props.overlayStyle);
var rootCls = (_rootCls = {}, _defineProperty(_rootCls, className, !!className), _defineProperty(_rootCls, prefixCls, true), _defineProperty(_rootCls, prefixCls + '-' + position, true), _rootCls);
var rootCls = (_rootCls = {}, (0, _defineProperty3["default"])(_rootCls, className, !!className), (0, _defineProperty3["default"])(_rootCls, prefixCls, true), (0, _defineProperty3["default"])(_rootCls, prefixCls + '-' + position, true), _rootCls);

@@ -392,3 +402,3 @@ var rootProps = {};

'div',
_extends({ className: (0, _classnames2["default"])(rootCls) }, rootProps),
(0, _extends3["default"])({ className: (0, _classnames2["default"])(rootCls) }, rootProps),
_react2["default"].createElement(

@@ -395,0 +405,0 @@ 'div',

{
"name": "rc-drawer",
"version": "0.4.2",
"version": "0.4.3",
"description": "drawer ui component for react",

@@ -31,3 +31,3 @@ "keywords": [

"start": "rc-tools run server",
"pub": "rc-tools run pub",
"pub": "rc-tools run pub --babel-runtime",
"lint": "rc-tools run lint",

@@ -52,4 +52,5 @@ "karma": "rc-tools run karma",

"dependencies": {
"babel-runtime": "6.x",
"classnames": "^2.2.4"
}
}
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