@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/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, elementSpecificProps;
14783
+ var Parent = motion.button;
14784
+ var elementSpecificProps = {
14785
+ type: type
14786
+ };
14784
14787
  var renderLabel = label || children;
14785
- if (to) {
14786
- Parent = Link;
14787
- elementSpecificProps = {
14788
- to: to
14789
- };
14790
- } else if (href) {
14791
- Parent = motion.a;
14792
- elementSpecificProps = {
14793
- href: href
14794
- };
14795
- } else {
14796
- Parent = motion.button;
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) {