@theroutingcompany/components 0.0.26-alpha.13 → 0.0.26-alpha.16

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.
@@ -9272,9 +9272,9 @@ const jS = () => `
9272
9272
  &[data-state~='pressed'] {
9273
9273
  background: ${p.color_black};
9274
9274
  }
9275
+
9275
9276
  &:disabled {
9276
- background: ${p.color_black};
9277
- color: ${p.color_black};
9277
+ /* TODO? */
9278
9278
  }
9279
9279
  `, YS = et`
9280
9280
  background: ${p.color_white};
@@ -14378,7 +14378,8 @@ const Kk = A.div`
14378
14378
  align-items: flex-start;
14379
14379
  `, Lk = A.div`
14380
14380
  display: inline-flex;
14381
- padding: 2px 4px;
14381
+ /* too much padding on smaller areas */
14382
+ /* padding: 2px 4px; */
14382
14383
  border-radius: 4px;
14383
14384
 
14384
14385
  background-color: ${p.color_deprecated_fill_inverse_enabled};
@@ -14476,7 +14477,7 @@ const Wk = A(ik)`
14476
14477
  border: 1px solid #f2f2f2;
14477
14478
  background-color: ${p.color_white};
14478
14479
  width: 100%;
14479
- min-width: calc(242px + (${p.spacing_200} * 1));
14480
+ /* min-width: calc(242px + (${p.spacing_200} * 1)); */ // this didn't work out like I wanted :(
14480
14481
  `, Uk = A(lk)`
14481
14482
  border: 1px solid ${p.color_gray_96};
14482
14483
  border-radius: ${p.border_radius_400};
@@ -14840,7 +14841,7 @@ const y6 = i0, _6 = m6, x6 = b6, w6 = g6, D6 = v6, P6 = Le`
14840
14841
  font-size: ${p.font_size_deprecated_100};
14841
14842
  line-height: ${p.line_height_deprecated_129};
14842
14843
  letter-spacing: ${p.letter_spacing_deprecated_body_medium};
14843
- color: black; /* Static/Text/Primary/Default */
14844
+ color: ${p.color_black};
14844
14845
  `, gN = () => /* @__PURE__ */ w(Do, { asChild: !0, children: /* @__PURE__ */ w(go, { label: "Close drawer", variant: "inverse", children: /* @__PURE__ */ w(nm, {}) }) }), k6 = A(Dc)`
14845
14846
  pointer-events: auto !important; // React aria adding pointer events none to drawer when date dropdowns are open in them?
14846
14847
  ${({ width: e }) => e && `width: ${e};`}
@@ -14855,6 +14856,7 @@ const y6 = i0, _6 = m6, x6 = b6, w6 = g6, D6 = v6, P6 = Le`
14855
14856
  border-radius: ${p.border_radius_800};
14856
14857
  scrollbar-gutter: stable;
14857
14858
  overflow-y: auto;
14859
+ overflow-x: hidden;
14858
14860
 
14859
14861
  @media (prefers-reduced-motion: no-preference) {
14860
14862
  &[data-state='open'] {
@@ -20763,41 +20765,42 @@ const c9 = A(Fr)`
20763
20765
  `, p9 = ({
20764
20766
  children: e,
20765
20767
  placeholder: t,
20766
- defaultValue: r = "",
20767
- value: n,
20768
- minWidth: o,
20769
- hideIcon: a,
20770
- fullWidth: i,
20771
- textAlign: s = "left",
20772
- p: l,
20773
- onChange: c,
20774
- ...d
20768
+ value: r = "",
20769
+ minWidth: n,
20770
+ hideIcon: o,
20771
+ fullWidth: a,
20772
+ textAlign: i = "left",
20773
+ p: s = "7px 8px",
20774
+ onChange: l = () => !1,
20775
+ onToggle: c = () => !1,
20776
+ disabled: d = !1,
20777
+ ...u
20775
20778
  }) => {
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)
20779
+ const [f, m] = J(!1), [h, b] = J(!1), g = _a(u, si.propNames ?? []), $ = _a(u, od.propNames ?? []), y = te(() => {
20780
+ c(!h), b(!h);
20781
+ }, [h, c]), _ = te((k) => {
20782
+ m(!0), l(), c(!h), b(!h);
20783
+ }, [h, l, c]);
20784
+ if (h)
20782
20785
  return /* @__PURE__ */ w(
20783
20786
  hd,
20784
20787
  {
20785
20788
  fullWidth: !0,
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, {}) }) }),
20789
+ right: /* @__PURE__ */ w(Ro, { ml: p.spacing_100, children: /* @__PURE__ */ w(c9, { onClick: _, disabled: f, children: f ? /* @__PURE__ */ w(s2, {}) : /* @__PURE__ */ w(Za, {}) }) }),
20787
20790
  children: e
20788
20791
  }
20789
20792
  );
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, {})
20793
+ const v = {
20794
+ p: s,
20795
+ minWidth: n,
20796
+ fullWidth: a,
20797
+ textAlign: i,
20798
+ ...g,
20799
+ ...$
20800
+ };
20801
+ return /* @__PURE__ */ le(u9, { onClick: y, ...v, "data-id": u["data-id"], disabled: d, children: [
20802
+ `${r}` || /* @__PURE__ */ w(d9, { children: t }),
20803
+ !o && !d && /* @__PURE__ */ w(f9, {})
20801
20804
  ] });
20802
20805
  };
20803
20806
  p9.displayName = "InlineEdit";