@shoplflow/base 0.31.20 → 0.31.21

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/dist/index.cjs CHANGED
@@ -1745,7 +1745,8 @@ var IconButton = React3.forwardRef(
1745
1745
  color,
1746
1746
  onMouseEnter,
1747
1747
  onMouseLeave,
1748
- isLoading = false
1748
+ isLoading = false,
1749
+ type = "button"
1749
1750
  } = _b, rest = __objRest(_b, [
1750
1751
  "styleVar",
1751
1752
  "sizeVar",
@@ -1754,7 +1755,8 @@ var IconButton = React3.forwardRef(
1754
1755
  "color",
1755
1756
  "onMouseEnter",
1756
1757
  "onMouseLeave",
1757
- "isLoading"
1758
+ "isLoading",
1759
+ "type"
1758
1760
  ]);
1759
1761
  const [isHovered, setIsHovered] = React3.useState(false);
1760
1762
  const handleOnMouseEnter = (e) => {
@@ -1775,7 +1777,8 @@ var IconButton = React3.forwardRef(
1775
1777
  ref,
1776
1778
  onMouseEnter: handleOnMouseEnter,
1777
1779
  onMouseLeave: handleOnMouseLeave,
1778
- isHovered
1780
+ isHovered,
1781
+ type
1779
1782
  }, rest), {
1780
1783
  "data-shoplflow": "IconButton",
1781
1784
  children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(LoadingSpinner_default, { color: styleVar === "SECONDARY" || styleVar === "GHOST" ? "neutral500" : "neutral0" }) : children