@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.d.cts CHANGED
@@ -1353,7 +1353,10 @@ interface EntityRowMetric {
1353
1353
  /** Phosphor icon name shown before the value, e.g. "student". */
1354
1354
  icon?: string;
1355
1355
  /** Fixed cell width in px. Same value on the same column of every row is what makes
1356
- * the strip a real aligned column rather than text that happens to sit near text. */
1356
+ * the strip a real aligned column rather than text that happens to sit near text.
1357
+ * It is the width a cell takes when the strip has room for every column at its width;
1358
+ * in a strip too narrow for that, cells shrink toward their own figure first, so a
1359
+ * narrow row loses alignment before it loses a figure. */
1357
1360
  width?: number;
1358
1361
  tone?: "default" | "muted" | "danger";
1359
1362
  }
package/dist/index.d.ts CHANGED
@@ -1353,7 +1353,10 @@ interface EntityRowMetric {
1353
1353
  /** Phosphor icon name shown before the value, e.g. "student". */
1354
1354
  icon?: string;
1355
1355
  /** Fixed cell width in px. Same value on the same column of every row is what makes
1356
- * the strip a real aligned column rather than text that happens to sit near text. */
1356
+ * the strip a real aligned column rather than text that happens to sit near text.
1357
+ * It is the width a cell takes when the strip has room for every column at its width;
1358
+ * in a strip too narrow for that, cells shrink toward their own figure first, so a
1359
+ * narrow row loses alignment before it loses a figure. */
1357
1360
  width?: number;
1358
1361
  tone?: "default" | "muted" | "danger";
1359
1362
  }
package/dist/index.js CHANGED
@@ -2833,16 +2833,13 @@ function EntityRowMetrics({ metrics, className = "", style }) {
2833
2833
  return /* @__PURE__ */ jsx39("span", { className: ["fd-erow-metrics", className].filter(Boolean).join(" "), style, children: metrics.map((m, i) => {
2834
2834
  const key = m.id || m.label || i;
2835
2835
  const className2 = ["fd-erow-metric", m.tone && m.tone !== "default" ? "is-" + m.tone : "", m.tooltip != null ? "is-described" : ""].filter(Boolean).join(" ");
2836
- const cellStyle = { width: (m.width || ENTITY_ROW_METRIC_WIDTH) + "px", color: METRIC_TONE_COLOR[m.tone || "default"] };
2836
+ const tone = { color: METRIC_TONE_COLOR[m.tone || "default"] };
2837
2837
  const content = /* @__PURE__ */ jsxs35(React17.Fragment, { children: [
2838
2838
  m.icon ? /* @__PURE__ */ jsx39("i", { className: "ph ph-" + m.icon, "aria-hidden": "true" }) : null,
2839
2839
  /* @__PURE__ */ jsx39("span", { className: "fd-erow-metric-value fd-tabular", children: m.value }),
2840
2840
  /* @__PURE__ */ jsx39("span", { className: "fd-sr", children: " " + m.label })
2841
2841
  ] });
2842
- if (m.tooltip == null) {
2843
- return /* @__PURE__ */ jsx39("span", { className: className2, style: cellStyle, title: m.label, children: content }, key);
2844
- }
2845
- return /* @__PURE__ */ jsx39(Tooltip, { label: m.tooltip, children: /* @__PURE__ */ jsx39("button", { type: "button", className: className2, style: cellStyle, children: content }) }, key);
2842
+ return /* @__PURE__ */ jsx39("span", { className: "fd-erow-cell", style: { "--erow-metric-w": (m.width || ENTITY_ROW_METRIC_WIDTH) + "px" }, children: m.tooltip == null ? /* @__PURE__ */ jsx39("span", { className: className2, style: tone, title: m.label, children: content }) : /* @__PURE__ */ jsx39(Tooltip, { label: m.tooltip, children: /* @__PURE__ */ jsx39("button", { type: "button", className: className2, style: tone, children: content }) }) }, key);
2846
2843
  }) });
2847
2844
  }
2848
2845
  function EntityRow({
@@ -3135,18 +3132,7 @@ function TransferList({
3135
3132
  ref: (el) => {
3136
3133
  sideRefs.current[side] = el;
3137
3134
  },
3138
- style: {
3139
- flex: 1,
3140
- minWidth: 0,
3141
- display: "flex",
3142
- flexDirection: "column",
3143
- gap: 8,
3144
- padding: 10,
3145
- borderRadius: 10,
3146
- border: "1px solid " + (dragOverSide === side ? "var(--brand)" : "var(--border)"),
3147
- background: "var(--surface)",
3148
- position: "relative"
3149
- },
3135
+ className: ["fd-tlist-side", dragOverSide === side ? "is-drop-target" : ""].filter(Boolean).join(" "),
3150
3136
  children: [
3151
3137
  cfg.label ? /* @__PURE__ */ jsxs38("span", { className: "fd-overline fd-muted", children: [
3152
3138
  cfg.label,
@@ -3208,9 +3194,11 @@ function TransferList({
3208
3194
  }
3209
3195
  );
3210
3196
  };
3211
- return /* @__PURE__ */ jsxs38("div", { className: ["fd-tlist", className].filter(Boolean).join(" "), style: { display: "flex", gap: 16, alignItems: "flex-start" }, children: [
3212
- renderSide("left", left, "right"),
3213
- renderSide("right", right, "left"),
3197
+ return /* @__PURE__ */ jsxs38("div", { className: ["fd-tlist", className].filter(Boolean).join(" "), children: [
3198
+ /* @__PURE__ */ jsxs38("div", { className: "fd-tlist-panes", children: [
3199
+ renderSide("left", left, "right"),
3200
+ renderSide("right", right, "left")
3201
+ ] }),
3214
3202
  drag ? createPortal4(
3215
3203
  /* @__PURE__ */ jsx43(
3216
3204
  "div",