@rpg-engine/long-bow 0.2.41 → 0.2.42
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/ListMenu.d.ts +0 -1
- package/dist/constants/uiColors.d.ts +12 -2
- package/dist/constants/uiFonts.d.ts +12 -0
- package/dist/long-bow.cjs.development.js +52 -34
- 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 +52 -34
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button.tsx +2 -1
- package/src/components/Chat/Chat.tsx +4 -3
- package/src/components/DraggableContainer.tsx +3 -2
- package/src/components/Item/Cards/ItemTooltip.tsx +2 -1
- package/src/components/ListMenu.tsx +3 -5
- package/src/components/ProgressBar.tsx +2 -1
- package/src/components/PropertySelect/PropertySelect.tsx +6 -0
- package/src/components/QuestInfo/QuestInfo.tsx +8 -5
- package/src/components/QuestList.tsx +2 -1
- package/src/components/ScrollList.tsx +3 -2
- package/src/components/SkillsContainer.tsx +5 -5
- package/src/components/TradingMenu/TradingItemRow.tsx +4 -4
- package/src/constants/uiColors.ts +15 -5
- package/src/constants/uiFonts.ts +12 -0
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/mocks/.DS_Store +0 -0
package/dist/long-bow.esm.js
CHANGED
|
@@ -53,6 +53,19 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
53
53
|
return target;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
var uiFonts = {
|
|
57
|
+
size: {
|
|
58
|
+
xxsmall: '8px',
|
|
59
|
+
xsmall: '9px',
|
|
60
|
+
small: '12px',
|
|
61
|
+
medium: '14px',
|
|
62
|
+
large: '16px',
|
|
63
|
+
xLarge: '18px',
|
|
64
|
+
xxLarge: '20px',
|
|
65
|
+
xxxLarge: '24px'
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
56
69
|
var _excluded = ["disabled", "children", "buttonType"];
|
|
57
70
|
var ButtonTypes;
|
|
58
71
|
(function (ButtonTypes) {
|
|
@@ -73,7 +86,7 @@ var Button = function Button(_ref) {
|
|
|
73
86
|
var ButtonContainer = /*#__PURE__*/styled.button.withConfig({
|
|
74
87
|
displayName: "Button__ButtonContainer",
|
|
75
88
|
componentId: "sc-obzd3o-0"
|
|
76
|
-
})(["height:45px;font-size:
|
|
89
|
+
})(["height:45px;font-size:", ";"], uiFonts.size.small);
|
|
77
90
|
|
|
78
91
|
var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
79
92
|
var atlasJSON = _ref.atlasJSON,
|
|
@@ -27400,7 +27413,7 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
27400
27413
|
var Item = /*#__PURE__*/styled.span.withConfig({
|
|
27401
27414
|
displayName: "PropertySelect__Item",
|
|
27402
27415
|
componentId: "sc-12uqx6s-0"
|
|
27403
|
-
})(["font-size:1rem;color:white;text-align:center;z-index:1;position:absolute;top:12px;width:100%;"]);
|
|
27416
|
+
})(["font-size:1rem;color:white;text-align:center;z-index:1;position:absolute;top:12px;width:100%;p{margin:0 auto;font-size:", ";}"], uiFonts.size.small);
|
|
27404
27417
|
var TextOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
27405
27418
|
displayName: "PropertySelect__TextOverlay",
|
|
27406
27419
|
componentId: "sc-12uqx6s-1"
|
|
@@ -27467,15 +27480,25 @@ var Container$3 = /*#__PURE__*/styled.div.withConfig({
|
|
|
27467
27480
|
componentId: "sc-b34498-0"
|
|
27468
27481
|
})(["display:flex;flex-direction:column;align-items:center;image-rendering:pixelated;"]);
|
|
27469
27482
|
|
|
27470
|
-
var
|
|
27471
|
-
|
|
27483
|
+
var uiColors = {
|
|
27484
|
+
lightGray: '#757161',
|
|
27485
|
+
gray: '#4E4A4E',
|
|
27486
|
+
darkGray: '#3e3e3e',
|
|
27472
27487
|
darkYellow: '#FFC857',
|
|
27473
|
-
|
|
27488
|
+
yellow: '#FFFF00',
|
|
27489
|
+
orange: '#D27D2C',
|
|
27474
27490
|
cardinal: '#C5283D',
|
|
27491
|
+
red: '#D04648',
|
|
27492
|
+
darkRed: '#442434',
|
|
27475
27493
|
raisinBlack: '#191923',
|
|
27476
27494
|
navyBlue: '#0E79B2',
|
|
27477
|
-
purple: '#
|
|
27478
|
-
|
|
27495
|
+
purple: '#6833A3',
|
|
27496
|
+
darkPurple: '#522761',
|
|
27497
|
+
blue: '#597DCE',
|
|
27498
|
+
darkBlue: '#30346D',
|
|
27499
|
+
brown: '#854C30',
|
|
27500
|
+
lightGreen: '#6DAA2C',
|
|
27501
|
+
brownGreen: '#346524'
|
|
27479
27502
|
};
|
|
27480
27503
|
|
|
27481
27504
|
var Input = function Input(_ref) {
|
|
@@ -27627,7 +27650,7 @@ var CustomContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
|
|
|
27627
27650
|
componentId: "sc-1bk05n6-3"
|
|
27628
27651
|
})(["display:block;opacity:", ";&:hover{opacity:1;}.dark-background{background-color:", " !important;}.chat-body{&.rpgui-container.framed-grey{background:unset;}max-height:170px;overflow-y:auto;}"], function (props) {
|
|
27629
27652
|
return props.opacity;
|
|
27630
|
-
},
|
|
27653
|
+
}, uiColors.darkGray);
|
|
27631
27654
|
var Form = /*#__PURE__*/styled.form.withConfig({
|
|
27632
27655
|
displayName: "Chat__Form",
|
|
27633
27656
|
componentId: "sc-1bk05n6-4"
|
|
@@ -27635,7 +27658,7 @@ var Form = /*#__PURE__*/styled.form.withConfig({
|
|
|
27635
27658
|
var MessageText = /*#__PURE__*/styled.p.withConfig({
|
|
27636
27659
|
displayName: "Chat__MessageText",
|
|
27637
27660
|
componentId: "sc-1bk05n6-5"
|
|
27638
|
-
})(["display:block !important;width:100%;font-size:
|
|
27661
|
+
})(["display:block !important;width:100%;font-size:", " !important;overflow-y:auto;margin:0;"], uiFonts.size.xsmall);
|
|
27639
27662
|
|
|
27640
27663
|
var CheckButton = function CheckButton(_ref) {
|
|
27641
27664
|
var items = _ref.items,
|
|
@@ -27778,11 +27801,11 @@ var TitleContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
27778
27801
|
var Title = /*#__PURE__*/styled.h1.withConfig({
|
|
27779
27802
|
displayName: "DraggableContainer__Title",
|
|
27780
27803
|
componentId: "sc-184mpyl-3"
|
|
27781
|
-
})(["color:white;z-index:22;font-size:
|
|
27804
|
+
})(["color:white;z-index:22;font-size:", ";"], uiFonts.size.large);
|
|
27782
27805
|
var Icon = /*#__PURE__*/styled.img.withConfig({
|
|
27783
27806
|
displayName: "DraggableContainer__Icon",
|
|
27784
27807
|
componentId: "sc-184mpyl-4"
|
|
27785
|
-
})(["color:white;z-index:22;font-size:
|
|
27808
|
+
})(["color:white;z-index:22;font-size:", ";width:", ";margin-right:0.5rem;"], uiFonts.size.xsmall, function (props) {
|
|
27786
27809
|
return props.width;
|
|
27787
27810
|
});
|
|
27788
27811
|
|
|
@@ -27886,7 +27909,7 @@ var ItemTooltip = function ItemTooltip(_ref) {
|
|
|
27886
27909
|
var Container$8 = /*#__PURE__*/styled.div.withConfig({
|
|
27887
27910
|
displayName: "ItemTooltip__Container",
|
|
27888
27911
|
componentId: "sc-11d9r7x-0"
|
|
27889
|
-
})(["z-index:2;position:absolute;top:1rem;left:4rem;font-size:
|
|
27912
|
+
})(["z-index:2;position:absolute;top:1rem;left:4rem;font-size:", ";color:white;background-color:black;border-radius:5px;padding:0.5rem;min-width:20px;width:100%;text-align:center;opacity:0.75;"], uiFonts.size.xxsmall);
|
|
27890
27913
|
|
|
27891
27914
|
var generateContextMenuListOptions = function generateContextMenuListOptions(actionsByTypeList) {
|
|
27892
27915
|
var contextMenu = actionsByTypeList.map(function (action) {
|
|
@@ -28804,13 +28827,10 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
28804
28827
|
var options = _ref.options,
|
|
28805
28828
|
onSelected = _ref.onSelected,
|
|
28806
28829
|
x = _ref.x,
|
|
28807
|
-
y = _ref.y
|
|
28808
|
-
_ref$fontSize = _ref.fontSize,
|
|
28809
|
-
fontSize = _ref$fontSize === void 0 ? 0.8 : _ref$fontSize;
|
|
28830
|
+
y = _ref.y;
|
|
28810
28831
|
return React.createElement(Container$e, {
|
|
28811
28832
|
x: x,
|
|
28812
|
-
y: y
|
|
28813
|
-
fontSize: fontSize
|
|
28833
|
+
y: y
|
|
28814
28834
|
}, React.createElement("ul", {
|
|
28815
28835
|
className: "rpgui-list-imp",
|
|
28816
28836
|
style: {
|
|
@@ -28828,13 +28848,11 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
28828
28848
|
var Container$e = /*#__PURE__*/styled.div.withConfig({
|
|
28829
28849
|
displayName: "ListMenu__Container",
|
|
28830
28850
|
componentId: "sc-i9097t-0"
|
|
28831
|
-
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", "
|
|
28851
|
+
})(["display:flex;flex-direction:column;width:100%;justify-content:start;align-items:flex-start;position:absolute;top:", "px;left:", "px;li{font-size:", ";}"], function (props) {
|
|
28832
28852
|
return props.y || 0;
|
|
28833
28853
|
}, function (props) {
|
|
28834
28854
|
return props.x || 0;
|
|
28835
|
-
},
|
|
28836
|
-
return props.fontSize;
|
|
28837
|
-
});
|
|
28855
|
+
}, uiFonts.size.xsmall);
|
|
28838
28856
|
var ListElement$1 = /*#__PURE__*/styled.li.withConfig({
|
|
28839
28857
|
displayName: "ListMenu__ListElement",
|
|
28840
28858
|
componentId: "sc-i9097t-1"
|
|
@@ -28881,7 +28899,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
28881
28899
|
var ProgressBarText = /*#__PURE__*/styled.span.withConfig({
|
|
28882
28900
|
displayName: "ProgressBar__ProgressBarText",
|
|
28883
28901
|
componentId: "sc-qa6fzh-0"
|
|
28884
|
-
})(["font-size:
|
|
28902
|
+
})(["font-size:", " !important;color:white;text-align:center;z-index:1;position:absolute;left:50%;transform:translateX(-50%);top:12px;"], uiFonts.size.small);
|
|
28885
28903
|
var TextOverlay$1 = /*#__PURE__*/styled.div.withConfig({
|
|
28886
28904
|
displayName: "ProgressBar__TextOverlay",
|
|
28887
28905
|
componentId: "sc-qa6fzh-1"
|
|
@@ -29001,19 +29019,19 @@ var QuestSplitDiv = /*#__PURE__*/styled.div.withConfig({
|
|
|
29001
29019
|
var QuestColumn = /*#__PURE__*/styled(Column).withConfig({
|
|
29002
29020
|
displayName: "QuestInfo__QuestColumn",
|
|
29003
29021
|
componentId: "sc-15s2boc-5"
|
|
29004
|
-
})(["
|
|
29022
|
+
})(["padding-top:5px;margin-bottom:20px;display:flex;justify-content:space-evenly;"]);
|
|
29005
29023
|
var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
29006
29024
|
displayName: "QuestInfo__TitleContainer",
|
|
29007
29025
|
componentId: "sc-15s2boc-6"
|
|
29008
|
-
})(["
|
|
29026
|
+
})(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
|
|
29009
29027
|
var Title$1 = /*#__PURE__*/styled.h1.withConfig({
|
|
29010
29028
|
displayName: "QuestInfo__Title",
|
|
29011
29029
|
componentId: "sc-15s2boc-7"
|
|
29012
|
-
})(["color:white;z-index:22;font-size:
|
|
29030
|
+
})(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
|
|
29013
29031
|
var Thumbnail = /*#__PURE__*/styled.img.withConfig({
|
|
29014
29032
|
displayName: "QuestInfo__Thumbnail",
|
|
29015
29033
|
componentId: "sc-15s2boc-8"
|
|
29016
|
-
})(["color:white;z-index:22;
|
|
29034
|
+
})(["color:white;z-index:22;width:32px * 1.5;margin-right:0.5rem;position:relative;top:-4px;"]);
|
|
29017
29035
|
|
|
29018
29036
|
var QuestList = function QuestList(_ref) {
|
|
29019
29037
|
var quests = _ref.quests,
|
|
@@ -29052,7 +29070,7 @@ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConf
|
|
|
29052
29070
|
var Title$2 = /*#__PURE__*/styled.h1.withConfig({
|
|
29053
29071
|
displayName: "QuestList__Title",
|
|
29054
29072
|
componentId: "sc-1a2vx6q-1"
|
|
29055
|
-
})(["z-index:22;font-size:
|
|
29073
|
+
})(["z-index:22;font-size:", " !important;color:yellow !important;"], uiFonts.size.medium);
|
|
29056
29074
|
var QuestListContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29057
29075
|
displayName: "QuestList__QuestListContainer",
|
|
29058
29076
|
componentId: "sc-1a2vx6q-2"
|
|
@@ -29230,7 +29248,7 @@ var ProgressTitle = /*#__PURE__*/styled.div.withConfig({
|
|
|
29230
29248
|
|
|
29231
29249
|
var skillProps = {
|
|
29232
29250
|
attributes: {
|
|
29233
|
-
color:
|
|
29251
|
+
color: uiColors.purple,
|
|
29234
29252
|
values: {
|
|
29235
29253
|
stamina: 'spell-icons/regenerate.png',
|
|
29236
29254
|
magic: 'spell-icons/fireball.png',
|
|
@@ -29241,7 +29259,7 @@ var skillProps = {
|
|
|
29241
29259
|
}
|
|
29242
29260
|
},
|
|
29243
29261
|
combat: {
|
|
29244
|
-
color:
|
|
29262
|
+
color: uiColors.cardinal,
|
|
29245
29263
|
values: {
|
|
29246
29264
|
first: 'gloves/leather-gloves.png',
|
|
29247
29265
|
club: 'maces/club.png',
|
|
@@ -29253,7 +29271,7 @@ var skillProps = {
|
|
|
29253
29271
|
}
|
|
29254
29272
|
},
|
|
29255
29273
|
crafting: {
|
|
29256
|
-
color:
|
|
29274
|
+
color: uiColors.blue,
|
|
29257
29275
|
values: {
|
|
29258
29276
|
fishing: 'foods/fish.png',
|
|
29259
29277
|
mining: 'crafting-resources/iron-ingot.png',
|
|
@@ -29301,7 +29319,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
|
|
|
29301
29319
|
className: "golden"
|
|
29302
29320
|
}), React.createElement(SkillProgressBar, {
|
|
29303
29321
|
skillName: 'Level',
|
|
29304
|
-
bgColor:
|
|
29322
|
+
bgColor: uiColors.navyBlue,
|
|
29305
29323
|
level: Math.round(skill.level) || 0,
|
|
29306
29324
|
skillPoints: Math.round(skill.experience) || 0,
|
|
29307
29325
|
skillPointsToNextLevel: Math.round(skill.xpToNextLevel) || 0,
|
|
@@ -29393,7 +29411,7 @@ var TradingItemRow = function TradingItemRow(_ref) {
|
|
|
29393
29411
|
var ItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29394
29412
|
displayName: "TradingItemRow__ItemWrapper",
|
|
29395
29413
|
componentId: "sc-mja0b5-0"
|
|
29396
|
-
})(["width:100%;margin:auto;display:flex;justify-content:space-between;margin-bottom:1rem;&:hover{background-color:", ";}padding:0.5rem;"],
|
|
29414
|
+
})(["width:100%;margin:auto;display:flex;justify-content:space-between;margin-bottom:1rem;&:hover{background-color:", ";}padding:0.5rem;"], uiColors.darkGray);
|
|
29397
29415
|
var ItemNameContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29398
29416
|
displayName: "TradingItemRow__ItemNameContainer",
|
|
29399
29417
|
componentId: "sc-mja0b5-1"
|
|
@@ -29413,7 +29431,7 @@ var NameValue = /*#__PURE__*/styled.div.withConfig({
|
|
|
29413
29431
|
var Item$1 = /*#__PURE__*/styled.span.withConfig({
|
|
29414
29432
|
displayName: "TradingItemRow__Item",
|
|
29415
29433
|
componentId: "sc-mja0b5-5"
|
|
29416
|
-
})(["
|
|
29434
|
+
})(["color:white;text-align:center;z-index:1;width:100%;"]);
|
|
29417
29435
|
var TextOverlay$2 = /*#__PURE__*/styled.div.withConfig({
|
|
29418
29436
|
displayName: "TradingItemRow__TextOverlay",
|
|
29419
29437
|
componentId: "sc-mja0b5-6"
|
|
@@ -29425,7 +29443,7 @@ var QuantityContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
29425
29443
|
var QuantityDisplay = /*#__PURE__*/styled.div.withConfig({
|
|
29426
29444
|
displayName: "TradingItemRow__QuantityDisplay",
|
|
29427
29445
|
componentId: "sc-mja0b5-8"
|
|
29428
|
-
})(["font-size:
|
|
29446
|
+
})(["font-size:", ";"], uiFonts.size.small);
|
|
29429
29447
|
|
|
29430
29448
|
var TradingMenu = function TradingMenu(_ref) {
|
|
29431
29449
|
var traderItems = _ref.traderItems,
|