@12-apps/payments-frontend 3.27.1 → 3.27.2
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.27.
|
|
3
|
+
"version": "3.27.2",
|
|
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.",
|
|
@@ -51,6 +51,7 @@ export function TenderChoice<T extends string>({
|
|
|
51
51
|
gap: 0.75,
|
|
52
52
|
p: 1.5,
|
|
53
53
|
minHeight: 74,
|
|
54
|
+
container: 'tender-card / inline-size',
|
|
54
55
|
textAlign: 'left',
|
|
55
56
|
borderRadius: CARD_RADIUS,
|
|
56
57
|
border: 1.5,
|
|
@@ -102,6 +103,7 @@ export function PickedTender<T extends string>({
|
|
|
102
103
|
gap: 1,
|
|
103
104
|
p: 1.5,
|
|
104
105
|
minWidth: 0,
|
|
106
|
+
container: 'tender-card / inline-size',
|
|
105
107
|
borderRadius: CARD_RADIUS,
|
|
106
108
|
border: 1.5,
|
|
107
109
|
borderColor: 'primary.main',
|
|
@@ -182,15 +184,34 @@ function AmountField({
|
|
|
182
184
|
);
|
|
183
185
|
}
|
|
184
186
|
|
|
187
|
+
/**
|
|
188
|
+
* The glyph and the name. Side by side on a card with room; on a narrow one
|
|
189
|
+
* (a 320px phone halves to ~88px) the glyph goes on top, beside the remove
|
|
190
|
+
* control, so the name gets the whole width and breaks only between words.
|
|
191
|
+
*/
|
|
185
192
|
function TenderHeading<T extends string>({ tender }: { tender: TenderOption<T> }) {
|
|
186
193
|
return (
|
|
187
|
-
<Box
|
|
194
|
+
<Box
|
|
195
|
+
sx={{
|
|
196
|
+
display: 'flex',
|
|
197
|
+
flexDirection: 'column',
|
|
198
|
+
alignItems: 'flex-start',
|
|
199
|
+
gap: 0.75,
|
|
200
|
+
minWidth: 0,
|
|
201
|
+
'@container tender-card (min-width: 120px)': {
|
|
202
|
+
flexDirection: 'row',
|
|
203
|
+
alignItems: 'center',
|
|
204
|
+
gap: 1,
|
|
205
|
+
pr: 3,
|
|
206
|
+
},
|
|
207
|
+
}}
|
|
208
|
+
>
|
|
188
209
|
{tender.icon === null ? null : (
|
|
189
210
|
<Box component="span" aria-hidden sx={{ display: 'flex', color: 'primary.main' }}>
|
|
190
211
|
{tender.icon}
|
|
191
212
|
</Box>
|
|
192
213
|
)}
|
|
193
|
-
<Typography component="span" sx={{ fontWeight: 500, overflowWrap: '
|
|
214
|
+
<Typography component="span" sx={{ fontWeight: 500, overflowWrap: 'break-word' }}>
|
|
194
215
|
{tender.label}
|
|
195
216
|
</Typography>
|
|
196
217
|
</Box>
|