@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -31156,15 +31156,15 @@ var BaseInformationDetails = function BaseInformationDetails(_ref) {
|
|
|
31156
31156
|
var Container$p = /*#__PURE__*/styled.div.withConfig({
|
|
31157
31157
|
displayName: "BaseInformationDetails__Container",
|
|
31158
31158
|
componentId: "sc-1vguuz8-0"
|
|
31159
|
-
})(["position:
|
|
31159
|
+
})(["position:absolute;inset:0;display:flex;justify-content:center;align-items:center;z-index:1000;"]);
|
|
31160
31160
|
var Overlay = /*#__PURE__*/styled.div.withConfig({
|
|
31161
31161
|
displayName: "BaseInformationDetails__Overlay",
|
|
31162
31162
|
componentId: "sc-1vguuz8-1"
|
|
31163
|
-
})(["position:absolute;
|
|
31163
|
+
})(["position:absolute;inset:0;background-color:rgba(0,0,0,0.8);"]);
|
|
31164
31164
|
var Modal = /*#__PURE__*/styled.div.withConfig({
|
|
31165
31165
|
displayName: "BaseInformationDetails__Modal",
|
|
31166
31166
|
componentId: "sc-1vguuz8-2"
|
|
31167
|
-
})(["position:relative;width:90%;
|
|
31167
|
+
})(["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);
|
|
31168
31168
|
var CloseButton$5 = /*#__PURE__*/styled.button.withConfig({
|
|
31169
31169
|
displayName: "BaseInformationDetails__CloseButton",
|
|
31170
31170
|
componentId: "sc-1vguuz8-3"
|
|
@@ -31176,7 +31176,7 @@ var Header$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
31176
31176
|
var Content$2 = /*#__PURE__*/styled.div.withConfig({
|
|
31177
31177
|
displayName: "BaseInformationDetails__Content",
|
|
31178
31178
|
componentId: "sc-1vguuz8-5"
|
|
31179
|
-
})(["display:flex;flex-direction:column;gap:16px;"]);
|
|
31179
|
+
})(["display:flex;flex-direction:column;gap:16px;height:100%;overflow:auto;"]);
|
|
31180
31180
|
var Title$4 = /*#__PURE__*/styled.h2.withConfig({
|
|
31181
31181
|
displayName: "BaseInformationDetails__Title",
|
|
31182
31182
|
componentId: "sc-1vguuz8-6"
|
|
@@ -32143,7 +32143,13 @@ var InformationCenterTutorialsSection = function InformationCenterTutorialsSecti
|
|
|
32143
32143
|
}, React.createElement(GuideThumbnail, null, React.createElement("img", {
|
|
32144
32144
|
src: guide.localImage || getYouTubeThumbnail(guide.videoUrl),
|
|
32145
32145
|
alt: guide.title
|
|
32146
|
-
})), React.createElement(GuideContent, null, React.createElement(GuideTitle, null,
|
|
32146
|
+
})), React.createElement(GuideContent, null, React.createElement(GuideTitle, null, React.createElement(Ellipsis, {
|
|
32147
|
+
maxWidth: "100%",
|
|
32148
|
+
maxLines: 2
|
|
32149
|
+
}, guide.title)), React.createElement(GuideDescription, null, React.createElement(Ellipsis, {
|
|
32150
|
+
maxWidth: "100%",
|
|
32151
|
+
maxLines: 5
|
|
32152
|
+
}, guide.description)), React.createElement(GuideLabelsContainer, null, React.createElement(GuideCategory, null, guide.category), React.createElement(GuideLanguage, null, guide.language))));
|
|
32147
32153
|
};
|
|
32148
32154
|
var filteredGuides = useMemo(function () {
|
|
32149
32155
|
return videoGuides.filter(function (guide) {
|
|
@@ -32200,7 +32206,7 @@ var GuideContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
32200
32206
|
var GuideTitle = /*#__PURE__*/styled.h3.withConfig({
|
|
32201
32207
|
displayName: "InformationCenterTutorialsSection__GuideTitle",
|
|
32202
32208
|
componentId: "sc-1gk05vk-3"
|
|
32203
|
-
})(["margin:0;font-size:0.6rem !important;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:5px;"], uiColors.yellow);
|
|
32209
|
+
})(["margin:0;font-size:0.6rem !important;color:", ";font-family:'Press Start 2P',cursive;margin-bottom:5px;text-overflow:ellipsis;"], uiColors.yellow);
|
|
32204
32210
|
var GuideDescription = /*#__PURE__*/styled.p.withConfig({
|
|
32205
32211
|
displayName: "InformationCenterTutorialsSection__GuideDescription",
|
|
32206
32212
|
componentId: "sc-1gk05vk-4"
|
|
@@ -32216,7 +32222,7 @@ var GuideLanguage = /*#__PURE__*/styled.label.withConfig({
|
|
|
32216
32222
|
var GuideLabelsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
32217
32223
|
displayName: "InformationCenterTutorialsSection__GuideLabelsContainer",
|
|
32218
32224
|
componentId: "sc-1gk05vk-7"
|
|
32219
|
-
})(["display:flex;justify-content:space-between;padding:0 6px 6px;"]);
|
|
32225
|
+
})(["display:flex;justify-content:space-between;padding:0 6px 6px;margin-top:auto;"]);
|
|
32220
32226
|
|
|
32221
32227
|
var InformationCenter = function InformationCenter(_ref) {
|
|
32222
32228
|
var itemsAtlasJSON = _ref.itemsAtlasJSON,
|
|
@@ -32292,7 +32298,9 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32292
32298
|
tabId: "tutorials"
|
|
32293
32299
|
})
|
|
32294
32300
|
}];
|
|
32295
|
-
return React.createElement(
|
|
32301
|
+
return React.createElement(DraggableContainer, {
|
|
32302
|
+
title: "Information Center"
|
|
32303
|
+
}, React.createElement(Container$r, null, React.createElement(InternalTabs, {
|
|
32296
32304
|
tabs: tabs,
|
|
32297
32305
|
activeTextColor: "#000000",
|
|
32298
32306
|
activeTab: activeTab,
|
|
@@ -32314,7 +32322,7 @@ var InformationCenter = function InformationCenter(_ref) {
|
|
|
32314
32322
|
onBack: function onBack() {
|
|
32315
32323
|
return setSelectedItem(null);
|
|
32316
32324
|
}
|
|
32317
|
-
}));
|
|
32325
|
+
})));
|
|
32318
32326
|
};
|
|
32319
32327
|
var Container$r = /*#__PURE__*/styled.div.withConfig({
|
|
32320
32328
|
displayName: "InformationCenter__Container",
|