@theroutingcompany/components 0.0.26-alpha.10 → 0.0.26-alpha.11

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.
@@ -20769,33 +20769,34 @@ const c9 = A(Fr)`
20769
20769
  fullWidth: a,
20770
20770
  textAlign: i = "left",
20771
20771
  p: s,
20772
- ...l
20772
+ onChange: l,
20773
+ ...c
20773
20774
  }) => {
20774
- const [c, d] = J(!1), [u, f] = J(!1), m = _a(l, si.propNames ?? []), h = _a(l, od.propNames ?? []), b = te(() => {
20775
- f(!u);
20776
- }, [u]), g = te((y) => {
20777
- console.log(y), console.log("save");
20778
- }, []);
20779
- if (u)
20775
+ const [d, u] = J(!1), [f, m] = J(!1), h = _a(c, si.propNames ?? []), b = _a(c, od.propNames ?? []), g = te(() => {
20776
+ m(!f);
20777
+ }, [f]), $ = te((_) => {
20778
+ l();
20779
+ }, [l]);
20780
+ if (f)
20780
20781
  return /* @__PURE__ */ w(
20781
20782
  hd,
20782
20783
  {
20783
20784
  fullWidth: !0,
20784
- right: /* @__PURE__ */ w(Ro, { ml: p.spacing_100, children: /* @__PURE__ */ w(c9, { onClick: g, disabled: c, children: c ? /* @__PURE__ */ w(s2, {}) : /* @__PURE__ */ w(Za, {}) }) }),
20785
+ right: /* @__PURE__ */ w(Ro, { ml: p.spacing_100, children: /* @__PURE__ */ w(c9, { onClick: $, disabled: d, children: d ? /* @__PURE__ */ w(s2, {}) : /* @__PURE__ */ w(Za, {}) }) }),
20785
20786
  children: e
20786
20787
  }
20787
20788
  );
20788
- const $ = {
20789
+ const y = {
20789
20790
  p: s,
20790
20791
  minWidth: n,
20791
20792
  fullWidth: a,
20792
20793
  textAlign: i,
20793
- ...m,
20794
- ...h
20794
+ ...h,
20795
+ ...b
20795
20796
  };
20796
20797
  return (
20797
20798
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
20798
- /* @__PURE__ */ le(u9, { onClick: b, ...$, "data-id": l["data-id"], children: [
20799
+ /* @__PURE__ */ le(u9, { onClick: g, ...y, "data-id": c["data-id"], children: [
20799
20800
  r || /* @__PURE__ */ w(d9, { children: t }),
20800
20801
  !o && /* @__PURE__ */ w(f9, {})
20801
20802
  ] })