@depay/widgets 7.14.0 → 7.14.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/README.md +45 -7
- package/dist/esm/index.bundle.js +19 -27
- package/dist/esm/index.js +16 -9
- package/dist/umd/index.bundle.js +19 -27
- package/dist/umd/index.js +16 -9
- package/package.json +2 -2
package/dist/umd/index.js
CHANGED
|
@@ -1318,7 +1318,7 @@
|
|
|
1318
1318
|
});
|
|
1319
1319
|
|
|
1320
1320
|
var DialogStyle = (function (style) {
|
|
1321
|
-
return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .contained .ReactDialog {\n position: absolute;\n height: 100%;\n min-height: 100%;\n width: 100%;\n min-width: 100%;\n }\n\n .contained .ReactDialogBackground {\n position: absolute;\n }\n\n .contained .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n top: 0;\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.
|
|
1321
|
+
return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .contained .ReactDialog {\n position: absolute;\n height: 100%;\n min-height: 100%;\n width: 100%;\n min-width: 100%;\n }\n\n .contained .ReactDialogBackground {\n position: absolute;\n }\n\n .contained .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n top: 0;\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.2);\n border-radius: 13px;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 13px;\n border-top-radius: 13px;\n display: flex;\n flex-direction: column;\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n border-top-left-radius: 13px;\n border-top-right-radius: 13px;\n min-height: 54px;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 48px;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 48px;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 13px;\n border-bottom-right-radius: 13px;\n line-height: 24px;\n min-height: 32px;\n position: relative;\n text-align: center;\n }\n\n ";
|
|
1322
1322
|
});
|
|
1323
1323
|
|
|
1324
1324
|
var FontStyle = (function (style) {
|
|
@@ -1362,7 +1362,7 @@
|
|
|
1362
1362
|
});
|
|
1363
1363
|
|
|
1364
1364
|
var PoweredByStyle = (function (style) {
|
|
1365
|
-
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 3px;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .contained .PoweredByWrapper {\n position: absolute;\n }\n\n .PoweredByLink {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n
|
|
1365
|
+
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 3px;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .contained .PoweredByWrapper {\n position: absolute;\n }\n\n .PoweredByLink {\n color: white;\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n font-size: 14px;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 8px;\n opacity: 0.5;\n text-decoration: none;\n text-shadow: black 0 0 2px;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n }\n ";
|
|
1366
1366
|
});
|
|
1367
1367
|
|
|
1368
1368
|
var RangeSliderStyle = (function (style) {
|
|
@@ -1406,16 +1406,18 @@
|
|
|
1406
1406
|
});
|
|
1407
1407
|
|
|
1408
1408
|
var styleRenderer = (function (style) {
|
|
1409
|
-
|
|
1410
|
-
|
|
1409
|
+
var _style, _style2;
|
|
1410
|
+
|
|
1411
|
+
style = {
|
|
1412
|
+
colors: Object.assign({
|
|
1411
1413
|
primary: '#ea357a',
|
|
1412
1414
|
buttonText: '#ffffff',
|
|
1413
1415
|
icons: '#000000',
|
|
1414
1416
|
text: '#212529'
|
|
1415
|
-
},
|
|
1416
|
-
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
1417
|
-
}
|
|
1418
|
-
return [ResetStyle(), DialogStyle(), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(
|
|
1417
|
+
}, ((_style = style) === null || _style === void 0 ? void 0 : _style.colors) || {}),
|
|
1418
|
+
fontFamily: ((_style2 = style) === null || _style2 === void 0 ? void 0 : _style2.fontFamily) || '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
1419
|
+
};
|
|
1420
|
+
return [ResetStyle(), DialogStyle(), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(), TextButtonStyle(style), ImageStyle(), BlockchainLogoStyle(), SearchStyle(style), TokenImageStyle(), AlertStyle(), TableStyle(), LinkStyle(style), TooltipStyle(style)].join('');
|
|
1419
1421
|
});
|
|
1420
1422
|
|
|
1421
1423
|
var mount = (function (_ref, content) {
|
|
@@ -1653,7 +1655,12 @@
|
|
|
1653
1655
|
focusToFixed = parseFloat(_float).toFixed(1).replace('.', '');
|
|
1654
1656
|
}
|
|
1655
1657
|
|
|
1656
|
-
if (focusToFixed
|
|
1658
|
+
if (focusToFixed == '099' && parseInt(inputAsFloat.toFixed(0)) == 0) {
|
|
1659
|
+
focusToFixed = direction == 'up' ? '100' : '990';
|
|
1660
|
+
return parseFloat(digitsAfterDecimal.replace(/\d{3}$/, focusToFixed));
|
|
1661
|
+
} else if (focusToFixed == '100' && parseInt(inputAsFloat.toFixed(0)) == 0) {
|
|
1662
|
+
return parseFloat(digitsAfterDecimal.replace(/\d{4}$/, focusToFixed));
|
|
1663
|
+
} else if (focusToFixed.toString()[0] != "0" && focusToFixed.toString().length > 2) {
|
|
1657
1664
|
return parseInt(inputAsFloat.toFixed(0));
|
|
1658
1665
|
} else {
|
|
1659
1666
|
return parseFloat(digitsAfterDecimal.replace(/\d{3}$/, focusToFixed));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "7.14.
|
|
4
|
+
"version": "7.14.3",
|
|
5
5
|
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
|
|
6
6
|
"main": "./dist/umd/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@depay/web3-exchanges": "^9.2.0",
|
|
47
47
|
"@depay/web3-payments": "^10.6.0",
|
|
48
48
|
"@depay/web3-tokens": "^8.2.0",
|
|
49
|
-
"@depay/web3-wallets": "^11.1.
|
|
49
|
+
"@depay/web3-wallets": "^11.1.1",
|
|
50
50
|
"decimal.js": "^10.3.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|