@rpg-engine/long-bow 0.1.85 → 0.1.86

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.1.85",
3
+ "version": "0.1.86",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
package/src/index.tsx CHANGED
@@ -17,7 +17,6 @@ export * from './components/RangeSlider';
17
17
  export * from './components/RPGUIContainer';
18
18
  export * from './components/RPGUIRoot';
19
19
  export * from './components/shared/SpriteFromAtlas';
20
- export * from './components/shared/SpriteIcon';
21
20
  export * from './components/SkillProgressBar';
22
21
  export * from './components/SkillsContainer';
23
22
  export * from './components/TextArea';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- onClick?: () => void;
4
- spriteKey: string;
5
- baseSpriteKey?: string;
6
- imgStyle?: any;
7
- iconsAtlasJSON: any;
8
- iconsAtlasIMG: any;
9
- }
10
- export declare const SpriteIcon: React.FC<IProps>;
11
- export {};
@@ -1,69 +0,0 @@
1
- import React from 'react';
2
- import styled from 'styled-components';
3
- import { SpriteFromAtlas } from './SpriteFromAtlas';
4
-
5
- interface IProps {
6
- onClick?: () => void;
7
- spriteKey: string;
8
- baseSpriteKey?: string;
9
- imgStyle?: any;
10
- iconsAtlasJSON: any;
11
- iconsAtlasIMG: any;
12
- }
13
-
14
- export const SpriteIcon: React.FC<IProps> = ({
15
- onClick,
16
- spriteKey,
17
- baseSpriteKey,
18
- imgStyle,
19
- iconsAtlasJSON,
20
- iconsAtlasIMG,
21
- }) => {
22
- return (
23
- <Container>
24
- {baseSpriteKey && (
25
- <Slot>
26
- <SpriteFromAtlas
27
- onClick={onClick}
28
- atlasJSON={iconsAtlasJSON}
29
- atlasIMG={iconsAtlasIMG}
30
- spriteKey={baseSpriteKey}
31
- width={32}
32
- height={32}
33
- containerStyle={{
34
- zIndex: -1,
35
- }}
36
- />
37
- </Slot>
38
- )}
39
- <Slot>
40
- <SpriteFromAtlas
41
- onClick={onClick}
42
- atlasJSON={iconsAtlasJSON}
43
- atlasIMG={iconsAtlasIMG}
44
- spriteKey={spriteKey}
45
- width={28}
46
- height={28}
47
- containerStyle={{
48
- zIndex: 0,
49
- }}
50
- imgScale={baseSpriteKey ? 1.5 : 2}
51
- imgStyle={imgStyle}
52
- />
53
- </Slot>
54
- </Container>
55
- );
56
- };
57
-
58
- const Container = styled.div`
59
- position: relative;
60
- width: 32px;
61
- height: 32px;
62
- display: flex;
63
- justify-content: center;
64
- align-items: center;
65
- `;
66
-
67
- const Slot = styled.div`
68
- position: absolute;
69
- `;