@ai-matrx/design-system 0.61.22 → 0.61.23

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
@@ -724,6 +724,7 @@ function findPillViolation(el, maxWidth = PILL_MAX_WIDTH_PX) {
724
724
  if (lines > 1) {
725
725
  return `pill wraps to ${lines} lines holding "${describe(el)}" \u2014 a pill is one line: clamp it (Badge, or truncate + max-w + title) or render a list row.`;
726
726
  }
727
+ if (Math.abs(rect.width - rect.height) < 1) return null;
727
728
  const slack = stretchSlack(el, own, cs, rect.width, view);
728
729
  if (slack !== null && slack > PILL_STRETCH_TOLERANCE_PX) {
729
730
  return `pill is stretched: ${Math.round(slack)}px of empty capsule beside "${describe(el)}" \u2014 a pill hugs its label; stop the parent stretching it (a grid cell: justify-self-start; drop w-full / flex-1), or render a full-width tappable item as a row, never a pill.`;