@theroutingcompany/components 0.0.26-alpha.12 → 0.0.26-alpha.15

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