@rpg-engine/long-bow 0.3.57 → 0.3.58
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/components/CircularController/CircularController.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +2 -2
- 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 +2 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CircularController/CircularController.tsx +3 -3
- package/src/stories/CircullarController.stories.tsx +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRawSpell } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export declare type CircularControllerProps = {
|
|
4
|
-
|
|
4
|
+
onActionClick: () => void;
|
|
5
5
|
onCancelClick: () => void;
|
|
6
6
|
onSpellClick: (spellKey: string) => void;
|
|
7
7
|
mana: number;
|
|
@@ -33105,7 +33105,7 @@ var List = /*#__PURE__*/styled.p.withConfig({
|
|
|
33105
33105
|
})(["width:100%;display:flex;align-items:center;justify-content:center;gap:0.5rem;box-sizing:border-box;margin:0 !important;"]);
|
|
33106
33106
|
|
|
33107
33107
|
var CircularController = function CircularController(_ref) {
|
|
33108
|
-
var
|
|
33108
|
+
var onActionClick = _ref.onActionClick,
|
|
33109
33109
|
onCancelClick = _ref.onCancelClick,
|
|
33110
33110
|
onSpellClick = _ref.onSpellClick,
|
|
33111
33111
|
mana = _ref.mana,
|
|
@@ -33142,7 +33142,7 @@ var CircularController = function CircularController(_ref) {
|
|
|
33142
33142
|
})));
|
|
33143
33143
|
})), React__default.createElement(Button$2, {
|
|
33144
33144
|
onTouchStart: onTouchStart,
|
|
33145
|
-
onTouchEnd: onTouchEnd.bind(null,
|
|
33145
|
+
onTouchEnd: onTouchEnd.bind(null, onActionClick)
|
|
33146
33146
|
}, React__default.createElement("div", {
|
|
33147
33147
|
className: "rpgui-icon sword"
|
|
33148
33148
|
})), React__default.createElement(CancelButton, {
|