@rpg-engine/long-bow 0.7.14 → 0.7.16
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/Quests/QuestList.d.ts +3 -3
- package/dist/long-bow.cjs.development.js +10 -10
- 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 +8 -8
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Quests/QuestList.tsx +8 -6
package/dist/long-bow.esm.js
CHANGED
|
@@ -31958,7 +31958,7 @@ var QuestList = function QuestList(_ref) {
|
|
|
31958
31958
|
return React.createElement(QuestListContainer, {
|
|
31959
31959
|
style: styles == null ? void 0 : styles.container
|
|
31960
31960
|
}, quests && quests.length > 0 ? quests.map(function (quest, i) {
|
|
31961
|
-
var
|
|
31961
|
+
var _formatQuestStatus;
|
|
31962
31962
|
return React.createElement(QuestCard, {
|
|
31963
31963
|
key: i,
|
|
31964
31964
|
style: styles == null ? void 0 : styles.card
|
|
@@ -31966,13 +31966,13 @@ var QuestList = function QuestList(_ref) {
|
|
|
31966
31966
|
style: styles == null ? void 0 : styles.label
|
|
31967
31967
|
}, "Title:"), React.createElement(Value, {
|
|
31968
31968
|
style: styles == null ? void 0 : styles.value
|
|
31969
|
-
},
|
|
31969
|
+
}, formatQuestText(quest.title))), React.createElement(QuestItem, null, React.createElement(Label, {
|
|
31970
31970
|
style: styles == null ? void 0 : styles.label
|
|
31971
31971
|
}, "Status:"), React.createElement(Value, {
|
|
31972
31972
|
style: _extends({}, styles == null ? void 0 : styles.value, {
|
|
31973
|
-
color:
|
|
31973
|
+
color: getQuestStatusColor(quest.status)
|
|
31974
31974
|
})
|
|
31975
|
-
}, (
|
|
31975
|
+
}, (_formatQuestStatus = formatQuestStatus(quest.status)) != null ? _formatQuestStatus : 'Unknown')), React.createElement(QuestItem, null, React.createElement(Label, {
|
|
31976
31976
|
style: styles == null ? void 0 : styles.label
|
|
31977
31977
|
}, "Description:"), React.createElement(Value, {
|
|
31978
31978
|
style: styles == null ? void 0 : styles.value
|
|
@@ -32003,13 +32003,13 @@ var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
32003
32003
|
displayName: "QuestList__NoQuestContainer",
|
|
32004
32004
|
componentId: "sc-1c1y8sp-5"
|
|
32005
32005
|
})(["text-align:center;p{margin-top:5px;color:", ";}"], uiColors.lightGray);
|
|
32006
|
-
var
|
|
32006
|
+
var formatQuestText = function formatQuestText(text) {
|
|
32007
32007
|
if (!text) return '';
|
|
32008
32008
|
return text.split('-').map(function (word) {
|
|
32009
32009
|
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
32010
32010
|
}).join(' ');
|
|
32011
32011
|
};
|
|
32012
|
-
var
|
|
32012
|
+
var getQuestStatusColor = function getQuestStatusColor(status) {
|
|
32013
32013
|
switch (status) {
|
|
32014
32014
|
case QuestStatus.Pending:
|
|
32015
32015
|
return uiColors.orange;
|
|
@@ -32021,7 +32021,7 @@ var getStatusColor = function getStatusColor(status) {
|
|
|
32021
32021
|
return uiColors.white;
|
|
32022
32022
|
}
|
|
32023
32023
|
};
|
|
32024
|
-
var
|
|
32024
|
+
var formatQuestStatus = function formatQuestStatus(status) {
|
|
32025
32025
|
if (!status) return '';
|
|
32026
32026
|
return status.split(/(?=[A-Z])/).join(' ').replace(/^\w/, function (c) {
|
|
32027
32027
|
return c.toUpperCase();
|
|
@@ -33572,5 +33572,5 @@ var LessonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
33572
33572
|
componentId: "sc-7tgzv2-6"
|
|
33573
33573
|
})(["display:flex;flex-direction:column;justify-content:space-between;min-height:200px;p{font-size:0.7rem !important;}"]);
|
|
33574
33574
|
|
|
33575
|
-
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TableTab, TabsContainer, TextArea, TimeWidget, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI,
|
|
33575
|
+
export { ActionButtons, AsyncDropdown, Button, ButtonTypes, CharacterSelection, Chat, ChatDeprecated, ChatRevamp, CheckButton, CheckItem, CircularController, CraftBook, DraggableContainer, Dropdown, DropdownSelectorContainer, DynamicText, EquipmentSet, EquipmentSlotSpriteByType, ErrorBoundary, FriendList, HistoryDialog, ImageCarousel, ImgSide, Input, InputRadio$1 as InputRadio, ItemContainer$1 as ItemContainer, ItemSelector, ItemSlot, Leaderboard, ListMenu, Marketplace, MarketplaceRows, MultitabType, NPCDialog, NPCDialogType, NPCMultiDialog, PartyCreate, PartyDashboard, PartyInvite, PartyManager, PartyManagerRow, PartyRow, PlayersRow, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, Shortcuts, SimpleImageCarousel, SkillProgressBar, SkillsContainer, Spellbook, SpriteFromAtlas, Stepper, TabBody, Table, TableCell, TableHeader, TableRow, TableTab, TabsContainer, TextArea, TimeWidget, TradingMenu, Truncate, TutorialStepper, UserActionLink, _RPGUI, formatQuestStatus, formatQuestText, getMockedPlayersRowsLeader, getMockedPlayersRowsNotLeader, getQuestStatusColor, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
|
|
33576
33576
|
//# sourceMappingURL=long-bow.esm.js.map
|