@bigbinary/neetoui 5.2.7 → 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 +16 -16
- package/formik.cjs.js.map +1 -1
- package/formik.js +16 -16
- 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/index.js
CHANGED
|
@@ -14780,23 +14780,23 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
14780
14780
|
tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
|
|
14781
14781
|
children = _ref.children,
|
|
14782
14782
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$C);
|
|
14783
|
-
var Parent
|
|
14783
|
+
var Parent = motion.button;
|
|
14784
|
+
var elementSpecificProps = {
|
|
14785
|
+
type: type
|
|
14786
|
+
};
|
|
14784
14787
|
var renderLabel = label || children;
|
|
14785
|
-
if (
|
|
14786
|
-
|
|
14787
|
-
|
|
14788
|
-
|
|
14789
|
-
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
|
|
14795
|
-
|
|
14796
|
-
|
|
14797
|
-
elementSpecificProps = {
|
|
14798
|
-
type: type
|
|
14799
|
-
};
|
|
14788
|
+
if (!disabled) {
|
|
14789
|
+
if (to) {
|
|
14790
|
+
Parent = Link;
|
|
14791
|
+
elementSpecificProps = {
|
|
14792
|
+
to: to
|
|
14793
|
+
};
|
|
14794
|
+
} else if (href) {
|
|
14795
|
+
Parent = motion.a;
|
|
14796
|
+
elementSpecificProps = {
|
|
14797
|
+
href: href
|
|
14798
|
+
};
|
|
14799
|
+
}
|
|
14800
14800
|
}
|
|
14801
14801
|
var handleClick = function handleClick(e) {
|
|
14802
14802
|
if (!loading && !disabled) {
|