@rpg-engine/long-bow 0.1.67 → 0.1.70

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 (32) hide show
  1. package/dist/components/DraggableContainer.d.ts +2 -2
  2. package/dist/components/Item/Inventory/ItemContainer.d.ts +3 -3
  3. package/dist/components/Item/SpriteFromAtlas.d.ts +2 -0
  4. package/dist/components/Multitab/Tab.d.ts +9 -0
  5. package/dist/components/Multitab/TabBody.d.ts +7 -0
  6. package/dist/components/Multitab/TabsContainer.d.ts +17 -0
  7. package/dist/components/SimpleProgressBar.d.ts +3 -4
  8. package/dist/components/SkillProgressBar.d.ts +6 -4
  9. package/dist/components/SkillsContainer.d.ts +7 -0
  10. package/dist/constants/uiColors.d.ts +7 -0
  11. package/dist/long-bow.cjs.development.js +4011 -498
  12. package/dist/long-bow.cjs.development.js.map +1 -1
  13. package/dist/long-bow.cjs.production.min.js +1 -1
  14. package/dist/long-bow.cjs.production.min.js.map +1 -1
  15. package/dist/long-bow.esm.js +4012 -499
  16. package/dist/long-bow.esm.js.map +1 -1
  17. package/dist/mocks/skills.mocks.d.ts +115 -0
  18. package/package.json +3 -3
  19. package/src/components/DraggableContainer.tsx +11 -9
  20. package/src/components/I_Book.png +0 -0
  21. package/src/components/Item/Inventory/ItemContainer.tsx +14 -6
  22. package/src/components/Item/SpriteFromAtlas.tsx +10 -0
  23. package/src/components/Multitab/Tab.tsx +57 -0
  24. package/src/components/Multitab/TabBody.tsx +13 -0
  25. package/src/components/Multitab/TabsContainer.tsx +97 -0
  26. package/src/components/SimpleProgressBar.tsx +14 -10
  27. package/src/components/SkillProgressBar.tsx +74 -20
  28. package/src/components/SkillsContainer.tsx +235 -0
  29. package/src/constants/uiColors.ts +7 -0
  30. package/src/mocks/atlas/items/items.json +3920 -460
  31. package/src/mocks/atlas/items/items.png +0 -0
  32. package/src/mocks/skills.mocks.ts +116 -0
@@ -7,10 +7,10 @@ export interface IDraggableContainerProps {
7
7
  height?: string;
8
8
  className?: string;
9
9
  type?: RPGUIContainerTypes;
10
- title: string;
10
+ title?: string;
11
11
  imgSrc?: string;
12
12
  imgWidth?: string;
13
- onCloseButton: () => void;
13
+ onCloseButton?: () => void;
14
14
  cancelDrag?: string;
15
15
  onPositionChange?: (position: IPosition) => void;
16
16
  }
@@ -2,9 +2,9 @@ import { IItem, IItemContainer } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  export interface IItemContainerProps {
4
4
  itemContainer: IItemContainer;
5
- onClose: () => void;
6
- onMouseOver: (e: any, slotIndex: number, item: IItem | null) => void;
7
- onActionSelected: (payload: any) => void;
5
+ onClose?: () => void;
6
+ onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
7
+ onActionSelected?: (payload: any) => void;
8
8
  initialPosition?: {
9
9
  x: number;
10
10
  y: number;
@@ -6,6 +6,8 @@ interface IProps {
6
6
  width?: number;
7
7
  height?: number;
8
8
  scale?: number;
9
+ grayScale?: boolean;
10
+ opacity?: number;
9
11
  }
10
12
  export declare const SpriteFromAtlas: React.FC<IProps>;
11
13
  export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { MultitabType } from './TabsContainer';
3
+ export interface ISingleTab {
4
+ active: boolean;
5
+ label: string;
6
+ onClick: () => void;
7
+ type: MultitabType;
8
+ }
9
+ export declare const Tab: React.FC<ISingleTab>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ id: string;
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const TabBody: React.FC<IProps>;
7
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ interface ITab {
3
+ label: string;
4
+ id: string;
5
+ }
6
+ export declare enum MultitabType {
7
+ Brown = "brown",
8
+ Gray = "gray"
9
+ }
10
+ export interface ITabsContainer {
11
+ children: React.ReactNode;
12
+ onCloseButton?: () => void;
13
+ tabs: ITab[];
14
+ type: MultitabType;
15
+ }
16
+ export declare const TabsContainer: React.FC<ITabsContainer>;
17
+ export {};
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- interface IProps {
2
+ export interface ISimpleProgressBarProps {
3
3
  value: number;
4
- height?: string;
5
4
  bgColor?: string;
5
+ margin?: number;
6
6
  }
7
- export declare const SimpleProgressBar: React.FC<IProps>;
8
- export {};
7
+ export declare const SimpleProgressBar: React.FC<ISimpleProgressBarProps>;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  export interface ISkillProgressBarProps {
3
- value: number;
4
- height: string;
3
+ skillName: string;
5
4
  bgColor: string;
6
- titleName: string;
7
- logoSrc?: string;
5
+ level: number;
6
+ skillPoints: number;
7
+ skillPointsToNextLevel?: number;
8
+ texturePath: string;
9
+ showSkillPoints?: boolean;
8
10
  }
9
11
  export declare const SkillProgressBar: React.FC<ISkillProgressBarProps>;
@@ -0,0 +1,7 @@
1
+ import { ISkill } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ export interface ISkillContainerProps {
4
+ skill: ISkill;
5
+ onCloseButton: () => void;
6
+ }
7
+ export declare const SkillsContainer: React.FC<ISkillContainerProps>;
@@ -1,3 +1,10 @@
1
1
  export declare const colors: {
2
2
  darkGrey: string;
3
+ darkYellow: string;
4
+ orange: string;
5
+ cardinal: string;
6
+ raisinBlack: string;
7
+ navyBlue: string;
8
+ purple: string;
9
+ blue: string;
3
10
  };