@flytedan/flytebot-design-system 0.11.3 → 0.11.4

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,9 @@ 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
+ * 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
1359
  width?: number;
1358
1360
  tone?: "default" | "muted" | "danger";
1359
1361
  }
package/dist/index.d.ts CHANGED
@@ -1353,7 +1353,9 @@ 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
+ * 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
1359
  width?: number;
1358
1360
  tone?: "default" | "muted" | "danger";
1359
1361
  }
package/dist/index.js CHANGED
@@ -2833,7 +2833,7 @@ 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 cellStyle = { "--erow-metric-w": (m.width || ENTITY_ROW_METRIC_WIDTH) + "px", 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 }),
@@ -3135,18 +3135,7 @@ function TransferList({
3135
3135
  ref: (el) => {
3136
3136
  sideRefs.current[side] = el;
3137
3137
  },
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
- },
3138
+ className: ["fd-tlist-side", dragOverSide === side ? "is-drop-target" : ""].filter(Boolean).join(" "),
3150
3139
  children: [
3151
3140
  cfg.label ? /* @__PURE__ */ jsxs38("span", { className: "fd-overline fd-muted", children: [
3152
3141
  cfg.label,
@@ -3208,7 +3197,7 @@ function TransferList({
3208
3197
  }
3209
3198
  );
3210
3199
  };
3211
- return /* @__PURE__ */ jsxs38("div", { className: ["fd-tlist", className].filter(Boolean).join(" "), style: { display: "flex", gap: 16, alignItems: "flex-start" }, children: [
3200
+ return /* @__PURE__ */ jsxs38("div", { className: ["fd-tlist", className].filter(Boolean).join(" "), children: [
3212
3201
  renderSide("left", left, "right"),
3213
3202
  renderSide("right", right, "left"),
3214
3203
  drag ? createPortal4(