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

@alfalab/core-components-backdrop

Package Overview
Dependencies
Maintainers
15
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alfalab/core-components-backdrop - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

46

Component.js
'use strict';
var tslib = require('tslib');
var React = require('react');

@@ -12,42 +13,3 @@ var reactTransitionGroup = require('react-transition-group');

/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var __assign = function () {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
var styles = {"backdrop":"backdrop__backdrop_bygag","appear":"backdrop__appear_bygag","enter":"backdrop__enter_bygag","appearActive":"backdrop__appearActive_bygag","enterActive":"backdrop__enterActive_bygag","appearDone":"backdrop__appearDone_bygag","enterDone":"backdrop__enterDone_bygag","exit":"backdrop__exit_bygag","exitActive":"backdrop__exitActive_bygag","exitDone":"backdrop__exitDone_bygag","invisible":"backdrop__invisible_bygag"};
var styles = {"backdrop":"backdrop__backdrop_1r99a","appear":"backdrop__appear_1r99a","enter":"backdrop__enter_1r99a","appearActive":"backdrop__appearActive_1r99a","enterActive":"backdrop__enterActive_1r99a","appearDone":"backdrop__appearDone_1r99a","enterDone":"backdrop__enterDone_1r99a","exit":"backdrop__exit_1r99a","exitActive":"backdrop__exitActive_1r99a","exitDone":"backdrop__exitDone_1r99a","invisible":"backdrop__invisible_1r99a"};
require('./index.css')

@@ -57,4 +19,4 @@

var _b;
var className = _a.className, _c = _a.open, open = _c === void 0 ? false : _c, _d = _a.invisible, invisible = _d === void 0 ? false : _d, _e = _a.timeout, timeout = _e === void 0 ? 200 : _e, children = _a.children, onClose = _a.onClose, dataTestId = _a.dataTestId, _f = _a.transitionClassNames, transitionClassNames = _f === void 0 ? styles : _f, restProps = __rest(_a, ["className", "open", "invisible", "timeout", "children", "onClose", "dataTestId", "transitionClassNames"]);
return (React__default.default.createElement(reactTransitionGroup.CSSTransition, __assign({ timeout: timeout, unmountOnExit: true, classNames: transitionClassNames, in: open, appear: true }, restProps),
var className = _a.className, _c = _a.open, open = _c === void 0 ? false : _c, _d = _a.invisible, invisible = _d === void 0 ? false : _d, _e = _a.timeout, timeout = _e === void 0 ? 200 : _e, children = _a.children, onClose = _a.onClose, dataTestId = _a.dataTestId, _f = _a.transitionClassNames, transitionClassNames = _f === void 0 ? styles : _f, restProps = tslib.__rest(_a, ["className", "open", "invisible", "timeout", "children", "onClose", "dataTestId", "transitionClassNames"]);
return (React__default.default.createElement(reactTransitionGroup.CSSTransition, tslib.__assign({ timeout: timeout, unmountOnExit: true, classNames: transitionClassNames, in: open, appear: true }, restProps),
React__default.default.createElement("div", { "aria-hidden": true, onClick: onClose, "data-test-id": dataTestId, className: cn__default.default(styles.backdrop, className, (_b = {},

@@ -61,0 +23,0 @@ _b[styles.invisible] = invisible,

'use strict';
var tslib = require('tslib');
var React = require('react');

@@ -14,45 +15,6 @@ var reactTransitionGroup = require('react-transition-group');

/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var __assign = function () {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
var Backdrop = function (_a) {
var _b;
var className = _a.className, _c = _a.open, open = _c === void 0 ? false : _c, _d = _a.invisible, invisible = _d === void 0 ? false : _d, _e = _a.timeout, timeout = _e === void 0 ? 200 : _e, children = _a.children, onClose = _a.onClose, dataTestId = _a.dataTestId, _f = _a.transitionClassNames, transitionClassNames = _f === void 0 ? styles__default.default : _f, restProps = __rest(_a, ["className", "open", "invisible", "timeout", "children", "onClose", "dataTestId", "transitionClassNames"]);
return (React__default.default.createElement(reactTransitionGroup.CSSTransition, __assign({ timeout: timeout, unmountOnExit: true, classNames: transitionClassNames, in: open, appear: true }, restProps),
var className = _a.className, _c = _a.open, open = _c === void 0 ? false : _c, _d = _a.invisible, invisible = _d === void 0 ? false : _d, _e = _a.timeout, timeout = _e === void 0 ? 200 : _e, children = _a.children, onClose = _a.onClose, dataTestId = _a.dataTestId, _f = _a.transitionClassNames, transitionClassNames = _f === void 0 ? styles__default.default : _f, restProps = tslib.__rest(_a, ["className", "open", "invisible", "timeout", "children", "onClose", "dataTestId", "transitionClassNames"]);
return (React__default.default.createElement(reactTransitionGroup.CSSTransition, tslib.__assign({ timeout: timeout, unmountOnExit: true, classNames: transitionClassNames, in: open, appear: true }, restProps),
React__default.default.createElement("div", { "aria-hidden": true, onClick: onClose, "data-test-id": dataTestId, className: cn__default.default(styles__default.default.backdrop, className, (_b = {},

@@ -59,0 +21,0 @@ _b[styles__default.default.invisible] = invisible,

1

cssm/index.js
'use strict';
var Component = require('./Component.js');
require('tslib');
require('react');

@@ -5,0 +6,0 @@ require('react-transition-group');

@@ -0,1 +1,2 @@

import { __rest, __assign } from 'tslib';
import React from 'react';

@@ -5,42 +6,3 @@ import { CSSTransition } from 'react-transition-group';

/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var __assign = function () {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
var styles = {"backdrop":"backdrop__backdrop_bygag","appear":"backdrop__appear_bygag","enter":"backdrop__enter_bygag","appearActive":"backdrop__appearActive_bygag","enterActive":"backdrop__enterActive_bygag","appearDone":"backdrop__appearDone_bygag","enterDone":"backdrop__enterDone_bygag","exit":"backdrop__exit_bygag","exitActive":"backdrop__exitActive_bygag","exitDone":"backdrop__exitDone_bygag","invisible":"backdrop__invisible_bygag"};
var styles = {"backdrop":"backdrop__backdrop_1r99a","appear":"backdrop__appear_1r99a","enter":"backdrop__enter_1r99a","appearActive":"backdrop__appearActive_1r99a","enterActive":"backdrop__enterActive_1r99a","appearDone":"backdrop__appearDone_1r99a","enterDone":"backdrop__enterDone_1r99a","exit":"backdrop__exit_1r99a","exitActive":"backdrop__exitActive_1r99a","exitDone":"backdrop__exitDone_1r99a","invisible":"backdrop__invisible_1r99a"};
require('./index.css')

@@ -47,0 +9,0 @@

export { Backdrop } from './Component.js';
import 'tslib';
import 'react';
import 'react-transition-group';
import 'classnames';
'use strict';
var Component = require('./Component.js');
require('tslib');
require('react');

@@ -5,0 +6,0 @@ require('react-transition-group');

@@ -5,3 +5,3 @@ import React from 'react';

const styles = {"backdrop":"backdrop__backdrop_bygag","appear":"backdrop__appear_bygag","enter":"backdrop__enter_bygag","appearActive":"backdrop__appearActive_bygag","enterActive":"backdrop__enterActive_bygag","appearDone":"backdrop__appearDone_bygag","enterDone":"backdrop__enterDone_bygag","exit":"backdrop__exit_bygag","exitActive":"backdrop__exitActive_bygag","exitDone":"backdrop__exitDone_bygag","invisible":"backdrop__invisible_bygag"};
const styles = {"backdrop":"backdrop__backdrop_1r99a","appear":"backdrop__appear_1r99a","enter":"backdrop__enter_1r99a","appearActive":"backdrop__appearActive_1r99a","enterActive":"backdrop__enterActive_1r99a","appearDone":"backdrop__appearDone_1r99a","enterDone":"backdrop__enterDone_1r99a","exit":"backdrop__exit_1r99a","exitActive":"backdrop__exitActive_1r99a","exitDone":"backdrop__exitDone_1r99a","invisible":"backdrop__invisible_1r99a"};
require('./index.css')

@@ -8,0 +8,0 @@

{
"name": "@alfalab/core-components-backdrop",
"version": "3.0.3",
"version": "3.0.4",
"description": "Backdrop component",

@@ -18,3 +18,4 @@ "keywords": [],

"classnames": "^2.3.1",
"react-transition-group": "^4.4.5"
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0"
},

@@ -21,0 +22,0 @@ "devDependencies": {

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