@rpg-engine/long-bow 0.8.148 → 0.8.149
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/BuyPanel.d.ts +1 -0
- package/dist/components/Marketplace/Marketplace.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +17 -2
- 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 +17 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/BuyPanel.tsx +40 -2
- package/src/components/Marketplace/Marketplace.tsx +1 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -45985,7 +45985,9 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
45985
45985
|
openBuyOrdersTotal = _ref$openBuyOrdersTot === void 0 ? 0 : _ref$openBuyOrdersTot,
|
|
45986
45986
|
_ref$openBuyOrdersPag = _ref.openBuyOrdersPage,
|
|
45987
45987
|
openBuyOrdersPage = _ref$openBuyOrdersPag === void 0 ? 1 : _ref$openBuyOrdersPag,
|
|
45988
|
-
onOpenBuyOrdersPageChange = _ref.onOpenBuyOrdersPageChange
|
|
45988
|
+
onOpenBuyOrdersPageChange = _ref.onOpenBuyOrdersPageChange,
|
|
45989
|
+
_ref$isLoading = _ref.isLoading,
|
|
45990
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading;
|
|
45989
45991
|
var _useState = useState(''),
|
|
45990
45992
|
name = _useState[0],
|
|
45991
45993
|
setName = _useState[1];
|
|
@@ -46224,7 +46226,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
46224
46226
|
}))))), React.createElement(ItemComponentScrollWrapper$1, {
|
|
46225
46227
|
id: "MarketContainer",
|
|
46226
46228
|
ref: itemsContainer
|
|
46227
|
-
}, !hasVisibleContent && React.createElement(EmptyState$4, null, "No offers match the current filters."), showSellSection && React.createElement(MarketSection, null, React.createElement(SectionHeader, null, React.createElement(SectionTitle$2, null, "Sell Offers"), React.createElement(SectionMeta, null, groupedItems.length, " groups")), groupedItems.length === 0 ? React.createElement(SectionEmpty, null, "No sell offers found.") : groupedItems.map(function (_ref2) {
|
|
46229
|
+
}, isLoading && !hasVisibleContent && React.createElement(LoadingState, null, React.createElement(Spinner$2, null), React.createElement(LoadingText$1, null, "Loading marketplace...")), !isLoading && !hasVisibleContent && React.createElement(EmptyState$4, null, "No offers match the current filters."), showSellSection && React.createElement(MarketSection, null, React.createElement(SectionHeader, null, React.createElement(SectionTitle$2, null, "Sell Offers"), React.createElement(SectionMeta, null, groupedItems.length, " groups")), groupedItems.length === 0 ? React.createElement(SectionEmpty, null, "No sell offers found.") : groupedItems.map(function (_ref2) {
|
|
46228
46230
|
var bestListing = _ref2.bestListing,
|
|
46229
46231
|
otherListings = _ref2.otherListings;
|
|
46230
46232
|
return React.createElement(GroupedMarketplaceRow, {
|
|
@@ -46336,6 +46338,19 @@ var StyledDropdown$4 = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
|
46336
46338
|
displayName: "BuyPanel__StyledDropdown",
|
|
46337
46339
|
componentId: "sc-1si8t7i-15"
|
|
46338
46340
|
})(["margin:0px !important;width:100% !important;"]);
|
|
46341
|
+
var spin = /*#__PURE__*/keyframes(["to{transform:rotate(360deg);}"]);
|
|
46342
|
+
var LoadingState = /*#__PURE__*/styled.div.withConfig({
|
|
46343
|
+
displayName: "BuyPanel__LoadingState",
|
|
46344
|
+
componentId: "sc-1si8t7i-16"
|
|
46345
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;min-height:160px;"]);
|
|
46346
|
+
var Spinner$2 = /*#__PURE__*/styled.div.withConfig({
|
|
46347
|
+
displayName: "BuyPanel__Spinner",
|
|
46348
|
+
componentId: "sc-1si8t7i-17"
|
|
46349
|
+
})(["width:28px;height:28px;border:3px solid rgba(245,158,11,0.2);border-top-color:#f59e0b;border-radius:50%;animation:", " 0.7s linear infinite;"], spin);
|
|
46350
|
+
var LoadingText$1 = /*#__PURE__*/styled.span.withConfig({
|
|
46351
|
+
displayName: "BuyPanel__LoadingText",
|
|
46352
|
+
componentId: "sc-1si8t7i-18"
|
|
46353
|
+
})(["font-size:0.48rem;color:#8a8a8a;text-transform:uppercase;letter-spacing:1px;"]);
|
|
46339
46354
|
|
|
46340
46355
|
var _TRANSACTION_TYPE_COL;
|
|
46341
46356
|
var HISTORY_ITEMS_PER_PAGE = 10;
|