@rpg-engine/long-bow 0.2.29 → 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 (39) hide show
  1. package/dist/components/Arrow/SelectArrow.d.ts +8 -0
  2. package/dist/components/TradingMenu/TradingItemRow.d.ts +9 -0
  3. package/dist/components/TradingMenu/TradingMenu.d.ts +12 -0
  4. package/dist/components/shared/Ellipsis.d.ts +3 -1
  5. package/dist/index.d.ts +3 -3
  6. package/dist/long-bow.cjs.development.js +544 -499
  7. package/dist/long-bow.cjs.development.js.map +1 -1
  8. package/dist/long-bow.cjs.production.min.js +1 -1
  9. package/dist/long-bow.cjs.production.min.js.map +1 -1
  10. package/dist/long-bow.esm.js +544 -499
  11. package/dist/long-bow.esm.js.map +1 -1
  12. package/dist/stories/Arrow.stories.d.ts +5 -0
  13. package/dist/stories/ItemTradingComponent.stories.d.ts +1 -1
  14. package/dist/stories/{TrandingMenu.stories.d.ts → TradingMenu.stories.d.ts} +1 -1
  15. package/package.json +2 -2
  16. package/src/components/Arrow/SelectArrow.tsx +65 -0
  17. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-left-clicked.png +0 -0
  18. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-left.png +0 -0
  19. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-right-clicked.png +0 -0
  20. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow01-right.png +0 -0
  21. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-left-clicked.png +0 -0
  22. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-left.png +0 -0
  23. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-right-clicked.png +0 -0
  24. package/src/components/{PropertySelect/img/ui-arrows → Arrow/img}/arrow02-right.png +0 -0
  25. package/src/components/NPCDialog/.DS_Store +0 -0
  26. package/src/components/NPCDialog/img/.DS_Store +0 -0
  27. package/src/components/PropertySelect/PropertySelect.tsx +12 -34
  28. package/src/components/QuestInfo/QuestInfo.tsx +8 -34
  29. package/src/components/TradingMenu/TradingItemRow.tsx +172 -0
  30. package/src/components/TradingMenu/{TrandingMenu.tsx → TradingMenu.tsx} +22 -24
  31. package/src/components/TradingMenu/items.mock.ts +19 -18
  32. package/src/components/shared/Ellipsis.tsx +25 -6
  33. package/src/index.tsx +3 -3
  34. package/src/stories/Arrow.stories.tsx +26 -0
  35. package/src/stories/ItemTradingComponent.stories.tsx +6 -6
  36. package/src/stories/{TrandingMenu.stories.tsx → TradingMenu.stories.tsx} +5 -5
  37. package/dist/components/TradingMenu/TrandingMenu.d.ts +0 -12
  38. package/dist/components/TradingMenu/itemComponent.d.ts +0 -9
  39. package/src/components/TradingMenu/itemComponent.tsx +0 -158
@@ -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;
@@ -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>;
@@ -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,9 +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
- export * from './components/TradingMenu/TrandingMenu';
31
31
  export { useEventListener } from './hooks/useEventListener';