@rpg-engine/long-bow 0.2.28 → 0.2.29
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/SkillProgressBar.d.ts +2 -0
- package/dist/components/SkillsContainer.d.ts +2 -0
- package/dist/components/TradingMenu/TrandingMenu.d.ts +12 -0
- package/dist/components/TradingMenu/itemComponent.d.ts +9 -0
- package/dist/components/TradingMenu/items.mock.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +405 -388
- 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 +405 -393
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/ItemTradingComponent.stories.d.ts +5 -0
- package/dist/stories/TrandingMenu.stories.d.ts +5 -0
- package/package.json +2 -2
- package/src/components/Item/Inventory/ItemSlot.tsx +5 -3
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/ScrollList.tsx +2 -1
- package/src/components/SkillProgressBar.tsx +4 -2
- package/src/components/SkillsContainer.tsx +8 -37
- package/src/components/TradingMenu/TrandingMenu.tsx +190 -0
- package/src/components/TradingMenu/itemComponent.tsx +158 -0
- package/src/components/TradingMenu/items.mock.ts +87 -0
- package/src/index.tsx +1 -0
- package/src/mocks/.DS_Store +0 -0
- package/src/stories/ItemTradingComponent.stories.tsx +39 -0
- package/src/stories/SkillProgressBar.stories.tsx +4 -0
- package/src/stories/SkillsContainer.stories.tsx +4 -0
- package/src/stories/TrandingMenu.stories.tsx +38 -0
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
SkillsContainer,
|
|
7
7
|
} from '../../src/components/SkillsContainer';
|
|
8
8
|
import { skillMock } from '../../src/mocks/skills.mocks';
|
|
9
|
+
import atlasJSON from '../mocks/atlas/items/items.json';
|
|
10
|
+
import atlasIMG from '../mocks/atlas/items/items.png';
|
|
9
11
|
|
|
10
12
|
const meta: Meta = {
|
|
11
13
|
title: 'Skills Container',
|
|
@@ -20,6 +22,8 @@ const Template: Story<ISkillContainerProps> = args => (
|
|
|
20
22
|
{...args}
|
|
21
23
|
skill={skillMock}
|
|
22
24
|
onCloseButton={() => console.log('close skill container')}
|
|
25
|
+
atlasIMG={atlasIMG}
|
|
26
|
+
atlasJSON={atlasJSON}
|
|
23
27
|
/>
|
|
24
28
|
</RPGUIRoot>
|
|
25
29
|
);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
4
|
+
import {
|
|
5
|
+
TrandingMenu,
|
|
6
|
+
ITrandingMenu,
|
|
7
|
+
} from '../components/TradingMenu/TrandingMenu';
|
|
8
|
+
import atlasJSON from '../mocks/atlas/items/items.json';
|
|
9
|
+
import atlasIMG from '../mocks/atlas/items/items.png';
|
|
10
|
+
import { itemMock } from '../components/TradingMenu/items.mock';
|
|
11
|
+
|
|
12
|
+
const meta: Meta = {
|
|
13
|
+
title: 'Trading Menu',
|
|
14
|
+
component: TrandingMenu,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default meta;
|
|
18
|
+
|
|
19
|
+
const Template: Story<ITrandingMenu> = args => (
|
|
20
|
+
<RPGUIRoot>
|
|
21
|
+
<TrandingMenu {...args} />
|
|
22
|
+
</RPGUIRoot>
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const Default = Template.bind({});
|
|
26
|
+
|
|
27
|
+
const onClose = () => {
|
|
28
|
+
console.log('close');
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
Default.args = {
|
|
32
|
+
traderItems: itemMock,
|
|
33
|
+
onClose: onClose,
|
|
34
|
+
type: 'buy',
|
|
35
|
+
atlasJSON: atlasJSON,
|
|
36
|
+
atlasIMG: atlasIMG,
|
|
37
|
+
characterAvailableGold: 1000,
|
|
38
|
+
};
|