@ciromaciel/auth-react 1.7.0 → 1.7.1

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.esm.js CHANGED
@@ -4672,6 +4672,9 @@ function UserInformation({
4672
4672
  });
4673
4673
  }
4674
4674
 
4675
+ // "12.400 de 60.000 páginas", not "12400 de 60000": the History counts pages in the thousands.
4676
+ const formatCount = value => Number(value).toLocaleString('pt-BR');
4677
+
4675
4678
  /** The organization, the role and the plan's usage, on the alternate surface. */
4676
4679
  function ContextStrip({
4677
4680
  organization,
@@ -4771,7 +4774,7 @@ function ContextStrip({
4771
4774
  fz: 12,
4772
4775
  fw: isFull ? 700 : 500,
4773
4776
  c: isFull ? 'red.8' : 'gray.6',
4774
- children: `${plan.used} de ${plan.limit}${plan.unit ? ` ${plan.unit}` : ''}${isFull && !limitNoticeOnTop ? ' · limite atingido' : ''}`
4777
+ children: `${formatCount(plan.used)} de ${formatCount(plan.limit)}${plan.unit ? ` ${plan.unit}` : ''}${isFull && !limitNoticeOnTop ? ' · limite atingido' : ''}`
4775
4778
  }), showsInvite && /*#__PURE__*/jsx(UnstyledButton, {
4776
4779
  onClick: plan.onClick,
4777
4780
  fz: 11,