@bigbinary/neetoui 5.1.18 → 5.1.19

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
@@ -9900,10 +9900,10 @@ visualElement({
9900
9900
  },
9901
9901
  });
9902
9902
 
9903
- var _excluded$t = ["children"];
9903
+ var _excluded$u = ["children"];
9904
9904
  var Portal$1 = function Portal(_ref, ref) {
9905
9905
  var children = _ref.children,
9906
- otherProps = _objectWithoutProperties$1(_ref, _excluded$t);
9906
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$u);
9907
9907
  return /*#__PURE__*/React__default["default"].createElement("div", _extends$2({
9908
9908
  "data-cy": "neeto-backdrop",
9909
9909
  "data-testid": "neeto-backdrop",
@@ -13912,7 +13912,7 @@ var index$1 = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
13912
13912
 
13913
13913
  var ARROW = "<svg width='12' height='6' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M10 5H0.926697L3.95208 1.63847C4.74227 0.760478 6.11722 0.754951 6.91445 1.62656L10 5Z' /></svg>";
13914
13914
 
13915
- var _excluded$s = ["content", "children", "theme", "disabled", "position", "interactive", "hideAfter", "hideOnTargetExit"];
13915
+ var _excluded$t = ["content", "children", "theme", "disabled", "position", "interactive", "hideAfter", "hideOnTargetExit"];
13916
13916
  var Tooltip = function Tooltip(_ref) {
13917
13917
  var content = _ref.content,
13918
13918
  children = _ref.children,
@@ -13928,7 +13928,7 @@ var Tooltip = function Tooltip(_ref) {
13928
13928
  hideAfter = _ref$hideAfter === void 0 ? -1 : _ref$hideAfter,
13929
13929
  _ref$hideOnTargetExit = _ref.hideOnTargetExit,
13930
13930
  hideOnTargetExit = _ref$hideOnTargetExit === void 0 ? false : _ref$hideOnTargetExit,
13931
- otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
13931
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$t);
13932
13932
  var _useState = React.useState(null),
13933
13933
  _useState2 = _slicedToArray$1(_useState, 2),
13934
13934
  instance = _useState2[0],
@@ -13975,7 +13975,7 @@ var Tooltip = function Tooltip(_ref) {
13975
13975
  }, localProps, otherProps), /*#__PURE__*/React__default["default"].isValidElement(children) ? children : /*#__PURE__*/React__default["default"].createElement("span", null, children));
13976
13976
  };
13977
13977
 
13978
- var _excluded$r = ["icon", "iconPosition", "iconSize", "label", "loading", "onClick", "to", "type", "style", "fullWidth", "className", "disabled", "size", "href", "tooltipProps", "children"];
13978
+ var _excluded$s = ["icon", "iconPosition", "iconSize", "label", "loading", "onClick", "to", "type", "style", "fullWidth", "className", "disabled", "size", "href", "tooltipProps", "children"];
13979
13979
  var BUTTON_STYLES = {
13980
13980
  primary: "primary",
13981
13981
  secondary: "secondary",
@@ -14030,7 +14030,7 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, r
14030
14030
  _ref$tooltipProps = _ref.tooltipProps,
14031
14031
  tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
14032
14032
  children = _ref.children,
14033
- otherProps = _objectWithoutProperties$1(_ref, _excluded$r);
14033
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
14034
14034
  var Parent, elementSpecificProps;
14035
14035
  var renderLabel = label || children;
14036
14036
  if (to) {
@@ -14120,10 +14120,10 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, r
14120
14120
  });
14121
14121
  Button.displayName = "Button";
14122
14122
 
14123
- var _excluded$q = ["disabled"];
14123
+ var _excluded$r = ["disabled"];
14124
14124
  var FormikButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14125
14125
  var disabled = _ref.disabled,
14126
- otherProps = _objectWithoutProperties$1(_ref, _excluded$q);
14126
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$r);
14127
14127
  var _useFormikContext = formik.useFormikContext(),
14128
14128
  handleSubmit = _useFormikContext.handleSubmit,
14129
14129
  isSubmitting = _useFormikContext.isSubmitting,
@@ -16743,7 +16743,7 @@ var Footer = function Footer(_ref) {
16743
16743
  }, children);
16744
16744
  };
16745
16745
 
16746
- var _excluded$p = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
16746
+ var _excluded$q = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
16747
16747
  var FONT_WEIGHTS = {
16748
16748
  thin: "thin",
16749
16749
  extralight: "extralight",
@@ -16831,7 +16831,7 @@ var Typography = /*#__PURE__*/React__default["default"].forwardRef(function (_re
16831
16831
  textTransform = _ref.textTransform,
16832
16832
  _ref$className = _ref.className,
16833
16833
  className = _ref$className === void 0 ? "" : _ref$className,
16834
- otherProps = _objectWithoutProperties$1(_ref, _excluded$p);
16834
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$q);
16835
16835
  var Component = component ? COMPONENTS[component] : style ? DEFAULT_COMPONENTS[style] : "p";
16836
16836
  return /*#__PURE__*/React__default["default"].createElement(Component, _extends$2({
16837
16837
  ref: ref,
@@ -16894,7 +16894,7 @@ var Header = function Header(_ref) {
16894
16894
  }, description)));
16895
16895
  };
16896
16896
 
16897
- var _excluded$o = ["size", "isOpen", "onClose", "children", "finalFocusRef", "initialFocusRef", "className", "closeOnEsc", "closeButton", "backdropClassName", "blockScrollOnMount", "closeOnOutsideClick"];
16897
+ var _excluded$p = ["size", "isOpen", "onClose", "children", "finalFocusRef", "initialFocusRef", "className", "closeOnEsc", "closeButton", "backdropClassName", "blockScrollOnMount", "closeOnOutsideClick"];
16898
16898
  var SIZES$5 = {
16899
16899
  small: "small",
16900
16900
  medium: "medium",
@@ -16923,7 +16923,7 @@ var Modal = function Modal(_ref) {
16923
16923
  blockScrollOnMount = _ref$blockScrollOnMou === void 0 ? true : _ref$blockScrollOnMou,
16924
16924
  _ref$closeOnOutsideCl = _ref.closeOnOutsideClick,
16925
16925
  closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
16926
- otherProps = _objectWithoutProperties$1(_ref, _excluded$o);
16926
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$p);
16927
16927
  var _useState = React.useState(false),
16928
16928
  _useState2 = _slicedToArray$1(_useState, 2),
16929
16929
  hasTransitionCompleted = _useState2[0],
@@ -17076,9 +17076,11 @@ var Alert = function Alert(_ref) {
17076
17076
  })));
17077
17077
  };
17078
17078
 
17079
+ var _excluded$o = ["isDirty"];
17079
17080
  var BlockNavigation = function BlockNavigation(_ref) {
17080
17081
  var _ref$isDirty = _ref.isDirty,
17081
- isDirty = _ref$isDirty === void 0 ? false : _ref$isDirty;
17082
+ isDirty = _ref$isDirty === void 0 ? false : _ref$isDirty,
17083
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$o);
17082
17084
  var formikContext = formik.useFormikContext();
17083
17085
  var shouldBlock = isDirty || Boolean(formikContext) && Boolean(formikContext.dirty);
17084
17086
  var _useNavPrompt = useNavPrompt({
@@ -17091,14 +17093,14 @@ var BlockNavigation = function BlockNavigation(_ref) {
17091
17093
  if (formikContext) formikContext.resetForm();
17092
17094
  continueNavigation();
17093
17095
  };
17094
- return /*#__PURE__*/React__default["default"].createElement(Alert, {
17096
+ return /*#__PURE__*/React__default["default"].createElement(Alert, _extends$2({
17095
17097
  isOpen: isBlocked,
17096
17098
  message: "All of your unsaved changes will be lost. This can't be undone.",
17097
17099
  submitButtonLabel: "Discard changes",
17098
17100
  title: "You have unsaved changes",
17099
17101
  onClose: hidePrompt,
17100
17102
  onSubmit: continueAction
17101
- });
17103
+ }, otherProps));
17102
17104
  };
17103
17105
 
17104
17106
  function canUseDOM$1() {