@rpg-engine/long-bow 0.2.93 → 0.2.95

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.
@@ -32946,10 +32946,10 @@ function useOutsideClick(ref, id) {
32946
32946
  }
32947
32947
  }
32948
32948
  // Bind the event listener
32949
- document.addEventListener('mousedown', handleClickOutside);
32949
+ document.addEventListener('pointerdown', handleClickOutside);
32950
32950
  return function () {
32951
32951
  // Unbind the event listener on clean up
32952
- document.removeEventListener('mousedown', handleClickOutside);
32952
+ document.removeEventListener('pointerdown', handleClickOutside);
32953
32953
  };
32954
32954
  }, [ref]);
32955
32955
  }
@@ -33525,9 +33525,11 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
33525
33525
  }
33526
33526
  }, [dropPosition]);
33527
33527
  var getStackInfo = function getStackInfo(itemId, stackQty) {
33528
- // if (itemToRender?.isStackable && itemToRender?.stackQty) {
33529
33528
  var isFractionalStackQty = stackQty % 1 !== 0;
33530
33529
  var isLargerThan999 = stackQty > 999;
33530
+ var qtyClassName = 'regular';
33531
+ if (isLargerThan999) qtyClassName = 'small';
33532
+ if (isFractionalStackQty) qtyClassName = 'xsmall';
33531
33533
  if (stackQty > 1) {
33532
33534
  return React__default.createElement(ItemQtyContainer, {
33533
33535
  key: "qty-" + itemId
@@ -33535,8 +33537,8 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
33535
33537
  maxLines: 1,
33536
33538
  maxWidth: "48px"
33537
33539
  }, React__default.createElement(ItemQty, {
33538
- className: isFractionalStackQty || isLargerThan999 ? 'small' : 'regular'
33539
- }, ' ', stackQty, ' ')));
33540
+ className: qtyClassName
33541
+ }, " ", stackQty, " ")));
33540
33542
  }
33541
33543
  return undefined;
33542
33544
  };
@@ -33652,7 +33654,6 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
33652
33654
  //@ts-ignore
33653
33655
  var classes = Array.from((_e$target = e.target) == null ? void 0 : _e$target.classList);
33654
33656
  var isOutsideDrop = classes.some(function (elm) {
33655
- //elm matches ItemContainer string
33656
33657
  return elm.includes('rpgui-content');
33657
33658
  }) || classes.length === 0;
33658
33659
  if (isOutsideDrop) {
@@ -33749,7 +33750,7 @@ var ItemQtyContainer = /*#__PURE__*/styled.div.withConfig({
33749
33750
  var ItemQty = /*#__PURE__*/styled.span.withConfig({
33750
33751
  displayName: "ItemSlot__ItemQty",
33751
33752
  componentId: "sc-l2j5ef-3"
33752
- })(["&.regular{font-size:", ";}&.small{font-size:", ";}"], uiFonts.size.small, uiFonts.size.xsmall);
33753
+ })(["&.regular{font-size:", ";}&.small{font-size:", ";}&.xsmall{font-size:", ";}"], uiFonts.size.small, uiFonts.size.xsmall, uiFonts.size.xxsmall);
33753
33754
 
33754
33755
  var EquipmentSet = function EquipmentSet(_ref) {
33755
33756
  var equipmentSet = _ref.equipmentSet,