@craftzbay/ui 0.2.0 → 0.2.1

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-lib/index.js CHANGED
@@ -459,15 +459,26 @@ const lo = ze(
459
459
  type: p = "button",
460
460
  ...m
461
461
  }, f) {
462
- return /* @__PURE__ */ u(
463
- o ? Or : "button",
462
+ const b = d || i, h = g(lo({ variant: r, size: a }), t);
463
+ return o ? /* @__PURE__ */ e(
464
+ Or,
465
+ {
466
+ ref: f,
467
+ "aria-busy": i || void 0,
468
+ "data-loading": i || void 0,
469
+ className: h,
470
+ ...m,
471
+ children: l
472
+ }
473
+ ) : /* @__PURE__ */ u(
474
+ "button",
464
475
  {
465
476
  ref: f,
466
- type: o ? void 0 : p,
477
+ type: p,
467
478
  "aria-busy": i || void 0,
468
- disabled: o ? void 0 : d || i,
479
+ disabled: b,
469
480
  "data-loading": i || void 0,
470
- className: g(lo({ variant: r, size: a }), t),
481
+ className: h,
471
482
  ...m,
472
483
  children: [
473
484
  i ? /* @__PURE__ */ e(on, { className: "animate-spin", "aria-hidden": "true" }) : s,