@rpg-engine/long-bow 0.8.58 → 0.8.59

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.
@@ -34045,27 +34045,20 @@ var ConfirmModal = function ConfirmModal(_ref) {
34045
34045
  onClose = _ref.onClose,
34046
34046
  _ref$message = _ref.message,
34047
34047
  message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
34048
- // Add a small delay to prevent accidental closes
34049
- var handleConfirm = function handleConfirm(e) {
34050
- e.preventDefault();
34051
- e.stopPropagation();
34048
+ var handleConfirm = function handleConfirm() {
34052
34049
  onConfirm();
34053
34050
  };
34054
- var handleClose = function handleClose(e) {
34055
- e.preventDefault();
34056
- e.stopPropagation();
34051
+ var handleClose = function handleClose() {
34057
34052
  onClose();
34058
34053
  };
34059
34054
  var stopPropagation = function stopPropagation(e) {
34060
34055
  e.stopPropagation();
34061
34056
  };
34062
34057
  return React__default.createElement(ModalPortal, null, React__default.createElement(GlobalStyle, null), React__default.createElement(Overlay$2, {
34063
- onClick: handleClose
34058
+ onPointerDown: handleClose
34064
34059
  }), React__default.createElement(ModalContainer, null, React__default.createElement(ModalContent, {
34065
34060
  onClick: stopPropagation,
34066
- onTouchStart: stopPropagation,
34067
- onTouchEnd: stopPropagation,
34068
- onTouchMove: stopPropagation
34061
+ onTouchStart: stopPropagation
34069
34062
  }, React__default.createElement(MessageContainer, null, typeof message === 'string' ? React__default.createElement(Message$1, null, message) : message), React__default.createElement(ButtonsContainer$2, null, React__default.createElement(CancelButtonWrapper, null, React__default.createElement(Button, {
34070
34063
  buttonType: exports.ButtonTypes.RPGUIButton,
34071
34064
  onClick: handleClose
@@ -34077,7 +34070,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
34077
34070
  var Overlay$2 = /*#__PURE__*/styled__default.div.withConfig({
34078
34071
  displayName: "ConfirmModal__Overlay",
34079
34072
  componentId: "sc-11qkyu1-0"
34080
- })(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.6);z-index:1000;animation:fadeIn 0.2s ease-out;cursor:pointer;touch-action:none;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
34073
+ })(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.6);z-index:1000;animation:fadeIn 0.2s ease-out;cursor:pointer;@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"]);
34081
34074
  var ModalContainer = /*#__PURE__*/styled__default.div.withConfig({
34082
34075
  displayName: "ConfirmModal__ModalContainer",
34083
34076
  componentId: "sc-11qkyu1-1"