@rpg-engine/long-bow 0.6.94 → 0.6.96

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.
@@ -26541,9 +26541,9 @@ var ChatRevamp = function ChatRevamp(_ref) {
26541
26541
  }, isPrivate && React.createElement(RecentChatTabContainer, {
26542
26542
  isPrivate: isPrivate,
26543
26543
  isOpen: showRecentChats
26544
- }, React.createElement(RecentChatTopBar, {
26544
+ }, React.createElement(RecentChatContent, {
26545
26545
  isOpen: showRecentChats
26546
- }, React.createElement(BurgerIconContainer, {
26546
+ }, React.createElement(RecentChatTopBar, null, React.createElement(BurgerIconContainer, {
26547
26547
  onClick: function onClick() {
26548
26548
  return setShowRecentChats(function (t) {
26549
26549
  return !t;
@@ -26557,9 +26557,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
26557
26557
  }, React.createElement(RxMagnifyingGlass, {
26558
26558
  size: 16,
26559
26559
  color: uiColors.white
26560
- }))), React.createElement(RecentChatLogContainer, {
26561
- isOpen: showRecentChats
26562
- }, recentChatCharacters == null ? void 0 : recentChatCharacters.map(function (character) {
26560
+ }))), React.createElement(RecentChatLogContainer, null, recentChatCharacters == null ? void 0 : recentChatCharacters.map(function (character) {
26563
26561
  return React.createElement(ListElementContainer, {
26564
26562
  key: character._id
26565
26563
  }, React.createElement(ListElement$1, {
@@ -26571,7 +26569,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
26571
26569
  isUnseen: (unseenMessageCharacterIds == null ? void 0 : unseenMessageCharacterIds.includes(character._id)) || false
26572
26570
  }), React.createElement(EllipsisWrapper, null, React.createElement(Ellipsis, {
26573
26571
  maxLines: 1,
26574
- maxWidth: "120px"
26572
+ maxWidth: "140px"
26575
26573
  }, character.name))), React.createElement(CloseButton$1, {
26576
26574
  onClick: function onClick() {
26577
26575
  return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
@@ -26579,7 +26577,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
26579
26577
  }, React.createElement(RxCross2, {
26580
26578
  size: 16
26581
26579
  })));
26582
- }))), isPrivate && searchCharacterUI ? React.createElement(SearchCharacter, {
26580
+ })))), isPrivate && searchCharacterUI ? React.createElement(SearchCharacter, {
26583
26581
  onFocus: onFocus,
26584
26582
  onBlur: onBlur,
26585
26583
  onChangeCharacterName: onChangeCharacterName,
@@ -26630,60 +26628,68 @@ var PrivateChatContainer = /*#__PURE__*/styled.div.withConfig({
26630
26628
  var RecentChatTabContainer = /*#__PURE__*/styled.div.withConfig({
26631
26629
  displayName: "ChatRevamp__RecentChatTabContainer",
26632
26630
  componentId: "sc-1sdiknw-4"
26633
- })(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", " !important;transition:width 0.3s ease-in-out;overflow:hidden;@media (max-width:768px){width:", " !important;}"], function (props) {
26631
+ })(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", ";min-width:", ";max-width:300px;transition:all 0.3s ease-in-out;overflow:hidden;@media (max-width:768px){width:", ";min-width:", ";}"], function (props) {
26634
26632
  return props.isPrivate ? 'flex' : 'none';
26635
26633
  }, uiColors.gray, function (props) {
26636
26634
  return props.isOpen ? '20%' : '30px';
26635
+ }, function (props) {
26636
+ return props.isOpen ? '140px' : '30px';
26637
26637
  }, function (props) {
26638
26638
  return props.isOpen ? '40%' : '30px';
26639
+ }, function (props) {
26640
+ return props.isOpen ? '140px' : '30px';
26641
+ });
26642
+ var RecentChatContent = /*#__PURE__*/styled.div.withConfig({
26643
+ displayName: "ChatRevamp__RecentChatContent",
26644
+ componentId: "sc-1sdiknw-5"
26645
+ })(["width:100%;min-width:140px;opacity:", ";transition:opacity 0.3s ease-in-out;"], function (props) {
26646
+ return props.isOpen ? 1 : 0;
26639
26647
  });
26640
26648
  var RecentChatTopBar = /*#__PURE__*/styled.div.withConfig({
26641
26649
  displayName: "ChatRevamp__RecentChatTopBar",
26642
- componentId: "sc-1sdiknw-5"
26650
+ componentId: "sc-1sdiknw-6"
26643
26651
  })(["display:flex;align-items:center;justify-content:space-between;height:30px;"]);
26644
26652
  var SearchButton$1 = /*#__PURE__*/styled.button.withConfig({
26645
26653
  displayName: "ChatRevamp__SearchButton",
26646
- componentId: "sc-1sdiknw-6"
26654
+ componentId: "sc-1sdiknw-7"
26647
26655
  })(["border:none;background-color:transparent;display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:4px;position:relative;"]);
26648
26656
  var BurgerIconContainer = /*#__PURE__*/styled.button.withConfig({
26649
26657
  displayName: "ChatRevamp__BurgerIconContainer",
26650
- componentId: "sc-1sdiknw-7"
26658
+ componentId: "sc-1sdiknw-8"
26651
26659
  })(["border:none;background-color:transparent;display:flex;flex-direction:column;align-items:flex-end;padding:4px;gap:2px;position:relative;&:after{content:'';width:6px;height:6px;position:absolute;top:0;right:2px;border-radius:50%;background-color:", ";display:", ";}"], uiColors.lightGreen, function (props) {
26652
26660
  return props.hasUnseenMessages ? 'block' : 'none';
26653
26661
  });
26654
26662
  var BurgerLineIcon = /*#__PURE__*/styled.span.withConfig({
26655
26663
  displayName: "ChatRevamp__BurgerLineIcon",
26656
- componentId: "sc-1sdiknw-8"
26664
+ componentId: "sc-1sdiknw-9"
26657
26665
  })(["width:1rem;height:2px;background-color:#ffffff;"]);
26658
26666
  var RecentChatLogContainer = /*#__PURE__*/styled.div.withConfig({
26659
26667
  displayName: "ChatRevamp__RecentChatLogContainer",
26660
- componentId: "sc-1sdiknw-9"
26661
- })(["border:none;list-style:none;display:flex;opacity:", ";flex-direction:column;gap:0.5rem;transition:opacity 0.3s ease-in-out;padding:0;margin:0;flex:1;"], function (props) {
26662
- return props.isOpen ? 1 : 0;
26663
- });
26668
+ componentId: "sc-1sdiknw-10"
26669
+ })(["border:none;list-style:none;display:flex;flex-direction:column;gap:0.5rem;padding:0;margin:0;flex:1;"]);
26664
26670
  var ListElementContainer = /*#__PURE__*/styled.div.withConfig({
26665
26671
  displayName: "ChatRevamp__ListElementContainer",
26666
- componentId: "sc-1sdiknw-10"
26672
+ componentId: "sc-1sdiknw-11"
26667
26673
  })(["display:flex;justify-content:space-between;align-items:center;width:100%;"]);
26668
26674
  var ListElement$1 = /*#__PURE__*/styled.button.withConfig({
26669
26675
  displayName: "ChatRevamp__ListElement",
26670
- componentId: "sc-1sdiknw-11"
26676
+ componentId: "sc-1sdiknw-12"
26671
26677
  })(["margin:0.5rem 0 !important;font-size:", " !important;padding:8px 4px;border-radius:4px;all:unset;color:", ";width:100%;position:relative;display:flex;align-items:center;gap:4px;transition:all 0.2s ease;flex:1;min-width:0;&:hover{background-color:rgba(255,255,255,0.1);}"], uiFonts.size.small, function (props) {
26672
26678
  return props.active ? uiColors.yellow : uiColors.white;
26673
26679
  });
26674
26680
  var EllipsisWrapper = /*#__PURE__*/styled.div.withConfig({
26675
26681
  displayName: "ChatRevamp__EllipsisWrapper",
26676
- componentId: "sc-1sdiknw-12"
26682
+ componentId: "sc-1sdiknw-13"
26677
26683
  })(["flex:1;min-width:0;"]);
26678
26684
  var StatusDot = /*#__PURE__*/styled.span.withConfig({
26679
26685
  displayName: "ChatRevamp__StatusDot",
26680
- componentId: "sc-1sdiknw-13"
26686
+ componentId: "sc-1sdiknw-14"
26681
26687
  })(["width:6px;height:6px;border-radius:50%;background-color:", ";display:inline-block;margin-right:6px;"], function (props) {
26682
26688
  return props.isUnseen ? uiColors.lightGreen : uiColors.gray;
26683
26689
  });
26684
26690
  var CloseButton$1 = /*#__PURE__*/styled.button.withConfig({
26685
26691
  displayName: "ChatRevamp__CloseButton",
26686
- componentId: "sc-1sdiknw-14"
26692
+ componentId: "sc-1sdiknw-15"
26687
26693
  })(["all:unset;font-size:", ";margin:0 0.5rem;transition:all 0.2s ease-in-out;background-color:", ";color:", ";border-radius:50%;padding:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;&:hover{background-color:", ";color:", ";}"], uiFonts.size.xxsmall, uiColors.red, uiColors.white, uiColors.white, uiColors.red);
26688
26694
 
26689
26695
  var CheckButton = function CheckButton(_ref) {