@12-apps/payments-frontend 3.48.0 → 3.48.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@12-apps/payments-frontend",
3
- "version": "3.48.0",
3
+ "version": "3.48.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Browser half of the vendor-agnostic payments platform: plug-and-play MUI components for the per-provider settings page (credential form from each provider's schema, masked hints, verify/enable) and the checkout page (PIX QR + polling, card tokenization, hosted-checkout redirect), plus the headless hooks and fetch clients they build on. Talks only to the host's payments HTTP surface — never to a provider directly. Microfrontend-ready: no app coupling, host injects theme and auth.",
@@ -50,13 +50,22 @@ const DONE_PATH = 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2
50
50
  const PENDING_PATH =
51
51
  'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8';
52
52
 
53
- /** Shape, not only colour, tells the three states apart. */
53
+ /**
54
+ * Shape, not only colour, tells the three states apart. The spinner and the
55
+ * bar take the ink, never the theme's primary: on a staff screen whose primary
56
+ * is red they would read as a failure beside the green checks.
57
+ */
54
58
  function StepMark({ state }: { state: 'done' | 'current' | 'pending' }): ReactNode {
55
- if (state === 'current') return <CircularProgress size={18} thickness={5} />;
56
59
  return (
57
- <SvgIcon fontSize="small" color={state === 'done' ? 'success' : 'disabled'}>
58
- <path d={state === 'done' ? DONE_PATH : PENDING_PATH} />
59
- </SvgIcon>
60
+ <Box sx={{ width: 20, height: 20, flexShrink: 0, display: 'grid', placeItems: 'center' }}>
61
+ {state === 'current' ? (
62
+ <CircularProgress size={18} thickness={5} color="inherit" sx={{ color: 'text.primary' }} />
63
+ ) : (
64
+ <SvgIcon fontSize="small" sx={{ color: state === 'done' ? 'success.main' : 'text.secondary' }}>
65
+ <path d={state === 'done' ? DONE_PATH : PENDING_PATH} />
66
+ </SvgIcon>
67
+ )}
68
+ </Box>
60
69
  );
61
70
  }
62
71
 
@@ -85,7 +94,13 @@ export function EvidenceProgress({ phase, section, full, walletResults }: Eviden
85
94
  return (
86
95
  <Stack spacing={1} role="status" aria-busy="true" data-testid="evidence-phase">
87
96
  <Typography variant="body2">{copy.phases[phase]}</Typography>
88
- <LinearProgress variant="determinate" value={(at / steps.length) * 100} aria-label={copy.steps.label} />
97
+ <LinearProgress
98
+ variant="determinate"
99
+ value={(at / steps.length) * 100}
100
+ aria-label={copy.steps.label}
101
+ color="inherit"
102
+ sx={{ color: 'text.primary' }}
103
+ />
89
104
  {full ? (
90
105
  <Box component="ol" sx={{ m: 0, p: 0, listStyle: 'none', display: 'grid', gap: 0.5 }} data-testid="evidence-steps">
91
106
  {steps.map((step, index) => {
@@ -128,7 +128,7 @@ export const EN_US_PLATFORM_HOMOLOGACAO_COPY: PlatformHomologacaoCopy = {
128
128
  phases: {
129
129
  preparing: 'Consulting the application, renewing the token and minting the public key and the 3DS session…',
130
130
  encrypting: 'Encrypting the test cards and authenticating the debit card (3DS) in the browser…',
131
- running: 'Creating the Pix, credit, debit and wallet orders in the sandbox — this can take a few minutes…',
131
+ running: 'Creating the orders in the sandbox — this can take a few minutes…',
132
132
  downloading: 'Building the file…',
133
133
  },
134
134
  steps: {
@@ -109,7 +109,7 @@ export const PT_BR_PLATFORM_HOMOLOGACAO_COPY: PlatformHomologacaoCopy = {
109
109
  phases: {
110
110
  preparing: 'Consultando a aplicação, renovando o token e gerando a chave pública e a sessão 3DS…',
111
111
  encrypting: 'Criptografando os cartões de teste e autenticando o cartão de débito (3DS) no navegador…',
112
- running: 'Criando os pedidos Pix, crédito, débito e carteiras no sandbox — pode levar alguns minutos…',
112
+ running: 'Criando os pedidos no sandbox — pode levar alguns minutos…',
113
113
  downloading: 'Montando o arquivo…',
114
114
  },
115
115
  steps: {