analytica-frontend-lib 1.0.41 → 1.0.42

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.mjs CHANGED
@@ -1585,11 +1585,13 @@ var SIZE_CLASSES8 = {
1585
1585
  textWeight: "medium",
1586
1586
  // font-weight: 500
1587
1587
  labelSize: "2xs",
1588
- // 10px for status label (closest to 8px design spec)
1588
+ // Will be overridden with custom 8px in className
1589
1589
  labelWeight: "bold",
1590
1590
  // font-weight: 700
1591
- spacing: "gap-1"
1592
- // 4px gap between percentage and label
1591
+ spacing: "gap-0",
1592
+ // Reduced gap between percentage and label for better spacing
1593
+ contentWidth: "max-w-[50px]"
1594
+ // Reduced width to fit text inside circle
1593
1595
  },
1594
1596
  medium: {
1595
1597
  container: "w-[152px] h-[152px]",
@@ -1604,8 +1606,10 @@ var SIZE_CLASSES8 = {
1604
1606
  // 12px for status label (font-size: 12px)
1605
1607
  labelWeight: "medium",
1606
1608
  // font-weight: 500 (changed from bold)
1607
- spacing: "gap-1"
1609
+ spacing: "gap-1",
1608
1610
  // 4px gap between percentage and label
1611
+ contentWidth: "max-w-[90px]"
1612
+ // Reduced width to fit text inside circle
1609
1613
  }
1610
1614
  };
1611
1615
  var VARIANT_CLASSES3 = {
@@ -1705,14 +1709,14 @@ var ProgressCircle = ({
1705
1709
  /* @__PURE__ */ jsxs14(
1706
1710
  "div",
1707
1711
  {
1708
- className: `relative z-10 flex flex-col items-center justify-center ${sizeClasses.spacing}`,
1712
+ className: `relative z-10 flex flex-col items-center justify-center ${sizeClasses.spacing} ${sizeClasses.contentWidth}`,
1709
1713
  children: [
1710
1714
  showPercentage && /* @__PURE__ */ jsxs14(
1711
1715
  Text_default,
1712
1716
  {
1713
1717
  size: sizeClasses.textSize,
1714
1718
  weight: sizeClasses.textWeight,
1715
- className: `text-center ${variantClasses.textColor} ${percentageClassName}`,
1719
+ className: `text-center w-full ${variantClasses.textColor} ${percentageClassName}`,
1716
1720
  children: [
1717
1721
  Math.round(percentage),
1718
1722
  "%"
@@ -1725,7 +1729,7 @@ var ProgressCircle = ({
1725
1729
  as: "span",
1726
1730
  size: sizeClasses.labelSize,
1727
1731
  weight: sizeClasses.labelWeight,
1728
- className: `${variantClasses.labelColor} text-center uppercase tracking-wide ${labelClassName}`,
1732
+ className: `${variantClasses.labelColor} text-center uppercase tracking-wide truncate w-full ${size === "small" ? "text-[8px] leading-[9px]" : ""} ${labelClassName}`,
1729
1733
  children: label
1730
1734
  }
1731
1735
  )