@rpg-engine/long-bow 0.8.156 → 0.8.157
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/components/DCWallet/DCWalletContent.d.ts +27 -0
- package/dist/components/DCWallet/DCWalletModal.d.ts +2 -24
- package/dist/components/Marketplace/Marketplace.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +119 -94
- 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 +119 -95
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +32 -49
- package/src/components/DCWallet/DCWalletContent.tsx +183 -0
- package/src/components/DCWallet/DCWalletModal.tsx +6 -166
- package/src/components/Marketplace/Marketplace.tsx +21 -1
- package/src/components/shared/Tabs/Tabs.tsx +7 -6
- package/src/index.tsx +1 -0
- package/src/stories/Features/trading/Marketplace.stories.tsx +25 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDCTransaction } from './DCHistoryPanel';
|
|
3
|
+
import { IDCTransferCharacterResult } from './DCTransferPanel';
|
|
4
|
+
export interface IDCWalletContentProps {
|
|
5
|
+
dcBalance: number;
|
|
6
|
+
historyData: {
|
|
7
|
+
transactions: IDCTransaction[];
|
|
8
|
+
totalPages: number;
|
|
9
|
+
currentPage: number;
|
|
10
|
+
} | null;
|
|
11
|
+
historyLoading: boolean;
|
|
12
|
+
onRequestHistory: (page: number, type?: string) => void;
|
|
13
|
+
transferLoading: boolean;
|
|
14
|
+
transferResult: {
|
|
15
|
+
success: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
} | null;
|
|
18
|
+
onSendTransfer: (recipientName: string, amount: number) => void;
|
|
19
|
+
onClearTransferResult: () => void;
|
|
20
|
+
characterName?: string;
|
|
21
|
+
onInputFocus?: () => void;
|
|
22
|
+
onInputBlur?: () => void;
|
|
23
|
+
onBuyDC?: () => void;
|
|
24
|
+
onSearchCharacter?: (name: string) => void;
|
|
25
|
+
searchResults?: IDCTransferCharacterResult[];
|
|
26
|
+
}
|
|
27
|
+
export declare const DCWalletContent: React.FC<IDCWalletContentProps>;
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface IDCWalletModalProps {
|
|
5
|
-
dcBalance: number;
|
|
2
|
+
import { IDCWalletContentProps } from './DCWalletContent';
|
|
3
|
+
export interface IDCWalletModalProps extends IDCWalletContentProps {
|
|
6
4
|
onClose: () => void;
|
|
7
|
-
historyData: {
|
|
8
|
-
transactions: IDCTransaction[];
|
|
9
|
-
totalPages: number;
|
|
10
|
-
currentPage: number;
|
|
11
|
-
} | null;
|
|
12
|
-
historyLoading: boolean;
|
|
13
|
-
onRequestHistory: (page: number, type?: string) => void;
|
|
14
|
-
transferLoading: boolean;
|
|
15
|
-
transferResult: {
|
|
16
|
-
success: boolean;
|
|
17
|
-
message: string;
|
|
18
|
-
} | null;
|
|
19
|
-
onSendTransfer: (recipientName: string, amount: number) => void;
|
|
20
|
-
onClearTransferResult: () => void;
|
|
21
|
-
characterName?: string;
|
|
22
|
-
onInputFocus?: () => void;
|
|
23
|
-
onInputBlur?: () => void;
|
|
24
|
-
onBuyDC?: () => void;
|
|
25
|
-
onSearchCharacter?: (name: string) => void;
|
|
26
|
-
searchResults?: IDCTransferCharacterResult[];
|
|
27
5
|
}
|
|
28
6
|
export declare const DCWalletModal: React.FC<IDCWalletModalProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IEquipmentSet, IItem, IMarketplaceBlueprintSearchRequest, IMarketplaceBlueprintSummary, IMarketplaceBuyOrderItem, IMarketplaceItem, IMarketplaceTransaction } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { IDCWalletContentProps } from '../DCWallet/DCWalletContent';
|
|
3
4
|
import { MarketplacePaymentMethod } from './MarketplaceBuyModal';
|
|
4
5
|
import { MarketplaceAcceptedCurrency } from './MarketplaceSettingsPanel';
|
|
5
6
|
export interface IMarketPlaceProps {
|
|
@@ -70,5 +71,6 @@ export interface IMarketPlaceProps {
|
|
|
70
71
|
historySelectedType?: string;
|
|
71
72
|
onHistoryTypeChange?: (type: string) => void;
|
|
72
73
|
onHistoryPageChange?: (page: number) => void;
|
|
74
|
+
walletProps?: IDCWalletContentProps;
|
|
73
75
|
}
|
|
74
76
|
export declare const Marketplace: React.FC<IMarketPlaceProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './components/CheckItem';
|
|
|
11
11
|
export * from './components/CircularController/CircularController';
|
|
12
12
|
export * from './components/CraftBook/CraftBook';
|
|
13
13
|
export * from './components/DailyTasks/DailyTasks';
|
|
14
|
+
export * from './components/DCWallet/DCWalletContent';
|
|
14
15
|
export * from './components/DCWallet/DCWalletModal';
|
|
15
16
|
export * from './components/LoginStreak/LoginStreakPanel';
|
|
16
17
|
export * from './components/DPad/JoystickDPad';
|
|
@@ -28,6 +28,7 @@ var Settings2 = require('pixelarticons/react/Settings2');
|
|
|
28
28
|
var ShoppingBag = require('pixelarticons/react/ShoppingBag');
|
|
29
29
|
var ShoppingCart = require('pixelarticons/react/ShoppingCart');
|
|
30
30
|
var Store$1 = require('pixelarticons/react/Store');
|
|
31
|
+
var Wallet = require('pixelarticons/react/Wallet');
|
|
31
32
|
var Search = require('pixelarticons/react/Search');
|
|
32
33
|
var Delete = require('pixelarticons/react/Delete');
|
|
33
34
|
require('rpgui/rpgui.css');
|
|
@@ -39186,32 +39187,41 @@ var TRANSACTION_TYPE_COLORS = {
|
|
|
39186
39187
|
AdminAdjustment: '#9ca3af'
|
|
39187
39188
|
};
|
|
39188
39189
|
var TRANSACTION_TYPE_OPTIONS = [{
|
|
39190
|
+
id: 1,
|
|
39189
39191
|
value: '',
|
|
39190
|
-
|
|
39192
|
+
option: 'All Types'
|
|
39191
39193
|
}, {
|
|
39194
|
+
id: 2,
|
|
39192
39195
|
value: 'Purchase',
|
|
39193
|
-
|
|
39196
|
+
option: 'Purchase'
|
|
39194
39197
|
}, {
|
|
39198
|
+
id: 3,
|
|
39195
39199
|
value: 'Transfer',
|
|
39196
|
-
|
|
39200
|
+
option: 'Transfer'
|
|
39197
39201
|
}, {
|
|
39202
|
+
id: 4,
|
|
39198
39203
|
value: 'MarketplaceSale',
|
|
39199
|
-
|
|
39204
|
+
option: 'Marketplace Sale'
|
|
39200
39205
|
}, {
|
|
39206
|
+
id: 5,
|
|
39201
39207
|
value: 'MarketplacePurchase',
|
|
39202
|
-
|
|
39208
|
+
option: 'Marketplace Buy'
|
|
39203
39209
|
}, {
|
|
39210
|
+
id: 6,
|
|
39204
39211
|
value: 'StorePurchase',
|
|
39205
|
-
|
|
39212
|
+
option: 'Store Purchase'
|
|
39206
39213
|
}, {
|
|
39214
|
+
id: 7,
|
|
39207
39215
|
value: 'Fee',
|
|
39208
|
-
|
|
39216
|
+
option: 'Fee'
|
|
39209
39217
|
}, {
|
|
39218
|
+
id: 8,
|
|
39210
39219
|
value: 'Refund',
|
|
39211
|
-
|
|
39220
|
+
option: 'Refund'
|
|
39212
39221
|
}, {
|
|
39222
|
+
id: 9,
|
|
39213
39223
|
value: 'AdminAdjustment',
|
|
39214
|
-
|
|
39224
|
+
option: 'Admin Adjustment'
|
|
39215
39225
|
}];
|
|
39216
39226
|
var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
39217
39227
|
var transactions = _ref.transactions,
|
|
@@ -39227,8 +39237,7 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
|
39227
39237
|
onRequestHistory(1);
|
|
39228
39238
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39229
39239
|
}, []);
|
|
39230
|
-
var handleTypeChange = function handleTypeChange(
|
|
39231
|
-
var value = e.target.value;
|
|
39240
|
+
var handleTypeChange = function handleTypeChange(value) {
|
|
39232
39241
|
setSelectedType(value);
|
|
39233
39242
|
onRequestHistory(1, value || undefined);
|
|
39234
39243
|
};
|
|
@@ -39239,15 +39248,12 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
|
39239
39248
|
var d = new Date(dateStr);
|
|
39240
39249
|
return d.getMonth() + 1 + "/" + d.getDate() + "/" + String(d.getFullYear()).slice(-2);
|
|
39241
39250
|
};
|
|
39242
|
-
return React__default.createElement(PanelContainer, null, React__default.createElement(FilterRow, null, React__default.createElement(FilterLabel, null, "
|
|
39243
|
-
|
|
39244
|
-
|
|
39245
|
-
|
|
39246
|
-
|
|
39247
|
-
|
|
39248
|
-
value: opt.value
|
|
39249
|
-
}, opt.label);
|
|
39250
|
-
}))), loading && React__default.createElement(LoadingRow, null, React__default.createElement(Spinner, null), React__default.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React__default.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React__default.createElement(TransactionList, null, transactions.map(function (tx) {
|
|
39251
|
+
return React__default.createElement(PanelContainer, null, React__default.createElement(FilterRow, null, React__default.createElement(FilterLabel, null, "FILTER BY TYPE"), React__default.createElement(StyledDropdown, {
|
|
39252
|
+
key: selectedType,
|
|
39253
|
+
options: TRANSACTION_TYPE_OPTIONS,
|
|
39254
|
+
onChange: handleTypeChange,
|
|
39255
|
+
width: "100%"
|
|
39256
|
+
})), loading && React__default.createElement(LoadingRow, null, React__default.createElement(Spinner, null), React__default.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React__default.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React__default.createElement(TransactionList, null, transactions.map(function (tx) {
|
|
39251
39257
|
var _TRANSACTION_TYPE_LAB, _TRANSACTION_TYPE_COL, _tx$note;
|
|
39252
39258
|
var isCredit = tx.amount > 0;
|
|
39253
39259
|
var label = (_TRANSACTION_TYPE_LAB = TRANSACTION_TYPE_LABELS[tx.type]) != null ? _TRANSACTION_TYPE_LAB : tx.type;
|
|
@@ -39280,15 +39286,15 @@ var PanelContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
39280
39286
|
var FilterRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
39281
39287
|
displayName: "DCHistoryPanel__FilterRow",
|
|
39282
39288
|
componentId: "sc-debjdj-1"
|
|
39283
|
-
})(["display:flex;align-items:center;gap:
|
|
39284
|
-
var FilterLabel = /*#__PURE__*/styled__default.
|
|
39289
|
+
})(["display:flex;align-items:center;gap:12px;background:rgba(0,0,0,0.15);border-radius:4px;border:1px solid rgba(255,255,255,0.05);padding:8px 12px;"]);
|
|
39290
|
+
var FilterLabel = /*#__PURE__*/styled__default.p.withConfig({
|
|
39285
39291
|
displayName: "DCHistoryPanel__FilterLabel",
|
|
39286
39292
|
componentId: "sc-debjdj-2"
|
|
39287
|
-
})(["font-size:
|
|
39288
|
-
var
|
|
39289
|
-
displayName: "
|
|
39293
|
+
})(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
|
|
39294
|
+
var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
39295
|
+
displayName: "DCHistoryPanel__StyledDropdown",
|
|
39290
39296
|
componentId: "sc-debjdj-3"
|
|
39291
|
-
})(["
|
|
39297
|
+
})(["margin:0px !important;"]);
|
|
39292
39298
|
var TransactionList = /*#__PURE__*/styled__default.div.withConfig({
|
|
39293
39299
|
displayName: "DCHistoryPanel__TransactionList",
|
|
39294
39300
|
componentId: "sc-debjdj-4"
|
|
@@ -39686,10 +39692,9 @@ var DropdownItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
|
39686
39692
|
componentId: "sc-k1vvb1-9"
|
|
39687
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);
|
|
39688
39694
|
|
|
39689
|
-
var
|
|
39695
|
+
var DCWalletContent = function DCWalletContent(_ref) {
|
|
39690
39696
|
var _historyData$transact, _historyData$totalPag, _historyData$currentP;
|
|
39691
39697
|
var dcBalance = _ref.dcBalance,
|
|
39692
|
-
onClose = _ref.onClose,
|
|
39693
39698
|
historyData = _ref.historyData,
|
|
39694
39699
|
historyLoading = _ref.historyLoading,
|
|
39695
39700
|
onRequestHistory = _ref.onRequestHistory,
|
|
@@ -39706,13 +39711,10 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39706
39711
|
var _useState = React.useState('balance'),
|
|
39707
39712
|
activeTab = _useState[0],
|
|
39708
39713
|
setActiveTab = _useState[1];
|
|
39709
|
-
var stopPropagation = React.useCallback(function (e) {
|
|
39710
|
-
e.stopPropagation();
|
|
39711
|
-
}, []);
|
|
39712
39714
|
var tabs = [{
|
|
39713
39715
|
id: 'balance',
|
|
39714
39716
|
title: 'Balance',
|
|
39715
|
-
content: React__default.createElement(BalanceContent, null, React__default.createElement(BalanceLabel, null, "Your DC Balance"), React__default.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), onBuyDC && React__default.createElement(BuyButton, {
|
|
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, {
|
|
39716
39718
|
onPointerDown: onBuyDC,
|
|
39717
39719
|
title: "Buy Definya Coins"
|
|
39718
39720
|
}, React__default.createElement(fa.FaShoppingCart, null), React__default.createElement(BuyButtonLabel, null, "Buy More DC")))
|
|
@@ -39742,16 +39744,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39742
39744
|
onRequestHistory: onRequestHistory
|
|
39743
39745
|
})
|
|
39744
39746
|
}];
|
|
39745
|
-
return React__default.createElement(
|
|
39746
|
-
onPointerDown: onClose
|
|
39747
|
-
}), React__default.createElement(ModalContainer$1, null, React__default.createElement(ModalContent$1, {
|
|
39748
|
-
onClick: stopPropagation,
|
|
39749
|
-
onTouchStart: stopPropagation,
|
|
39750
|
-
onPointerDown: stopPropagation
|
|
39751
|
-
}, React__default.createElement(Header$3, null, React__default.createElement(Title$4, null, "DC Wallet"), React__default.createElement(CloseButton$5, {
|
|
39752
|
-
onPointerDown: onClose,
|
|
39753
|
-
"aria-label": "Close"
|
|
39754
|
-
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(WalletContainer, null, React__default.createElement(InternalTabs, {
|
|
39747
|
+
return React__default.createElement(WalletContainer, null, React__default.createElement(InternalTabs, {
|
|
39755
39748
|
tabs: tabs,
|
|
39756
39749
|
activeTab: activeTab,
|
|
39757
39750
|
onTabChange: function onTabChange(tabId) {
|
|
@@ -39765,7 +39758,54 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39765
39758
|
inactiveColor: "#6b7280",
|
|
39766
39759
|
borderColor: "#f59e0b",
|
|
39767
39760
|
hoverColor: "#fef3c7"
|
|
39768
|
-
}))
|
|
39761
|
+
}));
|
|
39762
|
+
};
|
|
39763
|
+
var WalletContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
39764
|
+
displayName: "DCWalletContent__WalletContainer",
|
|
39765
|
+
componentId: "sc-1hrivmk-0"
|
|
39766
|
+
})(["display:flex;flex-direction:column;width:100%;min-height:300px;gap:0.5rem;"]);
|
|
39767
|
+
var BalanceContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
39768
|
+
displayName: "DCWalletContent__BalanceContent",
|
|
39769
|
+
componentId: "sc-1hrivmk-1"
|
|
39770
|
+
})(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
|
|
39771
|
+
var BalanceLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39772
|
+
displayName: "DCWalletContent__BalanceLabel",
|
|
39773
|
+
componentId: "sc-1hrivmk-2"
|
|
39774
|
+
})(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
|
|
39775
|
+
var BalanceAmount = /*#__PURE__*/styled__default.div.withConfig({
|
|
39776
|
+
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
|
+
componentId: "sc-1hrivmk-5"
|
|
39786
|
+
})(["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;}"]);
|
|
39787
|
+
var BuyButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39788
|
+
displayName: "DCWalletContent__BuyButtonLabel",
|
|
39789
|
+
componentId: "sc-1hrivmk-6"
|
|
39790
|
+
})(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
|
|
39791
|
+
|
|
39792
|
+
var _excluded$3 = ["onClose"];
|
|
39793
|
+
var DCWalletModal = function DCWalletModal(_ref) {
|
|
39794
|
+
var onClose = _ref.onClose,
|
|
39795
|
+
contentProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
39796
|
+
var stopPropagation = React.useCallback(function (e) {
|
|
39797
|
+
e.stopPropagation();
|
|
39798
|
+
}, []);
|
|
39799
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$1, {
|
|
39800
|
+
onPointerDown: onClose
|
|
39801
|
+
}), React__default.createElement(ModalContainer$1, null, React__default.createElement(ModalContent$1, {
|
|
39802
|
+
onClick: stopPropagation,
|
|
39803
|
+
onTouchStart: stopPropagation,
|
|
39804
|
+
onPointerDown: stopPropagation
|
|
39805
|
+
}, React__default.createElement(Header$3, null, React__default.createElement(Title$4, null, "DC Wallet"), React__default.createElement(CloseButton$5, {
|
|
39806
|
+
onPointerDown: onClose,
|
|
39807
|
+
"aria-label": "Close"
|
|
39808
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(DCWalletContent, Object.assign({}, contentProps)))));
|
|
39769
39809
|
};
|
|
39770
39810
|
var Overlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
39771
39811
|
displayName: "DCWalletModal__Overlay",
|
|
@@ -39791,30 +39831,6 @@ var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
39791
39831
|
displayName: "DCWalletModal__CloseButton",
|
|
39792
39832
|
componentId: "sc-12xy88y-5"
|
|
39793
39833
|
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;&:hover{color:#ffffff;}"]);
|
|
39794
|
-
var WalletContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
39795
|
-
displayName: "DCWalletModal__WalletContainer",
|
|
39796
|
-
componentId: "sc-12xy88y-6"
|
|
39797
|
-
})(["display:flex;flex-direction:column;width:100%;min-height:300px;gap:0.5rem;"]);
|
|
39798
|
-
var BalanceContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
39799
|
-
displayName: "DCWalletModal__BalanceContent",
|
|
39800
|
-
componentId: "sc-12xy88y-7"
|
|
39801
|
-
})(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
|
|
39802
|
-
var BalanceLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39803
|
-
displayName: "DCWalletModal__BalanceLabel",
|
|
39804
|
-
componentId: "sc-12xy88y-8"
|
|
39805
|
-
})(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
|
|
39806
|
-
var BalanceAmount = /*#__PURE__*/styled__default.div.withConfig({
|
|
39807
|
-
displayName: "DCWalletModal__BalanceAmount",
|
|
39808
|
-
componentId: "sc-12xy88y-9"
|
|
39809
|
-
})(["font-family:'Press Start 2P',cursive;font-size:28px;color:#fef08a;text-shadow:2px 2px 0 #000;letter-spacing:2px;"]);
|
|
39810
|
-
var BuyButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
39811
|
-
displayName: "DCWalletModal__BuyButton",
|
|
39812
|
-
componentId: "sc-12xy88y-10"
|
|
39813
|
-
})(["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;}"]);
|
|
39814
|
-
var BuyButtonLabel = /*#__PURE__*/styled__default.span.withConfig({
|
|
39815
|
-
displayName: "DCWalletModal__BuyButtonLabel",
|
|
39816
|
-
componentId: "sc-12xy88y-11"
|
|
39817
|
-
})(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
|
|
39818
39834
|
|
|
39819
39835
|
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
39820
39836
|
var value = _ref.value,
|
|
@@ -41643,7 +41659,7 @@ var SearchHeader$1 = function SearchHeader(_ref) {
|
|
|
41643
41659
|
rightElement: searchOptions.rightElement
|
|
41644
41660
|
})), filterOptions && React__default.createElement(FilterContainer, {
|
|
41645
41661
|
"$isSmallScreen": isSmallScreen
|
|
41646
|
-
}, React__default.createElement(StyledDropdown, {
|
|
41662
|
+
}, React__default.createElement(StyledDropdown$1, {
|
|
41647
41663
|
options: filterOptions.options,
|
|
41648
41664
|
onChange: filterOptions.onOptionChange,
|
|
41649
41665
|
width: isSmallScreen ? '100%' : '200px'
|
|
@@ -41681,7 +41697,7 @@ var StyledSearchBar = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
|
41681
41697
|
displayName: "SearchHeader__StyledSearchBar",
|
|
41682
41698
|
componentId: "sc-1xd17jb-4"
|
|
41683
41699
|
})(["width:100%;"]);
|
|
41684
|
-
var StyledDropdown = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
41700
|
+
var StyledDropdown$1 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
41685
41701
|
displayName: "SearchHeader__StyledDropdown",
|
|
41686
41702
|
componentId: "sc-1xd17jb-5"
|
|
41687
41703
|
})(["min-width:150px;"]);
|
|
@@ -44377,15 +44393,15 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
44377
44393
|
option: itemType
|
|
44378
44394
|
};
|
|
44379
44395
|
});
|
|
44380
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown$
|
|
44396
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(WrapperContainer, null, React__default.createElement(StyledDropdown$2, {
|
|
44381
44397
|
options: rankTypeOptions,
|
|
44382
44398
|
onChange: onChangeRankType,
|
|
44383
44399
|
width: "80%"
|
|
44384
|
-
}), rankType === 'Class' ? React__default.createElement(StyledDropdown$
|
|
44400
|
+
}), rankType === 'Class' ? React__default.createElement(StyledDropdown$2, {
|
|
44385
44401
|
options: classTypeOptions,
|
|
44386
44402
|
onChange: onChangeClassType,
|
|
44387
44403
|
width: "100%"
|
|
44388
|
-
}) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown$
|
|
44404
|
+
}) : null, rankType === 'Skill' ? React__default.createElement(StyledDropdown$2, {
|
|
44389
44405
|
options: skillTypeOptions,
|
|
44390
44406
|
onChange: onChangeSkillType,
|
|
44391
44407
|
width: "100%"
|
|
@@ -44401,7 +44417,7 @@ var WrapperContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44401
44417
|
displayName: "Leaderboard__WrapperContainer",
|
|
44402
44418
|
componentId: "sc-1wdsq7i-0"
|
|
44403
44419
|
})(["display:grid;grid-template-columns:50% 50%;justify-content:space-between;width:calc(100% - 40px);margin-left:10px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
|
|
44404
|
-
var StyledDropdown$
|
|
44420
|
+
var StyledDropdown$2 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
44405
44421
|
displayName: "Leaderboard__StyledDropdown",
|
|
44406
44422
|
componentId: "sc-1wdsq7i-1"
|
|
44407
44423
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -44498,11 +44514,11 @@ var Tabs = function Tabs(_ref) {
|
|
|
44498
44514
|
var TabsContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
44499
44515
|
displayName: "Tabs__TabsContainer",
|
|
44500
44516
|
componentId: "sc-n35er2-0"
|
|
44501
|
-
})(["display:flex;gap:
|
|
44517
|
+
})(["display:flex;gap:10px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
|
|
44502
44518
|
var TabButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
44503
44519
|
displayName: "Tabs__TabButton",
|
|
44504
44520
|
componentId: "sc-n35er2-1"
|
|
44505
|
-
})(["display:flex;align-items:center;gap:
|
|
44521
|
+
})(["display:flex;align-items:center;gap:5px;background:transparent;border:none;border-bottom:", ";color:", ";font-family:'Press Start 2P',cursive;font-size:0.60rem;letter-spacing:0.5px;cursor:pointer;padding:5px 7px 10px 7px;transition:color 0.2s,border-bottom 0.2s;white-space:nowrap;&:hover{color:#ffffff;}"], function (_ref2) {
|
|
44506
44522
|
var $active = _ref2.$active;
|
|
44507
44523
|
return $active ? '3px solid #f59e0b' : '3px solid transparent';
|
|
44508
44524
|
}, function (_ref3) {
|
|
@@ -44713,12 +44729,12 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44713
44729
|
placeholder: "Search by name...",
|
|
44714
44730
|
onFocus: disableHotkeys,
|
|
44715
44731
|
onBlur: enableHotkeys
|
|
44716
|
-
})), React__default.createElement(FiltersRow, null, React__default.createElement(StyledDropdown$
|
|
44732
|
+
})), React__default.createElement(FiltersRow, null, React__default.createElement(StyledDropdown$3, {
|
|
44717
44733
|
key: "type-" + selectedType,
|
|
44718
44734
|
options: typeOptions,
|
|
44719
44735
|
onChange: handleTypeChange,
|
|
44720
44736
|
width: "100%"
|
|
44721
|
-
}), React__default.createElement(StyledDropdown$
|
|
44737
|
+
}), React__default.createElement(StyledDropdown$3, {
|
|
44722
44738
|
key: "subtype-" + selectedSubType,
|
|
44723
44739
|
options: subTypeOptions,
|
|
44724
44740
|
onChange: handleSubTypeChange,
|
|
@@ -44773,7 +44789,7 @@ var FiltersRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44773
44789
|
displayName: "BlueprintSearchModal__FiltersRow",
|
|
44774
44790
|
componentId: "sc-i7bssq-8"
|
|
44775
44791
|
})(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]);
|
|
44776
|
-
var StyledDropdown$
|
|
44792
|
+
var StyledDropdown$3 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
44777
44793
|
displayName: "BlueprintSearchModal__StyledDropdown",
|
|
44778
44794
|
componentId: "sc-i7bssq-9"
|
|
44779
44795
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -44923,7 +44939,7 @@ var BuyOrderDetailsModal = function BuyOrderDetailsModal(_ref) {
|
|
|
44923
44939
|
min: 1,
|
|
44924
44940
|
onFocus: disableHotkeys,
|
|
44925
44941
|
onBlur: enableHotkeys
|
|
44926
|
-
})), React__default.createElement(FieldRow, null, React__default.createElement(Label$4, null, "Rarity"), React__default.createElement(StyledDropdown$
|
|
44942
|
+
})), React__default.createElement(FieldRow, null, React__default.createElement(Label$4, null, "Rarity"), React__default.createElement(StyledDropdown$4, {
|
|
44927
44943
|
key: rarity,
|
|
44928
44944
|
options: rarityOptions,
|
|
44929
44945
|
onChange: onRarityChange,
|
|
@@ -45000,7 +45016,7 @@ var StyledInput$3 = /*#__PURE__*/styled__default(Input).withConfig({
|
|
|
45000
45016
|
displayName: "BuyOrderDetailsModal__StyledInput",
|
|
45001
45017
|
componentId: "sc-6bghe9-14"
|
|
45002
45018
|
})(["width:100%;"]);
|
|
45003
|
-
var StyledDropdown$
|
|
45019
|
+
var StyledDropdown$4 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
45004
45020
|
displayName: "BuyOrderDetailsModal__StyledDropdown",
|
|
45005
45021
|
componentId: "sc-6bghe9-15"
|
|
45006
45022
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -46162,18 +46178,18 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46162
46178
|
height: 18
|
|
46163
46179
|
}))), showFilters && React__default.createElement(OptionsWrapper, {
|
|
46164
46180
|
showFilters: showFilters
|
|
46165
|
-
}, React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$
|
|
46181
|
+
}, React__default.createElement(WrapperContainer$1, null, React__default.createElement(StyledDropdown$5, {
|
|
46166
46182
|
options: itemTypeOptions,
|
|
46167
46183
|
onChange: onChangeType,
|
|
46168
46184
|
width: "100%"
|
|
46169
|
-
}), React__default.createElement(StyledDropdown$
|
|
46185
|
+
}), React__default.createElement(StyledDropdown$5, {
|
|
46170
46186
|
options: itemRarityOptions,
|
|
46171
46187
|
onChange: function onChange(value) {
|
|
46172
46188
|
setSelectedRarity(value);
|
|
46173
46189
|
onChangeRarity(value);
|
|
46174
46190
|
},
|
|
46175
46191
|
width: "100%"
|
|
46176
|
-
}), React__default.createElement(StyledDropdown$
|
|
46192
|
+
}), React__default.createElement(StyledDropdown$5, {
|
|
46177
46193
|
options: orderByOptions,
|
|
46178
46194
|
onChange: onChangeOrder,
|
|
46179
46195
|
width: "100%"
|
|
@@ -46357,7 +46373,7 @@ var PagerFooter = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
46357
46373
|
displayName: "BuyPanel__PagerFooter",
|
|
46358
46374
|
componentId: "sc-1si8t7i-13"
|
|
46359
46375
|
})(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
|
|
46360
|
-
var StyledDropdown$
|
|
46376
|
+
var StyledDropdown$5 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
46361
46377
|
displayName: "BuyPanel__StyledDropdown",
|
|
46362
46378
|
componentId: "sc-1si8t7i-14"
|
|
46363
46379
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -46427,7 +46443,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
|
|
|
46427
46443
|
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
46428
46444
|
return dcToGoldSwapRate > 0 ? shared.goldToDC(goldPrice) : 0;
|
|
46429
46445
|
};
|
|
46430
|
-
return React__default.createElement(PanelWrapper$1, null, React__default.createElement(FilterRow$2, null, React__default.createElement(FilterLabel$1, null, "FILTER BY TYPE"), React__default.createElement(StyledDropdown$
|
|
46446
|
+
return React__default.createElement(PanelWrapper$1, null, React__default.createElement(FilterRow$2, null, React__default.createElement(FilterLabel$1, null, "FILTER BY TYPE"), React__default.createElement(StyledDropdown$6, {
|
|
46431
46447
|
key: selectedType,
|
|
46432
46448
|
options: transactionTypeOptions,
|
|
46433
46449
|
onChange: onTypeChange,
|
|
@@ -46490,7 +46506,7 @@ var FilterLabel$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
|
46490
46506
|
displayName: "HistoryPanel__FilterLabel",
|
|
46491
46507
|
componentId: "sc-74mioa-2"
|
|
46492
46508
|
})(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
|
|
46493
|
-
var StyledDropdown$
|
|
46509
|
+
var StyledDropdown$6 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
46494
46510
|
displayName: "HistoryPanel__StyledDropdown",
|
|
46495
46511
|
componentId: "sc-74mioa-3"
|
|
46496
46512
|
})(["margin:0px !important;"]);
|
|
@@ -46912,7 +46928,8 @@ var Marketplace = function Marketplace(props) {
|
|
|
46912
46928
|
_props$historySelecte = props.historySelectedType,
|
|
46913
46929
|
historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
|
|
46914
46930
|
onHistoryTypeChange = props.onHistoryTypeChange,
|
|
46915
|
-
onHistoryPageChange = props.onHistoryPageChange
|
|
46931
|
+
onHistoryPageChange = props.onHistoryPageChange,
|
|
46932
|
+
walletProps = props.walletProps;
|
|
46916
46933
|
var _useState = React.useState('marketplace'),
|
|
46917
46934
|
activeTab = _useState[0],
|
|
46918
46935
|
setActiveTab = _useState[1];
|
|
@@ -46975,14 +46992,21 @@ var Marketplace = function Marketplace(props) {
|
|
|
46975
46992
|
width: 18,
|
|
46976
46993
|
height: 18
|
|
46977
46994
|
})
|
|
46978
|
-
}
|
|
46995
|
+
}].concat(walletProps ? [{
|
|
46996
|
+
id: 'wallet',
|
|
46997
|
+
label: 'Wallet',
|
|
46998
|
+
icon: React__default.createElement(Wallet.Wallet, {
|
|
46999
|
+
width: 18,
|
|
47000
|
+
height: 18
|
|
47001
|
+
})
|
|
47002
|
+
}] : [], [{
|
|
46979
47003
|
id: 'settings',
|
|
46980
47004
|
label: 'Settings',
|
|
46981
47005
|
icon: React__default.createElement(Settings2.Settings2, {
|
|
46982
47006
|
width: 18,
|
|
46983
47007
|
height: 18
|
|
46984
47008
|
})
|
|
46985
|
-
}],
|
|
47009
|
+
}]),
|
|
46986
47010
|
activeTabId: activeTab,
|
|
46987
47011
|
onTabChange: handleTabChange
|
|
46988
47012
|
}), activeTab === 'marketplace' && React__default.createElement(BuyPanel, Object.assign({}, props)), activeTab === 'sell' && React__default.createElement(ManagmentPanel, Object.assign({}, props, {
|
|
@@ -47036,7 +47060,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
47036
47060
|
atlasJSON: props.atlasJSON,
|
|
47037
47061
|
atlasIMG: props.atlasIMG,
|
|
47038
47062
|
dcToGoldSwapRate: props.dcToGoldSwapRate
|
|
47039
|
-
}), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
|
|
47063
|
+
}), activeTab === 'wallet' && walletProps && React__default.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
|
|
47040
47064
|
acceptedCurrency: acceptedCurrency,
|
|
47041
47065
|
onAcceptedCurrencyChange: handleCurrencyChange
|
|
47042
47066
|
}), showSharedPager && React__default.createElement(PagerContainer$3, null, React__default.createElement(Pager, Object.assign({}, props))));
|
|
@@ -47366,10 +47390,10 @@ var RowsWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
47366
47390
|
componentId: "sc-eu8ggt-2"
|
|
47367
47391
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
47368
47392
|
|
|
47369
|
-
var _excluded$
|
|
47393
|
+
var _excluded$4 = ["children"];
|
|
47370
47394
|
var HighlightedText = function HighlightedText(_ref) {
|
|
47371
47395
|
var children = _ref.children,
|
|
47372
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
47396
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
47373
47397
|
return React__default.createElement(Text, Object.assign({}, rest), children);
|
|
47374
47398
|
};
|
|
47375
47399
|
var Text = /*#__PURE__*/styled__default.p.withConfig({
|
|
@@ -69771,7 +69795,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
69771
69795
|
value: searchOptions.value,
|
|
69772
69796
|
onChange: searchOptions.onChange,
|
|
69773
69797
|
placeholder: searchOptions.placeholder || 'Search...'
|
|
69774
|
-
})), filterOptions && React__default.createElement(FilterContainer$1, null, React__default.createElement(StyledDropdown$
|
|
69798
|
+
})), filterOptions && React__default.createElement(FilterContainer$1, null, React__default.createElement(StyledDropdown$7, {
|
|
69775
69799
|
options: filterOptions.options,
|
|
69776
69800
|
onChange: filterOptions.onOptionChange,
|
|
69777
69801
|
width: "200px"
|
|
@@ -69810,7 +69834,7 @@ var StyledSearchBar$2 = /*#__PURE__*/styled__default(SearchBar).withConfig({
|
|
|
69810
69834
|
displayName: "ScrollableContent__StyledSearchBar",
|
|
69811
69835
|
componentId: "sc-xhh2um-5"
|
|
69812
69836
|
})(["width:100%;"]);
|
|
69813
|
-
var StyledDropdown$
|
|
69837
|
+
var StyledDropdown$7 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
69814
69838
|
displayName: "ScrollableContent__StyledDropdown",
|
|
69815
69839
|
componentId: "sc-xhh2um-6"
|
|
69816
69840
|
})(["min-width:150px;"]);
|
|
@@ -71434,6 +71458,7 @@ exports.CheckButton = CheckButton;
|
|
|
71434
71458
|
exports.CheckItem = CheckItem;
|
|
71435
71459
|
exports.CircularController = CircularController;
|
|
71436
71460
|
exports.CraftBook = CraftBook;
|
|
71461
|
+
exports.DCWalletContent = DCWalletContent;
|
|
71437
71462
|
exports.DCWalletModal = DCWalletModal;
|
|
71438
71463
|
exports.DailyTasks = DailyTasks;
|
|
71439
71464
|
exports.DraggableContainer = DraggableContainer;
|