UNPKG

@trail-ui/react

Version:
94 lines (92 loc) 2.17 kB
"use strict"; 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/drawer/drawer-transition.ts var drawer_transition_exports = {}; __export(drawer_transition_exports, { fadeInOut: () => fadeInOut, slideHorizontal: () => slideHorizontal, slideVertical: () => slideVertical }); module.exports = __toCommonJS(drawer_transition_exports); var slideHorizontal = { enter: { x: "var(--slide-enter)", opacity: 1, transition: { opacity: { duration: 0.4, ease: [0.36, 0.66, 0.4, 1] }, x: { type: "spring", bounce: 0, duration: 0.6 } } }, exit: { x: "var(--slide-exit)", opacity: 0, transition: { duration: 0.4, ease: [0.36, 0.66, 0.4, 1] } } }; var slideVertical = { enter: { y: "var(--slide-enter)", transition: { y: { type: "spring", bounce: 0, duration: 0.6 } } }, exit: { y: "var(--slide-exit)", 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, slideHorizontal, slideVertical });