@rpg-engine/long-bow 0.8.195 → 0.8.197
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/{SkillInfoOverlay.d.ts → SkillInfoModal.d.ts} +1 -1
- package/dist/long-bow.cjs.development.js +54 -48
- 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 +54 -48
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/SkillInfoModal.tsx +138 -0
- package/src/components/SkillsContainer.tsx +2 -3
- package/src/components/SkillInfoOverlay.tsx +0 -100
package/dist/long-bow.esm.js
CHANGED
|
@@ -49975,55 +49975,61 @@ var SKILL_INFO_DATA = {
|
|
|
49975
49975
|
}
|
|
49976
49976
|
};
|
|
49977
49977
|
|
|
49978
|
-
var
|
|
49978
|
+
var SkillInfoModal = function SkillInfoModal(_ref) {
|
|
49979
49979
|
var info = _ref.info,
|
|
49980
49980
|
onClose = _ref.onClose;
|
|
49981
|
-
|
|
49982
|
-
|
|
49983
|
-
}
|
|
49981
|
+
var stopPropagation = useCallback(function (e) {
|
|
49982
|
+
e.stopPropagation();
|
|
49983
|
+
}, []);
|
|
49984
|
+
return React.createElement(ModalPortal, null, React.createElement(Overlay$9, {
|
|
49985
|
+
onPointerDown: onClose
|
|
49986
|
+
}), React.createElement(ModalContainer$7, null, React.createElement(ModalContent$7, {
|
|
49987
|
+
onPointerDown: stopPropagation
|
|
49988
|
+
}, React.createElement(Header$d, null, React.createElement(Title$i, {
|
|
49984
49989
|
"$color": info.color
|
|
49985
|
-
}, info.name), React.createElement(
|
|
49990
|
+
}, info.name), React.createElement(CloseButton$f, {
|
|
49986
49991
|
onPointerDown: onClose
|
|
49987
|
-
},
|
|
49992
|
+
}, React.createElement(FaTimes, null))), React.createElement(Section$4, null, React.createElement(Label$7, null, "What it does"), React.createElement(Text$1, null, info.description)), React.createElement(Section$4, null, React.createElement(Label$7, null, "How to train"), React.createElement(Text$1, null, info.howToTrain)), info.notes && React.createElement(Section$4, null, React.createElement(Label$7, null, "Notes"), React.createElement(Text$1, null, info.notes)))));
|
|
49988
49993
|
};
|
|
49989
49994
|
var Overlay$9 = /*#__PURE__*/styled.div.withConfig({
|
|
49990
|
-
displayName: "
|
|
49991
|
-
componentId: "sc-
|
|
49992
|
-
})(["position:
|
|
49995
|
+
displayName: "SkillInfoModal__Overlay",
|
|
49996
|
+
componentId: "sc-pqkzdj-0"
|
|
49997
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
49998
|
+
var ModalContainer$7 = /*#__PURE__*/styled.div.withConfig({
|
|
49999
|
+
displayName: "SkillInfoModal__ModalContainer",
|
|
50000
|
+
componentId: "sc-pqkzdj-1"
|
|
50001
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
50002
|
+
var ModalContent$7 = /*#__PURE__*/styled.div.withConfig({
|
|
50003
|
+
displayName: "SkillInfoModal__ModalContent",
|
|
50004
|
+
componentId: "sc-pqkzdj-2"
|
|
50005
|
+
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px 24px;width:340px;max-width:90%;max-height:80dvh;overflow-y:auto;display:flex;flex-direction:column;gap:14px;pointer-events:auto;animation:scaleIn 0.15s ease-out;@keyframes scaleIn{from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}}"]);
|
|
49993
50006
|
var Header$d = /*#__PURE__*/styled.div.withConfig({
|
|
49994
|
-
displayName: "
|
|
49995
|
-
componentId: "sc-
|
|
49996
|
-
})(["display:flex;
|
|
49997
|
-
var
|
|
49998
|
-
displayName: "
|
|
49999
|
-
componentId: "sc-
|
|
50000
|
-
})(["
|
|
50007
|
+
displayName: "SkillInfoModal__Header",
|
|
50008
|
+
componentId: "sc-pqkzdj-3"
|
|
50009
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
50010
|
+
var Title$i = /*#__PURE__*/styled.h3.withConfig({
|
|
50011
|
+
displayName: "SkillInfoModal__Title",
|
|
50012
|
+
componentId: "sc-pqkzdj-4"
|
|
50013
|
+
})(["margin:0;flex:1;font-family:'Press Start 2P',cursive;font-size:0.65rem;color:", ";"], function (_ref2) {
|
|
50001
50014
|
var $color = _ref2.$color;
|
|
50002
50015
|
return $color;
|
|
50003
50016
|
});
|
|
50004
|
-
var
|
|
50005
|
-
displayName: "
|
|
50006
|
-
componentId: "sc-
|
|
50007
|
-
})(["
|
|
50008
|
-
var $color = _ref3.$color;
|
|
50009
|
-
return $color;
|
|
50010
|
-
});
|
|
50011
|
-
var CloseBtn = /*#__PURE__*/styled.div.withConfig({
|
|
50012
|
-
displayName: "SkillInfoOverlay__CloseBtn",
|
|
50013
|
-
componentId: "sc-1h4ocfv-4"
|
|
50014
|
-
})(["cursor:pointer;color:rgba(255,255,255,0.6);font-size:0.7rem;line-height:1;padding:2px 4px;&:hover{color:rgba(255,255,255,0.9);}"]);
|
|
50017
|
+
var CloseButton$f = /*#__PURE__*/styled.button.withConfig({
|
|
50018
|
+
displayName: "SkillInfoModal__CloseButton",
|
|
50019
|
+
componentId: "sc-pqkzdj-5"
|
|
50020
|
+
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;pointer-events:auto;&:hover{color:#ffffff;}"]);
|
|
50015
50021
|
var Section$4 = /*#__PURE__*/styled.div.withConfig({
|
|
50016
|
-
displayName: "
|
|
50017
|
-
componentId: "sc-
|
|
50018
|
-
})(["display:flex;flex-direction:column;gap:
|
|
50022
|
+
displayName: "SkillInfoModal__Section",
|
|
50023
|
+
componentId: "sc-pqkzdj-6"
|
|
50024
|
+
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
50019
50025
|
var Label$7 = /*#__PURE__*/styled.span.withConfig({
|
|
50020
|
-
displayName: "
|
|
50021
|
-
componentId: "sc-
|
|
50026
|
+
displayName: "SkillInfoModal__Label",
|
|
50027
|
+
componentId: "sc-pqkzdj-7"
|
|
50022
50028
|
})(["font-size:0.5rem;font-weight:bold;text-transform:uppercase;letter-spacing:0.05em;color:rgba(255,255,255,0.45);"]);
|
|
50023
50029
|
var Text$1 = /*#__PURE__*/styled.p.withConfig({
|
|
50024
|
-
displayName: "
|
|
50025
|
-
componentId: "sc-
|
|
50026
|
-
})(["font-size:0.55rem;line-height:1.
|
|
50030
|
+
displayName: "SkillInfoModal__Text",
|
|
50031
|
+
componentId: "sc-pqkzdj-8"
|
|
50032
|
+
})(["font-size:0.55rem;line-height:1.6;color:rgba(255,255,255,0.85);margin:0;"]);
|
|
50027
50033
|
|
|
50028
50034
|
var skillProps = {
|
|
50029
50035
|
attributes: {
|
|
@@ -50150,9 +50156,9 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50150
50156
|
cancelDrag: "#skillsDiv",
|
|
50151
50157
|
scale: scale,
|
|
50152
50158
|
width: "100%"
|
|
50153
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
50159
|
+
}, onCloseButton && React.createElement(CloseButton$g, {
|
|
50154
50160
|
onPointerDown: onCloseButton
|
|
50155
|
-
}, "X"), selectedInfo && React.createElement(
|
|
50161
|
+
}, "X"), selectedInfo && React.createElement(SkillInfoModal, {
|
|
50156
50162
|
info: selectedInfo,
|
|
50157
50163
|
onClose: function onClose() {
|
|
50158
50164
|
return setSelectedSkillKey(null);
|
|
@@ -50184,7 +50190,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50184
50190
|
var SkillsDraggableContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
|
|
50185
50191
|
displayName: "SkillsContainer__SkillsDraggableContainer",
|
|
50186
50192
|
componentId: "sc-1g0c67q-0"
|
|
50187
|
-
})(["
|
|
50193
|
+
})(["border:1px solid black;max-width:450px;height:90%;.DraggableContainer__TitleContainer-sc-184mpyl-2{width:auto;height:auto;}"]);
|
|
50188
50194
|
var SkillsContainerDiv = /*#__PURE__*/styled.div.withConfig({
|
|
50189
50195
|
displayName: "SkillsContainer__SkillsContainerDiv",
|
|
50190
50196
|
componentId: "sc-1g0c67q-1"
|
|
@@ -50193,7 +50199,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
50193
50199
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
50194
50200
|
componentId: "sc-1g0c67q-2"
|
|
50195
50201
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
50196
|
-
var CloseButton$
|
|
50202
|
+
var CloseButton$g = /*#__PURE__*/styled.div.withConfig({
|
|
50197
50203
|
displayName: "SkillsContainer__CloseButton",
|
|
50198
50204
|
componentId: "sc-1g0c67q-3"
|
|
50199
50205
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -71365,7 +71371,7 @@ var CartView = function CartView(_ref2) {
|
|
|
71365
71371
|
}
|
|
71366
71372
|
return React.createElement(Container$M, null, React.createElement(Header$g, null, React.createElement(Title$n, null, "Shopping Cart (", cartItems.reduce(function (s, ci) {
|
|
71367
71373
|
return s + ci.quantity;
|
|
71368
|
-
}, 0), ")"), React.createElement(CloseButton$
|
|
71374
|
+
}, 0), ")"), React.createElement(CloseButton$h, {
|
|
71369
71375
|
onPointerDown: onClose
|
|
71370
71376
|
}, React.createElement(FaTimes, null))), React.createElement(CartItems, null, cartItems.length === 0 ? React.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
71371
71377
|
var _cartItem$metadata, _cartItem$metadata2, _cartItem$item$region2, _cartItem$item$region3;
|
|
@@ -71419,7 +71425,7 @@ var Title$n = /*#__PURE__*/styled.h2.withConfig({
|
|
|
71419
71425
|
displayName: "CartView__Title",
|
|
71420
71426
|
componentId: "sc-ydtyl1-2"
|
|
71421
71427
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
71422
|
-
var CloseButton$
|
|
71428
|
+
var CloseButton$h = /*#__PURE__*/styled.div.withConfig({
|
|
71423
71429
|
displayName: "CartView__CloseButton",
|
|
71424
71430
|
componentId: "sc-ydtyl1-3"
|
|
71425
71431
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -72020,11 +72026,11 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
72020
72026
|
var dcSubText = dcRequired !== undefined ? dcBalance.toLocaleString() + " DC available \xB7 " + dcRequired.toLocaleString() + " DC needed" : dcBalance.toLocaleString() + " DC available";
|
|
72021
72027
|
return React.createElement(ModalPortal, null, React.createElement(Overlay$b, {
|
|
72022
72028
|
onPointerDown: onClose
|
|
72023
|
-
}), React.createElement(ModalContainer$
|
|
72029
|
+
}), React.createElement(ModalContainer$8, null, React.createElement(ModalContent$8, {
|
|
72024
72030
|
onClick: stopPropagation,
|
|
72025
72031
|
onTouchStart: stopPropagation,
|
|
72026
72032
|
onPointerDown: stopPropagation
|
|
72027
|
-
}, React.createElement(Header$h, null, React.createElement(Title$o, null, "How would you like to pay?"), React.createElement(CloseButton$
|
|
72033
|
+
}, React.createElement(Header$h, null, React.createElement(Title$o, null, "How would you like to pay?"), React.createElement(CloseButton$i, {
|
|
72028
72034
|
onPointerDown: onClose,
|
|
72029
72035
|
"aria-label": "Close"
|
|
72030
72036
|
}, React.createElement(FaTimes, null))), React.createElement(Options$1, null, React.createElement(RadioOption$2, {
|
|
@@ -72058,11 +72064,11 @@ var Overlay$b = /*#__PURE__*/styled.div.withConfig({
|
|
|
72058
72064
|
displayName: "PaymentMethodModal__Overlay",
|
|
72059
72065
|
componentId: "sc-1dxy6lr-0"
|
|
72060
72066
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
72061
|
-
var ModalContainer$
|
|
72067
|
+
var ModalContainer$8 = /*#__PURE__*/styled.div.withConfig({
|
|
72062
72068
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
72063
72069
|
componentId: "sc-1dxy6lr-1"
|
|
72064
72070
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
72065
|
-
var ModalContent$
|
|
72071
|
+
var ModalContent$8 = /*#__PURE__*/styled.div.withConfig({
|
|
72066
72072
|
displayName: "PaymentMethodModal__ModalContent",
|
|
72067
72073
|
componentId: "sc-1dxy6lr-2"
|
|
72068
72074
|
})(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px 24px;min-width:300px;max-width:90%;display:flex;flex-direction:column;gap:16px;pointer-events:auto;animation:scaleIn 0.15s ease-out;@keyframes scaleIn{from{transform:scale(0.85);opacity:0;}to{transform:scale(1);opacity:1;}}"]);
|
|
@@ -72074,7 +72080,7 @@ var Title$o = /*#__PURE__*/styled.h3.withConfig({
|
|
|
72074
72080
|
displayName: "PaymentMethodModal__Title",
|
|
72075
72081
|
componentId: "sc-1dxy6lr-4"
|
|
72076
72082
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
72077
|
-
var CloseButton$
|
|
72083
|
+
var CloseButton$i = /*#__PURE__*/styled.button.withConfig({
|
|
72078
72084
|
displayName: "PaymentMethodModal__CloseButton",
|
|
72079
72085
|
componentId: "sc-1dxy6lr-5"
|
|
72080
72086
|
})(["background:none;border:none;color:rgba(255,255,255,0.6);cursor:pointer;font-size:1rem;padding:4px;display:flex;align-items:center;&:hover{color:#ffffff;}"]);
|
|
@@ -73750,7 +73756,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
73750
73756
|
return React.createElement(Draggable, {
|
|
73751
73757
|
scale: scale,
|
|
73752
73758
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
73753
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
73759
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$j, {
|
|
73754
73760
|
onPointerDown: onClose,
|
|
73755
73761
|
className: "time-widget-close"
|
|
73756
73762
|
}, "X"), React.createElement(DayNightContainer, {
|
|
@@ -73767,7 +73773,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
73767
73773
|
displayName: "TimeWidget__Time",
|
|
73768
73774
|
componentId: "sc-1ja236h-1"
|
|
73769
73775
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
73770
|
-
var CloseButton$
|
|
73776
|
+
var CloseButton$j = /*#__PURE__*/styled.p.withConfig({
|
|
73771
73777
|
displayName: "TimeWidget__CloseButton",
|
|
73772
73778
|
componentId: "sc-1ja236h-2"
|
|
73773
73779
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|