@khipu/design-system 0.3.5-alpha.25 → 0.3.5-alpha.27

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-09-29T20:55:12.988Z
18
+ * Generated: 2026-10-02T15:51:02.237Z
19
19
  *
20
20
  * To regenerate:
21
21
  * cd design-system && npm run tokens:generate
@@ -2391,28 +2391,35 @@
2391
2391
  }
2392
2392
 
2393
2393
  /* ========================================
2394
- Google Sign-In Button
2395
- Per Google Identity branding guidelines:
2394
+ SSO Button (federated sign-in: Google, Microsoft, ...)
2395
+ Neutral white button shared by every identity provider, styled per
2396
+ Google Identity branding guidelines, which Microsoft's also satisfy:
2396
2397
  https://developers.google.com/identity/branding-guidelines
2398
+ `.kds-btn-google` / `.kds-google-icon` are kept as aliases for
2399
+ consumers pinned to earlier versions.
2400
+ Colors go through --kds-btn-sso-* so the dark theme swaps all of them
2401
+ together (background alone flipping left the label unreadable).
2397
2402
  ======================================== */
2398
2403
 
2404
+ .kds-theme-root button.kds-btn-sso,
2405
+ .kds-theme-root a.kds-btn-sso,
2399
2406
  .kds-theme-root button.kds-btn-google,
2400
2407
  .kds-theme-root a.kds-btn-google {
2401
2408
  display: inline-flex;
2402
2409
  align-items: center;
2403
2410
  justify-content: center;
2404
- gap: var(--kds-spacing-1-5);
2411
+ gap: var(--kds-spacing-1-25);
2405
2412
  width: 100%;
2406
- background: var(--kds-color-background-paper);
2407
- color: #1F1F1F;
2408
- border: 1px solid #747775;
2413
+ background: var(--kds-btn-sso-bg, #FFFFFF);
2414
+ color: var(--kds-btn-sso-color, #1F1F1F);
2415
+ border: 1px solid var(--kds-btn-sso-border, #747775);
2409
2416
  border-radius: var(--kds-radius-button);
2410
2417
  padding: var(--kds-spacing-1) var(--kds-spacing-1-5);
2411
2418
  min-height: var(--kds-spacing-button-min-height);
2412
- font-family: "Roboto", var(--kds-font-family-secondary);
2419
+ font-family: var(--kds-font-family-secondary);
2413
2420
  font-weight: var(--kds-font-weight-medium);
2414
2421
  font-size: var(--kds-font-size-sm);
2415
- line-height: var(--kds-line-height-normal);
2422
+ line-height: 20px; /* Google 14/20; no line-height token matches */
2416
2423
  letter-spacing: var(--kds-letter-spacing-normal);
2417
2424
  text-transform: none;
2418
2425
  cursor: pointer;
@@ -2422,17 +2429,34 @@
2422
2429
  box-shadow: none;
2423
2430
  }
2424
2431
 
2432
+ .kds-theme-root button.kds-btn-sso:hover,
2433
+ .kds-theme-root a.kds-btn-sso:hover,
2425
2434
  .kds-theme-root button.kds-btn-google:hover,
2426
2435
  .kds-theme-root a.kds-btn-google:hover {
2427
- background: #F2F2F2;
2436
+ background: var(--kds-btn-sso-bg-hover, #F2F2F2);
2428
2437
  box-shadow: var(--kds-shadow-1);
2429
2438
  }
2430
2439
 
2440
+ .kds-theme-root button.kds-btn-sso:active,
2441
+ .kds-theme-root a.kds-btn-sso:active,
2431
2442
  .kds-theme-root button.kds-btn-google:active,
2432
2443
  .kds-theme-root a.kds-btn-google:active {
2433
- background: #E8E8E8;
2444
+ background: var(--kds-btn-sso-bg-active, #E8E8E8);
2434
2445
  }
2435
2446
 
2447
+ /* Dark theme per Google Identity guidelines; hover/active are 8% / 12%
2448
+ state layers of the label color over the fill. */
2449
+ .kds-theme-root [data-theme="dark"] .kds-btn-sso,
2450
+ .kds-theme-root [data-theme="dark"] .kds-btn-google {
2451
+ --kds-btn-sso-bg: #131314;
2452
+ --kds-btn-sso-color: #E3E3E3;
2453
+ --kds-btn-sso-border: #8E918F;
2454
+ --kds-btn-sso-bg-hover: #242425;
2455
+ --kds-btn-sso-bg-active: #2C2C2D;
2456
+ }
2457
+
2458
+ .kds-theme-root button.kds-btn-sso:disabled,
2459
+ .kds-theme-root a.kds-btn-sso:disabled,
2436
2460
  .kds-theme-root button.kds-btn-google:disabled,
2437
2461
  .kds-theme-root a.kds-btn-google:disabled {
2438
2462
  background: var(--kds-color-action-disabled-bg);
@@ -2442,7 +2466,8 @@
2442
2466
  box-shadow: none;
2443
2467
  }
2444
2468
 
2445
- /* Google G icon container - white background per guidelines */
2469
+ /* Provider logo container */
2470
+ .kds-theme-root .kds-btn-sso .kds-sso-icon,
2446
2471
  .kds-theme-root .kds-btn-google .kds-google-icon {
2447
2472
  display: flex;
2448
2473
  align-items: center;
@@ -2450,6 +2475,7 @@
2450
2475
  flex-shrink: 0;
2451
2476
  }
2452
2477
 
2478
+ .kds-theme-root .kds-btn-sso .kds-sso-icon svg,
2453
2479
  .kds-theme-root .kds-btn-google .kds-google-icon svg {
2454
2480
  width: var(--kds-spacing-button-icon-size);
2455
2481
  height: var(--kds-spacing-button-icon-size);
@@ -6708,6 +6734,15 @@
6708
6734
  font-size: var(--kds-font-size-xl);
6709
6735
  }
6710
6736
 
6737
+ /* Inline without description: the title is the only thing next to the icon. Its
6738
+ margin-bottom (spacing-1, which separates it from the description in the centered
6739
+ variant) made the column taller, so align-items:center left the text ~4px above the
6740
+ icon's center. */
6741
+ .kds-theme-root .kds-status-block.inline .kds-status-block-title:last-child {
6742
+ margin-bottom: 0;
6743
+ --kds-typography-h2-margin-block-end: 0;
6744
+ }
6745
+
6711
6746
  /* Banda: el bloque de estado sobre una superficie sutil, para cuando acompaña
6712
6747
  al contenido en lugar de encabezar la pantalla. Va después de `.inline`
6713
6748
  porque marca igual en especificidad y necesita ganarle el padding. */