@televet/kibble-ui 1.17.6 → 1.17.7

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/build/index.js CHANGED
@@ -21622,9 +21622,10 @@ var Modal = function (_a) {
21622
21622
  // Responsive values for full screen modals on phones.
21623
21623
  var fullScreenMobileSize = react.useBreakpointValue({ base: 'full', md: size });
21624
21624
  var fullScreenMobileBorderRadius = react.useBreakpointValue({ base: 0, md: radii.xl });
21625
+ var modalMargin = react.useBreakpointValue({ base: useFullScreenMobile ? 0 : 16, md: 16 });
21625
21626
  var Modal = (React__default["default"].createElement(react.Modal, __assign({ closeOnEsc: allowEscape, closeOnOverlayClick: allowEscape, autoFocus: !!initialFocusRef, isOpen: isOpen, onClose: onClose, scrollBehavior: scrollBehavior, isCentered: isCentered, size: useFullScreenMobile ? fullScreenMobileSize : size, motionPreset: "slideInBottom" }, rest),
21626
21627
  React__default["default"].createElement(react.ModalOverlay, null),
21627
- React__default["default"].createElement(react.ModalContent, __assign({ backgroundColor: backgroundColor, m: useFullScreenMobile ? 0 : 16 }, (!useFullScreenMobile && { mx: 5 }), { borderRadius: useFullScreenMobile ? fullScreenMobileBorderRadius : radii.xl }, (useFullScreenMobile && { minH: { base: '-webkit-fill-available', md: 'auto' } })), children)));
21628
+ React__default["default"].createElement(react.ModalContent, __assign({ backgroundColor: backgroundColor, m: modalMargin }, (!useFullScreenMobile && { mx: 5 }), { borderRadius: useFullScreenMobile ? fullScreenMobileBorderRadius : radii.xl }, (useFullScreenMobile && { minH: { base: '-webkit-fill-available', md: 'auto' } })), children)));
21628
21629
  return withDarkMode$1(Modal, !!darkMode);
21629
21630
  };
21630
21631