@rpg-engine/long-bow 0.8.213 → 0.8.214
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 +4 -0
- package/dist/long-bow.cjs.development.js +4 -2
- 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 +4 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Store/Store.tsx +8 -2
package/package.json
CHANGED
|
@@ -49,6 +49,10 @@ export interface IStoreProps {
|
|
|
49
49
|
customHistoryContent?: React.ReactNode;
|
|
50
50
|
/** When true the store renders full-screen (useful on mobile). */
|
|
51
51
|
fullScreen?: boolean;
|
|
52
|
+
/** Override the DraggableContainer width (e.g. "90vw"). Defaults to "1000px". */
|
|
53
|
+
containerWidth?: string;
|
|
54
|
+
/** Override the DraggableContainer height (e.g. "80vh"). Defaults to "auto". */
|
|
55
|
+
containerHeight?: string;
|
|
52
56
|
packsBadge?: string;
|
|
53
57
|
featuredItems?: IFeaturedItem[];
|
|
54
58
|
onQuickBuy?: (item: IProductBlueprint, quantity?: number) => void;
|
|
@@ -110,6 +114,8 @@ export const Store: React.FC<IStoreProps> = ({
|
|
|
110
114
|
customWalletContent,
|
|
111
115
|
customHistoryContent,
|
|
112
116
|
fullScreen = false,
|
|
117
|
+
containerWidth,
|
|
118
|
+
containerHeight,
|
|
113
119
|
packsTabLabel = 'Packs',
|
|
114
120
|
packsBadge,
|
|
115
121
|
featuredItems,
|
|
@@ -404,9 +410,9 @@ export const Store: React.FC<IStoreProps> = ({
|
|
|
404
410
|
<DraggableContainer
|
|
405
411
|
title="Store"
|
|
406
412
|
onCloseButton={onClose}
|
|
407
|
-
width="1000px"
|
|
413
|
+
width={containerWidth ?? "1000px"}
|
|
408
414
|
minWidth="700px"
|
|
409
|
-
height="auto"
|
|
415
|
+
height={containerHeight ?? "auto"}
|
|
410
416
|
type={RPGUIContainerTypes.Framed}
|
|
411
417
|
cancelDrag="[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button"
|
|
412
418
|
isFullScreen={fullScreen}
|