@eml-payments/ui-kit 0.1.58 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,7 @@ export const UICreditCard = ({ cardholderName, cardNumber, frontImageUrl, backIm
|
|
|
10
10
|
setInternalFlipped(newState);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
return (_jsx("button", { className: "relative mx-auto group", style: { aspectRatio, width: '100%',
|
|
13
|
+
return (_jsx("button", { className: "relative mx-auto group", style: { aspectRatio, width: '100%', perspective: '500px' }, tabIndex: 0, onClick: handleClick, children: _jsxs("div", { className: `absolute w-full h-full transition-transform duration-700 ease-in-out top-0 ${classNames === null || classNames === void 0 ? void 0 : classNames.container}`, style: {
|
|
14
14
|
transformStyle: 'preserve-3d',
|
|
15
15
|
transform: flipped ? 'rotateY(180deg)' : 'rotateY(0deg)',
|
|
16
16
|
}, children: [_jsx("div", { className: `absolute w-full h-full rounded-(--uikit-radius) bg-cover bg-center text-white p-4 flex flex-col justify-between ${classNames === null || classNames === void 0 ? void 0 : classNames.front}`, style: {
|