@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
|
@@ -49977,55 +49977,70 @@ var SKILL_INFO_DATA = {
|
|
|
49977
49977
|
}
|
|
49978
49978
|
};
|
|
49979
49979
|
|
|
49980
|
-
var
|
|
49980
|
+
var SkillInfoModal = function SkillInfoModal(_ref) {
|
|
49981
49981
|
var info = _ref.info,
|
|
49982
49982
|
onClose = _ref.onClose;
|
|
49983
|
-
|
|
49983
|
+
var stopPropagation = React.useCallback(function (e) {
|
|
49984
|
+
e.stopPropagation();
|
|
49985
|
+
}, []);
|
|
49986
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$9, {
|
|
49987
|
+
onPointerDown: onClose
|
|
49988
|
+
}), React__default.createElement(ModalContainer$7, null, React__default.createElement(ModalContent$7, {
|
|
49989
|
+
onPointerDown: stopPropagation
|
|
49990
|
+
}, React__default.createElement(Header$d, null, React__default.createElement(ColorBar, {
|
|
49984
49991
|
"$color": info.color
|
|
49985
49992
|
}), React__default.createElement(Title$i, {
|
|
49986
49993
|
"$color": info.color
|
|
49987
|
-
}, info.name), React__default.createElement(
|
|
49994
|
+
}, info.name), React__default.createElement(CloseButton$f, {
|
|
49988
49995
|
onPointerDown: onClose
|
|
49989
|
-
},
|
|
49996
|
+
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Section$4, null, React__default.createElement(Label$7, null, "What it does"), React__default.createElement(Text$1, null, info.description)), React__default.createElement(Section$4, null, React__default.createElement(Label$7, null, "How to train"), React__default.createElement(Text$1, null, info.howToTrain)), info.notes && React__default.createElement(Section$4, null, React__default.createElement(Label$7, null, "Notes"), React__default.createElement(Text$1, null, info.notes)))));
|
|
49990
49997
|
};
|
|
49991
49998
|
var Overlay$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
49992
|
-
displayName: "
|
|
49993
|
-
componentId: "sc-
|
|
49994
|
-
})(["position:
|
|
49999
|
+
displayName: "SkillInfoModal__Overlay",
|
|
50000
|
+
componentId: "sc-pqkzdj-0"
|
|
50001
|
+
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
50002
|
+
var ModalContainer$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
50003
|
+
displayName: "SkillInfoModal__ModalContainer",
|
|
50004
|
+
componentId: "sc-pqkzdj-1"
|
|
50005
|
+
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
50006
|
+
var ModalContent$7 = /*#__PURE__*/styled__default.div.withConfig({
|
|
50007
|
+
displayName: "SkillInfoModal__ModalContent",
|
|
50008
|
+
componentId: "sc-pqkzdj-2"
|
|
50009
|
+
})(["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;}}"]);
|
|
49995
50010
|
var Header$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
49996
|
-
displayName: "
|
|
49997
|
-
componentId: "sc-
|
|
49998
|
-
})(["display:flex;
|
|
50011
|
+
displayName: "SkillInfoModal__Header",
|
|
50012
|
+
componentId: "sc-pqkzdj-3"
|
|
50013
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
49999
50014
|
var ColorBar = /*#__PURE__*/styled__default.div.withConfig({
|
|
50000
|
-
displayName: "
|
|
50001
|
-
componentId: "sc-
|
|
50015
|
+
displayName: "SkillInfoModal__ColorBar",
|
|
50016
|
+
componentId: "sc-pqkzdj-4"
|
|
50002
50017
|
})(["width:3px;height:1rem;background:", ";border-radius:2px;flex-shrink:0;"], function (_ref2) {
|
|
50003
50018
|
var $color = _ref2.$color;
|
|
50004
50019
|
return $color;
|
|
50005
50020
|
});
|
|
50006
|
-
var Title$i = /*#__PURE__*/styled__default.
|
|
50007
|
-
displayName: "
|
|
50008
|
-
componentId: "sc-
|
|
50009
|
-
})(["
|
|
50021
|
+
var Title$i = /*#__PURE__*/styled__default.h3.withConfig({
|
|
50022
|
+
displayName: "SkillInfoModal__Title",
|
|
50023
|
+
componentId: "sc-pqkzdj-5"
|
|
50024
|
+
})(["margin:0;flex:1;font-family:'Press Start 2P',cursive;font-size:0.65rem;color:", ";"], function (_ref3) {
|
|
50010
50025
|
var $color = _ref3.$color;
|
|
50011
50026
|
return $color;
|
|
50012
50027
|
});
|
|
50013
|
-
var
|
|
50014
|
-
displayName: "
|
|
50015
|
-
componentId: "sc-
|
|
50016
|
-
})(["
|
|
50028
|
+
var CloseButton$f = /*#__PURE__*/styled__default.button.withConfig({
|
|
50029
|
+
displayName: "SkillInfoModal__CloseButton",
|
|
50030
|
+
componentId: "sc-pqkzdj-6"
|
|
50031
|
+
})(["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;}"]);
|
|
50017
50032
|
var Section$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
50018
|
-
displayName: "
|
|
50019
|
-
componentId: "sc-
|
|
50020
|
-
})(["display:flex;flex-direction:column;gap:
|
|
50033
|
+
displayName: "SkillInfoModal__Section",
|
|
50034
|
+
componentId: "sc-pqkzdj-7"
|
|
50035
|
+
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
50021
50036
|
var Label$7 = /*#__PURE__*/styled__default.span.withConfig({
|
|
50022
|
-
displayName: "
|
|
50023
|
-
componentId: "sc-
|
|
50037
|
+
displayName: "SkillInfoModal__Label",
|
|
50038
|
+
componentId: "sc-pqkzdj-8"
|
|
50024
50039
|
})(["font-size:0.5rem;font-weight:bold;text-transform:uppercase;letter-spacing:0.05em;color:rgba(255,255,255,0.45);"]);
|
|
50025
50040
|
var Text$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
50026
|
-
displayName: "
|
|
50027
|
-
componentId: "sc-
|
|
50028
|
-
})(["font-size:0.55rem;line-height:1.
|
|
50041
|
+
displayName: "SkillInfoModal__Text",
|
|
50042
|
+
componentId: "sc-pqkzdj-9"
|
|
50043
|
+
})(["font-size:0.55rem;line-height:1.6;color:rgba(255,255,255,0.85);margin:0;"]);
|
|
50029
50044
|
|
|
50030
50045
|
var skillProps = {
|
|
50031
50046
|
attributes: {
|
|
@@ -50152,9 +50167,9 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50152
50167
|
cancelDrag: "#skillsDiv",
|
|
50153
50168
|
scale: scale,
|
|
50154
50169
|
width: "100%"
|
|
50155
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
50170
|
+
}, onCloseButton && React__default.createElement(CloseButton$g, {
|
|
50156
50171
|
onPointerDown: onCloseButton
|
|
50157
|
-
}, "X"), selectedInfo && React__default.createElement(
|
|
50172
|
+
}, "X"), selectedInfo && React__default.createElement(SkillInfoModal, {
|
|
50158
50173
|
info: selectedInfo,
|
|
50159
50174
|
onClose: function onClose() {
|
|
50160
50175
|
return setSelectedSkillKey(null);
|
|
@@ -50186,7 +50201,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50186
50201
|
var SkillsDraggableContainer = /*#__PURE__*/styled__default(DraggableContainer).withConfig({
|
|
50187
50202
|
displayName: "SkillsContainer__SkillsDraggableContainer",
|
|
50188
50203
|
componentId: "sc-1g0c67q-0"
|
|
50189
|
-
})(["
|
|
50204
|
+
})(["border:1px solid black;max-width:450px;height:90%;.DraggableContainer__TitleContainer-sc-184mpyl-2{width:auto;height:auto;}"]);
|
|
50190
50205
|
var SkillsContainerDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
50191
50206
|
displayName: "SkillsContainer__SkillsContainerDiv",
|
|
50192
50207
|
componentId: "sc-1g0c67q-1"
|
|
@@ -50195,7 +50210,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
50195
50210
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
50196
50211
|
componentId: "sc-1g0c67q-2"
|
|
50197
50212
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
50198
|
-
var CloseButton$
|
|
50213
|
+
var CloseButton$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
50199
50214
|
displayName: "SkillsContainer__CloseButton",
|
|
50200
50215
|
componentId: "sc-1g0c67q-3"
|
|
50201
50216
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -71367,7 +71382,7 @@ var CartView = function CartView(_ref2) {
|
|
|
71367
71382
|
}
|
|
71368
71383
|
return React__default.createElement(Container$M, null, React__default.createElement(Header$g, null, React__default.createElement(Title$n, null, "Shopping Cart (", cartItems.reduce(function (s, ci) {
|
|
71369
71384
|
return s + ci.quantity;
|
|
71370
|
-
}, 0), ")"), React__default.createElement(CloseButton$
|
|
71385
|
+
}, 0), ")"), React__default.createElement(CloseButton$h, {
|
|
71371
71386
|
onPointerDown: onClose
|
|
71372
71387
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(CartItems, null, cartItems.length === 0 ? React__default.createElement(EmptyCart, null, "Your cart is empty") : cartItems.map(function (cartItem) {
|
|
71373
71388
|
var _cartItem$metadata, _cartItem$metadata2, _cartItem$item$region2, _cartItem$item$region3;
|
|
@@ -71421,7 +71436,7 @@ var Title$n = /*#__PURE__*/styled__default.h2.withConfig({
|
|
|
71421
71436
|
displayName: "CartView__Title",
|
|
71422
71437
|
componentId: "sc-ydtyl1-2"
|
|
71423
71438
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
71424
|
-
var CloseButton$
|
|
71439
|
+
var CloseButton$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
71425
71440
|
displayName: "CartView__CloseButton",
|
|
71426
71441
|
componentId: "sc-ydtyl1-3"
|
|
71427
71442
|
})(["padding:0.5rem;min-width:unset;width:42px;height:42px;display:flex;font-size:1.5rem;align-items:center;color:white;justify-content:center;"]);
|
|
@@ -72022,11 +72037,11 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
72022
72037
|
var dcSubText = dcRequired !== undefined ? dcBalance.toLocaleString() + " DC available \xB7 " + dcRequired.toLocaleString() + " DC needed" : dcBalance.toLocaleString() + " DC available";
|
|
72023
72038
|
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$b, {
|
|
72024
72039
|
onPointerDown: onClose
|
|
72025
|
-
}), React__default.createElement(ModalContainer$
|
|
72040
|
+
}), React__default.createElement(ModalContainer$8, null, React__default.createElement(ModalContent$8, {
|
|
72026
72041
|
onClick: stopPropagation,
|
|
72027
72042
|
onTouchStart: stopPropagation,
|
|
72028
72043
|
onPointerDown: stopPropagation
|
|
72029
|
-
}, React__default.createElement(Header$h, null, React__default.createElement(Title$o, null, "How would you like to pay?"), React__default.createElement(CloseButton$
|
|
72044
|
+
}, React__default.createElement(Header$h, null, React__default.createElement(Title$o, null, "How would you like to pay?"), React__default.createElement(CloseButton$i, {
|
|
72030
72045
|
onPointerDown: onClose,
|
|
72031
72046
|
"aria-label": "Close"
|
|
72032
72047
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options$1, null, React__default.createElement(RadioOption$2, {
|
|
@@ -72060,11 +72075,11 @@ var Overlay$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
72060
72075
|
displayName: "PaymentMethodModal__Overlay",
|
|
72061
72076
|
componentId: "sc-1dxy6lr-0"
|
|
72062
72077
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
72063
|
-
var ModalContainer$
|
|
72078
|
+
var ModalContainer$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
72064
72079
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
72065
72080
|
componentId: "sc-1dxy6lr-1"
|
|
72066
72081
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
72067
|
-
var ModalContent$
|
|
72082
|
+
var ModalContent$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
72068
72083
|
displayName: "PaymentMethodModal__ModalContent",
|
|
72069
72084
|
componentId: "sc-1dxy6lr-2"
|
|
72070
72085
|
})(["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;}}"]);
|
|
@@ -72076,7 +72091,7 @@ var Title$o = /*#__PURE__*/styled__default.h3.withConfig({
|
|
|
72076
72091
|
displayName: "PaymentMethodModal__Title",
|
|
72077
72092
|
componentId: "sc-1dxy6lr-4"
|
|
72078
72093
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
72079
|
-
var CloseButton$
|
|
72094
|
+
var CloseButton$i = /*#__PURE__*/styled__default.button.withConfig({
|
|
72080
72095
|
displayName: "PaymentMethodModal__CloseButton",
|
|
72081
72096
|
componentId: "sc-1dxy6lr-5"
|
|
72082
72097
|
})(["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;}"]);
|
|
@@ -73752,7 +73767,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
73752
73767
|
return React__default.createElement(Draggable, {
|
|
73753
73768
|
scale: scale,
|
|
73754
73769
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
73755
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
73770
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$j, {
|
|
73756
73771
|
onPointerDown: onClose,
|
|
73757
73772
|
className: "time-widget-close"
|
|
73758
73773
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -73769,7 +73784,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
73769
73784
|
displayName: "TimeWidget__Time",
|
|
73770
73785
|
componentId: "sc-1ja236h-1"
|
|
73771
73786
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
73772
|
-
var CloseButton$
|
|
73787
|
+
var CloseButton$j = /*#__PURE__*/styled__default.p.withConfig({
|
|
73773
73788
|
displayName: "TimeWidget__CloseButton",
|
|
73774
73789
|
componentId: "sc-1ja236h-2"
|
|
73775
73790
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|