@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.cjs.js CHANGED
@@ -14810,23 +14810,23 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, r
14810
14810
  tooltipProps = _ref$tooltipProps === void 0 ? null : _ref$tooltipProps,
14811
14811
  children = _ref.children,
14812
14812
  otherProps = _objectWithoutProperties$1(_ref, _excluded$C);
14813
- var Parent, elementSpecificProps;
14813
+ var Parent = motion.button;
14814
+ var elementSpecificProps = {
14815
+ type: type
14816
+ };
14814
14817
  var renderLabel = label || children;
14815
- if (to) {
14816
- Parent = reactRouterDom.Link;
14817
- elementSpecificProps = {
14818
- to: to
14819
- };
14820
- } else if (href) {
14821
- Parent = motion.a;
14822
- elementSpecificProps = {
14823
- href: href
14824
- };
14825
- } else {
14826
- Parent = motion.button;
14827
- elementSpecificProps = {
14828
- type: type
14829
- };
14818
+ if (!disabled) {
14819
+ if (to) {
14820
+ Parent = reactRouterDom.Link;
14821
+ elementSpecificProps = {
14822
+ to: to
14823
+ };
14824
+ } else if (href) {
14825
+ Parent = motion.a;
14826
+ elementSpecificProps = {
14827
+ href: href
14828
+ };
14829
+ }
14830
14830
  }
14831
14831
  var handleClick = function handleClick(e) {
14832
14832
  if (!loading && !disabled) {