@seaverse/payment-sdk 0.9.7 → 0.9.8
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/dist/index.browser.js +11 -10
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -1885,6 +1885,9 @@ class PaymentModal {
|
|
|
1885
1885
|
onClose: options.onClose ?? (() => { }),
|
|
1886
1886
|
className: options.className ?? '',
|
|
1887
1887
|
maxWidth: options.maxWidth ?? '480px',
|
|
1888
|
+
background: options.background ?? '#ffffff',
|
|
1889
|
+
border: options.border ?? '1px solid rgba(0, 0, 0, 0.1)',
|
|
1890
|
+
borderRadius: options.borderRadius ?? '16px',
|
|
1888
1891
|
};
|
|
1889
1892
|
}
|
|
1890
1893
|
/**
|
|
@@ -2011,9 +2014,9 @@ class PaymentModal {
|
|
|
2011
2014
|
width: 100%;
|
|
2012
2015
|
max-width: ${this.options.maxWidth};
|
|
2013
2016
|
overflow-y: auto;
|
|
2014
|
-
border-radius:
|
|
2015
|
-
border:
|
|
2016
|
-
background:
|
|
2017
|
+
border-radius: ${this.options.borderRadius};
|
|
2018
|
+
border: ${this.options.border};
|
|
2019
|
+
background: ${this.options.background};
|
|
2017
2020
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
2018
2021
|
transform: translateY(20px);
|
|
2019
2022
|
opacity: 0;
|
|
@@ -8304,6 +8307,9 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8304
8307
|
closeOnOverlayClick: false, // Disable click overlay to close
|
|
8305
8308
|
closeOnEsc: false, // Disable ESC key to close
|
|
8306
8309
|
maxWidth: '1200px',
|
|
8310
|
+
background: '#0a0a0f',
|
|
8311
|
+
border: '1px solid rgba(255, 255, 255, 0.1)',
|
|
8312
|
+
borderRadius: '24px',
|
|
8307
8313
|
onClose: () => {
|
|
8308
8314
|
this.cleanup();
|
|
8309
8315
|
this.options.onClose?.();
|
|
@@ -8475,13 +8481,8 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8475
8481
|
* Apply modal styling (hook method override)
|
|
8476
8482
|
*/
|
|
8477
8483
|
applyModalStyling() {
|
|
8478
|
-
//
|
|
8479
|
-
|
|
8480
|
-
if (modalElement) {
|
|
8481
|
-
modalElement.style.background = '#0a0a0f';
|
|
8482
|
-
modalElement.style.border = '1px solid rgba(255, 255, 255, 0.1)';
|
|
8483
|
-
modalElement.style.borderRadius = '24px';
|
|
8484
|
-
}
|
|
8484
|
+
// Modal background, border, and borderRadius are now configured
|
|
8485
|
+
// via PaymentModal constructor options in createModal()
|
|
8485
8486
|
// Modify title style
|
|
8486
8487
|
const titleElement = document.querySelector('.payment-modal-title');
|
|
8487
8488
|
if (titleElement) {
|