@rpg-engine/long-bow 0.8.216 → 0.8.218
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/components/Store/Store.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +8 -16
- 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 +8 -16
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Store/Store.tsx +4 -36
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ export interface IStoreProps {
|
|
|
51
51
|
fullScreen?: boolean;
|
|
52
52
|
/** Override the DraggableContainer width (e.g. "90vw"). Defaults to "1000px". */
|
|
53
53
|
containerWidth?: string;
|
|
54
|
-
/** Override the DraggableContainer height (e.g. "80vh"). Defaults to "
|
|
54
|
+
/** Override the DraggableContainer height (e.g. "80vh"). Defaults to "80vh" so the inner scroll area is bounded. */
|
|
55
55
|
containerHeight?: string;
|
|
56
56
|
packsBadge?: string;
|
|
57
57
|
featuredItems?: IFeaturedItem[];
|
|
@@ -412,7 +412,7 @@ export const Store: React.FC<IStoreProps> = ({
|
|
|
412
412
|
onCloseButton={onClose}
|
|
413
413
|
width={containerWidth ?? "1000px"}
|
|
414
414
|
minWidth="700px"
|
|
415
|
-
height={containerHeight ?? "
|
|
415
|
+
height={containerHeight ?? "80vh"}
|
|
416
416
|
type={RPGUIContainerTypes.Framed}
|
|
417
417
|
cancelDrag="[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button"
|
|
418
418
|
isFullScreen={fullScreen}
|
|
@@ -528,19 +528,9 @@ export const Store: React.FC<IStoreProps> = ({
|
|
|
528
528
|
</MainContent>
|
|
529
529
|
{cartItems.length > 0 && (
|
|
530
530
|
<Footer>
|
|
531
|
-
<CartSummary>
|
|
532
|
-
<CartInfo>
|
|
533
|
-
<span>Items in cart:</span>
|
|
534
|
-
<span>{getTotalItems()}</span>
|
|
535
|
-
</CartInfo>
|
|
536
|
-
<CartInfo>
|
|
537
|
-
<span>Total:</span>
|
|
538
|
-
<span>{currencySymbol}{getTotalPrice().toFixed(2)}</span>
|
|
539
|
-
</CartInfo>
|
|
540
|
-
</CartSummary>
|
|
541
531
|
<CTAButton
|
|
542
532
|
icon={<FaShoppingCart />}
|
|
543
|
-
label={`
|
|
533
|
+
label={`Checkout · ${getTotalItems()} item${getTotalItems() !== 1 ? 's' : ''} (${currencySymbol}${getTotalPrice().toFixed(2)})`}
|
|
544
534
|
onClick={handleOpenCart}
|
|
545
535
|
fullWidth
|
|
546
536
|
/>
|
|
@@ -614,34 +604,12 @@ const TabContent = styled.div`
|
|
|
614
604
|
`;
|
|
615
605
|
|
|
616
606
|
const Footer = styled.div`
|
|
617
|
-
|
|
618
|
-
flex-direction: column;
|
|
619
|
-
gap: 1rem;
|
|
620
|
-
padding: 1rem;
|
|
607
|
+
padding: 0.5rem;
|
|
621
608
|
border-top: 2px solid #f59e0b;
|
|
622
609
|
background: rgba(0, 0, 0, 0.2);
|
|
623
610
|
flex-shrink: 0;
|
|
624
611
|
`;
|
|
625
612
|
|
|
626
|
-
const CartSummary = styled.div`
|
|
627
|
-
display: flex;
|
|
628
|
-
flex-direction: column;
|
|
629
|
-
gap: 0.5rem;
|
|
630
|
-
`;
|
|
631
|
-
|
|
632
|
-
const CartInfo = styled.div`
|
|
633
|
-
display: flex;
|
|
634
|
-
align-items: center;
|
|
635
|
-
gap: 0.75rem;
|
|
636
|
-
font-family: 'Press Start 2P', cursive;
|
|
637
|
-
font-size: 0.75rem;
|
|
638
|
-
color: #ffffff;
|
|
639
|
-
|
|
640
|
-
span:last-child {
|
|
641
|
-
color: #fef08a;
|
|
642
|
-
}
|
|
643
|
-
`;
|
|
644
|
-
|
|
645
613
|
const TabLabelWithBadge = styled.span`
|
|
646
614
|
display: inline-flex;
|
|
647
615
|
align-items: center;
|