@rpg-engine/long-bow 0.6.88 → 0.6.90
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 +83 -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 +83 -132
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChatRevamp/SearchCharacter.tsx +89 -183
|
@@ -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,80 @@ 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
|
-
|
|
26469
|
-
|
|
26470
|
-
|
|
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
|
+
}, React__default.createElement(Ellipsis, {
|
|
26465
|
+
maxWidth: '150px',
|
|
26466
|
+
maxLines: 1
|
|
26467
|
+
}, character.name));
|
|
26468
|
+
})));
|
|
26476
26469
|
};
|
|
26477
26470
|
var SearchContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26478
26471
|
displayName: "SearchCharacter__SearchContainer",
|
|
26479
26472
|
componentId: "sc-172lyfr-0"
|
|
26480
|
-
})(["width:"
|
|
26481
|
-
var width = _ref2.width;
|
|
26482
|
-
return width;
|
|
26483
|
-
});
|
|
26473
|
+
})(["width:100%;"]);
|
|
26484
26474
|
var Form$2 = /*#__PURE__*/styled__default.form.withConfig({
|
|
26485
26475
|
displayName: "SearchCharacter__Form",
|
|
26486
26476
|
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);
|
|
26477
|
+
})(["display:flex;width:100%;justify-content:center;align-items:center;"]);
|
|
26499
26478
|
var TextField$1 = /*#__PURE__*/styled__default.input.withConfig({
|
|
26500
26479
|
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);
|
|
26480
|
+
componentId: "sc-172lyfr-2"
|
|
26481
|
+
})(["width:100%;background-color:rgba(0,0,0,0.25) !important;border:none !important;max-height:28px !important;"]);
|
|
26507
26482
|
var SearchButton = /*#__PURE__*/styled__default.button.withConfig({
|
|
26508
26483
|
displayName: "SearchCharacter__SearchButton",
|
|
26509
|
-
componentId: "sc-172lyfr-
|
|
26510
|
-
})(["
|
|
26511
|
-
var
|
|
26512
|
-
return buttonBackgroundColor;
|
|
26513
|
-
}, function (_ref5) {
|
|
26514
|
-
var buttonColor = _ref5.buttonColor;
|
|
26484
|
+
componentId: "sc-172lyfr-3"
|
|
26485
|
+
})(["color:", ";background-color:", ";width:28px;height:28px;border:none !important;"], function (_ref2) {
|
|
26486
|
+
var buttonColor = _ref2.buttonColor;
|
|
26515
26487
|
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);
|
|
26488
|
+
}, function (_ref3) {
|
|
26489
|
+
var buttonBackgroundColor = _ref3.buttonBackgroundColor;
|
|
26490
|
+
return buttonBackgroundColor;
|
|
26491
|
+
});
|
|
26492
|
+
var ListContainer = /*#__PURE__*/styled__default.ul.withConfig({
|
|
26493
|
+
displayName: "SearchCharacter__ListContainer",
|
|
26494
|
+
componentId: "sc-172lyfr-4"
|
|
26495
|
+
})(["border:none;overflow-y:scroll;list-style:none;padding:0;"]);
|
|
26496
|
+
var ListElement = /*#__PURE__*/styled__default.li.withConfig({
|
|
26497
|
+
displayName: "SearchCharacter__ListElement",
|
|
26498
|
+
componentId: "sc-172lyfr-5"
|
|
26499
|
+
})(["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
26500
|
|
|
26550
26501
|
var ChatRevamp = function ChatRevamp(_ref) {
|
|
26551
26502
|
var chatMessages = _ref.chatMessages,
|
|
@@ -26617,7 +26568,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26617
26568
|
}, recentChatCharacters == null ? void 0 : recentChatCharacters.map(function (character) {
|
|
26618
26569
|
return React__default.createElement(ListElementContainer, {
|
|
26619
26570
|
key: character._id
|
|
26620
|
-
}, React__default.createElement(ListElement, {
|
|
26571
|
+
}, React__default.createElement(ListElement$1, {
|
|
26621
26572
|
active: character._id === recentSelectedChatCharacterId,
|
|
26622
26573
|
onClick: function onClick() {
|
|
26623
26574
|
return handlePreviousChatCharacterClick(character);
|
|
@@ -26720,7 +26671,7 @@ var ListElementContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26720
26671
|
displayName: "ChatRevamp__ListElementContainer",
|
|
26721
26672
|
componentId: "sc-1sdiknw-10"
|
|
26722
26673
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
26723
|
-
var ListElement = /*#__PURE__*/styled__default.button.withConfig({
|
|
26674
|
+
var ListElement$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26724
26675
|
displayName: "ChatRevamp__ListElement",
|
|
26725
26676
|
componentId: "sc-1sdiknw-11"
|
|
26726
26677
|
})(["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 +27340,7 @@ var RelativeListMenu = function RelativeListMenu(_ref) {
|
|
|
27389
27340
|
overflow: 'hidden'
|
|
27390
27341
|
}
|
|
27391
27342
|
}, options.map(function (params, index) {
|
|
27392
|
-
return React__default.createElement(ListElement$
|
|
27343
|
+
return React__default.createElement(ListElement$2, {
|
|
27393
27344
|
key: (params == null ? void 0 : params.id) || index,
|
|
27394
27345
|
onPointerDown: function onPointerDown() {
|
|
27395
27346
|
onSelected(params == null ? void 0 : params.id);
|
|
@@ -27407,7 +27358,7 @@ var Container$9 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
27407
27358
|
}, function (props) {
|
|
27408
27359
|
return props.fontSize;
|
|
27409
27360
|
});
|
|
27410
|
-
var ListElement$
|
|
27361
|
+
var ListElement$2 = /*#__PURE__*/styled__default.li.withConfig({
|
|
27411
27362
|
displayName: "RelativeListMenu__ListElement",
|
|
27412
27363
|
componentId: "sc-7hohf-1"
|
|
27413
27364
|
})(["margin-right:0.5rem;"]);
|
|
@@ -28914,7 +28865,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
28914
28865
|
onSearch(characterName);
|
|
28915
28866
|
}
|
|
28916
28867
|
};
|
|
28917
|
-
var searchTabContent = React__default.createElement(ListContainer, null, React__default.createElement(SearchForm, {
|
|
28868
|
+
var searchTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(SearchForm, {
|
|
28918
28869
|
onSubmit: handleSubmit
|
|
28919
28870
|
}, React__default.createElement(SearchInput, {
|
|
28920
28871
|
value: characterName,
|
|
@@ -28933,7 +28884,7 @@ var SearchFriend = function SearchFriend(_ref) {
|
|
|
28933
28884
|
onAction: onSendFriendRequest,
|
|
28934
28885
|
actionLabel: "Add Friend"
|
|
28935
28886
|
}));
|
|
28936
|
-
var requestsTabContent = React__default.createElement(ListContainer, null, React__default.createElement(FriendRequestSection, {
|
|
28887
|
+
var requestsTabContent = React__default.createElement(ListContainer$1, null, React__default.createElement(FriendRequestSection, {
|
|
28937
28888
|
friendRequests: friendRequests,
|
|
28938
28889
|
onAccept: onAcceptRequest,
|
|
28939
28890
|
onReject: onRejectRequest
|
|
@@ -28958,10 +28909,10 @@ var CharacterList = function CharacterList(_ref2) {
|
|
|
28958
28909
|
var characters = _ref2.characters,
|
|
28959
28910
|
onAction = _ref2.onAction,
|
|
28960
28911
|
actionLabel = _ref2.actionLabel;
|
|
28961
|
-
return React__default.createElement(ListContainer, null, characters.map(function (character) {
|
|
28912
|
+
return React__default.createElement(ListContainer$1, null, characters.map(function (character) {
|
|
28962
28913
|
return React__default.createElement(ListItem, {
|
|
28963
28914
|
key: character._id
|
|
28964
|
-
}, React__default.createElement(CharacterName
|
|
28915
|
+
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(UserActionLink, {
|
|
28965
28916
|
color: uiColors.lightGreen,
|
|
28966
28917
|
onClick: function onClick() {
|
|
28967
28918
|
return onAction(character);
|
|
@@ -28973,10 +28924,10 @@ var FriendRequestSection = function FriendRequestSection(_ref3) {
|
|
|
28973
28924
|
var friendRequests = _ref3.friendRequests,
|
|
28974
28925
|
onAccept = _ref3.onAccept,
|
|
28975
28926
|
onReject = _ref3.onReject;
|
|
28976
|
-
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0 && React__default.createElement(ListContainer, null, friendRequests.map(function (character) {
|
|
28927
|
+
return React__default.createElement(React__default.Fragment, null, friendRequests.length > 0 && React__default.createElement(ListContainer$1, null, friendRequests.map(function (character) {
|
|
28977
28928
|
return React__default.createElement(ListItem, {
|
|
28978
28929
|
key: character._id
|
|
28979
|
-
}, React__default.createElement(CharacterName
|
|
28930
|
+
}, React__default.createElement(CharacterName, null, character.name), React__default.createElement(AcceptRejectActions, null, React__default.createElement(UserActionLink, {
|
|
28980
28931
|
color: uiColors.lightGreen,
|
|
28981
28932
|
onClick: function onClick() {
|
|
28982
28933
|
return onAccept(character);
|
|
@@ -29001,7 +28952,7 @@ var SearchInput = /*#__PURE__*/styled__default.input.withConfig({
|
|
|
29001
28952
|
displayName: "SearchFriend__SearchInput",
|
|
29002
28953
|
componentId: "sc-1lt1ols-2"
|
|
29003
28954
|
})(["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({
|
|
28955
|
+
var ListContainer$1 = /*#__PURE__*/styled__default.ul.withConfig({
|
|
29005
28956
|
displayName: "SearchFriend__ListContainer",
|
|
29006
28957
|
componentId: "sc-1lt1ols-3"
|
|
29007
28958
|
})(["list-style:none;padding:0;margin:0;width:100%;max-height:50vh;overflow-y:auto;@media (max-width:768px){max-height:90vh;}"]);
|
|
@@ -29009,7 +28960,7 @@ var ListItem = /*#__PURE__*/styled__default.li.withConfig({
|
|
|
29009
28960
|
displayName: "SearchFriend__ListItem",
|
|
29010
28961
|
componentId: "sc-1lt1ols-4"
|
|
29011
28962
|
})(["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
|
|
28963
|
+
var CharacterName = /*#__PURE__*/styled__default.p.withConfig({
|
|
29013
28964
|
displayName: "SearchFriend__CharacterName",
|
|
29014
28965
|
componentId: "sc-1lt1ols-5"
|
|
29015
28966
|
})(["font-size:", ";margin:0;"], uiFonts.size.small);
|
|
@@ -30608,7 +30559,7 @@ var ListMenu = function ListMenu(_ref) {
|
|
|
30608
30559
|
overflow: 'hidden'
|
|
30609
30560
|
}
|
|
30610
30561
|
}, options.map(function (params, index) {
|
|
30611
|
-
return React__default.createElement(ListElement$
|
|
30562
|
+
return React__default.createElement(ListElement$3, {
|
|
30612
30563
|
key: (params == null ? void 0 : params.id) || index,
|
|
30613
30564
|
onPointerDown: function onPointerDown() {
|
|
30614
30565
|
onSelected(params == null ? void 0 : params.id);
|
|
@@ -30624,7 +30575,7 @@ var Container$m = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
30624
30575
|
}, function (props) {
|
|
30625
30576
|
return props.x || 0;
|
|
30626
30577
|
}, uiFonts.size.xsmall);
|
|
30627
|
-
var ListElement$
|
|
30578
|
+
var ListElement$3 = /*#__PURE__*/styled__default.li.withConfig({
|
|
30628
30579
|
displayName: "ListMenu__ListElement",
|
|
30629
30580
|
componentId: "sc-i9097t-1"
|
|
30630
30581
|
})(["margin-right:0.5rem;"]);
|
|
@@ -30883,7 +30834,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
30883
30834
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
30884
30835
|
},
|
|
30885
30836
|
message: "Are you sure to buy this item?"
|
|
30886
|
-
}), React__default.createElement(InputWrapper
|
|
30837
|
+
}), React__default.createElement(InputWrapper, null, React__default.createElement("p", null, "Search By Name"), React__default.createElement(Input, {
|
|
30887
30838
|
onChange: function onChange(e) {
|
|
30888
30839
|
setName(e.target.value);
|
|
30889
30840
|
onChangeNameInput(e.target.value);
|
|
@@ -30986,7 +30937,7 @@ var BuyPanel = function BuyPanel(_ref) {
|
|
|
30986
30937
|
});
|
|
30987
30938
|
})));
|
|
30988
30939
|
};
|
|
30989
|
-
var InputWrapper
|
|
30940
|
+
var InputWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
30990
30941
|
displayName: "BuyPanel__InputWrapper",
|
|
30991
30942
|
componentId: "sc-1si8t7i-0"
|
|
30992
30943
|
})(["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 +31014,7 @@ var ManagmentPanel = function ManagmentPanel(_ref) {
|
|
|
31063
31014
|
enableHotkeys == null ? void 0 : enableHotkeys();
|
|
31064
31015
|
},
|
|
31065
31016
|
message: "Are you sure to remove this item?"
|
|
31066
|
-
}), React__default.createElement(InputWrapper$
|
|
31017
|
+
}), React__default.createElement(InputWrapper$1, null, React__default.createElement("p", null, "Search By Name"), React__default.createElement(Input, {
|
|
31067
31018
|
onChange: function onChange(e) {
|
|
31068
31019
|
setName(e.target.value);
|
|
31069
31020
|
onChangeNameInput(e.target.value);
|
|
@@ -31130,7 +31081,7 @@ var Flex$2 = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
31130
31081
|
displayName: "ManagmentPanel__Flex",
|
|
31131
31082
|
componentId: "sc-1yyi6jn-0"
|
|
31132
31083
|
})(["display:flex;gap:5px;align-items:center;"]);
|
|
31133
|
-
var InputWrapper$
|
|
31084
|
+
var InputWrapper$1 = /*#__PURE__*/styled__default.div.withConfig({
|
|
31134
31085
|
displayName: "ManagmentPanel__InputWrapper",
|
|
31135
31086
|
componentId: "sc-1yyi6jn-1"
|
|
31136
31087
|
})(["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;}"]);
|