@rpg-engine/long-bow 0.2.47 → 0.2.48
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 +15 -12
- 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 +15 -12
- 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/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, ' ')));
|
|
@@ -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",
|