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