@khipu/design-system 0.3.5-alpha.41 → 0.3.5-alpha.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.
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
15
15
  * Source: design-system/src/tokens/tokens.json
16
- * Generated: 2026-11-06T17:15:00.804Z
16
+ * Generated: 2026-11-10T14:46:07.507Z
17
17
  *
18
18
  * To regenerate:
19
19
  * cd design-system && npm run tokens:generate
@@ -9211,41 +9211,213 @@ svg[fill='none'] {
9211
9211
  min-height: calc(36rem + 2 * var(--kds-spacing-3));
9212
9212
  }
9213
9213
 
9214
- /* Mínimo del card en pantallas bajas. Algunos comercios embeben el flujo en iframes de alto
9215
- fijo y reducido: un mínimo de 624px obligaba a scrollear aunque el contenido del paso
9216
- cupiera. Regla: un escalón aplica solo si la pantalla completa (header + card con ese
9217
- mínimo + footer seguro + márgenes del stage) cabe en el alto; si no, baja al siguiente.
9218
- Medido en khenshin-web con su .kds-secure-footer (80px), el caso más alto:
9219
- - 624px (36rem + padding): pantalla de ~971px en teléfono y ~999px en desktop.
9220
- - 400px (22rem + padding): pantalla de ~747px en teléfono y ~775px en desktop.
9221
- - Debajo de eso, sin mínimo: el card mide lo que su contenido.
9222
- Los umbrales son exactamente esos altos (como los mide el HeightReporter de khenshin-web:
9223
- contenido del flow + padding del stage), sin holgura: el mínimo nunca agrega scroll en
9224
- una pantalla o iframe fijo. Con alto automático (KTUF-239, `autoHeight`) el alto que
9225
- resulta de un escalón cae justo en su umbral, así que se queda ahí y no oscila. Con un
9226
- header más bajo (sin fila de detalle), sin footer seguro (`showSecureFooter: false`) o
9227
- sin header (--flush-top) la pantalla mide menos que su umbral: con alto automático el card
9228
- termina sin mínimo (vuelve a crecer por paso, sin scroll). */
9214
+ /* Mínimo del card en pantallas bajas (KTUF-476, recalibra KTUF-389/390). Algunos comercios
9215
+ embeben el flujo en iframes de alto fijo y reducido: un mínimo de 624px obligaba a
9216
+ scrollear aunque el contenido del paso cupiera. Regla: un escalón aplica solo si la
9217
+ pantalla completa (header + card con ese mínimo + footer seguro + márgenes del stage)
9218
+ cabe en el alto; si no, baja al siguiente. Igual que antes, son valores fijos sin vh/dvh
9219
+ (ver comentario de arriba: con `autoHeight` un mínimo relativo al viewport se realimenta),
9220
+ y los umbrales son exactamente esos altos, sin holgura.
9221
+
9222
+ Dos cambios sobre KTUF-389/390:
9223
+
9224
+ 1. Escalón intermedio (528px = 30rem + padding) entre 624 y 400: el salto de un escalón al
9225
+ otro bajaba 224px de una vez; con el intermedio baja en dos pasos de ~96-128px.
9226
+
9227
+ 2. Umbral por configuración real de chrome, no un solo valor asumiendo siempre header +
9228
+ footer seguro. Medido en khenshin-web (storybook, KTUF-476): el header con el detalle
9229
+ del cobro mide ~177px (añade ~201px contando el gap que introduce), el
9230
+ `.kds-secure-footer` mide 80px (su margen negativo cancela el gap, así que suma
9231
+ exactamente eso). `.kds-screen:has(...)` detecta en qué pantallas aplica cada caso:
9232
+ pasos de formulario (header + footer), resultados (`--flush-top`, sin header, con
9233
+ footer) y el loader inicial (sin header ni footer). La tabla de umbrales (px de alto
9234
+ total de pantalla, redondeados a .98 para el corte exacto):
9235
+
9236
+ Config | overhead | 624→528 | 528→400 | 400→0
9237
+ ----------------------------|----------|---------|---------|------
9238
+ header + footer (teléfono) | 347 | 971 | 875 | 747
9239
+ header + footer (desktop) | 375 | 999 | 903 | 775
9240
+ sin header, con footer (tel)| 146 | 770 | 674 | 546
9241
+ sin header, con footer (esc)| 174 | 798 | 702 | 574
9242
+ con header, sin footer (tel)| 267 | 891 | 795 | 667
9243
+ con header, sin footer (esc)| 295 | 919 | 823 | 695
9244
+ sin header, sin footer (tel)| 66 | 690 | 594 | 466
9245
+ sin header, sin footer (esc)| 94 | 718 | 622 | 494
9246
+
9247
+ Con alto automático (`autoHeight`) el alto que resulta de un escalón cae justo en su
9248
+ umbral, así que se queda ahí y no oscila, igual que antes. */
9249
+
9250
+ /* --- Config base: header + footer (igual que KTUF-389/390, con el escalón nuevo). Gateada
9251
+ igual que las otras tres: si no, al no matchear por alto una config más específica (B/C/D),
9252
+ esta regla —al ser menos específica pero igual de genérica en el selector— se aplicaría
9253
+ de todos modos a sus pantallas, pisando el umbral que les corresponde. */
9229
9254
  @media (max-width: 767px) and (max-height: 970.98px) {
9230
- .kds-screen > .kds-card-elevated.kds-card-elevated--action {
9255
+ .kds-screen:has(.kds-invoice-sticky-wrap):has(> .kds-secure-footer)
9256
+ > .kds-card-elevated.kds-card-elevated--action {
9257
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9258
+ }
9259
+ }
9260
+
9261
+ @media (max-width: 767px) and (max-height: 874.98px) {
9262
+ .kds-screen:has(.kds-invoice-sticky-wrap):has(> .kds-secure-footer)
9263
+ > .kds-card-elevated.kds-card-elevated--action {
9231
9264
  min-height: calc(22rem + 2 * var(--kds-spacing-3));
9232
9265
  }
9233
9266
  }
9234
9267
 
9235
9268
  @media (max-width: 767px) and (max-height: 746.98px) {
9236
- .kds-screen > .kds-card-elevated.kds-card-elevated--action {
9269
+ .kds-screen:has(.kds-invoice-sticky-wrap):has(> .kds-secure-footer)
9270
+ > .kds-card-elevated.kds-card-elevated--action {
9237
9271
  min-height: 0;
9238
9272
  }
9239
9273
  }
9240
9274
 
9241
9275
  @media (min-width: 768px) and (max-height: 998.98px) {
9242
- .kds-screen > .kds-card-elevated.kds-card-elevated--action {
9276
+ .kds-screen:has(.kds-invoice-sticky-wrap):has(> .kds-secure-footer)
9277
+ > .kds-card-elevated.kds-card-elevated--action {
9278
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9279
+ }
9280
+ }
9281
+
9282
+ @media (min-width: 768px) and (max-height: 902.98px) {
9283
+ .kds-screen:has(.kds-invoice-sticky-wrap):has(> .kds-secure-footer)
9284
+ > .kds-card-elevated.kds-card-elevated--action {
9243
9285
  min-height: calc(22rem + 2 * var(--kds-spacing-3));
9244
9286
  }
9245
9287
  }
9246
9288
 
9247
9289
  @media (min-width: 768px) and (max-height: 774.98px) {
9248
- .kds-screen > .kds-card-elevated.kds-card-elevated--action {
9290
+ .kds-screen:has(.kds-invoice-sticky-wrap):has(> .kds-secure-footer)
9291
+ > .kds-card-elevated.kds-card-elevated--action {
9292
+ min-height: 0;
9293
+ }
9294
+ }
9295
+
9296
+ /* --- Config: sin header (--flush-top), con footer — resultados (éxito, falla, timeout) --- */
9297
+ @media (max-width: 767px) and (max-height: 769.98px) {
9298
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):has(> .kds-secure-footer)
9299
+ > .kds-card-elevated.kds-card-elevated--action {
9300
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9301
+ }
9302
+ }
9303
+
9304
+ @media (max-width: 767px) and (max-height: 673.98px) {
9305
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):has(> .kds-secure-footer)
9306
+ > .kds-card-elevated.kds-card-elevated--action {
9307
+ min-height: calc(22rem + 2 * var(--kds-spacing-3));
9308
+ }
9309
+ }
9310
+
9311
+ @media (max-width: 767px) and (max-height: 545.98px) {
9312
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):has(> .kds-secure-footer)
9313
+ > .kds-card-elevated.kds-card-elevated--action {
9314
+ min-height: 0;
9315
+ }
9316
+ }
9317
+
9318
+ @media (min-width: 768px) and (max-height: 797.98px) {
9319
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):has(> .kds-secure-footer)
9320
+ > .kds-card-elevated.kds-card-elevated--action {
9321
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9322
+ }
9323
+ }
9324
+
9325
+ @media (min-width: 768px) and (max-height: 701.98px) {
9326
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):has(> .kds-secure-footer)
9327
+ > .kds-card-elevated.kds-card-elevated--action {
9328
+ min-height: calc(22rem + 2 * var(--kds-spacing-3));
9329
+ }
9330
+ }
9331
+
9332
+ @media (min-width: 768px) and (max-height: 573.98px) {
9333
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):has(> .kds-secure-footer)
9334
+ > .kds-card-elevated.kds-card-elevated--action {
9335
+ min-height: 0;
9336
+ }
9337
+ }
9338
+
9339
+ /* --- Config: con header, sin footer (`showSecureFooter: false`) --- */
9340
+ @media (max-width: 767px) and (max-height: 890.98px) {
9341
+ .kds-screen:has(.kds-invoice-sticky-wrap):not(:has(> .kds-secure-footer))
9342
+ > .kds-card-elevated.kds-card-elevated--action {
9343
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9344
+ }
9345
+ }
9346
+
9347
+ @media (max-width: 767px) and (max-height: 794.98px) {
9348
+ .kds-screen:has(.kds-invoice-sticky-wrap):not(:has(> .kds-secure-footer))
9349
+ > .kds-card-elevated.kds-card-elevated--action {
9350
+ min-height: calc(22rem + 2 * var(--kds-spacing-3));
9351
+ }
9352
+ }
9353
+
9354
+ @media (max-width: 767px) and (max-height: 666.98px) {
9355
+ .kds-screen:has(.kds-invoice-sticky-wrap):not(:has(> .kds-secure-footer))
9356
+ > .kds-card-elevated.kds-card-elevated--action {
9357
+ min-height: 0;
9358
+ }
9359
+ }
9360
+
9361
+ @media (min-width: 768px) and (max-height: 918.98px) {
9362
+ .kds-screen:has(.kds-invoice-sticky-wrap):not(:has(> .kds-secure-footer))
9363
+ > .kds-card-elevated.kds-card-elevated--action {
9364
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9365
+ }
9366
+ }
9367
+
9368
+ @media (min-width: 768px) and (max-height: 822.98px) {
9369
+ .kds-screen:has(.kds-invoice-sticky-wrap):not(:has(> .kds-secure-footer))
9370
+ > .kds-card-elevated.kds-card-elevated--action {
9371
+ min-height: calc(22rem + 2 * var(--kds-spacing-3));
9372
+ }
9373
+ }
9374
+
9375
+ @media (min-width: 768px) and (max-height: 694.98px) {
9376
+ .kds-screen:has(.kds-invoice-sticky-wrap):not(:has(> .kds-secure-footer))
9377
+ > .kds-card-elevated.kds-card-elevated--action {
9378
+ min-height: 0;
9379
+ }
9380
+ }
9381
+
9382
+ /* --- Config: sin header ni footer — loader inicial (--flush-top, showPoweredBy: false) --- */
9383
+ @media (max-width: 767px) and (max-height: 689.98px) {
9384
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):not(:has(> .kds-secure-footer))
9385
+ > .kds-card-elevated.kds-card-elevated--action {
9386
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9387
+ }
9388
+ }
9389
+
9390
+ @media (max-width: 767px) and (max-height: 593.98px) {
9391
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):not(:has(> .kds-secure-footer))
9392
+ > .kds-card-elevated.kds-card-elevated--action {
9393
+ min-height: calc(22rem + 2 * var(--kds-spacing-3));
9394
+ }
9395
+ }
9396
+
9397
+ @media (max-width: 767px) and (max-height: 465.98px) {
9398
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):not(:has(> .kds-secure-footer))
9399
+ > .kds-card-elevated.kds-card-elevated--action {
9400
+ min-height: 0;
9401
+ }
9402
+ }
9403
+
9404
+ @media (min-width: 768px) and (max-height: 717.98px) {
9405
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):not(:has(> .kds-secure-footer))
9406
+ > .kds-card-elevated.kds-card-elevated--action {
9407
+ min-height: calc(30rem + 2 * var(--kds-spacing-3));
9408
+ }
9409
+ }
9410
+
9411
+ @media (min-width: 768px) and (max-height: 621.98px) {
9412
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):not(:has(> .kds-secure-footer))
9413
+ > .kds-card-elevated.kds-card-elevated--action {
9414
+ min-height: calc(22rem + 2 * var(--kds-spacing-3));
9415
+ }
9416
+ }
9417
+
9418
+ @media (min-width: 768px) and (max-height: 493.98px) {
9419
+ .kds-screen:not(:has(.kds-invoice-sticky-wrap)):not(:has(> .kds-secure-footer))
9420
+ > .kds-card-elevated.kds-card-elevated--action {
9249
9421
  min-height: 0;
9250
9422
  }
9251
9423
  }