@khipu/design-system 0.2.0-alpha.5 → 0.2.0-alpha.51

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/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
- import * as Select from '@radix-ui/react-select';
5
4
  export { clsx } from 'clsx';
6
5
 
7
6
  interface KdsThemeProviderProps {
@@ -239,6 +238,7 @@ declare const colors: {
239
238
  main: string;
240
239
  light: string;
241
240
  dark: string;
241
+ warm: string;
242
242
  container: string;
243
243
  contrastText: string;
244
244
  };
@@ -255,6 +255,7 @@ declare const colors: {
255
255
  main: string;
256
256
  light: string;
257
257
  dark: string;
258
+ blue: string;
258
259
  container: string;
259
260
  contrastText: string;
260
261
  };
@@ -376,6 +377,7 @@ declare const fontSizes: {
376
377
  readonly '2xl': "1.5rem";
377
378
  readonly '3xl': "1.875rem";
378
379
  readonly '4xl': "2.25rem";
380
+ readonly decimalSup: "0.5em";
379
381
  };
380
382
  declare const lineHeights: {
381
383
  readonly tight: 1.2;
@@ -694,6 +696,7 @@ declare const tokensByMode: {
694
696
  main: string;
695
697
  light: string;
696
698
  dark: string;
699
+ warm: string;
697
700
  container: string;
698
701
  contrastText: string;
699
702
  };
@@ -710,6 +713,7 @@ declare const tokensByMode: {
710
713
  main: string;
711
714
  light: string;
712
715
  dark: string;
716
+ blue: string;
713
717
  container: string;
714
718
  contrastText: string;
715
719
  };
@@ -831,6 +835,7 @@ declare const tokensByMode: {
831
835
  readonly '2xl': "1.5rem";
832
836
  readonly '3xl': "1.875rem";
833
837
  readonly '4xl': "2.25rem";
838
+ readonly decimalSup: "0.5em";
834
839
  };
835
840
  readonly lineHeights: {
836
841
  readonly tight: 1.2;
@@ -1285,6 +1290,7 @@ declare const tokensByMode: {
1285
1290
  main: string;
1286
1291
  light: string;
1287
1292
  dark: string;
1293
+ warm: string;
1288
1294
  container: string;
1289
1295
  contrastText: string;
1290
1296
  };
@@ -1301,6 +1307,7 @@ declare const tokensByMode: {
1301
1307
  main: string;
1302
1308
  light: string;
1303
1309
  dark: string;
1310
+ blue: string;
1304
1311
  container: string;
1305
1312
  contrastText: string;
1306
1313
  };
@@ -1420,6 +1427,7 @@ declare const tokensByMode: {
1420
1427
  readonly '2xl': "1.5rem";
1421
1428
  readonly '3xl': "1.875rem";
1422
1429
  readonly '4xl': "2.25rem";
1430
+ readonly decimalSup: "0.5em";
1423
1431
  };
1424
1432
  readonly lineHeights: {
1425
1433
  readonly tight: 1.2;
@@ -1881,6 +1889,7 @@ declare const tokens: {
1881
1889
  main: string;
1882
1890
  light: string;
1883
1891
  dark: string;
1892
+ warm: string;
1884
1893
  container: string;
1885
1894
  contrastText: string;
1886
1895
  };
@@ -1897,6 +1906,7 @@ declare const tokens: {
1897
1906
  main: string;
1898
1907
  light: string;
1899
1908
  dark: string;
1909
+ blue: string;
1900
1910
  container: string;
1901
1911
  contrastText: string;
1902
1912
  };
@@ -2018,6 +2028,7 @@ declare const tokens: {
2018
2028
  readonly '2xl': "1.5rem";
2019
2029
  readonly '3xl': "1.875rem";
2020
2030
  readonly '4xl': "2.25rem";
2031
+ readonly decimalSup: "0.5em";
2021
2032
  };
2022
2033
  readonly lineHeights: {
2023
2034
  readonly tight: 1.2;
@@ -2475,7 +2486,7 @@ type Typography = typeof typography;
2475
2486
  * Matches the Figma design: Pagos Automáticos - MUI v610
2476
2487
  */
2477
2488
 
2478
- type KdsButtonVariant = 'primary' | 'secondary' | 'outlined' | 'outlined-white' | 'text' | 'success';
2489
+ type KdsButtonVariant = 'primary' | 'secondary' | 'outlined' | 'outlined-white' | 'text' | 'success' | 'warning' | 'error' | 'error-text';
2479
2490
  type KdsButtonSize = 'sm' | 'md';
2480
2491
  interface KdsButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
2481
2492
  /** Visual style variant */
@@ -2496,6 +2507,10 @@ interface KdsButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonE
2496
2507
  *
2497
2508
  * Built with native HTML and kds-* CSS classes from the BeerCSS bundle.
2498
2509
  *
2510
+ * Compose with: para apilar CTAs al pie de una card, envolver en
2511
+ * `.kds-btn-stack` (NO usar gap/margin inline) — primario arriba, outlined
2512
+ * debajo, todos `fullWidth`. Ver `Patterns/CSS-only → ButtonStack`.
2513
+ *
2499
2514
  * @example
2500
2515
  * ```tsx
2501
2516
  * <KdsButton variant="primary">
@@ -2524,121 +2539,96 @@ declare const KdsButton: React__default.ForwardRefExoticComponent<KdsButtonProps
2524
2539
  /**
2525
2540
  * Khipu Design System - TextField Component
2526
2541
  *
2527
- * A text input component built with native HTML and BeerCSS floating labels.
2528
- * Matches the Figma design: Pagos Automáticos - MUI v610
2542
+ * Matchea exactamente el markup que genera `matFieldImpl()` del taglib `mat:textField` de payment:
2543
+ *
2544
+ * <div class="field label border [prefix] [suffix] [invalid|valid|info|warning]">
2545
+ * <i class="material-symbols-outlined">prefixIcon</i> // si startIcon
2546
+ * <input type="..." id="..." name="..." value="..." placeholder=" " [required] [disabled]>
2547
+ * <label for="...">Label [*]</label>
2548
+ * <i class="material-symbols-outlined">suffixIcon</i> // si endIcon
2549
+ * <span class="helper">errorMessage o help</span> // si helperText
2550
+ * </div>
2551
+ *
2552
+ * Reglas críticas del truco floating-label de BeerCSS:
2553
+ * - `placeholder=" "` (un espacio) — NUNCA aceptar placeholder real del consumidor.
2554
+ * BeerCSS usa `input:placeholder-shown ~ label` para mantener la label abajo cuando el input
2555
+ * está vacío. Si pasas un placeholder real, el label se queda siempre arriba y se superpone.
2556
+ * - El wrapper DEBE tener `.prefix` cuando hay icono al inicio (alinea la label al lado del icono).
2557
+ * - El wrapper DEBE tener `.suffix` cuando hay icono al final.
2558
+ *
2559
+ * Variante `revealable` (campo de contraseña con mostrar/ocultar):
2560
+ * - El toggle es un `<a role="button">` — BeerCSS posiciona como icono del field a
2561
+ * `:is(i, img, svg, progress.circle, a)` y da `pointer-events: all` solo a `<a>`/`.front`,
2562
+ * así que el anchor es el elemento interactivo idiomático del field (no `<button>`).
2563
+ *
2564
+ * @gsp `mat:textField`, `mat:emailField`, `mat:passwordField`, `mat:numberField` (taglib `matFieldImpl`)
2529
2565
  */
2530
2566
 
2531
- interface KdsTextFieldProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'size'> {
2532
- /** Label text for the field */
2567
+ interface KdsTextFieldProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'size' | 'placeholder'> {
2568
+ /** Floating label. */
2533
2569
  label: string;
2534
- /** Helper text shown below field (error or info) */
2570
+ /** Helper text bajo el field (error o info). */
2535
2571
  helperText?: string;
2536
- /** Error state - applies invalid class and red styling */
2572
+ /** Estado inválido aplica `.invalid` al wrapper. */
2537
2573
  error?: boolean;
2538
- /** Full width field (default: true) */
2574
+ /** Full width (default: true). */
2539
2575
  fullWidth?: boolean;
2540
- /** Material Symbols icon name at the start of input, e.g. "search" */
2576
+ /** Material Symbol al inicio del input (aplica clase `.prefix`). */
2541
2577
  startIcon?: string;
2542
- /** Material Symbols icon name at the end of input, e.g. "visibility_off" */
2578
+ /** Material Symbol al final del input (aplica clase `.suffix`). */
2543
2579
  endIcon?: string;
2580
+ /**
2581
+ * Campo de contraseña con toggle interactivo de mostrar/ocultar.
2582
+ *
2583
+ * Renderiza un botón "ojo" como suffix que alterna el `type` del input entre
2584
+ * `password` (oculto) y `text` (visible). Cuando es `true`, el `type` se
2585
+ * gestiona internamente (se ignora la prop `type`). No tiene efecto si el
2586
+ * field es `readOnly`. Toma precedencia sobre `endIcon`.
2587
+ */
2588
+ revealable?: boolean;
2589
+ /**
2590
+ * aria-label del toggle de contraseña, para i18n.
2591
+ * @default 'Mostrar u ocultar contraseña'
2592
+ */
2593
+ revealLabel?: string;
2594
+ /**
2595
+ * Muestra la marca ` *` en la label cuando el campo es `required`.
2596
+ *
2597
+ * El atributo `required` del input se aplica siempre que se pase `required`;
2598
+ * esta prop solo controla la marca visual. Ponla en `false` para campos
2599
+ * requeridos que no deben mostrar asterisco (el requerimiento se comunica de otra forma).
2600
+ * @default true
2601
+ */
2602
+ requiredMark?: boolean;
2544
2603
  }
2545
- /**
2546
- * Text input field with label, validation, and icons.
2547
- *
2548
- * Built with native HTML and BeerCSS floating labels.
2549
- * The label animates up when the input has focus or value.
2550
- *
2551
- * @example
2552
- * ```tsx
2553
- * <KdsTextField
2554
- * label="RUT Suscriptor"
2555
- * placeholder="12.345.678-9"
2556
- * />
2557
- *
2558
- * <KdsTextField
2559
- * label="Buscar por nombre"
2560
- * startIcon="search"
2561
- * />
2562
- *
2563
- * <KdsTextField
2564
- * label="Contraseña"
2565
- * type="password"
2566
- * error
2567
- * helperText="Contraseña incorrecta"
2568
- * />
2569
- *
2570
- * <KdsTextField
2571
- * label="Monto"
2572
- * value="$1.000"
2573
- * readOnly
2574
- * />
2575
- * ```
2576
- */
2577
2604
  declare const KdsTextField: React__default.ForwardRefExoticComponent<KdsTextFieldProps & React__default.RefAttributes<HTMLInputElement>>;
2578
2605
 
2579
2606
  /**
2580
2607
  * Khipu Design System - Checkbox Component
2581
2608
  *
2582
- * Native HTML checkbox with BeerCSS styling.
2609
+ * Wrapper React que matchea exactamente el markup del taglib `mat:checkBox` de payment:
2610
+ *
2611
+ * <label class="checkbox">
2612
+ * <input type="checkbox" id="..." name="..." value="..." [checked] [disabled]>
2613
+ * <span>Label</span>
2614
+ * </label>
2615
+ *
2616
+ * BeerCSS oculta el input via `opacity: 0` y renderiza un sprite vía `::before` con
2617
+ * `content: "check_box_outline_blank"` usando la fuente Material Symbols Outlined.
2618
+ *
2619
+ * NO agregamos `htmlFor` al label porque el `<input>` está anidado dentro: la
2620
+ * asociación es implícita y `for` puede causar doble-disparo del click event.
2583
2621
  */
2584
2622
 
2585
2623
  interface KdsCheckboxProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'type'> {
2586
- label?: string;
2624
+ /**
2625
+ * Contenido del label mostrado al lado del sprite. Opcional (puede usar aria-label).
2626
+ * Acepta texto o nodos (p. ej. un enlace embebido en "Acepto los términos…").
2627
+ */
2628
+ label?: React__default.ReactNode;
2587
2629
  }
2588
2630
  declare const KdsCheckbox: React__default.ForwardRefExoticComponent<KdsCheckboxProps & React__default.RefAttributes<HTMLInputElement>>;
2589
2631
 
2590
- /**
2591
- * Khipu Design System - Modal Component
2592
- *
2593
- * A modal dialog component built on Radix Dialog with Khipu design system styling.
2594
- * Uses kds-bottom-sheet BeerCSS classes for visual presentation.
2595
- */
2596
-
2597
- type KdsModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2598
- interface KdsModalProps {
2599
- /** Controls modal visibility */
2600
- open: boolean;
2601
- /** Callback when modal should close */
2602
- onClose: () => void;
2603
- /** Modal title */
2604
- title?: string;
2605
- /** Modal description text */
2606
- description?: string;
2607
- /** Footer content (usually action buttons) */
2608
- footer?: React__default.ReactNode;
2609
- /** Modal content */
2610
- children: React__default.ReactNode;
2611
- /** Modal max width */
2612
- size?: KdsModalSize;
2613
- /** Show close button */
2614
- showCloseButton?: boolean;
2615
- /** Additional CSS class */
2616
- className?: string;
2617
- }
2618
- /**
2619
- * Modal dialog component for displaying content that requires attention.
2620
- *
2621
- * Built on Radix Dialog with kds-bottom-sheet BeerCSS classes.
2622
- *
2623
- * @example
2624
- * ```tsx
2625
- * <KdsModal
2626
- * open={isOpen}
2627
- * onClose={() => setIsOpen(false)}
2628
- * title="Confirmar pago"
2629
- * footer={
2630
- * <>
2631
- * <button onClick={handleCancel}>Cancelar</button>
2632
- * <button onClick={handleConfirm}>Confirmar</button>
2633
- * </>
2634
- * }
2635
- * >
2636
- * <p>¿Estás seguro de que deseas realizar este pago?</p>
2637
- * </KdsModal>
2638
- * ```
2639
- */
2640
- declare const KdsModal: React__default.ForwardRefExoticComponent<KdsModalProps & React__default.RefAttributes<HTMLDivElement>>;
2641
-
2642
2632
  /**
2643
2633
  * Khipu Design System - Card Component
2644
2634
  *
@@ -2692,16 +2682,63 @@ declare const KdsCardFooter: React__default.ForwardRefExoticComponent<KdsCardSec
2692
2682
  /**
2693
2683
  * Khipu Design System - Spinner Component
2694
2684
  *
2695
- * Native HTML spinner with BeerCSS loader styling.
2685
+ * Spinner circular animado usando el patrón nativo de BeerCSS:
2686
+ * <progress class="circle [small|large] indeterminate"></progress>
2687
+ *
2688
+ * Tamaños (BeerCSS):
2689
+ * - `small` → 1.5rem (24px)
2690
+ * - default → 2.5rem (40px)
2691
+ * - `large` → 3.5rem (56px)
2692
+ *
2693
+ * El `<progress>` indeterminate aplica animación `to-rotate 1s linear infinite` con
2694
+ * gradient cónico (currentColor / `--active`).
2696
2695
  */
2697
2696
 
2698
2697
  type KdsSpinnerSize = 'small' | 'medium' | 'large';
2699
2698
  interface KdsSpinnerProps extends React__default.HTMLAttributes<HTMLDivElement> {
2699
+ /** Tamaño del spinner. Default `medium` (sin modifier = 2.5rem). */
2700
2700
  size?: KdsSpinnerSize;
2701
+ /** Texto bajo el spinner (visible). Si se omite, se usa "Cargando" como sr-only para a11y. */
2701
2702
  label?: string;
2702
2703
  }
2703
2704
  declare const KdsSpinner: React__default.ForwardRefExoticComponent<KdsSpinnerProps & React__default.RefAttributes<HTMLDivElement>>;
2704
2705
 
2706
+ /**
2707
+ * Khipu Design System - SecureLoader Component
2708
+ *
2709
+ * Loader de pantalla completa para flujos de pago: anillo circular animado con
2710
+ * un candado centrado y, opcionalmente, dos líneas de texto (estado + detalle).
2711
+ *
2712
+ * El anillo es un arco fino (~2px) rotando, definido en `.kds-secure-loader-ring`.
2713
+ * El texto es opcional y se pasa por props (`title`/`message`) porque su contenido
2714
+ * lo provee el consumidor (i18n / estado de la operación).
2715
+ */
2716
+
2717
+ interface KdsSecureLoaderProps extends React__default.HTMLAttributes<HTMLDivElement> {
2718
+ /** Frase de estado (línea principal) mostrada sobre el spinner. */
2719
+ title?: string;
2720
+ /** Detalle/submensaje (color primario) bajo el título. */
2721
+ message?: string;
2722
+ }
2723
+ declare const KdsSecureLoader: React__default.ForwardRefExoticComponent<KdsSecureLoaderProps & React__default.RefAttributes<HTMLDivElement>>;
2724
+
2725
+ /**
2726
+ * Khipu Design System - CopyButton Component
2727
+ *
2728
+ * Botón-chip compacto que muestra un valor y lo copia al portapapeles al click.
2729
+ * Acción de copia inline (distinto de KdsCopyRow, que es una fila label+valor para
2730
+ * mostrar datos del destinatario/recap). Porta el look del copy button de khenshin:
2731
+ * fondo info suave, texto info-dark, icono copy info-main, esquinas redondeadas.
2732
+ */
2733
+
2734
+ interface KdsCopyButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'children' | 'onClick'> {
2735
+ /** Valor mostrado y copiado al portapapeles. */
2736
+ value: string;
2737
+ /** Texto que reemplaza brevemente al valor cuando se copia. Default "Copiado". */
2738
+ copiedText?: string;
2739
+ }
2740
+ declare const KdsCopyButton: React__default.ForwardRefExoticComponent<KdsCopyButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
2741
+
2705
2742
  /**
2706
2743
  * Khipu Design System - LinearProgress Component
2707
2744
  *
@@ -2717,53 +2754,34 @@ declare const KdsLinearProgress: React__default.ForwardRefExoticComponent<KdsLin
2717
2754
  /**
2718
2755
  * Khipu Design System - Alert Component
2719
2756
  *
2720
- * An alert component built with native HTML and kds-* CSS classes.
2721
- * Matches the Figma design: Pagos Automáticos - MUI v610
2757
+ * Alert con icon opcional, content y close button.
2758
+ *
2759
+ * Specs (CSS-derived):
2760
+ * - `.kds-alert`: flex, align-items center, gap 8px, padding 16px, border-radius md, border 1px
2761
+ * - `.kds-alert-icon`: 24px, flex-shrink 0
2762
+ * - `.kds-alert-content`: flex 1, min-width 0 (permite ellipsis del texto)
2763
+ * - Variantes: kds-info / kds-success / kds-warning / kds-error
2764
+ * - `.kds-alert-inline` reduce padding y bottom-margin
2722
2765
  */
2723
2766
 
2724
2767
  type KdsAlertSeverity = 'success' | 'info' | 'warning' | 'error';
2725
2768
  interface KdsAlertProps extends React__default.HTMLAttributes<HTMLDivElement> {
2726
- /** Alert severity/type */
2769
+ /** Alert severity/type. */
2727
2770
  severity: KdsAlertSeverity;
2728
- /** Alert title */
2771
+ /** Alert title (negrita arriba). */
2729
2772
  title?: string;
2730
- /** Material Symbols icon name, e.g. "info" */
2731
- icon?: string;
2732
- /** Inline variant (compact display) */
2773
+ /**
2774
+ * Material Symbols icon name. Si es `true` (o se omite y hay otra prop), se usa el default por severity.
2775
+ * Pasar `false` para ocultar el icon. Pasar un string custom para override.
2776
+ */
2777
+ icon?: string | boolean;
2778
+ /** Inline variant (compact display, sin border-radius grande). */
2733
2779
  inline?: boolean;
2734
- /** Alert content */
2780
+ /** Alert body. */
2735
2781
  children: React__default.ReactNode;
2736
- /** Closable alert */
2782
+ /** Callback para cerrar — renderiza icon-button discreto a la derecha. */
2737
2783
  onClose?: () => void;
2738
2784
  }
2739
- /**
2740
- * Alert component for displaying important messages.
2741
- *
2742
- * Built with native HTML and kds-* CSS classes from the BeerCSS bundle.
2743
- *
2744
- * @example
2745
- * ```tsx
2746
- * // Info alert (like in subscription details)
2747
- * <KdsAlert severity="info">
2748
- * El tope mensual corresponde al monto máximo posible a cobrar mensualmente.
2749
- * </KdsAlert>
2750
- *
2751
- * // Success alert
2752
- * <KdsAlert severity="success" title="¡Todo listo!">
2753
- * Espera la confirmación por parte de tu banco
2754
- * </KdsAlert>
2755
- *
2756
- * // Warning alert
2757
- * <KdsAlert severity="warning" onClose={() => setOpen(false)}>
2758
- * Tu sesión expirará pronto
2759
- * </KdsAlert>
2760
- *
2761
- * // Error alert
2762
- * <KdsAlert severity="error">
2763
- * Ha ocurrido un error al procesar tu pago
2764
- * </KdsAlert>
2765
- * ```
2766
- */
2767
2785
  declare const KdsAlert: React__default.ForwardRefExoticComponent<KdsAlertProps & React__default.RefAttributes<HTMLDivElement>>;
2768
2786
 
2769
2787
  /**
@@ -2776,7 +2794,7 @@ declare const KdsAlert: React__default.ForwardRefExoticComponent<KdsAlertProps &
2776
2794
  /**
2777
2795
  * Custom Khipu typography variants that map to specific design tokens
2778
2796
  */
2779
- type KdsTypographyVariant = 'display1' | 'display2' | 'heading1' | 'heading2' | 'heading3' | 'body-large' | 'body' | 'body-small' | 'label' | 'label-small' | 'muted' | 'link';
2797
+ type KdsTypographyVariant = 'display1' | 'display2' | 'heading1' | 'heading2' | 'heading3' | 'body-large' | 'body' | 'body-small' | 'label' | 'label-small' | 'muted' | 'link' | 'strong';
2780
2798
  type ElementTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'label';
2781
2799
  interface KdsTypographyProps extends React__default.HTMLAttributes<HTMLElement> {
2782
2800
  /**
@@ -2817,10 +2835,27 @@ interface KdsTypographyProps extends React__default.HTMLAttributes<HTMLElement>
2817
2835
  */
2818
2836
  declare const KdsTypography: React__default.ForwardRefExoticComponent<KdsTypographyProps & React__default.RefAttributes<HTMLElement>>;
2819
2837
 
2838
+ /**
2839
+ * Khipu Design System - Tabs Component
2840
+ *
2841
+ * Matchea exactamente el markup que usa producción payment:
2842
+ *
2843
+ * <div class="kds-segmented-tabs" role="tablist">
2844
+ * <button type="button" class="active" role="tab" aria-selected="true">Personas</button>
2845
+ * <button type="button" role="tab" aria-selected="false">Empresas</button>
2846
+ * </div>
2847
+ *
2848
+ * Solo existe la variante segmented — producción payment no usa otra cosa, y el
2849
+ * "standard" Material Design 3 underline tab no está en el Khipu DS.
2850
+ *
2851
+ * @gsp `_choosePaymentMethodFormMaterial.gsp` (líneas 18-25)
2852
+ */
2853
+
2820
2854
  interface KdsTabsProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> {
2855
+ /** Índice 0-based del tab activo. */
2821
2856
  activeIndex: number;
2857
+ /** Callback cuando cambia el tab activo. */
2822
2858
  onChange: (index: number) => void;
2823
- variant?: 'standard' | 'segmented';
2824
2859
  }
2825
2860
  declare const KdsTabs: React__default.ForwardRefExoticComponent<KdsTabsProps & React__default.RefAttributes<HTMLDivElement>>;
2826
2861
  interface KdsTabInternalProps {
@@ -2836,111 +2871,29 @@ interface KdsTabPanelProps extends React__default.HTMLAttributes<HTMLDivElement>
2836
2871
  declare const KdsTabPanel: React__default.ForwardRefExoticComponent<KdsTabPanelProps & React__default.RefAttributes<HTMLDivElement>>;
2837
2872
 
2838
2873
  /**
2839
- * Khipu Design System - LogoHeader Component
2840
- *
2841
- * A header bar component that displays the Khipu logo, a transaction code,
2842
- * and a close button. Used at the top of payment flow screens.
2843
- *
2844
- * Built with composable sub-components for maximum flexibility.
2845
- */
2846
-
2847
- interface KdsLogoHeaderProps extends React__default.HTMLAttributes<HTMLDivElement> {
2848
- /** Content - typically LogoHeader sub-components */
2849
- children?: React__default.ReactNode;
2850
- }
2851
- interface KdsLogoHeaderLogoProps extends React__default.HTMLAttributes<HTMLDivElement> {
2852
- /** Custom logo content. Defaults to Khipu text logo */
2853
- children?: React__default.ReactNode;
2854
- }
2855
- interface KdsLogoHeaderSeparatorProps extends React__default.HTMLAttributes<HTMLSpanElement> {
2856
- /** Separator character. Defaults to "|" */
2857
- children?: React__default.ReactNode;
2858
- }
2859
- interface KdsLogoHeaderCodeProps extends React__default.HTMLAttributes<HTMLSpanElement> {
2860
- /** Transaction or reference code to display */
2861
- children: React__default.ReactNode;
2862
- }
2863
- interface KdsLogoHeaderCloseButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
2864
- /** Callback fired when the close button is clicked */
2865
- onClose?: () => void;
2866
- }
2867
- /**
2868
- * Logo section of the LogoHeader.
2869
- *
2870
- * @example
2871
- * ```tsx
2872
- * <KdsLogoHeaderLogo />
2873
- *
2874
- * <KdsLogoHeaderLogo>
2875
- * <img src="/custom-logo.svg" alt="Custom Logo" />
2876
- * </KdsLogoHeaderLogo>
2877
- * ```
2878
- */
2879
- declare const KdsLogoHeaderLogo: React__default.ForwardRefExoticComponent<KdsLogoHeaderLogoProps & React__default.RefAttributes<HTMLDivElement>>;
2880
- /**
2881
- * Separator element between logo and code.
2882
- *
2883
- * @example
2884
- * ```tsx
2885
- * <KdsLogoHeaderSeparator />
2886
- *
2887
- * <KdsLogoHeaderSeparator>•</KdsLogoHeaderSeparator>
2888
- * ```
2889
- */
2890
- declare const KdsLogoHeaderSeparator: React__default.ForwardRefExoticComponent<KdsLogoHeaderSeparatorProps & React__default.RefAttributes<HTMLSpanElement>>;
2891
- /**
2892
- * Transaction code section.
2893
- *
2894
- * @example
2895
- * ```tsx
2896
- * <KdsLogoHeaderCode>HUSK-P7ZZ-XGYG</KdsLogoHeaderCode>
2897
- * ```
2898
- */
2899
- declare const KdsLogoHeaderCode: React__default.ForwardRefExoticComponent<KdsLogoHeaderCodeProps & React__default.RefAttributes<HTMLSpanElement>>;
2900
- /**
2901
- * Close button for the header.
2902
- *
2903
- * @example
2904
- * ```tsx
2905
- * <KdsLogoHeaderCloseButton onClose={() => handleClose()} />
2906
- * ```
2907
- */
2908
- declare const KdsLogoHeaderCloseButton: React__default.ForwardRefExoticComponent<KdsLogoHeaderCloseButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
2909
- /**
2910
- * LogoHeader bar component.
2874
+ * Khipu Design System - RadioGroup Component
2911
2875
  *
2912
- * A composable header component that can be used with sub-components
2913
- * for maximum flexibility, or with default children for quick usage.
2876
+ * Native HTML radio group with BeerCSS `.radio` class.
2914
2877
  *
2915
- * @example
2916
- * ```tsx
2917
- * // Composable usage
2918
- * <KdsLogoHeader>
2919
- * <KdsLogoHeaderLogo />
2920
- * <KdsLogoHeaderSeparator />
2921
- * <KdsLogoHeaderCode>HUSK-P7ZZ-XGYG</KdsLogoHeaderCode>
2922
- * <KdsLogoHeaderCloseButton onClose={() => handleClose()} />
2923
- * </KdsLogoHeader>
2924
- *
2925
- * // Simple usage with defaults
2926
- * <KdsLogoHeader>
2927
- * <KdsLogoHeaderLogo />
2928
- * <KdsLogoHeaderSeparator />
2929
- * <KdsLogoHeaderCode>ABC-1234-XYZ</KdsLogoHeaderCode>
2930
- * </KdsLogoHeader>
2931
- * ```
2932
- */
2933
- declare const KdsLogoHeader: React__default.ForwardRefExoticComponent<KdsLogoHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
2934
-
2935
- /**
2936
- * Khipu Design System - RadioGroup Component
2878
+ * Contrato BeerCSS:
2879
+ * <fieldset class="kds-radio-group">
2880
+ * <legend>Label</legend>
2881
+ * <label class="radio">
2882
+ * <input type="radio" name="x" value="a" />
2883
+ * <span>Opción A</span>
2884
+ * </label>
2885
+ * ...
2886
+ * </fieldset>
2937
2887
  *
2938
- * Native HTML radio group with BeerCSS styling.
2888
+ * Specs:
2889
+ * - Input oculto, sprite circular generado por `:is(.checkbox, .radio) > span::before`
2890
+ * - Tamaño default 18x18; modifiers `.small` (14px) / `.large` (22px)
2939
2891
  */
2940
2892
 
2941
2893
  interface KdsRadioOption {
2942
2894
  value: string;
2943
- label: string;
2895
+ /** Texto o nodo del label de la opción (permite contenido rico: montos, enlaces, tablas). */
2896
+ label: React__default.ReactNode;
2944
2897
  disabled?: boolean;
2945
2898
  }
2946
2899
  interface KdsRadioGroupProps extends Omit<React__default.FieldsetHTMLAttributes<HTMLFieldSetElement>, 'onChange'> {
@@ -2949,55 +2902,137 @@ interface KdsRadioGroupProps extends Omit<React__default.FieldsetHTMLAttributes<
2949
2902
  options: KdsRadioOption[];
2950
2903
  value?: string;
2951
2904
  onChange?: (value: string) => void;
2905
+ /** Tamaño del sprite del radio (aplicado a cada opción). */
2906
+ size?: 'small' | 'large';
2952
2907
  }
2953
2908
  declare const KdsRadioGroup: React__default.ForwardRefExoticComponent<KdsRadioGroupProps & React__default.RefAttributes<HTMLFieldSetElement>>;
2954
2909
 
2955
2910
  /**
2956
2911
  * Khipu Design System - Select Component
2957
2912
  *
2958
- * A select dropdown component built on Radix UI Select with BeerCSS field styling.
2913
+ * Native HTML `<select>` wrapped en el patrón BeerCSS `field label border`.
2914
+ * Matchea exactamente el markup que genera la taglib `mat:select` de payment.
2915
+ *
2916
+ * Markup canónico:
2917
+ *
2918
+ * <div class="field label border [prefix] [invalid|valid|info|warning]">
2919
+ * <i class="material-symbols-outlined">prefixIcon</i> // opcional
2920
+ * <select id="..." name="..." [required] [disabled]>
2921
+ * <option value="">Placeholder...</option> // opcional (noSelection)
2922
+ * <option value="bci">BCI</option>
2923
+ * ...
2924
+ * </select>
2925
+ * <label for="...">Banco *</label>
2926
+ * <span class="helper">errorMessage o help</span> // opcional
2927
+ * </div>
2928
+ *
2929
+ * BeerCSS dibuja el chevron automáticamente, el floating label, focus ring, etc.
2930
+ *
2931
+ * @gsp `mat:select` taglib (MaterialTagLib.groovy:260)
2959
2932
  */
2960
2933
 
2961
- interface KdsSelectProps {
2934
+ interface KdsSelectOption {
2935
+ /** Valor del `<option>` (string serializable). */
2962
2936
  value: string;
2963
- onValueChange: (value: string) => void;
2937
+ /** Texto visible del `<option>`. */
2938
+ label: string;
2939
+ /** Si está disabled. */
2940
+ disabled?: boolean;
2941
+ }
2942
+ interface KdsSelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, 'children'> {
2943
+ /** Floating label. */
2944
+ label: string;
2945
+ /** Lista de opciones del select. */
2946
+ options: KdsSelectOption[];
2947
+ /**
2948
+ * Texto del primer `<option>` con value="" (placeholder). Si está vacío, no se renderiza.
2949
+ * Equivalente a `noSelection` del taglib.
2950
+ */
2964
2951
  placeholder?: string;
2965
- label?: string;
2952
+ /** Helper text bajo el field (error o info). */
2953
+ helperText?: string;
2954
+ /** Estado inválido — aplica clase `.invalid` al wrapper. */
2966
2955
  error?: boolean;
2967
- helperText?: React__default.ReactNode;
2968
- disabled?: boolean;
2956
+ /** Material Symbols icon al inicio del field (aplica clase `.prefix`). */
2957
+ prefixIcon?: string;
2958
+ /** Full width (default: true). */
2969
2959
  fullWidth?: boolean;
2970
- children: React__default.ReactNode;
2971
- className?: string;
2972
2960
  }
2973
- interface KdsSelectItemProps extends Select.SelectItemProps {
2974
- children: React__default.ReactNode;
2975
- }
2976
- declare const KdsSelect: React__default.ForwardRefExoticComponent<KdsSelectProps & React__default.RefAttributes<HTMLDivElement>> & {
2977
- Item: React__default.ForwardRefExoticComponent<KdsSelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
2978
- };
2961
+ declare const KdsSelect: React__default.ForwardRefExoticComponent<KdsSelectProps & React__default.RefAttributes<HTMLSelectElement>>;
2979
2962
 
2980
2963
  /**
2981
2964
  * Khipu Design System - Chip Component
2982
2965
  *
2983
- * Native HTML chip with BeerCSS kds-badge styling.
2966
+ * Chip/badge inline con color, icon opcional y close opcional (deletable).
2967
+ *
2968
+ * Specs (CSS-derived):
2969
+ * - `.kds-badge`: inline-flex, align-items center, gap 4px, padding 2px 8px, radius sm
2970
+ * - `font-size: xs`, `font-weight: medium`, `line-height: 1.5`
2971
+ * - Icon prefix `<i>`: 14px, inline
2972
+ * - Close button (`.kds-badge-close`): 16×16 circular discreto, NO usa kds-btn
2973
+ *
2974
+ * Variantes de color: primary | success | error | warning | info
2984
2975
  */
2985
2976
 
2986
2977
  type KdsChipColor = 'primary' | 'success' | 'error' | 'warning' | 'info';
2987
2978
  interface KdsChipProps extends React__default.HTMLAttributes<HTMLSpanElement> {
2979
+ /** Color variant. */
2988
2980
  color?: KdsChipColor;
2981
+ /** Material Symbol opcional al inicio del chip. */
2989
2982
  icon?: string;
2983
+ /**
2984
+ * Callback cuando se hace click en el icon de cerrar.
2985
+ * Si está definido, renderiza un icon-button discreto (NO usa kds-btn).
2986
+ */
2990
2987
  onDelete?: () => void;
2991
2988
  }
2992
2989
  declare const KdsChip: React__default.ForwardRefExoticComponent<KdsChipProps & React__default.RefAttributes<HTMLSpanElement>>;
2993
2990
 
2991
+ /**
2992
+ * Khipu Design System - Snackbar Component
2993
+ *
2994
+ * Matchea exactamente el markup que genera `Khipu.showSnackbar()` y
2995
+ * `initFlashMessages()` (`src/beercss/customizations/khipu-init.js`):
2996
+ *
2997
+ * <div class="snackbar active [info|success|error]"
2998
+ * data-auto-dismiss="true"
2999
+ * style="--kds-snackbar-duration: 5000ms">
3000
+ * <i class="material-symbols-outlined">[icon]</i>
3001
+ * <span class="max">message</span>
3002
+ * <button class="kds-snackbar-close" aria-label="Cerrar">
3003
+ * <i class="material-symbols-outlined">close</i>
3004
+ * </button>
3005
+ * </div>
3006
+ *
3007
+ * Features:
3008
+ * - Icon prefix automático según `type` (info / check_circle / error).
3009
+ * - Progress bar lineal en la parte inferior animado durante `duration` ms (CSS `::after`).
3010
+ * - Close button con estilo `.kds-snackbar-close` (icon-only, blanco semi-transparente).
3011
+ *
3012
+ * @gsp `_paymentFlashSnackbars.gsp` (markup base) + `khipu-init.js → initFlashMessages()` (close + dismiss timer)
3013
+ */
3014
+
2994
3015
  type KdsSnackbarType = 'success' | 'error' | 'info';
2995
- interface KdsSnackbarProps extends React__default.HTMLAttributes<HTMLDivElement> {
3016
+ interface KdsSnackbarProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'role'> {
3017
+ /** Mensaje del snackbar. */
2996
3018
  message: string;
3019
+ /** Variante semántica. Default `info`. */
2997
3020
  type?: KdsSnackbarType;
3021
+ /**
3022
+ * Duración en ms antes de auto-dismiss. Default `5000`.
3023
+ * También controla la duración del progress bar (CSS var `--kds-snackbar-duration`).
3024
+ * Pasa `0` para deshabilitar auto-dismiss (no progress bar).
3025
+ */
2998
3026
  duration?: number;
3027
+ /** Callback al cerrar (click en X o tras auto-dismiss). */
2999
3028
  onClose?: () => void;
3029
+ /** Controla visibilidad. Default `true`. */
3000
3030
  open?: boolean;
3031
+ /**
3032
+ * Material Symbol icon name. Si se omite, usa el default por `type`.
3033
+ * Pasa `false` para ocultar el icon prefix.
3034
+ */
3035
+ icon?: string | false;
3001
3036
  }
3002
3037
  declare const KdsSnackbar: React__default.ForwardRefExoticComponent<KdsSnackbarProps & React__default.RefAttributes<HTMLDivElement>>;
3003
3038
 
@@ -3052,7 +3087,7 @@ declare const KdsSectionNote: React__default.ForwardRefExoticComponent<KdsSectio
3052
3087
  * Native HTML status block with BeerCSS styling.
3053
3088
  */
3054
3089
 
3055
- type KdsStatusType = 'success' | 'pending' | 'warn' | 'error';
3090
+ type KdsStatusType = 'success' | 'pending' | 'warn' | 'error' | 'info';
3056
3091
  interface KdsStatusBlockProps extends React__default.HTMLAttributes<HTMLDivElement> {
3057
3092
  status: KdsStatusType;
3058
3093
  icon?: string;
@@ -3065,27 +3100,139 @@ declare const KdsStatusBlock: React__default.ForwardRefExoticComponent<KdsStatus
3065
3100
  /**
3066
3101
  * Khipu Design System - Stepper Component
3067
3102
  *
3068
- * Native HTML stepper with BeerCSS styling.
3103
+ * Matchea exactamente el markup del taglib `mat:stepper` de payment:
3104
+ *
3105
+ * <div class="kds-stepper">
3106
+ * <div class="kds-step [completed|current]">
3107
+ * <div class="kds-step-indicator"></div> <!-- vacío: número/check via CSS -->
3108
+ * <div class="kds-step-label">Label</div>
3109
+ * </div>
3110
+ * ...
3111
+ * </div>
3112
+ *
3113
+ * Specs CSS-driven:
3114
+ * - La línea conectora horizontal es `.kds-stepper::before` (NO un `<div>`).
3115
+ * - El check de completed viene de `.kds-step-indicator::after { content: "check" }`.
3116
+ * - El número del step está oculto (`font-size: 0`) — el design no usa números.
3117
+ *
3118
+ * @gsp `mat:stepper` taglib (MaterialTagLib.groovy:817)
3069
3119
  */
3070
3120
 
3071
3121
  interface KdsStepperProps extends React__default.HTMLAttributes<HTMLDivElement> {
3072
- steps: number;
3122
+ /** Labels de cada step. La longitud del array determina el número de pasos. */
3123
+ steps: string[];
3124
+ /**
3125
+ * Índice 0-based del step actual.
3126
+ * - Steps `< current` → `.completed` (verde con check)
3127
+ * - Step `== current` → `.current` (azul info)
3128
+ * - Steps `> current` → pending (gris)
3129
+ */
3073
3130
  current: number;
3074
3131
  }
3075
3132
  declare const KdsStepper: React__default.ForwardRefExoticComponent<KdsStepperProps & React__default.RefAttributes<HTMLDivElement>>;
3076
3133
 
3077
- interface KdsCopyRowProps extends React__default.HTMLAttributes<HTMLDivElement> {
3134
+ /**
3135
+ * Khipu Design System - CopyRow Component
3136
+ *
3137
+ * Fila clickeable que copia su `value` al portapapeles. El ROW completo es el botón.
3138
+ *
3139
+ * Markup canónico (mirrors `src/beercss/demo/payment-components.html`):
3140
+ *
3141
+ * <button class="kds-copy-row" data-copy="value">
3142
+ * <i class="material-symbols-outlined">content_copy</i> ← icon a la IZQUIERDA
3143
+ * <div>
3144
+ * <span class="kds-copy-row-label">Banco</span>
3145
+ * <span class="kds-copy-row-value">Banco Security</span>
3146
+ * </div>
3147
+ * <span class="kds-copy-toast">
3148
+ * <i class="material-symbols-outlined">check_circle</i> Copiado
3149
+ * </span>
3150
+ * </button>
3151
+ *
3152
+ * Cuando `.copied`:
3153
+ * - bg → success-soft, border → success-main
3154
+ * - `.kds-copy-toast` aparece (position absolute right, opacity 0 → 1)
3155
+ */
3156
+
3157
+ interface KdsCopyRowProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'children' | 'onClick'> {
3158
+ /** Label arriba (uppercase caption). */
3078
3159
  label: string;
3160
+ /** Valor mostrado y copiado al portapapeles. */
3079
3161
  value: string;
3162
+ /** Texto del toast cuando se copia. Default: "Copiado". */
3163
+ copiedText?: string;
3080
3164
  }
3081
- declare const KdsCopyRow: React__default.ForwardRefExoticComponent<KdsCopyRowProps & React__default.RefAttributes<HTMLDivElement>>;
3165
+ declare const KdsCopyRow: React__default.ForwardRefExoticComponent<KdsCopyRowProps & React__default.RefAttributes<HTMLButtonElement>>;
3166
+
3167
+ /**
3168
+ * Khipu Design System - CopyableTable Component
3169
+ *
3170
+ * Tabla compacta con filas que se copian individualmente al click, y un
3171
+ * botón "Copiar todos los datos" que cambia el color de todas las filas al copy.
3172
+ *
3173
+ * Variante `'grid'` (aditiva): grilla read-only de N celdas de texto por fila,
3174
+ * sin copy ni botón "Copiar todo". Las celdas reparten el ancho equitativamente.
3175
+ * Útil para mostrar datos dentro de opciones de radio. Soporta `disabled`
3176
+ * (atenúa el color del texto).
3177
+ *
3178
+ * Contrato HTML (matchea el CSS .kds-copyable-table del DS):
3179
+ * ```html
3180
+ * <div class="kds-copyable-table" id="destination-copy-list">
3181
+ * <div class="kds-copyable-table-row" data-copy="value-to-copy">
3182
+ * <span class="kds-key">Banco</span>
3183
+ * <span class="kds-value">Banco Security</span>
3184
+ * </div>
3185
+ * ...
3186
+ * </div>
3187
+ * <button class="kds-btn kds-btn-outlined kds-btn-block kds-copy-all-btn"
3188
+ * data-copy-all="#destination-copy-list">
3189
+ * <span class="kds-icon"><i class="material-symbols-outlined">content_copy</i></span>
3190
+ * <span>Copiar todos los datos</span>
3191
+ * </button>
3192
+ * ```
3193
+ *
3194
+ * Specs:
3195
+ * - Row: flex space-between, padding 10px 8px, border-top divider, font sm, cursor pointer
3196
+ * - Row hover: bg primary-faint + icon copy aparece en `.kds-value::after`
3197
+ * - Row `.copied`: bg success-soft, `.kds-value` color success-dark, icon → check
3198
+ * - Copy-all-btn: kds-btn-outlined-block + bg primary-faint
3199
+ * - Copy-all-btn `.copied`: bg success-soft
3200
+ */
3082
3201
 
3083
3202
  interface KdsCopyableTableRow {
3084
3203
  label: string;
3085
3204
  value: string;
3205
+ /** Override del valor a copiar (default: `value`). */
3206
+ copy?: string;
3086
3207
  }
3087
3208
  interface KdsCopyableTableProps extends React__default.HTMLAttributes<HTMLDivElement> {
3088
- rows: KdsCopyableTableRow[];
3209
+ /**
3210
+ * Filas key/value copiables (modo `'copyable'`). Opcional: default `[]`.
3211
+ * En modo `'grid'` no se usa; usá `gridRows` en su lugar.
3212
+ */
3213
+ rows?: KdsCopyableTableRow[];
3214
+ /**
3215
+ * Variante de la tabla.
3216
+ * - `'copyable'` (default): filas key/value que se copian individualmente al click.
3217
+ * - `'grid'`: grilla read-only de N celdas de texto por fila, sin copy ni botón
3218
+ * "Copiar todo". Útil para mostrar datos dentro de opciones de radio.
3219
+ */
3220
+ variant?: 'copyable' | 'grid';
3221
+ /**
3222
+ * Datos de la grilla en modo `'grid'`: cada fila es un array de textos de celda.
3223
+ * Las celdas se reparten el ancho equitativamente. Ignorado en modo `'copyable'`.
3224
+ */
3225
+ gridRows?: string[][];
3226
+ /**
3227
+ * Atenúa el color del texto de la grilla (modo `'grid'`). Sin efecto en `'copyable'`.
3228
+ */
3229
+ disabled?: boolean;
3230
+ /** Texto del botón "Copiar todo". Default: "Copiar todos los datos". */
3231
+ copyAllLabel?: string;
3232
+ /** Texto cuando se copió todo. Default: "Datos copiados". */
3233
+ copiedAllLabel?: string;
3234
+ /** Si `false`, no muestra el botón "Copiar todo". */
3235
+ showCopyAll?: boolean;
3089
3236
  }
3090
3237
  declare const KdsCopyableTable: React__default.ForwardRefExoticComponent<KdsCopyableTableProps & React__default.RefAttributes<HTMLDivElement>>;
3091
3238
 
@@ -3102,8 +3249,14 @@ interface KdsCountdownProps extends React__default.HTMLAttributes<HTMLDivElement
3102
3249
  }
3103
3250
  declare const KdsCountdown: React__default.ForwardRefExoticComponent<KdsCountdownProps & React__default.RefAttributes<HTMLDivElement>>;
3104
3251
 
3105
- type KdsSegmentedTabsProps = Omit<KdsTabsProps, 'variant'>;
3106
- declare const KdsSegmentedTabs: React$1.ForwardRefExoticComponent<KdsSegmentedTabsProps & React$1.RefAttributes<HTMLDivElement>>;
3252
+ /**
3253
+ * KdsSegmentedTabs alias semántico de `KdsTabs`.
3254
+ *
3255
+ * Mantenido por backwards-compat con código que importa `KdsSegmentedTabs`.
3256
+ * `KdsTabs` ahora ya renderiza directamente segmented (la única variante del DS).
3257
+ */
3258
+ type KdsSegmentedTabsProps = KdsTabsProps;
3259
+ declare const KdsSegmentedTabs: React$1.ForwardRefExoticComponent<KdsTabsProps & React$1.RefAttributes<HTMLDivElement>>;
3107
3260
 
3108
3261
  interface KdsBankRowProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
3109
3262
  name: string;
@@ -3164,15 +3317,50 @@ interface KdsInvoiceStickyProps extends React__default.HTMLAttributes<HTMLDivEle
3164
3317
  }
3165
3318
  declare const KdsInvoiceSticky: React__default.ForwardRefExoticComponent<KdsInvoiceStickyProps & React__default.RefAttributes<HTMLDivElement>>;
3166
3319
 
3320
+ /**
3321
+ * Khipu Design System - BottomSheet Component
3322
+ *
3323
+ * Bottom-sheet (modal que sube desde abajo en mobile, centrado en desktop) basado
3324
+ * en Radix Dialog. Único componente de modales del DS — `KdsModal` fue unificado aquí.
3325
+ *
3326
+ * Contrato HTML (matchea CSS `.kds-bottom-sheet*` de khipu-components.css):
3327
+ *
3328
+ * <div class="kds-bottom-sheet-scrim open">
3329
+ * <div class="kds-bottom-sheet">
3330
+ * <div class="kds-bottom-sheet-grabber" /> <!-- opcional -->
3331
+ * <button class="kds-bottom-sheet-close">X</button> <!-- opcional -->
3332
+ * <h2 class="kds-bottom-sheet-title">...</h2> <!-- opcional -->
3333
+ * <p class="kds-bottom-sheet-description">...</p> <!-- opcional -->
3334
+ * <div class="kds-bottom-sheet-body">children</div>
3335
+ * <div class="kds-bottom-sheet-actions">actions</div> <!-- opcional -->
3336
+ * </div>
3337
+ * </div>
3338
+ *
3339
+ * IMPORTANTE: el scrim DEBE llevar la clase `.open` SIEMPRE (Radix maneja mount/unmount).
3340
+ * Sin `.open`, el scrim queda `display: none` y no se ve.
3341
+ */
3342
+
3167
3343
  interface KdsBottomSheetProps {
3344
+ /** Controla la visibilidad. */
3168
3345
  open: boolean;
3346
+ /** Callback cuando se debe cerrar (close button / ESC / click fuera). */
3169
3347
  onClose: () => void;
3348
+ /** Título — renderiza `<h2 class="kds-bottom-sheet-title">`. */
3170
3349
  title?: string;
3350
+ /** Descripción opcional bajo el título (`<p class="kds-bottom-sheet-description">`). */
3351
+ description?: string;
3352
+ /** Contenido del body. */
3171
3353
  children: React__default.ReactNode;
3354
+ /** Botones de acción (footer). Renderiza dentro de `.kds-bottom-sheet-actions`. */
3172
3355
  actions?: React__default.ReactNode;
3173
- className?: string;
3174
- /** Portal container — pass a ref to mount inside a specific element instead of document.body */
3356
+ /** Mostrar grabber (handle) visual en el top. Default: true. */
3357
+ showGrabber?: boolean;
3358
+ /** Mostrar X de cierre en el top-right. Default: false. */
3359
+ showCloseButton?: boolean;
3360
+ /** Portal container — útil para Storybook o anchors específicos. */
3175
3361
  container?: HTMLElement | null;
3362
+ /** Clase adicional al sheet. */
3363
+ className?: string;
3176
3364
  }
3177
3365
  declare const KdsBottomSheet: React__default.ForwardRefExoticComponent<KdsBottomSheetProps & React__default.RefAttributes<HTMLDivElement>>;
3178
3366
 
@@ -3191,6 +3379,210 @@ interface KdsRecapListProps extends React__default.HTMLAttributes<HTMLUListEleme
3191
3379
  }
3192
3380
  declare const KdsRecapList: React__default.ForwardRefExoticComponent<KdsRecapListProps & React__default.RefAttributes<HTMLUListElement>>;
3193
3381
 
3382
+ interface KdsMontoRowProps extends React__default.HTMLAttributes<HTMLDivElement> {
3383
+ /** Título principal (e.g. "Monto a transferir"). */
3384
+ title: string;
3385
+ /** Valor destacado (e.g. "$3.300"). */
3386
+ value: string;
3387
+ /**
3388
+ * Texto secundario opcional bajo el título (deadline/subtitle).
3389
+ * Acepta un nodo React para incluir line-breaks o formato.
3390
+ */
3391
+ deadline?: React__default.ReactNode;
3392
+ }
3393
+ /**
3394
+ * KdsMontoRow — bloque destacado de monto con título + deadline opcional + valor.
3395
+ *
3396
+ * Layout (spec):
3397
+ * - `display: flex; justify-content: space-between`
3398
+ * - `padding: 14px 0 8px`
3399
+ * - `border-top: 1px dashed var(--kds-border-medium)`
3400
+ *
3401
+ * Tipografía:
3402
+ * - `.kds-monto-row-title`: `font-size: sm`, `font-weight: 500`
3403
+ * - `.kds-monto-row-deadline`: `font-size: xs`, `color: text-secondary`
3404
+ * - `.kds-monto-row-value`: `font-size: 24px`, `font-weight: 700`, `letter-spacing: tight`
3405
+ *
3406
+ * @gsp `_manualVerifyChileMaterial.gsp` y demás manualVerify
3407
+ * @css .kds-monto-row, .kds-monto-row-title, .kds-monto-row-deadline, .kds-monto-row-value
3408
+ */
3409
+ declare const KdsMontoRow: React__default.ForwardRefExoticComponent<KdsMontoRowProps & React__default.RefAttributes<HTMLDivElement>>;
3410
+
3411
+ interface KdsMerchantTileProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
3412
+ /** Nombre del merchant (usado para alt del logo o initials fallback). */
3413
+ name: string;
3414
+ /** URL del logo del merchant. Si está presente, renderiza `<img>` dentro del tile. */
3415
+ logoUrl?: string;
3416
+ /** Initials custom (2-3 letras). Si no se provee, usa las primeras 2 letras de `name`. */
3417
+ initials?: string;
3418
+ /** Variante compacta: 40×40 en vez de 56×56. */
3419
+ compact?: boolean;
3420
+ }
3421
+ /**
3422
+ * KdsMerchantTile — tile cuadrado con logo del comercio o initials.
3423
+ *
3424
+ * Layout (spec):
3425
+ * - `56 x 56` (default) / `40 x 40` (compact)
3426
+ * - `border-radius: var(--kds-radius-card)`
3427
+ * - `background: var(--kds-color-primary-deep)` (#5B3DB5)
3428
+ * - `color: white`, `display: grid; place-items: center`
3429
+ * - Initials: `font-size: xl` (20px), `font-weight: 700`, `letter-spacing: 0.02em`
3430
+ *
3431
+ * Variante logo:
3432
+ * - Agrega clase `.logo`, padding `var(--kds-spacing-0-5)` (4px)
3433
+ * - `<img>` interna: `object-fit: cover`, `border-radius: var(--kds-radius-md)`
3434
+ *
3435
+ * Compose with: este componente SOLO renderiza el tile cuadrado. Para el header
3436
+ * de comercio completo ("estás pagando a" + nombre), envolver en el patrón
3437
+ * `.kds-merchant`:
3438
+ * ```html
3439
+ * <div class="kds-merchant">
3440
+ * <!-- KdsMerchantTile → .kds-merchant-tile -->
3441
+ * <div class="kds-merchant-meta">
3442
+ * <span class="kds-merchant-label">Estás pagando a</span>
3443
+ * <strong>Comercial Santiago SpA</strong>
3444
+ * </div>
3445
+ * </div>
3446
+ * ```
3447
+ * Spacing canónico: `.kds-merchant` gap `var(--kds-spacing-1-75)`; label
3448
+ * `margin-bottom: var(--kds-spacing-0-25)`. Ver `Patterns/CSS-only → MerchantHeader`.
3449
+ *
3450
+ * @css .kds-merchant-tile, .kds-merchant-tile.logo, .kds-merchant.compact .kds-merchant-tile
3451
+ */
3452
+ declare const KdsMerchantTile: React__default.ForwardRefExoticComponent<KdsMerchantTileProps & React__default.RefAttributes<HTMLDivElement>>;
3453
+
3454
+ type KdsPaymentTotalVariant = 'default' | 'email';
3455
+ /**
3456
+ * Color tone for the amount value.
3457
+ * - `brand`: default Khipu purple (current behaviour).
3458
+ * - `info`: khipu-blue (#5A5FE0) — LigoPay QR / transfer flows.
3459
+ */
3460
+ type KdsPaymentTotalTone = 'brand' | 'info';
3461
+ interface KdsPaymentTotalProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'> {
3462
+ /**
3463
+ * Variante visual.
3464
+ * - `default`: monto destacado en color primario (QR / payment view).
3465
+ * - `email`: monto compacto en color de texto primario (email templates).
3466
+ * @default 'default'
3467
+ */
3468
+ variant?: KdsPaymentTotalVariant;
3469
+ /**
3470
+ * Tono de color del monto. Combinable con cualquier `variant`.
3471
+ * - `brand` (default): purple Khipu / texto primario según variante.
3472
+ * - `info`: khipu-blue (#5A5FE0) — pantallas QR/transfer de LigoPay.
3473
+ * @default 'brand'
3474
+ */
3475
+ tone?: KdsPaymentTotalTone;
3476
+ /**
3477
+ * Si `true`, aplica el modificador `kds-payment-total--centered`: remueve el
3478
+ * `padding-left` asimétrico (que existe por defecto para la vista QR de
3479
+ * LigoPay) y centra todo el texto interno. Combinable con `variant` y `tone`.
3480
+ * @default false
3481
+ */
3482
+ centered?: boolean;
3483
+ /**
3484
+ * Monto a mostrar.
3485
+ * - `number`: el componente formatea (entera + decimal) con `Intl.NumberFormat`.
3486
+ * - `string`: ya formateado (e.g. `"1,500.50"` o `"1500.50"`). Si contiene `.`,
3487
+ * la parte tras el punto se renderiza como superíndice decimal.
3488
+ */
3489
+ amount: number | string;
3490
+ /**
3491
+ * Símbolo de moneda. Default `'S/'` (sol peruano) para mantener paridad con el origen
3492
+ * en paylink-ligopay. Pásalo explícito para otras monedas (`'$'`, `'CLP$'`, etc.).
3493
+ * @default 'S/'
3494
+ */
3495
+ currency?: string;
3496
+ /**
3497
+ * Cantidad de decimales. `0` o `null` ocultan el superíndice decimal.
3498
+ * Aplica sólo cuando `amount` es `number` o cuando contiene un `.`.
3499
+ * @default 2
3500
+ */
3501
+ decimals?: number | null;
3502
+ /**
3503
+ * Locale BCP-47 para `Intl.NumberFormat` (separadores miles/decimal).
3504
+ * Aplica sólo cuando `amount` es `number`.
3505
+ * @default 'es-PE'
3506
+ */
3507
+ locale?: string;
3508
+ /**
3509
+ * Etiqueta sobre el monto (e.g. `"Monto a pagar"`).
3510
+ * @default 'Monto a pagar'
3511
+ */
3512
+ label?: React__default.ReactNode;
3513
+ /**
3514
+ * Título principal (desktop). En la variante `default` aparece arriba; en `email`
3515
+ * se omite. Pasa `null` para ocultarlo en `default` también.
3516
+ * @default 'Escanea el QR'
3517
+ */
3518
+ title?: React__default.ReactNode;
3519
+ /**
3520
+ * Título alternativo para mobile en variante `default`. En desktop se oculta vía CSS.
3521
+ * Pasa `null` para omitirlo.
3522
+ * @default 'Descarga el QR'
3523
+ */
3524
+ titleMobile?: React__default.ReactNode;
3525
+ }
3526
+ /**
3527
+ * KdsPaymentTotal — bloque de "monto a pagar" usado en pantallas de pago QR y emails de cobro.
3528
+ *
3529
+ * Portado desde el taglib `<kh:paymentTotal>` de paylink-ligopay
3530
+ * (`KhipuTagLib.groovy:131-177` + `materialize-config.css → .payment-total`).
3531
+ *
3532
+ * **Variantes:**
3533
+ * - `default`: amount grande (`3rem`) en color primario Khipu — vista QR de pago.
3534
+ * - `email`: amount compacto (`1.5rem`) en color texto primario — plantillas email.
3535
+ *
3536
+ * **Layout responsive (default):**
3537
+ * - Desktop: padding-left 80px, title visible (titleMobile oculto).
3538
+ * - Mobile (≤ 1024px): centrado, sólo titleMobile visible.
3539
+ * - La variante `email` mantiene alineación izquierda en todos los breakpoints.
3540
+ *
3541
+ * **Decimal handling:**
3542
+ * - Si `amount` es `number`, se formatea con `Intl.NumberFormat(locale)`.
3543
+ * - Si `amount` es `string` con `.`, la parte tras el punto va al `<sup>`.
3544
+ * - `decimals={0}` o `null` desactivan el superíndice.
3545
+ *
3546
+ * @gsp Origen: paylink-ligopay/grails-app/taglib/com/khipu/payment/paylink/ligopay/KhipuTagLib.groovy
3547
+ * @css .kds-payment-total, .kds-payment-total--email, .kds-payment-total-title,
3548
+ * .kds-payment-total-title-mobile, .kds-payment-label, .kds-payment-amount,
3549
+ * .kds-payment-total-decimal-sup
3550
+ */
3551
+ declare const KdsPaymentTotal: React__default.ForwardRefExoticComponent<KdsPaymentTotalProps & React__default.RefAttributes<HTMLDivElement>>;
3552
+
3553
+ interface KdsBillAttachmentProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
3554
+ /** Nombre del archivo a descargar. */
3555
+ filename: string;
3556
+ /** URL absoluta o relativa del archivo. */
3557
+ href: string;
3558
+ /** Icon Material Symbols. Default: `attach_file`. */
3559
+ icon?: string;
3560
+ }
3561
+ /**
3562
+ * KdsBillAttachment — link de descarga para adjuntos de la factura/bill.
3563
+ *
3564
+ * Layout (spec):
3565
+ * - `display: inline-flex; align-items: center; justify-content: flex-start`
3566
+ * - `width: fit-content`
3567
+ * - `color: var(--kds-color-info-main)`, `font-size: sm` (14px), `font-weight: 500`
3568
+ * - `text-decoration: none` → hover `underline` solo en el span
3569
+ * - Icon: `font-size: lg` (16px)
3570
+ *
3571
+ * @gsp `mat:billAttachments` taglib (introducida en commit 1a8e228c9)
3572
+ * @css .kds-bill-attachment, .kds-bill-attachments
3573
+ */
3574
+ declare const KdsBillAttachment: React__default.ForwardRefExoticComponent<KdsBillAttachmentProps & React__default.RefAttributes<HTMLAnchorElement>>;
3575
+ interface KdsBillAttachmentsProps extends React__default.HTMLAttributes<HTMLDivElement> {
3576
+ }
3577
+ /**
3578
+ * KdsBillAttachments — contenedor vertical de varios `KdsBillAttachment`.
3579
+ *
3580
+ * Layout (spec):
3581
+ * - `display: flex; flex-direction: column`
3582
+ * - `gap: var(--kds-spacing-0-75)` (6px)
3583
+ */
3584
+ declare const KdsBillAttachments: React__default.ForwardRefExoticComponent<KdsBillAttachmentsProps & React__default.RefAttributes<HTMLDivElement>>;
3585
+
3194
3586
  declare function useCopyToClipboard(resetMs?: number): {
3195
3587
  copied: boolean;
3196
3588
  copy: (text: string) => Promise<void>;
@@ -3236,4 +3628,4 @@ declare function getContrastColor(hex: string): string;
3236
3628
  */
3237
3629
  declare function lighten(hex: string, amount: number): string;
3238
3630
 
3239
- export { type Colors, KdsAccordion, KdsAccordionDetails, type KdsAccordionDetailsProps, type KdsAccordionProps, KdsAccordionSummary, type KdsAccordionSummaryProps, KdsAlert, type KdsAlertProps, type KdsAlertSeverity, KdsBankList, type KdsBankListProps, KdsBankModal, type KdsBankModalProps, KdsBankRow, type KdsBankRowProps, KdsBottomSheet, type KdsBottomSheetProps, KdsButton, type KdsButtonProps, type KdsButtonSize, type KdsButtonVariant, KdsCard, KdsCardBody, KdsCardFooter, KdsCardHeader, KdsCardPlan, type KdsCardPlanProps, type KdsCardProps, type KdsCardSectionProps, KdsCardSelector, type KdsCardSelectorProps, type KdsCardVariant, KdsCheckbox, type KdsCheckboxProps, KdsChip, type KdsChipColor, type KdsChipProps, KdsCopyRow, type KdsCopyRowProps, KdsCopyableTable, type KdsCopyableTableProps, type KdsCopyableTableRow, KdsCountdown, type KdsCountdownProps, KdsDivider, type KdsDividerProps, KdsExpandPanel, type KdsExpandPanelProps, KdsInvoiceSticky, type KdsInvoiceStickyProps, KdsLinearProgress, type KdsLinearProgressProps, KdsLogoHeader, KdsLogoHeaderCloseButton, type KdsLogoHeaderCloseButtonProps, KdsLogoHeaderCode, type KdsLogoHeaderCodeProps, KdsLogoHeaderLogo, type KdsLogoHeaderLogoProps, type KdsLogoHeaderProps, KdsLogoHeaderSeparator, type KdsLogoHeaderSeparatorProps, KdsModal, type KdsModalProps, type KdsModalSize, KdsQrRow, type KdsQrRowProps, KdsRadioGroup, type KdsRadioGroupProps, type KdsRadioOption, type KdsRecapItem, KdsRecapList, type KdsRecapListProps, KdsSectionNote, type KdsSectionNoteProps, KdsSecureFooter, type KdsSecureFooterProps, KdsSegmentedTabs, type KdsSegmentedTabsProps, KdsSelect, type KdsSelectItemProps, type KdsSelectProps, KdsSnackbar, type KdsSnackbarProps, type KdsSnackbarType, KdsSpinner, type KdsSpinnerProps, type KdsSpinnerSize, KdsStatusBlock, type KdsStatusBlockProps, type KdsStatusType, KdsStepper, type KdsStepperProps, KdsTab, KdsTabPanel, type KdsTabPanelProps, type KdsTabProps, KdsTabs, type KdsTabsProps, KdsTextField, type KdsTextFieldProps, KdsThemeProvider, type KdsThemeProviderProps, KdsTooltip, type KdsTooltipPlacement, type KdsTooltipProps, KdsTypography, type KdsTypographyProps, type KdsTypographyVariant, type ThemeMode, type Tokens, type TokensByMode, type Typography as TypographyTokens, borderRadius, breakpoints, colors, colorsByMode, fontFamilies, fontSizes, fontWeights, getContrastColor, letterSpacings, lighten, lineHeights, semanticSpacing, shadows, spacing, tokens, tokensByMode, transitions, typography, useAutoHide, useCopyToClipboard, useCountdown, useTabsKeyboard, zIndex };
3631
+ export { type Colors, KdsAccordion, KdsAccordionDetails, type KdsAccordionDetailsProps, type KdsAccordionProps, KdsAccordionSummary, type KdsAccordionSummaryProps, KdsAlert, type KdsAlertProps, type KdsAlertSeverity, KdsBankList, type KdsBankListProps, KdsBankModal, type KdsBankModalProps, KdsBankRow, type KdsBankRowProps, KdsBillAttachment, type KdsBillAttachmentProps, KdsBillAttachments, type KdsBillAttachmentsProps, KdsBottomSheet, type KdsBottomSheetProps, KdsButton, type KdsButtonProps, type KdsButtonSize, type KdsButtonVariant, KdsCard, KdsCardBody, KdsCardFooter, KdsCardHeader, KdsCardPlan, type KdsCardPlanProps, type KdsCardProps, type KdsCardSectionProps, KdsCardSelector, type KdsCardSelectorProps, type KdsCardVariant, KdsCheckbox, type KdsCheckboxProps, KdsChip, type KdsChipColor, type KdsChipProps, KdsCopyButton, type KdsCopyButtonProps, KdsCopyRow, type KdsCopyRowProps, KdsCopyableTable, type KdsCopyableTableProps, type KdsCopyableTableRow, KdsCountdown, type KdsCountdownProps, KdsDivider, type KdsDividerProps, KdsExpandPanel, type KdsExpandPanelProps, KdsInvoiceSticky, type KdsInvoiceStickyProps, KdsLinearProgress, type KdsLinearProgressProps, KdsMerchantTile, type KdsMerchantTileProps, KdsMontoRow, type KdsMontoRowProps, KdsPaymentTotal, type KdsPaymentTotalProps, type KdsPaymentTotalVariant, KdsQrRow, type KdsQrRowProps, KdsRadioGroup, type KdsRadioGroupProps, type KdsRadioOption, type KdsRecapItem, KdsRecapList, type KdsRecapListProps, KdsSectionNote, type KdsSectionNoteProps, KdsSecureFooter, type KdsSecureFooterProps, KdsSecureLoader, type KdsSecureLoaderProps, KdsSegmentedTabs, type KdsSegmentedTabsProps, KdsSelect, type KdsSelectOption, type KdsSelectProps, KdsSnackbar, type KdsSnackbarProps, type KdsSnackbarType, KdsSpinner, type KdsSpinnerProps, type KdsSpinnerSize, KdsStatusBlock, type KdsStatusBlockProps, type KdsStatusType, KdsStepper, type KdsStepperProps, KdsTab, KdsTabPanel, type KdsTabPanelProps, type KdsTabProps, KdsTabs, type KdsTabsProps, KdsTextField, type KdsTextFieldProps, KdsThemeProvider, type KdsThemeProviderProps, KdsTooltip, type KdsTooltipPlacement, type KdsTooltipProps, KdsTypography, type KdsTypographyProps, type KdsTypographyVariant, type ThemeMode, type Tokens, type TokensByMode, type Typography as TypographyTokens, borderRadius, breakpoints, colors, colorsByMode, fontFamilies, fontSizes, fontWeights, getContrastColor, letterSpacings, lighten, lineHeights, semanticSpacing, shadows, spacing, tokens, tokensByMode, transitions, typography, useAutoHide, useCopyToClipboard, useCountdown, useTabsKeyboard, zIndex };