@rpg-engine/long-bow 0.8.22 → 0.8.24
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 +17 -9
- 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 +17 -9
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/InformationCenter/InformationCenter.tsx +27 -22
- package/src/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.tsx +13 -2
- package/src/components/InformationCenter/shared/BaseInformationDetails.tsx +6 -11
- package/src/mocks/informationCenter.mocks.ts +1 -1
|
@@ -31161,15 +31161,15 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31161
31161
|
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31162
31162
|
displayName: "BaseInformationDetails__Container",
|
|
31163
31163
|
componentId: "sc-1vguuz8-0"
|
|
31164
|
-
})(["position:
|
|
31164
|
+
})(["position:absolute;inset:0;display:flex;justify-content:center;align-items:center;z-index:1000;"]);
|
|
31165
31165
|
var Overlay = /*#__PURE__*/styled__default.div.withConfig({
|
|
31166
31166
|
displayName: "BaseInformationDetails__Overlay",
|
|
31167
31167
|
componentId: "sc-1vguuz8-1"
|
|
31168
|
-
})(["position:absolute;
|
|
31168
|
+
})(["position:absolute;inset:0;background-color:rgba(0,0,0,0.8);"]);
|
|
31169
31169
|
var Modal = /*#__PURE__*/styled__default.div.withConfig({
|
|
31170
31170
|
displayName: "BaseInformationDetails__Modal",
|
|
31171
31171
|
componentId: "sc-1vguuz8-2"
|
|
31172
|
-
})(["position:relative;width:90%;
|
|
31172
|
+
})(["position:relative;width:90%;height:90%;background-color:rgba(0,0,0,0.95);border-radius:4px;padding:16px;overflow-y:auto;z-index:1;font-family:'Press Start 2P',cursive;border:1px solid ", ";box-shadow:0 2px 4px rgba(0,0,0,0.2);&::-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);
|
|
31173
31173
|
var CloseButton$5 = /*#__PURE__*/styled__default.button.withConfig({
|
|
31174
31174
|
displayName: "BaseInformationDetails__CloseButton",
|
|
31175
31175
|
componentId: "sc-1vguuz8-3"
|
|
@@ -31181,7 +31181,7 @@ var Header$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31181
31181
|
var Content$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31182
31182
|
displayName: "BaseInformationDetails__Content",
|
|
31183
31183
|
componentId: "sc-1vguuz8-5"
|
|
31184
|
-
})(["display:flex;flex-direction:column;gap:16px;"]);
|
|
31184
|
+
})(["display:flex;flex-direction:column;gap:16px;height:100%;overflow:auto;"]);
|
|
31185
31185
|
var Title$4 = /*#__PURE__*/styled__default.h2.withConfig({
|
|
31186
31186
|
displayName: "BaseInformationDetails__Title",
|
|
31187
31187
|
componentId: "sc-1vguuz8-6"
|
|
@@ -32148,7 +32148,13 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
|
|
|
32148
32148
|
}, React__default.createElement(GuideThumbnail, null, React__default.createElement("img", {
|
|
32149
32149
|
src: guide.localImage || getYouTubeThumbnail(guide.videoUrl),
|
|
32150
32150
|
alt: guide.title
|
|
32151
|
-
})), React__default.createElement(GuideContent, null, React__default.createElement(GuideTitle, null,
|
|
32151
|
+
})), React__default.createElement(GuideContent, null, React__default.createElement(GuideTitle, null, React__default.createElement(Ellipsis, {
|
|
32152
|
+
maxWidth: "100%",
|
|
32153
|
+
maxLines: 2
|
|
32154
|
+
}, guide.title)), React__default.createElement(GuideDescription, null, React__default.createElement(Ellipsis, {
|
|
32155
|
+
maxWidth: "100%",
|
|
32156
|
+
maxLines: 5
|
|
32157
|
+
}, guide.description)), React__default.createElement(GuideLabelsContainer, null, React__default.createElement(GuideCategory, null, guide.category), React__default.createElement(GuideLanguage, null, guide.language))));
|
|
32152
32158
|
};
|
|
32153
32159
|
var filteredGuides = React.useMemo(function () {
|
|
32154
32160
|
return videoGuides.filter(function (guide) {
|
|
@@ -32205,7 +32211,7 @@ var GuideContent = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
32205
32211
|
var GuideTitle = /*#__PURE__*/styled__default.h3.withConfig({
|
|
32206
32212
|
displayName: "InformationCenterTutorialsSection__GuideTitle",
|
|
32207
32213
|
componentId: "sc-1gk05vk-3"
|
|
32208
|
-
})(["margin:0;font-size:0.6rem !important;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:5px;"], uiColors.yellow);
|
|
32214
|
+
})(["margin:0;font-size:0.6rem !important;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:5px;text-overflow:ellipsis;"], uiColors.yellow);
|
|
32209
32215
|
var GuideDescription = /*#__PURE__*/styled__default.p.withConfig({
|
|
32210
32216
|
displayName: "InformationCenterTutorialsSection__GuideDescription",
|
|
32211
32217
|
componentId: "sc-1gk05vk-4"
|
|
@@ -32221,7 +32227,7 @@ var GuideLanguage = /*#__PURE__*/styled__default.label.withConfig({
|
|
|
32221
32227
|
var GuideLabelsContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
32222
32228
|
displayName: "InformationCenterTutorialsSection__GuideLabelsContainer",
|
|
32223
32229
|
componentId: "sc-1gk05vk-7"
|
|
32224
|
-
})(["display:flex;justify-content:space-between;padding:0 6px 6px;"]);
|
|
32230
|
+
})(["display:flex;justify-content:space-between;padding:0 6px 6px;margin-top:auto;"]);
|
|
32225
32231
|
|
|
32226
32232
|
var InformationCenter = function InformationCenter(_ref) {
|
|
32227
32233
|
var itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
@@ -32297,7 +32303,9 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32297
32303
|
tabId: "tutorials"
|
|
32298
32304
|
})
|
|
32299
32305
|
}];
|
|
32300
|
-
return React__default.createElement(
|
|
32306
|
+
return React__default.createElement(DraggableContainer, {
|
|
32307
|
+
title: "Information Center"
|
|
32308
|
+
}, React__default.createElement(Container$r, null, React__default.createElement(InternalTabs, {
|
|
32301
32309
|
tabs: tabs,
|
|
32302
32310
|
activeTextColor: "#000000",
|
|
32303
32311
|
activeTab: activeTab,
|
|
@@ -32319,7 +32327,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32319
32327
|
onBack: function onBack() {
|
|
32320
32328
|
return setSelectedItem(null);
|
|
32321
32329
|
}
|
|
32322
|
-
}));
|
|
32330
|
+
})));
|
|
32323
32331
|
};
|
|
32324
32332
|
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
32325
32333
|
displayName: "InformationCenter__Container",
|