@rpg-engine/long-bow 0.5.16 → 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 +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 +1 -1
- package/src/components/ChatRevamp/SearchCharacter.tsx +1 -0
- package/src/components/Item/Inventory/ItemContainer.tsx +7 -5
- package/src/components/Item/Inventory/ItemSlot.tsx +15 -4
|
@@ -12715,7 +12715,8 @@ var SearchCharacter = function SearchCharacter(_ref) {
|
|
|
12715
12715
|
onFocus: onFocus,
|
|
12716
12716
|
onBlur: onBlur,
|
|
12717
12717
|
onPointerDown: onFocus,
|
|
12718
|
-
autoFocus: true
|
|
12718
|
+
autoFocus: true,
|
|
12719
|
+
placeholder: "Type a character name..."
|
|
12719
12720
|
})), React__default.createElement(Column, {
|
|
12720
12721
|
justifyContent: "flex-end"
|
|
12721
12722
|
}, React__default.createElement(SearchButton, {
|
|
@@ -13684,6 +13685,12 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
13684
13685
|
dropPosition = _useState8[0],
|
|
13685
13686
|
setDropPosition = _useState8[1];
|
|
13686
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
|
+
}, []);
|
|
13687
13694
|
var _useState9 = React.useState([]),
|
|
13688
13695
|
contextActions = _useState9[0],
|
|
13689
13696
|
setContextActions = _useState9[1];
|
|
@@ -13987,7 +13994,7 @@ var rarityColor = function rarityColor(item) {
|
|
|
13987
13994
|
var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
13988
13995
|
displayName: "ItemSlot__Container",
|
|
13989
13996
|
componentId: "sc-l2j5ef-0"
|
|
13990
|
-
})(["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) {
|
|
13991
13998
|
var item = _ref2.item;
|
|
13992
13999
|
return rarityColor(item);
|
|
13993
14000
|
}, function (_ref3) {
|
|
@@ -14003,7 +14010,7 @@ var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
|
14003
14010
|
var ItemContainer = /*#__PURE__*/styled.div.withConfig({
|
|
14004
14011
|
displayName: "ItemSlot__ItemContainer",
|
|
14005
14012
|
componentId: "sc-l2j5ef-1"
|
|
14006
|
-
})(["width:
|
|
14013
|
+
})(["width:64px;height:64px;", ""], function (props) {
|
|
14007
14014
|
return props.isFocused && 'z-index: 100; pointer-events: none;';
|
|
14008
14015
|
});
|
|
14009
14016
|
var ItemQtyContainer = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -15443,7 +15450,7 @@ var SlotsContainer = function SlotsContainer(_ref) {
|
|
|
15443
15450
|
onClose();
|
|
15444
15451
|
}
|
|
15445
15452
|
},
|
|
15446
|
-
width: "
|
|
15453
|
+
width: "450px",
|
|
15447
15454
|
cancelDrag: ".item-container-body, #shortcuts_list",
|
|
15448
15455
|
onPositionChange: function onPositionChange(_ref2) {
|
|
15449
15456
|
var x = _ref2.x,
|
|
@@ -15852,7 +15859,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
|
|
|
15852
15859
|
var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15853
15860
|
displayName: "ItemContainer__ItemsContainer",
|
|
15854
15861
|
componentId: "sc-15y5p9l-0"
|
|
15855
|
-
})(["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;"]);
|
|
15856
15863
|
var QuantitySelectorContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15857
15864
|
displayName: "ItemContainer__QuantitySelectorContainer",
|
|
15858
15865
|
componentId: "sc-15y5p9l-1"
|