@rpg-engine/long-bow 0.3.92 → 0.3.93
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/Dropdown.d.ts +1 -1
- package/dist/components/Marketplace/Marketplace.d.ts +20 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +12 -0
- package/dist/components/Marketplace/__mocks__/index.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/long-bow.cjs.development.js +187 -15
- 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 +186 -16
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/Marketplace.stories.d.ts +4 -0
- package/dist/stories/MarketplaceRows.stories.d.ts +4 -0
- package/package.json +2 -2
- package/src/components/CraftBook/CraftBook.tsx +16 -0
- package/src/components/CraftBook/MockItems.ts +13 -1
- package/src/components/Dropdown.tsx +4 -2
- package/src/components/Marketplace/Marketplace.tsx +132 -0
- package/src/components/Marketplace/MarketplaceRows.tsx +171 -0
- package/src/components/Marketplace/__mocks__/index.tsx +65 -0
- package/src/components/shared/Ellipsis.tsx +3 -0
- package/src/index.tsx +2 -0
- package/src/stories/Marketplace.stories.tsx +42 -0
- package/src/stories/MarketplaceRows.stories.tsx +28 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -12352,14 +12352,20 @@ var Ellipsis = function Ellipsis(_ref) {
|
|
|
12352
12352
|
var Container$1 = /*#__PURE__*/styled.div.withConfig({
|
|
12353
12353
|
displayName: "Ellipsis__Container",
|
|
12354
12354
|
componentId: "sc-ysrlju-0"
|
|
12355
|
-
})([".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) {
|
|
12355
|
+
})([".ellipsis-1-lines{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:", ";font-size:", ";", "}.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;font-size:", ";}.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;font-size:", ";}"], function (props) {
|
|
12356
12356
|
return props.maxWidth;
|
|
12357
|
+
}, function (props) {
|
|
12358
|
+
return props.fontSize;
|
|
12357
12359
|
}, function (props) {
|
|
12358
12360
|
return props.center && "margin: 0 auto;";
|
|
12359
12361
|
}, function (props) {
|
|
12360
12362
|
return props.maxWidth;
|
|
12363
|
+
}, function (props) {
|
|
12364
|
+
return props.fontSize;
|
|
12361
12365
|
}, function (props) {
|
|
12362
12366
|
return props.maxWidth;
|
|
12367
|
+
}, function (props) {
|
|
12368
|
+
return props.fontSize;
|
|
12363
12369
|
});
|
|
12364
12370
|
|
|
12365
12371
|
var PropertySelect = function PropertySelect(_ref) {
|
|
@@ -14160,6 +14166,7 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
14160
14166
|
}), React.createElement(RadioInputScroller, {
|
|
14161
14167
|
className: "inputRadioCraftBook"
|
|
14162
14168
|
}, craftablesItems == null ? void 0 : craftablesItems.map(function (option, index) {
|
|
14169
|
+
var _option$levelIsOk, _option$minCraftingRe, _option$minCraftingRe2, _option$minCraftingRe3, _option$minCraftingRe4;
|
|
14163
14170
|
return React.createElement(RadioOptionsWrapper, {
|
|
14164
14171
|
key: index
|
|
14165
14172
|
}, React.createElement(SpriteAtlasWrapper, null, React.createElement(ItemInfoWrapper, {
|
|
@@ -14223,7 +14230,9 @@ var CraftBook = function CraftBook(_ref) {
|
|
|
14223
14230
|
spriteKey: option.texturePath,
|
|
14224
14231
|
imgScale: 1
|
|
14225
14232
|
}), React.createElement(StyledItem, null, modifyString(option.key), " (", option.qty, "x)"));
|
|
14226
|
-
})
|
|
14233
|
+
}), isShown && isShown.index === index && React.createElement(MinCraftingRequirementsText, {
|
|
14234
|
+
levelIsOk: (_option$levelIsOk = option == null ? void 0 : option.levelIsOk) != null ? _option$levelIsOk : false
|
|
14235
|
+
}, modifyString(((_option$minCraftingRe = option == null ? void 0 : (_option$minCraftingRe2 = option.minCraftingRequirements) == null ? void 0 : _option$minCraftingRe2[0]) != null ? _option$minCraftingRe : '') + " " + ((_option$minCraftingRe3 = option == null ? void 0 : (_option$minCraftingRe4 = option.minCraftingRequirements) == null ? void 0 : _option$minCraftingRe4[1]) != null ? _option$minCraftingRe3 : '')))));
|
|
14227
14236
|
})), React.createElement(ButtonWrapper, null, React.createElement(Button, {
|
|
14228
14237
|
buttonType: ButtonTypes.RPGUIButton,
|
|
14229
14238
|
onPointerDown: onClose
|
|
@@ -14266,6 +14275,13 @@ var ButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
14266
14275
|
displayName: "CraftBook__ButtonWrapper",
|
|
14267
14276
|
componentId: "sc-19q95ue-7"
|
|
14268
14277
|
})(["display:flex;justify-content:space-around;padding-top:20px;width:100%;button{padding:0px 50px;}"]);
|
|
14278
|
+
var MinCraftingRequirementsText = /*#__PURE__*/styled.div.withConfig({
|
|
14279
|
+
displayName: "CraftBook__MinCraftingRequirementsText",
|
|
14280
|
+
componentId: "sc-19q95ue-8"
|
|
14281
|
+
})(["font-size:0.6rem;font-weight:bold;color:", ";"], function (_ref2) {
|
|
14282
|
+
var levelIsOk = _ref2.levelIsOk;
|
|
14283
|
+
return levelIsOk ? '#72f100' : 'gray';
|
|
14284
|
+
});
|
|
14269
14285
|
|
|
14270
14286
|
var DropdownSelectorContainer = function DropdownSelectorContainer(_ref) {
|
|
14271
14287
|
var title = _ref.title,
|
|
@@ -15470,6 +15486,160 @@ var ListElement$1 = /*#__PURE__*/styled.li.withConfig({
|
|
|
15470
15486
|
componentId: "sc-i9097t-1"
|
|
15471
15487
|
})(["margin-right:0.5rem;"]);
|
|
15472
15488
|
|
|
15489
|
+
var MarketplaceRows = function MarketplaceRows(_ref) {
|
|
15490
|
+
var atlasJSON = _ref.atlasJSON,
|
|
15491
|
+
atlasIMG = _ref.atlasIMG,
|
|
15492
|
+
item = _ref.item,
|
|
15493
|
+
itemPrice = _ref.itemPrice,
|
|
15494
|
+
equipmentSet = _ref.equipmentSet,
|
|
15495
|
+
scale = _ref.scale,
|
|
15496
|
+
onHandleClick = _ref.onHandleClick;
|
|
15497
|
+
return React.createElement(MarketPlaceWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer, null, React.createElement(ItemInfoWrapper, {
|
|
15498
|
+
item: item,
|
|
15499
|
+
atlasIMG: atlasIMG,
|
|
15500
|
+
atlasJSON: atlasJSON,
|
|
15501
|
+
equipmentSet: equipmentSet,
|
|
15502
|
+
scale: scale
|
|
15503
|
+
}, React.createElement(SpriteFromAtlas, {
|
|
15504
|
+
atlasIMG: atlasIMG,
|
|
15505
|
+
atlasJSON: atlasJSON,
|
|
15506
|
+
spriteKey: getItemTextureKeyPath({
|
|
15507
|
+
key: item.key,
|
|
15508
|
+
stackQty: item.stackQty || 1,
|
|
15509
|
+
texturePath: item.texturePath,
|
|
15510
|
+
isStackable: item.isStackable
|
|
15511
|
+
}, atlasJSON),
|
|
15512
|
+
imgScale: 2
|
|
15513
|
+
}))), React.createElement(PriceValue, null, React.createElement("p", null, React.createElement(Ellipsis, {
|
|
15514
|
+
maxLines: 1,
|
|
15515
|
+
maxWidth: "150px",
|
|
15516
|
+
fontSize: "10px"
|
|
15517
|
+
}, item.name)))), React.createElement(QuantityContainer, null, React.createElement(QuantityDisplay, null, React.createElement(TextOverlay$1, null, React.createElement(Item$1, null, React.createElement(Ellipsis, {
|
|
15518
|
+
maxLines: 1,
|
|
15519
|
+
maxWidth: "150px",
|
|
15520
|
+
fontSize: "10px"
|
|
15521
|
+
}, item.rarity))))), React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer, null, React.createElement(SpriteFromAtlas, {
|
|
15522
|
+
atlasIMG: atlasIMG,
|
|
15523
|
+
atlasJSON: atlasJSON,
|
|
15524
|
+
spriteKey: 'others/gold-coin-qty-4.png',
|
|
15525
|
+
imgScale: 2
|
|
15526
|
+
})), React.createElement(PriceValue, null, React.createElement("p", null, React.createElement(Ellipsis, {
|
|
15527
|
+
maxLines: 1,
|
|
15528
|
+
maxWidth: "150px",
|
|
15529
|
+
fontSize: "10px"
|
|
15530
|
+
}, "$", itemPrice)))), React.createElement(ButtonContainer$1, null, React.createElement(Button, {
|
|
15531
|
+
buttonType: ButtonTypes.RPGUIButton,
|
|
15532
|
+
onClick: function onClick() {
|
|
15533
|
+
return onHandleClick(item.name);
|
|
15534
|
+
}
|
|
15535
|
+
}, "Buy")));
|
|
15536
|
+
};
|
|
15537
|
+
var MarketPlaceWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
15538
|
+
displayName: "MarketplaceRows__MarketPlaceWrapper",
|
|
15539
|
+
componentId: "sc-wmpr1o-0"
|
|
15540
|
+
})(["margin:auto;display:grid;grid-template-columns:35% 20% 20% 25%;&:hover{background-color:", ";}padding:0.5rem;p{font-size:0.8rem;}"], uiColors.darkGray);
|
|
15541
|
+
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15542
|
+
displayName: "MarketplaceRows__ItemIconContainer",
|
|
15543
|
+
componentId: "sc-wmpr1o-1"
|
|
15544
|
+
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
15545
|
+
var SpriteContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15546
|
+
displayName: "MarketplaceRows__SpriteContainer",
|
|
15547
|
+
componentId: "sc-wmpr1o-2"
|
|
15548
|
+
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
15549
|
+
var Item$1 = /*#__PURE__*/styled.span.withConfig({
|
|
15550
|
+
displayName: "MarketplaceRows__Item",
|
|
15551
|
+
componentId: "sc-wmpr1o-3"
|
|
15552
|
+
})(["color:white;text-align:center;z-index:1;width:100%;"]);
|
|
15553
|
+
var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15554
|
+
displayName: "MarketplaceRows__TextOverlay",
|
|
15555
|
+
componentId: "sc-wmpr1o-4"
|
|
15556
|
+
})(["width:100%;position:relative;"]);
|
|
15557
|
+
var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15558
|
+
displayName: "MarketplaceRows__QuantityContainer",
|
|
15559
|
+
componentId: "sc-wmpr1o-5"
|
|
15560
|
+
})(["position:relative;display:flex;min-width:100px;justify-content:center;align-items:center;"]);
|
|
15561
|
+
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
15562
|
+
displayName: "MarketplaceRows__QuantityDisplay",
|
|
15563
|
+
componentId: "sc-wmpr1o-6"
|
|
15564
|
+
})(["font-size:", ";"], uiFonts.size.small);
|
|
15565
|
+
var PriceValue = /*#__PURE__*/styled.div.withConfig({
|
|
15566
|
+
displayName: "MarketplaceRows__PriceValue",
|
|
15567
|
+
componentId: "sc-wmpr1o-7"
|
|
15568
|
+
})(["margin-left:40px;"]);
|
|
15569
|
+
var ButtonContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15570
|
+
displayName: "MarketplaceRows__ButtonContainer",
|
|
15571
|
+
componentId: "sc-wmpr1o-8"
|
|
15572
|
+
})(["margin:auto;"]);
|
|
15573
|
+
|
|
15574
|
+
var Marketplace = function Marketplace(_ref) {
|
|
15575
|
+
var items = _ref.items,
|
|
15576
|
+
atlasIMG = _ref.atlasIMG,
|
|
15577
|
+
atlasJSON = _ref.atlasJSON,
|
|
15578
|
+
onClose = _ref.onClose,
|
|
15579
|
+
optionsType = _ref.optionsType,
|
|
15580
|
+
optionsRarity = _ref.optionsRarity,
|
|
15581
|
+
optionsPrice = _ref.optionsPrice,
|
|
15582
|
+
onChangeType = _ref.onChangeType,
|
|
15583
|
+
onChangeRarity = _ref.onChangeRarity,
|
|
15584
|
+
onChangeOrder = _ref.onChangeOrder,
|
|
15585
|
+
onChangeNameInput = _ref.onChangeNameInput,
|
|
15586
|
+
scale = _ref.scale,
|
|
15587
|
+
equipmentSet = _ref.equipmentSet,
|
|
15588
|
+
onHandleClick = _ref.onHandleClick;
|
|
15589
|
+
return React.createElement(DraggableContainer, {
|
|
15590
|
+
type: RPGUIContainerTypes.Framed,
|
|
15591
|
+
onCloseButton: function onCloseButton() {
|
|
15592
|
+
if (onClose) onClose();
|
|
15593
|
+
},
|
|
15594
|
+
width: "800px",
|
|
15595
|
+
cancelDrag: "#MarketContainer",
|
|
15596
|
+
scale: scale
|
|
15597
|
+
}, React.createElement(React.Fragment, null, React.createElement(InputWrapper, null, React.createElement("p", null, " Search By Name"), React.createElement(Input, {
|
|
15598
|
+
onChange: onChangeNameInput,
|
|
15599
|
+
placeholder: 'Search...'
|
|
15600
|
+
})), React.createElement(WrapperContainer, null, React.createElement(StyledDropdown, {
|
|
15601
|
+
options: optionsType,
|
|
15602
|
+
onChange: onChangeType,
|
|
15603
|
+
width: '220px'
|
|
15604
|
+
}), React.createElement(StyledDropdown, {
|
|
15605
|
+
options: optionsRarity,
|
|
15606
|
+
onChange: onChangeRarity,
|
|
15607
|
+
width: '220px'
|
|
15608
|
+
}), React.createElement(StyledDropdown, {
|
|
15609
|
+
options: optionsPrice,
|
|
15610
|
+
onChange: onChangeOrder,
|
|
15611
|
+
width: '220px'
|
|
15612
|
+
})), React.createElement(ItemComponentScrollWrapper, {
|
|
15613
|
+
id: "MarketContainer"
|
|
15614
|
+
}, items == null ? void 0 : items.map(function (item, index) {
|
|
15615
|
+
return React.createElement(MarketplaceRows, {
|
|
15616
|
+
key: item.key + "_" + index,
|
|
15617
|
+
atlasIMG: atlasIMG,
|
|
15618
|
+
atlasJSON: atlasJSON,
|
|
15619
|
+
item: item,
|
|
15620
|
+
itemPrice: 10,
|
|
15621
|
+
equipmentSet: equipmentSet,
|
|
15622
|
+
onHandleClick: onHandleClick
|
|
15623
|
+
});
|
|
15624
|
+
}))));
|
|
15625
|
+
};
|
|
15626
|
+
var InputWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
15627
|
+
displayName: "Marketplace__InputWrapper",
|
|
15628
|
+
componentId: "sc-h904b1-0"
|
|
15629
|
+
})(["width:95%;display:flex;justify-content:flex-start;align-items:center;margin:auto;margin-bottom:10px;p{width:auto;margin-right:20px;}input{width:68%;height:10px;}"]);
|
|
15630
|
+
var WrapperContainer = /*#__PURE__*/styled.div.withConfig({
|
|
15631
|
+
displayName: "Marketplace__WrapperContainer",
|
|
15632
|
+
componentId: "sc-h904b1-1"
|
|
15633
|
+
})(["display:grid;grid-template-columns:30% 30% 30%;justify-content:space-between;width:90%;margin-left:10px;.rpgui-content .rpgui-dropdown-imp-header{padding:0px 10px 0 !important;}"]);
|
|
15634
|
+
var ItemComponentScrollWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
15635
|
+
displayName: "Marketplace__ItemComponentScrollWrapper",
|
|
15636
|
+
componentId: "sc-h904b1-2"
|
|
15637
|
+
})(["overflow-y:scroll;height:390px;width:100%;margin-top:1rem;"]);
|
|
15638
|
+
var StyledDropdown = /*#__PURE__*/styled(Dropdown).withConfig({
|
|
15639
|
+
displayName: "Marketplace__StyledDropdown",
|
|
15640
|
+
componentId: "sc-h904b1-3"
|
|
15641
|
+
})(["margin:3px !important;width:170px !important;"]);
|
|
15642
|
+
|
|
15473
15643
|
var ProgressBar = function ProgressBar(_ref) {
|
|
15474
15644
|
var max = _ref.max,
|
|
15475
15645
|
value = _ref.value,
|
|
@@ -15494,7 +15664,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
15494
15664
|
percentageWidth: percentageWidth,
|
|
15495
15665
|
minWidth: minWidth,
|
|
15496
15666
|
style: style
|
|
15497
|
-
}, displayText && React.createElement(TextOverlay$
|
|
15667
|
+
}, displayText && React.createElement(TextOverlay$2, null, React.createElement(ProgressBarText, null, value, "/", max)), React.createElement("div", {
|
|
15498
15668
|
className: " rpgui-progress-track"
|
|
15499
15669
|
}, React.createElement("div", {
|
|
15500
15670
|
className: "rpgui-progress-fill " + color + " ",
|
|
@@ -15512,7 +15682,7 @@ var ProgressBarText = /*#__PURE__*/styled.span.withConfig({
|
|
|
15512
15682
|
displayName: "ProgressBar__ProgressBarText",
|
|
15513
15683
|
componentId: "sc-qa6fzh-0"
|
|
15514
15684
|
})(["font-size:", " !important;color:white;text-align:center;z-index:1;position:absolute;left:50%;transform:translateX(-50%);top:12px;"], uiFonts.size.small);
|
|
15515
|
-
var TextOverlay$
|
|
15685
|
+
var TextOverlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
15516
15686
|
displayName: "ProgressBar__TextOverlay",
|
|
15517
15687
|
componentId: "sc-qa6fzh-1"
|
|
15518
15688
|
})(["width:100%;position:relative;"]);
|
|
@@ -15890,7 +16060,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
15890
16060
|
}
|
|
15891
16061
|
var nextLevelSPWillbe = skillPoints + skillPointsToNextLevel;
|
|
15892
16062
|
var ratio = skillPoints / nextLevelSPWillbe * 100;
|
|
15893
|
-
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level)), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
16063
|
+
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", level)), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$1, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
15894
16064
|
atlasIMG: atlasIMG,
|
|
15895
16065
|
atlasJSON: atlasJSON,
|
|
15896
16066
|
spriteKey: texturePath,
|
|
@@ -15906,7 +16076,7 @@ var ProgressBarContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
|
15906
16076
|
displayName: "SkillProgressBar__ProgressBarContainer",
|
|
15907
16077
|
componentId: "sc-5vuroc-0"
|
|
15908
16078
|
})(["position:relative;top:8px;width:100%;height:auto;"]);
|
|
15909
|
-
var SpriteContainer = /*#__PURE__*/styled.div.withConfig({
|
|
16079
|
+
var SpriteContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
15910
16080
|
displayName: "SkillProgressBar__SpriteContainer",
|
|
15911
16081
|
componentId: "sc-5vuroc-1"
|
|
15912
16082
|
})(["position:relative;top:-3px;left:0;"]);
|
|
@@ -16301,7 +16471,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
16301
16471
|
}
|
|
16302
16472
|
onQuantityChange(traderItem, Math.min((_traderItem$stackQty = traderItem.stackQty) != null ? _traderItem$stackQty : 999, selectedQty + qty));
|
|
16303
16473
|
};
|
|
16304
|
-
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$
|
|
16474
|
+
return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer$1, null, React.createElement(SpriteContainer$2, null, React.createElement(ItemInfoWrapper, {
|
|
16305
16475
|
atlasIMG: atlasIMG,
|
|
16306
16476
|
atlasJSON: atlasJSON,
|
|
16307
16477
|
equipmentSet: equipmentSet,
|
|
@@ -16320,7 +16490,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
16320
16490
|
})))), React.createElement(ItemNameContainer, null, React.createElement(NameValue, null, React.createElement("p", null, React.createElement(Ellipsis, {
|
|
16321
16491
|
maxLines: 1,
|
|
16322
16492
|
maxWidth: "250px"
|
|
16323
|
-
}, capitalize(traderItem.name))), React.createElement("p", null, "$", traderItem.price))), React.createElement(QuantityContainer, null, React.createElement(SelectArrow, {
|
|
16493
|
+
}, capitalize(traderItem.name))), React.createElement("p", null, "$", traderItem.price))), React.createElement(QuantityContainer$1, null, React.createElement(SelectArrow, {
|
|
16324
16494
|
size: 32,
|
|
16325
16495
|
className: "arrow-selector",
|
|
16326
16496
|
direction: "left",
|
|
@@ -16330,7 +16500,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
16330
16500
|
className: "arrow-selector",
|
|
16331
16501
|
direction: "left",
|
|
16332
16502
|
onPointerDown: onLeftClick
|
|
16333
|
-
}), React.createElement(QuantityDisplay, null, React.createElement(TextOverlay$
|
|
16503
|
+
}), React.createElement(QuantityDisplay$1, null, React.createElement(TextOverlay$3, null, React.createElement(Item$2, null, selectedQty))), React.createElement(StyledArrow, {
|
|
16334
16504
|
size: 32,
|
|
16335
16505
|
className: "arrow-selector",
|
|
16336
16506
|
direction: "right",
|
|
@@ -16354,11 +16524,11 @@ var ItemNameContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
16354
16524
|
displayName: "TradingItemRow__ItemNameContainer",
|
|
16355
16525
|
componentId: "sc-mja0b5-2"
|
|
16356
16526
|
})(["flex:60%;"]);
|
|
16357
|
-
var ItemIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
16527
|
+
var ItemIconContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16358
16528
|
displayName: "TradingItemRow__ItemIconContainer",
|
|
16359
16529
|
componentId: "sc-mja0b5-3"
|
|
16360
16530
|
})(["display:flex;justify-content:flex-start;align-items:center;flex:0 0 58px;"]);
|
|
16361
|
-
var SpriteContainer$
|
|
16531
|
+
var SpriteContainer$2 = /*#__PURE__*/styled.div.withConfig({
|
|
16362
16532
|
displayName: "TradingItemRow__SpriteContainer",
|
|
16363
16533
|
componentId: "sc-mja0b5-4"
|
|
16364
16534
|
})(["position:relative;top:-0.5rem;left:0.5rem;"]);
|
|
@@ -16366,19 +16536,19 @@ var NameValue = /*#__PURE__*/styled.div.withConfig({
|
|
|
16366
16536
|
displayName: "TradingItemRow__NameValue",
|
|
16367
16537
|
componentId: "sc-mja0b5-5"
|
|
16368
16538
|
})(["p{font-size:0.75rem;margin:0;}"]);
|
|
16369
|
-
var Item$
|
|
16539
|
+
var Item$2 = /*#__PURE__*/styled.span.withConfig({
|
|
16370
16540
|
displayName: "TradingItemRow__Item",
|
|
16371
16541
|
componentId: "sc-mja0b5-6"
|
|
16372
16542
|
})(["color:white;text-align:center;z-index:1;width:100%;"]);
|
|
16373
|
-
var TextOverlay$
|
|
16543
|
+
var TextOverlay$3 = /*#__PURE__*/styled.div.withConfig({
|
|
16374
16544
|
displayName: "TradingItemRow__TextOverlay",
|
|
16375
16545
|
componentId: "sc-mja0b5-7"
|
|
16376
16546
|
})(["width:100%;position:relative;"]);
|
|
16377
|
-
var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
16547
|
+
var QuantityContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16378
16548
|
displayName: "TradingItemRow__QuantityContainer",
|
|
16379
16549
|
componentId: "sc-mja0b5-8"
|
|
16380
16550
|
})(["position:relative;display:flex;min-width:100px;width:40%;justify-content:center;align-items:center;flex:40%;"]);
|
|
16381
|
-
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
16551
|
+
var QuantityDisplay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
16382
16552
|
displayName: "TradingItemRow__QuantityDisplay",
|
|
16383
16553
|
componentId: "sc-mja0b5-9"
|
|
16384
16554
|
})(["font-size:", ";"], uiFonts.size.small);
|
|
@@ -16526,5 +16696,5 @@ var Container$o = /*#__PURE__*/styled.div.withConfig({
|
|
|
16526
16696
|
return props.maxLines;
|
|
16527
16697
|
});
|
|
16528
16698
|
|
|
16529
|
-
export { Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, CheckButton, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, HistoryDialog, ImgSide, Input, InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, ListMenu, NPCDialog, NPCDialogType, NPCMultiDialog, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, TextArea, TimeWidget, TradingMenu, Truncate, _RPGUI, rarityColor, useEventListener };
|
|
16699
|
+
export { Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, CheckButton, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, HistoryDialog, ImgSide, Input, InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, ListMenu, Marketplace, MarketplaceRows, NPCDialog, NPCDialogType, NPCMultiDialog, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, TextArea, TimeWidget, TradingMenu, Truncate, _RPGUI, rarityColor, useEventListener };
|
|
16530
16700
|
//# sourceMappingURL=long-bow.esm.js.map
|