@rpg-engine/long-bow 0.1.83 → 0.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Equipment/EquipmentSet.d.ts +3 -1
- package/dist/components/Item/Cards/ItemTooltip.d.ts +6 -0
- package/dist/components/Item/Inventory/ItemContainer.d.ts +3 -5
- package/dist/components/Item/Inventory/ItemContainerTypes.d.ts +4 -0
- package/dist/components/Item/Inventory/ItemSlot.d.ts +4 -7
- package/dist/components/PropertySelect/PropertySelect.d.ts +12 -0
- package/dist/components/QuestInfo/{index.d.ts → QuestInfo.d.ts} +0 -0
- package/dist/components/RelativeListMenu.d.ts +13 -0
- package/dist/index.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +382 -841
- 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 +377 -838
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/Button.stories.d.ts +5 -0
- package/dist/stories/Chat.stories.d.ts +5 -0
- package/dist/stories/CheckButton.stories.d.ts +5 -0
- package/dist/stories/DraggableContainer.stories.d.ts +5 -0
- package/dist/stories/Dropdown.stories.d.ts +5 -0
- package/dist/stories/EquipmentSet.stories.d.ts +5 -0
- package/dist/stories/ItemContainer.stories.d.ts +5 -0
- package/dist/stories/ListMenu.stories.d.ts +5 -0
- package/dist/stories/Multitab.stories.d.ts +6 -0
- package/dist/stories/NPCDialog.stories.d.ts +7 -0
- package/dist/stories/ProgressBar.stories.d.ts +8 -0
- package/dist/stories/PropertySelect.stories.d.ts +5 -0
- package/dist/stories/QuestInfo.stories.d.ts +5 -0
- package/dist/stories/RPGUIContainers.stories.d.ts +5 -0
- package/dist/stories/RadioButton.stories.d.ts +5 -0
- package/dist/stories/RangeSlider.stories.d.ts +5 -0
- package/dist/stories/ScrollList.stories.d.ts +5 -0
- package/dist/stories/SimpleProgressBar.stories.d.ts +5 -0
- package/dist/stories/SkillProgressBar.stories.d.ts +5 -0
- package/dist/stories/SkillsContainer.stories.d.ts +5 -0
- package/dist/stories/Text.stories.d.ts +7 -0
- package/package.json +1 -1
- package/src/components/Equipment/EquipmentSet.tsx +97 -142
- package/src/components/Item/Cards/ItemTooltip.tsx +32 -0
- package/src/components/Item/Inventory/ItemContainer.tsx +47 -95
- package/src/components/Item/Inventory/ItemContainerTypes.ts +4 -0
- package/src/components/Item/Inventory/ItemSlot.tsx +145 -109
- package/src/components/NPCDialog/QuestionDialog/QuestionDialog.tsx +0 -3
- package/src/components/PropertySelect/PropertySelect.tsx +101 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow01-left-clicked.png +0 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow01-left.png +0 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow01-right-clicked.png +0 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow01-right.png +0 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow02-left-clicked.png +0 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow02-left.png +0 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow02-right-clicked.png +0 -0
- package/src/components/PropertySelect/img/ui-arrows/arrow02-right.png +0 -0
- package/src/components/QuestInfo/{index.tsx → QuestInfo.tsx} +4 -8
- package/src/components/RelativeListMenu.tsx +83 -0
- package/src/index.tsx +1 -1
- package/src/mocks/atlas/icons/icons.json +494 -62
- package/src/mocks/atlas/icons/icons.png +0 -0
- package/src/stories/Button.stories.tsx +36 -0
- package/src/stories/Chat.stories.tsx +170 -0
- package/src/stories/CheckButton.stories.tsx +48 -0
- package/src/stories/DraggableContainer.stories.tsx +28 -0
- package/src/stories/Dropdown.stories.tsx +46 -0
- package/src/stories/EquipmentSet.stories.tsx +50 -0
- package/src/stories/ItemContainer.stories.tsx +50 -0
- package/src/stories/ListMenu.stories.tsx +56 -0
- package/src/stories/Multitab.stories.tsx +51 -0
- package/src/stories/NPCDialog.stories.tsx +130 -0
- package/src/stories/ProgressBar.stories.tsx +23 -0
- package/src/stories/PropertySelect.stories.tsx +41 -0
- package/src/stories/QuestInfo.stories.tsx +76 -0
- package/src/stories/RPGUIContainers.stories.tsx +42 -0
- package/src/stories/RadioButton.stories.tsx +49 -0
- package/src/stories/RangeSlider.stories.tsx +60 -0
- package/src/stories/ScrollList.stories.tsx +85 -0
- package/src/stories/SimpleProgressBar.stories.tsx +22 -0
- package/src/stories/SkillProgressBar.stories.tsx +30 -0
- package/src/stories/SkillsContainer.stories.tsx +31 -0
- package/src/stories/Text.stories.tsx +42 -0
- package/dist/components/Item/Cards/ItemCard.d.ts +0 -9
- package/dist/components/shared/SpriteIcon.d.ts +0 -9
- package/dist/components/store/UI.store.d.ts +0 -34
- package/src/components/Item/Cards/ItemCard.tsx +0 -36
- package/src/components/shared/SpriteIcon.tsx +0 -67
- package/src/components/store/UI.store.ts +0 -192
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { IEquipmentSet, IItem } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { SlotContainerType } from '../Item/Inventory/ItemContainerTypes';
|
|
3
4
|
export interface IEquipmentSetProps {
|
|
4
5
|
equipmentSet: IEquipmentSet;
|
|
5
6
|
onClose?: () => void;
|
|
7
|
+
onItemClick?: (item: IItem, slotContainerType: SlotContainerType | null) => void;
|
|
6
8
|
onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
|
|
7
|
-
|
|
9
|
+
onSelected?: (optionId: string) => void;
|
|
8
10
|
initialPosition?: {
|
|
9
11
|
x: number;
|
|
10
12
|
y: number;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { IItem, IItemContainer } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { SlotContainerType } from './ItemContainerTypes';
|
|
3
4
|
export interface IItemContainerProps {
|
|
4
5
|
itemContainer: IItemContainer;
|
|
5
6
|
onClose?: () => void;
|
|
7
|
+
onItemClick?: (item: IItem, slotContainerType: SlotContainerType | null) => void;
|
|
6
8
|
onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
|
|
7
|
-
|
|
8
|
-
initialPosition?: {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
};
|
|
9
|
+
onSelected?: (optionId: string) => void;
|
|
12
10
|
}
|
|
13
11
|
export declare const ItemContainer: React.FC<IItemContainerProps>;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { IItem, IItemContainer, ItemSlotType } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
INVENTORY = "Inventory",
|
|
5
|
-
EQUIPMENT_SET = "EquipmentSet"
|
|
6
|
-
}
|
|
3
|
+
import { SlotContainerType } from './ItemContainerTypes';
|
|
7
4
|
interface IProps {
|
|
8
5
|
slotIndex: number;
|
|
9
6
|
item: IItem | null;
|
|
10
7
|
itemContainer?: IItemContainer | null;
|
|
11
8
|
slotContainerType: SlotContainerType | null;
|
|
12
9
|
slotSpriteMask?: ItemSlotType | null;
|
|
10
|
+
onSelected: (payload: any) => void;
|
|
13
11
|
onMouseOver: (event: any, slotIndex: number, item: IItem | null, x: number, y: number) => void;
|
|
14
|
-
onMouseOut
|
|
15
|
-
onClick: (item: IItem,
|
|
16
|
-
onCancelContextMenu: () => void;
|
|
12
|
+
onMouseOut?: () => void;
|
|
13
|
+
onClick: (item: IItem, slotContainerType: SlotContainerType | null) => void;
|
|
17
14
|
}
|
|
18
15
|
export declare const ItemSlot: React.FC<IProps>;
|
|
19
16
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IPropertySelectProps {
|
|
3
|
+
availableProperties: Array<IPropertiesProps>;
|
|
4
|
+
selectedProperty: object;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface IPropertiesProps {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const PropertySelect: React.FC<IPropertySelectProps>;
|
|
12
|
+
export default PropertySelect;
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IListMenuOption {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IRelativeMenuProps {
|
|
7
|
+
options: IListMenuOption[];
|
|
8
|
+
onSelected: (selectedOptionId: string) => void;
|
|
9
|
+
fontSize?: number;
|
|
10
|
+
onOutsideClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const RelativeListMenu: React.FC<IRelativeMenuProps>;
|
|
13
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -11,12 +11,12 @@ export * from './components/ListMenu';
|
|
|
11
11
|
export * from './components/NPCDialog/NPCDialog';
|
|
12
12
|
export * from './components/NPCDialog/QuestionDialog/QuestionDialog';
|
|
13
13
|
export * from './components/ProgressBar';
|
|
14
|
+
export * from './components/PropertySelect/PropertySelect';
|
|
14
15
|
export * from './components/RadioButton';
|
|
15
16
|
export * from './components/RangeSlider';
|
|
16
17
|
export * from './components/RPGUIContainer';
|
|
17
18
|
export * from './components/RPGUIRoot';
|
|
18
19
|
export * from './components/shared/SpriteFromAtlas';
|
|
19
|
-
export * from './components/shared/SpriteIcon';
|
|
20
20
|
export * from './components/SkillProgressBar';
|
|
21
21
|
export * from './components/SkillsContainer';
|
|
22
22
|
export * from './components/TextArea';
|