@rpg-engine/long-bow 0.6.8 → 0.6.9

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.
@@ -13088,6 +13088,159 @@ var Button$1 = /*#__PURE__*/styled.button.withConfig({
13088
13088
  return buttonBackgroundColor;
13089
13089
  });
13090
13090
 
13091
+ var _excluded$2 = ["innerRef"];
13092
+ var Input = function Input(_ref) {
13093
+ var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
13094
+ var rest = _objectWithoutPropertiesLoose(props, _excluded$2);
13095
+ return React.createElement("input", Object.assign({}, rest, {
13096
+ ref: props.innerRef
13097
+ }));
13098
+ };
13099
+
13100
+ var RPGUIContainerTypes;
13101
+ (function (RPGUIContainerTypes) {
13102
+ RPGUIContainerTypes["Framed"] = "framed";
13103
+ RPGUIContainerTypes["FramedGold"] = "framed-golden";
13104
+ RPGUIContainerTypes["FramedGold2"] = "framed-golden-2";
13105
+ RPGUIContainerTypes["FramedGrey"] = "framed-grey";
13106
+ })(RPGUIContainerTypes || (RPGUIContainerTypes = {}));
13107
+ var RPGUIContainer = function RPGUIContainer(_ref) {
13108
+ var children = _ref.children,
13109
+ type = _ref.type,
13110
+ _ref$width = _ref.width,
13111
+ width = _ref$width === void 0 ? '50%' : _ref$width,
13112
+ height = _ref.height,
13113
+ className = _ref.className;
13114
+ return React.createElement(Container$5, {
13115
+ width: width,
13116
+ height: height || 'auto',
13117
+ className: "rpgui-container " + type + " " + className
13118
+ }, children);
13119
+ };
13120
+ var Container$5 = /*#__PURE__*/styled.div.withConfig({
13121
+ displayName: "RPGUIContainer__Container",
13122
+ componentId: "sc-a7heha-0"
13123
+ })(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
13124
+ return props.height;
13125
+ }, function (_ref2) {
13126
+ var width = _ref2.width;
13127
+ return width;
13128
+ });
13129
+
13130
+ var ChatDeprecated = function ChatDeprecated(_ref) {
13131
+ var chatMessages = _ref.chatMessages,
13132
+ onSendChatMessage = _ref.onSendChatMessage,
13133
+ _ref$opacity = _ref.opacity,
13134
+ opacity = _ref$opacity === void 0 ? 1 : _ref$opacity,
13135
+ _ref$width = _ref.width,
13136
+ width = _ref$width === void 0 ? '100%' : _ref$width,
13137
+ _ref$height = _ref.height,
13138
+ height = _ref$height === void 0 ? '250px' : _ref$height,
13139
+ onCloseButton = _ref.onCloseButton,
13140
+ onFocus = _ref.onFocus,
13141
+ onBlur = _ref.onBlur;
13142
+ var _useState = useState(''),
13143
+ message = _useState[0],
13144
+ setMessage = _useState[1];
13145
+ useEffect(function () {
13146
+ scrollChatToBottom();
13147
+ }, []);
13148
+ useEffect(function () {
13149
+ scrollChatToBottom();
13150
+ }, [chatMessages]);
13151
+ var scrollChatToBottom = function scrollChatToBottom() {
13152
+ var scrollingElement = document.querySelector('.chat-body');
13153
+ if (scrollingElement) {
13154
+ scrollingElement.scrollTop = scrollingElement.scrollHeight;
13155
+ }
13156
+ };
13157
+ var handleSubmit = function handleSubmit(event) {
13158
+ event.preventDefault();
13159
+ onSendChatMessage(message);
13160
+ setMessage('');
13161
+ };
13162
+ var getInputValue = function getInputValue(value) {
13163
+ setMessage(value);
13164
+ };
13165
+ var onRenderMessageLines = function onRenderMessageLines(emitter, createdAt, message) {
13166
+ return dayjs(createdAt || new Date()).format('HH:mm') + " " + (emitter != null && emitter.name ? emitter.name + ": " : 'Unknown: ') + " " + message;
13167
+ };
13168
+ var onRenderChatMessages = function onRenderChatMessages(chatMessages) {
13169
+ return chatMessages != null && chatMessages.length ? chatMessages == null ? void 0 : chatMessages.map(function (_ref2, index) {
13170
+ var _id = _ref2._id,
13171
+ createdAt = _ref2.createdAt,
13172
+ emitter = _ref2.emitter,
13173
+ message = _ref2.message;
13174
+ return React.createElement(MessageText, {
13175
+ key: _id + "_" + index
13176
+ }, onRenderMessageLines(emitter, createdAt, message));
13177
+ }) : React.createElement(MessageText, null, "No messages available.");
13178
+ };
13179
+ return React.createElement(Container$6, null, React.createElement(CustomContainer, {
13180
+ type: RPGUIContainerTypes.FramedGrey,
13181
+ width: width,
13182
+ height: height,
13183
+ className: "chat-container",
13184
+ opacity: opacity
13185
+ }, React.createElement(ErrorBoundary$1, {
13186
+ fallback: React.createElement("p", null, "Oops! Your chat has crashed.")
13187
+ }, onCloseButton && React.createElement(CloseButton, {
13188
+ onPointerDown: onCloseButton
13189
+ }, "X"), React.createElement(RPGUIContainer, {
13190
+ type: RPGUIContainerTypes.FramedGrey,
13191
+ width: '100%',
13192
+ height: '80%',
13193
+ className: "chat-body dark-background"
13194
+ }, onRenderChatMessages(chatMessages)), React.createElement(Form$1, {
13195
+ onSubmit: handleSubmit
13196
+ }, React.createElement(Column, {
13197
+ flex: 70
13198
+ }, React.createElement(CustomInput, {
13199
+ value: message,
13200
+ id: "inputMessage",
13201
+ onChange: function onChange(e) {
13202
+ return getInputValue(e.target.value);
13203
+ },
13204
+ height: 20,
13205
+ className: "chat-input dark-background",
13206
+ type: "text",
13207
+ autoComplete: "off",
13208
+ onFocus: onFocus,
13209
+ onBlur: onBlur
13210
+ })), React.createElement(Column, {
13211
+ justifyContent: "flex-end"
13212
+ }, React.createElement(Button, {
13213
+ buttonType: ButtonTypes.RPGUIButton,
13214
+ id: "chat-send-button"
13215
+ }, "Send"))))));
13216
+ };
13217
+ var Container$6 = /*#__PURE__*/styled.div.withConfig({
13218
+ displayName: "ChatDeprecated__Container",
13219
+ componentId: "sc-fuuod3-0"
13220
+ })(["position:relative;"]);
13221
+ var CloseButton = /*#__PURE__*/styled.div.withConfig({
13222
+ displayName: "ChatDeprecated__CloseButton",
13223
+ componentId: "sc-fuuod3-1"
13224
+ })(["position:absolute;top:2px;right:0px;color:white;z-index:22;font-size:0.7rem;"]);
13225
+ var CustomInput = /*#__PURE__*/styled(Input).withConfig({
13226
+ displayName: "ChatDeprecated__CustomInput",
13227
+ componentId: "sc-fuuod3-2"
13228
+ })(["height:30px;width:100%;.rpgui-content .input{min-height:39px;}"]);
13229
+ var CustomContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
13230
+ displayName: "ChatDeprecated__CustomContainer",
13231
+ componentId: "sc-fuuod3-3"
13232
+ })(["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) {
13233
+ return props.opacity;
13234
+ }, uiColors.darkGray);
13235
+ var Form$1 = /*#__PURE__*/styled.form.withConfig({
13236
+ displayName: "ChatDeprecated__Form",
13237
+ componentId: "sc-fuuod3-4"
13238
+ })(["display:flex;width:100%;justify-content:center;align-items:center;"]);
13239
+ var MessageText = /*#__PURE__*/styled.p.withConfig({
13240
+ displayName: "ChatDeprecated__MessageText",
13241
+ componentId: "sc-fuuod3-5"
13242
+ })(["display:block !important;width:100%;font-size:", " !important;overflow-y:auto;margin:0;"], uiFonts.size.xsmall);
13243
+
13091
13244
  var SearchCharacter = function SearchCharacter(_ref) {
13092
13245
  var onChangeCharacterName = _ref.onChangeCharacterName,
13093
13246
  onBlur = _ref.onBlur,
@@ -13128,7 +13281,7 @@ var SearchCharacter = function SearchCharacter(_ref) {
13128
13281
  onCharacterClick(character);
13129
13282
  hideSearchCharacterUI();
13130
13283
  };
13131
- return React.createElement(SearchContainer, null, React.createElement(Form$1, {
13284
+ return React.createElement(SearchContainer, null, React.createElement(Form$2, {
13132
13285
  onSubmit: handleSubmit
13133
13286
  }, React.createElement(Column, {
13134
13287
  flex: 70
@@ -13173,7 +13326,7 @@ var SearchContainer = /*#__PURE__*/styled.div.withConfig({
13173
13326
  displayName: "SearchCharacter__SearchContainer",
13174
13327
  componentId: "sc-172lyfr-0"
13175
13328
  })(["width:100%;"]);
13176
- var Form$1 = /*#__PURE__*/styled.form.withConfig({
13329
+ var Form$2 = /*#__PURE__*/styled.form.withConfig({
13177
13330
  displayName: "SearchCharacter__Form",
13178
13331
  componentId: "sc-172lyfr-1"
13179
13332
  })(["display:flex;width:100%;justify-content:center;align-items:center;"]);
@@ -13277,7 +13430,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
13277
13430
  }
13278
13431
  }, React.createElement(StatusDot, {
13279
13432
  isUnseen: (unseenMessageCharacterIds == null ? void 0 : unseenMessageCharacterIds.includes(character._id)) || false
13280
- }), character.name), React.createElement(CloseButton, {
13433
+ }), character.name), React.createElement(CloseButton$1, {
13281
13434
  onPointerDown: function onPointerDown() {
13282
13435
  return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
13283
13436
  }
@@ -13376,164 +13529,11 @@ var StatusDot = /*#__PURE__*/styled.span.withConfig({
13376
13529
  })(["width:6px;height:6px;border-radius:50%;background-color:", ";display:inline-block;margin-right:6px;"], function (props) {
13377
13530
  return props.isUnseen ? uiColors.lightGreen : uiColors.gray;
13378
13531
  });
13379
- var CloseButton = /*#__PURE__*/styled.button.withConfig({
13532
+ var CloseButton$1 = /*#__PURE__*/styled.button.withConfig({
13380
13533
  displayName: "ChatRevamp__CloseButton",
13381
13534
  componentId: "sc-1sdiknw-12"
13382
13535
  })(["all:unset;font-size:", ";margin:0 0.5rem;transition:all 0.2s ease-in-out;background-color:", ";color:", ";&:hover{background-color:", ";color:", ";}"], uiFonts.size.xxsmall, uiColors.red, uiColors.white, uiColors.white, uiColors.red);
13383
13536
 
13384
- var _excluded$2 = ["innerRef"];
13385
- var Input = function Input(_ref) {
13386
- var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
13387
- var rest = _objectWithoutPropertiesLoose(props, _excluded$2);
13388
- return React.createElement("input", Object.assign({}, rest, {
13389
- ref: props.innerRef
13390
- }));
13391
- };
13392
-
13393
- var RPGUIContainerTypes;
13394
- (function (RPGUIContainerTypes) {
13395
- RPGUIContainerTypes["Framed"] = "framed";
13396
- RPGUIContainerTypes["FramedGold"] = "framed-golden";
13397
- RPGUIContainerTypes["FramedGold2"] = "framed-golden-2";
13398
- RPGUIContainerTypes["FramedGrey"] = "framed-grey";
13399
- })(RPGUIContainerTypes || (RPGUIContainerTypes = {}));
13400
- var RPGUIContainer = function RPGUIContainer(_ref) {
13401
- var children = _ref.children,
13402
- type = _ref.type,
13403
- _ref$width = _ref.width,
13404
- width = _ref$width === void 0 ? '50%' : _ref$width,
13405
- height = _ref.height,
13406
- className = _ref.className;
13407
- return React.createElement(Container$5, {
13408
- width: width,
13409
- height: height || 'auto',
13410
- className: "rpgui-container " + type + " " + className
13411
- }, children);
13412
- };
13413
- var Container$5 = /*#__PURE__*/styled.div.withConfig({
13414
- displayName: "RPGUIContainer__Container",
13415
- componentId: "sc-a7heha-0"
13416
- })(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;"], function (props) {
13417
- return props.height;
13418
- }, function (_ref2) {
13419
- var width = _ref2.width;
13420
- return width;
13421
- });
13422
-
13423
- var ChatDeprecated = function ChatDeprecated(_ref) {
13424
- var chatMessages = _ref.chatMessages,
13425
- onSendChatMessage = _ref.onSendChatMessage,
13426
- _ref$opacity = _ref.opacity,
13427
- opacity = _ref$opacity === void 0 ? 1 : _ref$opacity,
13428
- _ref$width = _ref.width,
13429
- width = _ref$width === void 0 ? '100%' : _ref$width,
13430
- _ref$height = _ref.height,
13431
- height = _ref$height === void 0 ? '250px' : _ref$height,
13432
- onCloseButton = _ref.onCloseButton,
13433
- onFocus = _ref.onFocus,
13434
- onBlur = _ref.onBlur;
13435
- var _useState = useState(''),
13436
- message = _useState[0],
13437
- setMessage = _useState[1];
13438
- useEffect(function () {
13439
- scrollChatToBottom();
13440
- }, []);
13441
- useEffect(function () {
13442
- scrollChatToBottom();
13443
- }, [chatMessages]);
13444
- var scrollChatToBottom = function scrollChatToBottom() {
13445
- var scrollingElement = document.querySelector('.chat-body');
13446
- if (scrollingElement) {
13447
- scrollingElement.scrollTop = scrollingElement.scrollHeight;
13448
- }
13449
- };
13450
- var handleSubmit = function handleSubmit(event) {
13451
- event.preventDefault();
13452
- onSendChatMessage(message);
13453
- setMessage('');
13454
- };
13455
- var getInputValue = function getInputValue(value) {
13456
- setMessage(value);
13457
- };
13458
- var onRenderMessageLines = function onRenderMessageLines(emitter, createdAt, message) {
13459
- return dayjs(createdAt || new Date()).format('HH:mm') + " " + (emitter != null && emitter.name ? emitter.name + ": " : 'Unknown: ') + " " + message;
13460
- };
13461
- var onRenderChatMessages = function onRenderChatMessages(chatMessages) {
13462
- return chatMessages != null && chatMessages.length ? chatMessages == null ? void 0 : chatMessages.map(function (_ref2, index) {
13463
- var _id = _ref2._id,
13464
- createdAt = _ref2.createdAt,
13465
- emitter = _ref2.emitter,
13466
- message = _ref2.message;
13467
- return React.createElement(MessageText, {
13468
- key: _id + "_" + index
13469
- }, onRenderMessageLines(emitter, createdAt, message));
13470
- }) : React.createElement(MessageText, null, "No messages available.");
13471
- };
13472
- return React.createElement(Container$6, null, React.createElement(CustomContainer, {
13473
- type: RPGUIContainerTypes.FramedGrey,
13474
- width: width,
13475
- height: height,
13476
- className: "chat-container",
13477
- opacity: opacity
13478
- }, React.createElement(ErrorBoundary$1, {
13479
- fallback: React.createElement("p", null, "Oops! Your chat has crashed.")
13480
- }, onCloseButton && React.createElement(CloseButton$1, {
13481
- onPointerDown: onCloseButton
13482
- }, "X"), React.createElement(RPGUIContainer, {
13483
- type: RPGUIContainerTypes.FramedGrey,
13484
- width: '100%',
13485
- height: '80%',
13486
- className: "chat-body dark-background"
13487
- }, onRenderChatMessages(chatMessages)), React.createElement(Form$2, {
13488
- onSubmit: handleSubmit
13489
- }, React.createElement(Column, {
13490
- flex: 70
13491
- }, React.createElement(CustomInput, {
13492
- value: message,
13493
- id: "inputMessage",
13494
- onChange: function onChange(e) {
13495
- return getInputValue(e.target.value);
13496
- },
13497
- height: 20,
13498
- className: "chat-input dark-background",
13499
- type: "text",
13500
- autoComplete: "off",
13501
- onFocus: onFocus,
13502
- onBlur: onBlur
13503
- })), React.createElement(Column, {
13504
- justifyContent: "flex-end"
13505
- }, React.createElement(Button, {
13506
- buttonType: ButtonTypes.RPGUIButton,
13507
- id: "chat-send-button"
13508
- }, "Send"))))));
13509
- };
13510
- var Container$6 = /*#__PURE__*/styled.div.withConfig({
13511
- displayName: "ChatDeprecated__Container",
13512
- componentId: "sc-fuuod3-0"
13513
- })(["position:relative;"]);
13514
- var CloseButton$1 = /*#__PURE__*/styled.div.withConfig({
13515
- displayName: "ChatDeprecated__CloseButton",
13516
- componentId: "sc-fuuod3-1"
13517
- })(["position:absolute;top:2px;right:0px;color:white;z-index:22;font-size:0.7rem;"]);
13518
- var CustomInput = /*#__PURE__*/styled(Input).withConfig({
13519
- displayName: "ChatDeprecated__CustomInput",
13520
- componentId: "sc-fuuod3-2"
13521
- })(["height:30px;width:100%;.rpgui-content .input{min-height:39px;}"]);
13522
- var CustomContainer = /*#__PURE__*/styled(RPGUIContainer).withConfig({
13523
- displayName: "ChatDeprecated__CustomContainer",
13524
- componentId: "sc-fuuod3-3"
13525
- })(["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) {
13526
- return props.opacity;
13527
- }, uiColors.darkGray);
13528
- var Form$2 = /*#__PURE__*/styled.form.withConfig({
13529
- displayName: "ChatDeprecated__Form",
13530
- componentId: "sc-fuuod3-4"
13531
- })(["display:flex;width:100%;justify-content:center;align-items:center;"]);
13532
- var MessageText = /*#__PURE__*/styled.p.withConfig({
13533
- displayName: "ChatDeprecated__MessageText",
13534
- componentId: "sc-fuuod3-5"
13535
- })(["display:block !important;width:100%;font-size:", " !important;overflow-y:auto;margin:0;"], uiFonts.size.xsmall);
13536
-
13537
13537
  var CheckButton = function CheckButton(_ref) {
13538
13538
  var items = _ref.items,
13539
13539
  onChange = _ref.onChange;
@@ -17096,28 +17096,114 @@ var ItemContainer$1 = function ItemContainer(_ref) {
17096
17096
  setQuantitySelect: setQuantitySelect
17097
17097
  }));
17098
17098
  };
17099
- var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
17100
- displayName: "ItemContainer__ItemsContainer",
17101
- componentId: "sc-15y5p9l-0"
17102
- })(["display:flex;justify-content:", ";flex-wrap:wrap;max-height:", ";overflow-y:", ";overflow-x:hidden;width:", ";max-height:", ";@media screen and (max-height:350px){max-height:", ";}"], function (_ref2) {
17103
- var isFullScreen = _ref2.isFullScreen;
17104
- return isFullScreen ? 'flex-start' : 'center';
17105
- }, function (_ref3) {
17106
- var isFullScreen = _ref3.isFullScreen;
17107
- return isFullScreen ? undefined : '270px';
17108
- }, function (_ref4) {
17109
- var isScrollable = _ref4.isScrollable;
17110
- return isScrollable ? 'auto' : 'hidden';
17111
- }, function (_ref5) {
17112
- var isFullScreen = _ref5.isFullScreen;
17113
- return isFullScreen ? '100vw' : '415px';
17114
- }, function (_ref6) {
17115
- var isFullScreen = _ref6.isFullScreen;
17116
- return isFullScreen && '60%';
17117
- }, function (_ref7) {
17118
- var isFullScreen = _ref7.isFullScreen;
17119
- return isFullScreen && '50%';
17120
- });
17099
+ var ItemsContainer = /*#__PURE__*/styled.div.withConfig({
17100
+ displayName: "ItemContainer__ItemsContainer",
17101
+ componentId: "sc-15y5p9l-0"
17102
+ })(["display:flex;justify-content:", ";flex-wrap:wrap;max-height:", ";overflow-y:", ";overflow-x:hidden;width:", ";max-height:", ";@media screen and (max-height:350px){max-height:", ";}"], function (_ref2) {
17103
+ var isFullScreen = _ref2.isFullScreen;
17104
+ return isFullScreen ? 'flex-start' : 'center';
17105
+ }, function (_ref3) {
17106
+ var isFullScreen = _ref3.isFullScreen;
17107
+ return isFullScreen ? undefined : '270px';
17108
+ }, function (_ref4) {
17109
+ var isScrollable = _ref4.isScrollable;
17110
+ return isScrollable ? 'auto' : 'hidden';
17111
+ }, function (_ref5) {
17112
+ var isFullScreen = _ref5.isFullScreen;
17113
+ return isFullScreen ? '100vw' : '415px';
17114
+ }, function (_ref6) {
17115
+ var isFullScreen = _ref6.isFullScreen;
17116
+ return isFullScreen && '60%';
17117
+ }, function (_ref7) {
17118
+ var isFullScreen = _ref7.isFullScreen;
17119
+ return isFullScreen && '50%';
17120
+ });
17121
+
17122
+ var ItemSelector = function ItemSelector(_ref) {
17123
+ var atlasIMG = _ref.atlasIMG,
17124
+ atlasJSON = _ref.atlasJSON,
17125
+ options = _ref.options,
17126
+ onClose = _ref.onClose,
17127
+ onSelect = _ref.onSelect;
17128
+ var _useState = useState(),
17129
+ selectedValue = _useState[0],
17130
+ setSelectedValue = _useState[1];
17131
+ var handleClick = function handleClick() {
17132
+ var element = document.querySelector("input[name='test']:checked");
17133
+ var elementValue = element.value;
17134
+ setSelectedValue(elementValue);
17135
+ };
17136
+ useEffect(function () {
17137
+ if (selectedValue) {
17138
+ onSelect(selectedValue);
17139
+ }
17140
+ }, [selectedValue]);
17141
+ return React.createElement(DraggableContainer, {
17142
+ type: RPGUIContainerTypes.Framed,
17143
+ width: "500px",
17144
+ cancelDrag: ".equipment-container-body .arrow-selector",
17145
+ onCloseButton: function onCloseButton() {
17146
+ if (onClose) {
17147
+ onClose();
17148
+ }
17149
+ }
17150
+ }, React.createElement("div", {
17151
+ style: {
17152
+ width: '100%'
17153
+ }
17154
+ }, React.createElement(Title$3, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
17155
+ className: "golden"
17156
+ })), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
17157
+ return React.createElement(RadioOptionsWrapper$1, {
17158
+ key: index
17159
+ }, React.createElement(SpriteAtlasWrapper$1, null, React.createElement(SpriteFromAtlas, {
17160
+ atlasIMG: atlasIMG,
17161
+ atlasJSON: atlasJSON,
17162
+ spriteKey: option.imageKey,
17163
+ imgScale: 3
17164
+ })), React.createElement("div", null, React.createElement("input", {
17165
+ className: "rpgui-radio",
17166
+ type: "radio",
17167
+ value: option.name,
17168
+ name: "test"
17169
+ }), React.createElement("label", {
17170
+ onPointerDown: handleClick,
17171
+ style: {
17172
+ display: 'flex',
17173
+ alignItems: 'center'
17174
+ }
17175
+ }, option.name, " ", React.createElement("br", null), option.description)));
17176
+ })), React.createElement(ButtonWrapper$1, null, React.createElement(Button, {
17177
+ buttonType: ButtonTypes.RPGUIButton,
17178
+ onPointerDown: onClose
17179
+ }, "Cancel"), React.createElement(Button, {
17180
+ buttonType: ButtonTypes.RPGUIButton
17181
+ }, "Select")));
17182
+ };
17183
+ var Title$3 = /*#__PURE__*/styled.h1.withConfig({
17184
+ displayName: "ItemSelector__Title",
17185
+ componentId: "sc-gptoxp-0"
17186
+ })(["font-size:0.6rem;color:yellow !important;"]);
17187
+ var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
17188
+ displayName: "ItemSelector__Subtitle",
17189
+ componentId: "sc-gptoxp-1"
17190
+ })(["font-size:0.4rem;color:yellow !important;"]);
17191
+ var RadioInputScroller$1 = /*#__PURE__*/styled.div.withConfig({
17192
+ displayName: "ItemSelector__RadioInputScroller",
17193
+ componentId: "sc-gptoxp-2"
17194
+ })(["padding-left:15px;padding-top:10px;width:100%;margin-top:1rem;align-items:center;margin-left:20px;align-items:flex-start;overflow-y:scroll;height:360px;"]);
17195
+ var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
17196
+ displayName: "ItemSelector__SpriteAtlasWrapper",
17197
+ componentId: "sc-gptoxp-3"
17198
+ })(["margin-right:40px;"]);
17199
+ var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
17200
+ displayName: "ItemSelector__RadioOptionsWrapper",
17201
+ componentId: "sc-gptoxp-4"
17202
+ })(["display:flex;align-items:stretch;margin-bottom:40px;"]);
17203
+ var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
17204
+ displayName: "ItemSelector__ButtonWrapper",
17205
+ componentId: "sc-gptoxp-5"
17206
+ })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
17121
17207
 
17122
17208
  var LeaderboardTable = function LeaderboardTable(props) {
17123
17209
  var items = props.items,
@@ -17950,12 +18036,12 @@ var PartyCreate = function PartyCreate(_ref) {
17950
18036
  style: {
17951
18037
  width: '100%'
17952
18038
  }
17953
- }, React.createElement(Title$3, null, "Create Party"), React.createElement("hr", {
18039
+ }, React.createElement(Title$4, null, "Create Party"), React.createElement("hr", {
17954
18040
  className: "golden"
17955
18041
  }))), React.createElement("h1", null, "Type your party name"), React.createElement(Input, {
17956
18042
  placeholder: "Type party name",
17957
18043
  type: "text"
17958
- }), React.createElement(ButtonWrapper$1, null, React.createElement(Button, {
18044
+ }), React.createElement(ButtonWrapper$2, null, React.createElement(Button, {
17959
18045
  buttonType: ButtonTypes.RPGUIButton,
17960
18046
  onPointerDown: function onPointerDown() {
17961
18047
  onCreate();
@@ -17973,11 +18059,11 @@ var Wrapper$2 = /*#__PURE__*/styled.div.withConfig({
17973
18059
  displayName: "PartyCreate__Wrapper",
17974
18060
  componentId: "sc-13brop0-0"
17975
18061
  })(["display:flex;flex-direction:column;width:100%;"]);
17976
- var Title$3 = /*#__PURE__*/styled.h1.withConfig({
18062
+ var Title$4 = /*#__PURE__*/styled.h1.withConfig({
17977
18063
  displayName: "PartyCreate__Title",
17978
18064
  componentId: "sc-13brop0-1"
17979
18065
  })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
17980
- var ButtonWrapper$1 = /*#__PURE__*/styled.div.withConfig({
18066
+ var ButtonWrapper$2 = /*#__PURE__*/styled.div.withConfig({
17981
18067
  displayName: "PartyCreate__ButtonWrapper",
17982
18068
  componentId: "sc-13brop0-2"
17983
18069
  })(["margin-top:10px;width:100%;display:flex;justify-content:space-around;align-items:center;.cancel-button{filter:grayscale(0.7);}"]);
@@ -18022,7 +18108,7 @@ var PartyDashboard = function PartyDashboard(_ref) {
18022
18108
  style: {
18023
18109
  width: '100%'
18024
18110
  }
18025
- }, React.createElement(Title$4, null, "Party Dashboard"), React.createElement(Button, {
18111
+ }, React.createElement(Title$5, null, "Party Dashboard"), React.createElement(Button, {
18026
18112
  buttonType: ButtonTypes.RPGUIButton
18027
18113
  }, "Create"), React.createElement("hr", {
18028
18114
  className: "golden"
@@ -18049,7 +18135,7 @@ var RowsWrapper = /*#__PURE__*/styled.div.withConfig({
18049
18135
  displayName: "PartyDashboard__RowsWrapper",
18050
18136
  componentId: "sc-16cm41r-1"
18051
18137
  })(["overflow-y:scroll;-webkit-overflow-scrolling:touch;width:100%;height:200px;"]);
18052
- var Title$4 = /*#__PURE__*/styled.h1.withConfig({
18138
+ var Title$5 = /*#__PURE__*/styled.h1.withConfig({
18053
18139
  displayName: "PartyDashboard__Title",
18054
18140
  componentId: "sc-16cm41r-2"
18055
18141
  })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
@@ -18086,7 +18172,7 @@ var PartyInvite = function PartyInvite(_ref) {
18086
18172
  style: {
18087
18173
  width: '100%'
18088
18174
  }
18089
- }, React.createElement(Title$5, null, "Invite for Party"), React.createElement("hr", {
18175
+ }, React.createElement(Title$6, null, "Invite for Party"), React.createElement("hr", {
18090
18176
  className: "golden"
18091
18177
  }))), React.createElement(RowsWrapper$1, {
18092
18178
  className: "playersRows"
@@ -18105,7 +18191,7 @@ var Wrapper$4 = /*#__PURE__*/styled.div.withConfig({
18105
18191
  displayName: "PartyInvite__Wrapper",
18106
18192
  componentId: "sc-eu8ggt-0"
18107
18193
  })(["display:flex;flex-direction:column;width:100%;"]);
18108
- var Title$5 = /*#__PURE__*/styled.h1.withConfig({
18194
+ var Title$6 = /*#__PURE__*/styled.h1.withConfig({
18109
18195
  displayName: "PartyInvite__Title",
18110
18196
  componentId: "sc-eu8ggt-1"
18111
18197
  })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
@@ -18163,7 +18249,7 @@ var PartyManager = function PartyManager(_ref) {
18163
18249
  style: {
18164
18250
  width: '100%'
18165
18251
  }
18166
- }, React.createElement(Title$6, null, "Party Dashboard"), React.createElement("hr", {
18252
+ }, React.createElement(Title$7, null, "Party Dashboard"), React.createElement("hr", {
18167
18253
  className: "golden"
18168
18254
  }))), React.createElement(RowsWrapper$2, {
18169
18255
  className: "partyRows"
@@ -18209,7 +18295,7 @@ var RowsWrapper$2 = /*#__PURE__*/styled.div.withConfig({
18209
18295
  displayName: "PartyManager__RowsWrapper",
18210
18296
  componentId: "sc-1yqcad8-2"
18211
18297
  })(["width:100%;"]);
18212
- var Title$6 = /*#__PURE__*/styled.h1.withConfig({
18298
+ var Title$7 = /*#__PURE__*/styled.h1.withConfig({
18213
18299
  displayName: "PartyManager__Title",
18214
18300
  componentId: "sc-1yqcad8-3"
18215
18301
  })(["font-size:0.6rem;color:", " !important;"], uiColors.yellow);
@@ -18474,7 +18560,7 @@ var QuestInfo = function QuestInfo(_ref) {
18474
18560
  onPointerDown: onRightClick
18475
18561
  }), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
18476
18562
  className: "drag-handler"
18477
- }, React.createElement(Title$7, null, React.createElement(Thumbnail, {
18563
+ }, React.createElement(Title$8, null, React.createElement(Thumbnail, {
18478
18564
  src: quests[currentIndex].thumbnail || img$8
18479
18565
  }), quests[currentIndex].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
18480
18566
  className: "golden"
@@ -18493,7 +18579,7 @@ var QuestInfo = function QuestInfo(_ref) {
18493
18579
  }, button.title);
18494
18580
  })))) : React.createElement(QuestsContainer, null, React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
18495
18581
  className: "drag-handler"
18496
- }, React.createElement(Title$7, null, React.createElement(Thumbnail, {
18582
+ }, React.createElement(Title$8, null, React.createElement(Thumbnail, {
18497
18583
  src: quests[0].thumbnail || img$8
18498
18584
  }), quests[0].title), React.createElement(QuestSplitDiv, null, React.createElement("hr", {
18499
18585
  className: "golden"
@@ -18540,7 +18626,7 @@ var TitleContainer$1 = /*#__PURE__*/styled.div.withConfig({
18540
18626
  displayName: "QuestInfo__TitleContainer",
18541
18627
  componentId: "sc-15s2boc-6"
18542
18628
  })(["width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:1rem;"]);
18543
- var Title$7 = /*#__PURE__*/styled.h1.withConfig({
18629
+ var Title$8 = /*#__PURE__*/styled.h1.withConfig({
18544
18630
  displayName: "QuestInfo__Title",
18545
18631
  componentId: "sc-15s2boc-7"
18546
18632
  })(["color:white;z-index:22;font-size:", " !important;color:", " !important;"], uiFonts.size.medium, uiColors.yellow);
@@ -18564,7 +18650,7 @@ var QuestList = function QuestList(_ref) {
18564
18650
  style: {
18565
18651
  width: '100%'
18566
18652
  }
18567
- }, React.createElement(Title$8, null, "Quests"), React.createElement("hr", {
18653
+ }, React.createElement(Title$9, null, "Quests"), React.createElement("hr", {
18568
18654
  className: "golden"
18569
18655
  }), React.createElement(QuestListContainer, null, quests ? quests.map(function (quest, i) {
18570
18656
  return React.createElement("div", {
@@ -18585,7 +18671,7 @@ var QuestDraggableContainer$1 = /*#__PURE__*/styled(DraggableContainer).withConf
18585
18671
  displayName: "QuestList__QuestDraggableContainer",
18586
18672
  componentId: "sc-1a2vx6q-0"
18587
18673
  })([".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;}"]);
18588
- var Title$8 = /*#__PURE__*/styled.h1.withConfig({
18674
+ var Title$9 = /*#__PURE__*/styled.h1.withConfig({
18589
18675
  displayName: "QuestList__Title",
18590
18676
  componentId: "sc-1a2vx6q-1"
18591
18677
  })(["z-index:22;font-size:", " !important;color:yellow !important;"], uiFonts.size.medium);
@@ -18598,29 +18684,6 @@ var NoQuestContainer = /*#__PURE__*/styled.div.withConfig({
18598
18684
  componentId: "sc-1a2vx6q-3"
18599
18685
  })(["text-align:center;p{margin-top:5px;}"]);
18600
18686
 
18601
- var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
18602
- var children = _ref.children;
18603
- return React.createElement(Container$q, null, children);
18604
- };
18605
- var Container$q = /*#__PURE__*/styled.div.withConfig({
18606
- displayName: "RPGUIScrollbar__Container",
18607
- componentId: "sc-p3msmb-0"
18608
- })([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
18609
-
18610
- var RPGUIOverrides = function RPGUIOverrides(_ref) {
18611
- var children = _ref.children;
18612
- return React.createElement(RPGUIScrollbar, null, children);
18613
- };
18614
-
18615
- //@ts-ignore
18616
- var _RPGUI = RPGUI;
18617
- var RPGUIRoot = function RPGUIRoot(_ref) {
18618
- var children = _ref.children;
18619
- return React.createElement(RPGUIOverrides, null, React.createElement("div", {
18620
- className: "rpgui-content"
18621
- }, children));
18622
- };
18623
-
18624
18687
  var InputRadio$1 = function InputRadio(_ref) {
18625
18688
  var name = _ref.name,
18626
18689
  items = _ref.items,
@@ -18653,6 +18716,29 @@ var InputRadio$1 = function InputRadio(_ref) {
18653
18716
  }));
18654
18717
  };
18655
18718
 
18719
+ var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
18720
+ var children = _ref.children;
18721
+ return React.createElement(Container$q, null, children);
18722
+ };
18723
+ var Container$q = /*#__PURE__*/styled.div.withConfig({
18724
+ displayName: "RPGUIScrollbar__Container",
18725
+ componentId: "sc-p3msmb-0"
18726
+ })([".rpgui-content ::-webkit-scrollbar,.rpgui-content::-webkit-scrollbar{width:25px !important;}.rpgui-content ::-webkit-scrollbar-track,.rpgui-content::-webkit-scrollbar-track{background-size:25px 60px !important;}"]);
18727
+
18728
+ var RPGUIOverrides = function RPGUIOverrides(_ref) {
18729
+ var children = _ref.children;
18730
+ return React.createElement(RPGUIScrollbar, null, children);
18731
+ };
18732
+
18733
+ //@ts-ignore
18734
+ var _RPGUI = RPGUI;
18735
+ var RPGUIRoot = function RPGUIRoot(_ref) {
18736
+ var children = _ref.children;
18737
+ return React.createElement(RPGUIOverrides, null, React.createElement("div", {
18738
+ className: "rpgui-content"
18739
+ }, children));
18740
+ };
18741
+
18656
18742
  var Shortcuts = function Shortcuts(_ref) {
18657
18743
  var shortcuts = _ref.shortcuts,
18658
18744
  onShortcutCast = _ref.onShortcutCast,
@@ -19091,7 +19177,7 @@ var SpellInfo = function SpellInfo(_ref) {
19091
19177
  castingType = spell.castingType,
19092
19178
  cooldown = spell.cooldown,
19093
19179
  maxDistanceGrid = spell.maxDistanceGrid;
19094
- return React.createElement(Container$s, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$9, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
19180
+ return React.createElement(Container$s, null, React.createElement(Header$1, null, React.createElement("div", null, React.createElement(Title$a, null, name), React.createElement(Type$1, null, magicWords))), React.createElement(Statistic$1, null, React.createElement("div", {
19095
19181
  className: "label"
19096
19182
  }, "Casting Type:"), React.createElement("div", {
19097
19183
  className: "value"
@@ -19121,7 +19207,7 @@ var Container$s = /*#__PURE__*/styled.div.withConfig({
19121
19207
  displayName: "SpellInfo__Container",
19122
19208
  componentId: "sc-4hbw3q-0"
19123
19209
  })(["color:white;background-color:#222;border-radius:5px;padding:0.5rem;font-size:", ";border:3px solid ", ";height:max-content;width:30rem;@media (max-width:580px){width:80vw;}"], uiFonts.size.small, uiColors.lightGray);
19124
- var Title$9 = /*#__PURE__*/styled.div.withConfig({
19210
+ var Title$a = /*#__PURE__*/styled.div.withConfig({
19125
19211
  displayName: "SpellInfo__Title",
19126
19212
  componentId: "sc-4hbw3q-1"
19127
19213
  })(["font-size:", ";font-weight:bold;margin-bottom:0.5rem;display:flex;align-items:center;margin:0;"], uiFonts.size.medium);
@@ -19316,7 +19402,7 @@ var Spell = function Spell(_ref) {
19316
19402
  imgScale: IMAGE_SCALE,
19317
19403
  containerStyle: CONTAINER_STYLE,
19318
19404
  centered: true
19319
- })), React.createElement(Info, null, React.createElement(Title$a, null, React.createElement("span", null, name), React.createElement("span", {
19405
+ })), React.createElement(Info, null, React.createElement(Title$b, null, React.createElement("span", null, name), React.createElement("span", {
19320
19406
  className: "spell"
19321
19407
  }, "(", magicWords, ")")), React.createElement(Description$3, null, description)), React.createElement(Divider, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
19322
19408
  className: "mana"
@@ -19337,7 +19423,7 @@ var Info = /*#__PURE__*/styled.span.withConfig({
19337
19423
  displayName: "Spell__Info",
19338
19424
  componentId: "sc-j96fa2-2"
19339
19425
  })(["width:0;flex:1;@media (orientation:portrait){display:none;}"]);
19340
- var Title$a = /*#__PURE__*/styled.p.withConfig({
19426
+ var Title$b = /*#__PURE__*/styled.p.withConfig({
19341
19427
  displayName: "Spell__Title",
19342
19428
  componentId: "sc-j96fa2-3"
19343
19429
  })(["display:flex;flex-wrap:wrap;align-items:center;margin-bottom:5px;margin:0;span{font-size:", " !important;font-weight:bold !important;color:", " !important;margin-right:0.5rem;}.spell{font-size:", " !important;font-weight:normal !important;color:", " !important;}"], uiFonts.size.medium, uiColors.yellow, uiFonts.size.small, uiColors.lightGray);
@@ -19401,7 +19487,7 @@ var Spellbook = function Spellbook(_ref) {
19401
19487
  height: "inherit",
19402
19488
  cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
19403
19489
  scale: scale
19404
- }, React.createElement(Container$w, null, React.createElement(Title$b, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
19490
+ }, React.createElement(Container$w, null, React.createElement(Title$c, null, "Learned Spells"), React.createElement(ShortcutsSetter, {
19405
19491
  setSettingShortcutIndex: setSettingShortcutIndex,
19406
19492
  settingShortcutIndex: settingShortcutIndex,
19407
19493
  shortcuts: shortcuts,
@@ -19433,7 +19519,7 @@ var Spellbook = function Spellbook(_ref) {
19433
19519
  }, spell)));
19434
19520
  }))));
19435
19521
  };
19436
- var Title$b = /*#__PURE__*/styled.h1.withConfig({
19522
+ var Title$c = /*#__PURE__*/styled.h1.withConfig({
19437
19523
  displayName: "Spellbook__Title",
19438
19524
  componentId: "sc-r02nfq-0"
19439
19525
  })(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
@@ -19450,7 +19536,9 @@ var Stepper = function Stepper(_ref) {
19450
19536
  var _steps$currentStep;
19451
19537
  var steps = _ref.steps,
19452
19538
  finalCTAButton = _ref.finalCTAButton,
19453
- onError = _ref.onError;
19539
+ onError = _ref.onError,
19540
+ _ref$useSideArrows = _ref.useSideArrows,
19541
+ useSideArrows = _ref$useSideArrows === void 0 ? false : _ref$useSideArrows;
19454
19542
  var _useState = useState(0),
19455
19543
  currentStep = _useState[0],
19456
19544
  setCurrentStep = _useState[1];
@@ -19476,7 +19564,6 @@ var Stepper = function Stepper(_ref) {
19476
19564
  _context.next = 8;
19477
19565
  break;
19478
19566
  }
19479
- // If the current step is not valid, prevent navigation and trigger onError
19480
19567
  if (onError) {
19481
19568
  onError(steps[currentStep].errorMessage || "Validation failed on step " + (currentStep + 1));
19482
19569
  }
@@ -19487,7 +19574,6 @@ var Stepper = function Stepper(_ref) {
19487
19574
  case 10:
19488
19575
  _context.prev = 10;
19489
19576
  _context.t0 = _context["catch"](1);
19490
- // Handle unexpected validation errors
19491
19577
  if (onError) {
19492
19578
  onError("An error occurred during validation on step " + (currentStep + 1));
19493
19579
  }
@@ -19504,6 +19590,29 @@ var Stepper = function Stepper(_ref) {
19504
19590
  return _ref2.apply(this, arguments);
19505
19591
  };
19506
19592
  }();
19593
+ var renderArrows = function renderArrows() {
19594
+ var leftArrow = React.createElement(SelectArrow, {
19595
+ direction: "left",
19596
+ onPointerDown: function onPointerDown() {
19597
+ return onStepChange(Math.max(0, currentStep - 1));
19598
+ }
19599
+ });
19600
+ var rightArrow = React.createElement(SelectArrow, {
19601
+ direction: "right",
19602
+ onPointerDown: function onPointerDown() {
19603
+ return onStepChange(Math.min(totalSteps - 1, currentStep + 1));
19604
+ }
19605
+ });
19606
+ if (useSideArrows) {
19607
+ return React.createElement(React.Fragment, null, currentStep > 0 && React.createElement(ArrowContainer$1, {
19608
+ left: true
19609
+ }, leftArrow), currentStep < totalSteps - 1 && React.createElement(ArrowContainer$1, {
19610
+ right: true
19611
+ }, rightArrow));
19612
+ } else {
19613
+ return React.createElement(React.Fragment, null, currentStep > 0 && leftArrow, currentStep < totalSteps - 1 && rightArrow);
19614
+ }
19615
+ };
19507
19616
  return React.createElement(StepperContainer, {
19508
19617
  className: "stepper-container"
19509
19618
  }, React.createElement(StepperTop, null, Array.from({
@@ -19516,17 +19625,7 @@ var Stepper = function Stepper(_ref) {
19516
19625
  return onStepChange(i);
19517
19626
  }
19518
19627
  });
19519
- })), React.createElement(StepperBody, null, currentComponent), React.createElement(StepperFooter, null, currentStep > 0 && React.createElement(SelectArrow, {
19520
- direction: "left",
19521
- onPointerDown: function onPointerDown() {
19522
- return onStepChange(Math.max(0, currentStep - 1));
19523
- }
19524
- }), currentStep < totalSteps - 1 && React.createElement(SelectArrow, {
19525
- direction: "right",
19526
- onPointerDown: function onPointerDown() {
19527
- return onStepChange(Math.min(totalSteps - 1, currentStep + 1));
19528
- }
19529
- }), currentStep === totalSteps - 1 && finalCTAButton && React.createElement(Button, {
19628
+ })), React.createElement(StepperBodyContainer, null, useSideArrows && renderArrows(), React.createElement(StepperBody, null, currentComponent)), React.createElement(StepperFooter, null, !useSideArrows && renderArrows(), currentStep === totalSteps - 1 && finalCTAButton && React.createElement(Button, {
19530
19629
  buttonType: ButtonTypes.RPGUIButton,
19531
19630
  onClick: finalCTAButton.onClick
19532
19631
  }, finalCTAButton.label)));
@@ -19539,24 +19638,39 @@ var StepperTop = /*#__PURE__*/styled.div.withConfig({
19539
19638
  displayName: "Stepper__StepperTop",
19540
19639
  componentId: "sc-13obf1-1"
19541
19640
  })(["flex:1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin-bottom:1rem;"]);
19641
+ var StepperBodyContainer = /*#__PURE__*/styled.div.withConfig({
19642
+ displayName: "Stepper__StepperBodyContainer",
19643
+ componentId: "sc-13obf1-2"
19644
+ })(["flex:8;display:flex;align-items:center;position:relative;"]);
19542
19645
  var StepperBody = /*#__PURE__*/styled.div.withConfig({
19543
19646
  displayName: "Stepper__StepperBody",
19544
- componentId: "sc-13obf1-2"
19545
- })(["flex:8;"]);
19647
+ componentId: "sc-13obf1-3"
19648
+ })(["flex:1;"]);
19649
+ var ArrowContainer$1 = /*#__PURE__*/styled.div.withConfig({
19650
+ displayName: "Stepper__ArrowContainer",
19651
+ componentId: "sc-13obf1-4"
19652
+ })(["position:absolute;top:50%;transform:translateY(-50%);", " ", ""], function (props) {
19653
+ return props.left && 'left: -30px;';
19654
+ }, function (props) {
19655
+ return props.right && 'right: -30px;';
19656
+ });
19546
19657
  var StepperFooter = /*#__PURE__*/styled.div.withConfig({
19547
19658
  displayName: "Stepper__StepperFooter",
19548
- componentId: "sc-13obf1-3"
19549
- })(["margin-top:1rem;flex:1;display:flex;justify-content:flex-end;"]);
19659
+ componentId: "sc-13obf1-5"
19660
+ })(["margin-top:1rem;flex:1;display:flex;justify-content:flex-end;align-items:center;"]);
19550
19661
  var ProgressIndicator = /*#__PURE__*/styled.div.withConfig({
19551
19662
  displayName: "Stepper__ProgressIndicator",
19552
- componentId: "sc-13obf1-4"
19553
- })(["width:20px;height:20px;border-radius:50%;background-color:", ";margin:0 5px;transition:background-color 0.3s;opacity:", ";border:1px solid ", ";cursor:pointer;"], function (_ref3) {
19663
+ componentId: "sc-13obf1-6"
19664
+ })(["width:20px;height:20px;background-color:", ";margin:0 5px;transition:background-color 0.3s;opacity:", ";border:1px solid ", ";cursor:pointer;clip-path:polygon(50% 0%,100% 50%,50% 100%,0% 50%);box-shadow:", ";border-radius:0;"], function (_ref3) {
19554
19665
  var isActive = _ref3.isActive;
19555
19666
  return isActive ? uiColors.orange : uiColors.lightGray;
19556
19667
  }, function (_ref4) {
19557
19668
  var isActive = _ref4.isActive;
19558
19669
  return isActive ? 1 : 0.25;
19559
- }, uiColors.raisinBlack);
19670
+ }, uiColors.raisinBlack, function (_ref5) {
19671
+ var isActive = _ref5.isActive;
19672
+ return isActive ? '0 0 0 1px black, 1px 1px 0 1px black, 2px 2px 0 1px black, -1px -1px 0 1px black' : '0 0 0 1px black, 1px 1px 0 1px gray, 2px 2px 0 1px gray, -1px -1px 0 1px gray';
19673
+ });
19560
19674
 
19561
19675
  var TextArea = function TextArea(_ref) {
19562
19676
  var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
@@ -19830,7 +19944,7 @@ var TradingMenu = function TradingMenu(_ref) {
19830
19944
  style: {
19831
19945
  width: '100%'
19832
19946
  }
19833
- }, React.createElement(Title$c, null, Capitalize(type), " Menu"), React.createElement("hr", {
19947
+ }, React.createElement(Title$d, null, Capitalize(type), " Menu"), React.createElement("hr", {
19834
19948
  className: "golden"
19835
19949
  })), React.createElement(TradingComponentScrollWrapper, {
19836
19950
  id: "TraderContainer"
@@ -19848,7 +19962,7 @@ var TradingMenu = function TradingMenu(_ref) {
19848
19962
  scale: scale,
19849
19963
  isBuy: isBuy()
19850
19964
  }));
19851
- })), React.createElement(GoldWrapper, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(TotalWrapper, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertWrapper, null, React.createElement("p", null, " Sorry, not enough money.")) : React.createElement(GoldWrapper, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2))), React.createElement(ButtonWrapper$2, null, React.createElement(Button, {
19965
+ })), React.createElement(GoldWrapper, null, React.createElement("p", null, "Available Gold:"), React.createElement("p", null, "$", characterAvailableGold.toFixed(2))), React.createElement(TotalWrapper, null, React.createElement("p", null, "Total:"), React.createElement("p", null, "$", sum)), !hasGoldForSale() ? React.createElement(AlertWrapper, null, React.createElement("p", null, " Sorry, not enough money.")) : React.createElement(GoldWrapper, null, React.createElement("p", null, "Final Gold:"), React.createElement("p", null, "$", getFinalGold().toFixed(2))), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
19852
19966
  buttonType: ButtonTypes.RPGUIButton,
19853
19967
  disabled: !hasGoldForSale(),
19854
19968
  onPointerDown: function onPointerDown() {
@@ -19861,7 +19975,7 @@ var TradingMenu = function TradingMenu(_ref) {
19861
19975
  }
19862
19976
  }, "Cancel"))));
19863
19977
  };
19864
- var Title$c = /*#__PURE__*/styled.h1.withConfig({
19978
+ var Title$d = /*#__PURE__*/styled.h1.withConfig({
19865
19979
  displayName: "TradingMenu__Title",
19866
19980
  componentId: "sc-1wjsz1l-0"
19867
19981
  })(["z-index:22;font-size:0.6rem;color:yellow !important;"]);
@@ -19885,7 +19999,7 @@ var AlertWrapper = /*#__PURE__*/styled.div.withConfig({
19885
19999
  displayName: "TradingMenu__AlertWrapper",
19886
20000
  componentId: "sc-1wjsz1l-5"
19887
20001
  })(["margin-top:1rem;display:flex;width:100%;justify-content:center;height:20px;p{color:red !important;}"]);
19888
- var ButtonWrapper$2 = /*#__PURE__*/styled.div.withConfig({
20002
+ var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
19889
20003
  displayName: "TradingMenu__ButtonWrapper",
19890
20004
  componentId: "sc-1wjsz1l-6"
19891
20005
  })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;margin-top:1rem;button{padding:0px 50px;}"]);
@@ -19906,91 +20020,45 @@ var Container$x = /*#__PURE__*/styled.div.withConfig({
19906
20020
  return props.maxLines;
19907
20021
  });
19908
20022
 
19909
- var ItemSelector = function ItemSelector(_ref) {
19910
- var atlasIMG = _ref.atlasIMG,
19911
- atlasJSON = _ref.atlasJSON,
19912
- options = _ref.options,
19913
- onClose = _ref.onClose,
19914
- onSelect = _ref.onSelect;
19915
- var _useState = useState(),
19916
- selectedValue = _useState[0],
19917
- setSelectedValue = _useState[1];
19918
- var handleClick = function handleClick() {
19919
- var element = document.querySelector("input[name='test']:checked");
19920
- var elementValue = element.value;
19921
- setSelectedValue(elementValue);
20023
+ var TutorialStepper = function TutorialStepper(_ref) {
20024
+ var lessons = _ref.lessons,
20025
+ onLessonFinish = _ref.onLessonFinish;
20026
+ var generateLessons = function generateLessons() {
20027
+ return lessons.map(function (lesson, index) {
20028
+ return {
20029
+ component: React.createElement("div", null, React.createElement("h1", null, lesson.title), lesson.image && React.createElement(LessonImage, null, React.createElement("img", {
20030
+ src: lesson.image,
20031
+ alt: lesson.title
20032
+ })), lesson.body && React.createElement(LessonBody, null, lesson.body), lesson.text && React.createElement(DynamicText, {
20033
+ text: lesson.text
20034
+ })),
20035
+ id: index
20036
+ };
20037
+ });
19922
20038
  };
19923
- useEffect(function () {
19924
- if (selectedValue) {
19925
- onSelect(selectedValue);
19926
- }
19927
- }, [selectedValue]);
19928
- return React.createElement(DraggableContainer, {
19929
- type: RPGUIContainerTypes.Framed,
19930
- width: "500px",
19931
- cancelDrag: ".equipment-container-body .arrow-selector",
19932
- onCloseButton: function onCloseButton() {
19933
- if (onClose) {
19934
- onClose();
19935
- }
19936
- }
19937
- }, React.createElement("div", {
19938
- style: {
19939
- width: '100%'
19940
- }
19941
- }, React.createElement(Title$d, null, 'Harvesting instruments'), React.createElement(Subtitle$1, null, 'Use the tool, you need it'), React.createElement("hr", {
19942
- className: "golden"
19943
- })), React.createElement(RadioInputScroller$1, null, options == null ? void 0 : options.map(function (option, index) {
19944
- return React.createElement(RadioOptionsWrapper$1, {
19945
- key: index
19946
- }, React.createElement(SpriteAtlasWrapper$1, null, React.createElement(SpriteFromAtlas, {
19947
- atlasIMG: atlasIMG,
19948
- atlasJSON: atlasJSON,
19949
- spriteKey: option.imageKey,
19950
- imgScale: 3
19951
- })), React.createElement("div", null, React.createElement("input", {
19952
- className: "rpgui-radio",
19953
- type: "radio",
19954
- value: option.name,
19955
- name: "test"
19956
- }), React.createElement("label", {
19957
- onPointerDown: handleClick,
19958
- style: {
19959
- display: 'flex',
19960
- alignItems: 'center'
20039
+ return React.createElement(Container$y, null, React.createElement(Stepper, {
20040
+ steps: generateLessons(),
20041
+ finalCTAButton: {
20042
+ label: 'Close',
20043
+ onClick: function onClick() {
20044
+ onLessonFinish();
19961
20045
  }
19962
- }, option.name, " ", React.createElement("br", null), option.description)));
19963
- })), React.createElement(ButtonWrapper$3, null, React.createElement(Button, {
19964
- buttonType: ButtonTypes.RPGUIButton,
19965
- onPointerDown: onClose
19966
- }, "Cancel"), React.createElement(Button, {
19967
- buttonType: ButtonTypes.RPGUIButton
19968
- }, "Select")));
20046
+ },
20047
+ useSideArrows: true
20048
+ }));
19969
20049
  };
19970
- var Title$d = /*#__PURE__*/styled.h1.withConfig({
19971
- displayName: "ItemSelector__Title",
19972
- componentId: "sc-gptoxp-0"
19973
- })(["font-size:0.6rem;color:yellow !important;"]);
19974
- var Subtitle$1 = /*#__PURE__*/styled.h1.withConfig({
19975
- displayName: "ItemSelector__Subtitle",
19976
- componentId: "sc-gptoxp-1"
19977
- })(["font-size:0.4rem;color:yellow !important;"]);
19978
- var RadioInputScroller$1 = /*#__PURE__*/styled.div.withConfig({
19979
- displayName: "ItemSelector__RadioInputScroller",
19980
- componentId: "sc-gptoxp-2"
19981
- })(["padding-left:15px;padding-top:10px;width:100%;margin-top:1rem;align-items:center;margin-left:20px;align-items:flex-start;overflow-y:scroll;height:360px;"]);
19982
- var SpriteAtlasWrapper$1 = /*#__PURE__*/styled.div.withConfig({
19983
- displayName: "ItemSelector__SpriteAtlasWrapper",
19984
- componentId: "sc-gptoxp-3"
19985
- })(["margin-right:40px;"]);
19986
- var RadioOptionsWrapper$1 = /*#__PURE__*/styled.div.withConfig({
19987
- displayName: "ItemSelector__RadioOptionsWrapper",
19988
- componentId: "sc-gptoxp-4"
19989
- })(["display:flex;align-items:stretch;margin-bottom:40px;"]);
19990
- var ButtonWrapper$3 = /*#__PURE__*/styled.div.withConfig({
19991
- displayName: "ItemSelector__ButtonWrapper",
19992
- componentId: "sc-gptoxp-5"
19993
- })(["display:flex;justify-content:space-around;padding-top:20px;width:100%;"]);
20050
+ var LessonBody = /*#__PURE__*/styled.div.withConfig({
20051
+ displayName: "TutorialStepper__LessonBody",
20052
+ componentId: "sc-7tgzv2-0"
20053
+ })([""]);
20054
+ var Container$y = /*#__PURE__*/styled.div.withConfig({
20055
+ displayName: "TutorialStepper__Container",
20056
+ componentId: "sc-7tgzv2-1"
20057
+ })(["margin:2rem;"]);
20058
+ var LessonImage = /*#__PURE__*/styled.div.withConfig({
20059
+ displayName: "TutorialStepper__LessonImage",
20060
+ componentId: "sc-7tgzv2-2"
20061
+ })(["display:flex;justify-content:center;align-items:center;img{width:600px;height:400px;border-radius:10px;}"]);
19994
20062
 
19995
- export { 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, TabsContainer, TextArea, TimeWidget, TradingMenu, Truncate, _RPGUI, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
20063
+ export { 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, TabsContainer, TextArea, TimeWidget, TradingMenu, Truncate, TutorialStepper, _RPGUI, mockedPartyManager, mockedPartyRows, mockedPlayersRows, mockedPlayersRows2, useEventListener };
19996
20064
  //# sourceMappingURL=long-bow.esm.js.map