@rpg-engine/long-bow 0.7.8 → 0.7.10
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/long-bow.cjs.development.js +14 -7
- 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 +14 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChatRevamp/ChatRevamp.tsx +50 -9
- package/src/stories/ChatRevamp.stories.tsx +8 -0
|
@@ -26566,6 +26566,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26566
26566
|
maxWidth: "140px",
|
|
26567
26567
|
maxLines: 1
|
|
26568
26568
|
}, character.name)), React__default.createElement(CloseButton$2, {
|
|
26569
|
+
className: "close-button",
|
|
26569
26570
|
onPointerDown: function onPointerDown() {
|
|
26570
26571
|
return onRemoveRecentChatCharacter == null ? void 0 : onRemoveRecentChatCharacter(character);
|
|
26571
26572
|
}
|
|
@@ -26602,7 +26603,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
|
|
|
26602
26603
|
}, React__default.createElement(RecentChatTabContainer, {
|
|
26603
26604
|
isPrivate: isPrivate,
|
|
26604
26605
|
isOpen: showRecentChats
|
|
26605
|
-
}, renderRecentChatTopBar(), renderRecentChatList()), renderChatContent()));
|
|
26606
|
+
}, renderRecentChatTopBar(), renderRecentChatList()), React__default.createElement(ChatWrapper, null, renderChatContent())));
|
|
26606
26607
|
};
|
|
26607
26608
|
var TabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26608
26609
|
displayName: "ChatRevamp__TabContainer",
|
|
@@ -26616,12 +26617,12 @@ var Tab = /*#__PURE__*/styled__default.button.withConfig({
|
|
|
26616
26617
|
}, function (props) {
|
|
26617
26618
|
return props.active ? uiColors.orange : 'rgba(0, 0, 0, 0.2)';
|
|
26618
26619
|
}, function (props) {
|
|
26619
|
-
return props.active ? 'white' : uiColors.
|
|
26620
|
+
return props.active ? 'white' : uiColors.darkGray;
|
|
26620
26621
|
});
|
|
26621
26622
|
var PrivateChatContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26622
26623
|
displayName: "ChatRevamp__PrivateChatContainer",
|
|
26623
26624
|
componentId: "sc-1sdiknw-2"
|
|
26624
|
-
})(["width:", ";
|
|
26625
|
+
})(["width:", ";height:", ";padding:10px;background-color:rgba(0,0,0,0.2);display:flex;gap:10px;"], function (_ref2) {
|
|
26625
26626
|
var width = _ref2.width;
|
|
26626
26627
|
return width;
|
|
26627
26628
|
}, function (_ref3) {
|
|
@@ -26631,7 +26632,7 @@ var PrivateChatContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26631
26632
|
var RecentChatTabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26632
26633
|
displayName: "ChatRevamp__RecentChatTabContainer",
|
|
26633
26634
|
componentId: "sc-1sdiknw-3"
|
|
26634
|
-
})(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", ";max-width:200px;min-width:", ";transition:all 0.3s ease-in-out;overflow:hidden
|
|
26635
|
+
})(["display:", ";flex-direction:column;border-right:1px solid ", ";outline:none;width:", ";max-width:200px;min-width:", ";transition:all 0.3s ease-in-out;overflow:hidden;height:100%;@media (max-width:768px){width:", ";min-width:", ";}"], function (props) {
|
|
26635
26636
|
return props.isPrivate ? 'flex' : 'none';
|
|
26636
26637
|
}, uiColors.gray, function (props) {
|
|
26637
26638
|
return props.isOpen ? '25%' : '30px';
|
|
@@ -26645,7 +26646,7 @@ var RecentChatTabContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
|
26645
26646
|
var RecentChatTopBar = /*#__PURE__*/styled__default.div.withConfig({
|
|
26646
26647
|
displayName: "ChatRevamp__RecentChatTopBar",
|
|
26647
26648
|
componentId: "sc-1sdiknw-4"
|
|
26648
|
-
})(["display:flex;align-items:center;justify-content:space-between;height:30px;"]);
|
|
26649
|
+
})(["display:flex;align-items:center;justify-content:space-between;height:30px;flex-shrink:0;"]);
|
|
26649
26650
|
var SearchButton$1 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26650
26651
|
displayName: "ChatRevamp__SearchButton",
|
|
26651
26652
|
componentId: "sc-1sdiknw-5"
|
|
@@ -26663,7 +26664,9 @@ var BurgerLineIcon = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
26663
26664
|
var RecentChatLogContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
26664
26665
|
displayName: "ChatRevamp__RecentChatLogContainer",
|
|
26665
26666
|
componentId: "sc-1sdiknw-8"
|
|
26666
|
-
})(["
|
|
26667
|
+
})(["display:", ";opacity:", ";flex-direction:column;gap:0.5rem;transition:opacity 0.3s ease-in-out;padding:0;margin:0;overflow-y:auto;flex-grow:1;height:0;scrollbar-width:thin;scrollbar-color:rgba(51,51,51,0.4) rgba(30,30,30,0.4);&::-webkit-scrollbar{width:8px;height:8px;}&::-webkit-scrollbar-track{background:rgba(30,30,30,0.2);border-radius:4px;}&::-webkit-scrollbar-thumb{background-color:rgba(255,102,0,0.5);border-radius:4px;border:2px solid rgba(30,30,30,0.2);}&::-webkit-scrollbar-thumb:hover{background-color:rgba(255,102,0,0.7);}"], function (props) {
|
|
26668
|
+
return props.isOpen ? 'flex' : 'none';
|
|
26669
|
+
}, function (props) {
|
|
26667
26670
|
return props.isOpen ? 1 : 0;
|
|
26668
26671
|
});
|
|
26669
26672
|
var ListElementContainer = /*#__PURE__*/styled__default.div.withConfig({
|
|
@@ -26685,7 +26688,11 @@ var StatusDot = /*#__PURE__*/styled__default.span.withConfig({
|
|
|
26685
26688
|
var CloseButton$2 = /*#__PURE__*/styled__default.button.withConfig({
|
|
26686
26689
|
displayName: "ChatRevamp__CloseButton",
|
|
26687
26690
|
componentId: "sc-1sdiknw-12"
|
|
26688
|
-
})(["all:unset;font-size:", ";margin:0 0.5rem;transition:all 0.2s ease-in-out;background-color:", ";color:", ";&:hover{background-color:", ";color:", ";}"], uiFonts.size.xxsmall, uiColors.red, uiColors.white, uiColors.white, uiColors.red);
|
|
26691
|
+
})(["all:unset;font-size:", ";margin:0 0.5rem;transition:all 0.2s ease-in-out;background-color:", ";color:", ";width:16px;height:16px;border-radius:50%;display:flex;justify-content:center;align-items:center;&:hover{background-color:", ";color:", ";}"], uiFonts.size.xxsmall, uiColors.red, uiColors.white, uiColors.white, uiColors.red);
|
|
26692
|
+
var ChatWrapper = /*#__PURE__*/styled__default.div.withConfig({
|
|
26693
|
+
displayName: "ChatRevamp__ChatWrapper",
|
|
26694
|
+
componentId: "sc-1sdiknw-13"
|
|
26695
|
+
})(["flex-grow:1;overflow:hidden;display:flex;flex-direction:column;"]);
|
|
26689
26696
|
|
|
26690
26697
|
var CheckButton = function CheckButton(_ref) {
|
|
26691
26698
|
var items = _ref.items,
|