@rpg-engine/long-bow 0.5.17 → 0.5.19
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/components/Abstractions/SlotsContainer.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +12 -5
- 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 +12 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Abstractions/SlotsContainer.tsx +3 -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({
|
|
@@ -15435,7 +15441,8 @@ var SlotsContainer = function SlotsContainer(_ref) {
|
|
|
15435
15441
|
_onPositionChangeStart = _ref.onPositionChangeStart,
|
|
15436
15442
|
onOutsideClick = _ref.onOutsideClick,
|
|
15437
15443
|
initialPosition = _ref.initialPosition,
|
|
15438
|
-
scale = _ref.scale
|
|
15444
|
+
scale = _ref.scale,
|
|
15445
|
+
width = _ref.width;
|
|
15439
15446
|
return React__default.createElement(DraggableContainer, {
|
|
15440
15447
|
title: title,
|
|
15441
15448
|
type: exports.RPGUIContainerTypes.Framed,
|
|
@@ -15444,7 +15451,7 @@ var SlotsContainer = function SlotsContainer(_ref) {
|
|
|
15444
15451
|
onClose();
|
|
15445
15452
|
}
|
|
15446
15453
|
},
|
|
15447
|
-
width:
|
|
15454
|
+
width: width != null ? width : '415px',
|
|
15448
15455
|
cancelDrag: ".item-container-body, #shortcuts_list",
|
|
15449
15456
|
onPositionChange: function onPositionChange(_ref2) {
|
|
15450
15457
|
var x = _ref2.x,
|
|
@@ -15853,7 +15860,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
|
|
|
15853
15860
|
var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15854
15861
|
displayName: "ItemContainer__ItemsContainer",
|
|
15855
15862
|
componentId: "sc-15y5p9l-0"
|
|
15856
|
-
})(["display:flex;justify-content:center;flex-wrap:wrap;max-height:270px;overflow-y:auto;"]);
|
|
15863
|
+
})(["display:flex;justify-content:center;flex-wrap:wrap;max-height:270px;overflow-y:auto;overflow-x:hidden;width:415px;"]);
|
|
15857
15864
|
var QuantitySelectorContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15858
15865
|
displayName: "ItemContainer__QuantitySelectorContainer",
|
|
15859
15866
|
componentId: "sc-15y5p9l-1"
|