@licklist/design 0.78.7-stage.11 → 0.78.7-stage.12
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAIlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAOzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAIlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAOzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,4CAoNtB,CAAA"}
|
|
@@ -324,25 +324,22 @@ var RyftPaymentForm = function(param) {
|
|
|
324
324
|
var formBox = document.getElementById('form-disable-box');
|
|
325
325
|
var cardContainer = document.getElementById('ryft-pay-iframe');
|
|
326
326
|
var googleButton = document.getElementById('gpay-button-online-api-id');
|
|
327
|
+
var appleButton = document.getElementById('ryft-pay-apple-pay-button');
|
|
327
328
|
if (cardContainer) {
|
|
328
|
-
|
|
329
|
-
cardContainer.
|
|
330
|
-
cardContainer.ariaDisabled = (_Boolean = Boolean(!payButtonDisabled)) === null || _Boolean === void 0 ? void 0 : _Boolean.toString();
|
|
329
|
+
cardContainer.style.opacity = payButtonDisabled ? '0.6' : '1';
|
|
330
|
+
cardContainer.setAttribute('aria-disabled', payButtonDisabled.toString());
|
|
331
331
|
}
|
|
332
|
-
var appleButton = document.getElementById('ryft-pay-apple-pay-button');
|
|
333
332
|
if (googleButton) {
|
|
334
|
-
googleButton.disabled =
|
|
335
|
-
googleButton.style.opacity =
|
|
333
|
+
googleButton.disabled = payButtonDisabled;
|
|
334
|
+
googleButton.style.opacity = payButtonDisabled ? '0.6' : '1';
|
|
336
335
|
}
|
|
337
336
|
if (appleButton) {
|
|
338
|
-
appleButton.disabled =
|
|
339
|
-
appleButton.style.opacity = payButtonDisabled ? '
|
|
337
|
+
appleButton.disabled = payButtonDisabled;
|
|
338
|
+
appleButton.style.opacity = payButtonDisabled ? '0.6' : '1';
|
|
340
339
|
}
|
|
341
340
|
if (formBox) {
|
|
342
341
|
formBox.style.display = payButtonDisabled ? 'block' : 'none';
|
|
343
342
|
}
|
|
344
|
-
var applePayButton = document.createElement('button');
|
|
345
|
-
applePayButton.style.opacity = payButtonDisabled ? '1' : '0.6';
|
|
346
343
|
}, [
|
|
347
344
|
payButtonDisabled
|
|
348
345
|
]);
|
package/package.json
CHANGED
|
@@ -166,29 +166,30 @@ export const RyftPaymentForm = ({
|
|
|
166
166
|
|
|
167
167
|
const googleButton = document.getElementById(
|
|
168
168
|
'gpay-button-online-api-id',
|
|
169
|
-
) as HTMLButtonElement
|
|
169
|
+
) as HTMLButtonElement | null
|
|
170
|
+
|
|
171
|
+
const appleButton = document.getElementById(
|
|
172
|
+
'ryft-pay-apple-pay-button',
|
|
173
|
+
) as HTMLButtonElement | null
|
|
170
174
|
|
|
171
175
|
if (cardContainer) {
|
|
172
|
-
cardContainer.style.opacity =
|
|
173
|
-
cardContainer.
|
|
176
|
+
cardContainer.style.opacity = payButtonDisabled ? '0.6' : '1'
|
|
177
|
+
cardContainer.setAttribute('aria-disabled', payButtonDisabled.toString())
|
|
174
178
|
}
|
|
175
179
|
|
|
176
|
-
const appleButton = document.getElementById(
|
|
177
|
-
'ryft-pay-apple-pay-button',
|
|
178
|
-
) as HTMLButtonElement
|
|
179
180
|
if (googleButton) {
|
|
180
|
-
googleButton.disabled =
|
|
181
|
-
googleButton.style.opacity =
|
|
181
|
+
googleButton.disabled = payButtonDisabled
|
|
182
|
+
googleButton.style.opacity = payButtonDisabled ? '0.6' : '1'
|
|
182
183
|
}
|
|
184
|
+
|
|
183
185
|
if (appleButton) {
|
|
184
|
-
appleButton.disabled =
|
|
185
|
-
appleButton.style.opacity = payButtonDisabled ? '
|
|
186
|
+
appleButton.disabled = payButtonDisabled
|
|
187
|
+
appleButton.style.opacity = payButtonDisabled ? '0.6' : '1'
|
|
186
188
|
}
|
|
189
|
+
|
|
187
190
|
if (formBox) {
|
|
188
191
|
formBox.style.display = payButtonDisabled ? 'block' : 'none'
|
|
189
192
|
}
|
|
190
|
-
const applePayButton = document.createElement('button')
|
|
191
|
-
applePayButton.style.opacity = payButtonDisabled ? '1' : '0.6'
|
|
192
193
|
}, [payButtonDisabled])
|
|
193
194
|
|
|
194
195
|
useEffect(() => {
|