@rpg-engine/long-bow 0.7.26 → 0.7.28

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.
@@ -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,