@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.
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  interface IProps {
3
3
  children: React.ReactNode;
4
4
  maxLines: 1 | 2 | 3;
5
- maxWidth: number;
5
+ maxWidth: string;
6
6
  fontSize?: string;
7
+ center?: boolean;
7
8
  }
8
- export declare const Ellipsis: ({ children, maxLines, maxWidth, fontSize, }: IProps) => JSX.Element;
9
+ export declare const Ellipsis: ({ children, maxLines, maxWidth, fontSize, center, }: IProps) => JSX.Element;
9
10
  export {};
@@ -27350,10 +27350,12 @@ var Ellipsis = function Ellipsis(_ref) {
27350
27350
  var children = _ref.children,
27351
27351
  maxLines = _ref.maxLines,
27352
27352
  maxWidth = _ref.maxWidth,
27353
- fontSize = _ref.fontSize;
27353
+ fontSize = _ref.fontSize,
27354
+ center = _ref.center;
27354
27355
  return React__default.createElement(Container$1, {
27355
27356
  maxWidth: maxWidth,
27356
- fontSize: fontSize
27357
+ fontSize: fontSize,
27358
+ center: center
27357
27359
  }, React__default.createElement("div", {
27358
27360
  className: "ellipsis-" + maxLines + "-lines"
27359
27361
  }, children));
@@ -27361,10 +27363,10 @@ var Ellipsis = function Ellipsis(_ref) {
27361
27363
  var Container$1 = /*#__PURE__*/styled.div.withConfig({
27362
27364
  displayName: "Ellipsis__Container",
27363
27365
  componentId: "sc-ysrlju-0"
27364
- })(["p{font-size:", ";}.ellipsis-1-lines{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", "px;}.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) {
27365
- return props.fontSize || '1rem';
27366
- }, function (props) {
27366
+ })([".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) {
27367
27367
  return props.maxWidth;
27368
+ }, function (props) {
27369
+ return props.center && "margin: 0 auto;";
27368
27370
  }, function (props) {
27369
27371
  return props.maxWidth;
27370
27372
  }, function (props) {
@@ -27401,10 +27403,11 @@ var PropertySelect = function PropertySelect(_ref) {
27401
27403
  }
27402
27404
  return '';
27403
27405
  };
27404
- return React__default.createElement(Container$2, null, React__default.createElement(TextOverlay, null, React__default.createElement(Item, null, React__default.createElement(Ellipsis, {
27406
+ return React__default.createElement(Container$2, null, React__default.createElement(TextOverlay, null, React__default.createElement("p", null, React__default.createElement(Item, null, React__default.createElement(Ellipsis, {
27405
27407
  maxLines: 1,
27406
- maxWidth: 200
27407
- }, getCurrentSelectionName()))), React__default.createElement("div", {
27408
+ maxWidth: "60%",
27409
+ center: true
27410
+ }, getCurrentSelectionName())))), React__default.createElement("div", {
27408
27411
  className: "rpgui-progress-track"
27409
27412
  }), React__default.createElement(SelectArrow, {
27410
27413
  direction: "left",
@@ -28060,7 +28063,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
28060
28063
  key: "qty-" + itemId
28061
28064
  }, React__default.createElement(Ellipsis, {
28062
28065
  maxLines: 1,
28063
- maxWidth: 48
28066
+ maxWidth: "48px"
28064
28067
  }, React__default.createElement(ItemQty, {
28065
28068
  className: isFractionalStackQty || isLargerThan999 ? 'small' : 'regular'
28066
28069
  }, ' ', stackQty, ' ')));
@@ -29378,10 +29381,10 @@ var DayNightPeriod = function DayNightPeriod(_ref) {
29378
29381
  src: periodOfDaySrcFiles[periodOfDay]
29379
29382
  }));
29380
29383
  };
29381
- var GifContainer = /*#__PURE__*/styled.span.withConfig({
29384
+ var GifContainer = /*#__PURE__*/styled.div.withConfig({
29382
29385
  displayName: "DayNightPeriod__GifContainer",
29383
29386
  componentId: "sc-10t97fw-0"
29384
- })(["width:100%;"]);
29387
+ })(["width:100%;img{width:67%;}"]);
29385
29388
 
29386
29389
  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';
29387
29390
 
@@ -29398,19 +29401,19 @@ var TimeWidget = function TimeWidget(_ref) {
29398
29401
  var WidgetContainer = /*#__PURE__*/styled.div.withConfig({
29399
29402
  displayName: "TimeWidget__WidgetContainer",
29400
29403
  componentId: "sc-1ja236h-0"
29401
- })(["background-image:url(", ");background-repeat:no-repeat;width:100%;position:absolute;margin:20px;"], img$c);
29404
+ })(["background-image:url(", ");background-size:10rem;background-repeat:no-repeat;width:10rem;position:absolute;"], img$c);
29402
29405
  var Time = /*#__PURE__*/styled.div.withConfig({
29403
29406
  displayName: "TimeWidget__Time",
29404
29407
  componentId: "sc-1ja236h-1"
29405
- })(["width:100%;top:-6.95rem;right:-4.4rem;position:relative;font-size:7.5px;color:white;"]);
29408
+ })(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
29406
29409
  var CloseButton$3 = /*#__PURE__*/styled.p.withConfig({
29407
29410
  displayName: "TimeWidget__CloseButton",
29408
29411
  componentId: "sc-1ja236h-2"
29409
- })(["width:100%;position:relative;top:-1rem;right:-6.9rem;font-size:", " !important;z-index:1;"], uiFonts.size.xxsmall);
29410
- var DayNightContainer = /*#__PURE__*/styled.span.withConfig({
29412
+ })(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
29413
+ var DayNightContainer = /*#__PURE__*/styled.div.withConfig({
29411
29414
  displayName: "TimeWidget__DayNightContainer",
29412
29415
  componentId: "sc-1ja236h-3"
29413
- })(["top:-41px;left:-3px;position:relative;"]);
29416
+ })(["margin-top:-0.3rem;margin-left:-0.3rem;"]);
29414
29417
 
29415
29418
  var TradingItemRow = function TradingItemRow(_ref) {
29416
29419
  var atlasIMG = _ref.atlasIMG,
@@ -29436,10 +29439,10 @@ var TradingItemRow = function TradingItemRow(_ref) {
29436
29439
  atlasJSON: atlasJSON,
29437
29440
  spriteKey: traderItem.texturePath,
29438
29441
  imgScale: 2.5
29439
- }))), React__default.createElement(ItemNameContainer, null, React__default.createElement(NameValue, null, React__default.createElement(Ellipsis, {
29442
+ }))), React__default.createElement(ItemNameContainer, null, React__default.createElement(NameValue, null, React__default.createElement("p", null, React__default.createElement(Ellipsis, {
29440
29443
  maxLines: 1,
29441
- maxWidth: 250
29442
- }, capitalize(traderItem.name)), React__default.createElement("p", null, "$", traderItem.price))), React__default.createElement(QuantityContainer, null, React__default.createElement(SelectArrow, {
29444
+ maxWidth: "250px"
29445
+ }, capitalize(traderItem.name))), React__default.createElement("p", null, "$", traderItem.price))), React__default.createElement(QuantityContainer, null, React__default.createElement(SelectArrow, {
29443
29446
  size: 32,
29444
29447
  className: "arrow-selector",
29445
29448
  direction: "left",