@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.
@@ -39284,7 +39284,7 @@ var FilterRow = /*#__PURE__*/styled.div.withConfig({
39284
39284
  var FilterLabel = /*#__PURE__*/styled.p.withConfig({
39285
39285
  displayName: "DCHistoryPanel__FilterLabel",
39286
39286
  componentId: "sc-debjdj-2"
39287
- })(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
39287
+ })(["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;"]);
39288
39288
  var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
39289
39289
  displayName: "DCHistoryPanel__StyledDropdown",
39290
39290
  componentId: "sc-debjdj-3"
@@ -39308,23 +39308,23 @@ var TxRight = /*#__PURE__*/styled.div.withConfig({
39308
39308
  var TxType = /*#__PURE__*/styled.span.withConfig({
39309
39309
  displayName: "DCHistoryPanel__TxType",
39310
39310
  componentId: "sc-debjdj-8"
39311
- })(["font-size:7px;font-family:'Press Start 2P',cursive;"]);
39311
+ })(["font-size:8px !important;font-family:'Press Start 2P',cursive !important;"]);
39312
39312
  var TxAmount = /*#__PURE__*/styled.span.withConfig({
39313
39313
  displayName: "DCHistoryPanel__TxAmount",
39314
39314
  componentId: "sc-debjdj-9"
39315
- })(["font-size:8px;font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
39315
+ })(["font-size:9px !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;"]);
39316
39316
  var TxNote = /*#__PURE__*/styled.span.withConfig({
39317
39317
  displayName: "DCHistoryPanel__TxNote",
39318
39318
  componentId: "sc-debjdj-10"
39319
- })(["font-size:6px;color:", ";font-family:'Press Start 2P',cursive;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"], uiColors.lightGray);
39319
+ })(["font-size:7px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"], uiColors.lightGray);
39320
39320
  var TxDate = /*#__PURE__*/styled.span.withConfig({
39321
39321
  displayName: "DCHistoryPanel__TxDate",
39322
39322
  componentId: "sc-debjdj-11"
39323
- })(["font-size:6px;color:rgba(255,255,255,0.4);font-family:'Press Start 2P',cursive;white-space:nowrap;"]);
39323
+ })(["font-size:7px !important;color:rgba(255,255,255,0.4) !important;font-family:'Press Start 2P',cursive !important;white-space:nowrap;"]);
39324
39324
  var LoadingRow = /*#__PURE__*/styled.div.withConfig({
39325
39325
  displayName: "DCHistoryPanel__LoadingRow",
39326
39326
  componentId: "sc-debjdj-12"
39327
- })(["display:flex;align-items:center;gap:8px;justify-content:center;padding:16px;color:", ";font-size:9px;font-family:'Press Start 2P',cursive;"], uiColors.white);
39327
+ })(["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);
39328
39328
  var Spinner = /*#__PURE__*/styled.div.withConfig({
39329
39329
  displayName: "DCHistoryPanel__Spinner",
39330
39330
  componentId: "sc-debjdj-13"
@@ -39332,7 +39332,7 @@ var Spinner = /*#__PURE__*/styled.div.withConfig({
39332
39332
  var EmptyMessage = /*#__PURE__*/styled.div.withConfig({
39333
39333
  displayName: "DCHistoryPanel__EmptyMessage",
39334
39334
  componentId: "sc-debjdj-14"
39335
- })(["font-size:8px;color:", ";font-family:'Press Start 2P',cursive;text-align:center;padding:20px;"], uiColors.lightGray);
39335
+ })(["font-size:8px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;text-align:center;padding:20px;"], uiColors.lightGray);
39336
39336
 
39337
39337
  // Global style to prevent body scrolling when modal is open
39338
39338
  var GlobalStyle = /*#__PURE__*/createGlobalStyle(["body{overflow:hidden;width:100%;height:100%;}"]);
@@ -39646,11 +39646,11 @@ var PanelContainer$1 = /*#__PURE__*/styled.div.withConfig({
39646
39646
  var FieldLabel = /*#__PURE__*/styled.label.withConfig({
39647
39647
  displayName: "DCTransferPanel__FieldLabel",
39648
39648
  componentId: "sc-k1vvb1-1"
39649
- })(["font-size:9px;color:#f59e0b;font-family:'Press Start 2P',cursive;margin-top:8px;"]);
39649
+ })(["font-size:9px !important;color:#f59e0b !important;font-family:'Press Start 2P',cursive !important;margin-top:8px;"]);
39650
39650
  var StyledInput = /*#__PURE__*/styled(Input).withConfig({
39651
39651
  displayName: "DCTransferPanel__StyledInput",
39652
39652
  componentId: "sc-k1vvb1-2"
39653
- })(["background:rgba(0,0,0,0.6);border:1px solid #f59e0b;color:", ";padding:6px 8px;font-size:12px;font-family:'Press Start 2P',cursive;width:100%;box-sizing:border-box;&:disabled{opacity:0.5;}&:focus{outline:none;border-color:", ";}"], uiColors.white, uiColors.white);
39653
+ })(["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);
39654
39654
  var ButtonRow = /*#__PURE__*/styled.div.withConfig({
39655
39655
  displayName: "DCTransferPanel__ButtonRow",
39656
39656
  componentId: "sc-k1vvb1-3"
@@ -39662,7 +39662,7 @@ var Spinner$1 = /*#__PURE__*/styled.div.withConfig({
39662
39662
  var ResultMessage = /*#__PURE__*/styled.div.withConfig({
39663
39663
  displayName: "DCTransferPanel__ResultMessage",
39664
39664
  componentId: "sc-k1vvb1-5"
39665
- })(["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) {
39665
+ })(["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) {
39666
39666
  var $success = _ref2.$success;
39667
39667
  return $success ? uiColors.green : uiColors.red;
39668
39668
  }, function (_ref3) {
@@ -39672,7 +39672,7 @@ var ResultMessage = /*#__PURE__*/styled.div.withConfig({
39672
39672
  var ErrorMessage = /*#__PURE__*/styled.div.withConfig({
39673
39673
  displayName: "DCTransferPanel__ErrorMessage",
39674
39674
  componentId: "sc-k1vvb1-6"
39675
- })(["font-size:9px;color:", ";font-family:'Press Start 2P',cursive;"], uiColors.red);
39675
+ })(["font-size:9px !important;color:", " !important;font-family:'Press Start 2P',cursive !important;"], uiColors.red);
39676
39676
  var AutocompleteWrapper = /*#__PURE__*/styled.div.withConfig({
39677
39677
  displayName: "DCTransferPanel__AutocompleteWrapper",
39678
39678
  componentId: "sc-k1vvb1-7"
@@ -39686,6 +39686,8 @@ var DropdownItem = /*#__PURE__*/styled.li.withConfig({
39686
39686
  componentId: "sc-k1vvb1-9"
39687
39687
  })(["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);
39688
39688
 
39689
+ var DC_TO_GOLD = 5500;
39690
+ var DC_TO_USD = 100;
39689
39691
  var DCWalletContent = function DCWalletContent(_ref) {
39690
39692
  var _historyData$transact, _historyData$totalPag, _historyData$currentP;
39691
39693
  var dcBalance = _ref.dcBalance,
@@ -39702,17 +39704,9 @@ var DCWalletContent = function DCWalletContent(_ref) {
39702
39704
  onBuyDC = _ref.onBuyDC,
39703
39705
  onSearchCharacter = _ref.onSearchCharacter,
39704
39706
  searchResults = _ref.searchResults;
39705
- var _useState = useState('balance'),
39706
- activeTab = _useState[0],
39707
- setActiveTab = _useState[1];
39707
+ var usdValue = (dcBalance / DC_TO_USD).toFixed(2);
39708
+ var goldValue = (dcBalance * DC_TO_GOLD).toLocaleString();
39708
39709
  var tabs = [{
39709
- id: 'balance',
39710
- title: 'Balance',
39711
- content: React.createElement(BalanceContent, null, React.createElement(BalanceLabel, null, "Your DC Balance"), React.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), React.createElement(DCHint, null, "Spend on the Store, buy items on the Marketplace, or transfer to any player."), onBuyDC && React.createElement(BuyButton, {
39712
- onPointerDown: onBuyDC,
39713
- title: "Buy Definya Coins"
39714
- }, React.createElement(FaShoppingCart, null), React.createElement(BuyButtonLabel, null, "Buy More DC")))
39715
- }, {
39716
39710
  id: 'transfer',
39717
39711
  title: 'Transfer',
39718
39712
  content: React.createElement(DCTransferPanel, {
@@ -39738,50 +39732,91 @@ var DCWalletContent = function DCWalletContent(_ref) {
39738
39732
  onRequestHistory: onRequestHistory
39739
39733
  })
39740
39734
  }];
39741
- return React.createElement(WalletContainer, null, React.createElement(InternalTabs, {
39735
+ return React.createElement(WalletContainer, null, React.createElement(BalanceHeader, null, React.createElement(BalanceTop, null, React.createElement(BalanceBlock, null, React.createElement(BalanceLabel, null, "DC BALANCE"), React.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " ", React.createElement(BalanceDC, null, "DC")), React.createElement(BalanceEquiv, null, "\u2248 $", usdValue, " USD \xA0\xB7\xA0 ", goldValue, " Gold")), onBuyDC && React.createElement(BuyButton, {
39736
+ onPointerDown: onBuyDC,
39737
+ role: "button",
39738
+ tabIndex: 0,
39739
+ title: "Buy Definya Coins"
39740
+ }, React.createElement(FaShoppingCart, null), React.createElement(BuyButtonLabel, null, "Buy DC"))), React.createElement(RateStrip, null, React.createElement(RateItem, null, React.createElement(RateNum, null, "1 DC"), React.createElement(RateSep, null, "="), React.createElement(RateVal, null, "5,500 Gold")), React.createElement(RateDivider, null), React.createElement(RateItem, null, React.createElement(RateNum, null, "100 DC"), React.createElement(RateSep, null, "="), React.createElement(RateVal, null, "1 USD")), React.createElement(RateDivider, null), React.createElement(RateItem, null, React.createElement(RateNum, null, "1 USD"), React.createElement(RateSep, null, "="), React.createElement(RateVal, null, "550K Gold")))), React.createElement(TabsWrapper, null, React.createElement(InternalTabs, {
39742
39741
  tabs: tabs,
39743
- activeTab: activeTab,
39744
39742
  onTabChange: function onTabChange(tabId) {
39745
- setActiveTab(tabId);
39746
- if (tabId === 'history') {
39747
- onRequestHistory(1);
39748
- }
39743
+ if (tabId === 'history') onRequestHistory(1);
39749
39744
  },
39750
39745
  activeTextColor: "#000000",
39751
39746
  activeColor: "#fef08a",
39752
39747
  inactiveColor: "#6b7280",
39753
39748
  borderColor: "#f59e0b",
39754
39749
  hoverColor: "#fef3c7"
39755
- }));
39750
+ })));
39756
39751
  };
39757
39752
  var WalletContainer = /*#__PURE__*/styled.div.withConfig({
39758
39753
  displayName: "DCWalletContent__WalletContainer",
39759
39754
  componentId: "sc-1hrivmk-0"
39760
- })(["display:flex;flex-direction:column;width:100%;min-height:300px;gap:0.5rem;"]);
39761
- var BalanceContent = /*#__PURE__*/styled.div.withConfig({
39762
- displayName: "DCWalletContent__BalanceContent",
39755
+ })(["display:flex;flex-direction:column;width:100%;min-height:300px;"]);
39756
+ var BalanceHeader = /*#__PURE__*/styled.div.withConfig({
39757
+ displayName: "DCWalletContent__BalanceHeader",
39763
39758
  componentId: "sc-1hrivmk-1"
39764
- })(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
39759
+ })(["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;"]);
39760
+ var BalanceTop = /*#__PURE__*/styled.div.withConfig({
39761
+ displayName: "DCWalletContent__BalanceTop",
39762
+ componentId: "sc-1hrivmk-2"
39763
+ })(["display:flex;align-items:center;justify-content:space-between;gap:12px;"]);
39764
+ var BalanceBlock = /*#__PURE__*/styled.div.withConfig({
39765
+ displayName: "DCWalletContent__BalanceBlock",
39766
+ componentId: "sc-1hrivmk-3"
39767
+ })(["display:flex;flex-direction:column;gap:5px;"]);
39765
39768
  var BalanceLabel = /*#__PURE__*/styled.span.withConfig({
39766
39769
  displayName: "DCWalletContent__BalanceLabel",
39767
- componentId: "sc-1hrivmk-2"
39768
- })(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
39770
+ componentId: "sc-1hrivmk-4"
39771
+ })(["font-family:'Press Start 2P',cursive !important;font-size:9px !important;color:rgba(245,158,11,0.7) !important;letter-spacing:1px;"]);
39769
39772
  var BalanceAmount = /*#__PURE__*/styled.div.withConfig({
39770
39773
  displayName: "DCWalletContent__BalanceAmount",
39771
- componentId: "sc-1hrivmk-3"
39772
- })(["font-family:'Press Start 2P',cursive;font-size:28px;color:#fef08a;text-shadow:2px 2px 0 #000;letter-spacing:2px;"]);
39773
- var DCHint = /*#__PURE__*/styled.p.withConfig({
39774
- displayName: "DCWalletContent__DCHint",
39775
- componentId: "sc-1hrivmk-4"
39776
- })(["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;"]);
39777
- var BuyButton = /*#__PURE__*/styled.button.withConfig({
39778
- displayName: "DCWalletContent__BuyButton",
39779
39774
  componentId: "sc-1hrivmk-5"
39780
- })(["display:flex;align-items:center;gap:8px;margin-top:8px;padding:10px 20px;background:#f59e0b;border:none;border-radius:6px;color:#000;cursor:pointer;font-size:1rem;&:hover{background:#fbbf24;}&:active{background:#d97706;}"]);
39775
+ })(["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;"]);
39776
+ var BalanceDC = /*#__PURE__*/styled.span.withConfig({
39777
+ displayName: "DCWalletContent__BalanceDC",
39778
+ componentId: "sc-1hrivmk-6"
39779
+ })(["font-size:14px !important;color:rgba(254,240,138,0.6) !important;"]);
39780
+ var BalanceEquiv = /*#__PURE__*/styled.div.withConfig({
39781
+ displayName: "DCWalletContent__BalanceEquiv",
39782
+ componentId: "sc-1hrivmk-7"
39783
+ })(["font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:rgba(255,255,255,0.45) !important;letter-spacing:0.5px;"]);
39784
+ var BuyButton = /*#__PURE__*/styled.div.withConfig({
39785
+ displayName: "DCWalletContent__BuyButton",
39786
+ componentId: "sc-1hrivmk-8"
39787
+ })(["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;}"]);
39781
39788
  var BuyButtonLabel = /*#__PURE__*/styled.span.withConfig({
39782
39789
  displayName: "DCWalletContent__BuyButtonLabel",
39783
- componentId: "sc-1hrivmk-6"
39784
- })(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
39790
+ componentId: "sc-1hrivmk-9"
39791
+ })(["font-family:'Press Start 2P',cursive !important;font-size:8px !important;color:#000 !important;white-space:nowrap !important;text-shadow:none !important;"]);
39792
+ var RateStrip = /*#__PURE__*/styled.div.withConfig({
39793
+ displayName: "DCWalletContent__RateStrip",
39794
+ componentId: "sc-1hrivmk-10"
39795
+ })(["display:flex;align-items:center;border-top:1px solid rgba(245,158,11,0.1);padding-top:8px;"]);
39796
+ var RateItem = /*#__PURE__*/styled.div.withConfig({
39797
+ displayName: "DCWalletContent__RateItem",
39798
+ componentId: "sc-1hrivmk-11"
39799
+ })(["display:flex;align-items:center;gap:5px;flex:1;justify-content:center;"]);
39800
+ var RateDivider = /*#__PURE__*/styled.div.withConfig({
39801
+ displayName: "DCWalletContent__RateDivider",
39802
+ componentId: "sc-1hrivmk-12"
39803
+ })(["width:1px;height:12px;background:rgba(245,158,11,0.2);"]);
39804
+ var RateNum = /*#__PURE__*/styled.span.withConfig({
39805
+ displayName: "DCWalletContent__RateNum",
39806
+ componentId: "sc-1hrivmk-13"
39807
+ })(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.5) !important;"]);
39808
+ var RateSep = /*#__PURE__*/styled.span.withConfig({
39809
+ displayName: "DCWalletContent__RateSep",
39810
+ componentId: "sc-1hrivmk-14"
39811
+ })(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(255,255,255,0.2) !important;"]);
39812
+ var RateVal = /*#__PURE__*/styled.span.withConfig({
39813
+ displayName: "DCWalletContent__RateVal",
39814
+ componentId: "sc-1hrivmk-15"
39815
+ })(["font-family:'Press Start 2P',cursive !important;font-size:6px !important;color:rgba(254,240,138,0.6) !important;"]);
39816
+ var TabsWrapper = /*#__PURE__*/styled.div.withConfig({
39817
+ displayName: "DCWalletContent__TabsWrapper",
39818
+ componentId: "sc-1hrivmk-16"
39819
+ })(["padding:0 2.5%;"]);
39785
39820
 
39786
39821
  var _excluded$3 = ["onClose"];
39787
39822
  var DCWalletModal = function DCWalletModal(_ref) {