@rpg-engine/long-bow 0.8.212 → 0.8.214

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.
@@ -10871,7 +10871,7 @@ var Tabs = function Tabs(_ref) {
10871
10871
  var TabsContainer = /*#__PURE__*/styled.div.withConfig({
10872
10872
  displayName: "Tabs__TabsContainer",
10873
10873
  componentId: "sc-n35er2-0"
10874
- })(["display:flex;gap:10px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
10874
+ })(["display:flex;gap:10px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;overflow-x:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]);
10875
10875
  var TabButton$1 = /*#__PURE__*/styled.button.withConfig({
10876
10876
  displayName: "Tabs__TabButton",
10877
10877
  componentId: "sc-n35er2-1"
@@ -14439,7 +14439,8 @@ var Marketplace = function Marketplace(props) {
14439
14439
  if (onClose) onClose();
14440
14440
  },
14441
14441
  isFullScreen: fullScreen,
14442
- width: "920px",
14442
+ width: "1050px",
14443
+ minWidth: "750px",
14443
14444
  cancelDrag: "#MarketContainer, .rpgui-dropdown-imp, input, .empty-slot, button",
14444
14445
  scale: scale
14445
14446
  }, React.createElement(Tabs, {
@@ -39707,6 +39708,8 @@ var Store = function Store(_ref) {
39707
39708
  customHistoryContent = _ref.customHistoryContent,
39708
39709
  _ref$fullScreen = _ref.fullScreen,
39709
39710
  fullScreen = _ref$fullScreen === void 0 ? false : _ref$fullScreen,
39711
+ containerWidth = _ref.containerWidth,
39712
+ containerHeight = _ref.containerHeight,
39710
39713
  _ref$packsTabLabel = _ref.packsTabLabel,
39711
39714
  packsTabLabel = _ref$packsTabLabel === void 0 ? 'Packs' : _ref$packsTabLabel,
39712
39715
  packsBadge = _ref.packsBadge,
@@ -39735,14 +39738,15 @@ var Store = function Store(_ref) {
39735
39738
  selectedPack = _useState[0],
39736
39739
  setSelectedPack = _useState[1];
39737
39740
  var _useState2 = useState(function () {
39738
- var _initialTabs$;
39739
- var initialTabs = (tabOrder != null ? tabOrder : defaultTabOrder).filter(function (id) {
39741
+ var _validTabs$;
39742
+ var allTabIds = [].concat(tabOrder != null ? tabOrder : defaultTabOrder, customCharactersContent ? ['characters'] : [], onRedeem ? ['redeem'] : [], onShowWallet || customWalletContent ? ['wallet'] : [], onShowHistory || customHistoryContent ? ['history'] : []);
39743
+ var validTabs = Array.from(new Set(allTabIds.filter(function (id) {
39740
39744
  return !(hidePremiumTab && id === 'premium');
39741
- });
39742
- if (defaultActiveTab && initialTabs.includes(defaultActiveTab)) {
39745
+ })));
39746
+ if (defaultActiveTab && validTabs.includes(defaultActiveTab)) {
39743
39747
  return defaultActiveTab;
39744
39748
  }
39745
- return (_initialTabs$ = initialTabs[0]) != null ? _initialTabs$ : hidePremiumTab ? 'items' : 'premium';
39749
+ return (_validTabs$ = validTabs[0]) != null ? _validTabs$ : hidePremiumTab ? 'items' : 'premium';
39746
39750
  }),
39747
39751
  activeTab = _useState2[0],
39748
39752
  setActiveTab = _useState2[1];
@@ -39995,7 +39999,7 @@ var Store = function Store(_ref) {
39995
39999
  },
39996
40000
  characters: {
39997
40001
  id: 'characters',
39998
- title: 'Characters',
40002
+ title: 'Char Trade',
39999
40003
  icon: React.createElement(FaUsers, {
40000
40004
  size: 16
40001
40005
  }),
@@ -40043,9 +40047,9 @@ var Store = function Store(_ref) {
40043
40047
  return React.createElement(DraggableContainer, {
40044
40048
  title: "Store",
40045
40049
  onCloseButton: onClose,
40046
- width: "850px",
40047
- minWidth: "600px",
40048
- height: "auto",
40050
+ width: containerWidth != null ? containerWidth : "1000px",
40051
+ minWidth: "700px",
40052
+ height: containerHeight != null ? containerHeight : "auto",
40049
40053
  type: RPGUIContainerTypes.Framed,
40050
40054
  cancelDrag: "[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button",
40051
40055
  isFullScreen: fullScreen
@@ -40063,11 +40067,9 @@ var Store = function Store(_ref) {
40063
40067
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
40064
40068
  while (1) switch (_context4.prev = _context4.next) {
40065
40069
  case 0:
40066
- _context4.next = 2;
40067
- return handleCartPurchase(_onPurchase4);
40068
- case 2:
40070
+ handleCartPurchase(_onPurchase4);
40069
40071
  return _context4.abrupt("return", true);
40070
- case 3:
40072
+ case 2:
40071
40073
  case "end":
40072
40074
  return _context4.stop();
40073
40075
  }
@@ -40152,7 +40154,7 @@ var Store = function Store(_ref) {
40152
40154
  }
40153
40155
  }
40154
40156
  } : undefined
40155
- }), React.createElement(MainContent$1, null, React.createElement(HeaderRow, null, React.createElement(Tabs, {
40157
+ }), React.createElement(MainContent$1, null, React.createElement(HeaderRow, null, React.createElement(TabsFlexWrapper, null, React.createElement(Tabs, {
40156
40158
  options: availableTabIds.map(function (id) {
40157
40159
  var _tabsMap$id, _tabsMap$id2;
40158
40160
  return {
@@ -40170,7 +40172,7 @@ var Store = function Store(_ref) {
40170
40172
  _onTabChange(nextTab, itemCount);
40171
40173
  }
40172
40174
  }
40173
- }), React.createElement(CartButtonWrapper, null, React.createElement(CTAButton, {
40175
+ })), React.createElement(CartButtonWrapper, null, React.createElement(CTAButton, {
40174
40176
  icon: React.createElement(FaShoppingCart, null),
40175
40177
  onClick: handleOpenCart
40176
40178
  }), getTotalItems() > 0 && React.createElement(CartBadge, null, getTotalItems()))), React.createElement(TabContent, null, (_tabsMap$activeTab = tabsMap[activeTab]) == null ? void 0 : _tabsMap$activeTab.content)), cartItems.length > 0 && React.createElement(Footer$3, null, React.createElement(CartSummary, null, React.createElement(CartInfo, null, React.createElement("span", null, "Items in cart:"), React.createElement("span", null, getTotalItems())), React.createElement(CartInfo, null, React.createElement("span", null, "Total:"), React.createElement("span", null, currencySymbol, getTotalPrice().toFixed(2)))), React.createElement(CTAButton, {
@@ -40187,50 +40189,54 @@ var Container$Q = /*#__PURE__*/styled.div.withConfig({
40187
40189
  var HeaderRow = /*#__PURE__*/styled.div.withConfig({
40188
40190
  displayName: "Store__HeaderRow",
40189
40191
  componentId: "sc-64dj00-1"
40190
- })(["display:flex;align-items:center;justify-content:space-between;margin-bottom:0.25rem;padding-top:10px;padding-right:12px;"]);
40192
+ })(["display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:0.25rem;padding-top:10px;padding-right:12px;"]);
40193
+ var TabsFlexWrapper = /*#__PURE__*/styled.div.withConfig({
40194
+ displayName: "Store__TabsFlexWrapper",
40195
+ componentId: "sc-64dj00-2"
40196
+ })(["flex:1;min-width:0;"]);
40191
40197
  var CartButtonWrapper = /*#__PURE__*/styled.div.withConfig({
40192
40198
  displayName: "Store__CartButtonWrapper",
40193
- componentId: "sc-64dj00-2"
40194
- })(["position:relative;"]);
40199
+ componentId: "sc-64dj00-3"
40200
+ })(["position:relative;flex-shrink:0;"]);
40195
40201
  var CartBadge = /*#__PURE__*/styled.div.withConfig({
40196
40202
  displayName: "Store__CartBadge",
40197
- componentId: "sc-64dj00-3"
40203
+ componentId: "sc-64dj00-4"
40198
40204
  })(["position:absolute;top:-8px;right:-8px;background:#ef4444;color:white;font-family:'Press Start 2P',cursive;font-size:0.5rem;padding:4px;border-radius:50%;border:2px solid #000;display:flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;box-sizing:content-box;"]);
40199
40205
  var MainContent$1 = /*#__PURE__*/styled.div.withConfig({
40200
40206
  displayName: "Store__MainContent",
40201
- componentId: "sc-64dj00-4"
40207
+ componentId: "sc-64dj00-5"
40202
40208
  })(["flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;"]);
40203
40209
  var TabContent = /*#__PURE__*/styled.div.withConfig({
40204
40210
  displayName: "Store__TabContent",
40205
- componentId: "sc-64dj00-5"
40211
+ componentId: "sc-64dj00-6"
40206
40212
  })(["flex:1;overflow-y:auto;"]);
40207
40213
  var Footer$3 = /*#__PURE__*/styled.div.withConfig({
40208
40214
  displayName: "Store__Footer",
40209
- componentId: "sc-64dj00-6"
40215
+ componentId: "sc-64dj00-7"
40210
40216
  })(["display:flex;flex-direction:column;gap:1rem;padding:1rem;border-top:2px solid #f59e0b;background:rgba(0,0,0,0.2);flex-shrink:0;"]);
40211
40217
  var CartSummary = /*#__PURE__*/styled.div.withConfig({
40212
40218
  displayName: "Store__CartSummary",
40213
- componentId: "sc-64dj00-7"
40219
+ componentId: "sc-64dj00-8"
40214
40220
  })(["display:flex;flex-direction:column;gap:0.5rem;"]);
40215
40221
  var CartInfo = /*#__PURE__*/styled.div.withConfig({
40216
40222
  displayName: "Store__CartInfo",
40217
- componentId: "sc-64dj00-8"
40223
+ componentId: "sc-64dj00-9"
40218
40224
  })(["display:flex;align-items:center;gap:0.75rem;font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;span:last-child{color:#fef08a;}"]);
40219
40225
  var TabLabelWithBadge = /*#__PURE__*/styled.span.withConfig({
40220
40226
  displayName: "Store__TabLabelWithBadge",
40221
- componentId: "sc-64dj00-9"
40227
+ componentId: "sc-64dj00-10"
40222
40228
  })(["display:inline-flex;align-items:center;gap:5px;"]);
40223
40229
  var LoadingMessage$1 = /*#__PURE__*/styled.div.withConfig({
40224
40230
  displayName: "Store__LoadingMessage",
40225
- componentId: "sc-64dj00-10"
40231
+ componentId: "sc-64dj00-11"
40226
40232
  })(["text-align:center;color:", ";padding:2rem;"], uiColors.white);
40227
40233
  var ErrorMessage$3 = /*#__PURE__*/styled.div.withConfig({
40228
40234
  displayName: "Store__ErrorMessage",
40229
- componentId: "sc-64dj00-11"
40235
+ componentId: "sc-64dj00-12"
40230
40236
  })(["text-align:center;color:", ";padding:2rem;"], uiColors.red);
40231
40237
  var CenteredContent = /*#__PURE__*/styled.div.withConfig({
40232
40238
  displayName: "Store__CenteredContent",
40233
- componentId: "sc-64dj00-12"
40239
+ componentId: "sc-64dj00-13"
40234
40240
  })(["display:flex;align-items:center;justify-content:center;height:100%;padding:2rem;"]);
40235
40241
 
40236
40242
  var TextArea = function TextArea(_ref) {