@rpg-engine/long-bow 0.7.96 → 0.7.97
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 +7 -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 +7 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CraftBook/CraftingRecipe.tsx +2 -1
- package/src/components/CraftBook/CraftingTooltip.tsx +4 -3
|
@@ -28625,14 +28625,14 @@ var TooltipContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28625
28625
|
var MinCraftingRequirementsText = /*#__PURE__*/styled__default.div.withConfig({
|
|
28626
28626
|
displayName: "CraftingTooltip__MinCraftingRequirementsText",
|
|
28627
28627
|
componentId: "sc-iqzgok-1"
|
|
28628
|
-
})(["font-size:0.55rem;margin:0;margin-bottom:12px;color:", " !important;"], function (_ref) {
|
|
28628
|
+
})(["font-size:0.55rem;margin:0;margin-bottom:12px;margin-left:0.5rem;color:", " !important;"], function (_ref) {
|
|
28629
28629
|
var levelIsOk = _ref.levelIsOk;
|
|
28630
28630
|
return levelIsOk ? uiColors.lightGreen : uiColors.lightGray;
|
|
28631
28631
|
});
|
|
28632
|
-
var
|
|
28633
|
-
displayName: "
|
|
28632
|
+
var TooltipTitle = /*#__PURE__*/styled__default.div.withConfig({
|
|
28633
|
+
displayName: "CraftingTooltip__TooltipTitle",
|
|
28634
28634
|
componentId: "sc-iqzgok-2"
|
|
28635
|
-
})(["color:", ";font-size:0.6rem;margin-bottom:12px;
|
|
28635
|
+
})(["color:", ";font-size:0.6rem;margin-bottom:12px;letter-spacing:0.5px;"], uiColors.yellow);
|
|
28636
28636
|
var Recipe = /*#__PURE__*/styled__default.div.withConfig({
|
|
28637
28637
|
displayName: "CraftingTooltip__Recipe",
|
|
28638
28638
|
componentId: "sc-iqzgok-3"
|
|
@@ -28658,9 +28658,9 @@ var CraftingTooltip = function CraftingTooltip(_ref3) {
|
|
|
28658
28658
|
return React__default.createElement(TooltipContainer, {
|
|
28659
28659
|
x: x,
|
|
28660
28660
|
y: y
|
|
28661
|
-
}, React__default.createElement(MinCraftingRequirementsText, {
|
|
28661
|
+
}, React__default.createElement(TooltipTitle, null, "Skill Requirements"), React__default.createElement(MinCraftingRequirementsText, {
|
|
28662
28662
|
levelIsOk: levelIsOk
|
|
28663
|
-
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null ? void 0 : (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null ? void 0 : (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), React__default.createElement(
|
|
28663
|
+
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null ? void 0 : (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null ? void 0 : (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), React__default.createElement(TooltipTitle, null, "Ingredients"), recipe.ingredients.map(function (ingredient, index) {
|
|
28664
28664
|
var itemQtyInInventory = !inventory ? 0 : countItemFromInventory(ingredient.key, inventory);
|
|
28665
28665
|
var isQuantityOk = ingredient.qty <= itemQtyInInventory;
|
|
28666
28666
|
return React__default.createElement(Recipe, {
|
|
@@ -28691,7 +28691,7 @@ var MainContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28691
28691
|
var ItemHeader = /*#__PURE__*/styled__default.div.withConfig({
|
|
28692
28692
|
displayName: "CraftingRecipe__ItemHeader",
|
|
28693
28693
|
componentId: "sc-1fe04wz-3"
|
|
28694
|
-
})(["display:flex;align-items:center;gap:8px;margin-bottom:4px;label{font-size:0.
|
|
28694
|
+
})(["display:flex;align-items:center;gap:8px;margin-bottom:4px;label{font-size:0.8rem;font-weight:bold;display:flex;align-items:center;padding-right:1rem;}"]);
|
|
28695
28695
|
var CraftingRecipe = function CraftingRecipe(_ref) {
|
|
28696
28696
|
var atlasIMG = _ref.atlasIMG,
|
|
28697
28697
|
atlasJSON = _ref.atlasJSON,
|