@rpg-engine/long-bow 0.7.93 → 0.7.94
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 +19 -11
- 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 -11
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CraftBook/CraftBook.tsx +43 -37
package/dist/long-bow.esm.js
CHANGED
|
@@ -28861,20 +28861,28 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28861
28861
|
}) : [].concat(current, [itemKey]);
|
|
28862
28862
|
});
|
|
28863
28863
|
};
|
|
28864
|
-
var categoryOptions = [
|
|
28864
|
+
var categoryOptions = [{
|
|
28865
|
+
id: 0,
|
|
28866
|
+
value: 'Suggested',
|
|
28867
|
+
option: 'Suggested'
|
|
28868
|
+
}].concat(pinnedItems.length > 0 ? [{
|
|
28869
|
+
id: 1,
|
|
28870
|
+
value: 'Pinned',
|
|
28871
|
+
option: 'Pinned'
|
|
28872
|
+
}] : [], Object.keys(ItemSubType).filter(function (type) {
|
|
28865
28873
|
return type !== 'DeadBody';
|
|
28866
|
-
}).sort(function (a, b) {
|
|
28867
|
-
if (a === 'Suggested') return -1;
|
|
28868
|
-
if (b === 'Suggested') return 1;
|
|
28869
|
-
if (a === 'Pinned') return -1;
|
|
28870
|
-
if (b === 'Pinned') return 1;
|
|
28871
|
-
return a.localeCompare(b);
|
|
28872
28874
|
}).map(function (type, index) {
|
|
28873
28875
|
return {
|
|
28874
|
-
id: index,
|
|
28876
|
+
id: index + (pinnedItems.length > 0 ? 2 : 1),
|
|
28875
28877
|
value: type,
|
|
28876
|
-
option: type
|
|
28878
|
+
option: type === 'CraftingResources' || type === 'CraftingResource' ? 'Resources' : type
|
|
28877
28879
|
};
|
|
28880
|
+
})).sort(function (a, b) {
|
|
28881
|
+
if (a.value === 'Suggested') return -1;
|
|
28882
|
+
if (b.value === 'Suggested') return 1;
|
|
28883
|
+
if (a.value === 'Pinned') return -1;
|
|
28884
|
+
if (b.value === 'Pinned') return 1;
|
|
28885
|
+
return a.value.localeCompare(b.value);
|
|
28878
28886
|
});
|
|
28879
28887
|
var filteredCraftableItems = items == null ? void 0 : items.filter(function (item) {
|
|
28880
28888
|
var matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase());
|
|
@@ -28948,7 +28956,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28948
28956
|
inventory: inventory,
|
|
28949
28957
|
skills: skills
|
|
28950
28958
|
}));
|
|
28951
|
-
}))), React.createElement(PaginationContainer, null, React.createElement(PaginationButton, {
|
|
28959
|
+
}))), totalPages > 1 && React.createElement(PaginationContainer, null, React.createElement(PaginationButton, {
|
|
28952
28960
|
onClick: function onClick() {
|
|
28953
28961
|
return setCurrentPage(function (prev) {
|
|
28954
28962
|
return Math.max(1, prev - 1);
|
|
@@ -29021,7 +29029,7 @@ var ContentContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
29021
29029
|
var RadioInputScroller = /*#__PURE__*/styled.div.withConfig({
|
|
29022
29030
|
displayName: "CraftBook__RadioInputScroller",
|
|
29023
29031
|
componentId: "sc-19q95ue-8"
|
|
29024
|
-
})(["height:100%;overflow-y:scroll;overflow-x:hidden;padding:8px 16px;padding-right:24px;width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-
|
|
29032
|
+
})(["height:100%;overflow-y:scroll;overflow-x:hidden;padding:8px 16px;padding-right:24px;width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start;@media (max-width:", "){grid-template-columns:1fr;}"], mobilePortrait.width);
|
|
29025
29033
|
var CraftingRecipeWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29026
29034
|
displayName: "CraftBook__CraftingRecipeWrapper",
|
|
29027
29035
|
componentId: "sc-19q95ue-9"
|