@bigbinary/neetoui 5.1.18 → 5.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.
- package/formik.cjs.js +19 -17
- package/formik.cjs.js.map +1 -1
- package/formik.d.ts +2 -1
- package/formik.js +19 -17
- package/formik.js.map +1 -1
- package/index.cjs.js +26 -308
- package/index.cjs.js.map +1 -1
- package/index.css +1 -1
- package/index.js +25 -307
- package/index.js.map +1 -1
- package/layouts.cjs.js +2 -2
- package/layouts.cjs.js.map +1 -1
- package/layouts.js +2 -2
- package/layouts.js.map +1 -1
- package/package.json +4 -4
package/formik.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
MultiEmailInput as PlainMultiEmailInput,
|
|
11
11
|
Button as PlainButton,
|
|
12
12
|
ButtonProps,
|
|
13
|
+
AlertProps,
|
|
13
14
|
} from "./index";
|
|
14
15
|
|
|
15
16
|
export interface ActionBlockProps {
|
|
@@ -30,7 +31,7 @@ export interface Form {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export const ActionBlock: React.FC<ActionBlockProps>;
|
|
33
|
-
export const BlockNavigation: React.FC<BlockNavigationProps
|
|
34
|
+
export const BlockNavigation: React.FC<BlockNavigationProps & Partial<AlertProps>>;
|
|
34
35
|
|
|
35
36
|
export const Input: typeof PlainInput;
|
|
36
37
|
export const Radio: typeof PlainRadio;
|
package/formik.js
CHANGED
|
@@ -9873,10 +9873,10 @@ visualElement({
|
|
|
9873
9873
|
},
|
|
9874
9874
|
});
|
|
9875
9875
|
|
|
9876
|
-
var _excluded$
|
|
9876
|
+
var _excluded$u = ["children"];
|
|
9877
9877
|
var Portal$1 = function Portal(_ref, ref) {
|
|
9878
9878
|
var children = _ref.children,
|
|
9879
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
9879
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$u);
|
|
9880
9880
|
return /*#__PURE__*/React__default.createElement("div", _extends$2({
|
|
9881
9881
|
"data-cy": "neeto-backdrop",
|
|
9882
9882
|
"data-testid": "neeto-backdrop",
|
|
@@ -13885,7 +13885,7 @@ var index$1 = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
|
13885
13885
|
|
|
13886
13886
|
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>";
|
|
13887
13887
|
|
|
13888
|
-
var _excluded$
|
|
13888
|
+
var _excluded$t = ["content", "children", "theme", "disabled", "position", "interactive", "hideAfter", "hideOnTargetExit"];
|
|
13889
13889
|
var Tooltip = function Tooltip(_ref) {
|
|
13890
13890
|
var content = _ref.content,
|
|
13891
13891
|
children = _ref.children,
|
|
@@ -13901,7 +13901,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
13901
13901
|
hideAfter = _ref$hideAfter === void 0 ? -1 : _ref$hideAfter,
|
|
13902
13902
|
_ref$hideOnTargetExit = _ref.hideOnTargetExit,
|
|
13903
13903
|
hideOnTargetExit = _ref$hideOnTargetExit === void 0 ? false : _ref$hideOnTargetExit,
|
|
13904
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
13904
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$t);
|
|
13905
13905
|
var _useState = useState(null),
|
|
13906
13906
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
13907
13907
|
instance = _useState2[0],
|
|
@@ -13948,7 +13948,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
13948
13948
|
}, localProps, otherProps), /*#__PURE__*/React__default.isValidElement(children) ? children : /*#__PURE__*/React__default.createElement("span", null, children));
|
|
13949
13949
|
};
|
|
13950
13950
|
|
|
13951
|
-
var _excluded$
|
|
13951
|
+
var _excluded$s = ["icon", "iconPosition", "iconSize", "label", "loading", "onClick", "to", "type", "style", "fullWidth", "className", "disabled", "size", "href", "tooltipProps", "children"];
|
|
13952
13952
|
var BUTTON_STYLES = {
|
|
13953
13953
|
primary: "primary",
|
|
13954
13954
|
secondary: "secondary",
|
|
@@ -14003,7 +14003,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
14003
14003
|
_ref$tooltipProps = _ref.tooltipProps,
|
|
14004
14004
|
tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
|
|
14005
14005
|
children = _ref.children,
|
|
14006
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
14006
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
|
|
14007
14007
|
var Parent, elementSpecificProps;
|
|
14008
14008
|
var renderLabel = label || children;
|
|
14009
14009
|
if (to) {
|
|
@@ -14093,10 +14093,10 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
14093
14093
|
});
|
|
14094
14094
|
Button.displayName = "Button";
|
|
14095
14095
|
|
|
14096
|
-
var _excluded$
|
|
14096
|
+
var _excluded$r = ["disabled"];
|
|
14097
14097
|
var FormikButton = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
14098
14098
|
var disabled = _ref.disabled,
|
|
14099
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
14099
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$r);
|
|
14100
14100
|
var _useFormikContext = useFormikContext(),
|
|
14101
14101
|
handleSubmit = _useFormikContext.handleSubmit,
|
|
14102
14102
|
isSubmitting = _useFormikContext.isSubmitting,
|
|
@@ -16505,7 +16505,7 @@ var manager = new OverlayManager();
|
|
|
16505
16505
|
var dayjs_min = {exports: {}};
|
|
16506
16506
|
|
|
16507
16507
|
(function (module, exports) {
|
|
16508
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",
|
|
16508
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
16509
16509
|
} (dayjs_min));
|
|
16510
16510
|
|
|
16511
16511
|
var dayjs = dayjs_min.exports;
|
|
@@ -16521,7 +16521,7 @@ var localeData = localeData$1.exports;
|
|
|
16521
16521
|
var utc$1 = {exports: {}};
|
|
16522
16522
|
|
|
16523
16523
|
(function (module, exports) {
|
|
16524
|
-
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||
|
|
16524
|
+
!function(t,i){module.exports=i();}(commonjsGlobal,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
|
|
16525
16525
|
} (utc$1));
|
|
16526
16526
|
|
|
16527
16527
|
var utc = utc$1.exports;
|
|
@@ -16716,7 +16716,7 @@ var Footer = function Footer(_ref) {
|
|
|
16716
16716
|
}, children);
|
|
16717
16717
|
};
|
|
16718
16718
|
|
|
16719
|
-
var _excluded$
|
|
16719
|
+
var _excluded$q = ["style", "weight", "lineHeight", "component", "children", "textTransform", "className"];
|
|
16720
16720
|
var FONT_WEIGHTS = {
|
|
16721
16721
|
thin: "thin",
|
|
16722
16722
|
extralight: "extralight",
|
|
@@ -16804,7 +16804,7 @@ var Typography = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
16804
16804
|
textTransform = _ref.textTransform,
|
|
16805
16805
|
_ref$className = _ref.className,
|
|
16806
16806
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
16807
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
16807
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$q);
|
|
16808
16808
|
var Component = component ? COMPONENTS[component] : style ? DEFAULT_COMPONENTS[style] : "p";
|
|
16809
16809
|
return /*#__PURE__*/React__default.createElement(Component, _extends$2({
|
|
16810
16810
|
ref: ref,
|
|
@@ -16867,7 +16867,7 @@ var Header = function Header(_ref) {
|
|
|
16867
16867
|
}, description)));
|
|
16868
16868
|
};
|
|
16869
16869
|
|
|
16870
|
-
var _excluded$
|
|
16870
|
+
var _excluded$p = ["size", "isOpen", "onClose", "children", "finalFocusRef", "initialFocusRef", "className", "closeOnEsc", "closeButton", "backdropClassName", "blockScrollOnMount", "closeOnOutsideClick"];
|
|
16871
16871
|
var SIZES$5 = {
|
|
16872
16872
|
small: "small",
|
|
16873
16873
|
medium: "medium",
|
|
@@ -16896,7 +16896,7 @@ var Modal = function Modal(_ref) {
|
|
|
16896
16896
|
blockScrollOnMount = _ref$blockScrollOnMou === void 0 ? true : _ref$blockScrollOnMou,
|
|
16897
16897
|
_ref$closeOnOutsideCl = _ref.closeOnOutsideClick,
|
|
16898
16898
|
closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
|
|
16899
|
-
otherProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
16899
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$p);
|
|
16900
16900
|
var _useState = useState(false),
|
|
16901
16901
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
16902
16902
|
hasTransitionCompleted = _useState2[0],
|
|
@@ -17049,9 +17049,11 @@ var Alert = function Alert(_ref) {
|
|
|
17049
17049
|
})));
|
|
17050
17050
|
};
|
|
17051
17051
|
|
|
17052
|
+
var _excluded$o = ["isDirty"];
|
|
17052
17053
|
var BlockNavigation = function BlockNavigation(_ref) {
|
|
17053
17054
|
var _ref$isDirty = _ref.isDirty,
|
|
17054
|
-
isDirty = _ref$isDirty === void 0 ? false : _ref$isDirty
|
|
17055
|
+
isDirty = _ref$isDirty === void 0 ? false : _ref$isDirty,
|
|
17056
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$o);
|
|
17055
17057
|
var formikContext = useFormikContext();
|
|
17056
17058
|
var shouldBlock = isDirty || Boolean(formikContext) && Boolean(formikContext.dirty);
|
|
17057
17059
|
var _useNavPrompt = useNavPrompt({
|
|
@@ -17064,14 +17066,14 @@ var BlockNavigation = function BlockNavigation(_ref) {
|
|
|
17064
17066
|
if (formikContext) formikContext.resetForm();
|
|
17065
17067
|
continueNavigation();
|
|
17066
17068
|
};
|
|
17067
|
-
return /*#__PURE__*/React__default.createElement(Alert, {
|
|
17069
|
+
return /*#__PURE__*/React__default.createElement(Alert, _extends$2({
|
|
17068
17070
|
isOpen: isBlocked,
|
|
17069
17071
|
message: "All of your unsaved changes will be lost. This can't be undone.",
|
|
17070
17072
|
submitButtonLabel: "Discard changes",
|
|
17071
17073
|
title: "You have unsaved changes",
|
|
17072
17074
|
onClose: hidePrompt,
|
|
17073
17075
|
onSubmit: continueAction
|
|
17074
|
-
});
|
|
17076
|
+
}, otherProps));
|
|
17075
17077
|
};
|
|
17076
17078
|
|
|
17077
17079
|
function canUseDOM$1() {
|