@rpg-engine/long-bow 0.8.157 → 0.8.158
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/long-bow.cjs.development.js +80 -45
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +80 -45
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +20 -19
- package/src/components/DCWallet/DCTransferPanel.tsx +18 -18
- package/src/components/DCWallet/DCWalletContent.tsx +138 -70
|
@@ -39290,7 +39290,7 @@ var FilterRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39290
39290
|
var FilterLabel = /*#__PURE__*/styled__default.p.withConfig({
|
|
39291
39291
|
displayName: "DCHistoryPanel__FilterLabel",
|
|
39292
39292
|
componentId: "sc-debjdj-2"
|
|
39293
|
-
})(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
|
|
39293
|
+
})(["margin:0 !important;font-size:0.7rem !important;color:#ccc !important;font-family:'Press Start 2P',cursive !important;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
|
|
39294
39294
|
var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
39295
39295
|
displayName: "DCHistoryPanel__StyledDropdown",
|
|
39296
39296
|
componentId: "sc-debjdj-3"
|
|
@@ -39314,23 +39314,23 @@ var TxRight = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39314
39314
|
var TxType = /*#__PURE__*/styled__default.span.withConfig({
|
|
39315
39315
|
displayName: "DCHistoryPanel__TxType",
|
|
39316
39316
|
componentId: "sc-debjdj-8"
|
|
39317
|
-
})(["font-size:
|
|
39317
|
+
})(["font-size:8px !important;font-family:'Press Start 2P',cursive !important;"]);
|
|
39318
39318
|
var TxAmount = /*#__PURE__*/styled__default.span.withConfig({
|
|
39319
39319
|
displayName: "DCHistoryPanel__TxAmount",
|
|
39320
39320
|
componentId: "sc-debjdj-9"
|
|
39321
|
-
})(["font-size:
|
|
39321
|
+
})(["font-size:9px !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;"]);
|
|
39322
39322
|
var TxNote = /*#__PURE__*/styled__default.span.withConfig({
|
|
39323
39323
|
displayName: "DCHistoryPanel__TxNote",
|
|
39324
39324
|
componentId: "sc-debjdj-10"
|
|
39325
|
-
})(["font-size:
|
|
39325
|
+
})(["font-size:7px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"], uiColors.lightGray);
|
|
39326
39326
|
var TxDate = /*#__PURE__*/styled__default.span.withConfig({
|
|
39327
39327
|
displayName: "DCHistoryPanel__TxDate",
|
|
39328
39328
|
componentId: "sc-debjdj-11"
|
|
39329
|
-
})(["font-size:
|
|
39329
|
+
})(["font-size:7px !important;color:rgba(255,255,255,0.4) !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;"]);
|
|
39330
39330
|
var LoadingRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
39331
39331
|
displayName: "DCHistoryPanel__LoadingRow",
|
|
39332
39332
|
componentId: "sc-debjdj-12"
|
|
39333
|
-
})(["display:flex;align-items:center;gap:8px;justify-content:center;padding:16px;color:", ";font-size:9px;font-family:'Press Start 2P',cursive;"], uiColors.white);
|
|
39333
|
+
})(["display:flex;align-items:center;gap:8px;justify-content:center;padding:16px;color:", " !important;font-size:9px !important;font-family:'Press Start 2P',cursive !important;"], uiColors.white);
|
|
39334
39334
|
var Spinner = /*#__PURE__*/styled__default.div.withConfig({
|
|
39335
39335
|
displayName: "DCHistoryPanel__Spinner",
|
|
39336
39336
|
componentId: "sc-debjdj-13"
|
|
@@ -39338,7 +39338,7 @@ var Spinner = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39338
39338
|
var EmptyMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
39339
39339
|
displayName: "DCHistoryPanel__EmptyMessage",
|
|
39340
39340
|
componentId: "sc-debjdj-14"
|
|
39341
|
-
})(["font-size:8px;color:", ";font-family:'Press Start 2P',cursive;text-align:center;padding:20px;"], uiColors.lightGray);
|
|
39341
|
+
})(["font-size:8px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;text-align:center;padding:20px;"], uiColors.lightGray);
|
|
39342
39342
|
|
|
39343
39343
|
// Global style to prevent body scrolling when modal is open
|
|
39344
39344
|
var GlobalStyle = /*#__PURE__*/styled.createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
|
|
@@ -39652,11 +39652,11 @@ var PanelContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39652
39652
|
var FieldLabel = /*#__PURE__*/styled__default.label.withConfig({
|
|
39653
39653
|
displayName: "DCTransferPanel__FieldLabel",
|
|
39654
39654
|
componentId: "sc-k1vvb1-1"
|
|
39655
|
-
})(["font-size:9px;color:#f59e0b;font-family:'Press Start 2P',cursive;margin-top:8px;"]);
|
|
39655
|
+
})(["font-size:9px !important;color:#f59e0b !important;font-family:'Press Start 2P',cursive !important;margin-top:8px;"]);
|
|
39656
39656
|
var StyledInput = /*#__PURE__*/styled__default(Input).withConfig({
|
|
39657
39657
|
displayName: "DCTransferPanel__StyledInput",
|
|
39658
39658
|
componentId: "sc-k1vvb1-2"
|
|
39659
|
-
})(["background:rgba(0,0,0,0.6);border:1px solid #f59e0b;color:", ";padding:6px 8px;font-size:
|
|
39659
|
+
})(["background:rgba(0,0,0,0.6) !important;border:1px solid #f59e0b !important;color:", " !important;padding:6px 8px !important;font-size:11px !important;font-family:'Press Start 2P',cursive !important;width:100% !important;box-sizing:border-box !important;&:disabled{opacity:0.5;}&:focus{outline:none;border-color:", " !important;}"], uiColors.white, uiColors.white);
|
|
39660
39660
|
var ButtonRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
39661
39661
|
displayName: "DCTransferPanel__ButtonRow",
|
|
39662
39662
|
componentId: "sc-k1vvb1-3"
|
|
@@ -39668,7 +39668,7 @@ var Spinner$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39668
39668
|
var ResultMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
39669
39669
|
displayName: "DCTransferPanel__ResultMessage",
|
|
39670
39670
|
componentId: "sc-k1vvb1-5"
|
|
39671
|
-
})(["margin-top:8px;padding:8px;font-size:9px;font-family:'Press Start 2P',cursive;color:", ";border:1px solid ", ";background:rgba(0,0,0,0.4);text-align:center;"], function (_ref2) {
|
|
39671
|
+
})(["margin-top:8px;padding:8px;font-size:9px !important;font-family:'Press Start 2P',cursive !important;color:", " !important;border:1px solid ", ";background:rgba(0,0,0,0.4);text-align:center;"], function (_ref2) {
|
|
39672
39672
|
var $success = _ref2.$success;
|
|
39673
39673
|
return $success ? uiColors.green : uiColors.red;
|
|
39674
39674
|
}, function (_ref3) {
|
|
@@ -39678,7 +39678,7 @@ var ResultMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39678
39678
|
var ErrorMessage = /*#__PURE__*/styled__default.div.withConfig({
|
|
39679
39679
|
displayName: "DCTransferPanel__ErrorMessage",
|
|
39680
39680
|
componentId: "sc-k1vvb1-6"
|
|
39681
|
-
})(["font-size:9px;color:", ";font-family:'Press Start 2P',cursive;"], uiColors.red);
|
|
39681
|
+
})(["font-size:9px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;"], uiColors.red);
|
|
39682
39682
|
var AutocompleteWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
39683
39683
|
displayName: "DCTransferPanel__AutocompleteWrapper",
|
|
39684
39684
|
componentId: "sc-k1vvb1-7"
|
|
@@ -39692,6 +39692,8 @@ var DropdownItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
|
39692
39692
|
componentId: "sc-k1vvb1-9"
|
|
39693
39693
|
})(["padding:6px 8px;font-size:11px;font-family:'Press Start 2P',cursive;color:", ";cursor:pointer;&:hover{background:rgba(245,158,11,0.3);}"], uiColors.white);
|
|
39694
39694
|
|
|
39695
|
+
var DC_TO_GOLD = 5500;
|
|
39696
|
+
var DC_TO_USD = 100;
|
|
39695
39697
|
var DCWalletContent = function DCWalletContent(_ref) {
|
|
39696
39698
|
var _historyData$transact, _historyData$totalPag, _historyData$currentP;
|
|
39697
39699
|
var dcBalance = _ref.dcBalance,
|
|
@@ -39708,17 +39710,9 @@ var DCWalletContent = function DCWalletContent(_ref) {
|
|
|
39708
39710
|
onBuyDC = _ref.onBuyDC,
|
|
39709
39711
|
onSearchCharacter = _ref.onSearchCharacter,
|
|
39710
39712
|
searchResults = _ref.searchResults;
|
|
39711
|
-
var
|
|
39712
|
-
|
|
39713
|
-
setActiveTab = _useState[1];
|
|
39713
|
+
var usdValue = (dcBalance / DC_TO_USD).toFixed(2);
|
|
39714
|
+
var goldValue = (dcBalance * DC_TO_GOLD).toLocaleString();
|
|
39714
39715
|
var tabs = [{
|
|
39715
|
-
id: 'balance',
|
|
39716
|
-
title: 'Balance',
|
|
39717
|
-
content: React__default.createElement(BalanceContent, null, React__default.createElement(BalanceLabel, null, "Your DC Balance"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), React__default.createElement(DCHint, null, "Spend on the Store, buy items on the Marketplace, or transfer to any player."), onBuyDC && React__default.createElement(BuyButton, {
|
|
39718
|
-
onPointerDown: onBuyDC,
|
|
39719
|
-
title: "Buy Definya Coins"
|
|
39720
|
-
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy More DC")))
|
|
39721
|
-
}, {
|
|
39722
39716
|
id: 'transfer',
|
|
39723
39717
|
title: 'Transfer',
|
|
39724
39718
|
content: React__default.createElement(DCTransferPanel, {
|
|
@@ -39744,50 +39738,91 @@ var DCWalletContent = function DCWalletContent(_ref) {
|
|
|
39744
39738
|
onRequestHistory: onRequestHistory
|
|
39745
39739
|
})
|
|
39746
39740
|
}];
|
|
39747
|
-
return React__default.createElement(WalletContainer, null, React__default.createElement(
|
|
39741
|
+
return React__default.createElement(WalletContainer, null, React__default.createElement(BalanceHeader, null, React__default.createElement(BalanceTop, null, React__default.createElement(BalanceBlock, null, React__default.createElement(BalanceLabel, null, "DC BALANCE"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " ", React__default.createElement(BalanceDC, null, "DC")), React__default.createElement(BalanceEquiv, null, "\u2248 $", usdValue, " USD \xA0\xB7\xA0 ", goldValue, " Gold")), onBuyDC && React__default.createElement(BuyButton, {
|
|
39742
|
+
onPointerDown: onBuyDC,
|
|
39743
|
+
role: "button",
|
|
39744
|
+
tabIndex: 0,
|
|
39745
|
+
title: "Buy Definya Coins"
|
|
39746
|
+
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy DC"))), React__default.createElement(RateStrip, null, React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "1 DC"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, "5,500 Gold")), React__default.createElement(RateDivider, null), React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "100 DC"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, "1 USD")), React__default.createElement(RateDivider, null), React__default.createElement(RateItem, null, React__default.createElement(RateNum, null, "1 USD"), React__default.createElement(RateSep, null, "="), React__default.createElement(RateVal, null, "550K Gold")))), React__default.createElement(TabsWrapper, null, React__default.createElement(InternalTabs, {
|
|
39748
39747
|
tabs: tabs,
|
|
39749
|
-
activeTab: activeTab,
|
|
39750
39748
|
onTabChange: function onTabChange(tabId) {
|
|
39751
|
-
|
|
39752
|
-
if (tabId === 'history') {
|
|
39753
|
-
onRequestHistory(1);
|
|
39754
|
-
}
|
|
39749
|
+
if (tabId === 'history') onRequestHistory(1);
|
|
39755
39750
|
},
|
|
39756
39751
|
activeTextColor: "#000000",
|
|
39757
39752
|
activeColor: "#fef08a",
|
|
39758
39753
|
inactiveColor: "#6b7280",
|
|
39759
39754
|
borderColor: "#f59e0b",
|
|
39760
39755
|
hoverColor: "#fef3c7"
|
|
39761
|
-
}));
|
|
39756
|
+
})));
|
|
39762
39757
|
};
|
|
39763
39758
|
var WalletContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
39764
39759
|
displayName: "DCWalletContent__WalletContainer",
|
|
39765
39760
|
componentId: "sc-1hrivmk-0"
|
|
39766
|
-
})(["display:flex;flex-direction:column;width:100%;min-height:300px;
|
|
39767
|
-
var
|
|
39768
|
-
displayName: "
|
|
39761
|
+
})(["display:flex;flex-direction:column;width:100%;min-height:300px;"]);
|
|
39762
|
+
var BalanceHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
39763
|
+
displayName: "DCWalletContent__BalanceHeader",
|
|
39769
39764
|
componentId: "sc-1hrivmk-1"
|
|
39770
|
-
})(["display:flex;flex-direction:column;
|
|
39765
|
+
})(["background:rgba(0,0,0,0.35);border:1px solid rgba(245,158,11,0.25);border-radius:6px;padding:14px 16px 10px;margin:0 2.5% 10px;display:flex;flex-direction:column;gap:10px;"]);
|
|
39766
|
+
var BalanceTop = /*#__PURE__*/styled__default.div.withConfig({
|
|
39767
|
+
displayName: "DCWalletContent__BalanceTop",
|
|
39768
|
+
componentId: "sc-1hrivmk-2"
|
|
39769
|
+
})(["display:flex;align-items:center;justify-content:space-between;gap:12px;"]);
|
|
39770
|
+
var BalanceBlock = /*#__PURE__*/styled__default.div.withConfig({
|
|
39771
|
+
displayName: "DCWalletContent__BalanceBlock",
|
|
39772
|
+
componentId: "sc-1hrivmk-3"
|
|
39773
|
+
})(["display:flex;flex-direction:column;gap:5px;"]);
|
|
39771
39774
|
var BalanceLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39772
39775
|
displayName: "DCWalletContent__BalanceLabel",
|
|
39773
|
-
componentId: "sc-1hrivmk-
|
|
39774
|
-
})(["font-family:'Press Start 2P',cursive;font-size:
|
|
39776
|
+
componentId: "sc-1hrivmk-4"
|
|
39777
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:9px !important;color:rgba(245,158,11,0.7) !important;letter-spacing:1px;"]);
|
|
39775
39778
|
var BalanceAmount = /*#__PURE__*/styled__default.div.withConfig({
|
|
39776
39779
|
displayName: "DCWalletContent__BalanceAmount",
|
|
39777
|
-
componentId: "sc-1hrivmk-3"
|
|
39778
|
-
})(["font-family:'Press Start 2P',cursive;font-size:28px;color:#fef08a;text-shadow:2px 2px 0 #000;letter-spacing:2px;"]);
|
|
39779
|
-
var DCHint = /*#__PURE__*/styled__default.p.withConfig({
|
|
39780
|
-
displayName: "DCWalletContent__DCHint",
|
|
39781
|
-
componentId: "sc-1hrivmk-4"
|
|
39782
|
-
})(["margin:0 !important;font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:rgba(255,255,255,0.4) !important;text-align:center !important;line-height:1.8 !important;max-width:280px;"]);
|
|
39783
|
-
var BuyButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
39784
|
-
displayName: "DCWalletContent__BuyButton",
|
|
39785
39780
|
componentId: "sc-1hrivmk-5"
|
|
39786
|
-
})(["
|
|
39781
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:24px !important;color:#fef08a !important;text-shadow:2px 2px 0 #000 !important;letter-spacing:2px;line-height:1 !important;"]);
|
|
39782
|
+
var BalanceDC = /*#__PURE__*/styled__default.span.withConfig({
|
|
39783
|
+
displayName: "DCWalletContent__BalanceDC",
|
|
39784
|
+
componentId: "sc-1hrivmk-6"
|
|
39785
|
+
})(["font-size:14px !important;color:rgba(254,240,138,0.6) !important;"]);
|
|
39786
|
+
var BalanceEquiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
39787
|
+
displayName: "DCWalletContent__BalanceEquiv",
|
|
39788
|
+
componentId: "sc-1hrivmk-7"
|
|
39789
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:rgba(255,255,255,0.45) !important;letter-spacing:0.5px;"]);
|
|
39790
|
+
var BuyButton = /*#__PURE__*/styled__default.div.withConfig({
|
|
39791
|
+
displayName: "DCWalletContent__BuyButton",
|
|
39792
|
+
componentId: "sc-1hrivmk-8"
|
|
39793
|
+
})(["display:flex;flex-direction:row;align-items:center;gap:6px;padding:10px 16px;background:#f59e0b;border-radius:4px;color:#000 !important;cursor:pointer;flex-shrink:0;font-size:14px;white-space:nowrap;user-select:none;text-shadow:none !important;&:hover{background:#fbbf24;}&:active{background:#d97706;}"]);
|
|
39787
39794
|
var BuyButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39788
39795
|
displayName: "DCWalletContent__BuyButtonLabel",
|
|
39789
|
-
componentId: "sc-1hrivmk-
|
|
39790
|
-
})(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
|
|
39796
|
+
componentId: "sc-1hrivmk-9"
|
|
39797
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:#000 !important;white-space:nowrap !important;text-shadow:none !important;"]);
|
|
39798
|
+
var RateStrip = /*#__PURE__*/styled__default.div.withConfig({
|
|
39799
|
+
displayName: "DCWalletContent__RateStrip",
|
|
39800
|
+
componentId: "sc-1hrivmk-10"
|
|
39801
|
+
})(["display:flex;align-items:center;border-top:1px solid rgba(245,158,11,0.1);padding-top:8px;"]);
|
|
39802
|
+
var RateItem = /*#__PURE__*/styled__default.div.withConfig({
|
|
39803
|
+
displayName: "DCWalletContent__RateItem",
|
|
39804
|
+
componentId: "sc-1hrivmk-11"
|
|
39805
|
+
})(["display:flex;align-items:center;gap:5px;flex:1;justify-content:center;"]);
|
|
39806
|
+
var RateDivider = /*#__PURE__*/styled__default.div.withConfig({
|
|
39807
|
+
displayName: "DCWalletContent__RateDivider",
|
|
39808
|
+
componentId: "sc-1hrivmk-12"
|
|
39809
|
+
})(["width:1px;height:12px;background:rgba(245,158,11,0.2);"]);
|
|
39810
|
+
var RateNum = /*#__PURE__*/styled__default.span.withConfig({
|
|
39811
|
+
displayName: "DCWalletContent__RateNum",
|
|
39812
|
+
componentId: "sc-1hrivmk-13"
|
|
39813
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.5) !important;"]);
|
|
39814
|
+
var RateSep = /*#__PURE__*/styled__default.span.withConfig({
|
|
39815
|
+
displayName: "DCWalletContent__RateSep",
|
|
39816
|
+
componentId: "sc-1hrivmk-14"
|
|
39817
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.2) !important;"]);
|
|
39818
|
+
var RateVal = /*#__PURE__*/styled__default.span.withConfig({
|
|
39819
|
+
displayName: "DCWalletContent__RateVal",
|
|
39820
|
+
componentId: "sc-1hrivmk-15"
|
|
39821
|
+
})(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(254,240,138,0.6) !important;"]);
|
|
39822
|
+
var TabsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
39823
|
+
displayName: "DCWalletContent__TabsWrapper",
|
|
39824
|
+
componentId: "sc-1hrivmk-16"
|
|
39825
|
+
})(["padding:0 2.5%;"]);
|
|
39791
39826
|
|
|
39792
39827
|
var _excluded$3 = ["onClose"];
|
|
39793
39828
|
var DCWalletModal = function DCWalletModal(_ref) {
|