@rpg-engine/long-bow 0.6.63 → 0.6.65

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.
@@ -12,6 +12,14 @@ export interface ITabsContainer {
12
12
  onCloseButton?: () => void;
13
13
  tabs: ITab[];
14
14
  type: MultitabType;
15
+ styles?: {
16
+ width?: string;
17
+ height?: string;
18
+ className?: string;
19
+ title?: string;
20
+ imgSrc?: string;
21
+ imgWidth?: string;
22
+ };
15
23
  }
16
24
  export declare const TabsContainer: React.FC<ITabsContainer>;
17
25
  export {};
@@ -31116,10 +31116,12 @@ var TabsContainer = function TabsContainer(_ref) {
31116
31116
  onCloseButton = _ref.onCloseButton,
31117
31117
  tabs = _ref.tabs,
31118
31118
  _ref$type = _ref.type,
31119
- type = _ref$type === void 0 ? exports.MultitabType.Brown : _ref$type;
31119
+ type = _ref$type === void 0 ? exports.MultitabType.Brown : _ref$type,
31120
+ _ref$styles = _ref.styles,
31121
+ styles = _ref$styles === void 0 ? {} : _ref$styles;
31120
31122
  var _useState = React.useState(tabs[0].id),
31121
31123
  selectedTab = _useState[0],
31122
- setSelectedTab = _useState[1]; //by default the first one
31124
+ setSelectedTab = _useState[1]; // by default the first one
31123
31125
  var onRenderTabs = function onRenderTabs() {
31124
31126
  return tabs.map(function (tab, index) {
31125
31127
  return React__default.createElement(Tab$1, {
@@ -31145,10 +31147,18 @@ var TabsContainer = function TabsContainer(_ref) {
31145
31147
  };
31146
31148
  return React__default.createElement(DraggableContainer, {
31147
31149
  onCloseButton: onCloseButton,
31148
- type: onGetContainerType()
31150
+ type: onGetContainerType(),
31151
+ cancelDrag: ".tabs-container *" // Disable drag on all elements inside .tabs-container
31152
+ ,
31153
+ width: styles == null ? void 0 : styles.width,
31154
+ height: styles == null ? void 0 : styles.height,
31155
+ className: styles == null ? void 0 : styles.className,
31156
+ title: styles == null ? void 0 : styles.title,
31157
+ imgSrc: styles == null ? void 0 : styles.imgSrc,
31158
+ imgWidth: styles == null ? void 0 : styles.imgWidth
31149
31159
  }, onRenderTabs(), React__default.createElement(BodyContainer, {
31150
31160
  selectedTab: selectedTab,
31151
- className: type
31161
+ className: type + " tabs-container"
31152
31162
  }, children));
31153
31163
  };
31154
31164
  var BodyContainer = /*#__PURE__*/styled__default.div.withConfig({