@rpg-engine/long-bow 0.6.68 → 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/FriendList.d.ts +2 -0
- 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 +164 -111
- 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 +165 -113
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Friends/FriendList.tsx +19 -20
- package/src/components/Friends/SearchFriend.tsx +160 -107
- package/src/components/Table/Table.tsx +15 -0
- package/src/stories/FriendList.stories.tsx +2 -0
|
@@ -15,6 +15,8 @@ interface IFriendListProps {
|
|
|
15
15
|
onSearch: (characterName: string) => void;
|
|
16
16
|
onAcceptRequest: (character: IFriend) => void;
|
|
17
17
|
onRejectRequest: (character: IFriend) => void;
|
|
18
|
+
onAddFriend?: () => void;
|
|
19
|
+
onBackFriendList?: () => void;
|
|
18
20
|
}
|
|
19
21
|
export declare const FriendList: React.FC<IFriendListProps>;
|
|
20
22
|
export {};
|
|
@@ -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,
|
|
@@ -28909,10 +28959,19 @@ var FriendList = function FriendList(_ref) {
|
|
|
28909
28959
|
onSendFriendRequest = _ref.onSendFriendRequest,
|
|
28910
28960
|
onRemoveFriend = _ref.onRemoveFriend,
|
|
28911
28961
|
onOpenPrivateMessage = _ref.onOpenPrivateMessage,
|
|
28912
|
-
onRejectRequest = _ref.onRejectRequest
|
|
28962
|
+
onRejectRequest = _ref.onRejectRequest,
|
|
28963
|
+
onAddFriend = _ref.onAddFriend,
|
|
28964
|
+
onBackFriendList = _ref.onBackFriendList;
|
|
28913
28965
|
var _useState = React.useState(false),
|
|
28914
28966
|
isAddFriendUI = _useState[0],
|
|
28915
28967
|
setIsAddFriendUI = _useState[1];
|
|
28968
|
+
React.useEffect(function () {
|
|
28969
|
+
if (isAddFriendUI) {
|
|
28970
|
+
onAddFriend == null ? void 0 : onAddFriend();
|
|
28971
|
+
} else {
|
|
28972
|
+
onBackFriendList == null ? void 0 : onBackFriendList();
|
|
28973
|
+
}
|
|
28974
|
+
}, [isAddFriendUI]);
|
|
28916
28975
|
return React__default.createElement(ListWrapper, null, isAddFriendUI ? React__default.createElement(SearchFriend, {
|
|
28917
28976
|
searchedCharacters: searchedCharacters,
|
|
28918
28977
|
onSendFriendRequest: onSendFriendRequest,
|
|
@@ -28927,12 +28986,12 @@ var FriendList = function FriendList(_ref) {
|
|
|
28927
28986
|
key: friend._id
|
|
28928
28987
|
}, React__default.createElement(TableCell, null, React__default.createElement(IsOnlineBadge, {
|
|
28929
28988
|
"$isOnline": friend.isOnline
|
|
28930
|
-
})), React__default.createElement(TableCell, null, friend.name), React__default.createElement(TableCell, null, React__default.createElement(ActionButtons, null, React__default.createElement(
|
|
28931
|
-
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,
|
|
28932
28991
|
onClick: function onClick() {
|
|
28933
28992
|
return onOpenPrivateMessage(friend);
|
|
28934
28993
|
}
|
|
28935
|
-
}, "Chat"), React__default.createElement(
|
|
28994
|
+
}, "Chat"), React__default.createElement(UserActionLink, {
|
|
28936
28995
|
color: uiColors.red,
|
|
28937
28996
|
onClick: function onClick() {
|
|
28938
28997
|
return onRemoveFriend(friend);
|
|
@@ -28967,13 +29026,6 @@ var ButtonContainer$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
28967
29026
|
displayName: "FriendList__ButtonContainer",
|
|
28968
29027
|
componentId: "sc-3jf9vt-3"
|
|
28969
29028
|
})(["display:flex;justify-content:center;align-items:center;width:100%;margin-top:1rem;"]);
|
|
28970
|
-
var UserAction = /*#__PURE__*/styled__default.span.withConfig({
|
|
28971
|
-
displayName: "FriendList__UserAction",
|
|
28972
|
-
componentId: "sc-3jf9vt-4"
|
|
28973
|
-
})(["color:", " !important;cursor:pointer;margin-right:0.5rem;&:hover{text-decoration:underline;}"], function (_ref3) {
|
|
28974
|
-
var color = _ref3.color;
|
|
28975
|
-
return color;
|
|
28976
|
-
});
|
|
28977
29029
|
|
|
28978
29030
|
var IS_MOBILE_OR_TABLET = /*#__PURE__*/shared.isMobileOrTablet();
|
|
28979
29031
|
|
|
@@ -29070,7 +29122,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29070
29122
|
var _useState2 = React.useState(false),
|
|
29071
29123
|
showGoNextIndicator = _useState2[0],
|
|
29072
29124
|
setShowGoNextIndicator = _useState2[1];
|
|
29073
|
-
return React__default.createElement(Container$
|
|
29125
|
+
return React__default.createElement(Container$h, null, React__default.createElement(DynamicText, {
|
|
29074
29126
|
text: (textChunks == null ? void 0 : textChunks[chunkIndex]) || '',
|
|
29075
29127
|
onFinish: function onFinish() {
|
|
29076
29128
|
setShowGoNextIndicator(true);
|
|
@@ -29088,7 +29140,7 @@ var NPCDialogText = function NPCDialogText(_ref) {
|
|
|
29088
29140
|
}
|
|
29089
29141
|
}));
|
|
29090
29142
|
};
|
|
29091
|
-
var Container$
|
|
29143
|
+
var Container$h = /*#__PURE__*/styled__default.div.withConfig({
|
|
29092
29144
|
displayName: "NPCDialogText__Container",
|
|
29093
29145
|
componentId: "sc-1cxkdh9-0"
|
|
29094
29146
|
})([""]);
|
|
@@ -29240,7 +29292,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29240
29292
|
return null;
|
|
29241
29293
|
});
|
|
29242
29294
|
};
|
|
29243
|
-
return React__default.createElement(Container$
|
|
29295
|
+
return React__default.createElement(Container$i, null, React__default.createElement(QuestionContainer, null, React__default.createElement(DynamicText, {
|
|
29244
29296
|
text: currentQuestion.text,
|
|
29245
29297
|
onStart: function onStart() {
|
|
29246
29298
|
return setCanShowAnswers(false);
|
|
@@ -29250,7 +29302,7 @@ var QuestionDialog = function QuestionDialog(_ref) {
|
|
|
29250
29302
|
}
|
|
29251
29303
|
})), canShowAnswers && React__default.createElement(AnswersContainer, null, onRenderCurrentAnswers()));
|
|
29252
29304
|
};
|
|
29253
|
-
var Container$
|
|
29305
|
+
var Container$i = /*#__PURE__*/styled__default.div.withConfig({
|
|
29254
29306
|
displayName: "QuestionDialog__Container",
|
|
29255
29307
|
componentId: "sc-bxc5u0-0"
|
|
29256
29308
|
})(["display:flex;word-break:break-all;box-sizing:border-box;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;"]);
|
|
@@ -29310,7 +29362,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29310
29362
|
}
|
|
29311
29363
|
})), type === exports.NPCDialogType.TextAndThumbnail && React__default.createElement(ThumbnailContainer, null, React__default.createElement(NPCThumbnail, {
|
|
29312
29364
|
src: imagePath || img$7
|
|
29313
|
-
}))) : 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, {
|
|
29314
29366
|
onPointerDown: _onClose
|
|
29315
29367
|
}, "X"), React__default.createElement(TextContainer$1, {
|
|
29316
29368
|
flex: type === exports.NPCDialogType.TextAndThumbnail ? '70%' : '100%'
|
|
@@ -29326,7 +29378,7 @@ var NPCDialog = function NPCDialog(_ref) {
|
|
|
29326
29378
|
src: imagePath || img$7
|
|
29327
29379
|
})))));
|
|
29328
29380
|
};
|
|
29329
|
-
var Container$
|
|
29381
|
+
var Container$j = /*#__PURE__*/styled__default.div.withConfig({
|
|
29330
29382
|
displayName: "NPCDialog__Container",
|
|
29331
29383
|
componentId: "sc-1b4aw74-0"
|
|
29332
29384
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29386,7 +29438,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29386
29438
|
type: exports.RPGUIContainerTypes.FramedGold,
|
|
29387
29439
|
width: '50%',
|
|
29388
29440
|
height: '180px'
|
|
29389
|
-
}, 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, {
|
|
29390
29442
|
flex: '70%'
|
|
29391
29443
|
}, React__default.createElement(NPCDialogText, {
|
|
29392
29444
|
onStartStep: function onStartStep() {
|
|
@@ -29428,7 +29480,7 @@ var NPCMultiDialog = function NPCMultiDialog(_ref) {
|
|
|
29428
29480
|
src: img$6
|
|
29429
29481
|
}))), ")"));
|
|
29430
29482
|
};
|
|
29431
|
-
var Container$
|
|
29483
|
+
var Container$k = /*#__PURE__*/styled__default.div.withConfig({
|
|
29432
29484
|
displayName: "NPCMultiDialog__Container",
|
|
29433
29485
|
componentId: "sc-rvu5wg-0"
|
|
29434
29486
|
})(["display:flex;width:100%;height:100%;box-sizing:border-box;justify-content:center;align-items:flex-start;position:relative;"]);
|
|
@@ -29857,7 +29909,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29857
29909
|
}
|
|
29858
29910
|
return null;
|
|
29859
29911
|
};
|
|
29860
|
-
return React__default.createElement(Container$
|
|
29912
|
+
return React__default.createElement(Container$l, null, React__default.createElement("p", null, "Shortcuts:"), React__default.createElement(List, {
|
|
29861
29913
|
id: "shortcuts_list"
|
|
29862
29914
|
}, Array.from({
|
|
29863
29915
|
length: 12
|
|
@@ -29875,7 +29927,7 @@ var ShortcutsSetter = function ShortcutsSetter(_ref) {
|
|
|
29875
29927
|
}, getContent(i));
|
|
29876
29928
|
})));
|
|
29877
29929
|
};
|
|
29878
|
-
var Container$
|
|
29930
|
+
var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
29879
29931
|
displayName: "ShortcutsSetter__Container",
|
|
29880
29932
|
componentId: "sc-xuouuf-0"
|
|
29881
29933
|
})(["p{margin:0;margin-left:0.5rem;font-size:10px;}width:100%;"]);
|
|
@@ -30477,7 +30529,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30477
30529
|
onSelected = _ref.onSelected,
|
|
30478
30530
|
x = _ref.x,
|
|
30479
30531
|
y = _ref.y;
|
|
30480
|
-
return React__default.createElement(Container$
|
|
30532
|
+
return React__default.createElement(Container$m, {
|
|
30481
30533
|
x: x,
|
|
30482
30534
|
y: y
|
|
30483
30535
|
}, React__default.createElement("ul", {
|
|
@@ -30486,7 +30538,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30486
30538
|
overflow: 'hidden'
|
|
30487
30539
|
}
|
|
30488
30540
|
}, options.map(function (params, index) {
|
|
30489
|
-
return React__default.createElement(ListElement$
|
|
30541
|
+
return React__default.createElement(ListElement$3, {
|
|
30490
30542
|
key: (params == null ? void 0 : params.id) || index,
|
|
30491
30543
|
onPointerDown: function onPointerDown() {
|
|
30492
30544
|
onSelected(params == null ? void 0 : params.id);
|
|
@@ -30494,7 +30546,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30494
30546
|
}, (params == null ? void 0 : params.text) || 'No text');
|
|
30495
30547
|
})));
|
|
30496
30548
|
};
|
|
30497
|
-
var Container$
|
|
30549
|
+
var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
30498
30550
|
displayName: "ListMenu__Container",
|
|
30499
30551
|
componentId: "sc-i9097t-0"
|
|
30500
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) {
|
|
@@ -30502,7 +30554,7 @@ var Container$l = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30502
30554
|
}, function (props) {
|
|
30503
30555
|
return props.x || 0;
|
|
30504
30556
|
}, uiFonts.size.xsmall);
|
|
30505
|
-
var ListElement$
|
|
30557
|
+
var ListElement$3 = /*#__PURE__*/styled__default.li.withConfig({
|
|
30506
30558
|
displayName: "ListMenu__ListElement",
|
|
30507
30559
|
componentId: "sc-i9097t-1"
|
|
30508
30560
|
})(["margin-right:0.5rem;"]);
|
|
@@ -30513,7 +30565,7 @@ var Pager = function Pager(_ref) {
|
|
|
30513
30565
|
itemsPerPage = _ref.itemsPerPage,
|
|
30514
30566
|
onPageChange = _ref.onPageChange;
|
|
30515
30567
|
var totalPages = Math.ceil(totalItems / itemsPerPage);
|
|
30516
|
-
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", {
|
|
30517
30569
|
disabled: currentPage === 1,
|
|
30518
30570
|
onPointerDown: function onPointerDown() {
|
|
30519
30571
|
return onPageChange(Math.max(currentPage - 1, 1));
|
|
@@ -30527,7 +30579,7 @@ var Pager = function Pager(_ref) {
|
|
|
30527
30579
|
}
|
|
30528
30580
|
}, '>')));
|
|
30529
30581
|
};
|
|
30530
|
-
var Container$
|
|
30582
|
+
var Container$n = /*#__PURE__*/styled__default.div.withConfig({
|
|
30531
30583
|
displayName: "Pager__Container",
|
|
30532
30584
|
componentId: "sc-1ekmf50-0"
|
|
30533
30585
|
})(["display:flex;flex-direction:column;align-items:center;p{margin:0;font-size:", ";}"], uiFonts.size.xsmall);
|
|
@@ -30540,7 +30592,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
|
30540
30592
|
var onConfirm = _ref.onConfirm,
|
|
30541
30593
|
onClose = _ref.onClose,
|
|
30542
30594
|
message = _ref.message;
|
|
30543
|
-
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, {
|
|
30544
30596
|
onPointerDown: onClose
|
|
30545
30597
|
}, React__default.createElement(DraggableContainer, {
|
|
30546
30598
|
width: "auto",
|
|
@@ -30563,7 +30615,7 @@ var Background = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30563
30615
|
displayName: "ConfirmModal__Background",
|
|
30564
30616
|
componentId: "sc-11qkyu1-0"
|
|
30565
30617
|
})(["position:absolute;width:100%;height:100%;background-color:#000000;opacity:0.5;left:0;top:0;z-index:1000;"]);
|
|
30566
|
-
var Container$
|
|
30618
|
+
var Container$o = /*#__PURE__*/styled__default.div.withConfig({
|
|
30567
30619
|
displayName: "ConfirmModal__Container",
|
|
30568
30620
|
componentId: "sc-11qkyu1-1"
|
|
30569
30621
|
})(["position:absolute;width:100%;height:100%;left:0;top:0;display:flex;justify-content:center;align-items:center;z-index:1001;"]);
|
|
@@ -31079,12 +31131,12 @@ var TabBody = function TabBody(_ref) {
|
|
|
31079
31131
|
var id = _ref.id,
|
|
31080
31132
|
children = _ref.children,
|
|
31081
31133
|
styles = _ref.styles;
|
|
31082
|
-
return React__default.createElement(Container$
|
|
31134
|
+
return React__default.createElement(Container$p, {
|
|
31083
31135
|
styles: styles,
|
|
31084
31136
|
"data-tab-id": id
|
|
31085
31137
|
}, children);
|
|
31086
31138
|
};
|
|
31087
|
-
var Container$
|
|
31139
|
+
var Container$p = /*#__PURE__*/styled__default.div.withConfig({
|
|
31088
31140
|
displayName: "TabBody__Container",
|
|
31089
31141
|
componentId: "sc-196oof2-0"
|
|
31090
31142
|
})(["width:100%;height:", ";overflow-y:auto;"], function (props) {
|
|
@@ -31701,7 +31753,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
31701
31753
|
}
|
|
31702
31754
|
return value * 100 / max;
|
|
31703
31755
|
};
|
|
31704
|
-
return React__default.createElement(Container$
|
|
31756
|
+
return React__default.createElement(Container$q, {
|
|
31705
31757
|
className: "rpgui-progress",
|
|
31706
31758
|
"data-value": calculatePercentageValue(max, value) / 100,
|
|
31707
31759
|
"data-rpguitype": "progress",
|
|
@@ -31731,7 +31783,7 @@ var TextOverlay$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31731
31783
|
displayName: "ProgressBar__TextOverlay",
|
|
31732
31784
|
componentId: "sc-qa6fzh-1"
|
|
31733
31785
|
})(["width:100%;position:relative;"]);
|
|
31734
|
-
var Container$
|
|
31786
|
+
var Container$q = /*#__PURE__*/styled__default.div.withConfig({
|
|
31735
31787
|
displayName: "ProgressBar__Container",
|
|
31736
31788
|
componentId: "sc-qa6fzh-2"
|
|
31737
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) {
|
|
@@ -31945,9 +31997,9 @@ var InputRadio$1 = function InputRadio(_ref) {
|
|
|
31945
31997
|
|
|
31946
31998
|
var RPGUIScrollbar = function RPGUIScrollbar(_ref) {
|
|
31947
31999
|
var children = _ref.children;
|
|
31948
|
-
return React__default.createElement(Container$
|
|
32000
|
+
return React__default.createElement(Container$r, null, children);
|
|
31949
32001
|
};
|
|
31950
|
-
var Container$
|
|
32002
|
+
var Container$r = /*#__PURE__*/styled__default.div.withConfig({
|
|
31951
32003
|
displayName: "RPGUIScrollbar__Container",
|
|
31952
32004
|
componentId: "sc-p3msmb-0"
|
|
31953
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;}"]);
|
|
@@ -32103,7 +32155,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32103
32155
|
margin = _ref$margin === void 0 ? 20 : _ref$margin;
|
|
32104
32156
|
// Ensure the width is at least 1% if value is greater than 0
|
|
32105
32157
|
var width = value > 0 ? Math.max(1, Math.min(100, value)) : 0;
|
|
32106
|
-
return React__default.createElement(Container$
|
|
32158
|
+
return React__default.createElement(Container$s, {
|
|
32107
32159
|
className: "simple-progress-bar"
|
|
32108
32160
|
}, React__default.createElement(ProgressBarContainer, {
|
|
32109
32161
|
margin: margin
|
|
@@ -32112,7 +32164,7 @@ var SimpleProgressBar = function SimpleProgressBar(_ref) {
|
|
|
32112
32164
|
bgColor: bgColor
|
|
32113
32165
|
}))));
|
|
32114
32166
|
};
|
|
32115
|
-
var Container$
|
|
32167
|
+
var Container$s = /*#__PURE__*/styled__default.div.withConfig({
|
|
32116
32168
|
displayName: "SimpleProgressBar__Container",
|
|
32117
32169
|
componentId: "sc-mbeil3-0"
|
|
32118
32170
|
})(["display:flex;justify-content:center;align-items:center;width:100%;"]);
|
|
@@ -32392,7 +32444,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32392
32444
|
castingType = spell.castingType,
|
|
32393
32445
|
cooldown = spell.cooldown,
|
|
32394
32446
|
maxDistanceGrid = spell.maxDistanceGrid;
|
|
32395
|
-
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", {
|
|
32396
32448
|
className: "label"
|
|
32397
32449
|
}, "Casting Type:"), React__default.createElement("div", {
|
|
32398
32450
|
className: "value"
|
|
@@ -32418,7 +32470,7 @@ var SpellInfo = function SpellInfo(_ref) {
|
|
|
32418
32470
|
className: "value"
|
|
32419
32471
|
}, requiredItem))), React__default.createElement(Description$2, null, description));
|
|
32420
32472
|
};
|
|
32421
|
-
var Container$
|
|
32473
|
+
var Container$t = /*#__PURE__*/styled__default.div.withConfig({
|
|
32422
32474
|
displayName: "SpellInfo__Container",
|
|
32423
32475
|
componentId: "sc-4hbw3q-0"
|
|
32424
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);
|
|
@@ -32472,7 +32524,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32472
32524
|
var _ref$current;
|
|
32473
32525
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.classList.add('fadeOut');
|
|
32474
32526
|
};
|
|
32475
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
32527
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$u, {
|
|
32476
32528
|
ref: ref,
|
|
32477
32529
|
onTouchEnd: function onTouchEnd() {
|
|
32478
32530
|
handleFadeOut();
|
|
@@ -32497,7 +32549,7 @@ var MobileSpellTooltip = function MobileSpellTooltip(_ref) {
|
|
|
32497
32549
|
}, option.text);
|
|
32498
32550
|
}))));
|
|
32499
32551
|
};
|
|
32500
|
-
var Container$
|
|
32552
|
+
var Container$u = /*#__PURE__*/styled__default.div.withConfig({
|
|
32501
32553
|
displayName: "MobileSpellTooltip__Container",
|
|
32502
32554
|
componentId: "sc-6p7uvr-0"
|
|
32503
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;}"]);
|
|
@@ -32538,13 +32590,13 @@ var MagicTooltip = function MagicTooltip(_ref) {
|
|
|
32538
32590
|
}
|
|
32539
32591
|
return;
|
|
32540
32592
|
}, []);
|
|
32541
|
-
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$
|
|
32593
|
+
return React__default.createElement(ModalPortal, null, React__default.createElement(Container$v, {
|
|
32542
32594
|
ref: ref
|
|
32543
32595
|
}, React__default.createElement(SpellInfoDisplay, {
|
|
32544
32596
|
spell: spell
|
|
32545
32597
|
})));
|
|
32546
32598
|
};
|
|
32547
|
-
var Container$
|
|
32599
|
+
var Container$v = /*#__PURE__*/styled__default.div.withConfig({
|
|
32548
32600
|
displayName: "SpellTooltip__Container",
|
|
32549
32601
|
componentId: "sc-1go0gwg-0"
|
|
32550
32602
|
})(["position:absolute;z-index:100;pointer-events:none;left:0;top:0;opacity:0;transition:opacity 0.08s;"]);
|
|
@@ -32604,7 +32656,7 @@ var Spell = function Spell(_ref) {
|
|
|
32604
32656
|
var IMAGE_SCALE = 2;
|
|
32605
32657
|
return React__default.createElement(SpellInfoWrapper, {
|
|
32606
32658
|
spell: spell
|
|
32607
|
-
}, React__default.createElement(Container$
|
|
32659
|
+
}, React__default.createElement(Container$w, {
|
|
32608
32660
|
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
32609
32661
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
32610
32662
|
className: "spell"
|
|
@@ -32623,7 +32675,7 @@ var Spell = function Spell(_ref) {
|
|
|
32623
32675
|
className: "mana"
|
|
32624
32676
|
}, manaCost))));
|
|
32625
32677
|
};
|
|
32626
|
-
var Container$
|
|
32678
|
+
var Container$w = /*#__PURE__*/styled__default.button.withConfig({
|
|
32627
32679
|
displayName: "Spell__Container",
|
|
32628
32680
|
componentId: "sc-j96fa2-0"
|
|
32629
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) {
|
|
@@ -32702,7 +32754,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
32702
32754
|
height: "inherit",
|
|
32703
32755
|
cancelDrag: "#spellbook-search, #shortcuts_list, .spell",
|
|
32704
32756
|
scale: scale
|
|
32705
|
-
}, React__default.createElement(Container$
|
|
32757
|
+
}, React__default.createElement(Container$x, null, React__default.createElement(Title$b, null, "Learned Spells"), React__default.createElement(ShortcutsSetter, {
|
|
32706
32758
|
setSettingShortcutIndex: setSettingShortcutIndex,
|
|
32707
32759
|
settingShortcutIndex: settingShortcutIndex,
|
|
32708
32760
|
shortcuts: shortcuts,
|
|
@@ -32738,7 +32790,7 @@ var Title$b = /*#__PURE__*/styled__default.h1.withConfig({
|
|
|
32738
32790
|
displayName: "Spellbook__Title",
|
|
32739
32791
|
componentId: "sc-r02nfq-0"
|
|
32740
32792
|
})(["font-size:", " !important;margin-bottom:0 !important;"], uiFonts.size.large);
|
|
32741
|
-
var Container$
|
|
32793
|
+
var Container$x = /*#__PURE__*/styled__default.div.withConfig({
|
|
32742
32794
|
displayName: "Spellbook__Container",
|
|
32743
32795
|
componentId: "sc-r02nfq-1"
|
|
32744
32796
|
})(["width:100%;height:100%;color:white;display:flex;flex-direction:column;"]);
|
|
@@ -33289,11 +33341,11 @@ var Truncate = function Truncate(_ref) {
|
|
|
33289
33341
|
var _ref$maxLines = _ref.maxLines,
|
|
33290
33342
|
maxLines = _ref$maxLines === void 0 ? 1 : _ref$maxLines,
|
|
33291
33343
|
children = _ref.children;
|
|
33292
|
-
return React__default.createElement(Container$
|
|
33344
|
+
return React__default.createElement(Container$y, {
|
|
33293
33345
|
maxLines: maxLines
|
|
33294
33346
|
}, children);
|
|
33295
33347
|
};
|
|
33296
|
-
var Container$
|
|
33348
|
+
var Container$y = /*#__PURE__*/styled__default.div.withConfig({
|
|
33297
33349
|
displayName: "Truncate__Container",
|
|
33298
33350
|
componentId: "sc-6x00qb-0"
|
|
33299
33351
|
})(["display:-webkit-box;max-width:100%;max-height:100%;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], function (props) {
|
|
@@ -33401,7 +33453,7 @@ var TutorialStepper = /*#__PURE__*/React__default.memo(function (_ref) {
|
|
|
33401
33453
|
};
|
|
33402
33454
|
});
|
|
33403
33455
|
}, [lessons, imageStyle]);
|
|
33404
|
-
return React__default.createElement(Container$
|
|
33456
|
+
return React__default.createElement(Container$z, null, React__default.createElement(Stepper, {
|
|
33405
33457
|
steps: generateLessons,
|
|
33406
33458
|
finalCTAButton: {
|
|
33407
33459
|
label: 'Close',
|
|
@@ -33418,7 +33470,7 @@ var LessonBody = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
33418
33470
|
displayName: "TutorialStepper__LessonBody",
|
|
33419
33471
|
componentId: "sc-7tgzv2-1"
|
|
33420
33472
|
})([""]);
|
|
33421
|
-
var Container$
|
|
33473
|
+
var Container$z = /*#__PURE__*/styled__default.div.withConfig({
|
|
33422
33474
|
displayName: "TutorialStepper__Container",
|
|
33423
33475
|
componentId: "sc-7tgzv2-2"
|
|
33424
33476
|
})(["width:80%;max-width:600px;@media (max-width:600px){width:95%;}"]);
|
|
@@ -33505,6 +33557,7 @@ exports.TimeWidget = TimeWidget;
|
|
|
33505
33557
|
exports.TradingMenu = TradingMenu;
|
|
33506
33558
|
exports.Truncate = Truncate;
|
|
33507
33559
|
exports.TutorialStepper = TutorialStepper;
|
|
33560
|
+
exports.UserActionLink = UserActionLink;
|
|
33508
33561
|
exports._RPGUI = _RPGUI;
|
|
33509
33562
|
exports.getMockedPlayersRowsLeader = getMockedPlayersRowsLeader;
|
|
33510
33563
|
exports.getMockedPlayersRowsNotLeader = getMockedPlayersRowsNotLeader;
|