@flytedan/flytebot-design-system 0.63.0 → 0.65.0

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.63.0",
3
+ "version": "0.65.0",
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",
@@ -3844,6 +3844,32 @@
3844
3844
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
3845
3845
  gap: 16px;
3846
3846
  }
3847
+ /* MP-310 — StatGrid (src/components/data/StatGrid.tsx): a stat tile set that wraps only into even
3848
+ rows. `fd-grid-stats` above is `auto-fit` and stays as it is; this is the opt-in for a set that
3849
+ must never strand one tile on a line (four tiles at a width that fits three). The root is the
3850
+ size container and the tiles sit in a grid inside it (a grid cannot query its own width), so the
3851
+ count follows the box the set is placed in, not the viewport. Each step is the narrowest
3852
+ container that holds that many tiles at the same 175px floor `fd-grid-stats` uses and one 16px
3853
+ gap between: two tiles need 366px, four need 748px. A set of four stops at 2 between those two
3854
+ widths rather than going to 3. */
3855
+ .fd-stat-grid {
3856
+ container-type: inline-size;
3857
+ }
3858
+ .fd-stat-grid-tiles {
3859
+ display: grid;
3860
+ grid-template-columns: minmax(0, 1fr);
3861
+ gap: 16px;
3862
+ }
3863
+ @container (width >= 366px) {
3864
+ .fd-stat-grid-tiles {
3865
+ grid-template-columns: repeat(2, minmax(0, 1fr));
3866
+ }
3867
+ }
3868
+ @container (width >= 748px) {
3869
+ .fd-stat-grid-tiles[data-columns="4"] {
3870
+ grid-template-columns: repeat(4, minmax(0, 1fr));
3871
+ }
3872
+ }
3847
3873
  /* MP-271 — CardGrid (src/components/layout/CardGrid.tsx). `auto-fill` rather than
3848
3874
  `fd-grid-stats`'s own `auto-fit` above on purpose: a dashboard of Cards should keep a
3849
3875
  consistent card width as the count changes, not stretch a lone card to fill the whole row