@rpg-engine/long-bow 0.6.11 → 0.6.14
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/Tutorial/TutorialStepper.d.ts +2 -0
- package/dist/long-bow.cjs.development.js +20 -2
- 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 +20 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Tutorial/TutorialStepper.tsx +13 -6
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CSSProperties } from 'styled-components';
|
|
2
3
|
export interface ITutorialLesson {
|
|
3
4
|
title: string;
|
|
4
5
|
body?: React.ReactNode | string;
|
|
5
6
|
text?: string;
|
|
6
7
|
image: string;
|
|
8
|
+
imageStyle?: CSSProperties;
|
|
7
9
|
}
|
|
8
10
|
export interface ITutorialStepperProps {
|
|
9
11
|
lessons: ITutorialLesson[];
|
|
@@ -20028,10 +20028,20 @@ var TutorialStepper = function TutorialStepper(_ref) {
|
|
|
20028
20028
|
var generateLessons = function generateLessons() {
|
|
20029
20029
|
return lessons.map(function (lesson, index) {
|
|
20030
20030
|
return {
|
|
20031
|
-
component: React__default.createElement(
|
|
20031
|
+
component: React__default.createElement(LessonContainer, {
|
|
20032
|
+
key: index,
|
|
20033
|
+
className: "lesson-container"
|
|
20034
|
+
}, React__default.createElement(LessonTitle, {
|
|
20035
|
+
className: "lesson-title"
|
|
20036
|
+
}, lesson.title), lesson.image && React__default.createElement(LessonImage, {
|
|
20037
|
+
className: "lesson-image",
|
|
20038
|
+
style: lesson.imageStyle
|
|
20039
|
+
}, React__default.createElement("img", {
|
|
20032
20040
|
src: lesson.image,
|
|
20033
20041
|
alt: lesson.title
|
|
20034
|
-
})), lesson.body && React__default.createElement(LessonBody,
|
|
20042
|
+
})), lesson.body && React__default.createElement(LessonBody, {
|
|
20043
|
+
className: "lesson-body"
|
|
20044
|
+
}, lesson.body), lesson.text && React__default.createElement(DynamicText, {
|
|
20035
20045
|
text: lesson.text
|
|
20036
20046
|
})),
|
|
20037
20047
|
id: index
|
|
@@ -20061,6 +20071,14 @@ var LessonImage = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
20061
20071
|
displayName: "TutorialStepper__LessonImage",
|
|
20062
20072
|
componentId: "sc-7tgzv2-2"
|
|
20063
20073
|
})(["display:flex;justify-content:center;align-items:center;width:100%;height:auto;max-width:600px;margin:auto;img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px;}"]);
|
|
20074
|
+
var LessonTitle = /*#__PURE__*/styled__default.h1.withConfig({
|
|
20075
|
+
displayName: "TutorialStepper__LessonTitle",
|
|
20076
|
+
componentId: "sc-7tgzv2-3"
|
|
20077
|
+
})([""]);
|
|
20078
|
+
var LessonContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
20079
|
+
displayName: "TutorialStepper__LessonContainer",
|
|
20080
|
+
componentId: "sc-7tgzv2-4"
|
|
20081
|
+
})([""]);
|
|
20064
20082
|
|
|
20065
20083
|
exports.AsyncDropdown = AsyncDropdown;
|
|
20066
20084
|
exports.Button = Button;
|