@rpg-engine/long-bow 0.8.148 → 0.8.150

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.
@@ -44904,12 +44904,12 @@ var BuyOrderDetailsModal = function BuyOrderDetailsModal(_ref) {
44904
44904
  min: 1,
44905
44905
  onFocus: disableHotkeys,
44906
44906
  onBlur: enableHotkeys
44907
- })), React.createElement(FieldRow, null, React.createElement(Label$4, null, "Max Gold"), React.createElement(StyledInput$3, {
44907
+ })), React.createElement(FieldRow, null, React.createElement(Label$4, null, "Gold Offer"), React.createElement(StyledInput$3, {
44908
44908
  value: maxPrice || '',
44909
44909
  onChange: function onChange(e) {
44910
44910
  return onMaxPriceChange(Number(e.target.value));
44911
44911
  },
44912
- placeholder: "Max gold",
44912
+ placeholder: "Gold offer",
44913
44913
  type: "number",
44914
44914
  min: 1,
44915
44915
  onFocus: disableHotkeys,
@@ -46224,7 +46224,7 @@ var BuyPanel = function BuyPanel(_ref) {
46224
46224
  }))))), React.createElement(ItemComponentScrollWrapper$1, {
46225
46225
  id: "MarketContainer",
46226
46226
  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) {
46227
+ }, !hasVisibleContent ? React.createElement(LoadingState, null, React.createElement(Spinner$2, null), React.createElement(LoadingText$1, null, "Loading marketplace...")) : React.createElement(React.Fragment, null, 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
46228
  var bestListing = _ref2.bestListing,
46229
46229
  otherListings = _ref2.otherListings;
46230
46230
  return React.createElement(GroupedMarketplaceRow, {
@@ -46258,7 +46258,7 @@ var BuyPanel = function BuyPanel(_ref) {
46258
46258
  currentPage: openBuyOrdersPage,
46259
46259
  itemsPerPage: BUY_REQUESTS_PER_PAGE,
46260
46260
  onPageChange: onOpenBuyOrdersPageChange != null ? onOpenBuyOrdersPageChange : function () {}
46261
- })))));
46261
+ }))))));
46262
46262
  };
46263
46263
  var ToolbarRow = /*#__PURE__*/styled.div.withConfig({
46264
46264
  displayName: "BuyPanel__ToolbarRow",
@@ -46324,18 +46324,27 @@ var SectionEmpty = /*#__PURE__*/styled.div.withConfig({
46324
46324
  displayName: "BuyPanel__SectionEmpty",
46325
46325
  componentId: "sc-1si8t7i-12"
46326
46326
  })(["min-height:56px;display:flex;align-items:center;justify-content:center;color:#71717a;font-size:0.48rem;text-transform:uppercase;letter-spacing:1px;background:rgba(255,255,255,0.03);border:1px dashed rgba(255,255,255,0.08);border-radius:6px;"]);
46327
- var EmptyState$4 = /*#__PURE__*/styled.div.withConfig({
46328
- displayName: "BuyPanel__EmptyState",
46329
- componentId: "sc-1si8t7i-13"
46330
- })(["min-height:96px;display:flex;align-items:center;justify-content:center;color:#71717a;font-size:0.52rem;text-transform:uppercase;letter-spacing:1px;padding:0 16px;text-align:center;"]);
46331
46327
  var SectionPager = /*#__PURE__*/styled.div.withConfig({
46332
46328
  displayName: "BuyPanel__SectionPager",
46333
- componentId: "sc-1si8t7i-14"
46329
+ componentId: "sc-1si8t7i-13"
46334
46330
  })(["display:flex;justify-content:center;margin-top:10px;"]);
46335
46331
  var StyledDropdown$4 = /*#__PURE__*/styled(Dropdown).withConfig({
46336
46332
  displayName: "BuyPanel__StyledDropdown",
46337
- componentId: "sc-1si8t7i-15"
46333
+ componentId: "sc-1si8t7i-14"
46338
46334
  })(["margin:0px !important;width:100% !important;"]);
46335
+ var spin = /*#__PURE__*/keyframes(["to{transform:rotate(360deg);}"]);
46336
+ var LoadingState = /*#__PURE__*/styled.div.withConfig({
46337
+ displayName: "BuyPanel__LoadingState",
46338
+ componentId: "sc-1si8t7i-15"
46339
+ })(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;min-height:160px;"]);
46340
+ var Spinner$2 = /*#__PURE__*/styled.div.withConfig({
46341
+ displayName: "BuyPanel__Spinner",
46342
+ componentId: "sc-1si8t7i-16"
46343
+ })(["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);
46344
+ var LoadingText$1 = /*#__PURE__*/styled.span.withConfig({
46345
+ displayName: "BuyPanel__LoadingText",
46346
+ componentId: "sc-1si8t7i-17"
46347
+ })(["font-size:0.48rem;color:#8a8a8a;text-transform:uppercase;letter-spacing:1px;"]);
46339
46348
 
46340
46349
  var _TRANSACTION_TYPE_COL;
46341
46350
  var HISTORY_ITEMS_PER_PAGE = 10;
@@ -46396,7 +46405,7 @@ var HistoryPanel = function HistoryPanel(_ref) {
46396
46405
  width: "200px"
46397
46406
  })), React.createElement(ScrollArea$1, {
46398
46407
  id: "MarketContainer"
46399
- }, transactions.length === 0 ? React.createElement(EmptyState$5, null, "No transactions yet") : transactions.map(function (tx, index) {
46408
+ }, transactions.length === 0 ? React.createElement(EmptyState$4, null, "No transactions yet") : transactions.map(function (tx, index) {
46400
46409
  var _tx$metadata;
46401
46410
  return React.createElement(RowWrapper$1, {
46402
46411
  key: index,
@@ -46537,7 +46546,7 @@ var GoldAmount = /*#__PURE__*/styled.span.withConfig({
46537
46546
  if (negative.includes($type)) return uiColors.red + " !important";
46538
46547
  return '#888 !important';
46539
46548
  });
46540
- var EmptyState$5 = /*#__PURE__*/styled.div.withConfig({
46549
+ var EmptyState$4 = /*#__PURE__*/styled.div.withConfig({
46541
46550
  displayName: "HistoryPanel__EmptyState",
46542
46551
  componentId: "sc-74mioa-20"
46543
46552
  })(["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;"]);