@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/index.cjs.js CHANGED
@@ -20591,6 +20591,7 @@ var Modal = function Modal(_ref) {
20591
20591
  }),
20592
20592
  handleOverlayClose = _useOverlay.handleOverlayClose,
20593
20593
  setFocusField = _useOverlay.setFocusField;
20594
+ var isFullScreenModal = size === SIZES$7.fullScreen;
20594
20595
  return /*#__PURE__*/React__default["default"].createElement(Portal, {
20595
20596
  rootId: "neeto-ui-portal"
20596
20597
  }, /*#__PURE__*/React__default["default"].createElement(CSSTransition, {
@@ -20610,7 +20611,7 @@ var Modal = function Modal(_ref) {
20610
20611
  key: "modal-backdrop",
20611
20612
  ref: backdropRef,
20612
20613
  className: classnames$1("neeto-ui-modal__backdrop", {
20613
- "neeto-ui-modal__backdrop--fullscreen": size === SIZES$7.fullScreen
20614
+ "neeto-ui-modal__backdrop--fullscreen": isFullScreenModal
20614
20615
  }, backdropClassName)
20615
20616
  }, /*#__PURE__*/React__default["default"].createElement("div", _extends$4({
20616
20617
  "aria-modal": true,
@@ -20621,7 +20622,7 @@ var Modal = function Modal(_ref) {
20621
20622
  "neeto-ui-modal__wrapper--small": size === SIZES$7.small,
20622
20623
  "neeto-ui-modal__wrapper--medium": size === SIZES$7.medium,
20623
20624
  "neeto-ui-modal__wrapper--large": size === SIZES$7.large,
20624
- "neeto-ui-modal__wrapper--fullscreen": size === SIZES$7.fullScreen
20625
+ "neeto-ui-modal__wrapper--fullscreen": isFullScreenModal
20625
20626
  }, className, className))
20626
20627
  }, otherProps), closeButton && /*#__PURE__*/React__default["default"].createElement(Button, {
20627
20628
  "aria-label": "Close",
@@ -20629,8 +20630,8 @@ var Modal = function Modal(_ref) {
20629
20630
  "data-cy": "modal-close-button",
20630
20631
  "data-testid": "close-button",
20631
20632
  icon: neetoIcons.Close,
20632
- size: "small",
20633
- style: "text",
20633
+ size: isFullScreenModal ? "large" : "small",
20634
+ style: isFullScreenModal ? "secondary" : "text",
20634
20635
  onClick: handleOverlayClose
20635
20636
  }), typeof children === "function" ? children({
20636
20637
  setFocusField: setFocusField