@rpg-engine/long-bow 0.2.50 → 0.2.51
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/dist/long-bow.cjs.development.js +16 -7
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +16 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Inventory/itemContainerHelper.ts +8 -0
- package/src/components/TimeWidget/DayNightPeriod/DayNightPeriod.tsx +5 -1
- package/src/components/TimeWidget/TimeWidget.tsx +15 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/long-bow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.51",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@rollup/plugin-image": "^2.1.1",
|
|
86
|
-
"@rpg-engine/shared": "^0.5.
|
|
86
|
+
"@rpg-engine/shared": "^0.5.82",
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"fs-extra": "^10.1.0",
|
|
89
89
|
"lodash": "^4.17.21",
|
|
@@ -142,6 +142,14 @@ export const generateContextMenu = (
|
|
|
142
142
|
);
|
|
143
143
|
break;
|
|
144
144
|
}
|
|
145
|
+
|
|
146
|
+
const contextActionMenuDontHaveUseWith = !contextActionMenu.find(action =>
|
|
147
|
+
action.text.toLowerCase().includes('use with')
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
|
|
151
|
+
contextActionMenu.push({ id: 'use-with', text: 'Use with...' });
|
|
152
|
+
}
|
|
145
153
|
}
|
|
146
154
|
|
|
147
155
|
return contextActionMenu;
|
|
@@ -33,31 +33,30 @@ export const TimeWidget: React.FC<IClockWidgetProps> = ({
|
|
|
33
33
|
|
|
34
34
|
const WidgetContainer = styled.div`
|
|
35
35
|
background-image: url(${ClockWidgetImg});
|
|
36
|
+
background-size: 10rem;
|
|
36
37
|
background-repeat: no-repeat;
|
|
37
|
-
width:
|
|
38
|
+
width: 10rem;
|
|
38
39
|
position: absolute;
|
|
39
|
-
margin: 20px;
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
42
|
const Time = styled.div`
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
font-size: 7.5px;
|
|
43
|
+
top: 0.75rem;
|
|
44
|
+
right: 0.5rem;
|
|
45
|
+
position: absolute;
|
|
46
|
+
font-size: ${uiFonts.size.small};
|
|
48
47
|
color: white;
|
|
49
48
|
`;
|
|
50
49
|
|
|
51
50
|
const CloseButton = styled.p`
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
right: -
|
|
56
|
-
font-size: ${uiFonts.size.
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: -0.5rem;
|
|
53
|
+
margin: 0;
|
|
54
|
+
right: -0.2rem;
|
|
55
|
+
font-size: ${uiFonts.size.small} !important;
|
|
57
56
|
z-index: 1;
|
|
58
57
|
`;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
|
|
59
|
+
const DayNightContainer = styled.div`
|
|
60
|
+
margin-top: -0.3rem;
|
|
61
|
+
margin-left: -0.3rem;
|
|
63
62
|
`;
|