@rpg-engine/long-bow 0.6.13 → 0.6.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -8,17 +8,18 @@ export interface ITutorialLesson {
8
8
  body?: React.ReactNode | string;
9
9
  text?: string;
10
10
  image: string;
11
- imageStyle?: CSSProperties;
12
11
  }
13
12
 
14
13
  export interface ITutorialStepperProps {
15
14
  lessons: ITutorialLesson[];
16
15
  onLessonFinish: () => void;
16
+ imageStyle?: CSSProperties;
17
17
  }
18
18
 
19
19
  export const TutorialStepper = ({
20
20
  lessons,
21
21
  onLessonFinish,
22
+ imageStyle,
22
23
  }: ITutorialStepperProps) => {
23
24
  const generateLessons = () => {
24
25
  return lessons.map((lesson, index) => ({
@@ -26,7 +27,7 @@ export const TutorialStepper = ({
26
27
  <LessonContainer key={index} className="lesson-container">
27
28
  <LessonTitle className="lesson-title">{lesson.title}</LessonTitle>
28
29
  {lesson.image && (
29
- <LessonImage className="lesson-image" style={lesson.imageStyle}>
30
+ <LessonImage className="lesson-image" style={imageStyle}>
30
31
  <img src={lesson.image} alt={lesson.title} />
31
32
  </LessonImage>
32
33
  )}
@@ -60,6 +61,11 @@ const LessonBody = styled.div``;
60
61
 
61
62
  const Container = styled.div`
62
63
  margin: 2rem;
64
+ * {
65
+ border: 1px solid #f00 !important;
66
+ box-sizing: border-box;
67
+ }
68
+ width: 80%;
63
69
  `;
64
70
 
65
71
  const LessonImage = styled.div`