@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.
@@ -30,5 +30,6 @@ export interface IBuyPanelProps {
30
30
  openBuyOrdersTotal?: number;
31
31
  openBuyOrdersPage?: number;
32
32
  onOpenBuyOrdersPageChange?: (page: number) => void;
33
+ isLoading?: boolean;
33
34
  }
34
35
  export declare const BuyPanel: React.FC<IBuyPanelProps>;
@@ -37,6 +37,7 @@ export interface IMarketPlaceProps {
37
37
  acceptedCurrency?: MarketplaceAcceptedCurrency;
38
38
  onAcceptedCurrencyChange?: (value: MarketplaceAcceptedCurrency) => void;
39
39
  onActiveTabChange?: (tab: string) => void;
40
+ isLoading?: boolean;
40
41
  buyOrderSelectedBlueprint?: IMarketplaceBlueprintSummary;
41
42
  buyOrderQuantity?: number;
42
43
  buyOrderMaxPrice?: number;
@@ -45988,7 +45988,9 @@ var BuyPanel = function BuyPanel(_ref) {
45988
45988
  openBuyOrdersTotal = _ref$openBuyOrdersTot === void 0 ? 0 : _ref$openBuyOrdersTot,
45989
45989
  _ref$openBuyOrdersPag = _ref.openBuyOrdersPage,
45990
45990
  openBuyOrdersPage = _ref$openBuyOrdersPag === void 0 ? 1 : _ref$openBuyOrdersPag,
45991
- onOpenBuyOrdersPageChange = _ref.onOpenBuyOrdersPageChange;
45991
+ onOpenBuyOrdersPageChange = _ref.onOpenBuyOrdersPageChange,
45992
+ _ref$isLoading = _ref.isLoading,
45993
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading;
45992
45994
  var _useState = React.useState(''),
45993
45995
  name = _useState[0],
45994
45996
  setName = _useState[1];
@@ -46227,7 +46229,7 @@ var BuyPanel = function BuyPanel(_ref) {
46227
46229
  }))))), React__default.createElement(ItemComponentScrollWrapper$1, {
46228
46230
  id: "MarketContainer",
46229
46231
  ref: itemsContainer
46230
- }, !hasVisibleContent && React__default.createElement(EmptyState$4, null, "No offers match the current filters."), showSellSection && React__default.createElement(MarketSection, null, React__default.createElement(SectionHeader, null, React__default.createElement(SectionTitle$2, null, "Sell Offers"), React__default.createElement(SectionMeta, null, groupedItems.length, " groups")), groupedItems.length === 0 ? React__default.createElement(SectionEmpty, null, "No sell offers found.") : groupedItems.map(function (_ref2) {
46232
+ }, isLoading && !hasVisibleContent && React__default.createElement(LoadingState, null, React__default.createElement(Spinner$2, null), React__default.createElement(LoadingText$1, null, "Loading marketplace...")), !isLoading && !hasVisibleContent && React__default.createElement(EmptyState$4, null, "No offers match the current filters."), showSellSection && React__default.createElement(MarketSection, null, React__default.createElement(SectionHeader, null, React__default.createElement(SectionTitle$2, null, "Sell Offers"), React__default.createElement(SectionMeta, null, groupedItems.length, " groups")), groupedItems.length === 0 ? React__default.createElement(SectionEmpty, null, "No sell offers found.") : groupedItems.map(function (_ref2) {
46231
46233
  var bestListing = _ref2.bestListing,
46232
46234
  otherListings = _ref2.otherListings;
46233
46235
  return React__default.createElement(GroupedMarketplaceRow, {
@@ -46339,6 +46341,19 @@ var StyledDropdown$4 = /*#__PURE__*/styled__default(Dropdown).withConfig({
46339
46341
  displayName: "BuyPanel__StyledDropdown",
46340
46342
  componentId: "sc-1si8t7i-15"
46341
46343
  })(["margin:0px !important;width:100% !important;"]);
46344
+ var spin = /*#__PURE__*/styled.keyframes(["to{transform:rotate(360deg);}"]);
46345
+ var LoadingState = /*#__PURE__*/styled__default.div.withConfig({
46346
+ displayName: "BuyPanel__LoadingState",
46347
+ componentId: "sc-1si8t7i-16"
46348
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;min-height:160px;"]);
46349
+ var Spinner$2 = /*#__PURE__*/styled__default.div.withConfig({
46350
+ displayName: "BuyPanel__Spinner",
46351
+ componentId: "sc-1si8t7i-17"
46352
+ })(["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);
46353
+ var LoadingText$1 = /*#__PURE__*/styled__default.span.withConfig({
46354
+ displayName: "BuyPanel__LoadingText",
46355
+ componentId: "sc-1si8t7i-18"
46356
+ })(["font-size:0.48rem;color:#8a8a8a;text-transform:uppercase;letter-spacing:1px;"]);
46342
46357
 
46343
46358
  var _TRANSACTION_TYPE_COL;
46344
46359
  var HISTORY_ITEMS_PER_PAGE = 10;