@rpg-engine/long-bow 0.8.218 → 0.8.219
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/DraggableContainer.d.ts +6 -0
- package/dist/components/Store/Store.d.ts +7 -1
- package/dist/long-bow.cjs.development.js +22 -4
- 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 +22 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DraggableContainer.tsx +24 -0
- package/src/components/Store/Store.tsx +14 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -2468,6 +2468,10 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
2468
2468
|
height = _ref.height,
|
|
2469
2469
|
minHeight = _ref.minHeight,
|
|
2470
2470
|
minWidth = _ref.minWidth,
|
|
2471
|
+
mobileWidth = _ref.mobileWidth,
|
|
2472
|
+
mobileHeight = _ref.mobileHeight,
|
|
2473
|
+
_ref$mobileBreakpoint = _ref.mobileBreakpoint,
|
|
2474
|
+
mobileBreakpoint = _ref$mobileBreakpoint === void 0 ? 768 : _ref$mobileBreakpoint,
|
|
2471
2475
|
className = _ref.className,
|
|
2472
2476
|
_ref$type = _ref.type,
|
|
2473
2477
|
type = _ref$type === void 0 ? RPGUIContainerTypes.FramedGold : _ref$type,
|
|
@@ -2544,6 +2548,9 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
2544
2548
|
height: height || 'auto',
|
|
2545
2549
|
minWidth: minWidth,
|
|
2546
2550
|
minHeight: minHeight,
|
|
2551
|
+
mobileWidth: mobileWidth,
|
|
2552
|
+
mobileHeight: mobileHeight,
|
|
2553
|
+
mobileBreakpoint: mobileBreakpoint,
|
|
2547
2554
|
className: "rpgui-container " + type + " " + className,
|
|
2548
2555
|
isFullScreen: isFullScreen,
|
|
2549
2556
|
opacity: opacity
|
|
@@ -2560,7 +2567,7 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
2560
2567
|
var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
2561
2568
|
displayName: "DraggableContainer__Container",
|
|
2562
2569
|
componentId: "sc-184mpyl-0"
|
|
2563
|
-
})(["height:", ";width:", ";min-width:", ";min-height:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;", " ", " &.rpgui-container{padding-top:1.5rem;}"], function (props) {
|
|
2570
|
+
})(["height:", ";width:", ";min-width:", ";min-height:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;", " ", " ", " &.rpgui-container{padding-top:1.5rem;}"], function (props) {
|
|
2564
2571
|
return props.height;
|
|
2565
2572
|
}, function (_ref2) {
|
|
2566
2573
|
var width = _ref2.width;
|
|
@@ -2577,6 +2584,11 @@ var Container$a = /*#__PURE__*/styled.div.withConfig({
|
|
|
2577
2584
|
}, function (_ref6) {
|
|
2578
2585
|
var isFullScreen = _ref6.isFullScreen;
|
|
2579
2586
|
return isFullScreen && css(["justify-content:center;align-items:flex-start;align-content:flex-start;"]);
|
|
2587
|
+
}, function (_ref7) {
|
|
2588
|
+
var mobileWidth = _ref7.mobileWidth,
|
|
2589
|
+
mobileHeight = _ref7.mobileHeight,
|
|
2590
|
+
mobileBreakpoint = _ref7.mobileBreakpoint;
|
|
2591
|
+
return (mobileWidth || mobileHeight) && css(["@media (max-width:", "px){", " ", "}"], mobileBreakpoint != null ? mobileBreakpoint : 768, mobileWidth && "width: " + mobileWidth + "; min-width: unset;", mobileHeight && "height: " + mobileHeight + "; min-height: unset;");
|
|
2580
2592
|
});
|
|
2581
2593
|
var CloseButton$4 = /*#__PURE__*/styled.div.withConfig({
|
|
2582
2594
|
displayName: "DraggableContainer__CloseButton",
|
|
@@ -2593,8 +2605,8 @@ var Title$1 = /*#__PURE__*/styled.h1.withConfig({
|
|
|
2593
2605
|
var Icon = /*#__PURE__*/styled.img.withConfig({
|
|
2594
2606
|
displayName: "DraggableContainer__Icon",
|
|
2595
2607
|
componentId: "sc-184mpyl-4"
|
|
2596
|
-
})(["color:white;z-index:22;font-size:", ";width:", ";margin-right:0.5rem;"], uiFonts.size.xsmall, function (
|
|
2597
|
-
var width =
|
|
2608
|
+
})(["color:white;z-index:22;font-size:", ";width:", ";margin-right:0.5rem;"], uiFonts.size.xsmall, function (_ref8) {
|
|
2609
|
+
var width = _ref8.width;
|
|
2598
2610
|
return width;
|
|
2599
2611
|
});
|
|
2600
2612
|
|
|
@@ -39733,6 +39745,9 @@ var Store = function Store(_ref) {
|
|
|
39733
39745
|
fullScreen = _ref$fullScreen === void 0 ? false : _ref$fullScreen,
|
|
39734
39746
|
containerWidth = _ref.containerWidth,
|
|
39735
39747
|
containerHeight = _ref.containerHeight,
|
|
39748
|
+
mobileContainerWidth = _ref.mobileContainerWidth,
|
|
39749
|
+
mobileContainerHeight = _ref.mobileContainerHeight,
|
|
39750
|
+
mobileBreakpoint = _ref.mobileBreakpoint,
|
|
39736
39751
|
_ref$packsTabLabel = _ref.packsTabLabel,
|
|
39737
39752
|
packsTabLabel = _ref$packsTabLabel === void 0 ? 'Packs' : _ref$packsTabLabel,
|
|
39738
39753
|
packsBadge = _ref.packsBadge,
|
|
@@ -40072,7 +40087,10 @@ var Store = function Store(_ref) {
|
|
|
40072
40087
|
onCloseButton: onClose,
|
|
40073
40088
|
width: containerWidth != null ? containerWidth : "1000px",
|
|
40074
40089
|
minWidth: "700px",
|
|
40075
|
-
height: containerHeight != null ? containerHeight : "
|
|
40090
|
+
height: containerHeight != null ? containerHeight : "min(85vh, 900px)",
|
|
40091
|
+
mobileWidth: mobileContainerWidth != null ? mobileContainerWidth : "95vw",
|
|
40092
|
+
mobileHeight: mobileContainerHeight != null ? mobileContainerHeight : "95vh",
|
|
40093
|
+
mobileBreakpoint: mobileBreakpoint,
|
|
40076
40094
|
type: RPGUIContainerTypes.Framed,
|
|
40077
40095
|
cancelDrag: "[class*='Store__Container'], [class*='CartView'], [class*='StoreItemDetails'], .close-button",
|
|
40078
40096
|
isFullScreen: fullScreen
|