@rpg-engine/long-bow 0.2.80 → 0.2.85
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 +10 -6
- 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 +10 -6
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- 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/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
package/dist/long-bow.esm.js
CHANGED
|
@@ -33144,10 +33144,8 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
33144
33144
|
name = modifiedWords.join(' ');
|
|
33145
33145
|
return name;
|
|
33146
33146
|
};
|
|
33147
|
-
var handleClick = function handleClick() {
|
|
33148
|
-
|
|
33149
|
-
var elementValue = element.value;
|
|
33150
|
-
setCraftItem(elementValue);
|
|
33147
|
+
var handleClick = function handleClick(value) {
|
|
33148
|
+
setCraftItem(value);
|
|
33151
33149
|
};
|
|
33152
33150
|
return React.createElement(DraggableContainer, {
|
|
33153
33151
|
type: RPGUIContainerTypes.Framed,
|
|
@@ -33183,9 +33181,15 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
33183
33181
|
type: "radio",
|
|
33184
33182
|
value: option.name,
|
|
33185
33183
|
name: "test",
|
|
33186
|
-
disabled: !option.canCraft
|
|
33184
|
+
disabled: !option.canCraft,
|
|
33185
|
+
checked: craftItem === option.key,
|
|
33186
|
+
onChange: function onChange() {
|
|
33187
|
+
return handleClick(option.key);
|
|
33188
|
+
}
|
|
33187
33189
|
}), React.createElement("label", {
|
|
33188
|
-
onClick:
|
|
33190
|
+
onClick: function onClick() {
|
|
33191
|
+
return handleClick(option.key);
|
|
33192
|
+
},
|
|
33189
33193
|
style: {
|
|
33190
33194
|
display: 'flex',
|
|
33191
33195
|
alignItems: 'center'
|