@rpg-engine/long-bow 0.2.28 → 0.2.33

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 (46) hide show
  1. package/dist/components/Arrow/SelectArrow.d.ts +8 -0
  2. package/dist/components/SkillProgressBar.d.ts +2 -0
  3. package/dist/components/SkillsContainer.d.ts +2 -0
  4. package/dist/components/TradingMenu/TradingItemRow.d.ts +9 -0
  5. package/dist/components/TradingMenu/TradingMenu.d.ts +12 -0
  6. package/dist/components/TradingMenu/items.mock.d.ts +2 -0
  7. package/dist/components/shared/Ellipsis.d.ts +3 -1
  8. package/dist/index.d.ts +3 -2
  9. package/dist/long-bow.cjs.development.js +748 -686
  10. package/dist/long-bow.cjs.development.js.map +1 -1
  11. package/dist/long-bow.cjs.production.min.js +1 -1
  12. package/dist/long-bow.cjs.production.min.js.map +1 -1
  13. package/dist/long-bow.esm.js +749 -692
  14. package/dist/long-bow.esm.js.map +1 -1
  15. package/dist/stories/Arrow.stories.d.ts +5 -0
  16. package/dist/stories/ItemTradingComponent.stories.d.ts +5 -0
  17. package/dist/stories/TradingMenu.stories.d.ts +5 -0
  18. package/package.json +2 -2
  19. package/src/components/Arrow/SelectArrow.tsx +65 -0
  20. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-left-clicked.png +0 -0
  21. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-left.png +0 -0
  22. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-right-clicked.png +0 -0
  23. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-right.png +0 -0
  24. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-left-clicked.png +0 -0
  25. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-left.png +0 -0
  26. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-right-clicked.png +0 -0
  27. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-right.png +0 -0
  28. package/src/components/Item/Inventory/ItemSlot.tsx +5 -3
  29. package/src/components/NPCDialog/.DS_Store +0 -0
  30. package/src/components/NPCDialog/img/.DS_Store +0 -0
  31. package/src/components/PropertySelect/PropertySelect.tsx +12 -34
  32. package/src/components/QuestInfo/QuestInfo.tsx +8 -34
  33. package/src/components/ScrollList.tsx +2 -1
  34. package/src/components/SkillProgressBar.tsx +4 -2
  35. package/src/components/SkillsContainer.tsx +8 -37
  36. package/src/components/TradingMenu/TradingItemRow.tsx +172 -0
  37. package/src/components/TradingMenu/TradingMenu.tsx +188 -0
  38. package/src/components/TradingMenu/items.mock.ts +88 -0
  39. package/src/components/shared/Ellipsis.tsx +25 -6
  40. package/src/index.tsx +3 -2
  41. package/src/mocks/.DS_Store +0 -0
  42. package/src/stories/Arrow.stories.tsx +26 -0
  43. package/src/stories/ItemTradingComponent.stories.tsx +39 -0
  44. package/src/stories/SkillProgressBar.stories.tsx +4 -0
  45. package/src/stories/SkillsContainer.stories.tsx +4 -0
  46. package/src/stories/TradingMenu.stories.tsx +38 -0
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface ArrowBarProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ direction: 'right' | 'left';
4
+ onClick: () => void;
5
+ size?: number;
6
+ }
7
+ export declare const SelectArrow: React.FC<ArrowBarProps>;
8
+ export default SelectArrow;
@@ -7,5 +7,7 @@ export interface ISkillProgressBarProps {
7
7
  skillPointsToNextLevel?: number;
8
8
  texturePath: string;
9
9
  showSkillPoints?: boolean;
10
+ atlasJSON: any;
11
+ atlasIMG: any;
10
12
  }
11
13
  export declare const SkillProgressBar: React.FC<ISkillProgressBarProps>;
@@ -3,5 +3,7 @@ import React from 'react';
3
3
  export interface ISkillContainerProps {
4
4
  skill: ISkill;
5
5
  onCloseButton: () => void;
6
+ atlasJSON: any;
7
+ atlasIMG: any;
6
8
  }
7
9
  export declare const SkillsContainer: React.FC<ISkillContainerProps>;
@@ -0,0 +1,9 @@
1
+ import { ITradeResponseItem } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ export interface ITradeComponentProps {
4
+ traderItem: ITradeResponseItem;
5
+ updateChartTotals: (traderItem: ITradeResponseItem) => void;
6
+ atlasJSON: any;
7
+ atlasIMG: any;
8
+ }
9
+ export declare const TradingItemRow: React.FC<ITradeComponentProps>;
@@ -0,0 +1,12 @@
1
+ import { ITradeResponseItem, TradeTransactionType } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ export interface ITrandingMenu {
4
+ traderItems: ITradeResponseItem[];
5
+ onClose: () => void;
6
+ type: TradeTransactionType;
7
+ atlasJSON: any;
8
+ atlasIMG: any;
9
+ characterAvailableGold: number;
10
+ onChangeTraderItems: (traderItems: ITradeResponseItem[]) => void;
11
+ }
12
+ export declare const TradingMenu: React.FC<ITrandingMenu>;
@@ -0,0 +1,2 @@
1
+ import { ITransactionItem } from '@rpg-engine/shared';
2
+ export declare const itemMock: ITransactionItem[];
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  interface IProps {
3
3
  children: React.ReactNode;
4
4
  maxLines: 1 | 2 | 3;
5
+ maxWidth: number;
6
+ fontSize?: string;
5
7
  }
6
- export declare const Ellipsis: ({ children, maxLines }: IProps) => JSX.Element;
8
+ export declare const Ellipsis: ({ children, maxLines, maxWidth, fontSize, }: IProps) => JSX.Element;
7
9
  export {};
package/dist/index.d.ts CHANGED
@@ -5,11 +5,13 @@ export * from './components/CheckButton';
5
5
  export * from './components/DraggableContainer';
6
6
  export * from './components/Dropdown';
7
7
  export * from './components/Equipment/EquipmentSet';
8
+ export * from './components/HistoryDialog';
8
9
  export * from './components/Input';
9
10
  export * from './components/Item/Inventory/ItemContainer';
10
11
  export * from './components/Item/Inventory/ItemSlot';
11
12
  export * from './components/ListMenu';
12
13
  export * from './components/NPCDialog/NPCDialog';
14
+ export * from './components/NPCDialog/NPCMultiDialog';
13
15
  export * from './components/NPCDialog/QuestionDialog/QuestionDialog';
14
16
  export * from './components/ProgressBar';
15
17
  export * from './components/PropertySelect/PropertySelect';
@@ -23,8 +25,7 @@ export * from './components/shared/SpriteFromAtlas';
23
25
  export * from './components/SkillProgressBar';
24
26
  export * from './components/SkillsContainer';
25
27
  export * from './components/TextArea';
28
+ export * from './components/TradingMenu/TradingMenu';
26
29
  export * from './components/Truncate';
27
30
  export * from './components/typography/DynamicText';
28
- export * from './components/NPCDialog/NPCMultiDialog';
29
- export * from './components/HistoryDialog';
30
31
  export { useEventListener } from './hooks/useEventListener';