@rpg-engine/long-bow 0.2.47 → 0.2.49
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/shared/Ellipsis.d.ts +3 -2
- package/dist/long-bow.cjs.development.js +22 -19
- 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 -19
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +1 -1
- package/src/components/PropertySelect/PropertySelect.tsx +7 -5
- package/src/components/TimeWidget/DayNightPeriod/DayNightPeriod.tsx +5 -1
- package/src/components/TimeWidget/TimeWidget.tsx +15 -16
- package/src/components/TradingMenu/TradingItemRow.tsx +5 -3
- package/src/components/shared/Ellipsis.tsx +9 -8
package/dist/long-bow.esm.js
CHANGED
|
@@ -27344,10 +27344,12 @@ var Ellipsis = function Ellipsis(_ref) {
|
|
|
27344
27344
|
var children = _ref.children,
|
|
27345
27345
|
maxLines = _ref.maxLines,
|
|
27346
27346
|
maxWidth = _ref.maxWidth,
|
|
27347
|
-
fontSize = _ref.fontSize
|
|
27347
|
+
fontSize = _ref.fontSize,
|
|
27348
|
+
center = _ref.center;
|
|
27348
27349
|
return React.createElement(Container$1, {
|
|
27349
27350
|
maxWidth: maxWidth,
|
|
27350
|
-
fontSize: fontSize
|
|
27351
|
+
fontSize: fontSize,
|
|
27352
|
+
center: center
|
|
27351
27353
|
}, React.createElement("div", {
|
|
27352
27354
|
className: "ellipsis-" + maxLines + "-lines"
|
|
27353
27355
|
}, children));
|
|
@@ -27355,10 +27357,10 @@ var Ellipsis = function Ellipsis(_ref) {
|
|
|
27355
27357
|
var Container$1 = /*#__PURE__*/styled.div.withConfig({
|
|
27356
27358
|
displayName: "Ellipsis__Container",
|
|
27357
27359
|
componentId: "sc-ysrlju-0"
|
|
27358
|
-
})(["
|
|
27359
|
-
return props.fontSize || '1rem';
|
|
27360
|
-
}, function (props) {
|
|
27360
|
+
})([".ellipsis-1-lines{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";", "}.ellipsis-2-lines{display:-webkit-box;max-width:", "px;height:25px;margin:0 auto;line-height:1;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;}.ellipsis-3-lines{display:-webkit-box;max-width:", "px;height:43px;margin:0 auto;line-height:1;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;}"], function (props) {
|
|
27361
27361
|
return props.maxWidth;
|
|
27362
|
+
}, function (props) {
|
|
27363
|
+
return props.center && "margin: 0 auto;";
|
|
27362
27364
|
}, function (props) {
|
|
27363
27365
|
return props.maxWidth;
|
|
27364
27366
|
}, function (props) {
|
|
@@ -27395,10 +27397,11 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
27395
27397
|
}
|
|
27396
27398
|
return '';
|
|
27397
27399
|
};
|
|
27398
|
-
return React.createElement(Container$2, null, React.createElement(TextOverlay, null, React.createElement(Item, null, React.createElement(Ellipsis, {
|
|
27400
|
+
return React.createElement(Container$2, null, React.createElement(TextOverlay, null, React.createElement("p", null, React.createElement(Item, null, React.createElement(Ellipsis, {
|
|
27399
27401
|
maxLines: 1,
|
|
27400
|
-
maxWidth:
|
|
27401
|
-
|
|
27402
|
+
maxWidth: "60%",
|
|
27403
|
+
center: true
|
|
27404
|
+
}, getCurrentSelectionName())))), React.createElement("div", {
|
|
27402
27405
|
className: "rpgui-progress-track"
|
|
27403
27406
|
}), React.createElement(SelectArrow, {
|
|
27404
27407
|
direction: "left",
|
|
@@ -28055,7 +28058,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
28055
28058
|
key: "qty-" + itemId
|
|
28056
28059
|
}, React.createElement(Ellipsis, {
|
|
28057
28060
|
maxLines: 1,
|
|
28058
|
-
maxWidth:
|
|
28061
|
+
maxWidth: "48px"
|
|
28059
28062
|
}, React.createElement(ItemQty, {
|
|
28060
28063
|
className: isFractionalStackQty || isLargerThan999 ? 'small' : 'regular'
|
|
28061
28064
|
}, ' ', stackQty, ' ')));
|
|
@@ -29376,10 +29379,10 @@ var DayNightPeriod = function DayNightPeriod(_ref) {
|
|
|
29376
29379
|
src: periodOfDaySrcFiles[periodOfDay]
|
|
29377
29380
|
}));
|
|
29378
29381
|
};
|
|
29379
|
-
var GifContainer = /*#__PURE__*/styled.
|
|
29382
|
+
var GifContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29380
29383
|
displayName: "DayNightPeriod__GifContainer",
|
|
29381
29384
|
componentId: "sc-10t97fw-0"
|
|
29382
|
-
})(["width:100%;"]);
|
|
29385
|
+
})(["width:100%;img{width:67%;}"]);
|
|
29383
29386
|
|
|
29384
29387
|
var img$c = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAABHCAYAAAA0qHhdAAAAAXNSR0IArs4c6QAABGRJREFUeJztnb9PGzEUx7+JMjC0Uge6tVsVdTghQP0D2qgjzGz8D8woE2LO/5CNOcwlU9WJRCgDYmWJRAYkFgak6wDv5HPsO9/P8J79WUhicr7nzz3bOV8uHbRPXOXN2x++1LUfYnh4uu8AQK+FulLy7hbHxn96vrh22tjW0b7xPVtH+87bkMbnj1/jh6f7TqfBOmKgurwy6MJ10VRuKqNylwMl7wBy3U5WuetBOhg9om6ZSRaqEtvImJ2zRfL4/GA3eXy494LJzNwBmcpc//9w7wUAMJn1ktdt5bbnaj228qw6VeqWGbctUEXNxn40Fj+2/jn5lHpel8xUd+oqcedsUajum2HkNHEiqf1oDAD4/e1HkWrYMF8uE6GTWQ+j6aryBCh2lVhUXt77bXJpP2i/+tE41e1y5uo2W1cVmfHd4rhxiXnbdZEqReiv76/jpE1q2YbOFNmUwDxsYreO9lkLvbrtJSLp+Xy5xN9/g8TBYPSIboltv0uRWXU/X1zjbnGM08t527tUC7aM1B0UbXiryE1KNGHKUu4ZqjKarpLMpAlQkcxkIxIw7xP3DLVBnzldZbISSUgXqvtwkclSJCFNqDpu0mdqOkOUJ5O1SEKSUHVWWyQzRYgkJAml7KTMzBszRYkkJAhVu1ny49rNpuAskuAaw9VtL/d0nikwY1ZybQQb+udQ+gzKZbXFtGqiq3Y63yoR6m770Rg3wyi1gK1iel1dQNbLqazsX9M2dKib1bPNi6wkbNl5M4w2tUulGIwe8fB031nrhH0RCbzGpgrVJxSEaYXfdoWCrdxE1lUNtnJ9+6PpKrmgSxUVm45IyTIB8zncnbPF2th58nMbo+kq9zUX8t5XpC4SCQSZVpkovzy4MWiHvRRJSBFaZj0z8E6xyvQlKwE5sYbMFEQXlvHSd97apNL3YtomZKYgjDKljCFFkBBzyExBBJmCCDIFEWQKIsgURJApiCBTEEGmILqA26q4b3Bsk5CZgjDKdL1/gCQkxJzI5NitNAXXtugC6HC5NL9N3tqE1cn3MGYKIiVT7V4kjCGuqLFy7WIBw61jOAdTFikxp66bPT/YXbsnm4RF2yz0Hmgy67EcLwHDmCnlKC0D99hVmcmslntQZaCYuWYlYPgWmOkeOaeXc5bB5XF+sLs2yeMs05iC+rh5uBfF0sbO17EyHSf3HkkfMzunl3P2QZWB88SHsO246JmtpBmsSuYZoMmsJ+5Egn6CQFIvlHUkrk2GKFO5ZiiJ1AVKyEogPwDj7BbgN8M1zVwBOSIBtyDYC/VBJOAeCFuhvogEigXDTqhPIoESd4LmItQ3kUC5oKxCgc1LtUkEZIsEKvx6wnsU6rNIoFpwmUKJpsVmCVT2ARAuEqgeoJNQoH6pLhLf6gU8EAnUE2QMoPDPSxSV6ypP2T499EIkUG+gzlnaND5lo0pjv5/Ztljt2l/vRALNBl2q+y2Kj92pjTYaIDXWVZVruPree4nEJhqi6ppokGfhP6xr60VVr5O+AAAAAElFTkSuQmCC';
|
|
29385
29388
|
|
|
@@ -29396,19 +29399,19 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
29396
29399
|
var WidgetContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29397
29400
|
displayName: "TimeWidget__WidgetContainer",
|
|
29398
29401
|
componentId: "sc-1ja236h-0"
|
|
29399
|
-
})(["background-image:url(", ");background-repeat:no-repeat;width:
|
|
29402
|
+
})(["background-image:url(", ");background-size:10rem;background-repeat:no-repeat;width:10rem;position:absolute;"], img$c);
|
|
29400
29403
|
var Time = /*#__PURE__*/styled.div.withConfig({
|
|
29401
29404
|
displayName: "TimeWidget__Time",
|
|
29402
29405
|
componentId: "sc-1ja236h-1"
|
|
29403
|
-
})(["
|
|
29406
|
+
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
29404
29407
|
var CloseButton$3 = /*#__PURE__*/styled.p.withConfig({
|
|
29405
29408
|
displayName: "TimeWidget__CloseButton",
|
|
29406
29409
|
componentId: "sc-1ja236h-2"
|
|
29407
|
-
})(["
|
|
29408
|
-
var DayNightContainer = /*#__PURE__*/styled.
|
|
29410
|
+
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
29411
|
+
var DayNightContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29409
29412
|
displayName: "TimeWidget__DayNightContainer",
|
|
29410
29413
|
componentId: "sc-1ja236h-3"
|
|
29411
|
-
})(["top:-
|
|
29414
|
+
})(["margin-top:-0.3rem;margin-left:-0.3rem;"]);
|
|
29412
29415
|
|
|
29413
29416
|
var TradingItemRow = function TradingItemRow(_ref) {
|
|
29414
29417
|
var atlasIMG = _ref.atlasIMG,
|
|
@@ -29434,10 +29437,10 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
29434
29437
|
atlasJSON: atlasJSON,
|
|
29435
29438
|
spriteKey: traderItem.texturePath,
|
|
29436
29439
|
imgScale: 2.5
|
|
29437
|
-
}))), React.createElement(ItemNameContainer, null, React.createElement(NameValue, null, React.createElement(Ellipsis, {
|
|
29440
|
+
}))), React.createElement(ItemNameContainer, null, React.createElement(NameValue, null, React.createElement("p", null, React.createElement(Ellipsis, {
|
|
29438
29441
|
maxLines: 1,
|
|
29439
|
-
maxWidth:
|
|
29440
|
-
}, capitalize(traderItem.name)), React.createElement("p", null, "$", traderItem.price))), React.createElement(QuantityContainer, null, React.createElement(SelectArrow, {
|
|
29442
|
+
maxWidth: "250px"
|
|
29443
|
+
}, capitalize(traderItem.name))), React.createElement("p", null, "$", traderItem.price))), React.createElement(QuantityContainer, null, React.createElement(SelectArrow, {
|
|
29441
29444
|
size: 32,
|
|
29442
29445
|
className: "arrow-selector",
|
|
29443
29446
|
direction: "left",
|