@rpg-engine/long-bow 0.8.195 → 0.8.196
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 +56 -41
- 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 +56 -41
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SkillInfoModal.tsx +147 -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,70 @@ 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
|
-
|
|
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(ColorBar, {
|
|
49982
49989
|
"$color": info.color
|
|
49983
49990
|
}), React.createElement(Title$i, {
|
|
49984
49991
|
"$color": info.color
|
|
49985
|
-
}, info.name), React.createElement(
|
|
49992
|
+
}, info.name), React.createElement(CloseButton$f, {
|
|
49986
49993
|
onPointerDown: onClose
|
|
49987
|
-
},
|
|
49994
|
+
}, 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
49995
|
};
|
|
49989
49996
|
var Overlay$9 = /*#__PURE__*/styled.div.withConfig({
|
|
49990
|
-
displayName: "
|
|
49991
|
-
componentId: "sc-
|
|
49992
|
-
})(["position:
|
|
49997
|
+
displayName: "SkillInfoModal__Overlay",
|
|
49998
|
+
componentId: "sc-pqkzdj-0"
|
|
49999
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
50000
|
+
var ModalContainer$7 = /*#__PURE__*/styled.div.withConfig({
|
|
50001
|
+
displayName: "SkillInfoModal__ModalContainer",
|
|
50002
|
+
componentId: "sc-pqkzdj-1"
|
|
50003
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
50004
|
+
var ModalContent$7 = /*#__PURE__*/styled.div.withConfig({
|
|
50005
|
+
displayName: "SkillInfoModal__ModalContent",
|
|
50006
|
+
componentId: "sc-pqkzdj-2"
|
|
50007
|
+
})(["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
50008
|
var Header$d = /*#__PURE__*/styled.div.withConfig({
|
|
49994
|
-
displayName: "
|
|
49995
|
-
componentId: "sc-
|
|
49996
|
-
})(["display:flex;
|
|
50009
|
+
displayName: "SkillInfoModal__Header",
|
|
50010
|
+
componentId: "sc-pqkzdj-3"
|
|
50011
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
49997
50012
|
var ColorBar = /*#__PURE__*/styled.div.withConfig({
|
|
49998
|
-
displayName: "
|
|
49999
|
-
componentId: "sc-
|
|
50013
|
+
displayName: "SkillInfoModal__ColorBar",
|
|
50014
|
+
componentId: "sc-pqkzdj-4"
|
|
50000
50015
|
})(["width:3px;height:1rem;background:", ";border-radius:2px;flex-shrink:0;"], function (_ref2) {
|
|
50001
50016
|
var $color = _ref2.$color;
|
|
50002
50017
|
return $color;
|
|
50003
50018
|
});
|
|
50004
|
-
var Title$i = /*#__PURE__*/styled.
|
|
50005
|
-
displayName: "
|
|
50006
|
-
componentId: "sc-
|
|
50007
|
-
})(["
|
|
50019
|
+
var Title$i = /*#__PURE__*/styled.h3.withConfig({
|
|
50020
|
+
displayName: "SkillInfoModal__Title",
|
|
50021
|
+
componentId: "sc-pqkzdj-5"
|
|
50022
|
+
})(["margin:0;flex:1;font-family:'Press Start 2P',cursive;font-size:0.65rem;color:", ";"], function (_ref3) {
|
|
50008
50023
|
var $color = _ref3.$color;
|
|
50009
50024
|
return $color;
|
|
50010
50025
|
});
|
|
50011
|
-
var
|
|
50012
|
-
displayName: "
|
|
50013
|
-
componentId: "sc-
|
|
50014
|
-
})(["
|
|
50026
|
+
var CloseButton$f = /*#__PURE__*/styled.button.withConfig({
|
|
50027
|
+
displayName: "SkillInfoModal__CloseButton",
|
|
50028
|
+
componentId: "sc-pqkzdj-6"
|
|
50029
|
+
})(["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
50030
|
var Section$4 = /*#__PURE__*/styled.div.withConfig({
|
|
50016
|
-
displayName: "
|
|
50017
|
-
componentId: "sc-
|
|
50018
|
-
})(["display:flex;flex-direction:column;gap:
|
|
50031
|
+
displayName: "SkillInfoModal__Section",
|
|
50032
|
+
componentId: "sc-pqkzdj-7"
|
|
50033
|
+
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
50019
50034
|
var Label$7 = /*#__PURE__*/styled.span.withConfig({
|
|
50020
|
-
displayName: "
|
|
50021
|
-
componentId: "sc-
|
|
50035
|
+
displayName: "SkillInfoModal__Label",
|
|
50036
|
+
componentId: "sc-pqkzdj-8"
|
|
50022
50037
|
})(["font-size:0.5rem;font-weight:bold;text-transform:uppercase;letter-spacing:0.05em;color:rgba(255,255,255,0.45);"]);
|
|
50023
50038
|
var Text$1 = /*#__PURE__*/styled.p.withConfig({
|
|
50024
|
-
displayName: "
|
|
50025
|
-
componentId: "sc-
|
|
50026
|
-
})(["font-size:0.55rem;line-height:1.
|
|
50039
|
+
displayName: "SkillInfoModal__Text",
|
|
50040
|
+
componentId: "sc-pqkzdj-9"
|
|
50041
|
+
})(["font-size:0.55rem;line-height:1.6;color:rgba(255,255,255,0.85);margin:0;"]);
|
|
50027
50042
|
|
|
50028
50043
|
var skillProps = {
|
|
50029
50044
|
attributes: {
|
|
@@ -50150,9 +50165,9 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50150
50165
|
cancelDrag: "#skillsDiv",
|
|
50151
50166
|
scale: scale,
|
|
50152
50167
|
width: "100%"
|
|
50153
|
-
}, onCloseButton && React.createElement(CloseButton$
|
|
50168
|
+
}, onCloseButton && React.createElement(CloseButton$g, {
|
|
50154
50169
|
onPointerDown: onCloseButton
|
|
50155
|
-
}, "X"), selectedInfo && React.createElement(
|
|
50170
|
+
}, "X"), selectedInfo && React.createElement(SkillInfoModal, {
|
|
50156
50171
|
info: selectedInfo,
|
|
50157
50172
|
onClose: function onClose() {
|
|
50158
50173
|
return setSelectedSkillKey(null);
|
|
@@ -50184,7 +50199,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50184
50199
|
var SkillsDraggableContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
|
|
50185
50200
|
displayName: "SkillsContainer__SkillsDraggableContainer",
|
|
50186
50201
|
componentId: "sc-1g0c67q-0"
|
|
50187
|
-
})(["
|
|
50202
|
+
})(["border:1px solid black;max-width:450px;height:90%;.DraggableContainer__TitleContainer-sc-184mpyl-2{width:auto;height:auto;}"]);
|
|
50188
50203
|
var SkillsContainerDiv = /*#__PURE__*/styled.div.withConfig({
|
|
50189
50204
|
displayName: "SkillsContainer__SkillsContainerDiv",
|
|
50190
50205
|
componentId: "sc-1g0c67q-1"
|
|
@@ -50193,7 +50208,7 @@ var SkillSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
50193
50208
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
50194
50209
|
componentId: "sc-1g0c67q-2"
|
|
50195
50210
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
50196
|
-
var CloseButton$
|
|
50211
|
+
var CloseButton$g = /*#__PURE__*/styled.div.withConfig({
|
|
50197
50212
|
displayName: "SkillsContainer__CloseButton",
|
|
50198
50213
|
componentId: "sc-1g0c67q-3"
|
|
50199
50214
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -71365,7 +71380,7 @@ var CartView = function CartView(_ref2) {
|
|
|
71365
71380
|
}
|
|
71366
71381
|
return React.createElement(Container$M, null, React.createElement(Header$g, null, React.createElement(Title$n, null, "Shopping Cart (", cartItems.reduce(function (s, ci) {
|
|
71367
71382
|
return s + ci.quantity;
|
|
71368
|
-
}, 0), ")"), React.createElement(CloseButton$
|
|
71383
|
+
}, 0), ")"), React.createElement(CloseButton$h, {
|
|
71369
71384
|
onPointerDown: onClose
|
|
71370
71385
|
}, React.createElement(FaTimes, null))), React.createElement(CartItems, null, cartItems.length === 0 ? React.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
71371
71386
|
var _cartItem$metadata, _cartItem$metadata2, _cartItem$item$region2, _cartItem$item$region3;
|
|
@@ -71419,7 +71434,7 @@ var Title$n = /*#__PURE__*/styled.h2.withConfig({
|
|
|
71419
71434
|
displayName: "CartView__Title",
|
|
71420
71435
|
componentId: "sc-ydtyl1-2"
|
|
71421
71436
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
71422
|
-
var CloseButton$
|
|
71437
|
+
var CloseButton$h = /*#__PURE__*/styled.div.withConfig({
|
|
71423
71438
|
displayName: "CartView__CloseButton",
|
|
71424
71439
|
componentId: "sc-ydtyl1-3"
|
|
71425
71440
|
})(["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 +72035,11 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
72020
72035
|
var dcSubText = dcRequired !== undefined ? dcBalance.toLocaleString() + " DC available \xB7 " + dcRequired.toLocaleString() + " DC needed" : dcBalance.toLocaleString() + " DC available";
|
|
72021
72036
|
return React.createElement(ModalPortal, null, React.createElement(Overlay$b, {
|
|
72022
72037
|
onPointerDown: onClose
|
|
72023
|
-
}), React.createElement(ModalContainer$
|
|
72038
|
+
}), React.createElement(ModalContainer$8, null, React.createElement(ModalContent$8, {
|
|
72024
72039
|
onClick: stopPropagation,
|
|
72025
72040
|
onTouchStart: stopPropagation,
|
|
72026
72041
|
onPointerDown: stopPropagation
|
|
72027
|
-
}, React.createElement(Header$h, null, React.createElement(Title$o, null, "How would you like to pay?"), React.createElement(CloseButton$
|
|
72042
|
+
}, React.createElement(Header$h, null, React.createElement(Title$o, null, "How would you like to pay?"), React.createElement(CloseButton$i, {
|
|
72028
72043
|
onPointerDown: onClose,
|
|
72029
72044
|
"aria-label": "Close"
|
|
72030
72045
|
}, React.createElement(FaTimes, null))), React.createElement(Options$1, null, React.createElement(RadioOption$2, {
|
|
@@ -72058,11 +72073,11 @@ var Overlay$b = /*#__PURE__*/styled.div.withConfig({
|
|
|
72058
72073
|
displayName: "PaymentMethodModal__Overlay",
|
|
72059
72074
|
componentId: "sc-1dxy6lr-0"
|
|
72060
72075
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
72061
|
-
var ModalContainer$
|
|
72076
|
+
var ModalContainer$8 = /*#__PURE__*/styled.div.withConfig({
|
|
72062
72077
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
72063
72078
|
componentId: "sc-1dxy6lr-1"
|
|
72064
72079
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
72065
|
-
var ModalContent$
|
|
72080
|
+
var ModalContent$8 = /*#__PURE__*/styled.div.withConfig({
|
|
72066
72081
|
displayName: "PaymentMethodModal__ModalContent",
|
|
72067
72082
|
componentId: "sc-1dxy6lr-2"
|
|
72068
72083
|
})(["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 +72089,7 @@ var Title$o = /*#__PURE__*/styled.h3.withConfig({
|
|
|
72074
72089
|
displayName: "PaymentMethodModal__Title",
|
|
72075
72090
|
componentId: "sc-1dxy6lr-4"
|
|
72076
72091
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
72077
|
-
var CloseButton$
|
|
72092
|
+
var CloseButton$i = /*#__PURE__*/styled.button.withConfig({
|
|
72078
72093
|
displayName: "PaymentMethodModal__CloseButton",
|
|
72079
72094
|
componentId: "sc-1dxy6lr-5"
|
|
72080
72095
|
})(["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 +73765,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
73750
73765
|
return React.createElement(Draggable, {
|
|
73751
73766
|
scale: scale,
|
|
73752
73767
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
73753
|
-
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$
|
|
73768
|
+
}, React.createElement(WidgetContainer, null, React.createElement(CloseButton$j, {
|
|
73754
73769
|
onPointerDown: onClose,
|
|
73755
73770
|
className: "time-widget-close"
|
|
73756
73771
|
}, "X"), React.createElement(DayNightContainer, {
|
|
@@ -73767,7 +73782,7 @@ var Time = /*#__PURE__*/styled.div.withConfig({
|
|
|
73767
73782
|
displayName: "TimeWidget__Time",
|
|
73768
73783
|
componentId: "sc-1ja236h-1"
|
|
73769
73784
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
73770
|
-
var CloseButton$
|
|
73785
|
+
var CloseButton$j = /*#__PURE__*/styled.p.withConfig({
|
|
73771
73786
|
displayName: "TimeWidget__CloseButton",
|
|
73772
73787
|
componentId: "sc-1ja236h-2"
|
|
73773
73788
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|