@rpg-engine/long-bow 0.5.17 → 0.5.18
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.
- package/dist/long-bow.cjs.development.js +10 -4
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +10 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Abstractions/SlotsContainer.tsx +1 -1
- package/src/components/Item/Inventory/ItemContainer.tsx +7 -5
- package/src/components/Item/Inventory/ItemSlot.tsx +15 -4
|
@@ -13685,6 +13685,12 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
13685
13685
|
dropPosition = _useState8[0],
|
|
13686
13686
|
setDropPosition = _useState8[1];
|
|
13687
13687
|
var dragContainer = React.useRef(null);
|
|
13688
|
+
React.useEffect(function () {
|
|
13689
|
+
// This fixes an issue where if you drag an item inside of a scrollable container (overflow), its cut out
|
|
13690
|
+
if (dragContainer.current) {
|
|
13691
|
+
dragContainer.current.style.position = 'fixed';
|
|
13692
|
+
}
|
|
13693
|
+
}, []);
|
|
13688
13694
|
var _useState9 = React.useState([]),
|
|
13689
13695
|
contextActions = _useState9[0],
|
|
13690
13696
|
setContextActions = _useState9[1];
|
|
@@ -13988,7 +13994,7 @@ var rarityColor = function rarityColor(item) {
|
|
|
13988
13994
|
var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
13989
13995
|
displayName: "ItemSlot__Container",
|
|
13990
13996
|
componentId: "sc-l2j5ef-0"
|
|
13991
|
-
})(["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) {
|
|
13997
|
+
})(["margin:0.1rem;.react-draggable-dragging{opacity:0.5;}.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) {
|
|
13992
13998
|
var item = _ref2.item;
|
|
13993
13999
|
return rarityColor(item);
|
|
13994
14000
|
}, function (_ref3) {
|
|
@@ -14004,7 +14010,7 @@ var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
|
14004
14010
|
var ItemContainer = /*#__PURE__*/styled.div.withConfig({
|
|
14005
14011
|
displayName: "ItemSlot__ItemContainer",
|
|
14006
14012
|
componentId: "sc-l2j5ef-1"
|
|
14007
|
-
})(["width:
|
|
14013
|
+
})(["width:64px;height:64px;", ""], function (props) {
|
|
14008
14014
|
return props.isFocused && 'z-index: 100; pointer-events: none;';
|
|
14009
14015
|
});
|
|
14010
14016
|
var ItemQtyContainer = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -15444,7 +15450,7 @@ var SlotsContainer = function SlotsContainer(_ref) {
|
|
|
15444
15450
|
onClose();
|
|
15445
15451
|
}
|
|
15446
15452
|
},
|
|
15447
|
-
width: "
|
|
15453
|
+
width: "450px",
|
|
15448
15454
|
cancelDrag: ".item-container-body, #shortcuts_list",
|
|
15449
15455
|
onPositionChange: function onPositionChange(_ref2) {
|
|
15450
15456
|
var x = _ref2.x,
|
|
@@ -15853,7 +15859,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
|
|
|
15853
15859
|
var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15854
15860
|
displayName: "ItemContainer__ItemsContainer",
|
|
15855
15861
|
componentId: "sc-15y5p9l-0"
|
|
15856
|
-
})(["display:flex;justify-content:center;flex-wrap:wrap;max-height:270px;overflow-y:auto;"]);
|
|
15862
|
+
})(["display:flex;justify-content:center;flex-wrap:wrap;max-height:270px;overflow-y:auto;overflow-x:hidden;width:450px;"]);
|
|
15857
15863
|
var QuantitySelectorContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15858
15864
|
displayName: "ItemContainer__QuantitySelectorContainer",
|
|
15859
15865
|
componentId: "sc-15y5p9l-1"
|