@rpg-engine/long-bow 0.6.87 → 0.6.89
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/ChatRevamp/SearchCharacter.d.ts +5 -5
- package/dist/long-bow.cjs.development.js +80 -132
- 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 +80 -132
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -2
- package/src/components/ChatRevamp/SearchCharacter.tsx +86 -184
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import React from 'react';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import { IStyles } from '../Chat/Chat';
|
|
3
|
+
import type { PrivateChatCharacter } from './ChatRevamp';
|
|
4
4
|
interface ISearchCharacterProps {
|
|
5
5
|
onFocus?: () => void;
|
|
6
6
|
onBlur?: () => void;
|
|
7
7
|
onChangeCharacterName: (characterName: string) => void;
|
|
8
8
|
styles?: IStyles;
|
|
9
|
-
recentCharacters?:
|
|
10
|
-
onCharacterClick?: (character:
|
|
9
|
+
recentCharacters?: PrivateChatCharacter[];
|
|
10
|
+
onCharacterClick?: (character: PrivateChatCharacter) => void;
|
|
11
11
|
hideSearchCharacterUI: () => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const SearchCharacter:
|
|
13
|
+
export declare const SearchCharacter: ({ onChangeCharacterName, onBlur, onFocus, recentCharacters, hideSearchCharacterUI, onCharacterClick, styles, }: ISearchCharacterProps) => JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -26392,27 +26392,29 @@ var SearchCharacter = function SearchCharacter(_ref) {
|
|
|
26392
26392
|
onCharacterClick = _ref.onCharacterClick,
|
|
26393
26393
|
_ref$styles = _ref.styles,
|
|
26394
26394
|
styles = _ref$styles === void 0 ? {
|
|
26395
|
-
textColor:
|
|
26396
|
-
buttonColor:
|
|
26397
|
-
buttonBackgroundColor:
|
|
26398
|
-
width: '
|
|
26395
|
+
textColor: '#c65102',
|
|
26396
|
+
buttonColor: '#005b96',
|
|
26397
|
+
buttonBackgroundColor: 'rgba(0,0,0,.2)',
|
|
26398
|
+
width: '80%',
|
|
26399
26399
|
height: 'auto'
|
|
26400
26400
|
} : _ref$styles;
|
|
26401
26401
|
var _useState = React.useState(''),
|
|
26402
26402
|
characterName = _useState[0],
|
|
26403
26403
|
setCharacterName = _useState[1];
|
|
26404
|
-
var _useState2 = React.useState(false),
|
|
26405
|
-
isFocused = _useState2[0],
|
|
26406
|
-
setIsFocused = _useState2[1];
|
|
26407
26404
|
var searchCharacterRef = React.useRef(null);
|
|
26408
26405
|
React.useEffect(function () {
|
|
26409
|
-
|
|
26410
|
-
searchCharacterRef.current
|
|
26411
|
-
|
|
26406
|
+
var timer = setTimeout(function () {
|
|
26407
|
+
if (searchCharacterRef.current) {
|
|
26408
|
+
searchCharacterRef.current.focus();
|
|
26409
|
+
}
|
|
26410
|
+
}, 100);
|
|
26411
|
+
return function () {
|
|
26412
|
+
return clearTimeout(timer);
|
|
26413
|
+
};
|
|
26412
26414
|
}, []);
|
|
26413
26415
|
var handleSubmit = function handleSubmit(event) {
|
|
26414
26416
|
event.preventDefault();
|
|
26415
|
-
if (!characterName.trim()) return;
|
|
26417
|
+
if (!characterName || characterName.trim() === '') return;
|
|
26416
26418
|
onChangeCharacterName(characterName);
|
|
26417
26419
|
};
|
|
26418
26420
|
var handleCharacterClick = function handleCharacterClick(character) {
|
|
@@ -26421,131 +26423,77 @@ var SearchCharacter = function SearchCharacter(_ref) {
|
|
|
26421
26423
|
onCharacterClick(character);
|
|
26422
26424
|
hideSearchCharacterUI();
|
|
26423
26425
|
};
|
|
26424
|
-
|
|
26425
|
-
setIsFocused(true);
|
|
26426
|
-
onFocus == null ? void 0 : onFocus();
|
|
26427
|
-
};
|
|
26428
|
-
var handleBlur = function handleBlur() {
|
|
26429
|
-
setIsFocused(false);
|
|
26430
|
-
onBlur == null ? void 0 : onBlur();
|
|
26431
|
-
};
|
|
26432
|
-
return React__default.createElement(SearchContainer, {
|
|
26433
|
-
width: styles.width || 'auto'
|
|
26434
|
-
}, React__default.createElement(Form$2, {
|
|
26426
|
+
return React__default.createElement(SearchContainer, null, React__default.createElement(Form$2, {
|
|
26435
26427
|
onSubmit: handleSubmit
|
|
26436
|
-
}, React__default.createElement(
|
|
26437
|
-
|
|
26438
|
-
}, React__default.createElement(
|
|
26428
|
+
}, React__default.createElement(Column, {
|
|
26429
|
+
flex: 70
|
|
26430
|
+
}, React__default.createElement(TextField$1, {
|
|
26439
26431
|
value: characterName,
|
|
26440
26432
|
ref: searchCharacterRef,
|
|
26433
|
+
id: "characterName",
|
|
26434
|
+
name: 'characterName',
|
|
26441
26435
|
onChange: function onChange(e) {
|
|
26442
26436
|
setCharacterName(e.target.value);
|
|
26443
26437
|
onChangeCharacterName(e.target.value);
|
|
26444
26438
|
},
|
|
26445
|
-
placeholder:
|
|
26439
|
+
placeholder: 'Search for a character...',
|
|
26440
|
+
height: 20,
|
|
26446
26441
|
type: "text",
|
|
26447
26442
|
autoComplete: "off",
|
|
26448
|
-
onFocus:
|
|
26449
|
-
onBlur:
|
|
26450
|
-
|
|
26451
|
-
|
|
26452
|
-
|
|
26453
|
-
|
|
26454
|
-
type:
|
|
26455
|
-
|
|
26456
|
-
|
|
26457
|
-
|
|
26458
|
-
|
|
26459
|
-
|
|
26460
|
-
|
|
26461
|
-
|
|
26462
|
-
|
|
26443
|
+
onFocus: onFocus,
|
|
26444
|
+
onBlur: onBlur,
|
|
26445
|
+
onPointerDown: onFocus
|
|
26446
|
+
})), React__default.createElement(Column, {
|
|
26447
|
+
justifyContent: "flex-end"
|
|
26448
|
+
}, React__default.createElement(SearchButton, {
|
|
26449
|
+
type: 'submit',
|
|
26450
|
+
buttonColor: (styles == null ? void 0 : styles.buttonColor) || '#005b96',
|
|
26451
|
+
buttonBackgroundColor: (styles == null ? void 0 : styles.buttonBackgroundColor) || 'rgba(0,0,0,.5)',
|
|
26452
|
+
id: "chat-send-button",
|
|
26453
|
+
style: {
|
|
26454
|
+
borderRadius: '20%'
|
|
26455
|
+
}
|
|
26456
|
+
}, React__default.createElement(rx.RxMagnifyingGlass, {
|
|
26457
|
+
size: 15
|
|
26458
|
+
})))), recentCharacters && recentCharacters.length > 0 && React__default.createElement(ListContainer, null, recentCharacters.map(function (character) {
|
|
26459
|
+
return React__default.createElement(ListElement, {
|
|
26460
|
+
onPointerDown: function onPointerDown() {
|
|
26463
26461
|
return handleCharacterClick(character);
|
|
26464
|
-
}
|
|
26465
|
-
|
|
26466
|
-
|
|
26467
|
-
|
|
26468
|
-
}), React__default.createElement(CharacterInfo, null, React__default.createElement(CharacterName, null, React__default.createElement(Ellipsis, {
|
|
26469
|
-
maxLines: 1,
|
|
26470
|
-
maxWidth: "150px"
|
|
26471
|
-
}, character.name)), React__default.createElement(CharacterDescription, null, React__default.createElement(Ellipsis, {
|
|
26472
|
-
maxLines: 1,
|
|
26473
|
-
maxWidth: "150px"
|
|
26474
|
-
}, "Class: " + character["class"] + ", Level: " + character.skills.level))));
|
|
26475
|
-
}))));
|
|
26462
|
+
},
|
|
26463
|
+
key: character._id
|
|
26464
|
+
}, character.name);
|
|
26465
|
+
})));
|
|
26476
26466
|
};
|
|
26477
26467
|
var SearchContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26478
26468
|
displayName: "SearchCharacter__SearchContainer",
|
|
26479
26469
|
componentId: "sc-172lyfr-0"
|
|
26480
|
-
})(["width:"
|
|
26481
|
-
var width = _ref2.width;
|
|
26482
|
-
return width;
|
|
26483
|
-
});
|
|
26470
|
+
})(["width:100%;"]);
|
|
26484
26471
|
var Form$2 = /*#__PURE__*/styled__default.form.withConfig({
|
|
26485
26472
|
displayName: "SearchCharacter__Form",
|
|
26486
26473
|
componentId: "sc-172lyfr-1"
|
|
26487
|
-
})(["display:flex;
|
|
26488
|
-
var InputWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
26489
|
-
displayName: "SearchCharacter__InputWrapper",
|
|
26490
|
-
componentId: "sc-172lyfr-2"
|
|
26491
|
-
})(["position:relative;flex-grow:1;display:flex;align-items:center;background-color:", ";border-radius:24px;padding:8px 16px;transition:all 0.3s ease;box-shadow:", ";"], uiColors.raisinBlack, function (_ref3) {
|
|
26492
|
-
var isFocused = _ref3.isFocused;
|
|
26493
|
-
return isFocused ? "0 0 0 2px " + uiColors.orange : 'none';
|
|
26494
|
-
});
|
|
26495
|
-
var SearchIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
26496
|
-
displayName: "SearchCharacter__SearchIcon",
|
|
26497
|
-
componentId: "sc-172lyfr-3"
|
|
26498
|
-
})(["color:", ";margin-right:8px;"], uiColors.gray);
|
|
26474
|
+
})(["display:flex;width:100%;justify-content:center;align-items:center;"]);
|
|
26499
26475
|
var TextField$1 = /*#__PURE__*/styled__default.input.withConfig({
|
|
26500
26476
|
displayName: "SearchCharacter__TextField",
|
|
26501
|
-
componentId: "sc-172lyfr-
|
|
26502
|
-
})(["width:100%;background-color:
|
|
26503
|
-
var ClearButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
26504
|
-
displayName: "SearchCharacter__ClearButton",
|
|
26505
|
-
componentId: "sc-172lyfr-5"
|
|
26506
|
-
})(["background:none;border:none;color:", ";cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;"], uiColors.gray);
|
|
26477
|
+
componentId: "sc-172lyfr-2"
|
|
26478
|
+
})(["width:100%;background-color:rgba(0,0,0,0.25) !important;border:none !important;max-height:28px !important;"]);
|
|
26507
26479
|
var SearchButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
26508
26480
|
displayName: "SearchCharacter__SearchButton",
|
|
26509
|
-
componentId: "sc-172lyfr-
|
|
26510
|
-
})(["
|
|
26511
|
-
var
|
|
26512
|
-
return buttonBackgroundColor;
|
|
26513
|
-
}, function (_ref5) {
|
|
26514
|
-
var buttonColor = _ref5.buttonColor;
|
|
26481
|
+
componentId: "sc-172lyfr-3"
|
|
26482
|
+
})(["color:", ";background-color:", ";width:28px;height:28px;border:none !important;"], function (_ref2) {
|
|
26483
|
+
var buttonColor = _ref2.buttonColor;
|
|
26515
26484
|
return buttonColor;
|
|
26516
|
-
},
|
|
26517
|
-
var
|
|
26518
|
-
|
|
26519
|
-
|
|
26520
|
-
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
|
|
26524
|
-
|
|
26525
|
-
|
|
26526
|
-
|
|
26527
|
-
|
|
26528
|
-
})(["list-style-type:none;padding:0;margin:0;"]);
|
|
26529
|
-
var ResultItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
26530
|
-
displayName: "SearchCharacter__ResultItem",
|
|
26531
|
-
componentId: "sc-172lyfr-10"
|
|
26532
|
-
})(["display:flex;align-items:center;padding:8px;cursor:pointer;border-radius:4px;transition:all 0.2s ease;&:hover{background-color:", ";}"], uiColors.darkGray);
|
|
26533
|
-
var CharacterAvatar = /*#__PURE__*/styled__default.img.withConfig({
|
|
26534
|
-
displayName: "SearchCharacter__CharacterAvatar",
|
|
26535
|
-
componentId: "sc-172lyfr-11"
|
|
26536
|
-
})(["width:40px;height:40px;border-radius:50%;margin-right:12px;object-fit:cover;"]);
|
|
26537
|
-
var CharacterInfo = /*#__PURE__*/styled__default.div.withConfig({
|
|
26538
|
-
displayName: "SearchCharacter__CharacterInfo",
|
|
26539
|
-
componentId: "sc-172lyfr-12"
|
|
26540
|
-
})(["flex-grow:1;"]);
|
|
26541
|
-
var CharacterName = /*#__PURE__*/styled__default.div.withConfig({
|
|
26542
|
-
displayName: "SearchCharacter__CharacterName",
|
|
26543
|
-
componentId: "sc-172lyfr-13"
|
|
26544
|
-
})(["color:", ";font-size:", ";font-weight:bold;margin-bottom:4px;"], uiColors.white, uiFonts.size.medium);
|
|
26545
|
-
var CharacterDescription = /*#__PURE__*/styled__default.div.withConfig({
|
|
26546
|
-
displayName: "SearchCharacter__CharacterDescription",
|
|
26547
|
-
componentId: "sc-172lyfr-14"
|
|
26548
|
-
})(["color:", ";font-size:", ";"], uiColors.gray, uiFonts.size.small);
|
|
26485
|
+
}, function (_ref3) {
|
|
26486
|
+
var buttonBackgroundColor = _ref3.buttonBackgroundColor;
|
|
26487
|
+
return buttonBackgroundColor;
|
|
26488
|
+
});
|
|
26489
|
+
var ListContainer = /*#__PURE__*/styled__default.ul.withConfig({
|
|
26490
|
+
displayName: "SearchCharacter__ListContainer",
|
|
26491
|
+
componentId: "sc-172lyfr-4"
|
|
26492
|
+
})(["border:none;overflow-y:scroll;list-style:none;padding:0;"]);
|
|
26493
|
+
var ListElement = /*#__PURE__*/styled__default.li.withConfig({
|
|
26494
|
+
displayName: "SearchCharacter__ListElement",
|
|
26495
|
+
componentId: "sc-172lyfr-5"
|
|
26496
|
+
})(["margin:0.5rem 0 !important;font-size:", ";padding:0.5rem 2px;&:hover{color:#ff0;background-color:", ";}button{all:unset;}"], uiFonts.size.small, uiColors.darkGray);
|
|
26549
26497
|
|
|
26550
26498
|
var ChatRevamp = function ChatRevamp(_ref) {
|
|
26551
26499
|
var chatMessages = _ref.chatMessages,
|
|
@@ -26617,7 +26565,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26617
26565
|
}, recentChatCharacters == null ? void 0 : recentChatCharacters.map(function (character) {
|
|
26618
26566
|
return React__default.createElement(ListElementContainer, {
|
|
26619
26567
|
key: character._id
|
|
26620
|
-
}, React__default.createElement(ListElement, {
|
|
26568
|
+
}, React__default.createElement(ListElement$1, {
|
|
26621
26569
|
active: character._id === recentSelectedChatCharacterId,
|
|
26622
26570
|
onClick: function onClick() {
|
|
26623
26571
|
return handlePreviousChatCharacterClick(character);
|
|
@@ -26720,7 +26668,7 @@ var ListElementContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26720
26668
|
displayName: "ChatRevamp__ListElementContainer",
|
|
26721
26669
|
componentId: "sc-1sdiknw-10"
|
|
26722
26670
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
26723
|
-
var ListElement = /*#__PURE__*/styled__default.button.withConfig({
|
|
26671
|
+
var ListElement$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26724
26672
|
displayName: "ChatRevamp__ListElement",
|
|
26725
26673
|
componentId: "sc-1sdiknw-11"
|
|
26726
26674
|
})(["margin:0.5rem 0 !important;font-size:", " !important;padding:8px;border-radius:4px;all:unset;color:", ";width:100%;position:relative;display:flex;align-items:center;gap:4px;transition:all 0.2s ease;&:hover{background-color:rgba(255,255,255,0.1);}"], uiFonts.size.small, function (props) {
|
|
@@ -27389,7 +27337,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
27389
27337
|
overflow: 'hidden'
|
|
27390
27338
|
}
|
|
27391
27339
|
}, options.map(function (params, index) {
|
|
27392
|
-
return React__default.createElement(ListElement$
|
|
27340
|
+
return React__default.createElement(ListElement$2, {
|
|
27393
27341
|
key: (params == null ? void 0 : params.id) || index,
|
|
27394
27342
|
onPointerDown: function onPointerDown() {
|
|
27395
27343
|
onSelected(params == null ? void 0 : params.id);
|
|
@@ -27407,7 +27355,7 @@ var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
27407
27355
|
}, function (props) {
|
|
27408
27356
|
return props.fontSize;
|
|
27409
27357
|
});
|
|
27410
|
-
var ListElement$
|
|
27358
|
+
var ListElement$2 = /*#__PURE__*/styled__default.li.withConfig({
|
|
27411
27359
|
displayName: "RelativeListMenu__ListElement",
|
|
27412
27360
|
componentId: "sc-7hohf-1"
|
|
27413
27361
|
})(["margin-right:0.5rem;"]);
|
|
@@ -28914,7 +28862,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
28914
28862
|
onSearch(characterName);
|
|
28915
28863
|
}
|
|
28916
28864
|
};
|
|
28917
|
-
var searchTabContent = React__default.createElement(ListContainer, null, React__default.createElement(SearchForm, {
|
|
28865
|
+
var searchTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(SearchForm, {
|
|
28918
28866
|
onSubmit: handleSubmit
|
|
28919
28867
|
}, React__default.createElement(SearchInput, {
|
|
28920
28868
|
value: characterName,
|
|
@@ -28933,7 +28881,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
28933
28881
|
onAction: onSendFriendRequest,
|
|
28934
28882
|
actionLabel: "Add Friend"
|
|
28935
28883
|
}));
|
|
28936
|
-
var requestsTabContent = React__default.createElement(ListContainer, null, React__default.createElement(FriendRequestSection, {
|
|
28884
|
+
var requestsTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(FriendRequestSection, {
|
|
28937
28885
|
friendRequests: friendRequests,
|
|
28938
28886
|
onAccept: onAcceptRequest,
|
|
28939
28887
|
onReject: onRejectRequest
|
|
@@ -28958,10 +28906,10 @@ var CharacterList = function CharacterList(_ref2) {
|
|
|
28958
28906
|
var characters = _ref2.characters,
|
|
28959
28907
|
onAction = _ref2.onAction,
|
|
28960
28908
|
actionLabel = _ref2.actionLabel;
|
|
28961
|
-
return React__default.createElement(ListContainer, null, characters.map(function (character) {
|
|
28909
|
+
return React__default.createElement(ListContainer$1, null, characters.map(function (character) {
|
|
28962
28910
|
return React__default.createElement(ListItem, {
|
|
28963
28911
|
key: character._id
|
|
28964
|
-
}, React__default.createElement(CharacterName
|
|
28912
|
+
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(UserActionLink, {
|
|
28965
28913
|
color: uiColors.lightGreen,
|
|
28966
28914
|
onClick: function onClick() {
|
|
28967
28915
|
return onAction(character);
|
|
@@ -28973,10 +28921,10 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
28973
28921
|
var friendRequests = _ref3.friendRequests,
|
|
28974
28922
|
onAccept = _ref3.onAccept,
|
|
28975
28923
|
onReject = _ref3.onReject;
|
|
28976
|
-
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0 && React__default.createElement(ListContainer, null, friendRequests.map(function (character) {
|
|
28924
|
+
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0 && React__default.createElement(ListContainer$1, null, friendRequests.map(function (character) {
|
|
28977
28925
|
return React__default.createElement(ListItem, {
|
|
28978
28926
|
key: character._id
|
|
28979
|
-
}, React__default.createElement(CharacterName
|
|
28927
|
+
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(AcceptRejectActions, null, React__default.createElement(UserActionLink, {
|
|
28980
28928
|
color: uiColors.lightGreen,
|
|
28981
28929
|
onClick: function onClick() {
|
|
28982
28930
|
return onAccept(character);
|
|
@@ -29001,7 +28949,7 @@ var SearchInput = /*#__PURE__*/styled__default.input.withConfig({
|
|
|
29001
28949
|
displayName: "SearchFriend__SearchInput",
|
|
29002
28950
|
componentId: "sc-1lt1ols-2"
|
|
29003
28951
|
})(["width:100%;background-color:rgba(0,0,0,0.25);border:none;padding:0.5rem;font-size:", ";"], uiFonts.size.small);
|
|
29004
|
-
var ListContainer = /*#__PURE__*/styled__default.ul.withConfig({
|
|
28952
|
+
var ListContainer$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
29005
28953
|
displayName: "SearchFriend__ListContainer",
|
|
29006
28954
|
componentId: "sc-1lt1ols-3"
|
|
29007
28955
|
})(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
|
|
@@ -29009,7 +28957,7 @@ var ListItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
|
29009
28957
|
displayName: "SearchFriend__ListItem",
|
|
29010
28958
|
componentId: "sc-1lt1ols-4"
|
|
29011
28959
|
})(["display:flex;align-items:center;justify-content:space-between;padding:0.5rem;border-bottom:1px solid rgba(255,255,255,0.1);"]);
|
|
29012
|
-
var CharacterName
|
|
28960
|
+
var CharacterName = /*#__PURE__*/styled__default.p.withConfig({
|
|
29013
28961
|
displayName: "SearchFriend__CharacterName",
|
|
29014
28962
|
componentId: "sc-1lt1ols-5"
|
|
29015
28963
|
})(["font-size:", ";margin:0;"], uiFonts.size.small);
|
|
@@ -30608,7 +30556,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30608
30556
|
overflow: 'hidden'
|
|
30609
30557
|
}
|
|
30610
30558
|
}, options.map(function (params, index) {
|
|
30611
|
-
return React__default.createElement(ListElement$
|
|
30559
|
+
return React__default.createElement(ListElement$3, {
|
|
30612
30560
|
key: (params == null ? void 0 : params.id) || index,
|
|
30613
30561
|
onPointerDown: function onPointerDown() {
|
|
30614
30562
|
onSelected(params == null ? void 0 : params.id);
|
|
@@ -30624,7 +30572,7 @@ var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30624
30572
|
}, function (props) {
|
|
30625
30573
|
return props.x || 0;
|
|
30626
30574
|
}, uiFonts.size.xsmall);
|
|
30627
|
-
var ListElement$
|
|
30575
|
+
var ListElement$3 = /*#__PURE__*/styled__default.li.withConfig({
|
|
30628
30576
|
displayName: "ListMenu__ListElement",
|
|
30629
30577
|
componentId: "sc-i9097t-1"
|
|
30630
30578
|
})(["margin-right:0.5rem;"]);
|
|
@@ -30883,7 +30831,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
30883
30831
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
30884
30832
|
},
|
|
30885
30833
|
message: "Are you sure to buy this item?"
|
|
30886
|
-
}), React__default.createElement(InputWrapper
|
|
30834
|
+
}), React__default.createElement(InputWrapper, null, React__default.createElement("p", null, "Search By Name"), React__default.createElement(Input, {
|
|
30887
30835
|
onChange: function onChange(e) {
|
|
30888
30836
|
setName(e.target.value);
|
|
30889
30837
|
onChangeNameInput(e.target.value);
|
|
@@ -30986,7 +30934,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
30986
30934
|
});
|
|
30987
30935
|
})));
|
|
30988
30936
|
};
|
|
30989
|
-
var InputWrapper
|
|
30937
|
+
var InputWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30990
30938
|
displayName: "BuyPanel__InputWrapper",
|
|
30991
30939
|
componentId: "sc-1si8t7i-0"
|
|
30992
30940
|
})(["width:95%;display:flex !important;justify-content:flex-start;align-items:center;margin:auto;p{width:auto;margin-right:20px;}input{width:68%;height:10px;}"]);
|
|
@@ -31063,7 +31011,7 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
31063
31011
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
31064
31012
|
},
|
|
31065
31013
|
message: "Are you sure to remove this item?"
|
|
31066
|
-
}), React__default.createElement(InputWrapper$
|
|
31014
|
+
}), React__default.createElement(InputWrapper$1, null, React__default.createElement("p", null, "Search By Name"), React__default.createElement(Input, {
|
|
31067
31015
|
onChange: function onChange(e) {
|
|
31068
31016
|
setName(e.target.value);
|
|
31069
31017
|
onChangeNameInput(e.target.value);
|
|
@@ -31130,7 +31078,7 @@ var Flex$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31130
31078
|
displayName: "ManagmentPanel__Flex",
|
|
31131
31079
|
componentId: "sc-1yyi6jn-0"
|
|
31132
31080
|
})(["display:flex;gap:5px;align-items:center;"]);
|
|
31133
|
-
var InputWrapper$
|
|
31081
|
+
var InputWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31134
31082
|
displayName: "ManagmentPanel__InputWrapper",
|
|
31135
31083
|
componentId: "sc-1yyi6jn-1"
|
|
31136
31084
|
})(["width:95%;display:flex !important;justify-content:flex-start;align-items:center;margin:auto;p{width:auto;margin-right:20px;}input{width:68%;height:10px;}"]);
|