@pattern-stack/frontend-patterns 0.2.0-alpha.13 → 0.2.0-alpha.14
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.js
CHANGED
|
@@ -4164,7 +4164,7 @@ const Button = React.forwardRef(
|
|
|
4164
4164
|
children: [
|
|
4165
4165
|
loading && /* @__PURE__ */ jsxRuntime.jsx(Spinner$1, { className: "w-4 h-4 mr-2" }),
|
|
4166
4166
|
!loading && icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("inline-flex shrink-0", children && "mr-2"), children: icon }),
|
|
4167
|
-
children && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
4167
|
+
children && (iconOnlyMobile ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline", children }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children })),
|
|
4168
4168
|
!loading && iconAfter && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("inline-flex shrink-0", children && "ml-2"), children: iconAfter })
|
|
4169
4169
|
]
|
|
4170
4170
|
}
|