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

rc-trigger

Package Overview
Dependencies
Maintainers
5
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-trigger - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

20

es/Popup/useStretchStyle.js

@@ -24,13 +24,15 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

if (stretch) {
// Stretch with target
if (stretch.indexOf('height') !== -1) {
sizeStyle.height = targetSize.height;
} else if (stretch.indexOf('minHeight') !== -1) {
sizeStyle.minHeight = targetSize.height;
var width = targetSize.width,
height = targetSize.height; // Stretch with target
if (stretch.indexOf('height') !== -1 && height) {
sizeStyle.height = height;
} else if (stretch.indexOf('minHeight') !== -1 && height) {
sizeStyle.minHeight = height;
}
if (stretch.indexOf('width') !== -1) {
sizeStyle.width = targetSize.width;
} else if (stretch.indexOf('minWidth') !== -1) {
sizeStyle.minWidth = targetSize.width;
if (stretch.indexOf('width') !== -1 && width) {
sizeStyle.width = width;
} else if (stretch.indexOf('minWidth') !== -1 && width) {
sizeStyle.minWidth = width;
}

@@ -37,0 +39,0 @@ }

@@ -35,13 +35,15 @@ "use strict";

if (stretch) {
// Stretch with target
if (stretch.indexOf('height') !== -1) {
sizeStyle.height = targetSize.height;
} else if (stretch.indexOf('minHeight') !== -1) {
sizeStyle.minHeight = targetSize.height;
var width = targetSize.width,
height = targetSize.height; // Stretch with target
if (stretch.indexOf('height') !== -1 && height) {
sizeStyle.height = height;
} else if (stretch.indexOf('minHeight') !== -1 && height) {
sizeStyle.minHeight = height;
}
if (stretch.indexOf('width') !== -1) {
sizeStyle.width = targetSize.width;
} else if (stretch.indexOf('minWidth') !== -1) {
sizeStyle.minWidth = targetSize.width;
if (stretch.indexOf('width') !== -1 && width) {
sizeStyle.width = width;
} else if (stretch.indexOf('minWidth') !== -1 && width) {
sizeStyle.minWidth = width;
}

@@ -48,0 +50,0 @@ }

{
"name": "rc-trigger",
"version": "5.0.2",
"version": "5.0.3",
"description": "base abstract trigger component for react",

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

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