@ztwoint/z-ui 0.1.23 → 0.1.24

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.
@@ -11,7 +11,7 @@ const N = z(
11
11
  filled: [
12
12
  "border-[.5px] disabled:border-none disabled:shadow-[var(--shadow-button-disabled)]"
13
13
  ],
14
- stroke: ["disabled:border-none disabled:shadow-[var(--shadow-button-disabled)]"],
14
+ stroke: ["disabled:shadow-[var(--shadow-button-disabled)]"],
15
15
  ghost: [""]
16
16
  },
17
17
  shade: {
@@ -80,18 +80,18 @@ const N = z(
80
80
  variant: f,
81
81
  asChild: o = !1,
82
82
  leftIcon: a,
83
- rightIcon: r,
83
+ rightIcon: t,
84
84
  label: m,
85
85
  children: l,
86
86
  ...p
87
87
  }, y) => {
88
- const v = o ? O : "button", t = m || l, d = !t && !!(a || r), i = d ? a || r : null, h = n(
89
- N({ shade: c, size: b, variant: f, iconOnly: d, className: u })
90
- ), s = "w-3.5 h-3.5";
91
- return /* @__PURE__ */ e(v, { className: h, ref: y, ...p, children: o ? l : d ? i ? /* @__PURE__ */ e("span", { className: s, children: i }) : null : /* @__PURE__ */ x(g, { children: [
92
- a && /* @__PURE__ */ e("span", { className: n(s), children: a }),
93
- t && /* @__PURE__ */ e("span", { children: t }),
94
- r && /* @__PURE__ */ e("span", { className: n(s), children: r })
88
+ const v = o ? O : "button", r = m || l, s = !r && !!(a || t), i = s ? a || t : null, h = n(
89
+ N({ shade: c, size: b, variant: f, iconOnly: s, className: u })
90
+ ), d = "w-3.5 h-3.5";
91
+ return /* @__PURE__ */ e(v, { className: h, ref: y, ...p, children: o ? l : s ? i ? /* @__PURE__ */ e("span", { className: d, children: i }) : null : /* @__PURE__ */ x(g, { children: [
92
+ a && /* @__PURE__ */ e("span", { className: n(d), children: a }),
93
+ r && /* @__PURE__ */ e("span", { children: r }),
94
+ t && /* @__PURE__ */ e("span", { className: n(d), children: t })
95
95
  ] }) });
96
96
  }
97
97
  );
@@ -138,6 +138,6 @@
138
138
 
139
139
  --shadow-custom:
140
140
  0px 2px 4px 0px var(--color-alpha-one-50), 0px 0px 0px 0.5px var(--color-neutral-150);
141
- --shadow-button-diabled:
141
+ --shadow-button-disabled:
142
142
  0px 1px 2px 0px var(--color-neutral-950), 0px 0px 0px 0.5px var(--color-alpha-two-50);
143
143
  }