@rpg-engine/long-bow 0.2.4 → 0.2.7

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.
@@ -0,0 +1,41 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import React from 'react';
3
+ import { RPGUIRoot } from '..';
4
+ import CharacterSelection, {
5
+ ICharacterProps,
6
+ } from '../components/Character/CharacterSelection';
7
+
8
+ const meta: Meta = {
9
+ title: 'Character Selection',
10
+ component: CharacterSelection,
11
+ };
12
+
13
+ export default meta;
14
+
15
+ const Template: Story<any> = args => (
16
+ <RPGUIRoot>
17
+ <CharacterSelection
18
+ {...args}
19
+ onChange={value => {
20
+ console.log(value);
21
+ }}
22
+ />
23
+ </RPGUIRoot>
24
+ );
25
+
26
+ export const Default = Template.bind({});
27
+
28
+ const availableCharacters: ICharacterProps[] = [
29
+ {
30
+ name: 'Woman',
31
+ textureKey: 'woman-1',
32
+ },
33
+ {
34
+ name: 'Kid',
35
+ textureKey: 'kid-1',
36
+ },
37
+ ];
38
+
39
+ Default.args = {
40
+ availableCharacters: availableCharacters,
41
+ };
@@ -37,5 +37,4 @@ const propertiesMock = [
37
37
 
38
38
  Default.args = {
39
39
  availableProperties: propertiesMock,
40
- selectedProperty: {},
41
40
  };