@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
|
@@ -49977,55 +49977,61 @@ 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
|
-
|
|
49984
|
-
|
|
49985
|
-
}
|
|
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(Title$i, {
|
|
49986
49991
|
"$color": info.color
|
|
49987
|
-
}, info.name), React__default.createElement(
|
|
49992
|
+
}, info.name), React__default.createElement(CloseButton$f, {
|
|
49988
49993
|
onPointerDown: onClose
|
|
49989
|
-
},
|
|
49994
|
+
}, 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
49995
|
};
|
|
49991
49996
|
var Overlay$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
49992
|
-
displayName: "
|
|
49993
|
-
componentId: "sc-
|
|
49994
|
-
})(["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__default.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__default.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;}}"]);
|
|
49995
50008
|
var Header$d = /*#__PURE__*/styled__default.div.withConfig({
|
|
49996
|
-
displayName: "
|
|
49997
|
-
componentId: "sc-
|
|
49998
|
-
})(["display:flex;
|
|
49999
|
-
var
|
|
50000
|
-
displayName: "
|
|
50001
|
-
componentId: "sc-
|
|
50002
|
-
})(["
|
|
50009
|
+
displayName: "SkillInfoModal__Header",
|
|
50010
|
+
componentId: "sc-pqkzdj-3"
|
|
50011
|
+
})(["display:flex;align-items:center;gap:8px;"]);
|
|
50012
|
+
var Title$i = /*#__PURE__*/styled__default.h3.withConfig({
|
|
50013
|
+
displayName: "SkillInfoModal__Title",
|
|
50014
|
+
componentId: "sc-pqkzdj-4"
|
|
50015
|
+
})(["margin:0;flex:1;font-family:'Press Start 2P',cursive;font-size:0.65rem;color:", ";"], function (_ref2) {
|
|
50003
50016
|
var $color = _ref2.$color;
|
|
50004
50017
|
return $color;
|
|
50005
50018
|
});
|
|
50006
|
-
var
|
|
50007
|
-
displayName: "
|
|
50008
|
-
componentId: "sc-
|
|
50009
|
-
})(["
|
|
50010
|
-
var $color = _ref3.$color;
|
|
50011
|
-
return $color;
|
|
50012
|
-
});
|
|
50013
|
-
var CloseBtn = /*#__PURE__*/styled__default.div.withConfig({
|
|
50014
|
-
displayName: "SkillInfoOverlay__CloseBtn",
|
|
50015
|
-
componentId: "sc-1h4ocfv-4"
|
|
50016
|
-
})(["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);}"]);
|
|
50019
|
+
var CloseButton$f = /*#__PURE__*/styled__default.button.withConfig({
|
|
50020
|
+
displayName: "SkillInfoModal__CloseButton",
|
|
50021
|
+
componentId: "sc-pqkzdj-5"
|
|
50022
|
+
})(["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
50023
|
var Section$4 = /*#__PURE__*/styled__default.div.withConfig({
|
|
50018
|
-
displayName: "
|
|
50019
|
-
componentId: "sc-
|
|
50020
|
-
})(["display:flex;flex-direction:column;gap:
|
|
50024
|
+
displayName: "SkillInfoModal__Section",
|
|
50025
|
+
componentId: "sc-pqkzdj-6"
|
|
50026
|
+
})(["display:flex;flex-direction:column;gap:6px;"]);
|
|
50021
50027
|
var Label$7 = /*#__PURE__*/styled__default.span.withConfig({
|
|
50022
|
-
displayName: "
|
|
50023
|
-
componentId: "sc-
|
|
50028
|
+
displayName: "SkillInfoModal__Label",
|
|
50029
|
+
componentId: "sc-pqkzdj-7"
|
|
50024
50030
|
})(["font-size:0.5rem;font-weight:bold;text-transform:uppercase;letter-spacing:0.05em;color:rgba(255,255,255,0.45);"]);
|
|
50025
50031
|
var Text$1 = /*#__PURE__*/styled__default.p.withConfig({
|
|
50026
|
-
displayName: "
|
|
50027
|
-
componentId: "sc-
|
|
50028
|
-
})(["font-size:0.55rem;line-height:1.
|
|
50032
|
+
displayName: "SkillInfoModal__Text",
|
|
50033
|
+
componentId: "sc-pqkzdj-8"
|
|
50034
|
+
})(["font-size:0.55rem;line-height:1.6;color:rgba(255,255,255,0.85);margin:0;"]);
|
|
50029
50035
|
|
|
50030
50036
|
var skillProps = {
|
|
50031
50037
|
attributes: {
|
|
@@ -50152,9 +50158,9 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50152
50158
|
cancelDrag: "#skillsDiv",
|
|
50153
50159
|
scale: scale,
|
|
50154
50160
|
width: "100%"
|
|
50155
|
-
}, onCloseButton && React__default.createElement(CloseButton$
|
|
50161
|
+
}, onCloseButton && React__default.createElement(CloseButton$g, {
|
|
50156
50162
|
onPointerDown: onCloseButton
|
|
50157
|
-
}, "X"), selectedInfo && React__default.createElement(
|
|
50163
|
+
}, "X"), selectedInfo && React__default.createElement(SkillInfoModal, {
|
|
50158
50164
|
info: selectedInfo,
|
|
50159
50165
|
onClose: function onClose() {
|
|
50160
50166
|
return setSelectedSkillKey(null);
|
|
@@ -50186,7 +50192,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
50186
50192
|
var SkillsDraggableContainer = /*#__PURE__*/styled__default(DraggableContainer).withConfig({
|
|
50187
50193
|
displayName: "SkillsContainer__SkillsDraggableContainer",
|
|
50188
50194
|
componentId: "sc-1g0c67q-0"
|
|
50189
|
-
})(["
|
|
50195
|
+
})(["border:1px solid black;max-width:450px;height:90%;.DraggableContainer__TitleContainer-sc-184mpyl-2{width:auto;height:auto;}"]);
|
|
50190
50196
|
var SkillsContainerDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
50191
50197
|
displayName: "SkillsContainer__SkillsContainerDiv",
|
|
50192
50198
|
componentId: "sc-1g0c67q-1"
|
|
@@ -50195,7 +50201,7 @@ var SkillSplitDiv = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
50195
50201
|
displayName: "SkillsContainer__SkillSplitDiv",
|
|
50196
50202
|
componentId: "sc-1g0c67q-2"
|
|
50197
50203
|
})(["width:100%;font-size:11px;hr{margin:0;margin-bottom:1rem;padding:0px;}p{margin-bottom:0px;}"]);
|
|
50198
|
-
var CloseButton$
|
|
50204
|
+
var CloseButton$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
50199
50205
|
displayName: "SkillsContainer__CloseButton",
|
|
50200
50206
|
componentId: "sc-1g0c67q-3"
|
|
50201
50207
|
})(["position:absolute;top:2px;right:2px;color:white;z-index:22;font-size:1.1rem;"]);
|
|
@@ -71367,7 +71373,7 @@ var CartView = function CartView(_ref2) {
|
|
|
71367
71373
|
}
|
|
71368
71374
|
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
71375
|
return s + ci.quantity;
|
|
71370
|
-
}, 0), ")"), React__default.createElement(CloseButton$
|
|
71376
|
+
}, 0), ")"), React__default.createElement(CloseButton$h, {
|
|
71371
71377
|
onPointerDown: onClose
|
|
71372
71378
|
}, 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
71379
|
var _cartItem$metadata, _cartItem$metadata2, _cartItem$item$region2, _cartItem$item$region3;
|
|
@@ -71421,7 +71427,7 @@ var Title$n = /*#__PURE__*/styled__default.h2.withConfig({
|
|
|
71421
71427
|
displayName: "CartView__Title",
|
|
71422
71428
|
componentId: "sc-ydtyl1-2"
|
|
71423
71429
|
})(["font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;margin:0;"]);
|
|
71424
|
-
var CloseButton$
|
|
71430
|
+
var CloseButton$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
71425
71431
|
displayName: "CartView__CloseButton",
|
|
71426
71432
|
componentId: "sc-ydtyl1-3"
|
|
71427
71433
|
})(["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 +72028,11 @@ var PaymentMethodModal = function PaymentMethodModal(_ref) {
|
|
|
72022
72028
|
var dcSubText = dcRequired !== undefined ? dcBalance.toLocaleString() + " DC available \xB7 " + dcRequired.toLocaleString() + " DC needed" : dcBalance.toLocaleString() + " DC available";
|
|
72023
72029
|
return React__default.createElement(ModalPortal, null, React__default.createElement(Overlay$b, {
|
|
72024
72030
|
onPointerDown: onClose
|
|
72025
|
-
}), React__default.createElement(ModalContainer$
|
|
72031
|
+
}), React__default.createElement(ModalContainer$8, null, React__default.createElement(ModalContent$8, {
|
|
72026
72032
|
onClick: stopPropagation,
|
|
72027
72033
|
onTouchStart: stopPropagation,
|
|
72028
72034
|
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$
|
|
72035
|
+
}, React__default.createElement(Header$h, null, React__default.createElement(Title$o, null, "How would you like to pay?"), React__default.createElement(CloseButton$i, {
|
|
72030
72036
|
onPointerDown: onClose,
|
|
72031
72037
|
"aria-label": "Close"
|
|
72032
72038
|
}, React__default.createElement(fa.FaTimes, null))), React__default.createElement(Options$1, null, React__default.createElement(RadioOption$2, {
|
|
@@ -72060,11 +72066,11 @@ var Overlay$b = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
72060
72066
|
displayName: "PaymentMethodModal__Overlay",
|
|
72061
72067
|
componentId: "sc-1dxy6lr-0"
|
|
72062
72068
|
})(["position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:1000;"]);
|
|
72063
|
-
var ModalContainer$
|
|
72069
|
+
var ModalContainer$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
72064
72070
|
displayName: "PaymentMethodModal__ModalContainer",
|
|
72065
72071
|
componentId: "sc-1dxy6lr-1"
|
|
72066
72072
|
})(["position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1001;pointer-events:none;"]);
|
|
72067
|
-
var ModalContent$
|
|
72073
|
+
var ModalContent$8 = /*#__PURE__*/styled__default.div.withConfig({
|
|
72068
72074
|
displayName: "PaymentMethodModal__ModalContent",
|
|
72069
72075
|
componentId: "sc-1dxy6lr-2"
|
|
72070
72076
|
})(["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 +72082,7 @@ var Title$o = /*#__PURE__*/styled__default.h3.withConfig({
|
|
|
72076
72082
|
displayName: "PaymentMethodModal__Title",
|
|
72077
72083
|
componentId: "sc-1dxy6lr-4"
|
|
72078
72084
|
})(["margin:0;font-family:'Press Start 2P',cursive;font-size:0.7rem;color:#fef08a;"]);
|
|
72079
|
-
var CloseButton$
|
|
72085
|
+
var CloseButton$i = /*#__PURE__*/styled__default.button.withConfig({
|
|
72080
72086
|
displayName: "PaymentMethodModal__CloseButton",
|
|
72081
72087
|
componentId: "sc-1dxy6lr-5"
|
|
72082
72088
|
})(["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 +73758,7 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
73752
73758
|
return React__default.createElement(Draggable, {
|
|
73753
73759
|
scale: scale,
|
|
73754
73760
|
cancel: ".time-widget-close,.time-widget-container,.time-widget-container *"
|
|
73755
|
-
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$
|
|
73761
|
+
}, React__default.createElement(WidgetContainer, null, React__default.createElement(CloseButton$j, {
|
|
73756
73762
|
onPointerDown: onClose,
|
|
73757
73763
|
className: "time-widget-close"
|
|
73758
73764
|
}, "X"), React__default.createElement(DayNightContainer, {
|
|
@@ -73769,7 +73775,7 @@ var Time = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
73769
73775
|
displayName: "TimeWidget__Time",
|
|
73770
73776
|
componentId: "sc-1ja236h-1"
|
|
73771
73777
|
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
73772
|
-
var CloseButton$
|
|
73778
|
+
var CloseButton$j = /*#__PURE__*/styled__default.p.withConfig({
|
|
73773
73779
|
displayName: "TimeWidget__CloseButton",
|
|
73774
73780
|
componentId: "sc-1ja236h-2"
|
|
73775
73781
|
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|