bianic-ui 1.8.0 → 1.9.0-beta.1

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.
package/dist/cjs/index.js CHANGED
@@ -2764,7 +2764,7 @@ var resizerContainerClass = {
2764
2764
  };
2765
2765
 
2766
2766
  function ResizeableDiv(_a) {
2767
- var _b = _a.position, position = _b === void 0 ? 'bottom' : _b, children = _a.children, className = _a.className, initialWidth = _a.initialWidth, initialHeight = _a.initialHeight;
2767
+ var _b = _a.position, position = _b === void 0 ? 'bottom' : _b, children = _a.children, className = _a.className, initialWidth = _a.initialWidth, minWidth = _a.minWidth, initialHeight = _a.initialHeight, minHeight = _a.minHeight;
2768
2768
  var container = React.useRef(null);
2769
2769
  var resizer = React.useRef(null);
2770
2770
  var handleResize = function (e) {
@@ -2804,15 +2804,30 @@ function ResizeableDiv(_a) {
2804
2804
  };
2805
2805
  var isVerticalResizer = position === 'left' || position === 'right';
2806
2806
  var thumbClass = isVerticalResizer && 'rotate-90';
2807
- var containerWidth = typeof initialWidth === 'number' && !isNaN(initialWidth) ? "".concat(initialWidth, "px") : initialWidth;
2808
- var containerHeight = typeof initialHeight === 'number' && !isNaN(initialHeight) ? "".concat(initialHeight, "px") : initialHeight;
2809
- return (React.createElement("div", { className: "relative overflow-visible", ref: container, style: { width: containerWidth, height: containerHeight } },
2807
+ var containerWidth = typeof initialWidth === 'number' && !isNaN(initialWidth)
2808
+ ? "".concat(initialWidth, "px")
2809
+ : initialWidth;
2810
+ var minimumWidth = typeof minWidth === 'number' && !isNaN(minWidth)
2811
+ ? "".concat(minWidth, "px")
2812
+ : minWidth;
2813
+ var containerHeight = typeof initialHeight === 'number' && !isNaN(initialHeight)
2814
+ ? "".concat(initialHeight, "px")
2815
+ : initialHeight;
2816
+ var minimumHeight = typeof minHeight === 'number' && !isNaN(minHeight)
2817
+ ? "".concat(minHeight, "px")
2818
+ : minHeight;
2819
+ return (React.createElement("div", { className: "relative overflow-visible", ref: container, style: {
2820
+ width: containerWidth,
2821
+ height: containerHeight,
2822
+ minWidth: minimumWidth,
2823
+ minHeight: minimumHeight,
2824
+ } },
2810
2825
  React.createElement("div", { className: "h-full w-full ".concat(className) }, children),
2811
2826
  React.createElement("div", { className: "group absolute z-10 flex items-center justify-center ".concat(resizerContainerClass[position]), ref: resizer, onMouseDown: function () {
2812
2827
  window.addEventListener('mousemove', handleResize);
2813
2828
  window.addEventListener('mouseup', stopResize);
2814
- } },
2815
- React.createElement("div", { className: "flex h-[9px] w-[25px] items-center justify-center rounded-radius-full border border-bia-grey-light-10 bg-primary-white opacity-20 group-hover:opacity-100 group-active:bg-bia-coolgrey-light-90 ".concat(thumbClass) },
2829
+ }, role: "button" },
2830
+ React.createElement("div", { className: "flex h-[9px] w-[25px] items-center justify-center rounded-radius-full border border-bia-grey-light-10 bg-primary-white opacity-20 group-hover:opacity-100 group-active:bg-bia-coolgrey-light-90 group-active:opacity-100 ".concat(thumbClass) },
2816
2831
  React.createElement(TbDots, { className: "text-bia-grey-light-30" })))));
2817
2832
  }
2818
2833
  ResizeableDiv.defaultProps = {