@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 1.14 kB
Source Map (JSON)
{"version":3,"file":"constants.mjs","names":[],"sources":["../../../src/base-ui/Modal/constants.ts"],"sourcesContent":["import type { MotionProps } from 'motion/react';\n\ntype CubicBezier = [number, number, number, number];\n\nconst softEase: CubicBezier = [0.32, 0.72, 0, 1];\nconst exitEase: CubicBezier = [0.4, 0, 1, 1];\n\nconst initialStyle = { opacity: 0, scale: 0.97 };\nconst enterStyle = { opacity: 1, scale: 1 };\nconst exitStyle = { opacity: 0, scale: 0.98 };\n\nexport const modalMotionConfig: MotionProps = {\n animate: enterStyle,\n exit: {\n ...exitStyle,\n transition: { duration: 0.12, ease: exitEase },\n },\n initial: initialStyle,\n transition: {\n duration: 0.22,\n ease: softEase,\n },\n};\n\nexport const backdropTransition = {\n duration: 0.18,\n ease: softEase,\n};\n"],"mappings":";AAIA,MAAM,WAAwB;CAAC;CAAM;CAAM;CAAG;CAAE;AAOhD,MAAa,oBAAiC;CAC5C,SAAS;EAJU,SAAS;EAAG,OAAO;EAI7B;CACT,MAAM;EAJY,SAAS;EAAG,OAAO;EAMnC,YAAY;GAAE,UAAU;GAAM,MAAM;IAVT;IAAK;IAAG;IAAG;IAUF;GAAU;EAC/C;CACD,SAAS;EAVY,SAAS;EAAG,OAAO;EAU/B;CACT,YAAY;EACV,UAAU;EACV,MAAM;EACP;CACF;AAED,MAAa,qBAAqB;CAChC,UAAU;CACV,MAAM;CACP"}