@rpg-engine/long-bow 0.8.212 → 0.8.213

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.
@@ -10874,7 +10874,7 @@ var Tabs = function Tabs(_ref) {
10874
10874
  var TabsContainer = /*#__PURE__*/styled__default.div.withConfig({
10875
10875
  displayName: "Tabs__TabsContainer",
10876
10876
  componentId: "sc-n35er2-0"
10877
- })(["display:flex;gap:10px;width:95%;margin:0 auto 15px auto;border-bottom:2px solid rgba(255,255,255,0.1);padding-bottom:10px;"]);
10877
+ })(["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;}"]);
10878
10878
  var TabButton$1 = /*#__PURE__*/styled__default.button.withConfig({
10879
10879
  displayName: "Tabs__TabButton",
10880
10880
  componentId: "sc-n35er2-1"
@@ -14442,7 +14442,8 @@ var Marketplace = function Marketplace(props) {
14442
14442
  if (onClose) onClose();
14443
14443
  },
14444
14444
  isFullScreen: fullScreen,
14445
- width: "920px",
14445
+ width: "1050px",
14446
+ minWidth: "750px",
14446
14447
  cancelDrag: "#MarketContainer, .rpgui-dropdown-imp, input, .empty-slot, button",
14447
14448
  scale: scale
14448
14449
  }, React__default.createElement(Tabs, {
@@ -39737,14 +39738,15 @@ var Store = function Store(_ref) {
39737
39738
  selectedPack = _useState[0],
39738
39739
  setSelectedPack = _useState[1];
39739
39740
  var _useState2 = React.useState(function () {
39740
- var _initialTabs$;
39741
- 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) {
39742
39744
  return !(hidePremiumTab && id === 'premium');
39743
- });
39744
- if (defaultActiveTab && initialTabs.includes(defaultActiveTab)) {
39745
+ })));
39746
+ if (defaultActiveTab && validTabs.includes(defaultActiveTab)) {
39745
39747
  return defaultActiveTab;
39746
39748
  }
39747
- return (_initialTabs$ = initialTabs[0]) != null ? _initialTabs$ : hidePremiumTab ? 'items' : 'premium';
39749
+ return (_validTabs$ = validTabs[0]) != null ? _validTabs$ : hidePremiumTab ? 'items' : 'premium';
39748
39750
  }),
39749
39751
  activeTab = _useState2[0],
39750
39752
  setActiveTab = _useState2[1];
@@ -39997,7 +39999,7 @@ var Store = function Store(_ref) {
39997
39999
  },
39998
40000
  characters: {
39999
40001
  id: 'characters',
40000
- title: 'Characters',
40002
+ title: 'Char Trade',
40001
40003
  icon: React__default.createElement(fa.FaUsers, {
40002
40004
  size: 16
40003
40005
  }),
@@ -40045,8 +40047,8 @@ var Store = function Store(_ref) {
40045
40047
  return React__default.createElement(DraggableContainer, {
40046
40048
  title: "Store",
40047
40049
  onCloseButton: onClose,
40048
- width: "850px",
40049
- minWidth: "600px",
40050
+ width: "1000px",
40051
+ minWidth: "700px",
40050
40052
  height: "auto",
40051
40053
  type: exports.RPGUIContainerTypes.Framed,
40052
40054
  cancelDrag: "[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button",
@@ -40065,11 +40067,9 @@ var Store = function Store(_ref) {
40065
40067
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
40066
40068
  while (1) switch (_context4.prev = _context4.next) {
40067
40069
  case 0:
40068
- _context4.next = 2;
40069
- return handleCartPurchase(_onPurchase4);
40070
- case 2:
40070
+ handleCartPurchase(_onPurchase4);
40071
40071
  return _context4.abrupt("return", true);
40072
- case 3:
40072
+ case 2:
40073
40073
  case "end":
40074
40074
  return _context4.stop();
40075
40075
  }
@@ -40154,7 +40154,7 @@ var Store = function Store(_ref) {
40154
40154
  }
40155
40155
  }
40156
40156
  } : undefined
40157
- }), React__default.createElement(MainContent$1, null, React__default.createElement(HeaderRow, null, React__default.createElement(Tabs, {
40157
+ }), React__default.createElement(MainContent$1, null, React__default.createElement(HeaderRow, null, React__default.createElement(TabsFlexWrapper, null, React__default.createElement(Tabs, {
40158
40158
  options: availableTabIds.map(function (id) {
40159
40159
  var _tabsMap$id, _tabsMap$id2;
40160
40160
  return {
@@ -40172,7 +40172,7 @@ var Store = function Store(_ref) {
40172
40172
  _onTabChange(nextTab, itemCount);
40173
40173
  }
40174
40174
  }
40175
- }), React__default.createElement(CartButtonWrapper, null, React__default.createElement(CTAButton, {
40175
+ })), React__default.createElement(CartButtonWrapper, null, React__default.createElement(CTAButton, {
40176
40176
  icon: React__default.createElement(fa.FaShoppingCart, null),
40177
40177
  onClick: handleOpenCart
40178
40178
  }), getTotalItems() > 0 && React__default.createElement(CartBadge, null, getTotalItems()))), React__default.createElement(TabContent, null, (_tabsMap$activeTab = tabsMap[activeTab]) == null ? void 0 : _tabsMap$activeTab.content)), cartItems.length > 0 && React__default.createElement(Footer$3, null, React__default.createElement(CartSummary, null, React__default.createElement(CartInfo, null, React__default.createElement("span", null, "Items in cart:"), React__default.createElement("span", null, getTotalItems())), React__default.createElement(CartInfo, null, React__default.createElement("span", null, "Total:"), React__default.createElement("span", null, currencySymbol, getTotalPrice().toFixed(2)))), React__default.createElement(CTAButton, {
@@ -40189,50 +40189,54 @@ var Container$Q = /*#__PURE__*/styled__default.div.withConfig({
40189
40189
  var HeaderRow = /*#__PURE__*/styled__default.div.withConfig({
40190
40190
  displayName: "Store__HeaderRow",
40191
40191
  componentId: "sc-64dj00-1"
40192
- })(["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__default.div.withConfig({
40194
+ displayName: "Store__TabsFlexWrapper",
40195
+ componentId: "sc-64dj00-2"
40196
+ })(["flex:1;min-width:0;"]);
40193
40197
  var CartButtonWrapper = /*#__PURE__*/styled__default.div.withConfig({
40194
40198
  displayName: "Store__CartButtonWrapper",
40195
- componentId: "sc-64dj00-2"
40196
- })(["position:relative;"]);
40199
+ componentId: "sc-64dj00-3"
40200
+ })(["position:relative;flex-shrink:0;"]);
40197
40201
  var CartBadge = /*#__PURE__*/styled__default.div.withConfig({
40198
40202
  displayName: "Store__CartBadge",
40199
- componentId: "sc-64dj00-3"
40203
+ componentId: "sc-64dj00-4"
40200
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;"]);
40201
40205
  var MainContent$1 = /*#__PURE__*/styled__default.div.withConfig({
40202
40206
  displayName: "Store__MainContent",
40203
- componentId: "sc-64dj00-4"
40207
+ componentId: "sc-64dj00-5"
40204
40208
  })(["flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;"]);
40205
40209
  var TabContent = /*#__PURE__*/styled__default.div.withConfig({
40206
40210
  displayName: "Store__TabContent",
40207
- componentId: "sc-64dj00-5"
40211
+ componentId: "sc-64dj00-6"
40208
40212
  })(["flex:1;overflow-y:auto;"]);
40209
40213
  var Footer$3 = /*#__PURE__*/styled__default.div.withConfig({
40210
40214
  displayName: "Store__Footer",
40211
- componentId: "sc-64dj00-6"
40215
+ componentId: "sc-64dj00-7"
40212
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;"]);
40213
40217
  var CartSummary = /*#__PURE__*/styled__default.div.withConfig({
40214
40218
  displayName: "Store__CartSummary",
40215
- componentId: "sc-64dj00-7"
40219
+ componentId: "sc-64dj00-8"
40216
40220
  })(["display:flex;flex-direction:column;gap:0.5rem;"]);
40217
40221
  var CartInfo = /*#__PURE__*/styled__default.div.withConfig({
40218
40222
  displayName: "Store__CartInfo",
40219
- componentId: "sc-64dj00-8"
40223
+ componentId: "sc-64dj00-9"
40220
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;}"]);
40221
40225
  var TabLabelWithBadge = /*#__PURE__*/styled__default.span.withConfig({
40222
40226
  displayName: "Store__TabLabelWithBadge",
40223
- componentId: "sc-64dj00-9"
40227
+ componentId: "sc-64dj00-10"
40224
40228
  })(["display:inline-flex;align-items:center;gap:5px;"]);
40225
40229
  var LoadingMessage$1 = /*#__PURE__*/styled__default.div.withConfig({
40226
40230
  displayName: "Store__LoadingMessage",
40227
- componentId: "sc-64dj00-10"
40231
+ componentId: "sc-64dj00-11"
40228
40232
  })(["text-align:center;color:", ";padding:2rem;"], uiColors.white);
40229
40233
  var ErrorMessage$3 = /*#__PURE__*/styled__default.div.withConfig({
40230
40234
  displayName: "Store__ErrorMessage",
40231
- componentId: "sc-64dj00-11"
40235
+ componentId: "sc-64dj00-12"
40232
40236
  })(["text-align:center;color:", ";padding:2rem;"], uiColors.red);
40233
40237
  var CenteredContent = /*#__PURE__*/styled__default.div.withConfig({
40234
40238
  displayName: "Store__CenteredContent",
40235
- componentId: "sc-64dj00-12"
40239
+ componentId: "sc-64dj00-13"
40236
40240
  })(["display:flex;align-items:center;justify-content:center;height:100%;padding:2rem;"]);
40237
40241
 
40238
40242
  var TextArea = function TextArea(_ref) {