@doist/reactist 25.1.1 → 25.2.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.
@@ -2427,7 +2427,7 @@ function ModalHeader(_ref2) {
2427
2427
  * Renders the body of a modal.
2428
2428
  *
2429
2429
  * Convenient to use alongside ModalHeader and/or ModalFooter as needed. It ensures, among other
2430
- * things, that the contet of the modal body expands or contracts depending on the modal height
2430
+ * things, that the content of the modal body expands or contracts depending on the modal height
2431
2431
  * setting or the size of the content. The body content also automatically scrolls when it's too
2432
2432
  * large to fit the available space.
2433
2433
  *
@@ -2436,7 +2436,7 @@ function ModalHeader(_ref2) {
2436
2436
  * @see ModalFooter
2437
2437
  */
2438
2438
 
2439
- function ModalBody(_ref3) {
2439
+ const ModalBody = /*#__PURE__*/React.forwardRef(function ModalBody(_ref3, ref) {
2440
2440
  let {
2441
2441
  exceptionallySetClassName,
2442
2442
  children
@@ -2447,6 +2447,7 @@ function ModalBody(_ref3) {
2447
2447
  height
2448
2448
  } = React__namespace.useContext(ModalContext);
2449
2449
  return /*#__PURE__*/React__namespace.createElement(Box$1, _objectSpread2(_objectSpread2({}, props), {}, {
2450
+ ref: ref,
2450
2451
  className: exceptionallySetClassName,
2451
2452
  flexGrow: height === 'expand' ? 1 : 0,
2452
2453
  height: height === 'expand' ? 'full' : undefined,
@@ -2455,7 +2456,7 @@ function ModalBody(_ref3) {
2455
2456
  padding: "large",
2456
2457
  paddingBottom: "xxlarge"
2457
2458
  }, children));
2458
- }
2459
+ });
2459
2460
  /**
2460
2461
  * Renders a standard modal footer area.
2461
2462
  *