@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flytedan/flytebot-design-system",
3
- "version": "0.12.8",
3
+ "version": "0.12.9",
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",
@@ -4267,22 +4267,37 @@ button.fd-erow-metric:focus-visible {
4267
4267
  flex-direction: column;
4268
4268
  align-items: stretch;
4269
4269
  }
4270
- /* MP-114: below the same width EntityRow's metric strip stops having room to keep
4271
- every column at the desktop's fixed --erow-metric-w (set so rows line up with a
4272
- multi-digit totals footer, see EntityRowMetrics/.fd-erow-cell above) even each
4273
- cell's own un-wrapped figure (`.fd-erow-metric`'s `white-space: nowrap` makes its
4274
- min-content equal its full width) no longer fits together in the strip, and
4275
- `.fd-erow-metrics`'s `overflow: hidden` was clipping the ones that didn't. A
4276
- stacked phone pane never regains that room, so the fixed-column alignment this
4277
- component is built for is traded, at this width only, for every metric staying a
4278
- whole, readable button: cells size to their own content instead of the desktop
4279
- column width, and the strip wraps instead of clipping. */
4270
+ /* MP-114 (follow-up the `width: auto` version of this rule regressed the
4271
+ alignment it was supposed to preserve): below this width EntityRow's metric strip
4272
+ stops having room to keep every column at the desktop's fixed --erow-metric-w (set
4273
+ so rows line up with a multi-digit totals footer, see EntityRowMetrics/.fd-erow-cell
4274
+ above) even each cell's own un-wrapped figure (`.fd-erow-metric`'s
4275
+ `white-space: nowrap` makes its min-content equal its full width) no longer fits
4276
+ together in the strip, and `.fd-erow-metrics`'s `overflow: hidden` was clipping the
4277
+ ones that didn't.
4278
+ The first fix let `.fd-erow-cell` go `width: auto` but "auto" means "size to your
4279
+ own content", and a row's own figures and TransferList's footer totals almost never
4280
+ have the same digit counts, so the row's strip and the totals strip (the SAME
4281
+ component, at the SAME nominal column widths) drifted apart the moment either one's
4282
+ content did — audience-builder.spec.ts caught this: a row 14px narrower than the
4283
+ totals line under it. A fixed-width cell has to stay fixed-width EVERYWHERE for
4284
+ "the same column lands at the same x on every row and on the totals line" (see
4285
+ .fd-erow-metrics's own comment above) to mean anything, including here. So instead:
4286
+ `flex-shrink: 0` keeps every cell at its exact declared width even when the strip
4287
+ has less room than the three columns need, which the row and the footer both still
4288
+ agree on regardless of what either one's figures say — and `.fd-erow-metrics`
4289
+ scrolls that overflow horizontally instead of clipping it, the same "wide content
4290
+ gets its own scroll container, nothing else has to give" rule DataTable's
4291
+ `.fd-table-wrap` already follows (and the layout auditor already treats an
4292
+ `overflow: auto` ancestor as fine by design). A phone-width row keeps every figure
4293
+ reachable, one swipe away, rather than losing it or drifting out of line with the
4294
+ total it belongs under. */
4280
4295
  .fd-erow-cell {
4281
- width: auto;
4296
+ flex-shrink: 0;
4282
4297
  }
4283
4298
  .fd-erow-metrics {
4284
- flex-wrap: wrap;
4285
- overflow: visible;
4299
+ overflow-x: auto;
4300
+ overflow-y: hidden;
4286
4301
  }
4287
4302
  }
4288
4303
  .fd-tlist-side {