@flytedan/flytebot-design-system 0.11.4 → 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
@@ -1354,8 +1354,9 @@ interface EntityRowMetric {
1354
1354
  icon?: string;
1355
1355
  /** Fixed cell width in px. Same value on the same column of every row is what makes
1356
1356
  * the strip a real aligned column rather than text that happens to sit near text.
1357
- * On a narrow screen (≤768px) cells size to their figure instead, so a phone-width row
1358
- * shows every figure rather than clipping whole columns off its end. */
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. */
1359
1360
  width?: number;
1360
1361
  tone?: "default" | "muted" | "danger";
1361
1362
  }
package/dist/index.d.ts CHANGED
@@ -1354,8 +1354,9 @@ interface EntityRowMetric {
1354
1354
  icon?: string;
1355
1355
  /** Fixed cell width in px. Same value on the same column of every row is what makes
1356
1356
  * the strip a real aligned column rather than text that happens to sit near text.
1357
- * On a narrow screen (≤768px) cells size to their figure instead, so a phone-width row
1358
- * shows every figure rather than clipping whole columns off its end. */
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. */
1359
1360
  width?: number;
1360
1361
  tone?: "default" | "muted" | "danger";
1361
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 = { "--erow-metric-w": (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({
@@ -3198,8 +3195,10 @@ function TransferList({
3198
3195
  );
3199
3196
  };
3200
3197
  return /* @__PURE__ */ jsxs38("div", { className: ["fd-tlist", className].filter(Boolean).join(" "), children: [
3201
- renderSide("left", left, "right"),
3202
- renderSide("right", right, "left"),
3198
+ /* @__PURE__ */ jsxs38("div", { className: "fd-tlist-panes", children: [
3199
+ renderSide("left", left, "right"),
3200
+ renderSide("right", right, "left")
3201
+ ] }),
3203
3202
  drag ? createPortal4(
3204
3203
  /* @__PURE__ */ jsx43(
3205
3204
  "div",