@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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1718,7 +1718,8 @@ var IconButton = forwardRef(
|
|
|
1718
1718
|
color,
|
|
1719
1719
|
onMouseEnter,
|
|
1720
1720
|
onMouseLeave,
|
|
1721
|
-
isLoading = false
|
|
1721
|
+
isLoading = false,
|
|
1722
|
+
type = "button"
|
|
1722
1723
|
} = _b, rest = __objRest(_b, [
|
|
1723
1724
|
"styleVar",
|
|
1724
1725
|
"sizeVar",
|
|
@@ -1727,7 +1728,8 @@ var IconButton = forwardRef(
|
|
|
1727
1728
|
"color",
|
|
1728
1729
|
"onMouseEnter",
|
|
1729
1730
|
"onMouseLeave",
|
|
1730
|
-
"isLoading"
|
|
1731
|
+
"isLoading",
|
|
1732
|
+
"type"
|
|
1731
1733
|
]);
|
|
1732
1734
|
const [isHovered, setIsHovered] = useState(false);
|
|
1733
1735
|
const handleOnMouseEnter = (e) => {
|
|
@@ -1748,7 +1750,8 @@ var IconButton = forwardRef(
|
|
|
1748
1750
|
ref,
|
|
1749
1751
|
onMouseEnter: handleOnMouseEnter,
|
|
1750
1752
|
onMouseLeave: handleOnMouseLeave,
|
|
1751
|
-
isHovered
|
|
1753
|
+
isHovered,
|
|
1754
|
+
type
|
|
1752
1755
|
}, rest), {
|
|
1753
1756
|
"data-shoplflow": "IconButton",
|
|
1754
1757
|
children: isLoading ? /* @__PURE__ */ jsx(LoadingSpinner_default, { color: styleVar === "SECONDARY" || styleVar === "GHOST" ? "neutral500" : "neutral0" }) : children
|