@flytedan/flytebot-design-system 0.12.12 → 0.12.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flytedan/flytebot-design-system",
3
- "version": "0.12.12",
3
+ "version": "0.12.13",
4
4
  "description": "flytedesk Design System — shared component library, tokens, and business-logic kits for flytedesk apps.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -1724,6 +1724,14 @@
1724
1724
  }
1725
1725
 
1726
1726
  /* ============ Stat tile ============ */
1727
+ /* MP-141: kit-wide truncation rule for Stat (and every future text class here) —
1728
+ * explanatory/label copy (.fd-stat-sub, .fd-stat-label) always WRAPS, never
1729
+ * ellipsizes: a client reading a narrow tile must never lose part of a sentence
1730
+ * behind a "…" with no way to read the rest, and a tooltip is not a substitute
1731
+ * for readable client-facing copy. Only a user-data identifier displayed in a
1732
+ * dense row (a table cell, a chip) may ellipsize — and only when it also exposes
1733
+ * its full text via `title`/tooltip. Decide this once, here, for every Stat
1734
+ * consumer, not per screen. */
1727
1735
  .fd-stat {
1728
1736
  background: var(--surface);
1729
1737
  border: 1px solid var(--border);
@@ -1740,16 +1748,23 @@
1740
1748
  min-width: 0;
1741
1749
  }
1742
1750
  .fd-stat-sub {
1751
+ /* MP-141: this is explanatory copy ("on every funded campus, at minimum"),
1752
+ * never a user-data identifier — per the kit's truncation rule (see this
1753
+ * file's own header note above .fd-stat), explanatory/label copy always
1754
+ * wraps instead of ellipsizing, so a client reading a narrow tile never
1755
+ * loses part of the sentence behind a "…" with no way to read the rest. */
1743
1756
  display: block;
1744
1757
  margin-top: 4px;
1745
1758
  font-size: var(--body-sm-size);
1746
1759
  color: var(--text-2);
1747
1760
  min-width: 0;
1748
- overflow: hidden;
1749
- text-overflow: ellipsis;
1750
- white-space: nowrap;
1761
+ overflow-wrap: break-word;
1762
+ white-space: normal;
1751
1763
  }
1752
1764
  .fd-stat-label {
1765
+ /* MP-141: same rule as .fd-stat-sub above — this is the tile's fixed
1766
+ * caption, not a user-entered identifier, so it wraps rather than losing
1767
+ * words to an ellipsis. */
1753
1768
  display: block;
1754
1769
  margin-top: 6px;
1755
1770
  font-size: var(--overline-size);
@@ -1757,9 +1772,8 @@
1757
1772
  text-transform: uppercase;
1758
1773
  font-weight: var(--w-bold);
1759
1774
  color: var(--text-muted);
1760
- white-space: nowrap;
1761
- overflow: hidden;
1762
- text-overflow: ellipsis;
1775
+ overflow-wrap: break-word;
1776
+ white-space: normal;
1763
1777
  }
1764
1778
  .fd-stat-figure {
1765
1779
  flex: none;