@rpg-engine/long-bow 0.8.32 → 0.8.33
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 +66 -50
- 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 +66 -50
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.tsx +18 -9
- package/src/components/InformationCenter/sections/items/InformationCenterItemsSection.tsx +15 -6
- package/src/components/InformationCenter/shared/BaseInformationDetails.tsx +3 -7
|
@@ -31159,44 +31159,6 @@ var CellName = /*#__PURE__*/styled__default.h3.withConfig({
|
|
|
31159
31159
|
componentId: "sc-w48fdf-2"
|
|
31160
31160
|
})(["font-size:0.7rem;color:#fef08a;margin:0;text-align:center;font-family:'Press Start 2P',cursive;line-height:1.2;word-break:break-word;max-width:100%;"]);
|
|
31161
31161
|
|
|
31162
|
-
var Collapsible = function Collapsible(_ref) {
|
|
31163
|
-
var title = _ref.title,
|
|
31164
|
-
children = _ref.children,
|
|
31165
|
-
_ref$defaultOpen = _ref.defaultOpen,
|
|
31166
|
-
defaultOpen = _ref$defaultOpen === void 0 ? false : _ref$defaultOpen,
|
|
31167
|
-
className = _ref.className;
|
|
31168
|
-
var _useState = React.useState(defaultOpen),
|
|
31169
|
-
isOpen = _useState[0],
|
|
31170
|
-
setIsOpen = _useState[1];
|
|
31171
|
-
return React__default.createElement(Container$o, {
|
|
31172
|
-
className: className
|
|
31173
|
-
}, React__default.createElement(Header$1, {
|
|
31174
|
-
onClick: function onClick() {
|
|
31175
|
-
return setIsOpen(!isOpen);
|
|
31176
|
-
}
|
|
31177
|
-
}, React__default.createElement(Title$3, null, title), React__default.createElement(Icon$1, null, isOpen ? React__default.createElement(fa.FaChevronUp, null) : React__default.createElement(fa.FaChevronDown, null))), isOpen && React__default.createElement(Content$1, null, children));
|
|
31178
|
-
};
|
|
31179
|
-
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31180
|
-
displayName: "Collapsible__Container",
|
|
31181
|
-
componentId: "sc-s4h8ey-0"
|
|
31182
|
-
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
31183
|
-
var Header$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31184
|
-
displayName: "Collapsible__Header",
|
|
31185
|
-
componentId: "sc-s4h8ey-1"
|
|
31186
|
-
})(["padding:10px 12px;background:rgba(0,0,0,0.2);display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color 0.2s ease;&:hover{background:rgba(0,0,0,0.4);}"]);
|
|
31187
|
-
var Title$3 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
31188
|
-
displayName: "Collapsible__Title",
|
|
31189
|
-
componentId: "sc-s4h8ey-2"
|
|
31190
|
-
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
31191
|
-
var Icon$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31192
|
-
displayName: "Collapsible__Icon",
|
|
31193
|
-
componentId: "sc-s4h8ey-3"
|
|
31194
|
-
})(["color:", ";font-size:0.6rem;display:flex;align-items:center;"], uiColors.yellow);
|
|
31195
|
-
var Content$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31196
|
-
displayName: "Collapsible__Content",
|
|
31197
|
-
componentId: "sc-s4h8ey-4"
|
|
31198
|
-
})(["padding:6px;"]);
|
|
31199
|
-
|
|
31200
31162
|
var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
31201
31163
|
var name = _ref.name,
|
|
31202
31164
|
spriteKey = _ref.spriteKey,
|
|
@@ -31204,20 +31166,20 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31204
31166
|
atlasIMG = _ref.atlasIMG,
|
|
31205
31167
|
onBack = _ref.onBack,
|
|
31206
31168
|
children = _ref.children;
|
|
31207
|
-
return React__default.createElement(Container$
|
|
31169
|
+
return React__default.createElement(Container$o, null, React__default.createElement(Overlay, {
|
|
31208
31170
|
onClick: onBack
|
|
31209
31171
|
}), React__default.createElement(Modal, null, React__default.createElement(CloseButton$5, {
|
|
31210
31172
|
onClick: onBack
|
|
31211
|
-
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(Header$
|
|
31173
|
+
}, React__default.createElement(fa.FaTimes, null)), React__default.createElement(Header$1, null, React__default.createElement(SpriteContainer$2, null, React__default.createElement(SpriteFromAtlas, {
|
|
31212
31174
|
atlasJSON: atlasJSON,
|
|
31213
31175
|
atlasIMG: atlasIMG,
|
|
31214
31176
|
spriteKey: spriteKey,
|
|
31215
31177
|
width: 32,
|
|
31216
31178
|
height: 32,
|
|
31217
31179
|
imgScale: 1
|
|
31218
|
-
})), React__default.createElement(Title$
|
|
31180
|
+
})), React__default.createElement(Title$3, null, name)), React__default.createElement(Content$1, null, children)));
|
|
31219
31181
|
};
|
|
31220
|
-
var Container$
|
|
31182
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
31221
31183
|
displayName: "BaseInformationDetails__Container",
|
|
31222
31184
|
componentId: "sc-1vguuz8-0"
|
|
31223
31185
|
})(["position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:9999;"]);
|
|
@@ -31228,20 +31190,20 @@ var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31228
31190
|
var Modal = /*#__PURE__*/styled__default.div.withConfig({
|
|
31229
31191
|
displayName: "BaseInformationDetails__Modal",
|
|
31230
31192
|
componentId: "sc-1vguuz8-2"
|
|
31231
|
-
})(["position:
|
|
31193
|
+
})(["position:relative;background-color:rgba(0,0,0,0.95);border-radius:4px;padding:12px;overflow:hidden;z-index:1;font-family:'Press Start 2P',cursive;border:1px solid ", ";box-shadow:0 2px 4px rgba(0,0,0,0.2);width:90%;height:90vh;max-width:800px;max-height:800px;@media (max-width:768px){width:100%;height:100%;border-radius:0;padding:8px;}&::-webkit-scrollbar{width:2px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:4px;opacity:0.5;&:hover{opacity:1;}}scrollbar-width:thin;scrollbar-color:", " transparent;"], uiColors.darkGray, uiColors.yellow, uiColors.yellow);
|
|
31232
31194
|
var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
|
|
31233
31195
|
displayName: "BaseInformationDetails__CloseButton",
|
|
31234
31196
|
componentId: "sc-1vguuz8-3"
|
|
31235
31197
|
})(["position:absolute;top:20px;right:20px;background:none;border:none;color:", ";font-size:1.2rem;cursor:pointer;padding:0;z-index:1;transition:transform 0.2s ease;&:hover{transform:scale(1.1);}"], uiColors.yellow);
|
|
31236
|
-
var Header$
|
|
31198
|
+
var Header$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31237
31199
|
displayName: "BaseInformationDetails__Header",
|
|
31238
31200
|
componentId: "sc-1vguuz8-4"
|
|
31239
31201
|
})(["display:flex;align-items:center;gap:16px;margin-bottom:24px;"]);
|
|
31240
|
-
var Content$
|
|
31202
|
+
var Content$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31241
31203
|
displayName: "BaseInformationDetails__Content",
|
|
31242
31204
|
componentId: "sc-1vguuz8-5"
|
|
31243
31205
|
})(["display:flex;flex-direction:column;gap:12px;height:calc(100% - 80px);overflow-y:auto;overflow-x:hidden;padding-right:6px;margin-right:-6px;@media (max-width:768px){height:calc(100% - 64px);gap:8px;padding-right:4px;margin-right:-4px;}"]);
|
|
31244
|
-
var Title$
|
|
31206
|
+
var Title$3 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
31245
31207
|
displayName: "BaseInformationDetails__Title",
|
|
31246
31208
|
componentId: "sc-1vguuz8-6"
|
|
31247
31209
|
})(["color:", ";font-size:1rem;margin:0;"], uiColors.yellow);
|
|
@@ -31250,6 +31212,44 @@ var SpriteContainer$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31250
31212
|
componentId: "sc-1vguuz8-7"
|
|
31251
31213
|
})(["width:64px;height:64px;background:rgba(0,0,0,0.3);border-radius:4px;display:flex;justify-content:center;align-items:center;position:relative;.sprite-from-atlas-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(2);transform-origin:center;}"]);
|
|
31252
31214
|
|
|
31215
|
+
var Collapsible = function Collapsible(_ref) {
|
|
31216
|
+
var title = _ref.title,
|
|
31217
|
+
children = _ref.children,
|
|
31218
|
+
_ref$defaultOpen = _ref.defaultOpen,
|
|
31219
|
+
defaultOpen = _ref$defaultOpen === void 0 ? false : _ref$defaultOpen,
|
|
31220
|
+
className = _ref.className;
|
|
31221
|
+
var _useState = React.useState(defaultOpen),
|
|
31222
|
+
isOpen = _useState[0],
|
|
31223
|
+
setIsOpen = _useState[1];
|
|
31224
|
+
return React__default.createElement(Container$p, {
|
|
31225
|
+
className: className
|
|
31226
|
+
}, React__default.createElement(Header$2, {
|
|
31227
|
+
onClick: function onClick() {
|
|
31228
|
+
return setIsOpen(!isOpen);
|
|
31229
|
+
}
|
|
31230
|
+
}, React__default.createElement(Title$4, null, title), React__default.createElement(Icon$1, null, isOpen ? React__default.createElement(fa.FaChevronUp, null) : React__default.createElement(fa.FaChevronDown, null))), isOpen && React__default.createElement(Content$2, null, children));
|
|
31231
|
+
};
|
|
31232
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31233
|
+
displayName: "Collapsible__Container",
|
|
31234
|
+
componentId: "sc-s4h8ey-0"
|
|
31235
|
+
})(["background:rgba(0,0,0,0.3);border-radius:4px;overflow:hidden;border:1px solid ", ";"], uiColors.darkGray);
|
|
31236
|
+
var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31237
|
+
displayName: "Collapsible__Header",
|
|
31238
|
+
componentId: "sc-s4h8ey-1"
|
|
31239
|
+
})(["padding:10px 12px;background:rgba(0,0,0,0.2);display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color 0.2s ease;&:hover{background:rgba(0,0,0,0.4);}"]);
|
|
31240
|
+
var Title$4 = /*#__PURE__*/styled__default.h3.withConfig({
|
|
31241
|
+
displayName: "Collapsible__Title",
|
|
31242
|
+
componentId: "sc-s4h8ey-2"
|
|
31243
|
+
})(["margin:0;font-size:0.6rem;color:", ";font-family:'Press Start 2P',cursive;letter-spacing:0.5px;"], uiColors.yellow);
|
|
31244
|
+
var Icon$1 = /*#__PURE__*/styled__default.span.withConfig({
|
|
31245
|
+
displayName: "Collapsible__Icon",
|
|
31246
|
+
componentId: "sc-s4h8ey-3"
|
|
31247
|
+
})(["color:", ";font-size:0.6rem;display:flex;align-items:center;"], uiColors.yellow);
|
|
31248
|
+
var Content$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31249
|
+
displayName: "Collapsible__Content",
|
|
31250
|
+
componentId: "sc-s4h8ey-4"
|
|
31251
|
+
})(["padding:6px;"]);
|
|
31252
|
+
|
|
31253
31253
|
var InformationCenterItemDetails = function InformationCenterItemDetails(_ref) {
|
|
31254
31254
|
var item = _ref.item,
|
|
31255
31255
|
itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
@@ -31761,7 +31761,15 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
|
|
|
31761
31761
|
}
|
|
31762
31762
|
}, React__default.createElement(InformationCenterItemTooltip, {
|
|
31763
31763
|
item: tooltipState.item
|
|
31764
|
-
}))), selectedItem && React__default.createElement(Portal, null, React__default.createElement(
|
|
31764
|
+
}))), selectedItem && React__default.createElement(Portal, null, React__default.createElement(BaseInformationDetails, {
|
|
31765
|
+
name: selectedItem.name,
|
|
31766
|
+
spriteKey: selectedItem.texturePath,
|
|
31767
|
+
atlasJSON: itemsAtlasJSON,
|
|
31768
|
+
atlasIMG: itemsAtlasIMG,
|
|
31769
|
+
onBack: function onBack() {
|
|
31770
|
+
return setSelectedItem(null);
|
|
31771
|
+
}
|
|
31772
|
+
}, React__default.createElement(InformationCenterItemDetails, {
|
|
31765
31773
|
item: selectedItem,
|
|
31766
31774
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
31767
31775
|
itemsAtlasIMG: itemsAtlasIMG,
|
|
@@ -31769,7 +31777,7 @@ var InformationCenterItemsSection = function InformationCenterItemsSection(_ref)
|
|
|
31769
31777
|
onBack: function onBack() {
|
|
31770
31778
|
return setSelectedItem(null);
|
|
31771
31779
|
}
|
|
31772
|
-
})));
|
|
31780
|
+
}))));
|
|
31773
31781
|
};
|
|
31774
31782
|
var TooltipWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
31775
31783
|
displayName: "InformationCenterItemsSection__TooltipWrapper",
|
|
@@ -32316,7 +32324,15 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
32316
32324
|
npc: tooltipState.item,
|
|
32317
32325
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
32318
32326
|
itemsAtlasIMG: itemsAtlasIMG
|
|
32319
|
-
}))), selectedMonster && React__default.createElement(Portal, null, React__default.createElement(
|
|
32327
|
+
}))), selectedMonster && React__default.createElement(Portal, null, React__default.createElement(BaseInformationDetails, {
|
|
32328
|
+
name: selectedMonster.name,
|
|
32329
|
+
spriteKey: selectedMonster.key,
|
|
32330
|
+
atlasJSON: entitiesAtlasJSON,
|
|
32331
|
+
atlasIMG: entitiesAtlasIMG,
|
|
32332
|
+
onBack: function onBack() {
|
|
32333
|
+
return setSelectedMonster(null);
|
|
32334
|
+
}
|
|
32335
|
+
}, React__default.createElement(InformationCenterNPCDetails, {
|
|
32320
32336
|
npc: selectedMonster,
|
|
32321
32337
|
itemsAtlasJSON: itemsAtlasJSON,
|
|
32322
32338
|
itemsAtlasIMG: itemsAtlasIMG,
|
|
@@ -32327,7 +32343,7 @@ var InformationCenterBestiarySection = function InformationCenterBestiarySection
|
|
|
32327
32343
|
onBack: function onBack() {
|
|
32328
32344
|
return setSelectedMonster(null);
|
|
32329
32345
|
}
|
|
32330
|
-
})));
|
|
32346
|
+
}))));
|
|
32331
32347
|
};
|
|
32332
32348
|
var TooltipWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
32333
32349
|
displayName: "InformationCenterBestiarySection__TooltipWrapper",
|