@rpg-engine/long-bow 0.7.25 → 0.7.27

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.
@@ -26819,7 +26819,7 @@ var ChatRevamp = function ChatRevamp(_ref) {
26819
26819
  }), React.createElement(ExpandButton, {
26820
26820
  isExpanded: chatHook.isExpanded,
26821
26821
  onClick: chatHook.toggleExpand
26822
- })), React.createElement(PrivateChatContainer, {
26822
+ })), React.createElement(AllChatsContainer, {
26823
26823
  width: (styles == null ? void 0 : styles.width) || '80%',
26824
26824
  height: (styles == null ? void 0 : styles.height) || 'auto',
26825
26825
  isExpanded: chatHook.isExpanded
@@ -26877,8 +26877,8 @@ var TopBar = /*#__PURE__*/styled.div.withConfig({
26877
26877
  var isExpanded = _ref2.isExpanded;
26878
26878
  return isExpanded ? 'auto' : '32px';
26879
26879
  });
26880
- var PrivateChatContainer = /*#__PURE__*/styled.div.withConfig({
26881
- displayName: "ChatRevamp__PrivateChatContainer",
26880
+ var AllChatsContainer = /*#__PURE__*/styled.div.withConfig({
26881
+ displayName: "ChatRevamp__AllChatsContainer",
26882
26882
  componentId: "sc-1sdiknw-2"
26883
26883
  })(["width:", ";height:", ";padding:10px;background-color:rgba(0,0,0,0.2);display:flex;gap:10px;flex-wrap:wrap;"], function (_ref3) {
26884
26884
  var width = _ref3.width;
@@ -31432,10 +31432,12 @@ var TabsContainer = function TabsContainer(_ref) {
31432
31432
  _ref$type = _ref.type,
31433
31433
  type = _ref$type === void 0 ? MultitabType.Brown : _ref$type,
31434
31434
  _ref$styles = _ref.styles,
31435
- styles = _ref$styles === void 0 ? {} : _ref$styles;
31435
+ styles = _ref$styles === void 0 ? {} : _ref$styles,
31436
+ _ref$isDraggableModal = _ref.isDraggableModal,
31437
+ isDraggableModal = _ref$isDraggableModal === void 0 ? false : _ref$isDraggableModal;
31436
31438
  var _useState = useState(tabs[0].id),
31437
31439
  selectedTab = _useState[0],
31438
- setSelectedTab = _useState[1]; // by default the first one
31440
+ setSelectedTab = _useState[1];
31439
31441
  var onRenderTabs = function onRenderTabs() {
31440
31442
  return tabs.map(function (tab, index) {
31441
31443
  return React.createElement(Tab$1, {
@@ -31459,23 +31461,33 @@ var TabsContainer = function TabsContainer(_ref) {
31459
31461
  return RPGUIContainerTypes.Framed;
31460
31462
  }
31461
31463
  };
31462
- return React.createElement(DraggableContainer, {
31463
- onCloseButton: onCloseButton,
31464
- type: onGetContainerType(),
31465
- cancelDrag: ".tabs-container *" // Disable drag on all elements inside .tabs-container
31466
- ,
31464
+ var TabsCore = function TabsCore() {
31465
+ return React.createElement(React.Fragment, null, onRenderTabs(), React.createElement(BodyContainer, {
31466
+ selectedTab: selectedTab,
31467
+ className: type + " tabs-container"
31468
+ }, children));
31469
+ };
31470
+ if (isDraggableModal) {
31471
+ return React.createElement(DraggableContainer, {
31472
+ onCloseButton: onCloseButton,
31473
+ type: onGetContainerType(),
31474
+ cancelDrag: ".tabs-container *",
31475
+ width: styles == null ? void 0 : styles.width,
31476
+ height: styles == null ? void 0 : styles.height,
31477
+ minWidth: styles == null ? void 0 : styles.minWidth,
31478
+ minHeight: styles == null ? void 0 : styles.minHeight,
31479
+ className: styles == null ? void 0 : styles.className,
31480
+ title: styles == null ? void 0 : styles.title,
31481
+ imgSrc: styles == null ? void 0 : styles.imgSrc,
31482
+ imgWidth: styles == null ? void 0 : styles.imgWidth
31483
+ }, TabsCore());
31484
+ }
31485
+ return React.createElement(NonDraggableWrapper, {
31467
31486
  width: styles == null ? void 0 : styles.width,
31468
31487
  height: styles == null ? void 0 : styles.height,
31469
31488
  minWidth: styles == null ? void 0 : styles.minWidth,
31470
- minHeight: styles == null ? void 0 : styles.minHeight,
31471
- className: styles == null ? void 0 : styles.className,
31472
- title: styles == null ? void 0 : styles.title,
31473
- imgSrc: styles == null ? void 0 : styles.imgSrc,
31474
- imgWidth: styles == null ? void 0 : styles.imgWidth
31475
- }, onRenderTabs(), React.createElement(BodyContainer, {
31476
- selectedTab: selectedTab,
31477
- className: type + " tabs-container"
31478
- }, children));
31489
+ minHeight: styles == null ? void 0 : styles.minHeight
31490
+ }, TabsCore());
31479
31491
  };
31480
31492
  var BodyContainer = /*#__PURE__*/styled.div.withConfig({
31481
31493
  displayName: "TabsContainer__BodyContainer",
@@ -31483,6 +31495,18 @@ var BodyContainer = /*#__PURE__*/styled.div.withConfig({
31483
31495
  })(["display:flex;width:100%;height:100%;justify-content:space-between;& > *:not([data-tab-id=", "]){display:none;}&.brown{border:0.25rem solid #996D55;background-color:#BF886A;}&.gray{border:0.25rem solid rgba(0,0,0,0.25);background-color:#4E4A4E;}border-radius:5px;padding:0.5rem;"], function (props) {
31484
31496
  return props.selectedTab;
31485
31497
  });
31498
+ var NonDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
31499
+ displayName: "TabsContainer__NonDraggableWrapper",
31500
+ componentId: "sc-s81iap-1"
31501
+ })(["height:", ";width:", ";min-width:", ";min-height:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;padding-top:1.5rem;position:relative;"], function (props) {
31502
+ return props.height || 'auto';
31503
+ }, function (props) {
31504
+ return props.width || '50%';
31505
+ }, function (props) {
31506
+ return props.minWidth || 'auto';
31507
+ }, function (props) {
31508
+ return props.minHeight || 'auto';
31509
+ });
31486
31510
 
31487
31511
  var PartyCreate = function PartyCreate(_ref) {
31488
31512
  var onClose = _ref.onClose,