@rpg-engine/long-bow 0.6.77 → 0.6.79

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.
@@ -5,6 +5,8 @@ export interface IDraggableContainerProps {
5
5
  children: React.ReactNode;
6
6
  width?: string;
7
7
  height?: string;
8
+ minWidth?: string;
9
+ minHeight?: string;
8
10
  className?: string;
9
11
  type?: RPGUIContainerTypes;
10
12
  title?: string;
@@ -1,9 +1,13 @@
1
1
  import React from 'react';
2
- import { IStyles } from '../Chat/Chat';
2
+ interface IContainerStyles {
3
+ height?: string;
4
+ width?: string;
5
+ centerContent?: boolean;
6
+ }
3
7
  interface IProps {
4
8
  id: string;
5
9
  children: React.ReactNode;
6
- styles?: IStyles;
10
+ styles?: IContainerStyles;
7
11
  }
8
12
  export declare const TabBody: React.FC<IProps>;
9
13
  export {};
@@ -14,6 +14,8 @@ export interface ITabsContainer {
14
14
  type: MultitabType;
15
15
  styles?: {
16
16
  width?: string;
17
+ minWidth?: string;
18
+ minHeight?: string;
17
19
  height?: string;
18
20
  className?: string;
19
21
  title?: string;
@@ -26943,6 +26943,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
26943
26943
  _ref$width = _ref.width,
26944
26944
  width = _ref$width === void 0 ? '50%' : _ref$width,
26945
26945
  height = _ref.height,
26946
+ minHeight = _ref.minHeight,
26947
+ minWidth = _ref.minWidth,
26946
26948
  className = _ref.className,
26947
26949
  _ref$type = _ref.type,
26948
26950
  type = _ref$type === void 0 ? exports.RPGUIContainerTypes.FramedGold : _ref$type,
@@ -27018,6 +27020,8 @@ var DraggableContainer = function DraggableContainer(_ref) {
27018
27020
  ref: draggableRef,
27019
27021
  width: width,
27020
27022
  height: height || 'auto',
27023
+ minWidth: minWidth,
27024
+ minHeight: minHeight,
27021
27025
  className: "rpgui-container " + type + " " + className,
27022
27026
  isFullScreen: isFullScreen,
27023
27027
  opacity: opacity
@@ -27034,16 +27038,22 @@ var DraggableContainer = function DraggableContainer(_ref) {
27034
27038
  var Container$7 = /*#__PURE__*/styled__default.div.withConfig({
27035
27039
  displayName: "DraggableContainer__Container",
27036
27040
  componentId: "sc-184mpyl-0"
27037
- })(["height:", ";width:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;", " ", " &.rpgui-container{padding-top:1.5rem;}"], function (props) {
27041
+ })(["height:", ";width:", ";min-width:", ";min-height:", ";display:flex;flex-wrap:wrap;image-rendering:pixelated;overflow-y:hidden;", " ", " &.rpgui-container{padding-top:1.5rem;}"], function (props) {
27038
27042
  return props.height;
27039
27043
  }, function (_ref2) {
27040
27044
  var width = _ref2.width;
27041
27045
  return width;
27042
27046
  }, function (_ref3) {
27043
- var opacity = _ref3.opacity;
27044
- return opacity && styled.css(["opacity:", ";"], opacity);
27047
+ var minWidth = _ref3.minWidth;
27048
+ return minWidth || 'auto';
27045
27049
  }, function (_ref4) {
27046
- var isFullScreen = _ref4.isFullScreen;
27050
+ var minHeight = _ref4.minHeight;
27051
+ return minHeight || 'auto';
27052
+ }, function (_ref5) {
27053
+ var opacity = _ref5.opacity;
27054
+ return opacity && styled.css(["opacity:", ";"], opacity);
27055
+ }, function (_ref6) {
27056
+ var isFullScreen = _ref6.isFullScreen;
27047
27057
  return isFullScreen && styled.css(["justify-content:center;align-items:flex-start;align-content:flex-start;"]);
27048
27058
  });
27049
27059
  var CloseButton$2 = /*#__PURE__*/styled__default.div.withConfig({
@@ -27061,8 +27071,9 @@ var Title = /*#__PURE__*/styled__default.h1.withConfig({
27061
27071
  var Icon = /*#__PURE__*/styled__default.img.withConfig({
27062
27072
  displayName: "DraggableContainer__Icon",
27063
27073
  componentId: "sc-184mpyl-4"
27064
- })(["color:white;z-index:22;font-size:", ";width:", ";margin-right:0.5rem;"], uiFonts.size.xsmall, function (props) {
27065
- return props.width;
27074
+ })(["color:white;z-index:22;font-size:", ";width:", ";margin-right:0.5rem;"], uiFonts.size.xsmall, function (_ref7) {
27075
+ var width = _ref7.width;
27076
+ return width;
27066
27077
  });
27067
27078
 
27068
27079
  var InputRadio = function InputRadio(_ref) {
@@ -31137,9 +31148,21 @@ var TabBody = function TabBody(_ref) {
31137
31148
  var Container$p = /*#__PURE__*/styled__default.div.withConfig({
31138
31149
  displayName: "TabBody__Container",
31139
31150
  componentId: "sc-196oof2-0"
31140
- })(["width:100%;height:", ";overflow-y:auto;"], function (props) {
31151
+ })(["width:", ";height:", ";overflow-y:auto;display:", ";justify-content:", ";align-items:", ";"], function (props) {
31141
31152
  var _props$styles;
31142
- return ((_props$styles = props.styles) == null ? void 0 : _props$styles.height) || 'auto';
31153
+ return ((_props$styles = props.styles) == null ? void 0 : _props$styles.width) || '100%';
31154
+ }, function (props) {
31155
+ var _props$styles2;
31156
+ return ((_props$styles2 = props.styles) == null ? void 0 : _props$styles2.height) || 'auto';
31157
+ }, function (props) {
31158
+ var _props$styles3;
31159
+ return (_props$styles3 = props.styles) != null && _props$styles3.centerContent ? 'flex' : 'block';
31160
+ }, function (props) {
31161
+ var _props$styles4;
31162
+ return (_props$styles4 = props.styles) != null && _props$styles4.centerContent ? 'center' : 'initial';
31163
+ }, function (props) {
31164
+ var _props$styles5;
31165
+ return (_props$styles5 = props.styles) != null && _props$styles5.centerContent ? 'center' : 'initial';
31143
31166
  });
31144
31167
 
31145
31168
  var Tab$1 = function Tab(_ref) {
@@ -31213,6 +31236,8 @@ var TabsContainer = function TabsContainer(_ref) {
31213
31236
  ,
31214
31237
  width: styles == null ? void 0 : styles.width,
31215
31238
  height: styles == null ? void 0 : styles.height,
31239
+ minWidth: styles == null ? void 0 : styles.minWidth,
31240
+ minHeight: styles == null ? void 0 : styles.minHeight,
31216
31241
  className: styles == null ? void 0 : styles.className,
31217
31242
  title: styles == null ? void 0 : styles.title,
31218
31243
  imgSrc: styles == null ? void 0 : styles.imgSrc,