react-nomba-checkout-sdk 2.0.0 → 2.0.2
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.esm.js +2 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NombaCheckoutModal.tsx +4 -0
package/dist/index.js
CHANGED
|
@@ -4142,7 +4142,7 @@ var NombaCheckoutModal = /** @class */ (function (_super) {
|
|
|
4142
4142
|
React.createElement(Loader, null))),
|
|
4143
4143
|
React.createElement("button", { style: modalStyles.closeButton, onClick: this.handleClose },
|
|
4144
4144
|
React.createElement(CloseIcon, null)),
|
|
4145
|
-
React.createElement("iframe", { src: "https://checkout.nomba.com/".concat(this.state.environment === 'sandbox' ? 'sandbox' : 'pay', "/").concat(orderId), allow: 'clipboard-write clipboard-read', width: '100%', height: '80vh', style: modalStyles.iframe, title: 'Nomba checkout', onLoad: this.handleIframeLoad, id: 'checkout-sdk-iframe' })))));
|
|
4145
|
+
React.createElement("iframe", { src: "https://checkout.nomba.com/".concat(this.state.environment === 'sandbox' ? 'sandbox' : 'pay', "/").concat(orderId), allow: 'clipboard-write clipboard-read', width: '100%', height: '80vh', style: modalStyles.iframe, title: 'Nomba checkout', onLoad: this.handleIframeLoad, id: 'checkout-sdk-iframe', name: 'react-sdk' })))));
|
|
4146
4146
|
};
|
|
4147
4147
|
return NombaCheckoutModal;
|
|
4148
4148
|
}(React.Component));
|
|
@@ -4159,16 +4159,7 @@ var modalStyles = {
|
|
|
4159
4159
|
alignItems: 'center',
|
|
4160
4160
|
zIndex: 9999,
|
|
4161
4161
|
},
|
|
4162
|
-
modal: {
|
|
4163
|
-
backgroundColor: 'white',
|
|
4164
|
-
width: '100%',
|
|
4165
|
-
maxWidth: '60vw',
|
|
4166
|
-
borderRadius: '8px',
|
|
4167
|
-
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',
|
|
4168
|
-
position: 'relative',
|
|
4169
|
-
height: '600px',
|
|
4170
|
-
maxHeight: '95vh',
|
|
4171
|
-
},
|
|
4162
|
+
modal: __assign({ backgroundColor: 'white', width: '100%', maxWidth: '60vw', borderRadius: '8px', boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)', position: 'relative', height: '600px', maxHeight: '95vh' }, (window.innerWidth <= 768 ? { width: '98vw', maxWidth: '98vw' } : {})),
|
|
4172
4163
|
header: {
|
|
4173
4164
|
position: 'relative',
|
|
4174
4165
|
display: 'flex',
|