@rpg-engine/long-bow 0.3.76 → 0.3.78

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.
@@ -33426,15 +33426,16 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
33426
33426
  var x = -rect.x * 100 / (scale * 100);
33427
33427
  var y = -rect.y * 100 / (scale * 100);
33428
33428
  current.style.transform = "translate(" + x + "px, " + y + "px)";
33429
- current.style.opacity = '1';
33429
+ current.style.opacity = '0.92';
33430
33430
  }
33431
33431
  return;
33432
33432
  }, []);
33433
33433
  return React.createElement(Container$9, {
33434
33434
  ref: ref,
33435
- onTouchEnd: function onTouchEnd(e) {
33436
- e.stopPropagation();
33437
- closeTooltip();
33435
+ onTouchEnd: function onTouchEnd() {
33436
+ setTimeout(function () {
33437
+ closeTooltip();
33438
+ }, 10);
33438
33439
  },
33439
33440
  scale: scale
33440
33441
  }, React.createElement(ItemInfoDisplay, {
@@ -33447,7 +33448,10 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
33447
33448
  return React.createElement(Option, {
33448
33449
  key: option.id,
33449
33450
  onTouchEnd: function onTouchEnd() {
33450
- return onSelected == null ? void 0 : onSelected(option.id);
33451
+ setTimeout(function () {
33452
+ onSelected == null ? void 0 : onSelected(option.id);
33453
+ closeTooltip();
33454
+ }, 10);
33451
33455
  }
33452
33456
  }, option.text);
33453
33457
  })));
@@ -33455,7 +33459,7 @@ var MobileItemTooltip = function MobileItemTooltip(_ref) {
33455
33459
  var Container$9 = /*#__PURE__*/styled.div.withConfig({
33456
33460
  displayName: "MobileItemTooltip__Container",
33457
33461
  componentId: "sc-ku4p1j-0"
33458
- })(["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;"], function (_ref2) {
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) {
33459
33463
  var scale = _ref2.scale;
33460
33464
  return "calc(100vw * 100 / " + scale * 100 + ")";
33461
33465
  }, function (_ref3) {
@@ -33465,11 +33469,11 @@ var Container$9 = /*#__PURE__*/styled.div.withConfig({
33465
33469
  var OptionsContainer = /*#__PURE__*/styled.div.withConfig({
33466
33470
  displayName: "MobileItemTooltip__OptionsContainer",
33467
33471
  componentId: "sc-ku4p1j-1"
33468
- })(["display:flex;flex-direction:column;margin-left:2rem;gap:1rem;"]);
33472
+ })(["display:flex;flex-direction:column;gap:0.5rem;flex-wrap:wrap;@media (max-width:580px){flex-direction:row;justify-content:center;}"]);
33469
33473
  var Option = /*#__PURE__*/styled.button.withConfig({
33470
33474
  displayName: "MobileItemTooltip__Option",
33471
33475
  componentId: "sc-ku4p1j-2"
33472
- })(["padding:1rem;background-color:", ";border:none;border-radius:3px;"], uiColors.lightGray);
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;}"]);
33473
33477
 
33474
33478
  var generateContextMenuListOptions = function generateContextMenuListOptions(actionsByTypeList) {
33475
33479
  var contextMenu = actionsByTypeList.map(function (action) {
@@ -34029,7 +34033,7 @@ var ItemInfo = function ItemInfo(_ref) {
34029
34033
  var Container$b = /*#__PURE__*/styled.div.withConfig({
34030
34034
  displayName: "ItemInfo__Container",
34031
34035
  componentId: "sc-1xm4q8k-0"
34032
- })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;width:max-content;font-size:", ";border:3px solid ", ";"], uiFonts.size.small, function (_ref2) {
34036
+ })(["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) {
34033
34037
  var _rarityColor;
34034
34038
  var item = _ref2.item;
34035
34039
  return (_rarityColor = rarityColor(item)) != null ? _rarityColor : uiColors.lightGray;
@@ -34052,11 +34056,11 @@ var Type = /*#__PURE__*/styled.div.withConfig({
34052
34056
  var Statistic = /*#__PURE__*/styled.div.withConfig({
34053
34057
  displayName: "ItemInfo__Statistic",
34054
34058
  componentId: "sc-1xm4q8k-4"
34055
- })(["margin-bottom:0.4rem;.label{display:inline-block;margin-right:0.5rem;color:inherit;}.value{display:inline-block;color:inherit;}&.better,.better{color:", ";}&.worse,.worse{color:", ";}"], uiColors.lightGreen, uiColors.cardinal);
34059
+ })(["margin-bottom:0.4rem;width:max-content;.label{display:inline-block;margin-right:0.5rem;color:inherit;}.value{display:inline-block;color:inherit;}&.better,.better{color:", ";}&.worse,.worse{color:", ";}"], uiColors.lightGreen, uiColors.cardinal);
34056
34060
  var Description = /*#__PURE__*/styled.div.withConfig({
34057
34061
  displayName: "ItemInfo__Description",
34058
34062
  componentId: "sc-1xm4q8k-5"
34059
- })(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;width:max-content;max-width:20rem;"], uiFonts.size.small, uiColors.lightGray);
34063
+ })(["margin-top:1.5rem;font-size:", ";color:", ";font-style:italic;"], uiFonts.size.small, uiColors.lightGray);
34060
34064
  var Header = /*#__PURE__*/styled.div.withConfig({
34061
34065
  displayName: "ItemInfo__Header",
34062
34066
  componentId: "sc-1xm4q8k-6"
@@ -34064,7 +34068,7 @@ var Header = /*#__PURE__*/styled.div.withConfig({
34064
34068
  var AllowedSlots = /*#__PURE__*/styled.div.withConfig({
34065
34069
  displayName: "ItemInfo__AllowedSlots",
34066
34070
  componentId: "sc-1xm4q8k-7"
34067
- })(["display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0.5rem;margin-left:2rem;"]);
34071
+ })(["display:flex;align-items:center;justify-content:center;gap:0.5rem;margin-left:auto;align-self:flex-start;"]);
34068
34072
  var StackInfo = /*#__PURE__*/styled.div.withConfig({
34069
34073
  displayName: "ItemInfo__StackInfo",
34070
34074
  componentId: "sc-1xm4q8k-8"
@@ -34117,7 +34121,7 @@ var ItemInfoDisplay = function ItemInfoDisplay(_ref) {
34117
34121
  var Flex = /*#__PURE__*/styled.div.withConfig({
34118
34122
  displayName: "ItemInfoDisplay__Flex",
34119
34123
  componentId: "sc-1lftdo8-0"
34120
- })(["display:flex;gap:0.5rem;flex-direction:", ";"], function (_ref2) {
34124
+ })(["display:flex;gap:0.5rem;flex-direction:", ";@media (max-width:580px){flex-direction:column-reverse;align-items:center;}"], function (_ref2) {
34121
34125
  var $isMobile = _ref2.$isMobile;
34122
34126
  return $isMobile ? 'row-reverse' : 'row';
34123
34127
  });