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

react-transitions-library

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-transitions-library - npm Package Compare versions

Comparing version 1.9.5 to 1.9.6

18

dist/transitions/transition/Transition.js

@@ -28,3 +28,3 @@ var __assign = (this && this.__assign) || function () {

var Transition = forwardRef(function (_a, outsideRef) {
var children = _a.children, defaultStyle = _a.defaultStyle, transitionStyle = _a.transitionStyle, className = _a.className, as = _a.as, style = _a.style, addEndListener = _a.addEndListener, props = __rest(_a, ["children", "defaultStyle", "transitionStyle", "className", "as", "style", "addEndListener"]);
var children = _a.children, defaultStyle = _a.defaultStyle, transitionStyle = _a.transitionStyle, className = _a.className, as = _a.as, style = _a.style, props = __rest(_a, ["children", "defaultStyle", "transitionStyle", "className", "as", "style"]);
var _b = useState(false), _in = _b[0], _setIn = _b[1];

@@ -38,3 +38,4 @@ var timeoutRef = useRef();

timeoutRef.current = setTimeout(function () {
//@ts-ignore
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
_setIn(props.in);

@@ -50,14 +51,7 @@ }, 5);

}, [nodeRef, outsideRef]);
return (_jsx(RTGTransition, __assign({}, props, { in: _in, nodeRef: nodeRef, addEndListener: function (done) {
if (addEndListener) {
addEndListener(nodeRef.current, done);
}
} }, { children: function (transitionStatus) {
return createElement(as || "div", {
style: __assign(__assign(__assign({}, style), defaultStyle), transitionStyle[transitionStatus]),
className: className,
ref: nodeRef,
}, children);
return (_jsx(RTGTransition, __assign({}, props, { in: _in, nodeRef: nodeRef }, { children: function (transitionStatus, childProps) {
return createElement(as || "div", __assign(__assign({}, childProps), { style: __assign(__assign(__assign({}, style), defaultStyle), transitionStyle[transitionStatus]), className: className, ref: nodeRef }), children);
} }), void 0));
});
Transition.displayName = "Transition";
export { Transition };

@@ -24,3 +24,3 @@ var __assign = (this && this.__assign) || function () {

import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef, useMemo, } from "react";
import { forwardRef, useMemo } from "react";
import { Transition } from "../transition/Transition";

@@ -31,2 +31,3 @@ import { useCSSStyle } from "../../hooks/use-css-style";

var children = _a.children, _b = _a.delay, delay = _b === void 0 ? 0 : _b, _c = _a.ease, ease = _c === void 0 ? Ease.ease : _c, _d = _a.transformOrigin, transformOrigin = _d === void 0 ? "center" : _d, from = _a.from, to = _a.to, timeout = _a.timeout, props = __rest(_a, ["children", "delay", "ease", "transformOrigin", "from", "to", "timeout"]);
console.log(transformOrigin);
var defaultStyle = useCSSStyle({

@@ -51,2 +52,3 @@ transformOrigin: transformOrigin,

}); }, [from, to]);
console.log("zoom: ", props);
return (_jsx(Transition, __assign({}, props, { ref: outsideRef, timeout: timeout, defaultStyle: defaultStyle, transitionStyle: transitionStyle, className: "ZoomInTransition" }, { children: children }), void 0));

@@ -53,0 +55,0 @@ });

{
"name": "react-transitions-library",
"version": "1.9.5",
"version": "1.9.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A react component library for animations.",

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 too big to display

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