@trail-ui/react
Version:
79 lines (77 loc) • 1.94 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/modal/modal-transition.ts
var modal_transition_exports = {};
__export(modal_transition_exports, {
fadeInOut: () => fadeInOut,
scaleInOut: () => scaleInOut
});
module.exports = __toCommonJS(modal_transition_exports);
var scaleInOut = {
enter: {
scale: "var(--scale-enter)",
y: "var(--slide-enter))",
opacity: 1,
transition: {
scale: {
duration: 0.4,
ease: [0.36, 0.66, 0.4, 1]
},
opacity: {
duration: 0.4,
ease: [0.36, 0.66, 0.4, 1]
},
y: {
type: "spring",
bounce: 0,
duration: 0.6
}
}
},
exit: {
scale: "var(--scale-exit)",
y: "var(--slide-exit)",
opacity: 0,
transition: {
duration: 0.4,
ease: [0.36, 0.66, 0.4, 1]
}
}
};
var fadeInOut = {
enter: {
opacity: 1,
transition: {
duration: 0.4,
ease: [0.36, 0.66, 0.4, 1]
}
},
exit: {
opacity: 0,
transition: {
duration: 0.3,
ease: [0.36, 0.66, 0.4, 1]
}
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
fadeInOut,
scaleInOut
});