From 1f879e147be02bec5db96044be3f35156ae1f9ee Mon Sep 17 00:00:00 2001 From: Olcay Karabacak Date: Fri, 5 Jan 2024 00:24:26 +0300 Subject: [PATCH] formatted --- components/doc/dialog/headlessdoc.js | 7 +- components/lib/passthrough/tailwind/index.js | 108 +++++++++---------- 2 files changed, 55 insertions(+), 60 deletions(-) diff --git a/components/doc/dialog/headlessdoc.js b/components/doc/dialog/headlessdoc.js index d3cda14ddb..126934be0c 100644 --- a/components/doc/dialog/headlessdoc.js +++ b/components/doc/dialog/headlessdoc.js @@ -170,12 +170,7 @@ export default function HeadlessDemo() { - + diff --git a/components/lib/passthrough/tailwind/index.js b/components/lib/passthrough/tailwind/index.js index f4e6e2fdbb..55b56e98d8 100644 --- a/components/lib/passthrough/tailwind/index.js +++ b/components/lib/passthrough/tailwind/index.js @@ -341,32 +341,32 @@ const Tailwind = { exitActive: '!opacity-0 !scale-75 translate-x-0 -translate-y-full translate-z-0' } : props.position === 'bottom' - ? { - enter: 'opacity-0 scale-75 translate-y-full', - enterActive: '!opacity-100 !scale-100 !translate-y-0 transition-all duration-200 ease-out', - exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', - exitActive: '!opacity-0 !scale-75 translate-x-0 translate-y-full translate-z-0' - } - : props.position === 'left' || props.position === 'top-left' || props.position === 'bottom-left' - ? { - enter: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0', - enterActive: '!opacity-100 !scale-100 !translate-x-0 transition-all duration-200 ease-out', - exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', - exitActive: '!opacity-0 !scale-75 -translate-x-full translate-y-0 translate-z-0' - } - : props.position === 'right' || props.position === 'top-right' || props.position === 'bottom-right' - ? { - enter: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0', - enterActive: '!opacity-100 !scale-100 !translate-x-0 transition-all duration-200 ease-out', - exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', - exitActive: '!opacity-0 !scale-75 translate-x-full translate-y-0 translate-z-0' - } - : { - enter: 'opacity-0 scale-75', - enterActive: '!opacity-100 !scale-100 transition-all duration-200 ease-out', - exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', - exitActive: '!opacity-0 !scale-75' - } + ? { + enter: 'opacity-0 scale-75 translate-y-full', + enterActive: '!opacity-100 !scale-100 !translate-y-0 transition-all duration-200 ease-out', + exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', + exitActive: '!opacity-0 !scale-75 translate-x-0 translate-y-full translate-z-0' + } + : props.position === 'left' || props.position === 'top-left' || props.position === 'bottom-left' + ? { + enter: 'opacity-0 scale-75 -translate-x-full translate-y-0 translate-z-0', + enterActive: '!opacity-100 !scale-100 !translate-x-0 transition-all duration-200 ease-out', + exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', + exitActive: '!opacity-0 !scale-75 -translate-x-full translate-y-0 translate-z-0' + } + : props.position === 'right' || props.position === 'top-right' || props.position === 'bottom-right' + ? { + enter: 'opacity-0 scale-75 translate-x-full translate-y-0 translate-z-0', + enterActive: '!opacity-100 !scale-100 !translate-x-0 transition-all duration-200 ease-out', + exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', + exitActive: '!opacity-0 !scale-75 translate-x-full translate-y-0 translate-z-0' + } + : { + enter: 'opacity-0 scale-75', + enterActive: '!opacity-100 !scale-100 transition-all duration-200 ease-out', + exit: 'opacity-100 scale-100 transition-all duration-200 ease-out', + exitActive: '!opacity-0 !scale-75' + } }; } }, @@ -442,34 +442,34 @@ const Tailwind = { exitActive: '!opacity-0' } : props.position === 'top' - ? { - enter: 'translate-x-0 -translate-y-full translate-z-0', - enterActive: '!translate-y-0 transition-transform duration-300', - exit: 'translate-y-0 transition-transform duration-300', - exitActive: 'translate-x-0 !-translate-y-full translate-z-0' - } - : props.position === 'bottom' - ? { - enter: 'translate-x-0 translate-y-full translate-z-0', - enterActive: '!translate-y-0 transition-transform duration-300', - exit: 'translate-y-0 transition-transform duration-300', - exitActive: 'translate-x-0 !translate-y-full translate-z-0' - } - : props.position === 'left' - ? { - enter: '-translate-x-full translate-y-0 translate-z-0', - enterActive: '!translate-x-0 transition-transform duration-300', - exit: 'translate-x-0 transition-transform duration-300', - exitActive: '!-translate-x-full translate-y-0 translate-z-0' - } - : props.position === 'right' - ? { - enter: 'translate-x-full translate-y-0 translate-z-0', - enterActive: '!translate-x-0 transition-transform duration-300', - exit: 'translate-x-0 transition-transform duration-300', - exitActive: '!translate-x-full translate-y-0 translate-z-0' - } - : undefined + ? { + enter: 'translate-x-0 -translate-y-full translate-z-0', + enterActive: '!translate-y-0 transition-transform duration-300', + exit: 'translate-y-0 transition-transform duration-300', + exitActive: 'translate-x-0 !-translate-y-full translate-z-0' + } + : props.position === 'bottom' + ? { + enter: 'translate-x-0 translate-y-full translate-z-0', + enterActive: '!translate-y-0 transition-transform duration-300', + exit: 'translate-y-0 transition-transform duration-300', + exitActive: 'translate-x-0 !translate-y-full translate-z-0' + } + : props.position === 'left' + ? { + enter: '-translate-x-full translate-y-0 translate-z-0', + enterActive: '!translate-x-0 transition-transform duration-300', + exit: 'translate-x-0 transition-transform duration-300', + exitActive: '!-translate-x-full translate-y-0 translate-z-0' + } + : props.position === 'right' + ? { + enter: 'translate-x-full translate-y-0 translate-z-0', + enterActive: '!translate-x-0 transition-transform duration-300', + exit: 'translate-x-0 transition-transform duration-300', + exitActive: '!translate-x-full translate-y-0 translate-z-0' + } + : undefined }; } },