@hexdspace/react 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1219,20 +1219,16 @@ var Button = React3.forwardRef(
1219
1219
  isDisabled && "opacity-50 pointer-events-none cursor-not-allowed",
1220
1220
  className
1221
1221
  );
1222
- const hasText = React3.Children.count(children) > 0;
1223
1222
  const content = /* @__PURE__ */ jsxs3(Fragment2, { children: [
1224
1223
  loading ? /* @__PURE__ */ jsx7(
1225
1224
  "span",
1226
1225
  {
1227
1226
  "aria-hidden": "true",
1228
- className: [
1229
- "inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent",
1230
- hasText ? "mr-2" : ""
1231
- ].join(" ")
1227
+ className: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"
1232
1228
  }
1233
1229
  ) : leftIcon,
1234
- hasText ? /* @__PURE__ */ jsx7("span", { children }) : null,
1235
- hasText ? rightIcon : null
1230
+ children,
1231
+ rightIcon
1236
1232
  ] });
1237
1233
  if (asChild) {
1238
1234
  return /* @__PURE__ */ jsx7(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexdspace/react",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",