@rpg-engine/long-bow 0.8.15 → 0.8.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.8.15",
3
+ "version": "0.8.16",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,20 +1,25 @@
1
1
  import React from 'react';
2
2
  import { ColorSelector } from './ItemPropertyColorSelector';
3
3
 
4
- interface Props {
4
+ interface IItemPropertySimpleHandlerProps {
5
5
  isOpen: boolean;
6
6
  selectedColor: string;
7
7
  onClose: () => void;
8
8
  onConfirm: (color: string) => void;
9
9
  onChange: (color: string) => void;
10
+ costWarning?: {
11
+ cost: number;
12
+ currency?: string;
13
+ };
10
14
  }
11
15
 
12
- export const ItemPropertySimpleHandler: React.FC<Props> = ({
16
+ export const ItemPropertySimpleHandler: React.FC<IItemPropertySimpleHandlerProps> = ({
13
17
  isOpen,
14
18
  selectedColor,
15
19
  onClose,
16
20
  onConfirm,
17
21
  onChange,
22
+ costWarning,
18
23
  }) => (
19
24
  <ColorSelector
20
25
  selectedColor={selectedColor}
@@ -22,5 +27,6 @@ export const ItemPropertySimpleHandler: React.FC<Props> = ({
22
27
  onClose={onClose}
23
28
  onConfirm={onConfirm}
24
29
  onChange={onChange}
30
+ costWarning={costWarning}
25
31
  />
26
32
  );