@rpg-engine/long-bow 0.2.16 → 0.2.17

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.
@@ -28364,6 +28364,49 @@ var RightArrow$1 = /*#__PURE__*/styled.div.withConfig({
28364
28364
  componentId: "sc-15s2boc-10"
28365
28365
  })(["background-image:url(", ");right:0;position:absolute;width:40px;background-size:100% 100%;height:42px;:active{background-image:url(", ");}"], img$4, img$3);
28366
28366
 
28367
+ var QuestList = function QuestList(_ref) {
28368
+ var quests = _ref.quests,
28369
+ onClose = _ref.onClose;
28370
+ return React.createElement(QuestDraggableContainer$1, {
28371
+ type: RPGUIContainerTypes.Framed,
28372
+ onCloseButton: function onCloseButton() {
28373
+ if (onClose) onClose();
28374
+ },
28375
+ width: "520px"
28376
+ }, React.createElement("div", {
28377
+ style: {
28378
+ width: '100%'
28379
+ }
28380
+ }, React.createElement(Title$2, null, "Quests"), React.createElement("hr", {
28381
+ className: "golden"
28382
+ }), React.createElement(QuestListContainer, null, quests.map(function (quest, i) {
28383
+ return React.createElement("div", {
28384
+ className: "quest-item",
28385
+ key: i
28386
+ }, React.createElement("span", {
28387
+ className: "quest-number"
28388
+ }, i + 1), React.createElement("div", {
28389
+ className: "quest-detail"
28390
+ }, React.createElement("p", {
28391
+ className: "quest-detail__title"
28392
+ }, quest.title), React.createElement("p", {
28393
+ className: "quest-detail__description"
28394
+ }, quest.description)));
28395
+ }))));
28396
+ };
28397
+ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConfig({
28398
+ displayName: "QuestList__QuestDraggableContainer",
28399
+ componentId: "sc-1a2vx6q-0"
28400
+ })([".container-close{top:10px;right:10px;}.quest-title{text-align:left;margin-left:44px;margin-top:20px;color:yellow;}.quest-desc{margin-top:12px;margin-left:44px;}.rpgui-progress{min-width:80%;margin:0 auto;}"]);
28401
+ var Title$2 = /*#__PURE__*/styled.h1.withConfig({
28402
+ displayName: "QuestList__Title",
28403
+ componentId: "sc-1a2vx6q-1"
28404
+ })(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
28405
+ var QuestListContainer = /*#__PURE__*/styled.div.withConfig({
28406
+ displayName: "QuestList__QuestListContainer",
28407
+ componentId: "sc-1a2vx6q-2"
28408
+ })(["margin-top:20px;margin-bottom:40px;overflow-y:auto;max-height:400px;.quest-item{display:flex;align-items:flex-start;margin-bottom:12px;}.quest-number{border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;margin-right:16px;background-color:brown;flex-shrink:0;}.quest-number.completed{background-color:yellow;}p{margin:0;}.quest-detail__title{color:yellow;}.quest-detail__description{margin-top:5px;}"]);
28409
+
28367
28410
  var InputRadio = function InputRadio(_ref) {
28368
28411
  var name = _ref.name,
28369
28412
  items = _ref.items,
@@ -28829,5 +28872,5 @@ var DialogContainer = /*#__PURE__*/styled.div.withConfig({
28829
28872
  componentId: "sc-u6oe75-1"
28830
28873
  })(["display:flex;justify-content:center;padding-top:200px;"]);
28831
28874
 
28832
- export { Button, ButtonTypes, CharacterSelection, Chat, CheckButton, DraggableContainer, Dropdown, DynamicText, EquipmentSet, HistoryDialog, ImgSide, Input, InputRadio, ItemContainer, ItemSlot, ListMenu, NPCDialog, NPCDialogType, NPCMultiDialog, ProgressBar, PropertySelect, QuestInfo, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SkillProgressBar, SkillsContainer, SpriteFromAtlas, TextArea, Truncate, _RPGUI, useEventListener };
28875
+ export { Button, ButtonTypes, CharacterSelection, Chat, CheckButton, DraggableContainer, Dropdown, DynamicText, EquipmentSet, HistoryDialog, ImgSide, Input, InputRadio, ItemContainer, ItemSlot, ListMenu, NPCDialog, NPCDialogType, NPCMultiDialog, ProgressBar, PropertySelect, QuestInfo, QuestList, QuestionDialog, RPGUIContainer, RPGUIContainerTypes, RPGUIRoot, RangeSlider, RangeSliderType, SkillProgressBar, SkillsContainer, SpriteFromAtlas, TextArea, Truncate, _RPGUI, useEventListener };
28833
28876
  //# sourceMappingURL=long-bow.esm.js.map