@oliasoft-open-source/react-ui-library 3.1.10 → 3.1.11

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14880,7 +14880,6 @@ const ResizeHandle = React__default.forwardRef((props, ref2) => {
14880
14880
  const DrawerResizeWrapper = ({
14881
14881
  children,
14882
14882
  width,
14883
- minWidth,
14884
14883
  right: right2,
14885
14884
  onResize,
14886
14885
  open
@@ -14893,14 +14892,15 @@ const DrawerResizeWrapper = ({
14893
14892
  size: size2,
14894
14893
  handle
14895
14894
  }) => {
14896
- if (open && size2.width > MINIMUM_OPEN_WIDTH && size2.width < MAXIMUM_OPEN_WIDTH) {
14895
+ if (open) {
14897
14896
  onResize(size2.width);
14898
14897
  }
14899
14898
  };
14900
14899
  return onResize ? /* @__PURE__ */ jsx(Resizable, {
14901
14900
  width,
14902
14901
  height: 100,
14903
- minConstraints: [minWidth, null],
14902
+ minConstraints: [MINIMUM_OPEN_WIDTH, null],
14903
+ maxConstraints: [MAXIMUM_OPEN_WIDTH, null],
14904
14904
  onResize: handleResize,
14905
14905
  handle: open ? /* @__PURE__ */ jsx(ResizeHandle, {}) : null,
14906
14906
  resizeHandles: right2 ? ["w"] : ["e"],
@@ -14916,14 +14916,12 @@ const DrawerResizeWrapper = ({
14916
14916
  DrawerResizeWrapper.defaultProps = {
14917
14917
  right: false,
14918
14918
  width: 400,
14919
- minWidth: null,
14920
14919
  children: null,
14921
14920
  onResize: null
14922
14921
  };
14923
14922
  DrawerResizeWrapper.propTypes = {
14924
14923
  right: propTypes$1.exports.bool,
14925
14924
  width: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
14926
- minWidth: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
14927
14925
  children: propTypes$1.exports.node,
14928
14926
  onResize: propTypes$1.exports.func
14929
14927
  };
@@ -14968,7 +14966,6 @@ const Drawer = ({
14968
14966
  };
14969
14967
  return /* @__PURE__ */ jsx(DrawerResizeWrapper, {
14970
14968
  width: currentWidth,
14971
- minWidth: tabs2 ? TABS_WIDTH : closedWidth,
14972
14969
  onResize,
14973
14970
  open,
14974
14971
  right: right2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.1.10",
3
+ "version": "3.1.11",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",