@rpg-engine/long-bow 0.3.79 → 0.3.81

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.
Files changed (34) hide show
  1. package/dist/components/Abstractions/ModalPortal.d.ts +6 -0
  2. package/dist/components/Abstractions/SlotsContainer.d.ts +1 -0
  3. package/dist/components/DraggableContainer.d.ts +1 -0
  4. package/dist/components/Equipment/EquipmentSet.d.ts +1 -1
  5. package/dist/components/Item/Inventory/ItemContainer.d.ts +1 -1
  6. package/dist/components/QuestInfo/QuestInfo.d.ts +1 -0
  7. package/dist/components/QuestList.d.ts +1 -0
  8. package/dist/components/SkillsContainer.d.ts +1 -0
  9. package/dist/components/Spellbook/Spellbook.d.ts +1 -0
  10. package/dist/components/TimeWidget/TimeWidget.d.ts +1 -0
  11. package/dist/long-bow.cjs.development.js +105 -89
  12. package/dist/long-bow.cjs.development.js.map +1 -1
  13. package/dist/long-bow.cjs.production.min.js +1 -1
  14. package/dist/long-bow.cjs.production.min.js.map +1 -1
  15. package/dist/long-bow.esm.js +105 -89
  16. package/dist/long-bow.esm.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/components/Abstractions/ModalPortal.tsx +22 -0
  19. package/src/components/Abstractions/SlotsContainer.tsx +3 -0
  20. package/src/components/CraftBook/CraftBook.tsx +1 -0
  21. package/src/components/DraggableContainer.tsx +3 -0
  22. package/src/components/Equipment/EquipmentSet.tsx +4 -3
  23. package/src/components/Item/Cards/ItemInfo.tsx +1 -1
  24. package/src/components/Item/Cards/ItemTooltip.tsx +20 -22
  25. package/src/components/Item/Cards/MobileItemTooltip.tsx +70 -55
  26. package/src/components/Item/Inventory/ItemContainer.tsx +28 -24
  27. package/src/components/Item/Inventory/ItemSlot.tsx +3 -1
  28. package/src/components/QuestInfo/QuestInfo.tsx +3 -0
  29. package/src/components/QuestList.tsx +7 -1
  30. package/src/components/SkillsContainer.tsx +7 -1
  31. package/src/components/Spellbook/Spellbook.tsx +3 -0
  32. package/src/components/TimeWidget/TimeWidget.tsx +3 -1
  33. package/src/components/TradingMenu/TradingMenu.tsx +1 -0
  34. package/src/mocks/itemContainer.mocks.ts +1 -1
@@ -6,6 +6,7 @@ import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
6
6
  import { RxPaperPlane } from 'react-icons/rx';
7
7
  import Draggable from 'react-draggable';
8
8
  import { v4 } from 'uuid';
9
+ import ReactDOM from 'react-dom';
9
10
  import { camelCase } from 'lodash-es';
10
11
  import { observer } from 'mobx-react-lite';
11
12
  import 'rpgui/rpgui.min.css';
@@ -33218,7 +33219,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
33218
33219
  initialPosition = _ref$initialPosition === void 0 ? {
33219
33220
  x: 0,
33220
33221
  y: 0
33221
- } : _ref$initialPosition;
33222
+ } : _ref$initialPosition,
33223
+ scale = _ref.scale;
33222
33224
  var draggableRef = useRef(null);
33223
33225
  useOutsideClick(draggableRef, 'item-container');
33224
33226
  useEffect(function () {
@@ -33244,7 +33246,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
33244
33246
  });
33245
33247
  }
33246
33248
  },
33247
- defaultPosition: initialPosition
33249
+ defaultPosition: initialPosition,
33250
+ scale: scale
33248
33251
  }, React.createElement(Container$6, {
33249
33252
  ref: draggableRef,
33250
33253
  width: width,
@@ -33358,6 +33361,18 @@ var DropdownOptions = /*#__PURE__*/styled.ul.withConfig({
33358
33361
  return props.opened ? 'block' : 'none';
33359
33362
  });
33360
33363
 
33364
+ var modalRoot = /*#__PURE__*/document.getElementById('modal-root');
33365
+ var ModalPortal = function ModalPortal(_ref) {
33366
+ var children = _ref.children;
33367
+ return ReactDOM.createPortal(React.createElement(Container$8, {
33368
+ className: "rpgui-content"
33369
+ }, children), modalRoot);
33370
+ };
33371
+ var Container$8 = /*#__PURE__*/styled.div.withConfig({
33372
+ displayName: "ModalPortal__Container",
33373
+ componentId: "sc-dgmp04-0"
33374
+ })(["position:static !important;"]);
33375
+
33361
33376
  var RelativeListMenu = function RelativeListMenu(_ref) {
33362
33377
  var options = _ref.options,
33363
33378
  onSelected = _ref.onSelected,
@@ -33379,7 +33394,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
33379
33394
  document.removeEventListener('clickOutside', function (_e) {});
33380
33395
  };
33381
33396
  }, []);
33382
- return React.createElement(Container$8, {
33397
+ return React.createElement(Container$9, {
33383
33398
  fontSize: fontSize,
33384
33399
  ref: ref
33385
33400
  }, React.createElement("ul", {
@@ -33396,7 +33411,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
33396
33411
  }, (params == null ? void 0 : params.text) || 'No text');
33397
33412
  })));
33398
33413
  };
33399
- var Container$8 = /*#__PURE__*/styled.div.withConfig({
33414
+ var Container$9 = /*#__PURE__*/styled.div.withConfig({
33400
33415
  displayName: "RelativeListMenu__Container",
33401
33416
  componentId: "sc-7hohf-0"
33402
33417
  })(["position:absolute;top:1rem;left:4rem;display:flex;flex-direction:column;width:max-content;justify-content:start;align-items:flex-start;li{font-size:", "em;}"], function (props) {
@@ -33418,24 +33433,17 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
33418
33433
  options = _ref.options,
33419
33434
  onSelected = _ref.onSelected;
33420
33435
  var ref = useRef(null);
33421
- useEffect(function () {
33422
- var current = ref.current;
33423
- if (current) {
33424
- // Adjust the position to be on whole window
33425
- var rect = current.getBoundingClientRect();
33426
- var x = -rect.x * 100 / (scale * 100);
33427
- var y = -rect.y * 100 / (scale * 100);
33428
- current.style.transform = "translate(" + x + "px, " + y + "px)";
33429
- current.style.opacity = '0.92';
33430
- }
33431
- return;
33432
- }, []);
33433
- return React.createElement(Container$9, {
33436
+ var handleFadeOut = function handleFadeOut() {
33437
+ var _ref$current;
33438
+ (_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
33439
+ };
33440
+ return React.createElement(ModalPortal, null, React.createElement(Container$a, {
33434
33441
  ref: ref,
33435
33442
  onTouchEnd: function onTouchEnd() {
33443
+ handleFadeOut();
33436
33444
  setTimeout(function () {
33437
33445
  closeTooltip();
33438
- }, 10);
33446
+ }, 100);
33439
33447
  },
33440
33448
  scale: scale
33441
33449
  }, React.createElement(ItemInfoDisplay, {
@@ -33448,24 +33456,19 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
33448
33456
  return React.createElement(Option, {
33449
33457
  key: option.id,
33450
33458
  onTouchEnd: function onTouchEnd() {
33459
+ handleFadeOut();
33451
33460
  setTimeout(function () {
33452
33461
  onSelected == null ? void 0 : onSelected(option.id);
33453
33462
  closeTooltip();
33454
- }, 10);
33463
+ }, 100);
33455
33464
  }
33456
33465
  }, option.text);
33457
- })));
33466
+ }))));
33458
33467
  };
33459
- var Container$9 = /*#__PURE__*/styled.div.withConfig({
33468
+ var Container$a = /*#__PURE__*/styled.div.withConfig({
33460
33469
  displayName: "MobileItemTooltip__Container",
33461
33470
  componentId: "sc-ku4p1j-0"
33462
- })(["position:fixed;z-index:50;left:0;top:0;opacity:0;width:", ";height:", ";background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;@media (max-width:580px){flex-direction:column;}"], function (_ref2) {
33463
- var scale = _ref2.scale;
33464
- return "calc(100vw * 100 / " + scale * 100 + ")";
33465
- }, function (_ref3) {
33466
- var scale = _ref3.scale;
33467
- return "calc(100vh * 100 / " + scale * 100 + ")";
33468
- });
33471
+ })(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
33469
33472
  var OptionsContainer = /*#__PURE__*/styled.div.withConfig({
33470
33473
  displayName: "MobileItemTooltip__OptionsContainer",
33471
33474
  componentId: "sc-ku4p1j-1"
@@ -33473,7 +33476,7 @@ var OptionsContainer = /*#__PURE__*/styled.div.withConfig({
33473
33476
  var Option = /*#__PURE__*/styled.button.withConfig({
33474
33477
  displayName: "MobileItemTooltip__Option",
33475
33478
  componentId: "sc-ku4p1j-2"
33476
- })(["padding:1rem;background-color:#333;color:white;border:none;border-radius:3px;width:8rem;transition:background-color 0.2s;&:hover{background-color:#555;}@media (max-width:580px){padding:1rem 0.5rem;}"]);
33479
+ })(["padding:1rem;background-color:#333;color:white;border:none;border-radius:3px;width:8rem;transition:background-color 0.1s;&:hover{background-color:#555;}@media (max-width:580px){padding:1rem 0.5rem;}"]);
33477
33480
 
33478
33481
  var generateContextMenuListOptions = function generateContextMenuListOptions(actionsByTypeList) {
33479
33482
  var contextMenu = actionsByTypeList.map(function (action) {
@@ -33668,7 +33671,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
33668
33671
  maxWidth: "48px"
33669
33672
  }, React.createElement(ItemQty, {
33670
33673
  className: qtyClassName
33671
- }, " ", stackQty, " ")));
33674
+ }, Math.round(stackQty * 100) / 100, ' ')));
33672
33675
  }
33673
33676
  return undefined;
33674
33677
  };
@@ -33762,7 +33765,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
33762
33765
  onDragEnd(quantity);
33763
33766
  }
33764
33767
  };
33765
- return React.createElement(Container$a, {
33768
+ return React.createElement(Container$b, {
33766
33769
  item: item,
33767
33770
  className: "rpgui-icon empty-slot",
33768
33771
  onMouseUp: function onMouseUp() {
@@ -33913,7 +33916,7 @@ var rarityColor = function rarityColor(item) {
33913
33916
  return null;
33914
33917
  }
33915
33918
  };
33916
- var Container$a = /*#__PURE__*/styled.div.withConfig({
33919
+ var Container$b = /*#__PURE__*/styled.div.withConfig({
33917
33920
  displayName: "ItemSlot__Container",
33918
33921
  componentId: "sc-l2j5ef-0"
33919
33922
  })(["margin:0.1rem;.sprite-from-atlas-img--item{position:relative;top:1.5rem;left:1.5rem;border-color:", ";box-shadow:", " inset,", ";}position:relative;&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:12px;pointer-events:none;animation:", ";@keyframes bg-color-change{0%{background-color:rgba(255 255 255 / 0.5);}50%{background-color:transparent;}100%{background-color:rgba(255 255 255 / 0.5);}}}"], function (_ref2) {
@@ -34024,13 +34027,13 @@ var ItemInfo = function ItemInfo(_ref) {
34024
34027
  }));
34025
34028
  });
34026
34029
  };
34027
- return React.createElement(Container$b, {
34030
+ return React.createElement(Container$c, {
34028
34031
  item: item
34029
34032
  }, React.createElement(Header, null, React.createElement("div", null, React.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React.createElement(Rarity, {
34030
34033
  item: item
34031
- }, item.rarity), React.createElement(Type, null, item.subType)), React.createElement(AllowedSlots, null, renderAvaibleSlots())), renderStatistics(), item.isTwoHanded && React.createElement(Statistic, null, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo, null, "x", (_item$stackQty = item.stackQty) != null ? _item$stackQty : 1, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React.createElement(MissingStatistics, null, React.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
34034
+ }, item.rarity), React.createElement(Type, null, item.subType)), React.createElement(AllowedSlots, null, renderAvaibleSlots())), renderStatistics(), item.isTwoHanded && React.createElement(Statistic, null, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo, null, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React.createElement(MissingStatistics, null, React.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
34032
34035
  };
34033
- var Container$b = /*#__PURE__*/styled.div.withConfig({
34036
+ var Container$c = /*#__PURE__*/styled.div.withConfig({
34034
34037
  displayName: "ItemInfo__Container",
34035
34038
  componentId: "sc-1xm4q8k-0"
34036
34039
  })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:15rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, function (_ref2) {
@@ -34143,22 +34146,18 @@ var ItemTooltip = function ItemTooltip(_ref) {
34143
34146
  var ref = useRef(null);
34144
34147
  useEffect(function () {
34145
34148
  var current = ref.current;
34146
- var initialOffset;
34147
34149
  if (current) {
34148
34150
  var handleMouseMove = function handleMouseMove(event) {
34149
34151
  var clientX = event.clientX,
34150
34152
  clientY = event.clientY;
34151
34153
  // Adjust the position of the tooltip based on the mouse position
34152
34154
  var rect = current.getBoundingClientRect();
34153
- if (!initialOffset) {
34154
- initialOffset = rect;
34155
- }
34156
34155
  var tooltipWidth = rect.width;
34157
34156
  var tooltipHeight = rect.height;
34158
34157
  var isOffScreenRight = clientX + tooltipWidth + offset > window.innerWidth;
34159
34158
  var isOffScreenBottom = clientY + tooltipHeight + offset > window.innerHeight;
34160
- var x = (isOffScreenRight ? clientX - tooltipWidth - offset : clientX + offset) - initialOffset.x;
34161
- var y = (isOffScreenBottom ? clientY - tooltipHeight - offset : clientY + offset) - initialOffset.y;
34159
+ var x = isOffScreenRight ? clientX - tooltipWidth - offset : clientX + offset;
34160
+ var y = isOffScreenBottom ? clientY - tooltipHeight - offset : clientY + offset;
34162
34161
  current.style.transform = "translate(" + x + "px, " + y + "px)";
34163
34162
  current.style.opacity = '1';
34164
34163
  };
@@ -34169,19 +34168,19 @@ var ItemTooltip = function ItemTooltip(_ref) {
34169
34168
  }
34170
34169
  return;
34171
34170
  }, []);
34172
- return React.createElement(Container$c, {
34171
+ return React.createElement(ModalPortal, null, React.createElement(Container$d, {
34173
34172
  ref: ref
34174
34173
  }, React.createElement(ItemInfoDisplay, {
34175
34174
  item: item,
34176
34175
  atlasIMG: atlasIMG,
34177
34176
  atlasJSON: atlasJSON,
34178
34177
  equipmentSet: equipmentSet
34179
- }));
34178
+ })));
34180
34179
  };
34181
- var Container$c = /*#__PURE__*/styled.div.withConfig({
34180
+ var Container$d = /*#__PURE__*/styled.div.withConfig({
34182
34181
  displayName: "ItemTooltip__Container",
34183
34182
  componentId: "sc-11d9r7x-0"
34184
- })(["position:fixed;z-index:50;pointer-events:none;left:0;top:0;opacity:0;"]);
34183
+ })(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
34185
34184
 
34186
34185
  var ItemInfoWrapper = function ItemInfoWrapper(_ref) {
34187
34186
  var children = _ref.children,
@@ -34284,7 +34283,8 @@ var CraftBook = function CraftBook(_ref) {
34284
34283
  if (onClose) {
34285
34284
  onClose();
34286
34285
  }
34287
- }
34286
+ },
34287
+ scale: scale
34288
34288
  }, React.createElement("div", {
34289
34289
  style: {
34290
34290
  width: '100%'
@@ -34441,7 +34441,7 @@ var EquipmentSet = function EquipmentSet(_ref) {
34441
34441
  onItemOutsideDrop = _ref.onItemOutsideDrop,
34442
34442
  checkIfItemCanBeMoved = _ref.checkIfItemCanBeMoved,
34443
34443
  checkIfItemShouldDragEnd = _ref.checkIfItemShouldDragEnd,
34444
- dragScale = _ref.dragScale;
34444
+ scale = _ref.scale;
34445
34445
  var neck = equipmentSet.neck,
34446
34446
  leftHand = equipmentSet.leftHand,
34447
34447
  ring = equipmentSet.ring,
@@ -34486,7 +34486,7 @@ var EquipmentSet = function EquipmentSet(_ref) {
34486
34486
  onDragEnd: function onDragEnd(quantity) {
34487
34487
  if (onItemDragEnd) onItemDragEnd(quantity);
34488
34488
  },
34489
- dragScale: dragScale,
34489
+ dragScale: scale,
34490
34490
  checkIfItemCanBeMoved: checkIfItemCanBeMoved,
34491
34491
  checkIfItemShouldDragEnd: checkIfItemShouldDragEnd,
34492
34492
  onPlaceDrop: function onPlaceDrop(item, slotIndex, itemContainerType) {
@@ -34507,7 +34507,8 @@ var EquipmentSet = function EquipmentSet(_ref) {
34507
34507
  if (onClose) onClose();
34508
34508
  },
34509
34509
  width: "330px",
34510
- cancelDrag: ".equipment-container-body"
34510
+ cancelDrag: ".equipment-container-body",
34511
+ scale: scale
34511
34512
  }, React.createElement(EquipmentSetContainer, {
34512
34513
  className: "equipment-container-body"
34513
34514
  }, React.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(0, 3)), React.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(3, 7)), React.createElement(EquipmentColumn, null, onRenderEquipmentSlotRange(7, 10))));
@@ -34527,7 +34528,8 @@ var SlotsContainer = function SlotsContainer(_ref) {
34527
34528
  onClose = _ref.onClose,
34528
34529
  _onPositionChange = _ref.onPositionChange,
34529
34530
  onOutsideClick = _ref.onOutsideClick,
34530
- initialPosition = _ref.initialPosition;
34531
+ initialPosition = _ref.initialPosition,
34532
+ scale = _ref.scale;
34531
34533
  return React.createElement(DraggableContainer, {
34532
34534
  title: title,
34533
34535
  type: RPGUIContainerTypes.Framed,
@@ -34549,7 +34551,8 @@ var SlotsContainer = function SlotsContainer(_ref) {
34549
34551
  }
34550
34552
  },
34551
34553
  onOutsideClick: onOutsideClick,
34552
- initialPosition: initialPosition
34554
+ initialPosition: initialPosition,
34555
+ scale: scale
34553
34556
  }, children);
34554
34557
  };
34555
34558
 
@@ -34742,7 +34745,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
34742
34745
  return word[0];
34743
34746
  }));
34744
34747
  };
34745
- return React.createElement(Container$d, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
34748
+ return React.createElement(Container$e, null, React.createElement("p", null, "Shortcuts:"), React.createElement(List, {
34746
34749
  id: "shortcuts_list"
34747
34750
  }, Array.from({
34748
34751
  length: 6
@@ -34758,7 +34761,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
34758
34761
  }, getContent(i));
34759
34762
  })));
34760
34763
  };
34761
- var Container$d = /*#__PURE__*/styled.div.withConfig({
34764
+ var Container$e = /*#__PURE__*/styled.div.withConfig({
34762
34765
  displayName: "ShortcutsSetter__Container",
34763
34766
  componentId: "sc-xuouuf-0"
34764
34767
  })(["p{margin:0;margin-left:0.5rem;}"]);
@@ -34792,7 +34795,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34792
34795
  checkIfItemCanBeMoved = _ref.checkIfItemCanBeMoved,
34793
34796
  initialPosition = _ref.initialPosition,
34794
34797
  checkIfItemShouldDragEnd = _ref.checkIfItemShouldDragEnd,
34795
- dragScale = _ref.dragScale,
34798
+ scale = _ref.scale,
34796
34799
  shortcuts = _ref.shortcuts,
34797
34800
  setItemShortcut = _ref.setItemShortcut,
34798
34801
  removeShortcut = _ref.removeShortcut,
@@ -34837,7 +34840,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34837
34840
  onDragEnd: function onDragEnd(quantity) {
34838
34841
  if (onItemDragEnd) onItemDragEnd(quantity);
34839
34842
  },
34840
- dragScale: dragScale,
34843
+ dragScale: scale,
34841
34844
  checkIfItemCanBeMoved: checkIfItemCanBeMoved,
34842
34845
  checkIfItemShouldDragEnd: checkIfItemShouldDragEnd,
34843
34846
  openQuantitySelector: function openQuantitySelector(maxQuantity, callback) {
@@ -34864,7 +34867,8 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34864
34867
  return React.createElement(React.Fragment, null, React.createElement(SlotsContainer, {
34865
34868
  title: itemContainer.name || 'Container',
34866
34869
  onClose: onClose,
34867
- initialPosition: initialPosition
34870
+ initialPosition: initialPosition,
34871
+ scale: scale
34868
34872
  }, type === ItemContainerType.Inventory && shortcuts && removeShortcut && React.createElement(ShortcutsSetter, {
34869
34873
  setSettingShortcutIndex: setSettingShortcutIndex,
34870
34874
  settingShortcutIndex: settingShortcutIndex,
@@ -34874,7 +34878,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34874
34878
  atlasJSON: atlasJSON
34875
34879
  }), React.createElement(ItemsContainer, {
34876
34880
  className: "item-container-body"
34877
- }, onRenderSlots())), quantitySelect.isOpen && React.createElement(QuantitySelectorContainer, null, React.createElement(ItemQuantitySelector, {
34881
+ }, onRenderSlots())), quantitySelect.isOpen && React.createElement(ModalPortal, null, React.createElement(QuantitySelectorContainer, null, React.createElement(ItemQuantitySelector, {
34878
34882
  quantity: quantitySelect.maxQuantity,
34879
34883
  onConfirm: function onConfirm(quantity) {
34880
34884
  quantitySelect.callback(quantity);
@@ -34892,7 +34896,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
34892
34896
  callback: function callback() {}
34893
34897
  });
34894
34898
  }
34895
- })));
34899
+ }))));
34896
34900
  };
34897
34901
  var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
34898
34902
  displayName: "ItemContainer__ItemsContainer",
@@ -34994,7 +34998,7 @@ var ListMenu = function ListMenu(_ref) {
34994
34998
  onSelected = _ref.onSelected,
34995
34999
  x = _ref.x,
34996
35000
  y = _ref.y;
34997
- return React.createElement(Container$e, {
35001
+ return React.createElement(Container$f, {
34998
35002
  x: x,
34999
35003
  y: y
35000
35004
  }, React.createElement("ul", {
@@ -35011,7 +35015,7 @@ var ListMenu = function ListMenu(_ref) {
35011
35015
  }, (params == null ? void 0 : params.text) || 'No text');
35012
35016
  })));
35013
35017
  };
35014
- var Container$e = /*#__PURE__*/styled.div.withConfig({
35018
+ var Container$f = /*#__PURE__*/styled.div.withConfig({
35015
35019
  displayName: "ListMenu__Container",
35016
35020
  componentId: "sc-i9097t-0"
35017
35021
  })(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
@@ -35065,7 +35069,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
35065
35069
  type: RPGUIContainerTypes.FramedGold,
35066
35070
  width: '50%',
35067
35071
  height: '180px'
35068
- }, React.createElement(React.Fragment, null, React.createElement(Container$f, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer, {
35072
+ }, React.createElement(React.Fragment, null, React.createElement(Container$g, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React.createElement(React.Fragment, null, React.createElement(TextContainer, {
35069
35073
  flex: '70%'
35070
35074
  }, React.createElement(NPCDialogText, {
35071
35075
  onStartStep: function onStartStep() {
@@ -35107,7 +35111,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
35107
35111
  src: img$7
35108
35112
  }))), ")"));
35109
35113
  };
35110
- var Container$f = /*#__PURE__*/styled.div.withConfig({
35114
+ var Container$g = /*#__PURE__*/styled.div.withConfig({
35111
35115
  displayName: "NPCMultiDialog__Container",
35112
35116
  componentId: "sc-rvu5wg-0"
35113
35117
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
@@ -35311,7 +35315,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
35311
35315
  return null;
35312
35316
  });
35313
35317
  };
35314
- return React.createElement(Container$g, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
35318
+ return React.createElement(Container$h, null, React.createElement(QuestionContainer, null, React.createElement(DynamicText, {
35315
35319
  text: currentQuestion.text,
35316
35320
  onStart: function onStart() {
35317
35321
  return setCanShowAnswers(false);
@@ -35321,7 +35325,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
35321
35325
  }
35322
35326
  })), canShowAnswers && React.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
35323
35327
  };
35324
- var Container$g = /*#__PURE__*/styled.div.withConfig({
35328
+ var Container$h = /*#__PURE__*/styled.div.withConfig({
35325
35329
  displayName: "QuestionDialog__Container",
35326
35330
  componentId: "sc-bxc5u0-0"
35327
35331
  })(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
@@ -35367,7 +35371,7 @@ var ProgressBar = function ProgressBar(_ref) {
35367
35371
  }
35368
35372
  return value * 100 / max;
35369
35373
  };
35370
- return React.createElement(Container$h, {
35374
+ return React.createElement(Container$i, {
35371
35375
  className: "rpgui-progress",
35372
35376
  "data-value": calculatePercentageValue(max, value) / 100,
35373
35377
  "data-rpguitype": "progress",
@@ -35396,7 +35400,7 @@ var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
35396
35400
  displayName: "ProgressBar__TextOverlay",
35397
35401
  componentId: "sc-qa6fzh-1"
35398
35402
  })(["width:100%;position:relative;"]);
35399
- var Container$h = /*#__PURE__*/styled.div.withConfig({
35403
+ var Container$i = /*#__PURE__*/styled.div.withConfig({
35400
35404
  displayName: "ProgressBar__Container",
35401
35405
  componentId: "sc-qa6fzh-2"
35402
35406
  })(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", ""], function (props) {
@@ -35413,7 +35417,8 @@ var QuestInfo = function QuestInfo(_ref) {
35413
35417
  var quests = _ref.quests,
35414
35418
  onClose = _ref.onClose,
35415
35419
  buttons = _ref.buttons,
35416
- onChangeQuest = _ref.onChangeQuest;
35420
+ onChangeQuest = _ref.onChangeQuest,
35421
+ scale = _ref.scale;
35417
35422
  var _useState = useState(0),
35418
35423
  currentIndex = _useState[0],
35419
35424
  setCurrentIndex = _useState[1];
@@ -35439,7 +35444,8 @@ var QuestInfo = function QuestInfo(_ref) {
35439
35444
  if (onClose) onClose();
35440
35445
  },
35441
35446
  width: "730px",
35442
- cancelDrag: ".equipment-container-body .arrow-selector"
35447
+ cancelDrag: ".equipment-container-body .arrow-selector",
35448
+ scale: scale
35443
35449
  }, quests.length >= 2 ? React.createElement(QuestsContainer, null, currentIndex !== 0 && React.createElement(SelectArrow, {
35444
35450
  direction: "left",
35445
35451
  onPointerDown: onLeftClick
@@ -35525,13 +35531,15 @@ var Thumbnail = /*#__PURE__*/styled.img.withConfig({
35525
35531
 
35526
35532
  var QuestList = function QuestList(_ref) {
35527
35533
  var quests = _ref.quests,
35528
- onClose = _ref.onClose;
35534
+ onClose = _ref.onClose,
35535
+ scale = _ref.scale;
35529
35536
  return React.createElement(QuestDraggableContainer$1, {
35530
35537
  type: RPGUIContainerTypes.Framed,
35531
35538
  onCloseButton: function onCloseButton() {
35532
35539
  if (onClose) onClose();
35533
35540
  },
35534
- width: "520px"
35541
+ width: "520px",
35542
+ scale: scale
35535
35543
  }, React.createElement("div", {
35536
35544
  style: {
35537
35545
  width: '100%'
@@ -35717,7 +35725,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35717
35725
  bgColor = _ref$bgColor === void 0 ? 'red' : _ref$bgColor,
35718
35726
  _ref$margin = _ref.margin,
35719
35727
  margin = _ref$margin === void 0 ? 20 : _ref$margin;
35720
- return React.createElement(Container$i, {
35728
+ return React.createElement(Container$j, {
35721
35729
  className: "simple-progress-bar"
35722
35730
  }, React.createElement(ProgressBarContainer, {
35723
35731
  margin: margin
@@ -35726,7 +35734,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
35726
35734
  bgColor: bgColor
35727
35735
  }))));
35728
35736
  };
35729
- var Container$i = /*#__PURE__*/styled.div.withConfig({
35737
+ var Container$j = /*#__PURE__*/styled.div.withConfig({
35730
35738
  displayName: "SimpleProgressBar__Container",
35731
35739
  componentId: "sc-mbeil3-0"
35732
35740
  })(["display:flex;justify-content:center;align-items:center;width:100%;"]);
@@ -35875,7 +35883,8 @@ var SkillsContainer = function SkillsContainer(_ref) {
35875
35883
  var onCloseButton = _ref.onCloseButton,
35876
35884
  skill = _ref.skill,
35877
35885
  atlasIMG = _ref.atlasIMG,
35878
- atlasJSON = _ref.atlasJSON;
35886
+ atlasJSON = _ref.atlasJSON,
35887
+ scale = _ref.scale;
35879
35888
  var onRenderSkillCategory = function onRenderSkillCategory(category) {
35880
35889
  var skillCategory = skillProps[category];
35881
35890
  var skillCategoryColor = skillCategory.color;
@@ -35902,7 +35911,8 @@ var SkillsContainer = function SkillsContainer(_ref) {
35902
35911
  };
35903
35912
  return React.createElement(SkillsDraggableContainer, {
35904
35913
  title: "Skills",
35905
- cancelDrag: "#skillsDiv"
35914
+ cancelDrag: "#skillsDiv",
35915
+ scale: scale
35906
35916
  }, onCloseButton && React.createElement(CloseButton$3, {
35907
35917
  onPointerDown: onCloseButton
35908
35918
  }, "X"), React.createElement(SkillsContainerDiv, {
@@ -35955,7 +35965,7 @@ var Spell = function Spell(_ref) {
35955
35965
  isSettingShortcut = _ref.isSettingShortcut,
35956
35966
  minMagicLevelRequired = _ref.minMagicLevelRequired;
35957
35967
  var disabled = isSettingShortcut ? charMagicLevel < minMagicLevelRequired : manaCost > charMana || charMagicLevel < minMagicLevelRequired;
35958
- return React.createElement(Container$j, {
35968
+ return React.createElement(Container$k, {
35959
35969
  disabled: disabled,
35960
35970
  onPointerDown: onPointerDown == null ? void 0 : onPointerDown.bind(null, spellKey),
35961
35971
  isSettingShortcut: isSettingShortcut && !disabled,
@@ -35968,7 +35978,7 @@ var Spell = function Spell(_ref) {
35968
35978
  className: "mana"
35969
35979
  }, manaCost)));
35970
35980
  };
35971
- var Container$j = /*#__PURE__*/styled.button.withConfig({
35981
+ var Container$k = /*#__PURE__*/styled.button.withConfig({
35972
35982
  displayName: "Spell__Container",
35973
35983
  componentId: "sc-j96fa2-0"
35974
35984
  })(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;height:5rem;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
@@ -36016,7 +36026,8 @@ var Spellbook = function Spellbook(_ref) {
36016
36026
  shortcuts = _ref.shortcuts,
36017
36027
  removeShortcut = _ref.removeShortcut,
36018
36028
  atlasIMG = _ref.atlasIMG,
36019
- atlasJSON = _ref.atlasJSON;
36029
+ atlasJSON = _ref.atlasJSON,
36030
+ scale = _ref.scale;
36020
36031
  var _useState = useState(''),
36021
36032
  search = _useState[0],
36022
36033
  setSearch = _useState[1];
@@ -36052,8 +36063,9 @@ var Spellbook = function Spellbook(_ref) {
36052
36063
  onCloseButton: onClose,
36053
36064
  width: "inherit",
36054
36065
  height: "inherit",
36055
- cancelDrag: "#spellbook-search, #shortcuts_list, .spell"
36056
- }, React.createElement(Container$k, null, React.createElement(Title$7, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36066
+ cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
36067
+ scale: scale
36068
+ }, React.createElement(Container$l, null, React.createElement(Title$7, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
36057
36069
  setSettingShortcutIndex: setSettingShortcutIndex,
36058
36070
  settingShortcutIndex: settingShortcutIndex,
36059
36071
  shortcuts: shortcuts,
@@ -36085,7 +36097,7 @@ var Title$7 = /*#__PURE__*/styled.h1.withConfig({
36085
36097
  displayName: "Spellbook__Title",
36086
36098
  componentId: "sc-r02nfq-0"
36087
36099
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
36088
- var Container$k = /*#__PURE__*/styled.div.withConfig({
36100
+ var Container$l = /*#__PURE__*/styled.div.withConfig({
36089
36101
  displayName: "Spellbook__Container",
36090
36102
  componentId: "sc-r02nfq-1"
36091
36103
  })(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
@@ -36123,8 +36135,11 @@ var img$c = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAABHCAYAAAA0qHhdA
36123
36135
  var TimeWidget = function TimeWidget(_ref) {
36124
36136
  var onClose = _ref.onClose,
36125
36137
  TimeClock = _ref.TimeClock,
36126
- periodOfDay = _ref.periodOfDay;
36127
- return React.createElement(Draggable, null, React.createElement(WidgetContainer, null, React.createElement(CloseButton$4, {
36138
+ periodOfDay = _ref.periodOfDay,
36139
+ scale = _ref.scale;
36140
+ return React.createElement(Draggable, {
36141
+ scale: scale
36142
+ }, React.createElement(WidgetContainer, null, React.createElement(CloseButton$4, {
36128
36143
  onPointerDown: onClose
36129
36144
  }, "X"), React.createElement(DayNightContainer, null, React.createElement(DayNightPeriod, {
36130
36145
  periodOfDay: periodOfDay
@@ -36312,7 +36327,8 @@ var TradingMenu = function TradingMenu(_ref) {
36312
36327
  if (onClose) onClose();
36313
36328
  },
36314
36329
  width: "600px",
36315
- cancelDrag: "#TraderContainer"
36330
+ cancelDrag: "#TraderContainer",
36331
+ scale: scale
36316
36332
  }, React.createElement(React.Fragment, null, React.createElement("div", {
36317
36333
  style: {
36318
36334
  width: '100%'
@@ -36381,11 +36397,11 @@ var Truncate = function Truncate(_ref) {
36381
36397
  var _ref$maxLines = _ref.maxLines,
36382
36398
  maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
36383
36399
  children = _ref.children;
36384
- return React.createElement(Container$l, {
36400
+ return React.createElement(Container$m, {
36385
36401
  maxLines: maxLines
36386
36402
  }, children);
36387
36403
  };
36388
- var Container$l = /*#__PURE__*/styled.div.withConfig({
36404
+ var Container$m = /*#__PURE__*/styled.div.withConfig({
36389
36405
  displayName: "Truncate__Container",
36390
36406
  componentId: "sc-6x00qb-0"
36391
36407
  })(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
@@ -36448,7 +36464,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
36448
36464
  var _useState2 = useState(false),
36449
36465
  showGoNextIndicator = _useState2[0],
36450
36466
  setShowGoNextIndicator = _useState2[1];
36451
- return React.createElement(Container$m, null, React.createElement(DynamicText, {
36467
+ return React.createElement(Container$n, null, React.createElement(DynamicText, {
36452
36468
  text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
36453
36469
  onFinish: function onFinish() {
36454
36470
  setShowGoNextIndicator(true);
@@ -36466,7 +36482,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
36466
36482
  }
36467
36483
  }));
36468
36484
  };
36469
- var Container$m = /*#__PURE__*/styled.div.withConfig({
36485
+ var Container$n = /*#__PURE__*/styled.div.withConfig({
36470
36486
  displayName: "NPCDialogText__Container",
36471
36487
  componentId: "sc-1cxkdh9-0"
36472
36488
  })([""]);
@@ -36508,7 +36524,7 @@ var NPCDialog = function NPCDialog(_ref) {
36508
36524
  }
36509
36525
  })), type === NPCDialogType.TextAndThumbnail && React.createElement(ThumbnailContainer$1, null, React.createElement(NPCThumbnail$1, {
36510
36526
  src: imagePath || img$6
36511
- }))) : React.createElement(React.Fragment, null, React.createElement(Container$n, null, React.createElement(TextContainer$2, {
36527
+ }))) : React.createElement(React.Fragment, null, React.createElement(Container$o, null, React.createElement(TextContainer$2, {
36512
36528
  flex: type === NPCDialogType.TextAndThumbnail ? '70%' : '100%'
36513
36529
  }, React.createElement(NPCDialogText, {
36514
36530
  type: type,
@@ -36522,7 +36538,7 @@ var NPCDialog = function NPCDialog(_ref) {
36522
36538
  src: imagePath || img$6
36523
36539
  })))));
36524
36540
  };
36525
- var Container$n = /*#__PURE__*/styled.div.withConfig({
36541
+ var Container$o = /*#__PURE__*/styled.div.withConfig({
36526
36542
  displayName: "NPCDialog__Container",
36527
36543
  componentId: "sc-1b4aw74-0"
36528
36544
  })(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);