@rpg-engine/long-bow 0.2.28 → 0.2.29
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/SkillProgressBar.d.ts +2 -0
- package/dist/components/SkillsContainer.d.ts +2 -0
- package/dist/components/TradingMenu/TrandingMenu.d.ts +12 -0
- package/dist/components/TradingMenu/itemComponent.d.ts +9 -0
- package/dist/components/TradingMenu/items.mock.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +405 -388
- 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 +405 -393
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/ItemTradingComponent.stories.d.ts +5 -0
- package/dist/stories/TrandingMenu.stories.d.ts +5 -0
- package/package.json +2 -2
- package/src/components/Item/Inventory/ItemSlot.tsx +5 -3
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/ScrollList.tsx +2 -1
- package/src/components/SkillProgressBar.tsx +4 -2
- package/src/components/SkillsContainer.tsx +8 -37
- package/src/components/TradingMenu/TrandingMenu.tsx +190 -0
- package/src/components/TradingMenu/itemComponent.tsx +158 -0
- package/src/components/TradingMenu/items.mock.ts +87 -0
- package/src/index.tsx +1 -0
- package/src/mocks/.DS_Store +0 -0
- package/src/stories/ItemTradingComponent.stories.tsx +39 -0
- package/src/stories/SkillProgressBar.stories.tsx +4 -0
- package/src/stories/SkillsContainer.stories.tsx +4 -0
- package/src/stories/TrandingMenu.stories.tsx +38 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITransactionItem, TradeTransactionType } from '@rpg-engine/shared';
|
|
3
|
+
export interface ITrandingMenu {
|
|
4
|
+
traderItems: ITransactionItem[];
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
type: TradeTransactionType;
|
|
7
|
+
atlasJSON: any;
|
|
8
|
+
atlasIMG: any;
|
|
9
|
+
characterAvailableGold: number;
|
|
10
|
+
onChangeTraderItems: (traderItems: ITransactionItem[]) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const TrandingMenu: React.FC<ITrandingMenu>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITransactionItem } from '@rpg-engine/shared';
|
|
3
|
+
export interface ITradeComponentProps {
|
|
4
|
+
traderItem: ITransactionItem;
|
|
5
|
+
updateChartTotals: (traderItem: ITransactionItem) => void;
|
|
6
|
+
atlasJSON: any;
|
|
7
|
+
atlasIMG: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const ItemTradingComponent: React.FC<ITradeComponentProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -27,4 +27,5 @@ export * from './components/Truncate';
|
|
|
27
27
|
export * from './components/typography/DynamicText';
|
|
28
28
|
export * from './components/NPCDialog/NPCMultiDialog';
|
|
29
29
|
export * from './components/HistoryDialog';
|
|
30
|
+
export * from './components/TradingMenu/TrandingMenu';
|
|
30
31
|
export { useEventListener } from './hooks/useEventListener';
|