@rpg-engine/long-bow 0.6.69 → 0.6.70
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/Friends/SearchFriend.d.ts +4 -4
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/long-bow.cjs.development.js +154 -110
- 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 +155 -112
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Friends/FriendList.tsx +6 -19
- package/src/components/Friends/SearchFriend.tsx +160 -107
- package/src/components/Table/Table.tsx +15 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
interface
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IFriend } from './FriendList';
|
|
3
|
+
interface ISearchFriendProps {
|
|
4
4
|
searchedCharacters: IFriend[];
|
|
5
5
|
friendRequests: IFriend[];
|
|
6
6
|
onFocus?: () => void;
|
|
@@ -10,5 +10,5 @@ interface ISearchFriendProp {
|
|
|
10
10
|
onAcceptRequest: (character: IFriend) => void;
|
|
11
11
|
onRejectRequest: (character: IFriend) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const SearchFriend:
|
|
13
|
+
export declare const SearchFriend: React.FC<ISearchFriendProps>;
|
|
14
14
|
export {};
|
|
@@ -3,3 +3,8 @@ export declare const TableRow: import("styled-components").StyledComponent<"tr",
|
|
|
3
3
|
export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
|
|
4
4
|
export declare const TableCell: import("styled-components").StyledComponent<"td", any, {}, never>;
|
|
5
5
|
export declare const ActionButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
interface IUserActionProps {
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const UserActionLink: import("styled-components").StyledComponent<"span", any, IUserActionProps, never>;
|
|
10
|
+
export {};
|
|
@@ -28802,101 +28802,151 @@ var TableHeader = /*#__PURE__*/styled__default.th.withConfig({
|
|
|
28802
28802
|
var TableCell = /*#__PURE__*/styled__default.td.withConfig({
|
|
28803
28803
|
displayName: "Table__TableCell",
|
|
28804
28804
|
componentId: "sc-1c24pcj-3"
|
|
28805
|
-
})(["padding:0.5rem;color:", ";border-bottom:1px solid ", ";"], uiColors.white, uiColors.lightGray)
|
|
28805
|
+
})(["padding:0.5rem;color:", ";border-bottom:1px solid ", ";text-align:", ";"], uiColors.white, uiColors.lightGray, function (_ref) {
|
|
28806
|
+
var align = _ref.align;
|
|
28807
|
+
return align ? align : 'left';
|
|
28808
|
+
});
|
|
28806
28809
|
var ActionButtons = /*#__PURE__*/styled__default.div.withConfig({
|
|
28807
28810
|
displayName: "Table__ActionButtons",
|
|
28808
28811
|
componentId: "sc-1c24pcj-4"
|
|
28809
28812
|
})(["display:flex;gap:10px;align-items:center;"]);
|
|
28813
|
+
var UserActionLink = /*#__PURE__*/styled__default.span.withConfig({
|
|
28814
|
+
displayName: "Table__UserActionLink",
|
|
28815
|
+
componentId: "sc-1c24pcj-5"
|
|
28816
|
+
})(["color:", " !important;cursor:pointer;margin-right:0.5rem;&:hover{text-decoration:underline;}"], function (_ref2) {
|
|
28817
|
+
var color = _ref2.color;
|
|
28818
|
+
return color;
|
|
28819
|
+
});
|
|
28810
28820
|
|
|
28811
|
-
var SearchFriend = function SearchFriend(
|
|
28812
|
-
var searchedCharacters =
|
|
28813
|
-
friendRequests =
|
|
28814
|
-
onBlur =
|
|
28815
|
-
onFocus =
|
|
28816
|
-
onSearch =
|
|
28817
|
-
onSendFriendRequest =
|
|
28818
|
-
onAcceptRequest =
|
|
28819
|
-
onRejectRequest =
|
|
28821
|
+
var SearchFriend = function SearchFriend(_ref) {
|
|
28822
|
+
var searchedCharacters = _ref.searchedCharacters,
|
|
28823
|
+
friendRequests = _ref.friendRequests,
|
|
28824
|
+
onBlur = _ref.onBlur,
|
|
28825
|
+
onFocus = _ref.onFocus,
|
|
28826
|
+
onSearch = _ref.onSearch,
|
|
28827
|
+
onSendFriendRequest = _ref.onSendFriendRequest,
|
|
28828
|
+
onAcceptRequest = _ref.onAcceptRequest,
|
|
28829
|
+
onRejectRequest = _ref.onRejectRequest;
|
|
28820
28830
|
var _useState = React.useState(''),
|
|
28821
28831
|
characterName = _useState[0],
|
|
28822
28832
|
setCharacterName = _useState[1];
|
|
28833
|
+
var debouncedSearch = React.useCallback(lodash.debounce(function (name) {
|
|
28834
|
+
onSearch(name);
|
|
28835
|
+
}, 300), []);
|
|
28836
|
+
var handleInputChange = function handleInputChange(e) {
|
|
28837
|
+
var name = e.target.value;
|
|
28838
|
+
setCharacterName(name);
|
|
28839
|
+
debouncedSearch(name);
|
|
28840
|
+
};
|
|
28823
28841
|
var handleSubmit = function handleSubmit(event) {
|
|
28824
28842
|
event.preventDefault();
|
|
28825
|
-
if (
|
|
28826
|
-
|
|
28843
|
+
if (characterName.trim()) {
|
|
28844
|
+
onSearch(characterName);
|
|
28845
|
+
}
|
|
28827
28846
|
};
|
|
28828
|
-
|
|
28847
|
+
var searchTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(SearchForm, {
|
|
28829
28848
|
onSubmit: handleSubmit
|
|
28830
|
-
}, React__default.createElement(
|
|
28831
|
-
flex: 70
|
|
28832
|
-
}, React__default.createElement(TextField$2, {
|
|
28849
|
+
}, React__default.createElement(SearchInput, {
|
|
28833
28850
|
value: characterName,
|
|
28834
28851
|
id: "characterName",
|
|
28835
28852
|
name: "characterName",
|
|
28836
|
-
onChange:
|
|
28837
|
-
setCharacterName(e.target.value);
|
|
28838
|
-
},
|
|
28839
|
-
height: 20,
|
|
28853
|
+
onChange: handleInputChange,
|
|
28840
28854
|
type: "text",
|
|
28841
28855
|
autoComplete: "off",
|
|
28842
28856
|
onFocus: onFocus,
|
|
28843
28857
|
onBlur: onBlur,
|
|
28844
28858
|
onPointerDown: onFocus,
|
|
28845
|
-
autoFocus: true
|
|
28846
|
-
|
|
28847
|
-
|
|
28848
|
-
|
|
28849
|
-
|
|
28850
|
-
|
|
28851
|
-
}
|
|
28852
|
-
|
|
28859
|
+
autoFocus: true,
|
|
28860
|
+
placeholder: "Search for a character..."
|
|
28861
|
+
})), React__default.createElement(CharacterList, {
|
|
28862
|
+
characters: searchedCharacters,
|
|
28863
|
+
onAction: onSendFriendRequest,
|
|
28864
|
+
actionLabel: "Add Friend"
|
|
28865
|
+
}));
|
|
28866
|
+
var requestsTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(FriendRequestSection, {
|
|
28867
|
+
friendRequests: friendRequests,
|
|
28868
|
+
onAccept: onAcceptRequest,
|
|
28869
|
+
onReject: onRejectRequest
|
|
28870
|
+
}));
|
|
28871
|
+
var tabs = [{
|
|
28872
|
+
id: 'search',
|
|
28873
|
+
title: 'Search',
|
|
28874
|
+
content: searchTabContent
|
|
28875
|
+
}, {
|
|
28876
|
+
id: 'requests',
|
|
28877
|
+
title: "Requests (" + friendRequests.length + ")",
|
|
28878
|
+
content: requestsTabContent
|
|
28879
|
+
}];
|
|
28880
|
+
return React__default.createElement(Container$g, null, React__default.createElement(TableTab, {
|
|
28881
|
+
tabs: tabs,
|
|
28882
|
+
activeTextColor: "#000",
|
|
28883
|
+
inactiveColor: "#777",
|
|
28884
|
+
borderColor: "#f59e0b"
|
|
28885
|
+
}));
|
|
28886
|
+
};
|
|
28887
|
+
var CharacterList = function CharacterList(_ref2) {
|
|
28888
|
+
var characters = _ref2.characters,
|
|
28889
|
+
onAction = _ref2.onAction,
|
|
28890
|
+
actionLabel = _ref2.actionLabel;
|
|
28891
|
+
return React__default.createElement(ListContainer$1, null, characters.map(function (character) {
|
|
28892
|
+
return React__default.createElement(ListItem, {
|
|
28853
28893
|
key: character._id
|
|
28854
|
-
}, React__default.createElement(
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
return
|
|
28894
|
+
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(UserActionLink, {
|
|
28895
|
+
color: uiColors.lightGreen,
|
|
28896
|
+
onClick: function onClick() {
|
|
28897
|
+
return onAction(character);
|
|
28858
28898
|
}
|
|
28859
|
-
},
|
|
28860
|
-
}))
|
|
28861
|
-
|
|
28899
|
+
}, actionLabel));
|
|
28900
|
+
}));
|
|
28901
|
+
};
|
|
28902
|
+
var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
28903
|
+
var friendRequests = _ref3.friendRequests,
|
|
28904
|
+
onAccept = _ref3.onAccept,
|
|
28905
|
+
onReject = _ref3.onReject;
|
|
28906
|
+
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0 && React__default.createElement(ListContainer$1, null, friendRequests.map(function (character) {
|
|
28907
|
+
return React__default.createElement(ListItem, {
|
|
28862
28908
|
key: character._id
|
|
28863
|
-
}, React__default.createElement(
|
|
28864
|
-
|
|
28865
|
-
|
|
28866
|
-
return
|
|
28909
|
+
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(AcceptRejectActions, null, React__default.createElement(UserActionLink, {
|
|
28910
|
+
color: uiColors.lightGreen,
|
|
28911
|
+
onClick: function onClick() {
|
|
28912
|
+
return onAccept(character);
|
|
28867
28913
|
}
|
|
28868
|
-
}, "Accept"), React__default.createElement(
|
|
28869
|
-
|
|
28870
|
-
|
|
28871
|
-
return
|
|
28914
|
+
}, "Accept"), React__default.createElement(UserActionLink, {
|
|
28915
|
+
color: uiColors.red,
|
|
28916
|
+
onClick: function onClick() {
|
|
28917
|
+
return onReject(character);
|
|
28872
28918
|
}
|
|
28873
28919
|
}, "Reject")));
|
|
28874
28920
|
})));
|
|
28875
28921
|
};
|
|
28876
|
-
var
|
|
28877
|
-
displayName: "
|
|
28922
|
+
var Container$g = /*#__PURE__*/styled__default.div.withConfig({
|
|
28923
|
+
displayName: "SearchFriend__Container",
|
|
28878
28924
|
componentId: "sc-1lt1ols-0"
|
|
28879
|
-
})(["display:flex;
|
|
28880
|
-
var
|
|
28881
|
-
displayName: "
|
|
28925
|
+
})(["display:flex;flex-direction:column;gap:1rem;"]);
|
|
28926
|
+
var SearchForm = /*#__PURE__*/styled__default.form.withConfig({
|
|
28927
|
+
displayName: "SearchFriend__SearchForm",
|
|
28882
28928
|
componentId: "sc-1lt1ols-1"
|
|
28883
|
-
})(["
|
|
28929
|
+
})(["display:flex;align-items:center;width:100%;margin-top:1rem;"]);
|
|
28930
|
+
var SearchInput = /*#__PURE__*/styled__default.input.withConfig({
|
|
28931
|
+
displayName: "SearchFriend__SearchInput",
|
|
28932
|
+
componentId: "sc-1lt1ols-2"
|
|
28933
|
+
})(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
|
|
28884
28934
|
var ListContainer$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
28885
28935
|
displayName: "SearchFriend__ListContainer",
|
|
28886
|
-
componentId: "sc-1lt1ols-2"
|
|
28887
|
-
})(["width:100%;c4height:50vh;border:none;overflow-y:scroll;list-style:none;padding:0;@media (max-width:768px){max-height:90wh;}"]);
|
|
28888
|
-
var ListElement$3 = /*#__PURE__*/styled__default.li.withConfig({
|
|
28889
|
-
displayName: "SearchFriend__ListElement",
|
|
28890
28936
|
componentId: "sc-1lt1ols-3"
|
|
28891
|
-
})(["
|
|
28892
|
-
var
|
|
28893
|
-
displayName: "
|
|
28937
|
+
})(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
|
|
28938
|
+
var ListItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
28939
|
+
displayName: "SearchFriend__ListItem",
|
|
28894
28940
|
componentId: "sc-1lt1ols-4"
|
|
28895
|
-
})(["
|
|
28896
|
-
var
|
|
28897
|
-
displayName: "
|
|
28941
|
+
})(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
|
|
28942
|
+
var CharacterName = /*#__PURE__*/styled__default.p.withConfig({
|
|
28943
|
+
displayName: "SearchFriend__CharacterName",
|
|
28898
28944
|
componentId: "sc-1lt1ols-5"
|
|
28899
|
-
})(["
|
|
28945
|
+
})(["font-size:", ";margin:0;"], uiFonts.size.small);
|
|
28946
|
+
var AcceptRejectActions = /*#__PURE__*/styled__default.div.withConfig({
|
|
28947
|
+
displayName: "SearchFriend__AcceptRejectActions",
|
|
28948
|
+
componentId: "sc-1lt1ols-6"
|
|
28949
|
+
})(["display:flex;gap:0.5rem;"]);
|
|
28900
28950
|
|
|
28901
28951
|
var FriendList = function FriendList(_ref) {
|
|
28902
28952
|
var friends = _ref.friends,
|
|
@@ -28936,12 +28986,12 @@ var FriendList = function FriendList(_ref) {
|
|
|
28936
28986
|
key: friend._id
|
|
28937
28987
|
}, React__default.createElement(TableCell, null, React__default.createElement(IsOnlineBadge, {
|
|
28938
28988
|
"$isOnline": friend.isOnline
|
|
28939
|
-
})), React__default.createElement(TableCell, null, friend.name), React__default.createElement(TableCell, null, React__default.createElement(ActionButtons, null, React__default.createElement(
|
|
28940
|
-
color: uiColors.
|
|
28989
|
+
})), React__default.createElement(TableCell, null, friend.name), React__default.createElement(TableCell, null, React__default.createElement(ActionButtons, null, React__default.createElement(UserActionLink, {
|
|
28990
|
+
color: uiColors.white,
|
|
28941
28991
|
onClick: function onClick() {
|
|
28942
28992
|
return onOpenPrivateMessage(friend);
|
|
28943
28993
|
}
|
|
28944
|
-
}, "Chat"), React__default.createElement(
|
|
28994
|
+
}, "Chat"), React__default.createElement(UserActionLink, {
|
|
28945
28995
|
color: uiColors.red,
|
|
28946
28996
|
onClick: function onClick() {
|
|
28947
28997
|
return onRemoveFriend(friend);
|
|
@@ -28976,13 +29026,6 @@ var ButtonContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28976
29026
|
displayName: "FriendList__ButtonContainer",
|
|
28977
29027
|
componentId: "sc-3jf9vt-3"
|
|
28978
29028
|
})(["display:flex;justify-content:center;align-items:center;width:100%;margin-top:1rem;"]);
|
|
28979
|
-
var UserAction = /*#__PURE__*/styled__default.span.withConfig({
|
|
28980
|
-
displayName: "FriendList__UserAction",
|
|
28981
|
-
componentId: "sc-3jf9vt-4"
|
|
28982
|
-
})(["color:", " !important;cursor:pointer;margin-right:0.5rem;&:hover{text-decoration:underline;}"], function (_ref3) {
|
|
28983
|
-
var color = _ref3.color;
|
|
28984
|
-
return color;
|
|
28985
|
-
});
|
|
28986
29029
|
|
|
28987
29030
|
var IS_MOBILE_OR_TABLET = /*#__PURE__*/shared.isMobileOrTablet();
|
|
28988
29031
|
|
|
@@ -29079,7 +29122,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29079
29122
|
var _useState2 = React.useState(false),
|
|
29080
29123
|
showGoNextIndicator = _useState2[0],
|
|
29081
29124
|
setShowGoNextIndicator = _useState2[1];
|
|
29082
|
-
return React__default.createElement(Container$
|
|
29125
|
+
return React__default.createElement(Container$h, null, React__default.createElement(DynamicText, {
|
|
29083
29126
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
29084
29127
|
onFinish: function onFinish() {
|
|
29085
29128
|
setShowGoNextIndicator(true);
|
|
@@ -29097,7 +29140,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29097
29140
|
}
|
|
29098
29141
|
}));
|
|
29099
29142
|
};
|
|
29100
|
-
var Container$
|
|
29143
|
+
var Container$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
29101
29144
|
displayName: "NPCDialogText__Container",
|
|
29102
29145
|
componentId: "sc-1cxkdh9-0"
|
|
29103
29146
|
})([""]);
|
|
@@ -29249,7 +29292,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29249
29292
|
return null;
|
|
29250
29293
|
});
|
|
29251
29294
|
};
|
|
29252
|
-
return React__default.createElement(Container$
|
|
29295
|
+
return React__default.createElement(Container$i, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
29253
29296
|
text: currentQuestion.text,
|
|
29254
29297
|
onStart: function onStart() {
|
|
29255
29298
|
return setCanShowAnswers(false);
|
|
@@ -29259,7 +29302,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29259
29302
|
}
|
|
29260
29303
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
29261
29304
|
};
|
|
29262
|
-
var Container$
|
|
29305
|
+
var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
29263
29306
|
displayName: "QuestionDialog__Container",
|
|
29264
29307
|
componentId: "sc-bxc5u0-0"
|
|
29265
29308
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -29319,7 +29362,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29319
29362
|
}
|
|
29320
29363
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
29321
29364
|
src: imagePath || img$7
|
|
29322
|
-
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
29365
|
+
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$j, null, React__default.createElement(CloseIcon, {
|
|
29323
29366
|
onPointerDown: _onClose
|
|
29324
29367
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
29325
29368
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -29335,7 +29378,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29335
29378
|
src: imagePath || img$7
|
|
29336
29379
|
})))));
|
|
29337
29380
|
};
|
|
29338
|
-
var Container$
|
|
29381
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
29339
29382
|
displayName: "NPCDialog__Container",
|
|
29340
29383
|
componentId: "sc-1b4aw74-0"
|
|
29341
29384
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29395,7 +29438,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29395
29438
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
29396
29439
|
width: '50%',
|
|
29397
29440
|
height: '180px'
|
|
29398
|
-
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$
|
|
29441
|
+
}, React__default.createElement(React__default.Fragment, null, React__default.createElement(Container$k, null, ((_textAndTypeArray$sli = textAndTypeArray[slide]) == null ? void 0 : _textAndTypeArray$sli.imageSide) === 'right' && React__default.createElement(React__default.Fragment, null, React__default.createElement(TextContainer$2, {
|
|
29399
29442
|
flex: '70%'
|
|
29400
29443
|
}, React__default.createElement(NPCDialogText, {
|
|
29401
29444
|
onStartStep: function onStartStep() {
|
|
@@ -29437,7 +29480,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29437
29480
|
src: img$6
|
|
29438
29481
|
}))), ")"));
|
|
29439
29482
|
};
|
|
29440
|
-
var Container$
|
|
29483
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
29441
29484
|
displayName: "NPCMultiDialog__Container",
|
|
29442
29485
|
componentId: "sc-rvu5wg-0"
|
|
29443
29486
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29866,7 +29909,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29866
29909
|
}
|
|
29867
29910
|
return null;
|
|
29868
29911
|
};
|
|
29869
|
-
return React__default.createElement(Container$
|
|
29912
|
+
return React__default.createElement(Container$l, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
29870
29913
|
id: "shortcuts_list"
|
|
29871
29914
|
}, Array.from({
|
|
29872
29915
|
length: 12
|
|
@@ -29884,7 +29927,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29884
29927
|
}, getContent(i));
|
|
29885
29928
|
})));
|
|
29886
29929
|
};
|
|
29887
|
-
var Container$
|
|
29930
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
29888
29931
|
displayName: "ShortcutsSetter__Container",
|
|
29889
29932
|
componentId: "sc-xuouuf-0"
|
|
29890
29933
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -30486,7 +30529,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30486
30529
|
onSelected = _ref.onSelected,
|
|
30487
30530
|
x = _ref.x,
|
|
30488
30531
|
y = _ref.y;
|
|
30489
|
-
return React__default.createElement(Container$
|
|
30532
|
+
return React__default.createElement(Container$m, {
|
|
30490
30533
|
x: x,
|
|
30491
30534
|
y: y
|
|
30492
30535
|
}, React__default.createElement("ul", {
|
|
@@ -30495,7 +30538,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30495
30538
|
overflow: 'hidden'
|
|
30496
30539
|
}
|
|
30497
30540
|
}, options.map(function (params, index) {
|
|
30498
|
-
return React__default.createElement(ListElement$
|
|
30541
|
+
return React__default.createElement(ListElement$3, {
|
|
30499
30542
|
key: (params == null ? void 0 : params.id) || index,
|
|
30500
30543
|
onPointerDown: function onPointerDown() {
|
|
30501
30544
|
onSelected(params == null ? void 0 : params.id);
|
|
@@ -30503,7 +30546,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30503
30546
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30504
30547
|
})));
|
|
30505
30548
|
};
|
|
30506
|
-
var Container$
|
|
30549
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30507
30550
|
displayName: "ListMenu__Container",
|
|
30508
30551
|
componentId: "sc-i9097t-0"
|
|
30509
30552
|
})(["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) {
|
|
@@ -30511,7 +30554,7 @@ var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30511
30554
|
}, function (props) {
|
|
30512
30555
|
return props.x || 0;
|
|
30513
30556
|
}, uiFonts.size.xsmall);
|
|
30514
|
-
var ListElement$
|
|
30557
|
+
var ListElement$3 = /*#__PURE__*/styled__default.li.withConfig({
|
|
30515
30558
|
displayName: "ListMenu__ListElement",
|
|
30516
30559
|
componentId: "sc-i9097t-1"
|
|
30517
30560
|
})(["margin-right:0.5rem;"]);
|
|
@@ -30522,7 +30565,7 @@ var Pager = function Pager(_ref) {
|
|
|
30522
30565
|
itemsPerPage = _ref.itemsPerPage,
|
|
30523
30566
|
onPageChange = _ref.onPageChange;
|
|
30524
30567
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
30525
|
-
return React__default.createElement(Container$
|
|
30568
|
+
return React__default.createElement(Container$n, null, React__default.createElement("p", null, "Total items: ", totalItems), React__default.createElement(PagerContainer, null, React__default.createElement("button", {
|
|
30526
30569
|
disabled: currentPage === 1,
|
|
30527
30570
|
onPointerDown: function onPointerDown() {
|
|
30528
30571
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -30536,7 +30579,7 @@ var Pager = function Pager(_ref) {
|
|
|
30536
30579
|
}
|
|
30537
30580
|
}, '>')));
|
|
30538
30581
|
};
|
|
30539
|
-
var Container$
|
|
30582
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
30540
30583
|
displayName: "Pager__Container",
|
|
30541
30584
|
componentId: "sc-1ekmf50-0"
|
|
30542
30585
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -30549,7 +30592,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
30549
30592
|
var onConfirm = _ref.onConfirm,
|
|
30550
30593
|
onClose = _ref.onClose,
|
|
30551
30594
|
message = _ref.message;
|
|
30552
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$
|
|
30595
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Background, null), React__default.createElement(Container$o, {
|
|
30553
30596
|
onPointerDown: onClose
|
|
30554
30597
|
}, React__default.createElement(DraggableContainer, {
|
|
30555
30598
|
width: "auto",
|
|
@@ -30572,7 +30615,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30572
30615
|
displayName: "ConfirmModal__Background",
|
|
30573
30616
|
componentId: "sc-11qkyu1-0"
|
|
30574
30617
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
30575
|
-
var Container$
|
|
30618
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
30576
30619
|
displayName: "ConfirmModal__Container",
|
|
30577
30620
|
componentId: "sc-11qkyu1-1"
|
|
30578
30621
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -31088,12 +31131,12 @@ var TabBody = function TabBody(_ref) {
|
|
|
31088
31131
|
var id = _ref.id,
|
|
31089
31132
|
children = _ref.children,
|
|
31090
31133
|
styles = _ref.styles;
|
|
31091
|
-
return React__default.createElement(Container$
|
|
31134
|
+
return React__default.createElement(Container$p, {
|
|
31092
31135
|
styles: styles,
|
|
31093
31136
|
"data-tab-id": id
|
|
31094
31137
|
}, children);
|
|
31095
31138
|
};
|
|
31096
|
-
var Container$
|
|
31139
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31097
31140
|
displayName: "TabBody__Container",
|
|
31098
31141
|
componentId: "sc-196oof2-0"
|
|
31099
31142
|
})(["width:100%;height:", ";overflow-y:auto;"], function (props) {
|
|
@@ -31710,7 +31753,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
31710
31753
|
}
|
|
31711
31754
|
return value * 100 / max;
|
|
31712
31755
|
};
|
|
31713
|
-
return React__default.createElement(Container$
|
|
31756
|
+
return React__default.createElement(Container$q, {
|
|
31714
31757
|
className: "rpgui-progress",
|
|
31715
31758
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
31716
31759
|
"data-rpguitype": "progress",
|
|
@@ -31740,7 +31783,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31740
31783
|
displayName: "ProgressBar__TextOverlay",
|
|
31741
31784
|
componentId: "sc-qa6fzh-1"
|
|
31742
31785
|
})(["width:100%;position:relative;"]);
|
|
31743
|
-
var Container$
|
|
31786
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31744
31787
|
displayName: "ProgressBar__Container",
|
|
31745
31788
|
componentId: "sc-qa6fzh-2"
|
|
31746
31789
|
})(["display:flex;flex-direction:column;min-width:", "px;width:", "%;justify-content:start;align-items:flex-start;", " @media (max-width:950px){transform:scale(", ");}"], function (props) {
|
|
@@ -31954,9 +31997,9 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
31954
31997
|
|
|
31955
31998
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
31956
31999
|
var children = _ref.children;
|
|
31957
|
-
return React__default.createElement(Container$
|
|
32000
|
+
return React__default.createElement(Container$r, null, children);
|
|
31958
32001
|
};
|
|
31959
|
-
var Container$
|
|
32002
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31960
32003
|
displayName: "RPGUIScrollbar__Container",
|
|
31961
32004
|
componentId: "sc-p3msmb-0"
|
|
31962
32005
|
})([".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;}"]);
|
|
@@ -32112,7 +32155,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32112
32155
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
32113
32156
|
// Ensure the width is at least 1% if value is greater than 0
|
|
32114
32157
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
32115
|
-
return React__default.createElement(Container$
|
|
32158
|
+
return React__default.createElement(Container$s, {
|
|
32116
32159
|
className: "simple-progress-bar"
|
|
32117
32160
|
}, React__default.createElement(ProgressBarContainer, {
|
|
32118
32161
|
margin: margin
|
|
@@ -32121,7 +32164,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32121
32164
|
bgColor: bgColor
|
|
32122
32165
|
}))));
|
|
32123
32166
|
};
|
|
32124
|
-
var Container$
|
|
32167
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32125
32168
|
displayName: "SimpleProgressBar__Container",
|
|
32126
32169
|
componentId: "sc-mbeil3-0"
|
|
32127
32170
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -32401,7 +32444,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32401
32444
|
castingType = spell.castingType,
|
|
32402
32445
|
cooldown = spell.cooldown,
|
|
32403
32446
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
32404
|
-
return React__default.createElement(Container$
|
|
32447
|
+
return React__default.createElement(Container$t, null, React__default.createElement(Header$1, null, React__default.createElement("div", null, React__default.createElement(Title$9, null, name), React__default.createElement(Type$1, null, magicWords))), React__default.createElement(Statistic$1, null, React__default.createElement("div", {
|
|
32405
32448
|
className: "label"
|
|
32406
32449
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
32407
32450
|
className: "value"
|
|
@@ -32427,7 +32470,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32427
32470
|
className: "value"
|
|
32428
32471
|
}, requiredItem))), React__default.createElement(Description$2, null, description));
|
|
32429
32472
|
};
|
|
32430
|
-
var Container$
|
|
32473
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32431
32474
|
displayName: "SpellInfo__Container",
|
|
32432
32475
|
componentId: "sc-4hbw3q-0"
|
|
32433
32476
|
})(["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);
|
|
@@ -32481,7 +32524,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32481
32524
|
var _ref$current;
|
|
32482
32525
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
32483
32526
|
};
|
|
32484
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
32527
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$u, {
|
|
32485
32528
|
ref: ref,
|
|
32486
32529
|
onTouchEnd: function onTouchEnd() {
|
|
32487
32530
|
handleFadeOut();
|
|
@@ -32506,7 +32549,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32506
32549
|
}, option.text);
|
|
32507
32550
|
}))));
|
|
32508
32551
|
};
|
|
32509
|
-
var Container$
|
|
32552
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
32510
32553
|
displayName: "MobileSpellTooltip__Container",
|
|
32511
32554
|
componentId: "sc-6p7uvr-0"
|
|
32512
32555
|
})(["position:absolute;z-index:100;left:0;top:0;width:100vw;height:100vh;background-color:rgba(0 0 0 / 0.5);display:flex;justify-content:center;align-items:center;gap:0.5rem;transition:opacity 0.08s;animation:fadeIn 0.1s forwards;@keyframes fadeIn{0%{opacity:0;}100%{opacity:0.92;}}@keyframes fadeOut{0%{opacity:0.92;}100%{opacity:0;}}&.fadeOut{animation:fadeOut 0.1s forwards;}@media (max-width:580px){flex-direction:column;}"]);
|
|
@@ -32547,13 +32590,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
32547
32590
|
}
|
|
32548
32591
|
return;
|
|
32549
32592
|
}, []);
|
|
32550
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
32593
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$v, {
|
|
32551
32594
|
ref: ref
|
|
32552
32595
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
32553
32596
|
spell: spell
|
|
32554
32597
|
})));
|
|
32555
32598
|
};
|
|
32556
|
-
var Container$
|
|
32599
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
32557
32600
|
displayName: "SpellTooltip__Container",
|
|
32558
32601
|
componentId: "sc-1go0gwg-0"
|
|
32559
32602
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -32613,7 +32656,7 @@ var Spell = function Spell(_ref) {
|
|
|
32613
32656
|
var IMAGE_SCALE = 2;
|
|
32614
32657
|
return React__default.createElement(SpellInfoWrapper, {
|
|
32615
32658
|
spell: spell
|
|
32616
|
-
}, React__default.createElement(Container$
|
|
32659
|
+
}, React__default.createElement(Container$w, {
|
|
32617
32660
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
32618
32661
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
32619
32662
|
className: "spell"
|
|
@@ -32632,7 +32675,7 @@ var Spell = function Spell(_ref) {
|
|
|
32632
32675
|
className: "mana"
|
|
32633
32676
|
}, manaCost))));
|
|
32634
32677
|
};
|
|
32635
|
-
var Container$
|
|
32678
|
+
var Container$w = /*#__PURE__*/styled__default.button.withConfig({
|
|
32636
32679
|
displayName: "Spell__Container",
|
|
32637
32680
|
componentId: "sc-j96fa2-0"
|
|
32638
32681
|
})(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
|
|
@@ -32711,7 +32754,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32711
32754
|
height: "inherit",
|
|
32712
32755
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
32713
32756
|
scale: scale
|
|
32714
|
-
}, React__default.createElement(Container$
|
|
32757
|
+
}, React__default.createElement(Container$x, null, React__default.createElement(Title$b, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
32715
32758
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
32716
32759
|
settingShortcutIndex: settingShortcutIndex,
|
|
32717
32760
|
shortcuts: shortcuts,
|
|
@@ -32747,7 +32790,7 @@ var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
32747
32790
|
displayName: "Spellbook__Title",
|
|
32748
32791
|
componentId: "sc-r02nfq-0"
|
|
32749
32792
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
32750
|
-
var Container$
|
|
32793
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
32751
32794
|
displayName: "Spellbook__Container",
|
|
32752
32795
|
componentId: "sc-r02nfq-1"
|
|
32753
32796
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -33298,11 +33341,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
33298
33341
|
var _ref$maxLines = _ref.maxLines,
|
|
33299
33342
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
33300
33343
|
children = _ref.children;
|
|
33301
|
-
return React__default.createElement(Container$
|
|
33344
|
+
return React__default.createElement(Container$y, {
|
|
33302
33345
|
maxLines: maxLines
|
|
33303
33346
|
}, children);
|
|
33304
33347
|
};
|
|
33305
|
-
var Container$
|
|
33348
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
33306
33349
|
displayName: "Truncate__Container",
|
|
33307
33350
|
componentId: "sc-6x00qb-0"
|
|
33308
33351
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -33410,7 +33453,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33410
33453
|
};
|
|
33411
33454
|
});
|
|
33412
33455
|
}, [lessons, imageStyle]);
|
|
33413
|
-
return React__default.createElement(Container$
|
|
33456
|
+
return React__default.createElement(Container$z, null, React__default.createElement(Stepper, {
|
|
33414
33457
|
steps: generateLessons,
|
|
33415
33458
|
finalCTAButton: {
|
|
33416
33459
|
label: 'Close',
|
|
@@ -33427,7 +33470,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33427
33470
|
displayName: "TutorialStepper__LessonBody",
|
|
33428
33471
|
componentId: "sc-7tgzv2-1"
|
|
33429
33472
|
})([""]);
|
|
33430
|
-
var Container$
|
|
33473
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
33431
33474
|
displayName: "TutorialStepper__Container",
|
|
33432
33475
|
componentId: "sc-7tgzv2-2"
|
|
33433
33476
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -33514,6 +33557,7 @@ exports.TimeWidget = TimeWidget;
|
|
|
33514
33557
|
exports.TradingMenu = TradingMenu;
|
|
33515
33558
|
exports.Truncate = Truncate;
|
|
33516
33559
|
exports.TutorialStepper = TutorialStepper;
|
|
33560
|
+
exports.UserActionLink = UserActionLink;
|
|
33517
33561
|
exports._RPGUI = _RPGUI;
|
|
33518
33562
|
exports.getMockedPlayersRowsLeader = getMockedPlayersRowsLeader;
|
|
33519
33563
|
exports.getMockedPlayersRowsNotLeader = getMockedPlayersRowsNotLeader;
|