@rpg-engine/long-bow 0.8.159 → 0.8.161
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/Marketplace/Marketplace.d.ts +1 -0
- package/dist/components/Pager.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +89 -43
- 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 +90 -44
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DCWallet/DCWalletContent.tsx +1 -2
- package/src/components/Marketplace/BlueprintSearchModal.tsx +70 -31
- package/src/components/Marketplace/BlueprintTable.tsx +30 -21
- package/src/components/Marketplace/Marketplace.tsx +4 -2
- package/src/components/Pager.tsx +13 -5
|
@@ -72,5 +72,6 @@ export interface IMarketPlaceProps {
|
|
|
72
72
|
onHistoryTypeChange?: (type: string) => void;
|
|
73
73
|
onHistoryPageChange?: (page: number) => void;
|
|
74
74
|
walletProps?: IDCWalletContentProps;
|
|
75
|
+
showWalletTab?: boolean;
|
|
75
76
|
}
|
|
76
77
|
export declare const Marketplace: React.FC<IMarketPlaceProps>;
|
|
@@ -29,11 +29,11 @@ var ShoppingBag = require('pixelarticons/react/ShoppingBag');
|
|
|
29
29
|
var ShoppingCart = require('pixelarticons/react/ShoppingCart');
|
|
30
30
|
var Store$1 = require('pixelarticons/react/Store');
|
|
31
31
|
var Wallet = require('pixelarticons/react/Wallet');
|
|
32
|
+
var SortVertical = require('pixelarticons/react/SortVertical');
|
|
32
33
|
var Search = require('pixelarticons/react/Search');
|
|
33
34
|
var Delete = require('pixelarticons/react/Delete');
|
|
34
35
|
require('rpgui/rpgui.css');
|
|
35
36
|
require('rpgui/rpgui.min.js');
|
|
36
|
-
var SortVertical = require('pixelarticons/react/SortVertical');
|
|
37
37
|
var Coins = require('pixelarticons/react/Coins');
|
|
38
38
|
var capitalize = _interopDefault(require('lodash/capitalize'));
|
|
39
39
|
|
|
@@ -39738,7 +39738,7 @@ var DCWalletContent = function DCWalletContent(_ref) {
|
|
|
39738
39738
|
onRequestHistory: onRequestHistory
|
|
39739
39739
|
})
|
|
39740
39740
|
}];
|
|
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,
|
|
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
39742
|
onPointerDown: onBuyDC,
|
|
39743
39743
|
role: "button",
|
|
39744
39744
|
tabIndex: 0,
|
|
@@ -44504,9 +44504,13 @@ var Pager = function Pager(_ref) {
|
|
|
44504
44504
|
var totalItems = _ref.totalItems,
|
|
44505
44505
|
currentPage = _ref.currentPage,
|
|
44506
44506
|
itemsPerPage = _ref.itemsPerPage,
|
|
44507
|
-
onPageChange = _ref.onPageChange
|
|
44507
|
+
onPageChange = _ref.onPageChange,
|
|
44508
|
+
_ref$compact = _ref.compact,
|
|
44509
|
+
compact = _ref$compact === void 0 ? false : _ref$compact;
|
|
44508
44510
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
44509
|
-
return React__default.createElement(Container$A, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer,
|
|
44511
|
+
return React__default.createElement(Container$A, null, !compact && React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, {
|
|
44512
|
+
"$compact": compact
|
|
44513
|
+
}, React__default.createElement("button", {
|
|
44510
44514
|
disabled: currentPage === 1,
|
|
44511
44515
|
onPointerDown: function onPointerDown() {
|
|
44512
44516
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -44527,7 +44531,19 @@ var Container$A = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44527
44531
|
var PagerContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
44528
44532
|
displayName: "Pager__PagerContainer",
|
|
44529
44533
|
componentId: "sc-1ekmf50-1"
|
|
44530
|
-
})(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;}button{width:
|
|
44534
|
+
})(["display:flex;justify-content:center;align-items:center;gap:5px;p{margin:0;}div{color:white;", "}button{width:", " !important;height:", " !important;font-size:", " !important;background-color:", ";border:none;border-radius:5px;color:white;:hover{background-color:", ";}:disabled{opacity:0.5;}&.active{background-color:", ";font-weight:bold;color:black;}}"], function (_ref2) {
|
|
44535
|
+
var $compact = _ref2.$compact;
|
|
44536
|
+
return $compact && "\n font-size: 0.55rem !important;\n padding: 2px 6px !important;\n min-width: unset !important;\n ";
|
|
44537
|
+
}, function (_ref3) {
|
|
44538
|
+
var $compact = _ref3.$compact;
|
|
44539
|
+
return $compact ? '24px' : '40px';
|
|
44540
|
+
}, function (_ref4) {
|
|
44541
|
+
var $compact = _ref4.$compact;
|
|
44542
|
+
return $compact ? '24px' : '40px';
|
|
44543
|
+
}, function (_ref5) {
|
|
44544
|
+
var $compact = _ref5.$compact;
|
|
44545
|
+
return $compact ? '0.55rem' : 'inherit';
|
|
44546
|
+
}, uiColors.darkGray, uiColors.lightGray, uiColors.orange);
|
|
44531
44547
|
|
|
44532
44548
|
var Tabs = function Tabs(_ref) {
|
|
44533
44549
|
var options = _ref.options,
|
|
@@ -44583,24 +44599,25 @@ var BlueprintTable = function BlueprintTable(_ref) {
|
|
|
44583
44599
|
atlasJSON: atlasJSON,
|
|
44584
44600
|
atlasIMG: atlasIMG,
|
|
44585
44601
|
spriteKey: blueprint.texturePath || blueprint.key,
|
|
44586
|
-
width:
|
|
44587
|
-
height:
|
|
44588
|
-
imgScale:
|
|
44602
|
+
width: 24,
|
|
44603
|
+
height: 24,
|
|
44604
|
+
imgScale: 1.5,
|
|
44589
44605
|
centered: true
|
|
44590
44606
|
})), React__default.createElement(ColName, null, React__default.createElement(BlueprintName, null, blueprint.name), (blueprint.type || blueprint.subType) && React__default.createElement(BlueprintMeta, null, [blueprint.type, blueprint.subType].filter(Boolean).filter(function (v, i, arr) {
|
|
44591
44607
|
return arr.indexOf(v) === i;
|
|
44592
44608
|
}).join(' · '))), React__default.createElement(ColType, null, React__default.createElement(TypeText, null, blueprint.type), blueprint.subType && blueprint.subType !== blueprint.type && React__default.createElement(SubTypeText, null, blueprint.subType)), React__default.createElement(ColTier, null, "T", blueprint.tier));
|
|
44593
44609
|
}));
|
|
44594
44610
|
};
|
|
44595
|
-
var tableRowBase = "\n display: grid;\n grid-template-columns:
|
|
44611
|
+
var tableRowBase = "\n display: grid;\n grid-template-columns: 28px 1fr 100px 40px;\n align-items: center;\n gap: 6px;\n padding: 3px 8px;\n";
|
|
44612
|
+
var mobileRowOverride = "\n @media (max-width: 600px) {\n padding: 1px 6px;\n gap: 4px;\n }\n";
|
|
44596
44613
|
var ResultsHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
44597
44614
|
displayName: "BlueprintTable__ResultsHeader",
|
|
44598
44615
|
componentId: "sc-1ysxhx2-0"
|
|
44599
|
-
})(["", " background:rgba(0,0,0,0.4);border-bottom:1px solid rgba(255,255,255,0.1);position:sticky;top:0;z-index:1
|
|
44616
|
+
})(["", " ", " background:rgba(0,0,0,0.4);border-bottom:1px solid rgba(255,255,255,0.1);position:sticky;top:0;z-index:1;&& > *{font-size:0.48rem !important;color:#555 !important;text-transform:uppercase;letter-spacing:1px;}"], tableRowBase, mobileRowOverride);
|
|
44600
44617
|
var ResultRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
44601
44618
|
displayName: "BlueprintTable__ResultRow",
|
|
44602
44619
|
componentId: "sc-1ysxhx2-1"
|
|
44603
|
-
})(["", " border-bottom:1px solid rgba(255,255,255,0.04);cursor:", ";transition:background 0.1s;&:hover{background:", ";}&:last-child{border-bottom:none;}"], tableRowBase, function (p) {
|
|
44620
|
+
})(["", " ", " border-bottom:1px solid rgba(255,255,255,0.04);cursor:", ";transition:background 0.1s;&:hover{background:", ";}&:last-child{border-bottom:none;}"], tableRowBase, mobileRowOverride, function (p) {
|
|
44604
44621
|
return p.$selectable ? 'pointer' : 'default';
|
|
44605
44622
|
}, function (p) {
|
|
44606
44623
|
return p.$selectable ? 'rgba(245, 158, 11, 0.08)' : 'none';
|
|
@@ -44608,7 +44625,7 @@ var ResultRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44608
44625
|
var SpriteWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
44609
44626
|
displayName: "BlueprintTable__SpriteWrapper",
|
|
44610
44627
|
componentId: "sc-1ysxhx2-2"
|
|
44611
|
-
})(["display:flex;align-items:center;justify-content:center;width:
|
|
44628
|
+
})(["display:flex;align-items:center;justify-content:center;width:28px;height:24px;"]);
|
|
44612
44629
|
var ColName = /*#__PURE__*/styled__default.div.withConfig({
|
|
44613
44630
|
displayName: "BlueprintTable__ColName",
|
|
44614
44631
|
componentId: "sc-1ysxhx2-3"
|
|
@@ -44616,11 +44633,11 @@ var ColName = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44616
44633
|
var BlueprintName = /*#__PURE__*/styled__default.span.withConfig({
|
|
44617
44634
|
displayName: "BlueprintTable__BlueprintName",
|
|
44618
44635
|
componentId: "sc-1ysxhx2-4"
|
|
44619
|
-
})(["font-size:0.
|
|
44636
|
+
})(["font-size:0.6rem !important;color:#e5e7eb !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
44620
44637
|
var BlueprintMeta = /*#__PURE__*/styled__default.span.withConfig({
|
|
44621
44638
|
displayName: "BlueprintTable__BlueprintMeta",
|
|
44622
44639
|
componentId: "sc-1ysxhx2-5"
|
|
44623
|
-
})(["font-size:0.
|
|
44640
|
+
})(["font-size:0.5rem !important;color:#f59e0b !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
44624
44641
|
var ColType = /*#__PURE__*/styled__default.div.withConfig({
|
|
44625
44642
|
displayName: "BlueprintTable__ColType",
|
|
44626
44643
|
componentId: "sc-1ysxhx2-6"
|
|
@@ -44628,15 +44645,15 @@ var ColType = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44628
44645
|
var TypeText = /*#__PURE__*/styled__default.span.withConfig({
|
|
44629
44646
|
displayName: "BlueprintTable__TypeText",
|
|
44630
44647
|
componentId: "sc-1ysxhx2-7"
|
|
44631
|
-
})(["font-size:0.
|
|
44648
|
+
})(["font-size:0.52rem !important;color:#9ca3af !important;"]);
|
|
44632
44649
|
var SubTypeText = /*#__PURE__*/styled__default.span.withConfig({
|
|
44633
44650
|
displayName: "BlueprintTable__SubTypeText",
|
|
44634
44651
|
componentId: "sc-1ysxhx2-8"
|
|
44635
|
-
})(["font-size:0.
|
|
44652
|
+
})(["font-size:0.46rem !important;color:#f59e0b !important;"]);
|
|
44636
44653
|
var ColTier = /*#__PURE__*/styled__default.div.withConfig({
|
|
44637
44654
|
displayName: "BlueprintTable__ColTier",
|
|
44638
44655
|
componentId: "sc-1ysxhx2-9"
|
|
44639
|
-
})(["font-size:0.
|
|
44656
|
+
})(["font-size:0.6rem !important;color:#f59e0b !important;text-align:center;"]);
|
|
44640
44657
|
|
|
44641
44658
|
var BLUEPRINTS_PER_PAGE = 10;
|
|
44642
44659
|
var scaleIn = /*#__PURE__*/styled.keyframes(["from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}"]);
|
|
@@ -44644,7 +44661,9 @@ var typeOptions = /*#__PURE__*/[{
|
|
|
44644
44661
|
id: 1,
|
|
44645
44662
|
value: '',
|
|
44646
44663
|
option: 'All Types'
|
|
44647
|
-
}].concat( /*#__PURE__*/Object.keys(shared.
|
|
44664
|
+
}].concat( /*#__PURE__*/Object.keys(shared.ItemSubType).filter(function (t) {
|
|
44665
|
+
return t !== 'DeadBody';
|
|
44666
|
+
}).map(function (t, index) {
|
|
44648
44667
|
return {
|
|
44649
44668
|
id: index + 2,
|
|
44650
44669
|
value: t,
|
|
@@ -44686,6 +44705,9 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44686
44705
|
var _useState3 = React.useState(''),
|
|
44687
44706
|
selectedSubType = _useState3[0],
|
|
44688
44707
|
setSelectedSubType = _useState3[1];
|
|
44708
|
+
var _useState4 = React.useState(false),
|
|
44709
|
+
showFilters = _useState4[0],
|
|
44710
|
+
setShowFilters = _useState4[1];
|
|
44689
44711
|
var searchNameRef = React.useRef(searchName);
|
|
44690
44712
|
var selectedTypeRef = React.useRef(selectedType);
|
|
44691
44713
|
var selectedSubTypeRef = React.useRef(selectedSubType);
|
|
@@ -44762,7 +44784,19 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44762
44784
|
placeholder: "Search by name...",
|
|
44763
44785
|
onFocus: disableHotkeys,
|
|
44764
44786
|
onBlur: enableHotkeys
|
|
44765
|
-
})
|
|
44787
|
+
}), React__default.createElement(FilterButton$1, {
|
|
44788
|
+
type: "button",
|
|
44789
|
+
"$active": showFilters,
|
|
44790
|
+
onPointerDown: function onPointerDown() {
|
|
44791
|
+
return setShowFilters(function (v) {
|
|
44792
|
+
return !v;
|
|
44793
|
+
});
|
|
44794
|
+
},
|
|
44795
|
+
"aria-label": "Toggle filters"
|
|
44796
|
+
}, React__default.createElement(SortVertical.SortVertical, {
|
|
44797
|
+
width: 16,
|
|
44798
|
+
height: 16
|
|
44799
|
+
}))), showFilters && React__default.createElement(FiltersRow, null, React__default.createElement(StyledDropdown$3, {
|
|
44766
44800
|
key: "type-" + selectedType,
|
|
44767
44801
|
options: typeOptions,
|
|
44768
44802
|
onChange: handleTypeChange,
|
|
@@ -44779,12 +44813,13 @@ var BlueprintSearchModal = function BlueprintSearchModal(_ref) {
|
|
|
44779
44813
|
atlasJSON: atlasJSON,
|
|
44780
44814
|
atlasIMG: atlasIMG,
|
|
44781
44815
|
onSelect: onSelect
|
|
44782
|
-
})), isLoading && React__default.createElement(LoadingOverlay, null, React__default.createElement(LoadingText, null, "Loading..."))), React__default.createElement(
|
|
44816
|
+
})), isLoading && React__default.createElement(LoadingOverlay, null, React__default.createElement(LoadingText, null, "Loading..."))), React__default.createElement(Pager, {
|
|
44817
|
+
compact: true,
|
|
44783
44818
|
totalItems: totalCount,
|
|
44784
44819
|
currentPage: currentPage,
|
|
44785
44820
|
itemsPerPage: BLUEPRINTS_PER_PAGE,
|
|
44786
44821
|
onPageChange: handlePageChange
|
|
44787
|
-
}))))
|
|
44822
|
+
}))));
|
|
44788
44823
|
};
|
|
44789
44824
|
var Overlay$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
44790
44825
|
displayName: "BlueprintSearchModal__Overlay",
|
|
@@ -44797,7 +44832,7 @@ var ModalContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
44797
44832
|
var ModalContent$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
44798
44833
|
displayName: "BlueprintSearchModal__ModalContent",
|
|
44799
44834
|
componentId: "sc-i7bssq-2"
|
|
44800
|
-
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:600px;max-width:90%;display:flex;flex-direction:column;gap:12px;pointer-events:auto;animation:", " 0.15s ease-out;"], scaleIn);
|
|
44835
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:600px;max-width:90%;max-height:90dvh;display:flex;flex-direction:column;gap:12px;overflow:hidden;pointer-events:auto;animation:", " 0.15s ease-out;@media (max-width:950px){max-width:96%;max-height:95dvh;min-height:75dvh;padding:14px 16px;gap:8px;}"], scaleIn);
|
|
44801
44836
|
var Header$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
44802
44837
|
displayName: "BlueprintSearchModal__Header",
|
|
44803
44838
|
componentId: "sc-i7bssq-3"
|
|
@@ -44818,40 +44853,49 @@ var StyledInput$2 = /*#__PURE__*/styled__default(Input).withConfig({
|
|
|
44818
44853
|
displayName: "BlueprintSearchModal__StyledInput",
|
|
44819
44854
|
componentId: "sc-i7bssq-7"
|
|
44820
44855
|
})(["flex:1;"]);
|
|
44856
|
+
var FilterButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
44857
|
+
displayName: "BlueprintSearchModal__FilterButton",
|
|
44858
|
+
componentId: "sc-i7bssq-8"
|
|
44859
|
+
})(["flex-shrink:0;width:28px;height:28px;border-radius:6px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color 0.15s,border-color 0.15s,background 0.15s;&:hover{color:#f59e0b;border-color:rgba(245,158,11,0.45);}"], function (_ref2) {
|
|
44860
|
+
var $active = _ref2.$active;
|
|
44861
|
+
return $active ? 'rgba(245, 158, 11, 0.55)' : 'rgba(255, 255, 255, 0.08)';
|
|
44862
|
+
}, function (_ref3) {
|
|
44863
|
+
var $active = _ref3.$active;
|
|
44864
|
+
return $active ? 'rgba(245, 158, 11, 0.14)' : 'rgba(255, 255, 255, 0.03)';
|
|
44865
|
+
}, function (_ref4) {
|
|
44866
|
+
var $active = _ref4.$active;
|
|
44867
|
+
return $active ? '#f59e0b' : '#ccc';
|
|
44868
|
+
});
|
|
44821
44869
|
var FiltersRow = /*#__PURE__*/styled__default.div.withConfig({
|
|
44822
44870
|
displayName: "BlueprintSearchModal__FiltersRow",
|
|
44823
|
-
componentId: "sc-i7bssq-
|
|
44871
|
+
componentId: "sc-i7bssq-9"
|
|
44824
44872
|
})(["display:grid;grid-template-columns:1fr 1fr;gap:8px;"]);
|
|
44825
44873
|
var StyledDropdown$3 = /*#__PURE__*/styled__default(Dropdown).withConfig({
|
|
44826
44874
|
displayName: "BlueprintSearchModal__StyledDropdown",
|
|
44827
|
-
componentId: "sc-i7bssq-
|
|
44875
|
+
componentId: "sc-i7bssq-10"
|
|
44828
44876
|
})(["margin:0px !important;width:100% !important;"]);
|
|
44829
44877
|
var ResultsWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
44830
44878
|
displayName: "BlueprintSearchModal__ResultsWrapper",
|
|
44831
|
-
componentId: "sc-i7bssq-
|
|
44832
|
-
})(["position:relative;overflow-y:auto;height:
|
|
44879
|
+
componentId: "sc-i7bssq-11"
|
|
44880
|
+
})(["position:relative;overflow-y:auto;flex:1;min-height:80px;display:flex;flex-direction:column;background:rgba(0,0,0,0.2);border:1px solid rgba(255,255,255,0.05);border-radius:4px;"]);
|
|
44833
44881
|
var ResultsContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
44834
44882
|
displayName: "BlueprintSearchModal__ResultsContent",
|
|
44835
|
-
componentId: "sc-i7bssq-
|
|
44883
|
+
componentId: "sc-i7bssq-12"
|
|
44836
44884
|
})(["opacity:", ";transition:opacity 0.15s ease;"], function (p) {
|
|
44837
44885
|
return p.$dimmed ? 0.4 : 1;
|
|
44838
44886
|
});
|
|
44839
44887
|
var LoadingOverlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
44840
44888
|
displayName: "BlueprintSearchModal__LoadingOverlay",
|
|
44841
|
-
componentId: "sc-i7bssq-
|
|
44889
|
+
componentId: "sc-i7bssq-13"
|
|
44842
44890
|
})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;"]);
|
|
44843
44891
|
var LoadingText = /*#__PURE__*/styled__default.span.withConfig({
|
|
44844
44892
|
displayName: "BlueprintSearchModal__LoadingText",
|
|
44845
|
-
componentId: "sc-i7bssq-
|
|
44893
|
+
componentId: "sc-i7bssq-14"
|
|
44846
44894
|
})(["font-size:0.55rem;color:#f59e0b;text-transform:uppercase;letter-spacing:1px;"]);
|
|
44847
44895
|
var EmptyState$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
44848
44896
|
displayName: "BlueprintSearchModal__EmptyState",
|
|
44849
|
-
componentId: "sc-i7bssq-14"
|
|
44850
|
-
})(["display:flex;align-items:center;justify-content:center;height:100%;font-size:0.55rem;color:#666;text-transform:uppercase;letter-spacing:1px;"]);
|
|
44851
|
-
var PagerContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
44852
|
-
displayName: "BlueprintSearchModal__PagerContainer",
|
|
44853
44897
|
componentId: "sc-i7bssq-15"
|
|
44854
|
-
})(["display:flex;justify-content:center;
|
|
44898
|
+
})(["display:flex;align-items:center;justify-content:center;flex:1;font-size:0.55rem;color:#666;text-transform:uppercase;letter-spacing:1px;"]);
|
|
44855
44899
|
|
|
44856
44900
|
var SegmentedToggle = function SegmentedToggle(_ref) {
|
|
44857
44901
|
var options = _ref.options,
|
|
@@ -46199,7 +46243,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46199
46243
|
onBlur: enableHotkeys,
|
|
46200
46244
|
onFocus: disableHotkeys,
|
|
46201
46245
|
className: "search-input"
|
|
46202
|
-
})), React__default.createElement(FilterButton$
|
|
46246
|
+
})), React__default.createElement(FilterButton$2, {
|
|
46203
46247
|
type: "button",
|
|
46204
46248
|
"$active": showFilters,
|
|
46205
46249
|
onClick: function onClick() {
|
|
@@ -46346,7 +46390,7 @@ var SearchField = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
46346
46390
|
displayName: "BuyPanel__SearchField",
|
|
46347
46391
|
componentId: "sc-1si8t7i-1"
|
|
46348
46392
|
})(["min-width:0;input.search-input{height:10px;width:100%;}"]);
|
|
46349
|
-
var FilterButton$
|
|
46393
|
+
var FilterButton$2 = /*#__PURE__*/styled__default.button.withConfig({
|
|
46350
46394
|
displayName: "BuyPanel__FilterButton",
|
|
46351
46395
|
componentId: "sc-1si8t7i-2"
|
|
46352
46396
|
})(["width:36px;height:36px;border-radius:8px;border:1px solid ", ";background:", ";color:", ";cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color 0.15s,border-color 0.15s,background 0.15s;&:hover{color:#f59e0b;border-color:rgba(245,158,11,0.45);}"], function (_ref3) {
|
|
@@ -46519,7 +46563,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
|
|
|
46519
46563
|
}))), React__default.createElement(GoldAmount, {
|
|
46520
46564
|
"$type": tx.type
|
|
46521
46565
|
}, getGoldSign(tx.type), tx.goldAmount, "g"))));
|
|
46522
|
-
})), React__default.createElement(PagerContainer$
|
|
46566
|
+
})), React__default.createElement(PagerContainer$1, null, React__default.createElement(Pager, {
|
|
46523
46567
|
totalItems: totalCount,
|
|
46524
46568
|
currentPage: currentPage,
|
|
46525
46569
|
itemsPerPage: itemsPerPage,
|
|
@@ -46627,7 +46671,7 @@ var EmptyState$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
46627
46671
|
displayName: "HistoryPanel__EmptyState",
|
|
46628
46672
|
componentId: "sc-74mioa-20"
|
|
46629
46673
|
})(["display:flex;align-items:center;justify-content:center;height:45px;font-size:0.5rem;color:#555;text-transform:uppercase;letter-spacing:1px;background:rgba(0,0,0,0.15);border-radius:4px;"]);
|
|
46630
|
-
var PagerContainer$
|
|
46674
|
+
var PagerContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
46631
46675
|
displayName: "HistoryPanel__PagerContainer",
|
|
46632
46676
|
componentId: "sc-74mioa-21"
|
|
46633
46677
|
})(["display:flex;justify-content:center;margin-top:4px;"]);
|
|
@@ -46962,7 +47006,9 @@ var Marketplace = function Marketplace(props) {
|
|
|
46962
47006
|
historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
|
|
46963
47007
|
onHistoryTypeChange = props.onHistoryTypeChange,
|
|
46964
47008
|
onHistoryPageChange = props.onHistoryPageChange,
|
|
46965
|
-
walletProps = props.walletProps
|
|
47009
|
+
walletProps = props.walletProps,
|
|
47010
|
+
_props$showWalletTab = props.showWalletTab,
|
|
47011
|
+
showWalletTab = _props$showWalletTab === void 0 ? true : _props$showWalletTab;
|
|
46966
47012
|
var _useState = React.useState('marketplace'),
|
|
46967
47013
|
activeTab = _useState[0],
|
|
46968
47014
|
setActiveTab = _useState[1];
|
|
@@ -47025,7 +47071,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
47025
47071
|
width: 18,
|
|
47026
47072
|
height: 18
|
|
47027
47073
|
})
|
|
47028
|
-
}].concat(walletProps ? [{
|
|
47074
|
+
}].concat(showWalletTab && walletProps ? [{
|
|
47029
47075
|
id: 'wallet',
|
|
47030
47076
|
label: 'Wallet',
|
|
47031
47077
|
icon: React__default.createElement(Wallet.Wallet, {
|
|
@@ -47093,12 +47139,12 @@ var Marketplace = function Marketplace(props) {
|
|
|
47093
47139
|
atlasJSON: props.atlasJSON,
|
|
47094
47140
|
atlasIMG: props.atlasIMG,
|
|
47095
47141
|
dcToGoldSwapRate: props.dcToGoldSwapRate
|
|
47096
|
-
}), activeTab === 'wallet' && walletProps && React__default.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
|
|
47142
|
+
}), activeTab === 'wallet' && showWalletTab && walletProps && React__default.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React__default.createElement(MarketplaceSettingsPanel, {
|
|
47097
47143
|
acceptedCurrency: acceptedCurrency,
|
|
47098
47144
|
onAcceptedCurrencyChange: handleCurrencyChange
|
|
47099
|
-
}), showSharedPager && React__default.createElement(PagerContainer$
|
|
47145
|
+
}), showSharedPager && React__default.createElement(PagerContainer$2, null, React__default.createElement(Pager, Object.assign({}, props))));
|
|
47100
47146
|
};
|
|
47101
|
-
var PagerContainer$
|
|
47147
|
+
var PagerContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
47102
47148
|
displayName: "Marketplace__PagerContainer",
|
|
47103
47149
|
componentId: "sc-h904b1-0"
|
|
47104
47150
|
})(["display:flex;justify-content:center;align-items:center;width:95%;margin:6px auto 0 auto;padding:4px 10px;"]);
|