@rpg-engine/long-bow 0.6.64 → 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,7 +31116,9 @@ 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
31124
  setSelectedTab = _useState[1]; // by default the first one
@@ -31147,6 +31149,13 @@ var TabsContainer = function TabsContainer(_ref) {
31147
31149
  onCloseButton: onCloseButton,
31148
31150
  type: onGetContainerType(),
31149
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
31150
31159
  }, onRenderTabs(), React__default.createElement(BodyContainer, {
31151
31160
  selectedTab: selectedTab,
31152
31161
  className: type + " tabs-container"