@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
|
@@ -28868,20 +28868,28 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28868
28868
|
}) : [].concat(current, [itemKey]);
|
|
28869
28869
|
});
|
|
28870
28870
|
};
|
|
28871
|
-
var categoryOptions = [
|
|
28871
|
+
var categoryOptions = [{
|
|
28872
|
+
id: 0,
|
|
28873
|
+
value: 'Suggested',
|
|
28874
|
+
option: 'Suggested'
|
|
28875
|
+
}].concat(pinnedItems.length > 0 ? [{
|
|
28876
|
+
id: 1,
|
|
28877
|
+
value: 'Pinned',
|
|
28878
|
+
option: 'Pinned'
|
|
28879
|
+
}] : [], Object.keys(shared.ItemSubType).filter(function (type) {
|
|
28872
28880
|
return type !== 'DeadBody';
|
|
28873
|
-
}).sort(function (a, b) {
|
|
28874
|
-
if (a === 'Suggested') return -1;
|
|
28875
|
-
if (b === 'Suggested') return 1;
|
|
28876
|
-
if (a === 'Pinned') return -1;
|
|
28877
|
-
if (b === 'Pinned') return 1;
|
|
28878
|
-
return a.localeCompare(b);
|
|
28879
28881
|
}).map(function (type, index) {
|
|
28880
28882
|
return {
|
|
28881
|
-
id: index,
|
|
28883
|
+
id: index + (pinnedItems.length > 0 ? 2 : 1),
|
|
28882
28884
|
value: type,
|
|
28883
|
-
option: type
|
|
28885
|
+
option: type === 'CraftingResources' || type === 'CraftingResource' ? 'Resources' : type
|
|
28884
28886
|
};
|
|
28887
|
+
})).sort(function (a, b) {
|
|
28888
|
+
if (a.value === 'Suggested') return -1;
|
|
28889
|
+
if (b.value === 'Suggested') return 1;
|
|
28890
|
+
if (a.value === 'Pinned') return -1;
|
|
28891
|
+
if (b.value === 'Pinned') return 1;
|
|
28892
|
+
return a.value.localeCompare(b.value);
|
|
28885
28893
|
});
|
|
28886
28894
|
var filteredCraftableItems = items == null ? void 0 : items.filter(function (item) {
|
|
28887
28895
|
var matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase());
|
|
@@ -28955,7 +28963,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
28955
28963
|
inventory: inventory,
|
|
28956
28964
|
skills: skills
|
|
28957
28965
|
}));
|
|
28958
|
-
}))), React__default.createElement(PaginationContainer, null, React__default.createElement(PaginationButton, {
|
|
28966
|
+
}))), totalPages > 1 && React__default.createElement(PaginationContainer, null, React__default.createElement(PaginationButton, {
|
|
28959
28967
|
onClick: function onClick() {
|
|
28960
28968
|
return setCurrentPage(function (prev) {
|
|
28961
28969
|
return Math.max(1, prev - 1);
|
|
@@ -29028,7 +29036,7 @@ var ContentContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
29028
29036
|
var RadioInputScroller = /*#__PURE__*/styled__default.div.withConfig({
|
|
29029
29037
|
displayName: "CraftBook__RadioInputScroller",
|
|
29030
29038
|
componentId: "sc-19q95ue-8"
|
|
29031
|
-
})(["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-
|
|
29039
|
+
})(["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);
|
|
29032
29040
|
var CraftingRecipeWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
29033
29041
|
displayName: "CraftBook__CraftingRecipeWrapper",
|
|
29034
29042
|
componentId: "sc-19q95ue-9"
|