@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.
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './components/NPCDialog/QuestionDialog/QuestionDialog';
14
14
  export * from './components/ProgressBar';
15
15
  export * from './components/PropertySelect/PropertySelect';
16
16
  export * from './components/QuestInfo/QuestInfo';
17
+ export * from './components/QuestList';
17
18
  export * from './components/RadioButton';
18
19
  export * from './components/RangeSlider';
19
20
  export * from './components/RPGUIContainer';
@@ -28366,6 +28366,49 @@ var RightArrow$1 = /*#__PURE__*/styled.div.withConfig({
28366
28366
  componentId: "sc-15s2boc-10"
28367
28367
  })(["background-image:url(", ");right:0;position:absolute;width:40px;background-size:100% 100%;height:42px;:active{background-image:url(", ");}"], img$4, img$3);
28368
28368
 
28369
+ var QuestList = function QuestList(_ref) {
28370
+ var quests = _ref.quests,
28371
+ onClose = _ref.onClose;
28372
+ return React__default.createElement(QuestDraggableContainer$1, {
28373
+ type: exports.RPGUIContainerTypes.Framed,
28374
+ onCloseButton: function onCloseButton() {
28375
+ if (onClose) onClose();
28376
+ },
28377
+ width: "520px"
28378
+ }, React__default.createElement("div", {
28379
+ style: {
28380
+ width: '100%'
28381
+ }
28382
+ }, React__default.createElement(Title$2, null, "Quests"), React__default.createElement("hr", {
28383
+ className: "golden"
28384
+ }), React__default.createElement(QuestListContainer, null, quests.map(function (quest, i) {
28385
+ return React__default.createElement("div", {
28386
+ className: "quest-item",
28387
+ key: i
28388
+ }, React__default.createElement("span", {
28389
+ className: "quest-number"
28390
+ }, i + 1), React__default.createElement("div", {
28391
+ className: "quest-detail"
28392
+ }, React__default.createElement("p", {
28393
+ className: "quest-detail__title"
28394
+ }, quest.title), React__default.createElement("p", {
28395
+ className: "quest-detail__description"
28396
+ }, quest.description)));
28397
+ }))));
28398
+ };
28399
+ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConfig({
28400
+ displayName: "QuestList__QuestDraggableContainer",
28401
+ componentId: "sc-1a2vx6q-0"
28402
+ })([".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;}"]);
28403
+ var Title$2 = /*#__PURE__*/styled.h1.withConfig({
28404
+ displayName: "QuestList__Title",
28405
+ componentId: "sc-1a2vx6q-1"
28406
+ })(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
28407
+ var QuestListContainer = /*#__PURE__*/styled.div.withConfig({
28408
+ displayName: "QuestList__QuestListContainer",
28409
+ componentId: "sc-1a2vx6q-2"
28410
+ })(["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;}"]);
28411
+
28369
28412
  var InputRadio = function InputRadio(_ref) {
28370
28413
  var name = _ref.name,
28371
28414
  items = _ref.items,
@@ -28846,6 +28889,7 @@ exports.NPCMultiDialog = NPCMultiDialog;
28846
28889
  exports.ProgressBar = ProgressBar;
28847
28890
  exports.PropertySelect = PropertySelect;
28848
28891
  exports.QuestInfo = QuestInfo;
28892
+ exports.QuestList = QuestList;
28849
28893
  exports.QuestionDialog = QuestionDialog;
28850
28894
  exports.RPGUIContainer = RPGUIContainer;
28851
28895
  exports.RPGUIRoot = RPGUIRoot;