@rpg-engine/long-bow 0.2.81 → 0.2.86
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 +12 -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 +12 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/.DS_Store +0 -0
- package/src/components/CraftBook/CraftBook.tsx +5 -7
- package/src/components/CraftBook/MockItems.ts +23 -20
- package/src/components/ListMenu.tsx +2 -1
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/mocks/.DS_Store +0 -0
- package/src/mocks/atlas/.DS_Store +0 -0
|
@@ -33149,10 +33149,8 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
33149
33149
|
name = modifiedWords.join(' ');
|
|
33150
33150
|
return name;
|
|
33151
33151
|
};
|
|
33152
|
-
var handleClick = function handleClick() {
|
|
33153
|
-
|
|
33154
|
-
var elementValue = element.value;
|
|
33155
|
-
setCraftItem(elementValue);
|
|
33152
|
+
var handleClick = function handleClick(value) {
|
|
33153
|
+
setCraftItem(value);
|
|
33156
33154
|
};
|
|
33157
33155
|
return React__default.createElement(DraggableContainer, {
|
|
33158
33156
|
type: exports.RPGUIContainerTypes.Framed,
|
|
@@ -33188,9 +33186,15 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
33188
33186
|
type: "radio",
|
|
33189
33187
|
value: option.name,
|
|
33190
33188
|
name: "test",
|
|
33191
|
-
disabled: !option.canCraft
|
|
33189
|
+
disabled: !option.canCraft,
|
|
33190
|
+
checked: craftItem === option.key,
|
|
33191
|
+
onChange: function onChange() {
|
|
33192
|
+
return handleClick(option.key);
|
|
33193
|
+
}
|
|
33192
33194
|
}), React__default.createElement("label", {
|
|
33193
|
-
onClick:
|
|
33195
|
+
onClick: function onClick() {
|
|
33196
|
+
return handleClick(option.key);
|
|
33197
|
+
},
|
|
33194
33198
|
style: {
|
|
33195
33199
|
display: 'flex',
|
|
33196
33200
|
alignItems: 'center'
|
|
@@ -34320,7 +34324,8 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
34320
34324
|
}, options.map(function (params, index) {
|
|
34321
34325
|
return React__default.createElement(ListElement$1, {
|
|
34322
34326
|
key: (params == null ? void 0 : params.id) || index,
|
|
34323
|
-
onClick: function onClick() {
|
|
34327
|
+
onClick: function onClick(e) {
|
|
34328
|
+
e.stopPropagation();
|
|
34324
34329
|
onSelected(params == null ? void 0 : params.id);
|
|
34325
34330
|
}
|
|
34326
34331
|
}, (params == null ? void 0 : params.text) || 'No text');
|