@rpg-engine/long-bow 0.7.29 → 0.7.31
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/ChatRevamp/ChatContent.d.ts +2 -0
- package/dist/components/ChatRevamp/types.d.ts +2 -0
- package/dist/long-bow.cjs.development.js +9 -1
- 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 +9 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/{CharacterStatus.stories.d.ts → Character/character/CharacterStatus.stories.d.ts} +1 -1
- package/dist/stories/{EquipmentSet.stories.d.ts → Character/equipment/EquipmentSet.stories.d.ts} +1 -1
- package/dist/stories/{SkillProgressBar.stories.d.ts → Character/skills/SkillProgressBar.stories.d.ts} +1 -1
- package/dist/stories/{SkillsContainer.stories.d.ts → Character/skills/SkillsContainer.stories.d.ts} +1 -1
- package/dist/stories/{ChatRevamp.stories.d.ts → Features/chat/ChatRevamp.stories.d.ts} +2 -1
- package/dist/stories/{CircullarController.stories.d.ts → Features/controller/CircullarController.stories.d.ts} +1 -1
- package/dist/stories/{Leaderboard.stories.d.ts → Features/leaderboard/Leaderboard.stories.d.ts} +1 -1
- package/dist/stories/{PartyCreate.stories.d.ts → Features/party/PartyCreate.stories.d.ts} +1 -1
- package/dist/stories/{PartyDashboard.stories.d.ts → Features/party/PartyDashboard.stories.d.ts} +1 -1
- package/dist/stories/{PartyInvite.stories.d.ts → Features/party/PartyInvite.stories.d.ts} +1 -1
- package/dist/stories/{PartyManager.stories.d.ts → Features/party/PartyManager.stories.d.ts} +1 -1
- package/dist/stories/{QuestInfo.stories.d.ts → Features/quest/QuestInfo.stories.d.ts} +1 -1
- package/dist/stories/{QuestList.stories.d.ts → Features/quest/QuestList.stories.d.ts} +1 -1
- package/dist/stories/{Shortcuts.stories.d.ts → Features/shortcuts/Shortcuts.stories.d.ts} +1 -1
- package/dist/stories/{SpellInfoDisplay.stories.d.ts → Features/spells/SpellInfoDisplay.stories.d.ts} +1 -1
- package/dist/stories/{Spellbook.stories.d.ts → Features/spells/Spellbook.stories.d.ts} +1 -1
- package/dist/stories/{TradingMenu.stories.d.ts → Features/trading/TradingMenu.stories.d.ts} +1 -1
- package/dist/stories/{DayNightPeriod.stories.d.ts → Features/weather/DayNightPeriod.stories.d.ts} +1 -1
- package/dist/stories/{TimeWidget.stories.d.ts → Features/weather/TimeWidget.stories.d.ts} +1 -1
- package/dist/stories/{ItemInfoDisplay.stories.d.ts → Item/ItemInfoDisplay.stories.d.ts} +1 -1
- package/dist/stories/{NPCDialog.stories.d.ts → NPC/dialog/NPCDialog.stories.d.ts} +1 -1
- package/dist/stories/{HistoryDialog.stories.d.ts → NPC/dialog/NPCHistoryDialog.stories.d.ts} +1 -1
- package/dist/stories/{NPCMultiDialog.stories.d.ts → NPC/dialog/NPCMultiDialog.stories.d.ts} +1 -1
- package/dist/stories/{RPGUIContainers.stories.d.ts → UI/RPGUI/RPGUIContainers.stories.d.ts} +1 -1
- package/dist/stories/{StaticBook.stories.d.ts → UI/books/StaticBook.stories.d.ts} +1 -1
- package/dist/stories/{Button.stories.d.ts → UI/buttonsAndInputs/Button.stories.d.ts} +1 -1
- package/dist/stories/{CheckButton.stories.d.ts → UI/buttonsAndInputs/CheckItem.stories.d.ts} +2 -2
- package/dist/stories/{RadioButton.stories.d.ts → UI/buttonsAndInputs/RadioButton.stories.d.ts} +1 -1
- package/dist/stories/{RadioInput.stories.d.ts → UI/buttonsAndInputs/RadioInput.stories.d.ts} +1 -1
- package/dist/stories/{DraggableContainer.stories.d.ts → UI/containers/DraggableContainer.stories.d.ts} +1 -1
- package/dist/stories/{ItemContainer.stories.d.ts → UI/containers/ItemContainer.stories.d.ts} +1 -1
- package/dist/stories/{Arrow.stories.d.ts → UI/dropdownsAndSelectors/Arrow.stories.d.ts} +1 -1
- package/dist/stories/{Dropdown.stories.d.ts → UI/dropdownsAndSelectors/Dropdown.stories.d.ts} +1 -1
- package/dist/stories/{DropdownSelectorContainer.stories.d.ts → UI/dropdownsAndSelectors/DropdownSelectorContainer.stories.d.ts} +1 -1
- package/dist/stories/{ItemQuantitySelector.stories.d.ts → UI/dropdownsAndSelectors/ItemQuantitySelector.stories.d.ts} +1 -1
- package/dist/stories/{PropertySelect.stories.d.ts → UI/dropdownsAndSelectors/PropertySelect.stories.d.ts} +1 -1
- package/dist/stories/{ImageCarousel.stories.d.ts → UI/images/ImageCarousel.stories.d.ts} +1 -1
- package/dist/stories/{SimpleImageCarousel.stories.d.ts → UI/images/SimpleImageCarousel.stories.d.ts} +1 -1
- package/dist/stories/{ListMenu.stories.d.ts → UI/lists/ListMenu.stories.d.ts} +1 -1
- package/dist/stories/{ScrollList.stories.d.ts → UI/lists/ScrollList.stories.d.ts} +1 -1
- package/dist/stories/{ConfirmModal.stories.d.ts → UI/modals/ConfirmModal.stories.d.ts} +1 -1
- package/dist/stories/{ShopModal.stories.d.ts → UI/modals/ShopModal.stories.d.ts} +1 -1
- package/dist/stories/{ProgressBar.stories.d.ts → UI/progress/ProgressBar.stories.d.ts} +1 -1
- package/dist/stories/{SimpleProgressBar.stories.d.ts → UI/progress/SimpleProgressBar.stories.d.ts} +1 -1
- package/dist/stories/{RangeSlider.stories.d.ts → UI/sliders/RangeSlider.stories.d.ts} +1 -1
- package/dist/stories/{Stepper.stories.d.ts → UI/steppers/Stepper.stories.d.ts} +1 -1
- package/dist/stories/{TutorialStepper.stories.d.ts → UI/steppers/TutorialStepper.stories.d.ts} +1 -1
- package/dist/stories/{InternalTabs.stories.d.ts → UI/tabs/InternalTabs.stories.d.ts} +1 -1
- package/dist/stories/{Multitab.stories.d.ts → UI/tabs/Multitab.stories.d.ts} +1 -1
- package/dist/stories/{Text.stories.d.ts → UI/text/Text.stories.d.ts} +2 -2
- package/package.json +1 -1
- package/src/components/ChatRevamp/ChatContent.tsx +6 -0
- package/src/components/ChatRevamp/ChatRevamp.tsx +4 -0
- package/src/components/ChatRevamp/types.ts +2 -0
- package/src/stories/{CharacterSelection.stories.tsx → Character/character/CharacterSelection.stories.tsx} +6 -6
- package/src/stories/{CharacterStatus.stories.tsx → Character/character/CharacterStatus.stories.tsx} +3 -3
- package/src/stories/{EquipmentSet.stories.tsx → Character/equipment/EquipmentSet.stories.tsx} +8 -7
- package/src/stories/{SkillProgressBar.stories.tsx → Character/skills/SkillProgressBar.stories.tsx} +5 -5
- package/src/stories/{SkillsContainer.stories.tsx → Character/skills/SkillsContainer.stories.tsx} +6 -6
- package/src/stories/{Chat.stories.tsx → Features/chat/Chat.stories.tsx} +3 -3
- package/src/stories/{ChatDeprecated.stories.tsx → Features/chat/ChatDeprecated.stories.tsx} +3 -3
- package/src/stories/{ChatRevamp.stories.tsx → Features/chat/ChatRevamp.stories.tsx} +33 -4
- package/src/stories/{CircullarController.stories.tsx → Features/controller/CircullarController.stories.tsx} +8 -7
- package/src/stories/{CraftBook.stories.tsx → Features/craftbook/CraftBook.stories.tsx} +7 -7
- package/src/stories/{FriendList.stories.tsx → Features/friend/FriendList.stories.tsx} +3 -3
- package/src/stories/{Leaderboard.stories.tsx → Features/leaderboard/Leaderboard.stories.tsx} +4 -4
- package/src/stories/{PartyCreate.stories.tsx → Features/party/PartyCreate.stories.tsx} +6 -3
- package/src/stories/{PartyDashboard.stories.tsx → Features/party/PartyDashboard.stories.tsx} +4 -4
- package/src/stories/{PartyInvite.stories.tsx → Features/party/PartyInvite.stories.tsx} +4 -4
- package/src/stories/{PartyManager.stories.tsx → Features/party/PartyManager.stories.tsx} +4 -4
- package/src/stories/{QuestInfo.stories.tsx → Features/quest/QuestInfo.stories.tsx} +3 -3
- package/src/stories/{QuestList.stories.tsx → Features/quest/QuestList.stories.tsx} +6 -3
- package/src/stories/{Shortcuts.stories.tsx → Features/shortcuts/Shortcuts.stories.tsx} +10 -7
- package/src/stories/{SpellInfoDisplay.stories.tsx → Features/spells/SpellInfoDisplay.stories.tsx} +4 -4
- package/src/stories/{Spellbook.stories.tsx → Features/spells/Spellbook.stories.tsx} +10 -7
- package/src/stories/{ItemTradingComponent.stories.tsx → Features/trading/ItemTradingComponent.stories.tsx} +6 -6
- package/src/stories/{Marketplace.stories.tsx → Features/trading/Marketplace.stories.tsx} +7 -7
- package/src/stories/{MarketplaceRows.stories.tsx → Features/trading/MarketplaceRows.stories.tsx} +6 -6
- package/src/stories/{TradingMenu.stories.tsx → Features/trading/TradingMenu.stories.tsx} +7 -7
- package/src/stories/{DayNightPeriod.stories.tsx → Features/weather/DayNightPeriod.stories.tsx} +3 -3
- package/src/stories/{TimeWidget.stories.tsx → Features/weather/TimeWidget.stories.tsx} +3 -3
- package/src/stories/{ItemInfoDisplay.stories.tsx → Item/ItemInfoDisplay.stories.tsx} +7 -7
- package/src/stories/{NPCDialog.stories.tsx → NPC/dialog/NPCDialog.stories.tsx} +4 -4
- package/src/stories/{HistoryDialog.stories.tsx → NPC/dialog/NPCHistoryDialog.stories.tsx} +8 -8
- package/src/stories/{NPCMultiDialog.stories.tsx → NPC/dialog/NPCMultiDialog.stories.tsx} +4 -4
- package/src/stories/{RPGUIContainers.stories.tsx → UI/RPGUI/RPGUIContainers.stories.tsx} +3 -3
- package/src/stories/{StaticBook.stories.tsx → UI/books/StaticBook.stories.tsx} +3 -3
- package/src/stories/{Button.stories.tsx → UI/buttonsAndInputs/Button.stories.tsx} +3 -3
- package/src/stories/{CheckButton.stories.tsx → UI/buttonsAndInputs/CheckItem.stories.tsx} +5 -5
- package/src/stories/{RadioButton.stories.tsx → UI/buttonsAndInputs/RadioButton.stories.tsx} +4 -4
- package/src/stories/{RadioInput.stories.tsx → UI/buttonsAndInputs/RadioInput.stories.tsx} +7 -3
- package/src/stories/{DraggableContainer.stories.tsx → UI/containers/DraggableContainer.stories.tsx} +3 -3
- package/src/stories/{ItemContainer.stories.tsx → UI/containers/ItemContainer.stories.tsx} +10 -10
- package/src/stories/{Arrow.stories.tsx → UI/dropdownsAndSelectors/Arrow.stories.tsx} +5 -3
- package/src/stories/{Dropdown.stories.tsx → UI/dropdownsAndSelectors/Dropdown.stories.tsx} +3 -3
- package/src/stories/{DropdownSelectorContainer.stories.tsx → UI/dropdownsAndSelectors/DropdownSelectorContainer.stories.tsx} +3 -3
- package/src/stories/{ItemQuantitySelector.stories.tsx → UI/dropdownsAndSelectors/ItemQuantitySelector.stories.tsx} +3 -3
- package/src/stories/{ItemSelector.stories.tsx → UI/dropdownsAndSelectors/ItemSelector.stories.tsx} +5 -5
- package/src/stories/{PropertySelect.stories.tsx → UI/dropdownsAndSelectors/PropertySelect.stories.tsx} +3 -3
- package/src/stories/{ImageCarousel.stories.tsx → UI/images/ImageCarousel.stories.tsx} +4 -4
- package/src/stories/{SimpleImageCarousel.stories.tsx → UI/images/SimpleImageCarousel.stories.tsx} +5 -5
- package/src/stories/{ListMenu.stories.tsx → UI/lists/ListMenu.stories.tsx} +3 -3
- package/src/stories/{ScrollList.stories.tsx → UI/lists/ScrollList.stories.tsx} +3 -3
- package/src/stories/UI/modals/ConfirmModal.stories.tsx +28 -0
- package/src/stories/UI/modals/ShopModal.stories.tsx +27 -0
- package/src/stories/{ProgressBar.stories.tsx → UI/progress/ProgressBar.stories.tsx} +3 -3
- package/src/stories/{SimpleProgressBar.stories.tsx → UI/progress/SimpleProgressBar.stories.tsx} +3 -3
- package/src/stories/{RangeSlider.stories.tsx → UI/sliders/RangeSlider.stories.tsx} +3 -3
- package/src/stories/{Stepper.stories.tsx → UI/steppers/Stepper.stories.tsx} +4 -4
- package/src/stories/{TutorialStepper.stories.tsx → UI/steppers/TutorialStepper.stories.tsx} +6 -6
- package/src/stories/{InternalTabs.stories.tsx → UI/tabs/InternalTabs.stories.tsx} +3 -3
- package/src/stories/{Multitab.stories.tsx → UI/tabs/Multitab.stories.tsx} +4 -4
- package/src/stories/{Text.stories.tsx → UI/text/Text.stories.tsx} +4 -4
- package/src/stories/ConfirmModal.stories.tsx +0 -25
- package/src/stories/ShopModal.stories.tsx +0 -24
- /package/dist/stories/{CharacterSelection.stories.d.ts → Character/character/CharacterSelection.stories.d.ts} +0 -0
- /package/dist/stories/{Chat.stories.d.ts → Features/chat/Chat.stories.d.ts} +0 -0
- /package/dist/stories/{ChatDeprecated.stories.d.ts → Features/chat/ChatDeprecated.stories.d.ts} +0 -0
- /package/dist/stories/{CraftBook.stories.d.ts → Features/craftbook/CraftBook.stories.d.ts} +0 -0
- /package/dist/stories/{FriendList.stories.d.ts → Features/friend/FriendList.stories.d.ts} +0 -0
- /package/dist/stories/{ItemTradingComponent.stories.d.ts → Features/trading/ItemTradingComponent.stories.d.ts} +0 -0
- /package/dist/stories/{Marketplace.stories.d.ts → Features/trading/Marketplace.stories.d.ts} +0 -0
- /package/dist/stories/{MarketplaceRows.stories.d.ts → Features/trading/MarketplaceRows.stories.d.ts} +0 -0
- /package/dist/stories/{ItemSelector.stories.d.ts → UI/dropdownsAndSelectors/ItemSelector.stories.d.ts} +0 -0
|
@@ -4,11 +4,11 @@ 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
|
-
title: 'RPGUI Container',
|
|
11
|
+
title: 'UI/RPGUI/RPGUI Container',
|
|
12
12
|
component: RPGUIContainer,
|
|
13
13
|
argTypes: {
|
|
14
14
|
type: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
4
|
import {
|
|
5
5
|
IStaticBookProps,
|
|
6
6
|
StaticBook,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../components/StaticBook/StaticBook';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
|
-
title: 'Static Book',
|
|
10
|
+
title: 'UI/Books/Static Book',
|
|
11
11
|
component: StaticBook,
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Button, ButtonTypes, IButtonProps } from '
|
|
4
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { Button, ButtonTypes, IButtonProps } from '../../../components/Button';
|
|
4
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
5
5
|
|
|
6
6
|
const meta: Meta = {
|
|
7
|
-
title: 'Button',
|
|
7
|
+
title: 'UI/Buttons & Inputs/Button',
|
|
8
8
|
component: Button,
|
|
9
9
|
argTypes: {
|
|
10
10
|
children: {},
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
CheckButton,
|
|
5
5
|
ICheckItems,
|
|
6
6
|
ICheckProps,
|
|
7
|
-
} from '
|
|
8
|
-
import { CheckItem, ICheckItemProps } from '
|
|
7
|
+
} from '../../../components/CheckButton';
|
|
8
|
+
import { CheckItem, ICheckItemProps } from '../../../components/CheckItem';
|
|
9
9
|
import {
|
|
10
10
|
RPGUIContainer,
|
|
11
11
|
RPGUIContainerTypes,
|
|
12
|
-
} from '
|
|
13
|
-
import { RPGUIRoot } from '
|
|
12
|
+
} from '../../../components/RPGUI/RPGUIContainer';
|
|
13
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
14
14
|
|
|
15
15
|
const meta: Meta = {
|
|
16
|
-
title: 'Check Input',
|
|
16
|
+
title: 'UI/Buttons & Inputs/Check Input',
|
|
17
17
|
component: CheckButton,
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
IRadioItems,
|
|
5
5
|
IRadioProps,
|
|
6
6
|
InputRadio,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../components/RadioButton';
|
|
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
|
-
title: 'Radio Input',
|
|
15
|
+
title: 'UI/Buttons & Inputs/Radio Input',
|
|
16
16
|
component: InputRadio,
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
4
|
+
import {
|
|
5
|
+
IRadioInput,
|
|
6
|
+
RadioInput,
|
|
7
|
+
} from '../../../components/RadioInput/RadioInput';
|
|
8
|
+
import { Itools } from '../../../components/RadioInput/instruments';
|
|
6
9
|
|
|
7
10
|
const meta: Meta = {
|
|
11
|
+
title: 'UI/Buttons & Inputs/Radio Input',
|
|
8
12
|
component: RadioInput,
|
|
9
13
|
};
|
|
10
14
|
|
package/src/stories/{DraggableContainer.stories.tsx → UI/containers/DraggableContainer.stories.tsx}
RENAMED
|
@@ -3,11 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
DraggableContainer,
|
|
5
5
|
IDraggableContainerProps,
|
|
6
|
-
} from '
|
|
7
|
-
import { RPGUIRoot } from '
|
|
6
|
+
} from '../../../components/DraggableContainer';
|
|
7
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
|
-
title: 'Draggable Container',
|
|
10
|
+
title: 'UI/Containers/Draggable Container',
|
|
11
11
|
component: DraggableContainer,
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -4,18 +4,18 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import {
|
|
5
5
|
IItemContainerProps,
|
|
6
6
|
ItemContainer,
|
|
7
|
-
} from '
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
7
|
+
} from '../../../components/Item/Inventory/ItemContainer';
|
|
8
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
9
|
+
import { ScalableContainer } from '../../../components/shared/ScalableContainer';
|
|
10
|
+
import { UI_BREAKPOINT_SMALL_LAPTOP } from '../../../constants/uiBreakpoints';
|
|
11
|
+
import { useShortcuts } from '../../../hooks/useShortcuts';
|
|
12
|
+
import atlasJSON from '../../../mocks/atlas/items/items.json';
|
|
13
|
+
import atlasIMG from '../../../mocks/atlas/items/items.png';
|
|
14
|
+
import { equipmentSetMock } from '../../../mocks/equipmentSet.mocks';
|
|
15
|
+
import { itemContainerMock } from '../../../mocks/itemContainer.mocks';
|
|
16
16
|
|
|
17
17
|
const meta: Meta = {
|
|
18
|
-
title: 'Item Container',
|
|
18
|
+
title: 'UI/Containers/Item Container',
|
|
19
19
|
component: ItemContainer,
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
4
|
-
import SelectArrow, {
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
|
+
import SelectArrow, {
|
|
5
|
+
ArrowBarProps,
|
|
6
|
+
} from '../../../components/Arrow/SelectArrow';
|
|
5
7
|
|
|
6
8
|
const meta: Meta = {
|
|
7
|
-
title: 'Arrow',
|
|
9
|
+
title: 'UI/Dropdowns & Selectors/Arrow',
|
|
8
10
|
component: SelectArrow,
|
|
9
11
|
};
|
|
10
12
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { RPGUIRoot } from '
|
|
4
|
+
import { RPGUIRoot } from '../../..';
|
|
5
5
|
import {
|
|
6
6
|
Dropdown,
|
|
7
7
|
IDropdownProps,
|
|
8
8
|
IOptionsProps,
|
|
9
|
-
} from '
|
|
9
|
+
} from '../../../components/Dropdown';
|
|
10
10
|
|
|
11
11
|
const meta: Meta = {
|
|
12
|
-
title: 'Dropdown',
|
|
12
|
+
title: 'UI/Dropdowns & Selectors/Dropdown',
|
|
13
13
|
component: Dropdown,
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
4
|
import {
|
|
5
5
|
DropdownSelectorContainer,
|
|
6
6
|
IDropdownSelectorContainer,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../components/DropdownSelectorContainer';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
|
-
title: 'DropdownSelectorContainer',
|
|
10
|
+
title: 'UI/Dropdowns & Selectors/DropdownSelectorContainer',
|
|
11
11
|
component: DropdownSelectorContainer,
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
4
|
import {
|
|
5
5
|
IItemQuantitySelectorProps,
|
|
6
6
|
ItemQuantitySelector,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../components/Item/Inventory/ItemQuantitySelector';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
|
-
title: 'Item Quantity Selector',
|
|
10
|
+
title: 'UI/Dropdowns & Selectors/Item Quantity Selector',
|
|
11
11
|
component: ItemQuantitySelector,
|
|
12
12
|
};
|
|
13
13
|
|
package/src/stories/{ItemSelector.stories.tsx → UI/dropdownsAndSelectors/ItemSelector.stories.tsx}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
4
|
import {
|
|
5
5
|
IOptionsItemSelectorProps,
|
|
6
6
|
ItemSelector,
|
|
7
|
-
} from '
|
|
8
|
-
import atlasJSON from '
|
|
9
|
-
import atlasIMG from '
|
|
7
|
+
} from '../../../components/itemSelector/ItemSelector';
|
|
8
|
+
import atlasJSON from '../../../mocks/atlas/items/items.json';
|
|
9
|
+
import atlasIMG from '../../../mocks/atlas/items/items.png';
|
|
10
10
|
|
|
11
11
|
const meta: Meta = {
|
|
12
|
-
title: 'Item Selector',
|
|
12
|
+
title: 'UI/Dropdowns & Selectors/Item Selector',
|
|
13
13
|
component: ItemSelector,
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
4
|
import PropertySelect, {
|
|
5
5
|
IPropertySelectProps,
|
|
6
|
-
} from '
|
|
6
|
+
} from '../../../components/PropertySelect/PropertySelect';
|
|
7
7
|
|
|
8
8
|
const meta: Meta = {
|
|
9
|
-
title: 'Property Select',
|
|
9
|
+
title: 'UI/Dropdowns & Selectors/Property Select',
|
|
10
10
|
component: PropertySelect,
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
IImageCarouselProps,
|
|
5
5
|
ITextImageProps,
|
|
6
6
|
ImageCarousel,
|
|
7
|
-
} from '
|
|
8
|
-
import image from '
|
|
9
|
-
import { RPGUIRoot } from '
|
|
7
|
+
} from '../../../components/ImageCarousel/ImageCarousel';
|
|
8
|
+
import image from '../../../components/ImageCarousel/images/001.png';
|
|
9
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
10
10
|
|
|
11
11
|
const meta: Meta = {
|
|
12
|
-
title: 'Images/Image Carousel',
|
|
12
|
+
title: 'UI/Images/Image Carousel',
|
|
13
13
|
component: ImageCarousel,
|
|
14
14
|
};
|
|
15
15
|
|
package/src/stories/{SimpleImageCarousel.stories.tsx → UI/images/SimpleImageCarousel.stories.tsx}
RENAMED
|
@@ -4,15 +4,15 @@ import React from 'react';
|
|
|
4
4
|
import {
|
|
5
5
|
ISimpleImageCarousel,
|
|
6
6
|
SimpleImageCarousel,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../components/ImageCarousel/SimpleImageCarousel';
|
|
8
8
|
|
|
9
9
|
import styled from 'styled-components';
|
|
10
|
-
import image1 from '
|
|
11
|
-
import image2 from '
|
|
12
|
-
import { RPGUIRoot } from '
|
|
10
|
+
import image1 from '../../../assets/images/backpack.png';
|
|
11
|
+
import image2 from '../../../assets/images/depot.png';
|
|
12
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
13
13
|
|
|
14
14
|
const meta: Meta = {
|
|
15
|
-
title: 'Images/Simple Image Carousel',
|
|
15
|
+
title: 'UI/Images/Simple Image Carousel',
|
|
16
16
|
component: SimpleImageCarousel,
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IListMenuProps, ListMenu } from '
|
|
4
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { IListMenuProps, ListMenu } from '../../../components/ListMenu';
|
|
4
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
5
5
|
|
|
6
6
|
const meta: Meta = {
|
|
7
7
|
/* 👇 The title prop is optional.
|
|
8
8
|
* See https://storybook.js.org/docsreact/configure/overview#configure-story-loading
|
|
9
9
|
* to learn how to generate automatic titles
|
|
10
10
|
*/
|
|
11
|
-
title: 'List Menu',
|
|
11
|
+
title: 'UI/Lists/List Menu',
|
|
12
12
|
component: ListMenu,
|
|
13
13
|
argTypes: {},
|
|
14
14
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
4
|
+
import { IListMenuProps, ListMenu } from '../../../components/ScrollList';
|
|
5
5
|
|
|
6
6
|
const meta: Meta = {
|
|
7
7
|
/* 👇 The title prop is optional.
|
|
8
8
|
* See https://storybook.js.org/docsreact/configure/overview#configure-story-loading
|
|
9
9
|
* to learn how to generate automatic titles
|
|
10
10
|
*/
|
|
11
|
-
title: 'Scroll List',
|
|
11
|
+
title: 'UI/Lists/Scroll List',
|
|
12
12
|
component: ListMenu,
|
|
13
13
|
argTypes: {},
|
|
14
14
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
ConfirmModal,
|
|
5
|
+
IConfirmModalProps,
|
|
6
|
+
} from '../../../components/ConfirmModal';
|
|
7
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
8
|
+
|
|
9
|
+
const meta: Meta = {
|
|
10
|
+
title: 'UI/Modals/Confirm Modal',
|
|
11
|
+
component: ConfirmModal,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
const Template: Story<IConfirmModalProps> = args => (
|
|
17
|
+
<RPGUIRoot>
|
|
18
|
+
<ConfirmModal {...args} />
|
|
19
|
+
</RPGUIRoot>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export const Default = Template.bind({});
|
|
23
|
+
|
|
24
|
+
Default.args = {
|
|
25
|
+
onConfirm: () => console.log('onConfirm'),
|
|
26
|
+
onClose: () => console.log('onClose'),
|
|
27
|
+
message: 'Do you want to proceed ?',
|
|
28
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
4
|
+
import {
|
|
5
|
+
IShopModalProps,
|
|
6
|
+
ShopModal,
|
|
7
|
+
} from '../../../components/ShopModal/ShopModal';
|
|
8
|
+
|
|
9
|
+
const meta: Meta = {
|
|
10
|
+
title: 'UI/Modals/Shop Modal',
|
|
11
|
+
component: ShopModal,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
const Template: Story<IShopModalProps> = args => (
|
|
17
|
+
<RPGUIRoot>
|
|
18
|
+
<ShopModal {...args} />
|
|
19
|
+
</RPGUIRoot>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export const Default = Template.bind({});
|
|
23
|
+
|
|
24
|
+
Default.args = {
|
|
25
|
+
onClose: () => console.log('onClose'),
|
|
26
|
+
url: 'https://www.patreon.com/DefinyaMMORPG/shop',
|
|
27
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IBarProps, ProgressBar } from '
|
|
4
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { IBarProps, ProgressBar } from '../../../components/ProgressBar';
|
|
4
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title: 'Progress Bar',
|
|
7
|
+
title: 'UI/Progress/Progress Bar',
|
|
8
8
|
component: ProgressBar,
|
|
9
9
|
};
|
|
10
10
|
|
package/src/stories/{SimpleProgressBar.stories.tsx → UI/progress/SimpleProgressBar.stories.tsx}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
3
4
|
import {
|
|
4
5
|
ISimpleProgressBarProps,
|
|
5
6
|
SimpleProgressBar,
|
|
6
|
-
} from '
|
|
7
|
-
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
7
|
+
} from '../../../components/SimpleProgressBar';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
|
-
title: 'Simple Progress Bar',
|
|
10
|
+
title: 'UI/Progress/Simple Progress Bar',
|
|
11
11
|
component: SimpleProgressBar,
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
IRangeSliderProps,
|
|
5
5
|
RangeSlider,
|
|
6
6
|
RangeSliderType,
|
|
7
|
-
} from '
|
|
8
|
-
import { RPGUIRoot } from '
|
|
7
|
+
} from '../../../components/RangeSlider';
|
|
8
|
+
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
9
9
|
|
|
10
10
|
const meta: Meta = {
|
|
11
|
-
title: 'Slider',
|
|
11
|
+
title: 'UI/Sliders/Slider',
|
|
12
12
|
component: RangeSlider,
|
|
13
13
|
argTypes: {
|
|
14
14
|
type: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
4
|
-
import { ArrowBarProps } from '
|
|
5
|
-
import { Stepper } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
|
+
import { ArrowBarProps } from '../../../components/Arrow/SelectArrow';
|
|
5
|
+
import { Stepper } from '../../../components/Stepper';
|
|
6
6
|
|
|
7
7
|
const meta: Meta = {
|
|
8
|
-
title: 'Stepper',
|
|
8
|
+
title: 'UI/Steppers/Stepper',
|
|
9
9
|
component: Stepper,
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
4
|
import {
|
|
5
5
|
ITutorialLesson,
|
|
6
6
|
ITutorialStepperProps,
|
|
7
7
|
TutorialStepper,
|
|
8
|
-
} from '
|
|
8
|
+
} from '../../../components/Tutorial/TutorialStepper';
|
|
9
9
|
|
|
10
|
-
import tutorialImg3 from '
|
|
11
|
-
import tutorialImg1 from '
|
|
12
|
-
import tutorialImg2 from '
|
|
10
|
+
import tutorialImg3 from '../../../assets/images/farming-plant-seed.png';
|
|
11
|
+
import tutorialImg1 from '../../../assets/images/sewer.png';
|
|
12
|
+
import tutorialImg2 from '../../../assets/images/shortcuts.png';
|
|
13
13
|
|
|
14
14
|
const meta: Meta = {
|
|
15
|
-
title: '
|
|
15
|
+
title: 'UI/Steppers/TutorialStepper',
|
|
16
16
|
component: TutorialStepper,
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../..';
|
|
4
4
|
import {
|
|
5
5
|
InternalTabs,
|
|
6
6
|
TableTabProps,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../components/InternalTabs/InternalTabs';
|
|
8
8
|
|
|
9
9
|
const meta: Meta = {
|
|
10
|
-
title: 'InternalTabs',
|
|
10
|
+
title: 'UI/Tabs/InternalTabs',
|
|
11
11
|
component: InternalTabs,
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TabBody } from '../../src/components/Multitab/TabBody';
|
|
4
3
|
import {
|
|
5
4
|
ITabsContainer,
|
|
6
5
|
MultitabType,
|
|
6
|
+
RPGUIRoot,
|
|
7
|
+
TabBody,
|
|
7
8
|
TabsContainer,
|
|
8
|
-
} from '
|
|
9
|
-
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
9
|
+
} from '../../..';
|
|
10
10
|
|
|
11
11
|
const meta: Meta = {
|
|
12
|
-
title: 'MultiTabs',
|
|
12
|
+
title: 'UI/Tabs/MultiTabs',
|
|
13
13
|
component: TabsContainer,
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '
|
|
3
|
+
import { RPGUIRoot } from '../../../../src';
|
|
4
4
|
import {
|
|
5
5
|
IInputProps,
|
|
6
6
|
Input as InputComponent,
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../../src/components/Input';
|
|
8
8
|
import {
|
|
9
9
|
ITextArea,
|
|
10
10
|
TextArea as TextAreaComponent,
|
|
11
|
-
} from '
|
|
11
|
+
} from '../../../../src/components/TextArea';
|
|
12
12
|
|
|
13
13
|
const meta: Meta = {
|
|
14
|
-
title: 'Text',
|
|
14
|
+
title: 'UI/Typography/Text',
|
|
15
15
|
component: InputComponent,
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ConfirmModal, IConfirmModalProps } from '../components/ConfirmModal';
|
|
4
|
-
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
5
|
-
|
|
6
|
-
const meta: Meta = {
|
|
7
|
-
title: 'Modals/Confirm Modal',
|
|
8
|
-
component: ConfirmModal,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default meta;
|
|
12
|
-
|
|
13
|
-
const Template: Story<IConfirmModalProps> = args => (
|
|
14
|
-
<RPGUIRoot>
|
|
15
|
-
<ConfirmModal {...args} />
|
|
16
|
-
</RPGUIRoot>
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
export const Default = Template.bind({});
|
|
20
|
-
|
|
21
|
-
Default.args = {
|
|
22
|
-
onConfirm: () => console.log("onConfirm"),
|
|
23
|
-
onClose: () => console.log("onClose"),
|
|
24
|
-
message: "Do you want to proceed ?"
|
|
25
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
|
|
4
|
-
import { IShopModalProps, ShopModal } from '../components/ShopModal/ShopModal';
|
|
5
|
-
|
|
6
|
-
const meta: Meta = {
|
|
7
|
-
title: 'Modals/Shop Modal',
|
|
8
|
-
component: ShopModal,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default meta;
|
|
12
|
-
|
|
13
|
-
const Template: Story<IShopModalProps> = args => (
|
|
14
|
-
<RPGUIRoot>
|
|
15
|
-
<ShopModal {...args} />
|
|
16
|
-
</RPGUIRoot>
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
export const Default = Template.bind({});
|
|
20
|
-
|
|
21
|
-
Default.args = {
|
|
22
|
-
onClose: () => console.log("onClose"),
|
|
23
|
-
url: "https://www.patreon.com/DefinyaMMORPG/shop"
|
|
24
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/dist/stories/{ChatDeprecated.stories.d.ts → Features/chat/ChatDeprecated.stories.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/stories/{Marketplace.stories.d.ts → Features/trading/Marketplace.stories.d.ts}
RENAMED
|
File without changes
|
/package/dist/stories/{MarketplaceRows.stories.d.ts → Features/trading/MarketplaceRows.stories.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|