@bigbinary/neetoui 5.2.6 → 5.2.8
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 +21 -19
- package/formik.cjs.js.map +1 -1
- package/formik.js +22 -20
- package/formik.js.map +1 -1
- package/index.cjs.js +16 -16
- package/index.cjs.js.map +1 -1
- package/index.js +16 -16
- package/index.js.map +1 -1
- package/package.json +1 -1
package/formik.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { createContext, useContext, useRef, useEffect, useLayoutEffect, useCallback, useMemo, forwardRef as forwardRef$1, createElement, useState, cloneElement, Children, isValidElement, Fragment, Component } from 'react';
|
|
2
|
+
import React__default, { createContext, useContext, useRef, useEffect, useLayoutEffect, useCallback, useMemo, forwardRef as forwardRef$1, createElement, useState, cloneElement, Children, isValidElement, Fragment, Component, startTransition } from 'react';
|
|
3
3
|
import { useFormikContext, Field, Form as Form$1, Formik, useField } from 'formik';
|
|
4
4
|
import { Link, useHistory } from 'react-router-dom';
|
|
5
5
|
import ReactDOM, { createPortal } from 'react-dom';
|
|
@@ -14004,23 +14004,23 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
14004
14004
|
tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
|
|
14005
14005
|
children = _ref.children,
|
|
14006
14006
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$s);
|
|
14007
|
-
var Parent
|
|
14007
|
+
var Parent = motion.button;
|
|
14008
|
+
var elementSpecificProps = {
|
|
14009
|
+
type: type
|
|
14010
|
+
};
|
|
14008
14011
|
var renderLabel = label || children;
|
|
14009
|
-
if (
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
|
|
14018
|
-
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
elementSpecificProps = {
|
|
14022
|
-
type: type
|
|
14023
|
-
};
|
|
14012
|
+
if (!disabled) {
|
|
14013
|
+
if (to) {
|
|
14014
|
+
Parent = Link;
|
|
14015
|
+
elementSpecificProps = {
|
|
14016
|
+
to: to
|
|
14017
|
+
};
|
|
14018
|
+
} else if (href) {
|
|
14019
|
+
Parent = motion.a;
|
|
14020
|
+
elementSpecificProps = {
|
|
14021
|
+
href: href
|
|
14022
|
+
};
|
|
14023
|
+
}
|
|
14024
14024
|
}
|
|
14025
14025
|
var handleClick = function handleClick(e) {
|
|
14026
14026
|
if (!loading && !disabled) {
|
|
@@ -25523,11 +25523,13 @@ var SelectField = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
|
25523
25523
|
name: field.name,
|
|
25524
25524
|
options: options,
|
|
25525
25525
|
value: either(isNil, isEmpty)(field.value) ? null : buildValueObj(field.value, options),
|
|
25526
|
-
onBlur: function onBlur() {
|
|
25527
|
-
return setTouched(true);
|
|
25528
|
-
},
|
|
25529
25526
|
onChange: function onChange(value) {
|
|
25530
25527
|
return setValue(value);
|
|
25528
|
+
},
|
|
25529
|
+
onBlur: function onBlur() {
|
|
25530
|
+
return startTransition(function () {
|
|
25531
|
+
setTouched(true);
|
|
25532
|
+
});
|
|
25531
25533
|
}
|
|
25532
25534
|
}, otherProps, {
|
|
25533
25535
|
onKeyDown: function onKeyDown(event) {
|