paymob-pixel-alpha 1.1.2 → 1.1.3
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.
- package/main.js +11 -6
- package/package.json +1 -1
- package/styles.css +5 -0
package/main.js
CHANGED
|
@@ -20318,7 +20318,8 @@ function CardElement({
|
|
|
20318
20318
|
},
|
|
20319
20319
|
cancelButton: Object.assign({}, customStyle == null ? void 0 : customStyle.button, {
|
|
20320
20320
|
backgroundColor: '#fff',
|
|
20321
|
-
lineHeight: 'normal'
|
|
20321
|
+
lineHeight: 'normal',
|
|
20322
|
+
color: ''
|
|
20322
20323
|
}),
|
|
20323
20324
|
button: customStyle == null ? void 0 : customStyle.button,
|
|
20324
20325
|
label: customStyle == null ? void 0 : customStyle.label,
|
|
@@ -20349,7 +20350,7 @@ function CardElement({
|
|
|
20349
20350
|
})]
|
|
20350
20351
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
20351
20352
|
className: "[&>div:nth-child(even)]:w-[calc(100%-1px)]",
|
|
20352
|
-
children: [!isIframeLoaded && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
20353
|
+
children: [(!isIframeLoaded || !payment.token) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
20353
20354
|
className: "-mt-1",
|
|
20354
20355
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(dist_Skeleton, {
|
|
20355
20356
|
height: 37
|
|
@@ -20373,14 +20374,18 @@ function CardElement({
|
|
|
20373
20374
|
style: {
|
|
20374
20375
|
border: '0',
|
|
20375
20376
|
overflow: 'hidden',
|
|
20376
|
-
display: isIframeLoaded ? 'block' : 'none'
|
|
20377
|
+
display: isIframeLoaded && payment.token ? 'block' : 'none'
|
|
20377
20378
|
},
|
|
20378
20379
|
frameBorder: "0",
|
|
20379
20380
|
scrolling: "no",
|
|
20380
20381
|
width: "100%",
|
|
20381
20382
|
height: height,
|
|
20382
|
-
onLoad: () =>
|
|
20383
|
-
|
|
20383
|
+
onLoad: () => {
|
|
20384
|
+
setTimeout(() => {
|
|
20385
|
+
setIsIframeLoaded(true);
|
|
20386
|
+
}, 200);
|
|
20387
|
+
}
|
|
20388
|
+
}), isIframeLoaded && payment.token && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
20384
20389
|
children: [!hideCardHolderName && /*#__PURE__*/(0,jsx_runtime.jsx)(components_CardHolder_CardHolder, {
|
|
20385
20390
|
onChange: handleCardHolderChange,
|
|
20386
20391
|
focusToPrevInput: handleFocusToPrevInput,
|
|
@@ -27107,7 +27112,7 @@ function ApplePay(props) {
|
|
|
27107
27112
|
icon: apple_pay_namespaceObject,
|
|
27108
27113
|
fullWidth: true,
|
|
27109
27114
|
onClick: handleSubmit,
|
|
27110
|
-
className: `!mt-0 !p-0 ${discount.hasDiscount ? 'min-h-[2.875rem]' : ''}`,
|
|
27115
|
+
className: `!bg-black !mt-0 !p-0 ${discount.hasDiscount ? 'min-h-[2.875rem]' : ''}`,
|
|
27111
27116
|
customStyle: customStyle,
|
|
27112
27117
|
disabled: loading || isLoading,
|
|
27113
27118
|
loading: loading || isLoading
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -1698,6 +1698,11 @@ video {
|
|
|
1698
1698
|
border-top-color: rgb(255 21 82 / var(--tw-border-opacity));
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
+
.\!bg-black {
|
|
1702
|
+
--tw-bg-opacity: 1 !important;
|
|
1703
|
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity)) !important;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1701
1706
|
.bg-\[\#0002\] {
|
|
1702
1707
|
background-color: #0002;
|
|
1703
1708
|
}
|