@bigbinary/neetoui 6.0.3 → 6.0.4

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/formik.cjs.js CHANGED
@@ -18664,6 +18664,7 @@ var Modal = function Modal(_ref) {
18664
18664
  }),
18665
18665
  handleOverlayClose = _useOverlay.handleOverlayClose,
18666
18666
  setFocusField = _useOverlay.setFocusField;
18667
+ var isFullScreenModal = size === SIZES$5.fullScreen;
18667
18668
  return /*#__PURE__*/React__default["default"].createElement(Portal, {
18668
18669
  rootId: "neeto-ui-portal"
18669
18670
  }, /*#__PURE__*/React__default["default"].createElement(CSSTransition, {
@@ -18683,7 +18684,7 @@ var Modal = function Modal(_ref) {
18683
18684
  key: "modal-backdrop",
18684
18685
  ref: backdropRef,
18685
18686
  className: classnames$1("neeto-ui-modal__backdrop", {
18686
- "neeto-ui-modal__backdrop--fullscreen": size === SIZES$5.fullScreen
18687
+ "neeto-ui-modal__backdrop--fullscreen": isFullScreenModal
18687
18688
  }, backdropClassName)
18688
18689
  }, /*#__PURE__*/React__default["default"].createElement("div", _extends$2({
18689
18690
  "aria-modal": true,
@@ -18694,7 +18695,7 @@ var Modal = function Modal(_ref) {
18694
18695
  "neeto-ui-modal__wrapper--small": size === SIZES$5.small,
18695
18696
  "neeto-ui-modal__wrapper--medium": size === SIZES$5.medium,
18696
18697
  "neeto-ui-modal__wrapper--large": size === SIZES$5.large,
18697
- "neeto-ui-modal__wrapper--fullscreen": size === SIZES$5.fullScreen
18698
+ "neeto-ui-modal__wrapper--fullscreen": isFullScreenModal
18698
18699
  }, className, className))
18699
18700
  }, otherProps), closeButton && /*#__PURE__*/React__default["default"].createElement(Button, {
18700
18701
  "aria-label": "Close",
@@ -18702,8 +18703,8 @@ var Modal = function Modal(_ref) {
18702
18703
  "data-cy": "modal-close-button",
18703
18704
  "data-testid": "close-button",
18704
18705
  icon: neetoIcons.Close,
18705
- size: "small",
18706
- style: "text",
18706
+ size: isFullScreenModal ? "large" : "small",
18707
+ style: isFullScreenModal ? "secondary" : "text",
18707
18708
  onClick: handleOverlayClose
18708
18709
  }), typeof children === "function" ? children({
18709
18710
  setFocusField: setFocusField