@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.
- package/dist/long-bow.cjs.development.js +5 -12
- 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 +5 -12
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ConfirmModal.tsx +29 -20
package/dist/long-bow.esm.js
CHANGED
|
@@ -34041,27 +34041,20 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
34041
34041
|
onClose = _ref.onClose,
|
|
34042
34042
|
_ref$message = _ref.message,
|
|
34043
34043
|
message = _ref$message === void 0 ? 'Are you sure?' : _ref$message;
|
|
34044
|
-
|
|
34045
|
-
var handleConfirm = function handleConfirm(e) {
|
|
34046
|
-
e.preventDefault();
|
|
34047
|
-
e.stopPropagation();
|
|
34044
|
+
var handleConfirm = function handleConfirm() {
|
|
34048
34045
|
onConfirm();
|
|
34049
34046
|
};
|
|
34050
|
-
var handleClose = function handleClose(
|
|
34051
|
-
e.preventDefault();
|
|
34052
|
-
e.stopPropagation();
|
|
34047
|
+
var handleClose = function handleClose() {
|
|
34053
34048
|
onClose();
|
|
34054
34049
|
};
|
|
34055
34050
|
var stopPropagation = function stopPropagation(e) {
|
|
34056
34051
|
e.stopPropagation();
|
|
34057
34052
|
};
|
|
34058
34053
|
return React.createElement(ModalPortal, null, React.createElement(GlobalStyle, null), React.createElement(Overlay$2, {
|
|
34059
|
-
|
|
34054
|
+
onPointerDown: handleClose
|
|
34060
34055
|
}), React.createElement(ModalContainer, null, React.createElement(ModalContent, {
|
|
34061
34056
|
onClick: stopPropagation,
|
|
34062
|
-
onTouchStart: stopPropagation
|
|
34063
|
-
onTouchEnd: stopPropagation,
|
|
34064
|
-
onTouchMove: stopPropagation
|
|
34057
|
+
onTouchStart: stopPropagation
|
|
34065
34058
|
}, React.createElement(MessageContainer, null, typeof message === 'string' ? React.createElement(Message$1, null, message) : message), React.createElement(ButtonsContainer$2, null, React.createElement(CancelButtonWrapper, null, React.createElement(Button, {
|
|
34066
34059
|
buttonType: ButtonTypes.RPGUIButton,
|
|
34067
34060
|
onClick: handleClose
|
|
@@ -34073,7 +34066,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
34073
34066
|
var Overlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
34074
34067
|
displayName: "ConfirmModal__Overlay",
|
|
34075
34068
|
componentId: "sc-11qkyu1-0"
|
|
34076
|
-
})(["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
|
|
34069
|
+
})(["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;}}"]);
|
|
34077
34070
|
var ModalContainer = /*#__PURE__*/styled.div.withConfig({
|
|
34078
34071
|
displayName: "ConfirmModal__ModalContainer",
|
|
34079
34072
|
componentId: "sc-11qkyu1-1"
|