@rpg-engine/long-bow 0.7.28 → 0.7.30

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.
Files changed (132) hide show
  1. package/dist/components/{TableTab/TableTab.d.ts → InternalTabs/InternalTabs.d.ts} +1 -1
  2. package/dist/index.d.ts +1 -1
  3. package/dist/long-bow.cjs.development.js +66 -66
  4. package/dist/long-bow.cjs.development.js.map +1 -1
  5. package/dist/long-bow.cjs.production.min.js +1 -1
  6. package/dist/long-bow.cjs.production.min.js.map +1 -1
  7. package/dist/long-bow.esm.js +66 -66
  8. package/dist/long-bow.esm.js.map +1 -1
  9. package/dist/stories/{CharacterStatus.stories.d.ts → Character/character/CharacterStatus.stories.d.ts} +1 -1
  10. package/dist/stories/{EquipmentSet.stories.d.ts → Character/equipment/EquipmentSet.stories.d.ts} +1 -1
  11. package/dist/stories/{SkillProgressBar.stories.d.ts → Character/skills/SkillProgressBar.stories.d.ts} +1 -1
  12. package/dist/stories/{SkillsContainer.stories.d.ts → Character/skills/SkillsContainer.stories.d.ts} +1 -1
  13. package/dist/stories/{ChatRevamp.stories.d.ts → Features/chat/ChatRevamp.stories.d.ts} +1 -1
  14. package/dist/stories/{CircullarController.stories.d.ts → Features/controller/CircullarController.stories.d.ts} +1 -1
  15. package/dist/stories/{Leaderboard.stories.d.ts → Features/leaderboard/Leaderboard.stories.d.ts} +1 -1
  16. package/dist/stories/{PartyCreate.stories.d.ts → Features/party/PartyCreate.stories.d.ts} +1 -1
  17. package/dist/stories/{PartyDashboard.stories.d.ts → Features/party/PartyDashboard.stories.d.ts} +1 -1
  18. package/dist/stories/{PartyInvite.stories.d.ts → Features/party/PartyInvite.stories.d.ts} +1 -1
  19. package/dist/stories/{PartyManager.stories.d.ts → Features/party/PartyManager.stories.d.ts} +1 -1
  20. package/dist/stories/{QuestInfo.stories.d.ts → Features/quest/QuestInfo.stories.d.ts} +1 -1
  21. package/dist/stories/{QuestList.stories.d.ts → Features/quest/QuestList.stories.d.ts} +1 -1
  22. package/dist/stories/{Shortcuts.stories.d.ts → Features/shortcuts/Shortcuts.stories.d.ts} +1 -1
  23. package/dist/stories/{SpellInfoDisplay.stories.d.ts → Features/spells/SpellInfoDisplay.stories.d.ts} +1 -1
  24. package/dist/stories/{Spellbook.stories.d.ts → Features/spells/Spellbook.stories.d.ts} +1 -1
  25. package/dist/stories/{TradingMenu.stories.d.ts → Features/trading/TradingMenu.stories.d.ts} +1 -1
  26. package/dist/stories/{DayNightPeriod.stories.d.ts → Features/weather/DayNightPeriod.stories.d.ts} +1 -1
  27. package/dist/stories/{TimeWidget.stories.d.ts → Features/weather/TimeWidget.stories.d.ts} +1 -1
  28. package/dist/stories/{ItemInfoDisplay.stories.d.ts → Item/ItemInfoDisplay.stories.d.ts} +1 -1
  29. package/dist/stories/{NPCDialog.stories.d.ts → NPC/dialog/NPCDialog.stories.d.ts} +1 -1
  30. package/dist/stories/{HistoryDialog.stories.d.ts → NPC/dialog/NPCHistoryDialog.stories.d.ts} +1 -1
  31. package/dist/stories/{NPCMultiDialog.stories.d.ts → NPC/dialog/NPCMultiDialog.stories.d.ts} +1 -1
  32. package/dist/stories/{RPGUIContainers.stories.d.ts → UI/RPGUI/RPGUIContainers.stories.d.ts} +1 -1
  33. package/dist/stories/{StaticBook.stories.d.ts → UI/books/StaticBook.stories.d.ts} +1 -1
  34. package/dist/stories/{Button.stories.d.ts → UI/buttonsAndInputs/Button.stories.d.ts} +1 -1
  35. package/dist/stories/{CheckButton.stories.d.ts → UI/buttonsAndInputs/CheckItem.stories.d.ts} +2 -2
  36. package/dist/stories/{RadioButton.stories.d.ts → UI/buttonsAndInputs/RadioButton.stories.d.ts} +1 -1
  37. package/dist/stories/{RadioInput.stories.d.ts → UI/buttonsAndInputs/RadioInput.stories.d.ts} +1 -1
  38. package/dist/stories/{DraggableContainer.stories.d.ts → UI/containers/DraggableContainer.stories.d.ts} +1 -1
  39. package/dist/stories/{ItemContainer.stories.d.ts → UI/containers/ItemContainer.stories.d.ts} +1 -1
  40. package/dist/stories/{Arrow.stories.d.ts → UI/dropdownsAndSelectors/Arrow.stories.d.ts} +1 -1
  41. package/dist/stories/{Dropdown.stories.d.ts → UI/dropdownsAndSelectors/Dropdown.stories.d.ts} +1 -1
  42. package/dist/stories/{DropdownSelectorContainer.stories.d.ts → UI/dropdownsAndSelectors/DropdownSelectorContainer.stories.d.ts} +1 -1
  43. package/dist/stories/{ItemQuantitySelector.stories.d.ts → UI/dropdownsAndSelectors/ItemQuantitySelector.stories.d.ts} +1 -1
  44. package/dist/stories/{PropertySelect.stories.d.ts → UI/dropdownsAndSelectors/PropertySelect.stories.d.ts} +1 -1
  45. package/dist/stories/{ImageCarousel.stories.d.ts → UI/images/ImageCarousel.stories.d.ts} +1 -1
  46. package/dist/stories/{SimpleImageCarousel.stories.d.ts → UI/images/SimpleImageCarousel.stories.d.ts} +1 -1
  47. package/dist/stories/{ListMenu.stories.d.ts → UI/lists/ListMenu.stories.d.ts} +1 -1
  48. package/dist/stories/{ScrollList.stories.d.ts → UI/lists/ScrollList.stories.d.ts} +1 -1
  49. package/dist/stories/{ConfirmModal.stories.d.ts → UI/modals/ConfirmModal.stories.d.ts} +1 -1
  50. package/dist/stories/{ShopModal.stories.d.ts → UI/modals/ShopModal.stories.d.ts} +1 -1
  51. package/dist/stories/{ProgressBar.stories.d.ts → UI/progress/ProgressBar.stories.d.ts} +1 -1
  52. package/dist/stories/{SimpleProgressBar.stories.d.ts → UI/progress/SimpleProgressBar.stories.d.ts} +1 -1
  53. package/dist/stories/{RangeSlider.stories.d.ts → UI/sliders/RangeSlider.stories.d.ts} +1 -1
  54. package/dist/stories/{Stepper.stories.d.ts → UI/steppers/Stepper.stories.d.ts} +1 -1
  55. package/dist/stories/{TutorialStepper.stories.d.ts → UI/steppers/TutorialStepper.stories.d.ts} +1 -1
  56. package/dist/stories/{TableTab.stories.d.ts → UI/tabs/InternalTabs.stories.d.ts} +1 -1
  57. package/dist/stories/{Multitab.stories.d.ts → UI/tabs/Multitab.stories.d.ts} +1 -1
  58. package/dist/stories/{Text.stories.d.ts → UI/text/Text.stories.d.ts} +2 -2
  59. package/package.json +1 -1
  60. package/src/components/Friends/SearchFriend.tsx +2 -2
  61. package/src/components/{TableTab/TableTab.tsx → InternalTabs/InternalTabs.tsx} +1 -1
  62. package/src/index.tsx +1 -1
  63. package/src/stories/{CharacterSelection.stories.tsx → Character/character/CharacterSelection.stories.tsx} +6 -6
  64. package/src/stories/{CharacterStatus.stories.tsx → Character/character/CharacterStatus.stories.tsx} +3 -3
  65. package/src/stories/{EquipmentSet.stories.tsx → Character/equipment/EquipmentSet.stories.tsx} +8 -7
  66. package/src/stories/{SkillProgressBar.stories.tsx → Character/skills/SkillProgressBar.stories.tsx} +5 -5
  67. package/src/stories/{SkillsContainer.stories.tsx → Character/skills/SkillsContainer.stories.tsx} +6 -6
  68. package/src/stories/{Chat.stories.tsx → Features/chat/Chat.stories.tsx} +3 -3
  69. package/src/stories/{ChatDeprecated.stories.tsx → Features/chat/ChatDeprecated.stories.tsx} +3 -3
  70. package/src/stories/{ChatRevamp.stories.tsx → Features/chat/ChatRevamp.stories.tsx} +4 -4
  71. package/src/stories/{CircullarController.stories.tsx → Features/controller/CircullarController.stories.tsx} +8 -7
  72. package/src/stories/{CraftBook.stories.tsx → Features/craftbook/CraftBook.stories.tsx} +7 -7
  73. package/src/stories/{FriendList.stories.tsx → Features/friend/FriendList.stories.tsx} +3 -3
  74. package/src/stories/{Leaderboard.stories.tsx → Features/leaderboard/Leaderboard.stories.tsx} +4 -4
  75. package/src/stories/{PartyCreate.stories.tsx → Features/party/PartyCreate.stories.tsx} +6 -3
  76. package/src/stories/{PartyDashboard.stories.tsx → Features/party/PartyDashboard.stories.tsx} +4 -4
  77. package/src/stories/{PartyInvite.stories.tsx → Features/party/PartyInvite.stories.tsx} +4 -4
  78. package/src/stories/{PartyManager.stories.tsx → Features/party/PartyManager.stories.tsx} +4 -4
  79. package/src/stories/{QuestInfo.stories.tsx → Features/quest/QuestInfo.stories.tsx} +3 -3
  80. package/src/stories/{QuestList.stories.tsx → Features/quest/QuestList.stories.tsx} +6 -3
  81. package/src/stories/{Shortcuts.stories.tsx → Features/shortcuts/Shortcuts.stories.tsx} +10 -7
  82. package/src/stories/{SpellInfoDisplay.stories.tsx → Features/spells/SpellInfoDisplay.stories.tsx} +4 -4
  83. package/src/stories/{Spellbook.stories.tsx → Features/spells/Spellbook.stories.tsx} +10 -7
  84. package/src/stories/{ItemTradingComponent.stories.tsx → Features/trading/ItemTradingComponent.stories.tsx} +6 -6
  85. package/src/stories/{Marketplace.stories.tsx → Features/trading/Marketplace.stories.tsx} +7 -7
  86. package/src/stories/{MarketplaceRows.stories.tsx → Features/trading/MarketplaceRows.stories.tsx} +6 -6
  87. package/src/stories/{TradingMenu.stories.tsx → Features/trading/TradingMenu.stories.tsx} +7 -7
  88. package/src/stories/{DayNightPeriod.stories.tsx → Features/weather/DayNightPeriod.stories.tsx} +3 -3
  89. package/src/stories/{TimeWidget.stories.tsx → Features/weather/TimeWidget.stories.tsx} +3 -3
  90. package/src/stories/{ItemInfoDisplay.stories.tsx → Item/ItemInfoDisplay.stories.tsx} +7 -7
  91. package/src/stories/{NPCDialog.stories.tsx → NPC/dialog/NPCDialog.stories.tsx} +4 -4
  92. package/src/stories/{HistoryDialog.stories.tsx → NPC/dialog/NPCHistoryDialog.stories.tsx} +8 -8
  93. package/src/stories/{NPCMultiDialog.stories.tsx → NPC/dialog/NPCMultiDialog.stories.tsx} +4 -4
  94. package/src/stories/{RPGUIContainers.stories.tsx → UI/RPGUI/RPGUIContainers.stories.tsx} +3 -3
  95. package/src/stories/{StaticBook.stories.tsx → UI/books/StaticBook.stories.tsx} +3 -3
  96. package/src/stories/{Button.stories.tsx → UI/buttonsAndInputs/Button.stories.tsx} +3 -3
  97. package/src/stories/{CheckButton.stories.tsx → UI/buttonsAndInputs/CheckItem.stories.tsx} +5 -5
  98. package/src/stories/{RadioButton.stories.tsx → UI/buttonsAndInputs/RadioButton.stories.tsx} +4 -4
  99. package/src/stories/{RadioInput.stories.tsx → UI/buttonsAndInputs/RadioInput.stories.tsx} +7 -3
  100. package/src/stories/{DraggableContainer.stories.tsx → UI/containers/DraggableContainer.stories.tsx} +3 -3
  101. package/src/stories/{ItemContainer.stories.tsx → UI/containers/ItemContainer.stories.tsx} +10 -10
  102. package/src/stories/{Arrow.stories.tsx → UI/dropdownsAndSelectors/Arrow.stories.tsx} +5 -3
  103. package/src/stories/{Dropdown.stories.tsx → UI/dropdownsAndSelectors/Dropdown.stories.tsx} +3 -3
  104. package/src/stories/{DropdownSelectorContainer.stories.tsx → UI/dropdownsAndSelectors/DropdownSelectorContainer.stories.tsx} +3 -3
  105. package/src/stories/{ItemQuantitySelector.stories.tsx → UI/dropdownsAndSelectors/ItemQuantitySelector.stories.tsx} +3 -3
  106. package/src/stories/{ItemSelector.stories.tsx → UI/dropdownsAndSelectors/ItemSelector.stories.tsx} +5 -5
  107. package/src/stories/{PropertySelect.stories.tsx → UI/dropdownsAndSelectors/PropertySelect.stories.tsx} +3 -3
  108. package/src/stories/{ImageCarousel.stories.tsx → UI/images/ImageCarousel.stories.tsx} +4 -4
  109. package/src/stories/{SimpleImageCarousel.stories.tsx → UI/images/SimpleImageCarousel.stories.tsx} +5 -5
  110. package/src/stories/{ListMenu.stories.tsx → UI/lists/ListMenu.stories.tsx} +3 -3
  111. package/src/stories/{ScrollList.stories.tsx → UI/lists/ScrollList.stories.tsx} +3 -3
  112. package/src/stories/UI/modals/ConfirmModal.stories.tsx +28 -0
  113. package/src/stories/UI/modals/ShopModal.stories.tsx +27 -0
  114. package/src/stories/{ProgressBar.stories.tsx → UI/progress/ProgressBar.stories.tsx} +3 -3
  115. package/src/stories/{SimpleProgressBar.stories.tsx → UI/progress/SimpleProgressBar.stories.tsx} +3 -3
  116. package/src/stories/{RangeSlider.stories.tsx → UI/sliders/RangeSlider.stories.tsx} +3 -3
  117. package/src/stories/{Stepper.stories.tsx → UI/steppers/Stepper.stories.tsx} +4 -4
  118. package/src/stories/{TutorialStepper.stories.tsx → UI/steppers/TutorialStepper.stories.tsx} +6 -6
  119. package/src/stories/{TableTab.stories.tsx → UI/tabs/InternalTabs.stories.tsx} +8 -5
  120. package/src/stories/{Multitab.stories.tsx → UI/tabs/Multitab.stories.tsx} +4 -4
  121. package/src/stories/{Text.stories.tsx → UI/text/Text.stories.tsx} +4 -4
  122. package/src/stories/ConfirmModal.stories.tsx +0 -25
  123. package/src/stories/ShopModal.stories.tsx +0 -24
  124. /package/dist/stories/{CharacterSelection.stories.d.ts → Character/character/CharacterSelection.stories.d.ts} +0 -0
  125. /package/dist/stories/{Chat.stories.d.ts → Features/chat/Chat.stories.d.ts} +0 -0
  126. /package/dist/stories/{ChatDeprecated.stories.d.ts → Features/chat/ChatDeprecated.stories.d.ts} +0 -0
  127. /package/dist/stories/{CraftBook.stories.d.ts → Features/craftbook/CraftBook.stories.d.ts} +0 -0
  128. /package/dist/stories/{FriendList.stories.d.ts → Features/friend/FriendList.stories.d.ts} +0 -0
  129. /package/dist/stories/{ItemTradingComponent.stories.d.ts → Features/trading/ItemTradingComponent.stories.d.ts} +0 -0
  130. /package/dist/stories/{Marketplace.stories.d.ts → Features/trading/Marketplace.stories.d.ts} +0 -0
  131. /package/dist/stories/{MarketplaceRows.stories.d.ts → Features/trading/MarketplaceRows.stories.d.ts} +0 -0
  132. /package/dist/stories/{ItemSelector.stories.d.ts → UI/dropdownsAndSelectors/ItemSelector.stories.d.ts} +0 -0
@@ -4,15 +4,15 @@ import {
4
4
  IRadioItems,
5
5
  IRadioProps,
6
6
  InputRadio,
7
- } from '../../src/components/RadioButton';
7
+ } from '../../../components/RadioButton';
8
8
  import {
9
9
  RPGUIContainer,
10
10
  RPGUIContainerTypes,
11
- } from '../components/RPGUI/RPGUIContainer';
12
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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 '../components/RPGUI/RPGUIRoot';
4
- import { IRadioInput, RadioInput } from '../components/RadioInput/RadioInput';
5
- import { Itools } from '../components/RadioInput/instruments';
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
 
@@ -3,11 +3,11 @@ import React from 'react';
3
3
  import {
4
4
  DraggableContainer,
5
5
  IDraggableContainerProps,
6
- } from '../../src/components/DraggableContainer';
7
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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 '../../src/components/Item/Inventory/ItemContainer';
8
- import { equipmentSetMock } from '../../src/mocks/equipmentSet.mocks';
9
- import { itemContainerMock } from '../../src/mocks/itemContainer.mocks';
10
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
11
- import { ScalableContainer } from '../components/shared/ScalableContainer';
12
- import { UI_BREAKPOINT_SMALL_LAPTOP } from '../constants/uiBreakpoints';
13
- import { useShortcuts } from '../hooks/useShortcuts';
14
- import atlasJSON from '../mocks/atlas/items/items.json';
15
- import atlasIMG from '../mocks/atlas/items/items.png';
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, { ArrowBarProps } from '../components/Arrow/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 '../../src';
4
+ import { RPGUIRoot } from '../../..';
5
5
  import {
6
6
  Dropdown,
7
7
  IDropdownProps,
8
8
  IOptionsProps,
9
- } from '../../src/components/Dropdown';
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 '../components/DropdownSelectorContainer';
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 '../components/Item/Inventory/ItemQuantitySelector';
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
 
@@ -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 '../components/itemSelector/ItemSelector';
8
- import atlasJSON from '../mocks/atlas/items/items.json';
9
- import atlasIMG from '../mocks/atlas/items/items.png';
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 '../components/PropertySelect/PropertySelect';
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 '../components/ImageCarousel/ImageCarousel';
8
- import image from '../components/ImageCarousel/images/001.png';
9
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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
 
@@ -4,15 +4,15 @@ import React from 'react';
4
4
  import {
5
5
  ISimpleImageCarousel,
6
6
  SimpleImageCarousel,
7
- } from '../components/ImageCarousel/SimpleImageCarousel';
7
+ } from '../../../components/ImageCarousel/SimpleImageCarousel';
8
8
 
9
9
  import styled from 'styled-components';
10
- import image1 from '../assets/images/backpack.png';
11
- import image2 from '../assets/images/depot.png';
12
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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 '../../src/components/ListMenu';
4
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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 { IListMenuProps, ListMenu } from '../../src/components/ScrollList';
4
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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 '../../src/components/ProgressBar';
4
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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
 
@@ -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 '../../src/components/SimpleProgressBar';
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 '../../src/components/RangeSlider';
8
- import { RPGUIRoot } from '../components/RPGUI/RPGUIRoot';
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 '../components/Arrow/SelectArrow';
5
- import { Stepper } from '../components/Stepper';
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 '../components/Tutorial/TutorialStepper';
8
+ } from '../../../components/Tutorial/TutorialStepper';
9
9
 
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';
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: 'Tutorial/TutorialStepper',
15
+ title: 'UI/Steppers/TutorialStepper',
16
16
  component: TutorialStepper,
17
17
  };
18
18
 
@@ -1,18 +1,21 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import React from 'react';
3
- import { RPGUIRoot } from '..';
4
- import { TableTab, TableTabProps } from '../components/TableTab/TableTab';
3
+ import { RPGUIRoot } from '../../..';
4
+ import {
5
+ InternalTabs,
6
+ TableTabProps,
7
+ } from '../../../components/InternalTabs/InternalTabs';
5
8
 
6
9
  const meta: Meta = {
7
- title: 'TableTab',
8
- component: TableTab,
10
+ title: 'UI/Tabs/InternalTabs',
11
+ component: InternalTabs,
9
12
  };
10
13
 
11
14
  export default meta;
12
15
 
13
16
  const Template: Story<TableTabProps> = args => (
14
17
  <RPGUIRoot>
15
- <TableTab {...args} />
18
+ <InternalTabs {...args} />
16
19
  </RPGUIRoot>
17
20
  );
18
21
 
@@ -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 '../../src/components/Multitab/TabsContainer';
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 '../../src';
3
+ import { RPGUIRoot } from '../../../../src';
4
4
  import {
5
5
  IInputProps,
6
6
  Input as InputComponent,
7
- } from '../../src/components/Input';
7
+ } from '../../../../src/components/Input';
8
8
  import {
9
9
  ITextArea,
10
10
  TextArea as TextAreaComponent,
11
- } from '../../src/components/TextArea';
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
- }