@rpg-engine/long-bow 0.3.38 → 0.3.39
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 +41 -12
- 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 +41 -12
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/TradingMenu/TradingItemRow.tsx +35 -5
- package/src/components/TradingMenu/TradingMenu.tsx +1 -1
package/dist/long-bow.esm.js
CHANGED
|
@@ -35757,6 +35757,19 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
35757
35757
|
onQuantityChange(traderItem, newQuantity);
|
|
35758
35758
|
}
|
|
35759
35759
|
};
|
|
35760
|
+
var onLeftOutClick = function onLeftOutClick() {
|
|
35761
|
+
if (selectedQty >= 10) {
|
|
35762
|
+
var newQuantity = selectedQty - 10;
|
|
35763
|
+
onQuantityChange(traderItem, newQuantity);
|
|
35764
|
+
}
|
|
35765
|
+
};
|
|
35766
|
+
var onRightOutClick = function onRightOutClick() {
|
|
35767
|
+
var _traderItem$qty2;
|
|
35768
|
+
if (selectedQty < ((_traderItem$qty2 = traderItem.qty) != null ? _traderItem$qty2 : 999)) {
|
|
35769
|
+
var newQuantity = selectedQty + 10;
|
|
35770
|
+
onQuantityChange(traderItem, newQuantity);
|
|
35771
|
+
}
|
|
35772
|
+
};
|
|
35760
35773
|
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$1, null, React.createElement(SpriteFromAtlas, {
|
|
35761
35774
|
atlasIMG: atlasIMG,
|
|
35762
35775
|
atlasJSON: atlasJSON,
|
|
@@ -35770,54 +35783,70 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
35770
35783
|
maxLines: 1,
|
|
35771
35784
|
maxWidth: "250px"
|
|
35772
35785
|
}, capitalize(traderItem.name))), React.createElement("p", null, "$", traderItem.price))), React.createElement(QuantityContainer, null, React.createElement(SelectArrow, {
|
|
35786
|
+
size: 32,
|
|
35787
|
+
className: "arrow-selector",
|
|
35788
|
+
direction: "left",
|
|
35789
|
+
onClick: onLeftOutClick,
|
|
35790
|
+
onTouchStart: onLeftOutClick
|
|
35791
|
+
}), React.createElement(StyledArrow, {
|
|
35773
35792
|
size: 32,
|
|
35774
35793
|
className: "arrow-selector",
|
|
35775
35794
|
direction: "left",
|
|
35776
35795
|
onClick: onLeftClick,
|
|
35777
35796
|
onTouchStart: onLeftClick
|
|
35778
|
-
}), React.createElement(QuantityDisplay, null, React.createElement(TextOverlay$2, null, React.createElement(Item$1, null, selectedQty))), React.createElement(
|
|
35797
|
+
}), React.createElement(QuantityDisplay, null, React.createElement(TextOverlay$2, null, React.createElement(Item$1, null, selectedQty))), React.createElement(StyledArrow, {
|
|
35779
35798
|
size: 32,
|
|
35780
35799
|
className: "arrow-selector",
|
|
35781
35800
|
direction: "right",
|
|
35782
35801
|
onClick: onRightClick,
|
|
35783
35802
|
onTouchStart: onRightClick
|
|
35803
|
+
}), React.createElement(SelectArrow, {
|
|
35804
|
+
size: 32,
|
|
35805
|
+
className: "arrow-selector",
|
|
35806
|
+
direction: "right",
|
|
35807
|
+
onClick: onRightOutClick,
|
|
35808
|
+
onTouchStart: onRightOutClick
|
|
35784
35809
|
})));
|
|
35785
35810
|
};
|
|
35811
|
+
var StyledArrow = /*#__PURE__*/styled(SelectArrow).withConfig({
|
|
35812
|
+
displayName: "TradingItemRow__StyledArrow",
|
|
35813
|
+
componentId: "sc-mja0b5-0"
|
|
35814
|
+
})(["margin:40px;"]);
|
|
35786
35815
|
var ItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
35787
35816
|
displayName: "TradingItemRow__ItemWrapper",
|
|
35788
|
-
componentId: "sc-mja0b5-
|
|
35817
|
+
componentId: "sc-mja0b5-1"
|
|
35789
35818
|
})(["width:100%;margin:auto;display:flex;justify-content:space-between;margin-bottom:1rem;&:hover{background-color:", ";}padding:0.5rem;"], uiColors.darkGray);
|
|
35790
35819
|
var ItemNameContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35791
35820
|
displayName: "TradingItemRow__ItemNameContainer",
|
|
35792
|
-
componentId: "sc-mja0b5-
|
|
35821
|
+
componentId: "sc-mja0b5-2"
|
|
35793
35822
|
})(["flex:60%;"]);
|
|
35794
35823
|
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35795
35824
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
35796
|
-
componentId: "sc-mja0b5-
|
|
35825
|
+
componentId: "sc-mja0b5-3"
|
|
35797
35826
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 58px;"]);
|
|
35798
35827
|
var SpriteContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
35799
35828
|
displayName: "TradingItemRow__SpriteContainer",
|
|
35800
|
-
componentId: "sc-mja0b5-
|
|
35829
|
+
componentId: "sc-mja0b5-4"
|
|
35801
35830
|
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
35802
35831
|
var NameValue = /*#__PURE__*/styled.div.withConfig({
|
|
35803
35832
|
displayName: "TradingItemRow__NameValue",
|
|
35804
|
-
componentId: "sc-mja0b5-
|
|
35833
|
+
componentId: "sc-mja0b5-5"
|
|
35805
35834
|
})(["p{font-size:0.75rem;margin:0;}"]);
|
|
35806
35835
|
var Item$1 = /*#__PURE__*/styled.span.withConfig({
|
|
35807
35836
|
displayName: "TradingItemRow__Item",
|
|
35808
|
-
componentId: "sc-mja0b5-
|
|
35837
|
+
componentId: "sc-mja0b5-6"
|
|
35809
35838
|
})(["color:white;text-align:center;z-index:1;width:100%;"]);
|
|
35810
35839
|
var TextOverlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
35811
35840
|
displayName: "TradingItemRow__TextOverlay",
|
|
35812
|
-
componentId: "sc-mja0b5-
|
|
35841
|
+
componentId: "sc-mja0b5-7"
|
|
35813
35842
|
})(["width:100%;position:relative;"]);
|
|
35814
35843
|
var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35815
35844
|
displayName: "TradingItemRow__QuantityContainer",
|
|
35816
|
-
componentId: "sc-mja0b5-
|
|
35817
|
-
})(["position:relative;display:flex;min-width:100px;width:40%;justify-content:center;align-items:center;flex:
|
|
35845
|
+
componentId: "sc-mja0b5-8"
|
|
35846
|
+
})(["position:relative;display:flex;min-width:100px;width:40%;justify-content:center;align-items:center;flex:40%;"]);
|
|
35818
35847
|
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
35819
35848
|
displayName: "TradingItemRow__QuantityDisplay",
|
|
35820
|
-
componentId: "sc-mja0b5-
|
|
35849
|
+
componentId: "sc-mja0b5-9"
|
|
35821
35850
|
})(["font-size:", ";"], uiFonts.size.small);
|
|
35822
35851
|
|
|
35823
35852
|
var TradingMenu = function TradingMenu(_ref) {
|
|
@@ -35879,7 +35908,7 @@ var TradingMenu = function TradingMenu(_ref) {
|
|
|
35879
35908
|
onCloseButton: function onCloseButton() {
|
|
35880
35909
|
if (onClose) onClose();
|
|
35881
35910
|
},
|
|
35882
|
-
width: "
|
|
35911
|
+
width: "600px",
|
|
35883
35912
|
cancelDrag: ".equipment-container-body .arrow-selector"
|
|
35884
35913
|
}, React.createElement(React.Fragment, null, React.createElement("div", {
|
|
35885
35914
|
style: {
|