@rpg-engine/long-bow 0.1.82 → 0.1.83
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/Button.d.ts +1 -0
- package/dist/components/QuestInfo/index.d.ts +14 -0
- package/dist/long-bow.cjs.development.js +19 -7
- 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 +19 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +3 -2
- package/src/components/Item/Inventory/ItemSlot.tsx +6 -1
- package/src/components/QuestInfo/img/default.png +0 -0
- package/src/components/QuestInfo/index.tsx +147 -0
- package/src/components/SkillsContainer.tsx +15 -1
- package/src/mocks/itemContainer.mocks.ts +1 -1
package/dist/long-bow.esm.js
CHANGED
|
@@ -42,7 +42,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
42
42
|
return target;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
var _excluded = ["children", "buttonType"];
|
|
45
|
+
var _excluded = ["disabled", "children", "buttonType"];
|
|
46
46
|
var ButtonTypes;
|
|
47
47
|
|
|
48
48
|
(function (ButtonTypes) {
|
|
@@ -51,12 +51,15 @@ var ButtonTypes;
|
|
|
51
51
|
})(ButtonTypes || (ButtonTypes = {}));
|
|
52
52
|
|
|
53
53
|
var Button = function Button(_ref) {
|
|
54
|
-
var
|
|
54
|
+
var _ref$disabled = _ref.disabled,
|
|
55
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
56
|
+
children = _ref.children,
|
|
55
57
|
buttonType = _ref.buttonType,
|
|
56
58
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
57
59
|
|
|
58
60
|
return React.createElement(ButtonContainer, Object.assign({
|
|
59
|
-
className: "" + buttonType
|
|
61
|
+
className: "" + buttonType,
|
|
62
|
+
disabled: disabled
|
|
60
63
|
}, props), React.createElement("p", null, children));
|
|
61
64
|
};
|
|
62
65
|
var ButtonContainer = /*#__PURE__*/styled.button.withConfig({
|
|
@@ -5794,6 +5797,7 @@ var ItemSlot = function ItemSlot(_ref) {
|
|
|
5794
5797
|
|
|
5795
5798
|
if (itemToRender != null && itemToRender.texturePath) {
|
|
5796
5799
|
element.push(React.createElement(SpriteFromAtlas, {
|
|
5800
|
+
key: itemToRender._id,
|
|
5797
5801
|
atlasIMG: img,
|
|
5798
5802
|
atlasJSON: atlasJSON,
|
|
5799
5803
|
spriteKey: itemToRender.texturePath,
|
|
@@ -5803,7 +5807,8 @@ var ItemSlot = function ItemSlot(_ref) {
|
|
|
5803
5807
|
|
|
5804
5808
|
if (itemToRender != null && itemToRender.isStackable && itemToRender != null && itemToRender.stackQty) {
|
|
5805
5809
|
element.push(React.createElement(ItemQty, {
|
|
5806
|
-
left: getLeftPositionValue(itemToRender.stackQty)
|
|
5810
|
+
left: getLeftPositionValue(itemToRender.stackQty),
|
|
5811
|
+
key: "qty-" + itemToRender._id
|
|
5807
5812
|
}, ' ', itemToRender.stackQty, ' '));
|
|
5808
5813
|
}
|
|
5809
5814
|
|
|
@@ -5815,6 +5820,7 @@ var ItemSlot = function ItemSlot(_ref) {
|
|
|
5815
5820
|
|
|
5816
5821
|
if (itemToRender != null && itemToRender.texturePath && (_itemToRender$allowed = itemToRender.allowedEquipSlotType) != null && _itemToRender$allowed.includes(slotSpriteMask)) {
|
|
5817
5822
|
return React.createElement(SpriteFromAtlas, {
|
|
5823
|
+
key: Math.random(),
|
|
5818
5824
|
atlasIMG: img,
|
|
5819
5825
|
atlasJSON: atlasJSON,
|
|
5820
5826
|
spriteKey: itemToRender.texturePath,
|
|
@@ -7325,9 +7331,11 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
7325
7331
|
var onCloseButton = _ref.onCloseButton,
|
|
7326
7332
|
skill = _ref.skill;
|
|
7327
7333
|
return React.createElement(SkillsDraggableContainer, {
|
|
7328
|
-
title: "Skills"
|
|
7329
|
-
|
|
7330
|
-
|
|
7334
|
+
title: "Skills"
|
|
7335
|
+
}, onCloseButton && React.createElement(CloseButton$2, {
|
|
7336
|
+
onClick: onCloseButton,
|
|
7337
|
+
onTouchStart: onCloseButton
|
|
7338
|
+
}, "X"), React.createElement(SkillSplitDiv, null, React.createElement("p", null, "Combat Skills"), React.createElement("hr", {
|
|
7331
7339
|
className: "golden"
|
|
7332
7340
|
})), React.createElement(SkillProgressBar, {
|
|
7333
7341
|
skillName: 'First',
|
|
@@ -7462,6 +7470,10 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
7462
7470
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
7463
7471
|
componentId: "sc-1g0c67q-1"
|
|
7464
7472
|
})(["width:100%;font-size:11px;margin-top:10px;hr{margin:0px;padding:0px;}p{margin-bottom:0px;}"]);
|
|
7473
|
+
var CloseButton$2 = /*#__PURE__*/styled.div.withConfig({
|
|
7474
|
+
displayName: "SkillsContainer__CloseButton",
|
|
7475
|
+
componentId: "sc-1g0c67q-2"
|
|
7476
|
+
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:0.7rem;"]);
|
|
7465
7477
|
|
|
7466
7478
|
var TextArea = function TextArea(_ref) {
|
|
7467
7479
|
var props = _extends({}, _ref);
|