@danxbot/ui 15.7.0 → 15.7.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/index.js CHANGED
@@ -16012,30 +16012,38 @@ function F_({
16012
16012
  function V_(e, t) {
16013
16013
  return e === "multiline" ? "whitespace-pre-wrap break-words" : e === "wrap" ? "whitespace-normal break-words" : t ? "whitespace-nowrap overflow-x-auto" : "truncate";
16014
16014
  }
16015
- function T8({ label: e, children: t, editing: n, onEditingChange: r, disabled: o, className: s }) {
16015
+ function T8({
16016
+ label: e,
16017
+ children: t,
16018
+ editing: n,
16019
+ onEditingChange: r,
16020
+ disabled: o,
16021
+ className: s,
16022
+ size: i = "sm"
16023
+ }) {
16016
16024
  km("EditGutter", n, r);
16017
- const [i, a] = Us(n, !1, r), l = ye(null), c = ye(null), u = !i && !o, [p, f] = fe(!1);
16018
- z_(l, c, u), B_(l, c, i), Ve(() => {
16019
- u || f(!1);
16020
- }, [u]);
16021
- function h(m) {
16022
- m.pointerType === "touch" && f(!0);
16025
+ const [a, l] = Us(n, !1, r), c = ye(null), u = ye(null), p = !a && !o, [f, h] = fe(!1);
16026
+ z_(c, u, p), B_(c, u, a), Ve(() => {
16027
+ p || h(!1);
16028
+ }, [p]);
16029
+ function m(g) {
16030
+ g.pointerType === "touch" && h(!0);
16023
16031
  }
16024
16032
  return /* @__PURE__ */ P(
16025
16033
  "div",
16026
16034
  {
16027
- ref: l,
16035
+ ref: c,
16028
16036
  "data-slot": "edit-gutter",
16029
- "data-editing": i || void 0,
16030
- onPointerDown: h,
16037
+ "data-editing": a || void 0,
16038
+ onPointerDown: m,
16031
16039
  className: U("group/edit-gutter relative min-w-0", s),
16032
16040
  children: [
16033
- u && /* @__PURE__ */ d(
16041
+ p && /* @__PURE__ */ d(
16034
16042
  "span",
16035
16043
  {
16036
- ref: c,
16044
+ ref: u,
16037
16045
  "data-slot": "edit-gutter-pencil",
16038
- "data-touch-revealed": p || void 0,
16046
+ "data-touch-revealed": f || void 0,
16039
16047
  className: U(
16040
16048
  "absolute top-0 right-full z-10 flex",
16041
16049
  "transition-[var(--tx-colors),opacity] duration-(--dur-fast)",
@@ -16053,12 +16061,12 @@ function T8({ label: e, children: t, editing: n, onEditingChange: r, disabled: o
16053
16061
  // hidden too, and is armed only by `touchRevealed` (a tap).
16054
16062
  "[@media(any-hover:none)]:opacity-0",
16055
16063
  "[@media(any-hover:none)]:pointer-events-none",
16056
- p && "[@media(any-hover:none)]:opacity-100 [@media(any-hover:none)]:pointer-events-auto"
16064
+ f && "[@media(any-hover:none)]:opacity-100 [@media(any-hover:none)]:pointer-events-auto"
16057
16065
  ),
16058
- children: /* @__PURE__ */ d(gt, { icon: /* @__PURE__ */ d(de, { name: "pencil", size: "sm" }), label: e, size: "sm", onClick: () => a(!0) })
16066
+ children: /* @__PURE__ */ d(gt, { icon: /* @__PURE__ */ d(de, { name: "pencil", size: i }), label: e, size: i, onClick: () => l(!0) })
16059
16067
  }
16060
16068
  ),
16061
- t({ editing: i, onEditingChange: a })
16069
+ t({ editing: a, onEditingChange: l })
16062
16070
  ]
16063
16071
  }
16064
16072
  );