@flytedan/flytebot-design-system 0.11.3 → 0.11.5

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.cjs CHANGED
@@ -3036,16 +3036,13 @@ function EntityRowMetrics({ metrics, className = "", style }) {
3036
3036
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: ["fd-erow-metrics", className].filter(Boolean).join(" "), style, children: metrics.map((m, i) => {
3037
3037
  const key = m.id || m.label || i;
3038
3038
  const className2 = ["fd-erow-metric", m.tone && m.tone !== "default" ? "is-" + m.tone : "", m.tooltip != null ? "is-described" : ""].filter(Boolean).join(" ");
3039
- const cellStyle = { width: (m.width || ENTITY_ROW_METRIC_WIDTH) + "px", color: METRIC_TONE_COLOR[m.tone || "default"] };
3039
+ const tone = { color: METRIC_TONE_COLOR[m.tone || "default"] };
3040
3040
  const content = /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(React17.Fragment, { children: [
3041
3041
  m.icon ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("i", { className: "ph ph-" + m.icon, "aria-hidden": "true" }) : null,
3042
3042
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-metric-value fd-tabular", children: m.value }),
3043
3043
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-sr", children: " " + m.label })
3044
3044
  ] });
3045
- if (m.tooltip == null) {
3046
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: className2, style: cellStyle, title: m.label, children: content }, key);
3047
- }
3048
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Tooltip, { label: m.tooltip, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("button", { type: "button", className: className2, style: cellStyle, children: content }) }, key);
3045
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-cell", style: { "--erow-metric-w": (m.width || ENTITY_ROW_METRIC_WIDTH) + "px" }, children: m.tooltip == null ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: className2, style: tone, title: m.label, children: content }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Tooltip, { label: m.tooltip, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("button", { type: "button", className: className2, style: tone, children: content }) }) }, key);
3049
3046
  }) });
3050
3047
  }
3051
3048
  function EntityRow({
@@ -3338,18 +3335,7 @@ function TransferList({
3338
3335
  ref: (el) => {
3339
3336
  sideRefs.current[side] = el;
3340
3337
  },
3341
- style: {
3342
- flex: 1,
3343
- minWidth: 0,
3344
- display: "flex",
3345
- flexDirection: "column",
3346
- gap: 8,
3347
- padding: 10,
3348
- borderRadius: 10,
3349
- border: "1px solid " + (dragOverSide === side ? "var(--brand)" : "var(--border)"),
3350
- background: "var(--surface)",
3351
- position: "relative"
3352
- },
3338
+ className: ["fd-tlist-side", dragOverSide === side ? "is-drop-target" : ""].filter(Boolean).join(" "),
3353
3339
  children: [
3354
3340
  cfg.label ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "fd-overline fd-muted", children: [
3355
3341
  cfg.label,
@@ -3411,9 +3397,11 @@ function TransferList({
3411
3397
  }
3412
3398
  );
3413
3399
  };
3414
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: ["fd-tlist", className].filter(Boolean).join(" "), style: { display: "flex", gap: 16, alignItems: "flex-start" }, children: [
3415
- renderSide("left", left, "right"),
3416
- renderSide("right", right, "left"),
3400
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: ["fd-tlist", className].filter(Boolean).join(" "), children: [
3401
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "fd-tlist-panes", children: [
3402
+ renderSide("left", left, "right"),
3403
+ renderSide("right", right, "left")
3404
+ ] }),
3417
3405
  drag ? (0, import_react_dom4.createPortal)(
3418
3406
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3419
3407
  "div",