@rpg-engine/long-bow 0.8.169 → 0.8.170
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 +13 -23
- 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 +13 -23
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/ManagmentPanel.tsx +12 -1
- package/src/components/Marketplace/MarketplaceRows.tsx +0 -21
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { goldToDC, IEquipmentSet, IItem, IMarketplaceItem, MarketplaceAcceptedCurrency } from '@rpg-engine/shared';
|
|
1
|
+
import { formatDCAmount, goldToDC, IEquipmentSet, IItem, IMarketplaceItem, MarketplaceAcceptedCurrency } from '@rpg-engine/shared';
|
|
2
2
|
import { Coins } from 'pixelarticons/react/Coins';
|
|
3
3
|
import { ShoppingBag } from 'pixelarticons/react/ShoppingBag';
|
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -147,6 +147,9 @@ export const ManagmentPanel: React.FC<IManagmentPanelProps> = ({
|
|
|
147
147
|
{opt.label}
|
|
148
148
|
</CurrencyToggleButton>
|
|
149
149
|
))}
|
|
150
|
+
{listingCurrency !== MarketplaceAcceptedCurrency.Gold && price && Number(price) > 0 && (
|
|
151
|
+
<DCPreview>{formatDCAmount(goldToDC(Number(price)))} DC</DCPreview>
|
|
152
|
+
)}
|
|
150
153
|
</CurrencyToggleRow>
|
|
151
154
|
</PriceInputWrapper>
|
|
152
155
|
</Flex>
|
|
@@ -395,3 +398,11 @@ const CurrencyToggleButton = styled.button<{ $active: boolean }>`
|
|
|
395
398
|
color: ${({ $active }) => ($active ? '#f59e0b' : '#ddd')} !important;
|
|
396
399
|
}
|
|
397
400
|
`;
|
|
401
|
+
|
|
402
|
+
const DCPreview = styled.span`
|
|
403
|
+
font-family: 'Press Start 2P', cursive !important;
|
|
404
|
+
font-size: 0.4rem !important;
|
|
405
|
+
color: rgba(167, 139, 250, 0.8) !important;
|
|
406
|
+
white-space: nowrap;
|
|
407
|
+
margin-left: auto;
|
|
408
|
+
`;
|
|
@@ -96,12 +96,6 @@ export const MarketplaceRows: React.FC<IMarketPlaceRowsPropos> = ({
|
|
|
96
96
|
<Ellipsis maxLines={1} maxWidth="200px" fontSize="10px">
|
|
97
97
|
{item.name}
|
|
98
98
|
</Ellipsis>
|
|
99
|
-
{acceptedCurrency === MarketplaceAcceptedCurrency.Dc && (
|
|
100
|
-
<CurrencyBadge $color="#a78bfa">DC only</CurrencyBadge>
|
|
101
|
-
)}
|
|
102
|
-
{acceptedCurrency === MarketplaceAcceptedCurrency.Gold && (
|
|
103
|
-
<CurrencyBadge $color="#fef08a">Gold only</CurrencyBadge>
|
|
104
|
-
)}
|
|
105
99
|
</ItemName>
|
|
106
100
|
<PriceRow>
|
|
107
101
|
{acceptedCurrency !== MarketplaceAcceptedCurrency.Dc && (
|
|
@@ -321,21 +315,6 @@ const GemContainer = styled.p`
|
|
|
321
315
|
font-size: ${uiFonts.size.xsmall} !important;
|
|
322
316
|
`;
|
|
323
317
|
|
|
324
|
-
const CurrencyBadge = styled.span<{ $color: string }>`
|
|
325
|
-
display: inline-block;
|
|
326
|
-
margin-left: 6px;
|
|
327
|
-
padding: 1px 4px;
|
|
328
|
-
font-family: 'Press Start 2P', cursive;
|
|
329
|
-
font-size: 0.38rem;
|
|
330
|
-
color: ${({ $color }) => $color};
|
|
331
|
-
border: 1px solid ${({ $color }) => $color};
|
|
332
|
-
border-radius: 3px;
|
|
333
|
-
opacity: 0.85;
|
|
334
|
-
vertical-align: middle;
|
|
335
|
-
text-transform: uppercase;
|
|
336
|
-
letter-spacing: 0.5px;
|
|
337
|
-
`;
|
|
338
|
-
|
|
339
318
|
const RarityContainer = styled.div<{ item: IItem }>`
|
|
340
319
|
border-color: ${({ item }) => rarityColor(item)};
|
|
341
320
|
box-shadow: ${({ item }) => `0 0 5px 8px ${rarityColor(item)}`} inset,
|