@flytedan/flytebot-design-system 0.12.7 → 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 CHANGED
@@ -8114,6 +8114,7 @@ function FeatureGate({
8114
8114
  if (!preview) return fallback;
8115
8115
  const f = SessionKit.findFlag(flag) || {};
8116
8116
  const missing = rt.missing || [];
8117
+ const canBypass = bypassPerm === null ? false : !bypassPerm || SessionKit.can(bypassPerm);
8117
8118
  return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
8118
8119
  ComingSoon,
8119
8120
  {
@@ -8127,7 +8128,7 @@ function FeatureGate({
8127
8128
  minHeight,
8128
8129
  onRoadmap,
8129
8130
  bypassKey: flag,
8130
- canBypass: !bypassPerm || SessionKit.can(bypassPerm),
8131
+ canBypass,
8131
8132
  children
8132
8133
  }
8133
8134
  );
@@ -8355,7 +8356,7 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
8355
8356
  const tallest = Math.max(1, ...grouped.map((g) => g.items.length));
8356
8357
  const floor = BANDS2.find((b) => b.key === floorBand) || BANDS2[0];
8357
8358
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: ["fd-stack", className].filter(Boolean).join(" "), style: { gap: 16 }, children: [
8358
- /* @__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) => {
8359
8360
  const mark = "var(--csi-" + g.n + "-mark)";
8360
8361
  const active = selectedBand === g.key;
8361
8362
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
@@ -8363,16 +8364,23 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
8363
8364
  {
8364
8365
  type: "button",
8365
8366
  onClick: onSelectBand ? () => onSelectBand(active ? null : g.key) : void 0,
8366
- 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)" },
8367
8368
  children: [
8368
- /* @__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) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
8369
- "span",
8370
- {
8371
- title: c.name + " \xB7 " + c.crp,
8372
- 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" },
8373
- children: c.short || c.name
8374
- },
8375
- c.name
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
+ )
8376
8384
  )) }),
8377
8385
  /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "fd-row", style: { gap: 8, alignItems: "baseline" }, children: [
8378
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 }),