@flytedan/flytebot-design-system 0.12.8 → 0.12.9

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
@@ -8152,7 +8152,7 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
8152
8152
  const tallest = Math.max(1, ...grouped.map((g) => g.items.length));
8153
8153
  const floor = BANDS2.find((b) => b.key === floorBand) || BANDS2[0];
8154
8154
  return /* @__PURE__ */ jsxs61("div", { className: ["fd-stack", className].filter(Boolean).join(" "), style: { gap: 16 }, children: [
8155
- /* @__PURE__ */ jsx65("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: 12, alignItems: "end" }, children: grouped.map((g) => {
8155
+ /* @__PURE__ */ jsx65("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,minmax(0,1fr))", gap: 12, alignItems: "end" }, children: grouped.map((g) => {
8156
8156
  const mark = "var(--csi-" + g.n + "-mark)";
8157
8157
  const active = selectedBand === g.key;
8158
8158
  return /* @__PURE__ */ jsxs61(
@@ -8160,16 +8160,23 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
8160
8160
  {
8161
8161
  type: "button",
8162
8162
  onClick: onSelectBand ? () => onSelectBand(active ? null : g.key) : void 0,
8163
- style: { display: "flex", flexDirection: "column", justifyContent: "flex-end", gap: 10, padding: 12, border: "1px solid " + (active ? "var(--border-strong)" : "var(--border)"), borderRadius: "var(--r-lg)", background: active ? "var(--surface-2)" : "var(--surface)", cursor: onSelectBand ? "pointer" : "default", textAlign: "left", minHeight: 190, transition: "background var(--dur-fast) var(--ease),border-color var(--dur-fast) var(--ease)" },
8163
+ style: { display: "flex", flexDirection: "column", justifyContent: "flex-end", gap: 10, padding: 12, border: "1px solid " + (active ? "var(--border-strong)" : "var(--border)"), borderRadius: "var(--r-lg)", background: active ? "var(--surface-2)" : "var(--surface)", cursor: onSelectBand ? "pointer" : "default", textAlign: "left", minHeight: 190, minWidth: 0, transition: "background var(--dur-fast) var(--ease),border-color var(--dur-fast) var(--ease)" },
8164
8164
  children: [
8165
- /* @__PURE__ */ jsx65("span", { style: { display: "flex", flexDirection: "column-reverse", gap: 4, minHeight: tallest * 24 }, children: loading ? Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx65("span", { className: "fd-skel", style: { height: 16, borderRadius: 4 } }, i)) : g.items.map((c) => /* @__PURE__ */ jsx65(
8166
- "span",
8167
- {
8168
- title: c.name + " \xB7 " + c.crp,
8169
- style: { height: 18, borderRadius: 4, background: "var(--csi-" + g.n + "-fill)", border: "1px solid var(--csi-" + g.n + "-edge)", color: "var(--csi-" + g.n + "-text)", display: "flex", alignItems: "center", padding: "0 7px", fontSize: 10, fontWeight: 700, overflow: "hidden", whiteSpace: "nowrap" },
8170
- children: c.short || c.name
8171
- },
8172
- c.name
8165
+ /* @__PURE__ */ jsx65("span", { style: { display: "flex", flexDirection: "column-reverse", gap: 4, minHeight: tallest * 24, minWidth: 0 }, children: loading ? Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsx65("span", { className: "fd-skel", style: { height: 16, borderRadius: 4 } }, i)) : g.items.map((c) => (
8166
+ // `overflow: hidden` + `white-space: nowrap` only clips once the span
8167
+ // actually HAS a bounded width to clip against (see the grid/flex
8168
+ // `minWidth: 0` chain above) `textOverflow: ellipsis` then makes
8169
+ // that clip readable instead of a hard cut mid-letter; the full name
8170
+ // is still one hover away via `title`.
8171
+ /* @__PURE__ */ jsx65(
8172
+ "span",
8173
+ {
8174
+ title: c.name + " \xB7 " + c.crp,
8175
+ style: { height: 18, borderRadius: 4, background: "var(--csi-" + g.n + "-fill)", border: "1px solid var(--csi-" + g.n + "-edge)", color: "var(--csi-" + g.n + "-text)", display: "flex", alignItems: "center", padding: "0 7px", fontSize: 10, fontWeight: 700, overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" },
8176
+ children: c.short || c.name
8177
+ },
8178
+ c.name
8179
+ )
8173
8180
  )) }),
8174
8181
  /* @__PURE__ */ jsxs61("span", { className: "fd-row", style: { gap: 8, alignItems: "baseline" }, children: [
8175
8182
  /* @__PURE__ */ jsx65("span", { className: "fd-num-hero", style: { fontSize: 30, color: g.items.length ? "var(--text)" : "var(--text-disabled)" }, children: loading ? "\u2013" : g.items.length }),