@cashub/ui 0.30.0 → 0.31.0

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.
@@ -106,12 +106,13 @@ const ModalHeader = _ref2 => {
106
106
  })]
107
107
  });
108
108
  };
109
- const ModalBody = _ref3 => {
109
+ const ModalBody = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
110
110
  let {
111
111
  children
112
112
  } = _ref3,
113
113
  props = _objectWithoutProperties(_ref3, _excluded);
114
- const bodyRef = (0, _react.useRef)(null);
114
+ const ownRef = (0, _react.useRef)(null);
115
+ const bodyRef = ref || ownRef;
115
116
  const recalculateHeight = () => {
116
117
  // body element not render yet
117
118
  if (!bodyRef.current) return;
@@ -137,7 +138,8 @@ const ModalBody = _ref3 => {
137
138
  }, props), {}, {
138
139
  children: children
139
140
  }));
140
- };
141
+ });
142
+ ModalBody.displayName = 'ModalBody';
141
143
  const ModalFooter = _ref4 => {
142
144
  let {
143
145
  children
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",