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

@hixme-ui/card-drawer

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hixme-ui/card-drawer - npm Package Compare versions

Comparing version 1.15.3 to 1.15.4

26

lib/CardDrawer.js

@@ -82,11 +82,14 @@ 'use strict';

function CardDrawer(props) {
function CardDrawer() {
var _ref;
var _temp, _this, _ret;
(0, _classCallCheck3.default)(this, CardDrawer);
var _this = (0, _possibleConstructorReturn3.default)(this, (CardDrawer.__proto__ || (0, _getPrototypeOf2.default)(CardDrawer)).call(this, props));
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this.state = {
open: props.open
};
return _this;
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = CardDrawer.__proto__ || (0, _getPrototypeOf2.default)(CardDrawer)).call.apply(_ref, [this].concat(args))), _this), _this.state = { stateOpen: _this.props.open }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
}

@@ -103,6 +106,7 @@

collapsible = _props.collapsible,
open = _props.open,
children = _props.children,
disabled = _props.disabled,
hideArrow = _props.hideArrow;
var open = this.state.open;
var stateOpen = this.state.stateOpen;

@@ -113,3 +117,3 @@

return {
open: !prevState.open
stateOpen: !prevState.stateOpen
};

@@ -126,3 +130,3 @@ });

easing: 'ease',
open: open,
open: stateOpen,
handleTriggerClick: toggleDrawer,

@@ -134,3 +138,3 @@ contentInnerClassName: ContentInnerClassName,

_StyledTrigger2.default,
{ open: open, rounded: true, shadow: true, className: TriggerClassName },
{ open: stateOpen, rounded: true, shadow: true, className: TriggerClassName },
hideArrow ? _react2.default.createElement(

@@ -150,3 +154,3 @@ _container2.default,

_ChevronRow2.default,
{ open: open, center: 'xs' },
{ open: stateOpen, center: 'xs' },
_react2.default.createElement(_icon2.default, { arrowRight: true, size: 1.25 })

@@ -153,0 +157,0 @@ )

{
"name": "@hixme-ui/card-drawer",
"version": "1.15.3",
"version": "1.15.4",
"description": "hixme-ui CardDrawer component",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -41,8 +41,3 @@ import React, { Component } from 'react'

constructor(props) {
super(props)
this.state = {
open: props.open,
}
}
state = { stateOpen: this.props.open }

@@ -54,2 +49,3 @@ render() {

collapsible,
open,
children,

@@ -61,3 +57,3 @@ disabled,

const {
open,
stateOpen,
} = this.state

@@ -67,3 +63,3 @@

this.setState(prevState => ({
open: !prevState.open,
stateOpen: !prevState.stateOpen,
}))

@@ -77,3 +73,3 @@ }

easing='ease'
open={open}
open={stateOpen}
handleTriggerClick={toggleDrawer}

@@ -84,3 +80,3 @@ contentInnerClassName={ContentInnerClassName}

trigger={
<StyledTrigger open={open} rounded shadow className={TriggerClassName}>
<StyledTrigger open={stateOpen} rounded shadow className={TriggerClassName}>
{hideArrow ?

@@ -92,3 +88,3 @@ <Container flex noPadding alignCenter>

<Container flex noPadding flexGrow={1}>{cardHeader}</Container>
<ChevronRow open={open} center='xs'>
<ChevronRow open={stateOpen} center='xs'>
<Icon arrowRight size={1.25} />

@@ -95,0 +91,0 @@ </ChevronRow>

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