@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.cjs +17 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +28 -13
package/dist/index.cjs
CHANGED
|
@@ -8356,7 +8356,7 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
|
|
|
8356
8356
|
const tallest = Math.max(1, ...grouped.map((g) => g.items.length));
|
|
8357
8357
|
const floor = BANDS2.find((b) => b.key === floorBand) || BANDS2[0];
|
|
8358
8358
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: ["fd-stack", className].filter(Boolean).join(" "), style: { gap: 16 }, children: [
|
|
8359
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: 12, alignItems: "end" }, children: grouped.map((g) => {
|
|
8359
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,minmax(0,1fr))", gap: 12, alignItems: "end" }, children: grouped.map((g) => {
|
|
8360
8360
|
const mark = "var(--csi-" + g.n + "-mark)";
|
|
8361
8361
|
const active = selectedBand === g.key;
|
|
8362
8362
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
@@ -8364,16 +8364,23 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
|
|
|
8364
8364
|
{
|
|
8365
8365
|
type: "button",
|
|
8366
8366
|
onClick: onSelectBand ? () => onSelectBand(active ? null : g.key) : void 0,
|
|
8367
|
-
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)" },
|
|
8367
|
+
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)" },
|
|
8368
8368
|
children: [
|
|
8369
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { style: { display: "flex", flexDirection: "column-reverse", gap: 4, minHeight: tallest * 24 }, children: loading ? Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "fd-skel", style: { height: 16, borderRadius: 4 } }, i)) : g.items.map((c) =>
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8369
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { style: { display: "flex", flexDirection: "column-reverse", gap: 4, minHeight: tallest * 24, minWidth: 0 }, children: loading ? Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "fd-skel", style: { height: 16, borderRadius: 4 } }, i)) : g.items.map((c) => (
|
|
8370
|
+
// `overflow: hidden` + `white-space: nowrap` only clips once the span
|
|
8371
|
+
// actually HAS a bounded width to clip against (see the grid/flex
|
|
8372
|
+
// `minWidth: 0` chain above) — `textOverflow: ellipsis` then makes
|
|
8373
|
+
// that clip readable instead of a hard cut mid-letter; the full name
|
|
8374
|
+
// is still one hover away via `title`.
|
|
8375
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
8376
|
+
"span",
|
|
8377
|
+
{
|
|
8378
|
+
title: c.name + " \xB7 " + c.crp,
|
|
8379
|
+
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" },
|
|
8380
|
+
children: c.short || c.name
|
|
8381
|
+
},
|
|
8382
|
+
c.name
|
|
8383
|
+
)
|
|
8377
8384
|
)) }),
|
|
8378
8385
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "fd-row", style: { gap: 8, alignItems: "baseline" }, children: [
|
|
8379
8386
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "fd-num-hero", style: { fontSize: 30, color: g.items.length ? "var(--text)" : "var(--text-disabled)" }, children: loading ? "\u2013" : g.items.length }),
|