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