@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -20,6 +20,7 @@ import { Settings2 } from 'pixelarticons/react/Settings2';
|
|
|
20
20
|
import { ShoppingBag } from 'pixelarticons/react/ShoppingBag';
|
|
21
21
|
import { ShoppingCart } from 'pixelarticons/react/ShoppingCart';
|
|
22
22
|
import { Store as Store$1 } from 'pixelarticons/react/Store';
|
|
23
|
+
import { Wallet } from 'pixelarticons/react/Wallet';
|
|
23
24
|
import { Search } from 'pixelarticons/react/Search';
|
|
24
25
|
import { Delete } from 'pixelarticons/react/Delete';
|
|
25
26
|
import 'rpgui/rpgui.css';
|
|
@@ -39180,32 +39181,41 @@ var TRANSACTION_TYPE_COLORS = {
|
|
|
39180
39181
|
AdminAdjustment: '#9ca3af'
|
|
39181
39182
|
};
|
|
39182
39183
|
var TRANSACTION_TYPE_OPTIONS = [{
|
|
39184
|
+
id: 1,
|
|
39183
39185
|
value: '',
|
|
39184
|
-
|
|
39186
|
+
option: 'All Types'
|
|
39185
39187
|
}, {
|
|
39188
|
+
id: 2,
|
|
39186
39189
|
value: 'Purchase',
|
|
39187
|
-
|
|
39190
|
+
option: 'Purchase'
|
|
39188
39191
|
}, {
|
|
39192
|
+
id: 3,
|
|
39189
39193
|
value: 'Transfer',
|
|
39190
|
-
|
|
39194
|
+
option: 'Transfer'
|
|
39191
39195
|
}, {
|
|
39196
|
+
id: 4,
|
|
39192
39197
|
value: 'MarketplaceSale',
|
|
39193
|
-
|
|
39198
|
+
option: 'Marketplace Sale'
|
|
39194
39199
|
}, {
|
|
39200
|
+
id: 5,
|
|
39195
39201
|
value: 'MarketplacePurchase',
|
|
39196
|
-
|
|
39202
|
+
option: 'Marketplace Buy'
|
|
39197
39203
|
}, {
|
|
39204
|
+
id: 6,
|
|
39198
39205
|
value: 'StorePurchase',
|
|
39199
|
-
|
|
39206
|
+
option: 'Store Purchase'
|
|
39200
39207
|
}, {
|
|
39208
|
+
id: 7,
|
|
39201
39209
|
value: 'Fee',
|
|
39202
|
-
|
|
39210
|
+
option: 'Fee'
|
|
39203
39211
|
}, {
|
|
39212
|
+
id: 8,
|
|
39204
39213
|
value: 'Refund',
|
|
39205
|
-
|
|
39214
|
+
option: 'Refund'
|
|
39206
39215
|
}, {
|
|
39216
|
+
id: 9,
|
|
39207
39217
|
value: 'AdminAdjustment',
|
|
39208
|
-
|
|
39218
|
+
option: 'Admin Adjustment'
|
|
39209
39219
|
}];
|
|
39210
39220
|
var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
39211
39221
|
var transactions = _ref.transactions,
|
|
@@ -39221,8 +39231,7 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
|
39221
39231
|
onRequestHistory(1);
|
|
39222
39232
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39223
39233
|
}, []);
|
|
39224
|
-
var handleTypeChange = function handleTypeChange(
|
|
39225
|
-
var value = e.target.value;
|
|
39234
|
+
var handleTypeChange = function handleTypeChange(value) {
|
|
39226
39235
|
setSelectedType(value);
|
|
39227
39236
|
onRequestHistory(1, value || undefined);
|
|
39228
39237
|
};
|
|
@@ -39233,15 +39242,12 @@ var DCHistoryPanel = function DCHistoryPanel(_ref) {
|
|
|
39233
39242
|
var d = new Date(dateStr);
|
|
39234
39243
|
return d.getMonth() + 1 + "/" + d.getDate() + "/" + String(d.getFullYear()).slice(-2);
|
|
39235
39244
|
};
|
|
39236
|
-
return React.createElement(PanelContainer, null, React.createElement(FilterRow, null, React.createElement(FilterLabel, null, "
|
|
39237
|
-
|
|
39238
|
-
|
|
39239
|
-
|
|
39240
|
-
|
|
39241
|
-
|
|
39242
|
-
value: opt.value
|
|
39243
|
-
}, opt.label);
|
|
39244
|
-
}))), loading && React.createElement(LoadingRow, null, React.createElement(Spinner, null), React.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React.createElement(TransactionList, null, transactions.map(function (tx) {
|
|
39245
|
+
return React.createElement(PanelContainer, null, React.createElement(FilterRow, null, React.createElement(FilterLabel, null, "FILTER BY TYPE"), React.createElement(StyledDropdown, {
|
|
39246
|
+
key: selectedType,
|
|
39247
|
+
options: TRANSACTION_TYPE_OPTIONS,
|
|
39248
|
+
onChange: handleTypeChange,
|
|
39249
|
+
width: "100%"
|
|
39250
|
+
})), loading && React.createElement(LoadingRow, null, React.createElement(Spinner, null), React.createElement("span", null, "Loading...")), !loading && transactions.length === 0 && React.createElement(EmptyMessage, null, "No transactions found."), !loading && transactions.length > 0 && React.createElement(TransactionList, null, transactions.map(function (tx) {
|
|
39245
39251
|
var _TRANSACTION_TYPE_LAB, _TRANSACTION_TYPE_COL, _tx$note;
|
|
39246
39252
|
var isCredit = tx.amount > 0;
|
|
39247
39253
|
var label = (_TRANSACTION_TYPE_LAB = TRANSACTION_TYPE_LABELS[tx.type]) != null ? _TRANSACTION_TYPE_LAB : tx.type;
|
|
@@ -39274,15 +39280,15 @@ var PanelContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
39274
39280
|
var FilterRow = /*#__PURE__*/styled.div.withConfig({
|
|
39275
39281
|
displayName: "DCHistoryPanel__FilterRow",
|
|
39276
39282
|
componentId: "sc-debjdj-1"
|
|
39277
|
-
})(["display:flex;align-items:center;gap:
|
|
39278
|
-
var FilterLabel = /*#__PURE__*/styled.
|
|
39283
|
+
})(["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;"]);
|
|
39284
|
+
var FilterLabel = /*#__PURE__*/styled.p.withConfig({
|
|
39279
39285
|
displayName: "DCHistoryPanel__FilterLabel",
|
|
39280
39286
|
componentId: "sc-debjdj-2"
|
|
39281
|
-
})(["font-size:
|
|
39282
|
-
var
|
|
39283
|
-
displayName: "
|
|
39287
|
+
})(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
|
|
39288
|
+
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
39289
|
+
displayName: "DCHistoryPanel__StyledDropdown",
|
|
39284
39290
|
componentId: "sc-debjdj-3"
|
|
39285
|
-
})(["
|
|
39291
|
+
})(["margin:0px !important;"]);
|
|
39286
39292
|
var TransactionList = /*#__PURE__*/styled.div.withConfig({
|
|
39287
39293
|
displayName: "DCHistoryPanel__TransactionList",
|
|
39288
39294
|
componentId: "sc-debjdj-4"
|
|
@@ -39680,10 +39686,9 @@ var DropdownItem = /*#__PURE__*/styled.li.withConfig({
|
|
|
39680
39686
|
componentId: "sc-k1vvb1-9"
|
|
39681
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);
|
|
39682
39688
|
|
|
39683
|
-
var
|
|
39689
|
+
var DCWalletContent = function DCWalletContent(_ref) {
|
|
39684
39690
|
var _historyData$transact, _historyData$totalPag, _historyData$currentP;
|
|
39685
39691
|
var dcBalance = _ref.dcBalance,
|
|
39686
|
-
onClose = _ref.onClose,
|
|
39687
39692
|
historyData = _ref.historyData,
|
|
39688
39693
|
historyLoading = _ref.historyLoading,
|
|
39689
39694
|
onRequestHistory = _ref.onRequestHistory,
|
|
@@ -39700,13 +39705,10 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39700
39705
|
var _useState = useState('balance'),
|
|
39701
39706
|
activeTab = _useState[0],
|
|
39702
39707
|
setActiveTab = _useState[1];
|
|
39703
|
-
var stopPropagation = useCallback(function (e) {
|
|
39704
|
-
e.stopPropagation();
|
|
39705
|
-
}, []);
|
|
39706
39708
|
var tabs = [{
|
|
39707
39709
|
id: 'balance',
|
|
39708
39710
|
title: 'Balance',
|
|
39709
|
-
content: React.createElement(BalanceContent, null, React.createElement(BalanceLabel, null, "Your DC Balance"), React.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " DC"), onBuyDC && React.createElement(BuyButton, {
|
|
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, {
|
|
39710
39712
|
onPointerDown: onBuyDC,
|
|
39711
39713
|
title: "Buy Definya Coins"
|
|
39712
39714
|
}, React.createElement(FaShoppingCart, null), React.createElement(BuyButtonLabel, null, "Buy More DC")))
|
|
@@ -39736,16 +39738,7 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39736
39738
|
onRequestHistory: onRequestHistory
|
|
39737
39739
|
})
|
|
39738
39740
|
}];
|
|
39739
|
-
return React.createElement(
|
|
39740
|
-
onPointerDown: onClose
|
|
39741
|
-
}), React.createElement(ModalContainer$1, null, React.createElement(ModalContent$1, {
|
|
39742
|
-
onClick: stopPropagation,
|
|
39743
|
-
onTouchStart: stopPropagation,
|
|
39744
|
-
onPointerDown: stopPropagation
|
|
39745
|
-
}, React.createElement(Header$3, null, React.createElement(Title$4, null, "DC Wallet"), React.createElement(CloseButton$5, {
|
|
39746
|
-
onPointerDown: onClose,
|
|
39747
|
-
"aria-label": "Close"
|
|
39748
|
-
}, React.createElement(FaTimes, null))), React.createElement(WalletContainer, null, React.createElement(InternalTabs, {
|
|
39741
|
+
return React.createElement(WalletContainer, null, React.createElement(InternalTabs, {
|
|
39749
39742
|
tabs: tabs,
|
|
39750
39743
|
activeTab: activeTab,
|
|
39751
39744
|
onTabChange: function onTabChange(tabId) {
|
|
@@ -39759,7 +39752,54 @@ var DCWalletModal = function DCWalletModal(_ref) {
|
|
|
39759
39752
|
inactiveColor: "#6b7280",
|
|
39760
39753
|
borderColor: "#f59e0b",
|
|
39761
39754
|
hoverColor: "#fef3c7"
|
|
39762
|
-
}))
|
|
39755
|
+
}));
|
|
39756
|
+
};
|
|
39757
|
+
var WalletContainer = /*#__PURE__*/styled.div.withConfig({
|
|
39758
|
+
displayName: "DCWalletContent__WalletContainer",
|
|
39759
|
+
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",
|
|
39763
|
+
componentId: "sc-1hrivmk-1"
|
|
39764
|
+
})(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
|
|
39765
|
+
var BalanceLabel = /*#__PURE__*/styled.span.withConfig({
|
|
39766
|
+
displayName: "DCWalletContent__BalanceLabel",
|
|
39767
|
+
componentId: "sc-1hrivmk-2"
|
|
39768
|
+
})(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
|
|
39769
|
+
var BalanceAmount = /*#__PURE__*/styled.div.withConfig({
|
|
39770
|
+
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
|
+
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;}"]);
|
|
39781
|
+
var BuyButtonLabel = /*#__PURE__*/styled.span.withConfig({
|
|
39782
|
+
displayName: "DCWalletContent__BuyButtonLabel",
|
|
39783
|
+
componentId: "sc-1hrivmk-6"
|
|
39784
|
+
})(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
|
|
39785
|
+
|
|
39786
|
+
var _excluded$3 = ["onClose"];
|
|
39787
|
+
var DCWalletModal = function DCWalletModal(_ref) {
|
|
39788
|
+
var onClose = _ref.onClose,
|
|
39789
|
+
contentProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
39790
|
+
var stopPropagation = useCallback(function (e) {
|
|
39791
|
+
e.stopPropagation();
|
|
39792
|
+
}, []);
|
|
39793
|
+
return React.createElement(ModalPortal, null, React.createElement(Overlay$1, {
|
|
39794
|
+
onPointerDown: onClose
|
|
39795
|
+
}), React.createElement(ModalContainer$1, null, React.createElement(ModalContent$1, {
|
|
39796
|
+
onClick: stopPropagation,
|
|
39797
|
+
onTouchStart: stopPropagation,
|
|
39798
|
+
onPointerDown: stopPropagation
|
|
39799
|
+
}, React.createElement(Header$3, null, React.createElement(Title$4, null, "DC Wallet"), React.createElement(CloseButton$5, {
|
|
39800
|
+
onPointerDown: onClose,
|
|
39801
|
+
"aria-label": "Close"
|
|
39802
|
+
}, React.createElement(FaTimes, null))), React.createElement(DCWalletContent, Object.assign({}, contentProps)))));
|
|
39763
39803
|
};
|
|
39764
39804
|
var Overlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
39765
39805
|
displayName: "DCWalletModal__Overlay",
|
|
@@ -39785,30 +39825,6 @@ var CloseButton$5 = /*#__PURE__*/styled.button.withConfig({
|
|
|
39785
39825
|
displayName: "DCWalletModal__CloseButton",
|
|
39786
39826
|
componentId: "sc-12xy88y-5"
|
|
39787
39827
|
})(["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;}"]);
|
|
39788
|
-
var WalletContainer = /*#__PURE__*/styled.div.withConfig({
|
|
39789
|
-
displayName: "DCWalletModal__WalletContainer",
|
|
39790
|
-
componentId: "sc-12xy88y-6"
|
|
39791
|
-
})(["display:flex;flex-direction:column;width:100%;min-height:300px;gap:0.5rem;"]);
|
|
39792
|
-
var BalanceContent = /*#__PURE__*/styled.div.withConfig({
|
|
39793
|
-
displayName: "DCWalletModal__BalanceContent",
|
|
39794
|
-
componentId: "sc-12xy88y-7"
|
|
39795
|
-
})(["display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;"]);
|
|
39796
|
-
var BalanceLabel = /*#__PURE__*/styled.span.withConfig({
|
|
39797
|
-
displayName: "DCWalletModal__BalanceLabel",
|
|
39798
|
-
componentId: "sc-12xy88y-8"
|
|
39799
|
-
})(["font-family:'Press Start 2P',cursive;font-size:10px;color:", ";"], uiColors.lightGray);
|
|
39800
|
-
var BalanceAmount = /*#__PURE__*/styled.div.withConfig({
|
|
39801
|
-
displayName: "DCWalletModal__BalanceAmount",
|
|
39802
|
-
componentId: "sc-12xy88y-9"
|
|
39803
|
-
})(["font-family:'Press Start 2P',cursive;font-size:28px;color:#fef08a;text-shadow:2px 2px 0 #000;letter-spacing:2px;"]);
|
|
39804
|
-
var BuyButton = /*#__PURE__*/styled.button.withConfig({
|
|
39805
|
-
displayName: "DCWalletModal__BuyButton",
|
|
39806
|
-
componentId: "sc-12xy88y-10"
|
|
39807
|
-
})(["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;}"]);
|
|
39808
|
-
var BuyButtonLabel = /*#__PURE__*/styled.span.withConfig({
|
|
39809
|
-
displayName: "DCWalletModal__BuyButtonLabel",
|
|
39810
|
-
componentId: "sc-12xy88y-11"
|
|
39811
|
-
})(["font-family:'Press Start 2P',cursive;font-size:8px;"]);
|
|
39812
39828
|
|
|
39813
39829
|
var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
39814
39830
|
var value = _ref.value,
|
|
@@ -41639,7 +41655,7 @@ var SearchHeader$1 = function SearchHeader(_ref) {
|
|
|
41639
41655
|
rightElement: searchOptions.rightElement
|
|
41640
41656
|
})), filterOptions && React.createElement(FilterContainer, {
|
|
41641
41657
|
"$isSmallScreen": isSmallScreen
|
|
41642
|
-
}, React.createElement(StyledDropdown, {
|
|
41658
|
+
}, React.createElement(StyledDropdown$1, {
|
|
41643
41659
|
options: filterOptions.options,
|
|
41644
41660
|
onChange: filterOptions.onOptionChange,
|
|
41645
41661
|
width: isSmallScreen ? '100%' : '200px'
|
|
@@ -41677,7 +41693,7 @@ var StyledSearchBar = /*#__PURE__*/styled(SearchBar).withConfig({
|
|
|
41677
41693
|
displayName: "SearchHeader__StyledSearchBar",
|
|
41678
41694
|
componentId: "sc-1xd17jb-4"
|
|
41679
41695
|
})(["width:100%;"]);
|
|
41680
|
-
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
41696
|
+
var StyledDropdown$1 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
41681
41697
|
displayName: "SearchHeader__StyledDropdown",
|
|
41682
41698
|
componentId: "sc-1xd17jb-5"
|
|
41683
41699
|
})(["min-width:150px;"]);
|
|
@@ -44374,15 +44390,15 @@ var Leaderboard = function Leaderboard(props) {
|
|
|
44374
44390
|
option: itemType
|
|
44375
44391
|
};
|
|
44376
44392
|
});
|
|
44377
|
-
return React.createElement(React.Fragment, null, React.createElement(WrapperContainer, null, React.createElement(StyledDropdown$
|
|
44393
|
+
return React.createElement(React.Fragment, null, React.createElement(WrapperContainer, null, React.createElement(StyledDropdown$2, {
|
|
44378
44394
|
options: rankTypeOptions,
|
|
44379
44395
|
onChange: onChangeRankType,
|
|
44380
44396
|
width: "80%"
|
|
44381
|
-
}), rankType === 'Class' ? React.createElement(StyledDropdown$
|
|
44397
|
+
}), rankType === 'Class' ? React.createElement(StyledDropdown$2, {
|
|
44382
44398
|
options: classTypeOptions,
|
|
44383
44399
|
onChange: onChangeClassType,
|
|
44384
44400
|
width: "100%"
|
|
44385
|
-
}) : null, rankType === 'Skill' ? React.createElement(StyledDropdown$
|
|
44401
|
+
}) : null, rankType === 'Skill' ? React.createElement(StyledDropdown$2, {
|
|
44386
44402
|
options: skillTypeOptions,
|
|
44387
44403
|
onChange: onChangeSkillType,
|
|
44388
44404
|
width: "100%"
|
|
@@ -44398,7 +44414,7 @@ var WrapperContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
44398
44414
|
displayName: "Leaderboard__WrapperContainer",
|
|
44399
44415
|
componentId: "sc-1wdsq7i-0"
|
|
44400
44416
|
})(["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;}"]);
|
|
44401
|
-
var StyledDropdown$
|
|
44417
|
+
var StyledDropdown$2 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
44402
44418
|
displayName: "Leaderboard__StyledDropdown",
|
|
44403
44419
|
componentId: "sc-1wdsq7i-1"
|
|
44404
44420
|
})(["margin:3px !important;width:170px !important;"]);
|
|
@@ -44495,11 +44511,11 @@ var Tabs = function Tabs(_ref) {
|
|
|
44495
44511
|
var TabsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
44496
44512
|
displayName: "Tabs__TabsContainer",
|
|
44497
44513
|
componentId: "sc-n35er2-0"
|
|
44498
|
-
})(["display:flex;gap:
|
|
44514
|
+
})(["display:flex;gap:10px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
|
|
44499
44515
|
var TabButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
44500
44516
|
displayName: "Tabs__TabButton",
|
|
44501
44517
|
componentId: "sc-n35er2-1"
|
|
44502
|
-
})(["display:flex;align-items:center;gap:
|
|
44518
|
+
})(["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) {
|
|
44503
44519
|
var $active = _ref2.$active;
|
|
44504
44520
|
return $active ? '3px solid #f59e0b' : '3px solid transparent';
|
|
44505
44521
|
}, function (_ref3) {
|
|
@@ -44710,12 +44726,12 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44710
44726
|
placeholder: "Search by name...",
|
|
44711
44727
|
onFocus: disableHotkeys,
|
|
44712
44728
|
onBlur: enableHotkeys
|
|
44713
|
-
})), React.createElement(FiltersRow, null, React.createElement(StyledDropdown$
|
|
44729
|
+
})), React.createElement(FiltersRow, null, React.createElement(StyledDropdown$3, {
|
|
44714
44730
|
key: "type-" + selectedType,
|
|
44715
44731
|
options: typeOptions,
|
|
44716
44732
|
onChange: handleTypeChange,
|
|
44717
44733
|
width: "100%"
|
|
44718
|
-
}), React.createElement(StyledDropdown$
|
|
44734
|
+
}), React.createElement(StyledDropdown$3, {
|
|
44719
44735
|
key: "subtype-" + selectedSubType,
|
|
44720
44736
|
options: subTypeOptions,
|
|
44721
44737
|
onChange: handleSubTypeChange,
|
|
@@ -44770,7 +44786,7 @@ var FiltersRow = /*#__PURE__*/styled.div.withConfig({
|
|
|
44770
44786
|
displayName: "BlueprintSearchModal__FiltersRow",
|
|
44771
44787
|
componentId: "sc-i7bssq-8"
|
|
44772
44788
|
})(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]);
|
|
44773
|
-
var StyledDropdown$
|
|
44789
|
+
var StyledDropdown$3 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
44774
44790
|
displayName: "BlueprintSearchModal__StyledDropdown",
|
|
44775
44791
|
componentId: "sc-i7bssq-9"
|
|
44776
44792
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -44920,7 +44936,7 @@ var BuyOrderDetailsModal = function BuyOrderDetailsModal(_ref) {
|
|
|
44920
44936
|
min: 1,
|
|
44921
44937
|
onFocus: disableHotkeys,
|
|
44922
44938
|
onBlur: enableHotkeys
|
|
44923
|
-
})), React.createElement(FieldRow, null, React.createElement(Label$4, null, "Rarity"), React.createElement(StyledDropdown$
|
|
44939
|
+
})), React.createElement(FieldRow, null, React.createElement(Label$4, null, "Rarity"), React.createElement(StyledDropdown$4, {
|
|
44924
44940
|
key: rarity,
|
|
44925
44941
|
options: rarityOptions,
|
|
44926
44942
|
onChange: onRarityChange,
|
|
@@ -44997,7 +45013,7 @@ var StyledInput$3 = /*#__PURE__*/styled(Input).withConfig({
|
|
|
44997
45013
|
displayName: "BuyOrderDetailsModal__StyledInput",
|
|
44998
45014
|
componentId: "sc-6bghe9-14"
|
|
44999
45015
|
})(["width:100%;"]);
|
|
45000
|
-
var StyledDropdown$
|
|
45016
|
+
var StyledDropdown$4 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
45001
45017
|
displayName: "BuyOrderDetailsModal__StyledDropdown",
|
|
45002
45018
|
componentId: "sc-6bghe9-15"
|
|
45003
45019
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -46159,18 +46175,18 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46159
46175
|
height: 18
|
|
46160
46176
|
}))), showFilters && React.createElement(OptionsWrapper, {
|
|
46161
46177
|
showFilters: showFilters
|
|
46162
|
-
}, React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$
|
|
46178
|
+
}, React.createElement(WrapperContainer$1, null, React.createElement(StyledDropdown$5, {
|
|
46163
46179
|
options: itemTypeOptions,
|
|
46164
46180
|
onChange: onChangeType,
|
|
46165
46181
|
width: "100%"
|
|
46166
|
-
}), React.createElement(StyledDropdown$
|
|
46182
|
+
}), React.createElement(StyledDropdown$5, {
|
|
46167
46183
|
options: itemRarityOptions,
|
|
46168
46184
|
onChange: function onChange(value) {
|
|
46169
46185
|
setSelectedRarity(value);
|
|
46170
46186
|
onChangeRarity(value);
|
|
46171
46187
|
},
|
|
46172
46188
|
width: "100%"
|
|
46173
|
-
}), React.createElement(StyledDropdown$
|
|
46189
|
+
}), React.createElement(StyledDropdown$5, {
|
|
46174
46190
|
options: orderByOptions,
|
|
46175
46191
|
onChange: onChangeOrder,
|
|
46176
46192
|
width: "100%"
|
|
@@ -46354,7 +46370,7 @@ var PagerFooter = /*#__PURE__*/styled.div.withConfig({
|
|
|
46354
46370
|
displayName: "BuyPanel__PagerFooter",
|
|
46355
46371
|
componentId: "sc-1si8t7i-13"
|
|
46356
46372
|
})(["display:flex;justify-content:center;align-items:center;padding:8px 0 4px;min-height:36px;width:95%;margin:0 auto;"]);
|
|
46357
|
-
var StyledDropdown$
|
|
46373
|
+
var StyledDropdown$5 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
46358
46374
|
displayName: "BuyPanel__StyledDropdown",
|
|
46359
46375
|
componentId: "sc-1si8t7i-14"
|
|
46360
46376
|
})(["margin:0px !important;width:100% !important;"]);
|
|
@@ -46424,7 +46440,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
|
|
|
46424
46440
|
var getDCEquivalentPrice = function getDCEquivalentPrice(goldPrice) {
|
|
46425
46441
|
return dcToGoldSwapRate > 0 ? goldToDC(goldPrice) : 0;
|
|
46426
46442
|
};
|
|
46427
|
-
return React.createElement(PanelWrapper$1, null, React.createElement(FilterRow$2, null, React.createElement(FilterLabel$1, null, "FILTER BY TYPE"), React.createElement(StyledDropdown$
|
|
46443
|
+
return React.createElement(PanelWrapper$1, null, React.createElement(FilterRow$2, null, React.createElement(FilterLabel$1, null, "FILTER BY TYPE"), React.createElement(StyledDropdown$6, {
|
|
46428
46444
|
key: selectedType,
|
|
46429
46445
|
options: transactionTypeOptions,
|
|
46430
46446
|
onChange: onTypeChange,
|
|
@@ -46487,7 +46503,7 @@ var FilterLabel$1 = /*#__PURE__*/styled.p.withConfig({
|
|
|
46487
46503
|
displayName: "HistoryPanel__FilterLabel",
|
|
46488
46504
|
componentId: "sc-74mioa-2"
|
|
46489
46505
|
})(["margin:0;font-size:0.7rem;color:#ccc;text-transform:uppercase;letter-spacing:1px;white-space:nowrap;"]);
|
|
46490
|
-
var StyledDropdown$
|
|
46506
|
+
var StyledDropdown$6 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
46491
46507
|
displayName: "HistoryPanel__StyledDropdown",
|
|
46492
46508
|
componentId: "sc-74mioa-3"
|
|
46493
46509
|
})(["margin:0px !important;"]);
|
|
@@ -46909,7 +46925,8 @@ var Marketplace = function Marketplace(props) {
|
|
|
46909
46925
|
_props$historySelecte = props.historySelectedType,
|
|
46910
46926
|
historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
|
|
46911
46927
|
onHistoryTypeChange = props.onHistoryTypeChange,
|
|
46912
|
-
onHistoryPageChange = props.onHistoryPageChange
|
|
46928
|
+
onHistoryPageChange = props.onHistoryPageChange,
|
|
46929
|
+
walletProps = props.walletProps;
|
|
46913
46930
|
var _useState = useState('marketplace'),
|
|
46914
46931
|
activeTab = _useState[0],
|
|
46915
46932
|
setActiveTab = _useState[1];
|
|
@@ -46972,14 +46989,21 @@ var Marketplace = function Marketplace(props) {
|
|
|
46972
46989
|
width: 18,
|
|
46973
46990
|
height: 18
|
|
46974
46991
|
})
|
|
46975
|
-
}
|
|
46992
|
+
}].concat(walletProps ? [{
|
|
46993
|
+
id: 'wallet',
|
|
46994
|
+
label: 'Wallet',
|
|
46995
|
+
icon: React.createElement(Wallet, {
|
|
46996
|
+
width: 18,
|
|
46997
|
+
height: 18
|
|
46998
|
+
})
|
|
46999
|
+
}] : [], [{
|
|
46976
47000
|
id: 'settings',
|
|
46977
47001
|
label: 'Settings',
|
|
46978
47002
|
icon: React.createElement(Settings2, {
|
|
46979
47003
|
width: 18,
|
|
46980
47004
|
height: 18
|
|
46981
47005
|
})
|
|
46982
|
-
}],
|
|
47006
|
+
}]),
|
|
46983
47007
|
activeTabId: activeTab,
|
|
46984
47008
|
onTabChange: handleTabChange
|
|
46985
47009
|
}), activeTab === 'marketplace' && React.createElement(BuyPanel, Object.assign({}, props)), activeTab === 'sell' && React.createElement(ManagmentPanel, Object.assign({}, props, {
|
|
@@ -47033,7 +47057,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
47033
47057
|
atlasJSON: props.atlasJSON,
|
|
47034
47058
|
atlasIMG: props.atlasIMG,
|
|
47035
47059
|
dcToGoldSwapRate: props.dcToGoldSwapRate
|
|
47036
|
-
}), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
|
|
47060
|
+
}), activeTab === 'wallet' && walletProps && React.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
|
|
47037
47061
|
acceptedCurrency: acceptedCurrency,
|
|
47038
47062
|
onAcceptedCurrencyChange: handleCurrencyChange
|
|
47039
47063
|
}), showSharedPager && React.createElement(PagerContainer$3, null, React.createElement(Pager, Object.assign({}, props))));
|
|
@@ -47364,10 +47388,10 @@ var RowsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
47364
47388
|
componentId: "sc-eu8ggt-2"
|
|
47365
47389
|
})(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
|
|
47366
47390
|
|
|
47367
|
-
var _excluded$
|
|
47391
|
+
var _excluded$4 = ["children"];
|
|
47368
47392
|
var HighlightedText = function HighlightedText(_ref) {
|
|
47369
47393
|
var children = _ref.children,
|
|
47370
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
47394
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
47371
47395
|
return React.createElement(Text, Object.assign({}, rest), children);
|
|
47372
47396
|
};
|
|
47373
47397
|
var Text = /*#__PURE__*/styled.p.withConfig({
|
|
@@ -69769,7 +69793,7 @@ var ScrollableContent = function ScrollableContent(_ref) {
|
|
|
69769
69793
|
value: searchOptions.value,
|
|
69770
69794
|
onChange: searchOptions.onChange,
|
|
69771
69795
|
placeholder: searchOptions.placeholder || 'Search...'
|
|
69772
|
-
})), filterOptions && React.createElement(FilterContainer$1, null, React.createElement(StyledDropdown$
|
|
69796
|
+
})), filterOptions && React.createElement(FilterContainer$1, null, React.createElement(StyledDropdown$7, {
|
|
69773
69797
|
options: filterOptions.options,
|
|
69774
69798
|
onChange: filterOptions.onOptionChange,
|
|
69775
69799
|
width: "200px"
|
|
@@ -69808,7 +69832,7 @@ var StyledSearchBar$2 = /*#__PURE__*/styled(SearchBar).withConfig({
|
|
|
69808
69832
|
displayName: "ScrollableContent__StyledSearchBar",
|
|
69809
69833
|
componentId: "sc-xhh2um-5"
|
|
69810
69834
|
})(["width:100%;"]);
|
|
69811
|
-
var StyledDropdown$
|
|
69835
|
+
var StyledDropdown$7 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
69812
69836
|
displayName: "ScrollableContent__StyledDropdown",
|
|
69813
69837
|
componentId: "sc-xhh2um-6"
|
|
69814
69838
|
})(["min-width:150px;"]);
|
|
@@ -71407,5 +71431,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
71407
71431
|
componentId: "sc-7tgzv2-6"
|
|
71408
71432
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
71409
71433
|
|
|
71410
|
-
export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, GroupedMarketplaceRow, HISTORY_ITEMS_PER_PAGE, HistoryDialog, HistoryPanel, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MarketplaceSettingsPanel, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TRANSACTION_TYPE_FILTER_ALL, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer$1 as TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
71434
|
+
export { ActionButtons, AsyncDropdown, BLUEPRINTS_PER_PAGE, BUY_ORDERS_PER_PAGE, BlueprintSearchModal, Button, ButtonTypes, BuyOrderPanel, BuyOrderRow, CTAButton, CartView, CharacterSelection, CharacterSkinSelectionModal, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DCWalletContent, DCWalletModal, DailyTasks, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, GemSelector, GroupedMarketplaceRow, HISTORY_ITEMS_PER_PAGE, HistoryDialog, HistoryPanel, ImageCarousel, ImgSide, InformationCenter, Input, InputRadio, InternalTabs, ItemContainer$1 as ItemContainer, ItemPropertySimpleHandler, ItemQuantitySelectorModal, ItemSelector, ItemSlot, JoystickDPad, Leaderboard, ListMenu, LoginStreakPanel, Marketplace, MarketplaceBuyModal, MarketplaceRows, MarketplaceSettingsPanel, MetadataCollector, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PaymentMethodModal, PlayersRow, ProgressBar$1 as ProgressBar, PropertySelect, QuantitySelectorModal, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SelectArrow, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, SocialModal, Spellbook, SpriteFromAtlas, Stepper, Store, TRANSACTION_TYPE_FILTER_ALL, TabBody, Table, TableCell, TableHeader, TableRow, TabsContainer$1 as TabsContainer, TextArea, TimeWidget, Tooltip, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener, useStoreCart };
|
|
71411
71435
|
//# sourceMappingURL=long-bow.esm.js.map
|