@rpg-engine/long-bow 0.5.32 → 0.5.34
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/DraggableContainer.d.ts +1 -1
- package/dist/components/RPGUI/RPGUIOverrides.d.ts +6 -0
- package/dist/components/{RPGUIRoot.d.ts → RPGUI/RPGUIRoot.d.ts} +1 -1
- package/dist/components/RPGUI/RPGUIScrollbar.d.ts +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/long-bow.cjs.development.js +32 -18
- 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 +32 -18
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/RPGUIContainers.stories.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Abstractions/SlotsContainer.tsx +1 -1
- package/src/components/Chatdeprecated/ChatDeprecated.tsx +1 -1
- package/src/components/CraftBook/CraftBook.tsx +1 -1
- package/src/components/DraggableContainer.tsx +1 -1
- package/src/components/Equipment/EquipmentSet.tsx +1 -1
- package/src/components/ImageCarousel/ImageCarousel.tsx +1 -1
- package/src/components/Item/Inventory/ItemQuantitySelector.tsx +4 -1
- package/src/components/Marketplace/Marketplace.tsx +1 -1
- package/src/components/Multitab/TabsContainer.tsx +1 -1
- package/src/components/NPCDialog/NPCDialog.tsx +1 -1
- package/src/components/NPCDialog/NPCMultiDialog.tsx +2 -2
- package/src/components/PartySystem/PartyCreate/PartyCreate.tsx +1 -1
- package/src/components/PartySystem/PartyDashboard/PartyDashboard.tsx +1 -1
- package/src/components/PartySystem/PartyInvite/PartyInvite.tsx +1 -1
- package/src/components/PartySystem/PartyManager/PartyManager.tsx +1 -1
- package/src/components/QuestInfo/QuestInfo.tsx +1 -1
- package/src/components/QuestList.tsx +1 -1
- package/src/components/RPGUI/RPGUIOverrides.tsx +9 -0
- package/src/components/{RPGUIRoot.tsx → RPGUI/RPGUIRoot.tsx} +7 -2
- package/src/components/RPGUI/RPGUIScrollbar.tsx +24 -0
- package/src/components/RadioInput/RadioInput.tsx +1 -1
- package/src/components/Spellbook/Spellbook.tsx +1 -1
- package/src/components/TradingMenu/TradingMenu.tsx +1 -1
- package/src/components/itemSelector/ItemSelector.tsx +1 -1
- package/src/index.tsx +2 -2
- package/src/stories/Button.stories.tsx +1 -1
- package/src/stories/CharacterStatus.stories.tsx +1 -1
- package/src/stories/Chat.stories.tsx +1 -1
- package/src/stories/ChatDeprecated.stories.tsx +1 -1
- package/src/stories/ChatRevamp.stories.tsx +1 -1
- package/src/stories/CheckButton.stories.tsx +2 -2
- package/src/stories/DayNightPeriod.stories.tsx +1 -1
- package/src/stories/DraggableContainer.stories.tsx +1 -1
- package/src/stories/EquipmentSet.stories.tsx +1 -1
- package/src/stories/HistoryDialog.stories.tsx +5 -5
- package/src/stories/ImageCarousel.stories.tsx +1 -1
- package/src/stories/ItemContainer.stories.tsx +1 -1
- package/src/stories/ItemInfoDisplay.stories.tsx +1 -1
- package/src/stories/ItemTradingComponent.stories.tsx +2 -2
- package/src/stories/Leaderboard.stories.tsx +1 -1
- package/src/stories/ListMenu.stories.tsx +1 -1
- package/src/stories/Multitab.stories.tsx +1 -1
- package/src/stories/NPCDialog.stories.tsx +1 -1
- package/src/stories/NPCMultiDialog.stories.tsx +3 -3
- package/src/stories/PartyCreate.stories.tsx +1 -1
- package/src/stories/PartyDashboard.stories.tsx +1 -1
- package/src/stories/PartyInvite.stories.tsx +1 -1
- package/src/stories/PartyManager.stories.tsx +1 -1
- package/src/stories/ProgressBar.stories.tsx +1 -1
- package/src/stories/QuestInfo.stories.tsx +1 -1
- package/src/stories/QuestList.stories.tsx +1 -1
- package/src/stories/RPGUIContainers.stories.tsx +2 -2
- package/src/stories/RadioButton.stories.tsx +3 -3
- package/src/stories/RadioInput.stories.tsx +25 -26
- package/src/stories/RangeSlider.stories.tsx +1 -1
- package/src/stories/ScrollList.stories.tsx +1 -1
- package/src/stories/Shortcuts.stories.tsx +1 -1
- package/src/stories/SimpleProgressBar.stories.tsx +1 -1
- package/src/stories/SkillProgressBar.stories.tsx +3 -3
- package/src/stories/SkillsContainer.stories.tsx +1 -1
- package/src/stories/SpellInfoDisplay.stories.tsx +1 -1
- package/src/stories/Spellbook.stories.tsx +1 -1
- package/src/stories/TimeWidget.stories.tsx +1 -1
- package/src/stories/TradingMenu.stories.tsx +2 -2
- /package/dist/components/{RPGUIContainer.d.ts → RPGUI/RPGUIContainer.d.ts} +0 -0
- /package/dist/components/{RPGUIForceRenderStart.d.ts → RPGUI/RPGUIForceRenderStart.d.ts} +0 -0
- /package/src/components/{RPGUIContainer.tsx → RPGUI/RPGUIContainer.tsx} +0 -0
- /package/src/components/{RPGUIForceRenderStart.tsx → RPGUI/RPGUIForceRenderStart.tsx} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react';
|
|
2
|
-
import { IRPGUIContainerProps } from '
|
|
2
|
+
import { IRPGUIContainerProps } from '../components/RPGUI/RPGUIContainer';
|
|
3
3
|
declare const meta: Meta;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, IRPGUIContainerProps>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IPosition } from '../../types/eventTypes';
|
|
3
3
|
import { DraggableContainer } from '../DraggableContainer';
|
|
4
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
4
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
5
5
|
|
|
6
6
|
interface IProps {
|
|
7
7
|
children: React.ReactNode;
|
|
@@ -7,7 +7,7 @@ import { uiColors } from '../../constants/uiColors';
|
|
|
7
7
|
import { uiFonts } from '../../constants/uiFonts';
|
|
8
8
|
import { Button, ButtonTypes } from '../Button';
|
|
9
9
|
import { Input } from '../Input';
|
|
10
|
-
import { RPGUIContainer, RPGUIContainerTypes } from '../RPGUIContainer';
|
|
10
|
+
import { RPGUIContainer, RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
11
11
|
import { Column } from '../shared/Column';
|
|
12
12
|
|
|
13
13
|
interface IEmitter {
|
|
@@ -11,7 +11,7 @@ import { uiColors } from '../../constants/uiColors';
|
|
|
11
11
|
import { Button, ButtonTypes } from '../Button';
|
|
12
12
|
import { DraggableContainer } from '../DraggableContainer';
|
|
13
13
|
import { InputRadio } from '../InputRadio';
|
|
14
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
14
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
15
15
|
import { CraftingRecipe } from './CraftingRecipe';
|
|
16
16
|
|
|
17
17
|
export interface IItemCraftSelectorProps {
|
|
@@ -4,7 +4,7 @@ import styled from 'styled-components';
|
|
|
4
4
|
import { uiFonts } from '../constants/uiFonts';
|
|
5
5
|
import { useOutsideClick } from '../hooks/useOutsideAlerter';
|
|
6
6
|
import { IPosition } from '../types/eventTypes';
|
|
7
|
-
import { RPGUIContainerTypes } from './RPGUIContainer';
|
|
7
|
+
import { RPGUIContainerTypes } from './RPGUI/RPGUIContainer';
|
|
8
8
|
|
|
9
9
|
export interface IDraggableContainerProps {
|
|
10
10
|
children: React.ReactNode;
|
|
@@ -13,7 +13,7 @@ import { DraggableContainer } from '../DraggableContainer';
|
|
|
13
13
|
import DraggedItem from '../Item/Inventory/DraggedItem';
|
|
14
14
|
import { ItemSlot } from '../Item/Inventory/ItemSlot';
|
|
15
15
|
import { DraggingProvider } from '../Item/Inventory/context/DraggingContext';
|
|
16
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
16
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
17
17
|
|
|
18
18
|
export interface IEquipmentSetProps {
|
|
19
19
|
equipmentSet: IEquipmentSet;
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import SelectArrow from '../Arrow/SelectArrow';
|
|
4
4
|
import { DraggableContainer } from '../DraggableContainer';
|
|
5
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
5
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
6
6
|
import { DynamicText } from '../typography/DynamicText';
|
|
7
7
|
|
|
8
8
|
export interface ITextImageProps {
|
|
@@ -2,7 +2,10 @@ import React, { useEffect, useRef, useState } from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { Button, ButtonTypes } from '../../Button';
|
|
4
4
|
import { Input } from '../../Input';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
RPGUIContainer,
|
|
7
|
+
RPGUIContainerTypes,
|
|
8
|
+
} from '../../RPGUI/RPGUIContainer';
|
|
6
9
|
import { RangeSlider, RangeSliderType } from '../../RangeSlider';
|
|
7
10
|
|
|
8
11
|
export interface IItemQuantitySelectorProps {
|
|
@@ -4,7 +4,7 @@ import styled from 'styled-components';
|
|
|
4
4
|
import { Button, ButtonTypes } from '../Button';
|
|
5
5
|
import { DraggableContainer } from '../DraggableContainer';
|
|
6
6
|
import { Pager } from '../Pager';
|
|
7
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
7
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
8
8
|
import { BuyPanel } from './BuyPanel';
|
|
9
9
|
import { ManagmentPanel } from './ManagmentPanel';
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { DraggableContainer } from '../DraggableContainer';
|
|
4
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
4
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
5
5
|
import { Tab } from './Tab';
|
|
6
6
|
|
|
7
7
|
interface ITab {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { RPGUIContainer, RPGUIContainerTypes } from '../RPGUIContainer';
|
|
3
|
+
import { RPGUIContainer, RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
4
4
|
import { NPCDialogText } from './NPCDialogText';
|
|
5
5
|
import {
|
|
6
6
|
IQuestionDialog,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { RPGUIContainer, RPGUIContainerTypes } from '../RPGUIContainer';
|
|
3
|
+
import { RPGUIContainer, RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
4
|
+
import { NPCDialogText } from './NPCDialogText';
|
|
4
5
|
import aliceDefaultThumbnail from './img/npcDialog/npcThumbnails/alice.png';
|
|
5
6
|
import pressSpaceGif from './img/space.gif';
|
|
6
|
-
import { NPCDialogText } from './NPCDialogText';
|
|
7
7
|
|
|
8
8
|
export enum ImgSide {
|
|
9
9
|
right = 'right',
|
|
@@ -4,7 +4,7 @@ import { uiColors } from '../../../constants/uiColors';
|
|
|
4
4
|
import { Button, ButtonTypes } from '../../Button';
|
|
5
5
|
import { DraggableContainer } from '../../DraggableContainer';
|
|
6
6
|
import { Input } from '../../Input';
|
|
7
|
-
import { RPGUIContainerTypes } from '../../RPGUIContainer';
|
|
7
|
+
import { RPGUIContainerTypes } from '../../RPGUI/RPGUIContainer';
|
|
8
8
|
|
|
9
9
|
export interface IPartyCreateProps {
|
|
10
10
|
onClose: () => void;
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import { uiColors } from '../../../constants/uiColors';
|
|
4
4
|
import { Button, ButtonTypes } from '../../Button';
|
|
5
5
|
import { DraggableContainer } from '../../DraggableContainer';
|
|
6
|
-
import { RPGUIContainerTypes } from '../../RPGUIContainer';
|
|
6
|
+
import { RPGUIContainerTypes } from '../../RPGUI/RPGUIContainer';
|
|
7
7
|
import { IPartyRowProps, PartyRow } from './PartyRows';
|
|
8
8
|
|
|
9
9
|
export interface IPartyDashboardProps {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { uiColors } from '../../../constants/uiColors';
|
|
4
4
|
import { DraggableContainer } from '../../DraggableContainer';
|
|
5
|
-
import { RPGUIContainerTypes } from '../../RPGUIContainer';
|
|
5
|
+
import { RPGUIContainerTypes } from '../../RPGUI/RPGUIContainer';
|
|
6
6
|
import { IPlayersRowProps, PlayersRow } from './PlayersRows';
|
|
7
7
|
|
|
8
8
|
export interface IPartyInviteProps {
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { uiColors } from '../../../constants/uiColors';
|
|
5
5
|
import { DraggableContainer } from '../../DraggableContainer';
|
|
6
|
-
import { RPGUIContainerTypes } from '../../RPGUIContainer';
|
|
6
|
+
import { RPGUIContainerTypes } from '../../RPGUI/RPGUIContainer';
|
|
7
7
|
import { PartyManagerRow } from './PartyManagerRows';
|
|
8
8
|
|
|
9
9
|
export interface IPartyManagerProps {
|
|
@@ -7,7 +7,7 @@ import SelectArrow from '../Arrow/SelectArrow';
|
|
|
7
7
|
import { Button, ButtonTypes } from '../Button';
|
|
8
8
|
import { DraggableContainer } from '../DraggableContainer';
|
|
9
9
|
|
|
10
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
10
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
11
11
|
import { Column } from '../shared/Column';
|
|
12
12
|
import thumbnailDefault from './img/default.png';
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { uiFonts } from '../constants/uiFonts';
|
|
5
5
|
import { DraggableContainer } from './DraggableContainer';
|
|
6
|
-
import { RPGUIContainerTypes } from './RPGUIContainer';
|
|
6
|
+
import { RPGUIContainerTypes } from './RPGUI/RPGUIContainer';
|
|
7
7
|
|
|
8
8
|
export interface IQuestListProps {
|
|
9
9
|
quests?: IQuest[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import 'rpgui/rpgui.
|
|
2
|
+
import 'rpgui/rpgui.css';
|
|
3
3
|
import 'rpgui/rpgui.min.js';
|
|
4
|
+
import { RPGUIOverrides } from './RPGUIOverrides';
|
|
4
5
|
|
|
5
6
|
interface IProps {
|
|
6
7
|
children: React.ReactNode;
|
|
@@ -10,5 +11,9 @@ interface IProps {
|
|
|
10
11
|
export const _RPGUI = RPGUI;
|
|
11
12
|
|
|
12
13
|
export const RPGUIRoot: React.FC<IProps> = ({ children }) => {
|
|
13
|
-
return
|
|
14
|
+
return (
|
|
15
|
+
<RPGUIOverrides>
|
|
16
|
+
<div className="rpgui-content">{children}</div>
|
|
17
|
+
</RPGUIOverrides>
|
|
18
|
+
);
|
|
14
19
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
interface IProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const RPGUIScrollbar = ({ children }: IProps) => {
|
|
9
|
+
return <Container>{children}</Container>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const Container = styled.div`
|
|
13
|
+
/* Override RPGUI CSS */
|
|
14
|
+
|
|
15
|
+
.rpgui-content ::-webkit-scrollbar,
|
|
16
|
+
.rpgui-content::-webkit-scrollbar {
|
|
17
|
+
width: 25px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.rpgui-content ::-webkit-scrollbar-track,
|
|
21
|
+
.rpgui-content::-webkit-scrollbar-track {
|
|
22
|
+
background-size: 25px 60px;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { Button, ButtonTypes } from '../Button';
|
|
4
4
|
import { DraggableContainer } from '../DraggableContainer';
|
|
5
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
5
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
6
6
|
import { RadioButton } from './RadioButton';
|
|
7
7
|
|
|
8
8
|
export interface IRadioItems {
|
|
@@ -4,7 +4,7 @@ import styled from 'styled-components';
|
|
|
4
4
|
import { uiFonts } from '../../constants/uiFonts';
|
|
5
5
|
import { DraggableContainer } from '../DraggableContainer';
|
|
6
6
|
import { Input } from '../Input';
|
|
7
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
7
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
8
8
|
import { ShortcutsSetter } from '../Shortcuts/ShortcutsSetter';
|
|
9
9
|
import { Spell } from './Spell';
|
|
10
10
|
|
|
@@ -8,7 +8,7 @@ import React, { useState } from 'react';
|
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { Button, ButtonTypes } from '../Button';
|
|
10
10
|
import { DraggableContainer } from '../DraggableContainer';
|
|
11
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
11
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
12
12
|
import { TradingItemRow } from './TradingItemRow';
|
|
13
13
|
|
|
14
14
|
export interface ITradingMenu {
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { Button, ButtonTypes } from '../Button';
|
|
4
4
|
import { DraggableContainer } from '../DraggableContainer';
|
|
5
|
-
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
5
|
+
import { RPGUIContainerTypes } from '../RPGUI/RPGUIContainer';
|
|
6
6
|
import { SpriteFromAtlas } from '../shared/SpriteFromAtlas';
|
|
7
7
|
|
|
8
8
|
export interface IOptionsItemSelectorProps {
|
package/src/index.tsx
CHANGED
|
@@ -28,8 +28,8 @@ export * from './components/ProgressBar';
|
|
|
28
28
|
export * from './components/PropertySelect/PropertySelect';
|
|
29
29
|
export * from './components/QuestInfo/QuestInfo';
|
|
30
30
|
export * from './components/QuestList';
|
|
31
|
-
export * from './components/RPGUIContainer';
|
|
32
|
-
export * from './components/RPGUIRoot';
|
|
31
|
+
export * from './components/RPGUI/RPGUIContainer';
|
|
32
|
+
export * from './components/RPGUI/RPGUIRoot';
|
|
33
33
|
export * from './components/RadioButton';
|
|
34
34
|
export * from './components/RangeSlider';
|
|
35
35
|
export * from './components/Shortcuts/Shortcuts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Button, ButtonTypes, IButtonProps } from '../../src/components/Button';
|
|
4
|
-
import { RPGUIRoot } from '
|
|
4
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
5
5
|
|
|
6
6
|
const meta: Meta = {
|
|
7
7
|
title: 'Button',
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
CharacterStatus,
|
|
5
5
|
ICharacterStatusProps,
|
|
6
6
|
} from '../components/CharacterStatus/CharacterStatus';
|
|
7
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
7
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
10
|
title: 'Character Status',
|
|
@@ -2,7 +2,7 @@ import { ChatMessageType, IChatMessage } from '@rpg-engine/shared';
|
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Chat } from '../components/Chat/Chat';
|
|
5
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
5
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
6
6
|
|
|
7
7
|
const meta: Meta = {
|
|
8
8
|
title: 'Chat',
|
|
@@ -2,7 +2,7 @@ import { ChatMessageType, IChatMessage } from '@rpg-engine/shared';
|
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { ChatDeprecated } from '../components/Chatdeprecated/ChatDeprecated';
|
|
5
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
5
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
6
6
|
|
|
7
7
|
const meta: Meta = {
|
|
8
8
|
title: 'ChatDeprecated',
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
RPGUIContainer,
|
|
10
10
|
RPGUIContainerTypes,
|
|
11
|
-
} from '
|
|
12
|
-
import { RPGUIRoot } from '
|
|
11
|
+
} from '../components/RPGUI/RPGUIContainer';
|
|
12
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
13
13
|
|
|
14
14
|
const meta: Meta = {
|
|
15
15
|
title: 'Check Input',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PeriodOfDay } from '@rpg-engine/shared';
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
4
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
5
5
|
import {
|
|
6
6
|
DayNightPeriod,
|
|
7
7
|
IPeriodOfDayDisplayProps,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
DraggableContainer,
|
|
5
5
|
IDraggableContainerProps,
|
|
6
6
|
} from '../../src/components/DraggableContainer';
|
|
7
|
-
import { RPGUIRoot } from '
|
|
7
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
10
|
title: 'Draggable Container',
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
EquipmentSet,
|
|
6
6
|
IEquipmentSetProps,
|
|
7
7
|
} from '../../src/components/Equipment/EquipmentSet';
|
|
8
|
-
import { RPGUIRoot } from '../../src/components/RPGUIRoot';
|
|
9
8
|
import { equipmentSetMock } from '../../src/mocks/equipmentSet.mocks';
|
|
9
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
10
10
|
import atlasJSON from '../mocks/atlas/items/items.json';
|
|
11
11
|
import atlasIMG from '../mocks/atlas/items/items.png';
|
|
12
12
|
import { IPosition } from '../types/eventTypes';
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
4
|
-
import aliceDefaultThumbnail from '../components/NPCDialog/img/npcDialog/npcThumbnails/alice.png';
|
|
5
|
-
import ImgBackground01 from '../components/NPCDialog/img/background01.png';
|
|
6
|
-
import ImgBackground02 from '../components/NPCDialog/img/background02.png';
|
|
7
|
-
import ImgBackground03 from '../components/NPCDialog/img/background03.png';
|
|
8
3
|
import {
|
|
9
4
|
HistoryDialog,
|
|
10
5
|
IHistoryDialogProps,
|
|
@@ -13,6 +8,11 @@ import {
|
|
|
13
8
|
ImgSide,
|
|
14
9
|
NPCMultiDialogType,
|
|
15
10
|
} from '../components/NPCDialog/NPCMultiDialog';
|
|
11
|
+
import ImgBackground01 from '../components/NPCDialog/img/background01.png';
|
|
12
|
+
import ImgBackground02 from '../components/NPCDialog/img/background02.png';
|
|
13
|
+
import ImgBackground03 from '../components/NPCDialog/img/background03.png';
|
|
14
|
+
import aliceDefaultThumbnail from '../components/NPCDialog/img/npcDialog/npcThumbnails/alice.png';
|
|
15
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
16
16
|
|
|
17
17
|
const meta: Meta = {
|
|
18
18
|
title: 'NPC History Dialog',
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ImageCarousel,
|
|
7
7
|
} from '../components/ImageCarousel/ImageCarousel';
|
|
8
8
|
import image from '../components/ImageCarousel/images/001.png';
|
|
9
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
9
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
10
10
|
|
|
11
11
|
const meta: Meta = {
|
|
12
12
|
title: 'Tutorial System/Image Carousel',
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
IItemContainerProps,
|
|
6
6
|
ItemContainer,
|
|
7
7
|
} from '../../src/components/Item/Inventory/ItemContainer';
|
|
8
|
-
import { RPGUIRoot } from '../../src/components/RPGUIRoot';
|
|
9
8
|
import { equipmentSetMock } from '../../src/mocks/equipmentSet.mocks';
|
|
10
9
|
import { itemContainerMock } from '../../src/mocks/itemContainer.mocks';
|
|
10
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
11
11
|
import { ScalableContainer } from '../components/shared/ScalableContainer';
|
|
12
12
|
import { UI_BREAKPOINT_SMALL_LAPTOP } from '../constants/uiBreakpoints';
|
|
13
13
|
import { useShortcuts } from '../hooks/useShortcuts';
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
IItemInfoDisplayProps,
|
|
5
5
|
ItemInfoDisplay,
|
|
6
6
|
} from '../components/Item/Cards/ItemInfoDisplay';
|
|
7
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
7
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
8
8
|
import atlasJSON from '../mocks/atlas/items/items.json';
|
|
9
9
|
import atlasIMG from '../mocks/atlas/items/items.png';
|
|
10
10
|
import { equipmentSetMock } from '../mocks/equipmentSet.mocks';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ITradeResponseItem } from '@rpg-engine/shared';
|
|
2
2
|
import { Meta } from '@storybook/react';
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
5
|
-
import { itemMock } from '../components/TradingMenu/items.mock';
|
|
4
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
6
5
|
import { TradingItemRow } from '../components/TradingMenu/TradingItemRow';
|
|
6
|
+
import { itemMock } from '../components/TradingMenu/items.mock';
|
|
7
7
|
import atlasJSON from '../mocks/atlas/items/items.json';
|
|
8
8
|
import atlasIMG from '../mocks/atlas/items/items.png';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ILeaderboardProps,
|
|
5
5
|
Leaderboard,
|
|
6
6
|
} from '../components/Leaderboard/Leaderboard';
|
|
7
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
7
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
8
8
|
import {
|
|
9
9
|
leaderboardClassRankingItems,
|
|
10
10
|
leaderboardLevelRankingItems,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IListMenuProps, ListMenu } from '../../src/components/ListMenu';
|
|
4
|
-
import { RPGUIRoot } from '
|
|
4
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
5
5
|
|
|
6
6
|
const meta: Meta = {
|
|
7
7
|
/* 👇 The title prop is optional.
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
MultitabType,
|
|
7
7
|
TabsContainer,
|
|
8
8
|
} from '../../src/components/Multitab/TabsContainer';
|
|
9
|
-
import { RPGUIRoot } from '
|
|
9
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
10
10
|
|
|
11
11
|
const meta: Meta = {
|
|
12
12
|
title: 'MultiTabs',
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
IQuestionDialog,
|
|
10
10
|
IQuestionDialogAnswer,
|
|
11
11
|
} from '../../src/components/NPCDialog/QuestionDialog/QuestionDialog';
|
|
12
|
-
import { RPGUIRoot } from '
|
|
12
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
13
13
|
|
|
14
14
|
const meta: Meta = {
|
|
15
15
|
title: 'NPC Dialog',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '../../src/components/RPGUIRoot';
|
|
4
|
-
import aliceDefaultThumbnail from '../components/NPCDialog/img/npcDialog/npcThumbnails/alice.png';
|
|
5
3
|
import {
|
|
6
|
-
ImgSide,
|
|
7
4
|
INPCMultiDialogProps,
|
|
5
|
+
ImgSide,
|
|
8
6
|
NPCMultiDialog,
|
|
9
7
|
NPCMultiDialogType,
|
|
10
8
|
} from '../components/NPCDialog/NPCMultiDialog';
|
|
9
|
+
import aliceDefaultThumbnail from '../components/NPCDialog/img/npcDialog/npcThumbnails/alice.png';
|
|
10
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
11
11
|
|
|
12
12
|
const meta: Meta = {
|
|
13
13
|
title: 'NPC MultiDialog',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IPartyCreateProps, PartyCreate } from '../components/PartySystem';
|
|
4
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
4
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
5
5
|
|
|
6
6
|
const meta: Meta = {
|
|
7
7
|
title: 'Party System/Party Create',
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
PartyDashboard,
|
|
6
6
|
} from '../components/PartySystem/PartyDashboard/PartyDashboard';
|
|
7
7
|
import { mockedPartyRows } from '../components/PartySystem/mockedConstantes/mockedValues';
|
|
8
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
9
9
|
|
|
10
10
|
const meta: Meta = {
|
|
11
11
|
title: 'Party System/Party Dashboard',
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
PartyInvite,
|
|
6
6
|
} from '../components/PartySystem/PartyInvite/PartyInvite';
|
|
7
7
|
import { mockedPlayersRows } from '../components/PartySystem/mockedConstantes/mockedValues';
|
|
8
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
9
9
|
|
|
10
10
|
const meta: Meta = {
|
|
11
11
|
title: 'Party System/Party Invite',
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
IPartyManagerProps,
|
|
6
6
|
PartyManager,
|
|
7
7
|
} from '../components/PartySystem/PartyManager/PartyManager';
|
|
8
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
9
9
|
|
|
10
10
|
const meta: Meta = {
|
|
11
11
|
title: 'Party System/Party Manager',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IBarProps, ProgressBar } from '../../src/components/ProgressBar';
|
|
4
|
-
import { RPGUIRoot } from '
|
|
4
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: 'Progress Bar',
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
IQuestInfoProps,
|
|
6
6
|
QuestInfo,
|
|
7
7
|
} from '../../src/components/QuestInfo/QuestInfo';
|
|
8
|
-
import { RPGUIRoot } from '
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
9
9
|
const meta: Meta = {
|
|
10
10
|
title: 'Quest Info',
|
|
11
11
|
component: QuestInfo,
|
|
@@ -2,7 +2,7 @@ import { QuestStatus, QuestType } from '@rpg-engine/shared';
|
|
|
2
2
|
import { Story } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { IQuestListProps, QuestList } from '../components/QuestList';
|
|
5
|
-
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
5
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Quest List',
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
IRPGUIContainerProps,
|
|
5
5
|
RPGUIContainer,
|
|
6
6
|
RPGUIContainerTypes,
|
|
7
|
-
} from '
|
|
8
|
-
import { RPGUIRoot } from '
|
|
7
|
+
} from '../components/RPGUI/RPGUIContainer';
|
|
8
|
+
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
9
9
|
|
|
10
10
|
const meta: Meta = {
|
|
11
11
|
title: 'RPGUI Container',
|