@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.
@@ -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-09-29T20:55:12.988Z
16
+ * Generated: 2026-10-02T15:51:02.237Z
17
17
  *
18
18
  * To regenerate:
19
19
  * cd design-system && npm run tokens:generate
@@ -2389,28 +2389,35 @@ button.kds-locale-switcher-toggle:hover,
2389
2389
  }
2390
2390
 
2391
2391
  /* ========================================
2392
- Google Sign-In Button
2393
- Per Google Identity branding guidelines:
2392
+ SSO Button (federated sign-in: Google, Microsoft, ...)
2393
+ Neutral white button shared by every identity provider, styled per
2394
+ Google Identity branding guidelines, which Microsoft's also satisfy:
2394
2395
  https://developers.google.com/identity/branding-guidelines
2396
+ `.kds-btn-google` / `.kds-google-icon` are kept as aliases for
2397
+ consumers pinned to earlier versions.
2398
+ Colors go through --kds-btn-sso-* so the dark theme swaps all of them
2399
+ together (background alone flipping left the label unreadable).
2395
2400
  ======================================== */
2396
2401
 
2402
+ button.kds-btn-sso,
2403
+ a.kds-btn-sso,
2397
2404
  button.kds-btn-google,
2398
2405
  a.kds-btn-google {
2399
2406
  display: inline-flex;
2400
2407
  align-items: center;
2401
2408
  justify-content: center;
2402
- gap: var(--kds-spacing-1-5);
2409
+ gap: var(--kds-spacing-1-25);
2403
2410
  width: 100%;
2404
- background: var(--kds-color-background-paper);
2405
- color: #1F1F1F;
2406
- border: 1px solid #747775;
2411
+ background: var(--kds-btn-sso-bg, #FFFFFF);
2412
+ color: var(--kds-btn-sso-color, #1F1F1F);
2413
+ border: 1px solid var(--kds-btn-sso-border, #747775);
2407
2414
  border-radius: var(--kds-radius-button);
2408
2415
  padding: var(--kds-spacing-1) var(--kds-spacing-1-5);
2409
2416
  min-height: var(--kds-spacing-button-min-height);
2410
- font-family: "Roboto", var(--kds-font-family-secondary);
2417
+ font-family: var(--kds-font-family-secondary);
2411
2418
  font-weight: var(--kds-font-weight-medium);
2412
2419
  font-size: var(--kds-font-size-sm);
2413
- line-height: var(--kds-line-height-normal);
2420
+ line-height: 20px; /* Google 14/20; no line-height token matches */
2414
2421
  letter-spacing: var(--kds-letter-spacing-normal);
2415
2422
  text-transform: none;
2416
2423
  cursor: pointer;
@@ -2420,17 +2427,34 @@ a.kds-btn-google {
2420
2427
  box-shadow: none;
2421
2428
  }
2422
2429
 
2430
+ button.kds-btn-sso:hover,
2431
+ a.kds-btn-sso:hover,
2423
2432
  button.kds-btn-google:hover,
2424
2433
  a.kds-btn-google:hover {
2425
- background: #F2F2F2;
2434
+ background: var(--kds-btn-sso-bg-hover, #F2F2F2);
2426
2435
  box-shadow: var(--kds-shadow-1);
2427
2436
  }
2428
2437
 
2438
+ button.kds-btn-sso:active,
2439
+ a.kds-btn-sso:active,
2429
2440
  button.kds-btn-google:active,
2430
2441
  a.kds-btn-google:active {
2431
- background: #E8E8E8;
2442
+ background: var(--kds-btn-sso-bg-active, #E8E8E8);
2432
2443
  }
2433
2444
 
2445
+ /* Dark theme per Google Identity guidelines; hover/active are 8% / 12%
2446
+ state layers of the label color over the fill. */
2447
+ [data-theme="dark"] .kds-btn-sso,
2448
+ [data-theme="dark"] .kds-btn-google {
2449
+ --kds-btn-sso-bg: #131314;
2450
+ --kds-btn-sso-color: #E3E3E3;
2451
+ --kds-btn-sso-border: #8E918F;
2452
+ --kds-btn-sso-bg-hover: #242425;
2453
+ --kds-btn-sso-bg-active: #2C2C2D;
2454
+ }
2455
+
2456
+ button.kds-btn-sso:disabled,
2457
+ a.kds-btn-sso:disabled,
2434
2458
  button.kds-btn-google:disabled,
2435
2459
  a.kds-btn-google:disabled {
2436
2460
  background: var(--kds-color-action-disabled-bg);
@@ -2440,7 +2464,8 @@ a.kds-btn-google:disabled {
2440
2464
  box-shadow: none;
2441
2465
  }
2442
2466
 
2443
- /* Google G icon container - white background per guidelines */
2467
+ /* Provider logo container */
2468
+ .kds-btn-sso .kds-sso-icon,
2444
2469
  .kds-btn-google .kds-google-icon {
2445
2470
  display: flex;
2446
2471
  align-items: center;
@@ -2448,6 +2473,7 @@ a.kds-btn-google:disabled {
2448
2473
  flex-shrink: 0;
2449
2474
  }
2450
2475
 
2476
+ .kds-btn-sso .kds-sso-icon svg,
2451
2477
  .kds-btn-google .kds-google-icon svg {
2452
2478
  width: var(--kds-spacing-button-icon-size);
2453
2479
  height: var(--kds-spacing-button-icon-size);
@@ -6708,6 +6734,15 @@ button.kds-fab:active:not(:disabled) {
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-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. */