@rpg-engine/long-bow 0.4.84 → 0.4.86
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/PartySystem/PartyCreate/PartyCreate.d.ts +6 -0
- package/dist/components/PartySystem/PartyCreate/index.d.ts +1 -0
- package/dist/components/PartySystem/PartyDashboard/PartyDashboard.d.ts +6 -0
- package/dist/components/PartySystem/PartyDashboard/PartyRows.d.ts +11 -0
- package/dist/components/PartySystem/PartyDashboard/index.d.ts +2 -0
- package/dist/components/PartySystem/PartyInvite/PartyInvite.d.ts +6 -0
- package/dist/components/PartySystem/PartyInvite/PlayersRows.d.ts +9 -0
- package/dist/components/PartySystem/PartyInvite/index.d.ts +2 -0
- package/dist/components/PartySystem/PartyManager/PartyManager.d.ts +6 -0
- package/dist/components/PartySystem/PartyManager/PartyManagerRows.d.ts +8 -0
- package/dist/components/PartySystem/PartyManager/index.d.ts +2 -0
- package/dist/components/PartySystem/index.d.ts +5 -0
- package/dist/components/PartySystem/mockedConstantes/index.d.ts +1 -0
- package/dist/components/PartySystem/mockedConstantes/mockedValues.d.ts +6 -0
- package/dist/constants/uiColors.d.ts +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/long-bow.cjs.development.js +484 -109
- 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 +475 -110
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/PartyCreate.stories.d.ts +5 -0
- package/dist/stories/PartyDashboard.stories.d.ts +5 -0
- package/dist/stories/PartyInvite.stories.d.ts +5 -0
- package/dist/stories/PartyManager.stories.d.ts +5 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/components/PartySystem/PartyCreate/PartyCreate.tsx +79 -0
- package/src/components/PartySystem/PartyCreate/index.ts +1 -0
- package/src/components/PartySystem/PartyDashboard/PartyDashboard.tsx +67 -0
- package/src/components/PartySystem/PartyDashboard/PartyRows.tsx +57 -0
- package/src/components/PartySystem/PartyDashboard/index.ts +2 -0
- package/src/components/PartySystem/PartyInvite/PartyInvite.tsx +60 -0
- package/src/components/PartySystem/PartyInvite/PlayersRows.tsx +49 -0
- package/src/components/PartySystem/PartyInvite/index.ts +2 -0
- package/src/components/PartySystem/PartyManager/PartyManager.tsx +57 -0
- package/src/components/PartySystem/PartyManager/PartyManagerRows.tsx +43 -0
- package/src/components/PartySystem/PartyManager/index.ts +2 -0
- package/src/components/PartySystem/index.ts +6 -0
- package/src/components/PartySystem/mockedConstantes/index.ts +1 -0
- package/src/components/PartySystem/mockedConstantes/mockedValues.tsx +150 -0
- package/src/constants/uiColors.ts +1 -0
- package/src/index.tsx +5 -4
- package/src/mocks/.DS_Store +0 -0
- package/src/mocks/atlas/.DS_Store +0 -0
- package/src/stories/PartyCreate.stories.tsx +24 -0
- package/src/stories/PartyDashboard.stories.tsx +27 -0
- package/src/stories/PartyInvite.stories.tsx +27 -0
- package/src/stories/PartyManager.stories.tsx +27 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IPartyCreateProps, PartyCreate } from '../components/PartySystem';
|
|
4
|
+
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
5
|
+
|
|
6
|
+
const meta: Meta = {
|
|
7
|
+
title: 'Party System/Party Create',
|
|
8
|
+
component: PartyCreate,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
const Template: Story<IPartyCreateProps> = args => (
|
|
14
|
+
<RPGUIRoot>
|
|
15
|
+
<PartyCreate {...args} />
|
|
16
|
+
</RPGUIRoot>
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export const Default = Template.bind({});
|
|
20
|
+
|
|
21
|
+
Default.args = {
|
|
22
|
+
onClose: () => console.log('onClose'),
|
|
23
|
+
onCreate: () => console.log('OnCreate'),
|
|
24
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
IPartyDashboardProps,
|
|
5
|
+
PartyDashboard,
|
|
6
|
+
} from '../components/PartySystem/PartyDashboard/PartyDashboard';
|
|
7
|
+
import { mockedPartyRows } from '../components/PartySystem/mockedConstantes/mockedValues';
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
9
|
+
|
|
10
|
+
const meta: Meta = {
|
|
11
|
+
title: 'Party System/Party Dashboard',
|
|
12
|
+
component: PartyDashboard,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
|
|
17
|
+
const Template: Story<IPartyDashboardProps> = args => (
|
|
18
|
+
<RPGUIRoot>
|
|
19
|
+
<PartyDashboard {...args} />
|
|
20
|
+
</RPGUIRoot>
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export const Default = Template.bind({});
|
|
24
|
+
|
|
25
|
+
Default.args = {
|
|
26
|
+
partyRows: mockedPartyRows,
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
IPartyInviteProps,
|
|
5
|
+
PartyInvite,
|
|
6
|
+
} from '../components/PartySystem/PartyInvite/PartyInvite';
|
|
7
|
+
import { mockedPlayersRows } from '../components/PartySystem/mockedConstantes/mockedValues';
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
9
|
+
|
|
10
|
+
const meta: Meta = {
|
|
11
|
+
title: 'Party System/Party Invite',
|
|
12
|
+
component: PartyInvite,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
|
|
17
|
+
const Template: Story<IPartyInviteProps> = args => (
|
|
18
|
+
<RPGUIRoot>
|
|
19
|
+
<PartyInvite {...args} />
|
|
20
|
+
</RPGUIRoot>
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export const Default = Template.bind({});
|
|
24
|
+
|
|
25
|
+
Default.args = {
|
|
26
|
+
playersRows: mockedPlayersRows,
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
IPartyManagerProps,
|
|
5
|
+
PartyManager,
|
|
6
|
+
} from '../components/PartySystem/PartyManager/PartyManager';
|
|
7
|
+
import { mockedPartyManager } from '../components/PartySystem/mockedConstantes/mockedValues';
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
9
|
+
|
|
10
|
+
const meta: Meta = {
|
|
11
|
+
title: 'Party System/Party Manager',
|
|
12
|
+
component: PartyManager,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
|
|
17
|
+
const Template: Story<IPartyManagerProps> = args => (
|
|
18
|
+
<RPGUIRoot>
|
|
19
|
+
<PartyManager {...args} />
|
|
20
|
+
</RPGUIRoot>
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export const Default = Template.bind({});
|
|
24
|
+
|
|
25
|
+
Default.args = {
|
|
26
|
+
partyRows: mockedPartyManager,
|
|
27
|
+
};
|