@rpg-engine/long-bow 0.6.11 → 0.6.13

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.11",
3
+ "version": "0.6.13",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import styled from 'styled-components';
2
+ import styled, { CSSProperties } from 'styled-components';
3
3
  import { Stepper } from '../Stepper';
4
4
  import { DynamicText } from '../typography/DynamicText';
5
5
 
@@ -8,6 +8,7 @@ export interface ITutorialLesson {
8
8
  body?: React.ReactNode | string;
9
9
  text?: string;
10
10
  image: string;
11
+ imageStyle?: CSSProperties;
11
12
  }
12
13
 
13
14
  export interface ITutorialStepperProps {
@@ -22,16 +23,18 @@ export const TutorialStepper = ({
22
23
  const generateLessons = () => {
23
24
  return lessons.map((lesson, index) => ({
24
25
  component: (
25
- <div>
26
- <h1>{lesson.title}</h1>
26
+ <LessonContainer key={index} className="lesson-container">
27
+ <LessonTitle className="lesson-title">{lesson.title}</LessonTitle>
27
28
  {lesson.image && (
28
- <LessonImage>
29
+ <LessonImage className="lesson-image" style={lesson.imageStyle}>
29
30
  <img src={lesson.image} alt={lesson.title} />
30
31
  </LessonImage>
31
32
  )}
32
- {lesson.body && <LessonBody>{lesson.body}</LessonBody>}
33
+ {lesson.body && (
34
+ <LessonBody className="lesson-body">{lesson.body}</LessonBody>
35
+ )}
33
36
  {lesson.text && <DynamicText text={lesson.text} />}
34
- </div>
37
+ </LessonContainer>
35
38
  ),
36
39
  id: index,
37
40
  }));
@@ -75,3 +78,7 @@ const LessonImage = styled.div`
75
78
  border-radius: 10px;
76
79
  }
77
80
  `;
81
+
82
+ const LessonTitle = styled.h1``;
83
+
84
+ const LessonContainer = styled.div``;