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

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,93 @@ 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'> {
2624
+ /** Texto del label mostrado al lado del sprite. Opcional (puede usar aria-label). */
2586
2625
  label?: string;
2587
2626
  }
2588
2627
  declare const KdsCheckbox: React__default.ForwardRefExoticComponent<KdsCheckboxProps & React__default.RefAttributes<HTMLInputElement>>;
2589
2628
 
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
2629
  /**
2643
2630
  * Khipu Design System - Card Component
2644
2631
  *
@@ -2692,16 +2679,63 @@ declare const KdsCardFooter: React__default.ForwardRefExoticComponent<KdsCardSec
2692
2679
  /**
2693
2680
  * Khipu Design System - Spinner Component
2694
2681
  *
2695
- * Native HTML spinner with BeerCSS loader styling.
2682
+ * Spinner circular animado usando el patrón nativo de BeerCSS:
2683
+ * <progress class="circle [small|large] indeterminate"></progress>
2684
+ *
2685
+ * Tamaños (BeerCSS):
2686
+ * - `small` → 1.5rem (24px)
2687
+ * - default → 2.5rem (40px)
2688
+ * - `large` → 3.5rem (56px)
2689
+ *
2690
+ * El `<progress>` indeterminate aplica animación `to-rotate 1s linear infinite` con
2691
+ * gradient cónico (currentColor / `--active`).
2696
2692
  */
2697
2693
 
2698
2694
  type KdsSpinnerSize = 'small' | 'medium' | 'large';
2699
2695
  interface KdsSpinnerProps extends React__default.HTMLAttributes<HTMLDivElement> {
2696
+ /** Tamaño del spinner. Default `medium` (sin modifier = 2.5rem). */
2700
2697
  size?: KdsSpinnerSize;
2698
+ /** Texto bajo el spinner (visible). Si se omite, se usa "Cargando" como sr-only para a11y. */
2701
2699
  label?: string;
2702
2700
  }
2703
2701
  declare const KdsSpinner: React__default.ForwardRefExoticComponent<KdsSpinnerProps & React__default.RefAttributes<HTMLDivElement>>;
2704
2702
 
2703
+ /**
2704
+ * Khipu Design System - SecureLoader Component
2705
+ *
2706
+ * Loader de pantalla completa para flujos de pago: anillo circular animado con
2707
+ * un candado centrado y, opcionalmente, dos líneas de texto (estado + detalle).
2708
+ *
2709
+ * El anillo es un arco fino (~2px) rotando, definido en `.kds-secure-loader-ring`.
2710
+ * El texto es opcional y se pasa por props (`title`/`message`) porque su contenido
2711
+ * lo provee el consumidor (i18n / estado de la operación).
2712
+ */
2713
+
2714
+ interface KdsSecureLoaderProps extends React__default.HTMLAttributes<HTMLDivElement> {
2715
+ /** Frase de estado (línea principal) mostrada sobre el spinner. */
2716
+ title?: string;
2717
+ /** Detalle/submensaje (color primario) bajo el título. */
2718
+ message?: string;
2719
+ }
2720
+ declare const KdsSecureLoader: React__default.ForwardRefExoticComponent<KdsSecureLoaderProps & React__default.RefAttributes<HTMLDivElement>>;
2721
+
2722
+ /**
2723
+ * Khipu Design System - CopyButton Component
2724
+ *
2725
+ * Botón-chip compacto que muestra un valor y lo copia al portapapeles al click.
2726
+ * Acción de copia inline (distinto de KdsCopyRow, que es una fila label+valor para
2727
+ * mostrar datos del destinatario/recap). Porta el look del copy button de khenshin:
2728
+ * fondo info suave, texto info-dark, icono copy info-main, esquinas redondeadas.
2729
+ */
2730
+
2731
+ interface KdsCopyButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'children' | 'onClick'> {
2732
+ /** Valor mostrado y copiado al portapapeles. */
2733
+ value: string;
2734
+ /** Texto que reemplaza brevemente al valor cuando se copia. Default "Copiado". */
2735
+ copiedText?: string;
2736
+ }
2737
+ declare const KdsCopyButton: React__default.ForwardRefExoticComponent<KdsCopyButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
2738
+
2705
2739
  /**
2706
2740
  * Khipu Design System - LinearProgress Component
2707
2741
  *
@@ -2717,53 +2751,34 @@ declare const KdsLinearProgress: React__default.ForwardRefExoticComponent<KdsLin
2717
2751
  /**
2718
2752
  * Khipu Design System - Alert Component
2719
2753
  *
2720
- * An alert component built with native HTML and kds-* CSS classes.
2721
- * Matches the Figma design: Pagos Automáticos - MUI v610
2754
+ * Alert con icon opcional, content y close button.
2755
+ *
2756
+ * Specs (CSS-derived):
2757
+ * - `.kds-alert`: flex, align-items center, gap 8px, padding 16px, border-radius md, border 1px
2758
+ * - `.kds-alert-icon`: 24px, flex-shrink 0
2759
+ * - `.kds-alert-content`: flex 1, min-width 0 (permite ellipsis del texto)
2760
+ * - Variantes: kds-info / kds-success / kds-warning / kds-error
2761
+ * - `.kds-alert-inline` reduce padding y bottom-margin
2722
2762
  */
2723
2763
 
2724
2764
  type KdsAlertSeverity = 'success' | 'info' | 'warning' | 'error';
2725
2765
  interface KdsAlertProps extends React__default.HTMLAttributes<HTMLDivElement> {
2726
- /** Alert severity/type */
2766
+ /** Alert severity/type. */
2727
2767
  severity: KdsAlertSeverity;
2728
- /** Alert title */
2768
+ /** Alert title (negrita arriba). */
2729
2769
  title?: string;
2730
- /** Material Symbols icon name, e.g. "info" */
2731
- icon?: string;
2732
- /** Inline variant (compact display) */
2770
+ /**
2771
+ * Material Symbols icon name. Si es `true` (o se omite y hay otra prop), se usa el default por severity.
2772
+ * Pasar `false` para ocultar el icon. Pasar un string custom para override.
2773
+ */
2774
+ icon?: string | boolean;
2775
+ /** Inline variant (compact display, sin border-radius grande). */
2733
2776
  inline?: boolean;
2734
- /** Alert content */
2777
+ /** Alert body. */
2735
2778
  children: React__default.ReactNode;
2736
- /** Closable alert */
2779
+ /** Callback para cerrar — renderiza icon-button discreto a la derecha. */
2737
2780
  onClose?: () => void;
2738
2781
  }
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
2782
  declare const KdsAlert: React__default.ForwardRefExoticComponent<KdsAlertProps & React__default.RefAttributes<HTMLDivElement>>;
2768
2783
 
2769
2784
  /**
@@ -2776,7 +2791,7 @@ declare const KdsAlert: React__default.ForwardRefExoticComponent<KdsAlertProps &
2776
2791
  /**
2777
2792
  * Custom Khipu typography variants that map to specific design tokens
2778
2793
  */
2779
- type KdsTypographyVariant = 'display1' | 'display2' | 'heading1' | 'heading2' | 'heading3' | 'body-large' | 'body' | 'body-small' | 'label' | 'label-small' | 'muted' | 'link';
2794
+ type KdsTypographyVariant = 'display1' | 'display2' | 'heading1' | 'heading2' | 'heading3' | 'body-large' | 'body' | 'body-small' | 'label' | 'label-small' | 'muted' | 'link' | 'strong';
2780
2795
  type ElementTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'label';
2781
2796
  interface KdsTypographyProps extends React__default.HTMLAttributes<HTMLElement> {
2782
2797
  /**
@@ -2817,10 +2832,27 @@ interface KdsTypographyProps extends React__default.HTMLAttributes<HTMLElement>
2817
2832
  */
2818
2833
  declare const KdsTypography: React__default.ForwardRefExoticComponent<KdsTypographyProps & React__default.RefAttributes<HTMLElement>>;
2819
2834
 
2835
+ /**
2836
+ * Khipu Design System - Tabs Component
2837
+ *
2838
+ * Matchea exactamente el markup que usa producción payment:
2839
+ *
2840
+ * <div class="kds-segmented-tabs" role="tablist">
2841
+ * <button type="button" class="active" role="tab" aria-selected="true">Personas</button>
2842
+ * <button type="button" role="tab" aria-selected="false">Empresas</button>
2843
+ * </div>
2844
+ *
2845
+ * Solo existe la variante segmented — producción payment no usa otra cosa, y el
2846
+ * "standard" Material Design 3 underline tab no está en el Khipu DS.
2847
+ *
2848
+ * @gsp `_choosePaymentMethodFormMaterial.gsp` (líneas 18-25)
2849
+ */
2850
+
2820
2851
  interface KdsTabsProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> {
2852
+ /** Índice 0-based del tab activo. */
2821
2853
  activeIndex: number;
2854
+ /** Callback cuando cambia el tab activo. */
2822
2855
  onChange: (index: number) => void;
2823
- variant?: 'standard' | 'segmented';
2824
2856
  }
2825
2857
  declare const KdsTabs: React__default.ForwardRefExoticComponent<KdsTabsProps & React__default.RefAttributes<HTMLDivElement>>;
2826
2858
  interface KdsTabInternalProps {
@@ -2836,106 +2868,23 @@ interface KdsTabPanelProps extends React__default.HTMLAttributes<HTMLDivElement>
2836
2868
  declare const KdsTabPanel: React__default.ForwardRefExoticComponent<KdsTabPanelProps & React__default.RefAttributes<HTMLDivElement>>;
2837
2869
 
2838
2870
  /**
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.
2871
+ * Khipu Design System - RadioGroup Component
2911
2872
  *
2912
- * A composable header component that can be used with sub-components
2913
- * for maximum flexibility, or with default children for quick usage.
2873
+ * Native HTML radio group with BeerCSS `.radio` class.
2914
2874
  *
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
2875
+ * Contrato BeerCSS:
2876
+ * <fieldset class="kds-radio-group">
2877
+ * <legend>Label</legend>
2878
+ * <label class="radio">
2879
+ * <input type="radio" name="x" value="a" />
2880
+ * <span>Opción A</span>
2881
+ * </label>
2882
+ * ...
2883
+ * </fieldset>
2937
2884
  *
2938
- * Native HTML radio group with BeerCSS styling.
2885
+ * Specs:
2886
+ * - Input oculto, sprite circular generado por `:is(.checkbox, .radio) > span::before`
2887
+ * - Tamaño default 18x18; modifiers `.small` (14px) / `.large` (22px)
2939
2888
  */
2940
2889
 
2941
2890
  interface KdsRadioOption {
@@ -2949,55 +2898,137 @@ interface KdsRadioGroupProps extends Omit<React__default.FieldsetHTMLAttributes<
2949
2898
  options: KdsRadioOption[];
2950
2899
  value?: string;
2951
2900
  onChange?: (value: string) => void;
2901
+ /** Tamaño del sprite del radio (aplicado a cada opción). */
2902
+ size?: 'small' | 'large';
2952
2903
  }
2953
2904
  declare const KdsRadioGroup: React__default.ForwardRefExoticComponent<KdsRadioGroupProps & React__default.RefAttributes<HTMLFieldSetElement>>;
2954
2905
 
2955
2906
  /**
2956
2907
  * Khipu Design System - Select Component
2957
2908
  *
2958
- * A select dropdown component built on Radix UI Select with BeerCSS field styling.
2909
+ * Native HTML `<select>` wrapped en el patrón BeerCSS `field label border`.
2910
+ * Matchea exactamente el markup que genera la taglib `mat:select` de payment.
2911
+ *
2912
+ * Markup canónico:
2913
+ *
2914
+ * <div class="field label border [prefix] [invalid|valid|info|warning]">
2915
+ * <i class="material-symbols-outlined">prefixIcon</i> // opcional
2916
+ * <select id="..." name="..." [required] [disabled]>
2917
+ * <option value="">Placeholder...</option> // opcional (noSelection)
2918
+ * <option value="bci">BCI</option>
2919
+ * ...
2920
+ * </select>
2921
+ * <label for="...">Banco *</label>
2922
+ * <span class="helper">errorMessage o help</span> // opcional
2923
+ * </div>
2924
+ *
2925
+ * BeerCSS dibuja el chevron automáticamente, el floating label, focus ring, etc.
2926
+ *
2927
+ * @gsp `mat:select` taglib (MaterialTagLib.groovy:260)
2959
2928
  */
2960
2929
 
2961
- interface KdsSelectProps {
2930
+ interface KdsSelectOption {
2931
+ /** Valor del `<option>` (string serializable). */
2962
2932
  value: string;
2963
- onValueChange: (value: string) => void;
2933
+ /** Texto visible del `<option>`. */
2934
+ label: string;
2935
+ /** Si está disabled. */
2936
+ disabled?: boolean;
2937
+ }
2938
+ interface KdsSelectProps extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, 'children'> {
2939
+ /** Floating label. */
2940
+ label: string;
2941
+ /** Lista de opciones del select. */
2942
+ options: KdsSelectOption[];
2943
+ /**
2944
+ * Texto del primer `<option>` con value="" (placeholder). Si está vacío, no se renderiza.
2945
+ * Equivalente a `noSelection` del taglib.
2946
+ */
2964
2947
  placeholder?: string;
2965
- label?: string;
2948
+ /** Helper text bajo el field (error o info). */
2949
+ helperText?: string;
2950
+ /** Estado inválido — aplica clase `.invalid` al wrapper. */
2966
2951
  error?: boolean;
2967
- helperText?: React__default.ReactNode;
2968
- disabled?: boolean;
2952
+ /** Material Symbols icon al inicio del field (aplica clase `.prefix`). */
2953
+ prefixIcon?: string;
2954
+ /** Full width (default: true). */
2969
2955
  fullWidth?: boolean;
2970
- children: React__default.ReactNode;
2971
- className?: string;
2972
2956
  }
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
- };
2957
+ declare const KdsSelect: React__default.ForwardRefExoticComponent<KdsSelectProps & React__default.RefAttributes<HTMLSelectElement>>;
2979
2958
 
2980
2959
  /**
2981
2960
  * Khipu Design System - Chip Component
2982
2961
  *
2983
- * Native HTML chip with BeerCSS kds-badge styling.
2962
+ * Chip/badge inline con color, icon opcional y close opcional (deletable).
2963
+ *
2964
+ * Specs (CSS-derived):
2965
+ * - `.kds-badge`: inline-flex, align-items center, gap 4px, padding 2px 8px, radius sm
2966
+ * - `font-size: xs`, `font-weight: medium`, `line-height: 1.5`
2967
+ * - Icon prefix `<i>`: 14px, inline
2968
+ * - Close button (`.kds-badge-close`): 16×16 circular discreto, NO usa kds-btn
2969
+ *
2970
+ * Variantes de color: primary | success | error | warning | info
2984
2971
  */
2985
2972
 
2986
2973
  type KdsChipColor = 'primary' | 'success' | 'error' | 'warning' | 'info';
2987
2974
  interface KdsChipProps extends React__default.HTMLAttributes<HTMLSpanElement> {
2975
+ /** Color variant. */
2988
2976
  color?: KdsChipColor;
2977
+ /** Material Symbol opcional al inicio del chip. */
2989
2978
  icon?: string;
2979
+ /**
2980
+ * Callback cuando se hace click en el icon de cerrar.
2981
+ * Si está definido, renderiza un icon-button discreto (NO usa kds-btn).
2982
+ */
2990
2983
  onDelete?: () => void;
2991
2984
  }
2992
2985
  declare const KdsChip: React__default.ForwardRefExoticComponent<KdsChipProps & React__default.RefAttributes<HTMLSpanElement>>;
2993
2986
 
2987
+ /**
2988
+ * Khipu Design System - Snackbar Component
2989
+ *
2990
+ * Matchea exactamente el markup que genera `Khipu.showSnackbar()` y
2991
+ * `initFlashMessages()` (`src/beercss/customizations/khipu-init.js`):
2992
+ *
2993
+ * <div class="snackbar active [info|success|error]"
2994
+ * data-auto-dismiss="true"
2995
+ * style="--kds-snackbar-duration: 5000ms">
2996
+ * <i class="material-symbols-outlined">[icon]</i>
2997
+ * <span class="max">message</span>
2998
+ * <button class="kds-snackbar-close" aria-label="Cerrar">
2999
+ * <i class="material-symbols-outlined">close</i>
3000
+ * </button>
3001
+ * </div>
3002
+ *
3003
+ * Features:
3004
+ * - Icon prefix automático según `type` (info / check_circle / error).
3005
+ * - Progress bar lineal en la parte inferior animado durante `duration` ms (CSS `::after`).
3006
+ * - Close button con estilo `.kds-snackbar-close` (icon-only, blanco semi-transparente).
3007
+ *
3008
+ * @gsp `_paymentFlashSnackbars.gsp` (markup base) + `khipu-init.js → initFlashMessages()` (close + dismiss timer)
3009
+ */
3010
+
2994
3011
  type KdsSnackbarType = 'success' | 'error' | 'info';
2995
- interface KdsSnackbarProps extends React__default.HTMLAttributes<HTMLDivElement> {
3012
+ interface KdsSnackbarProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'role'> {
3013
+ /** Mensaje del snackbar. */
2996
3014
  message: string;
3015
+ /** Variante semántica. Default `info`. */
2997
3016
  type?: KdsSnackbarType;
3017
+ /**
3018
+ * Duración en ms antes de auto-dismiss. Default `5000`.
3019
+ * También controla la duración del progress bar (CSS var `--kds-snackbar-duration`).
3020
+ * Pasa `0` para deshabilitar auto-dismiss (no progress bar).
3021
+ */
2998
3022
  duration?: number;
3023
+ /** Callback al cerrar (click en X o tras auto-dismiss). */
2999
3024
  onClose?: () => void;
3025
+ /** Controla visibilidad. Default `true`. */
3000
3026
  open?: boolean;
3027
+ /**
3028
+ * Material Symbol icon name. Si se omite, usa el default por `type`.
3029
+ * Pasa `false` para ocultar el icon prefix.
3030
+ */
3031
+ icon?: string | false;
3001
3032
  }
3002
3033
  declare const KdsSnackbar: React__default.ForwardRefExoticComponent<KdsSnackbarProps & React__default.RefAttributes<HTMLDivElement>>;
3003
3034
 
@@ -3052,7 +3083,7 @@ declare const KdsSectionNote: React__default.ForwardRefExoticComponent<KdsSectio
3052
3083
  * Native HTML status block with BeerCSS styling.
3053
3084
  */
3054
3085
 
3055
- type KdsStatusType = 'success' | 'pending' | 'warn' | 'error';
3086
+ type KdsStatusType = 'success' | 'pending' | 'warn' | 'error' | 'info';
3056
3087
  interface KdsStatusBlockProps extends React__default.HTMLAttributes<HTMLDivElement> {
3057
3088
  status: KdsStatusType;
3058
3089
  icon?: string;
@@ -3065,27 +3096,114 @@ declare const KdsStatusBlock: React__default.ForwardRefExoticComponent<KdsStatus
3065
3096
  /**
3066
3097
  * Khipu Design System - Stepper Component
3067
3098
  *
3068
- * Native HTML stepper with BeerCSS styling.
3099
+ * Matchea exactamente el markup del taglib `mat:stepper` de payment:
3100
+ *
3101
+ * <div class="kds-stepper">
3102
+ * <div class="kds-step [completed|current]">
3103
+ * <div class="kds-step-indicator"></div> <!-- vacío: número/check via CSS -->
3104
+ * <div class="kds-step-label">Label</div>
3105
+ * </div>
3106
+ * ...
3107
+ * </div>
3108
+ *
3109
+ * Specs CSS-driven:
3110
+ * - La línea conectora horizontal es `.kds-stepper::before` (NO un `<div>`).
3111
+ * - El check de completed viene de `.kds-step-indicator::after { content: "check" }`.
3112
+ * - El número del step está oculto (`font-size: 0`) — el design no usa números.
3113
+ *
3114
+ * @gsp `mat:stepper` taglib (MaterialTagLib.groovy:817)
3069
3115
  */
3070
3116
 
3071
3117
  interface KdsStepperProps extends React__default.HTMLAttributes<HTMLDivElement> {
3072
- steps: number;
3118
+ /** Labels de cada step. La longitud del array determina el número de pasos. */
3119
+ steps: string[];
3120
+ /**
3121
+ * Índice 0-based del step actual.
3122
+ * - Steps `< current` → `.completed` (verde con check)
3123
+ * - Step `== current` → `.current` (azul info)
3124
+ * - Steps `> current` → pending (gris)
3125
+ */
3073
3126
  current: number;
3074
3127
  }
3075
3128
  declare const KdsStepper: React__default.ForwardRefExoticComponent<KdsStepperProps & React__default.RefAttributes<HTMLDivElement>>;
3076
3129
 
3077
- interface KdsCopyRowProps extends React__default.HTMLAttributes<HTMLDivElement> {
3130
+ /**
3131
+ * Khipu Design System - CopyRow Component
3132
+ *
3133
+ * Fila clickeable que copia su `value` al portapapeles. El ROW completo es el botón.
3134
+ *
3135
+ * Markup canónico (mirrors `src/beercss/demo/payment-components.html`):
3136
+ *
3137
+ * <button class="kds-copy-row" data-copy="value">
3138
+ * <i class="material-symbols-outlined">content_copy</i> ← icon a la IZQUIERDA
3139
+ * <div>
3140
+ * <span class="kds-copy-row-label">Banco</span>
3141
+ * <span class="kds-copy-row-value">Banco Security</span>
3142
+ * </div>
3143
+ * <span class="kds-copy-toast">
3144
+ * <i class="material-symbols-outlined">check_circle</i> Copiado
3145
+ * </span>
3146
+ * </button>
3147
+ *
3148
+ * Cuando `.copied`:
3149
+ * - bg → success-soft, border → success-main
3150
+ * - `.kds-copy-toast` aparece (position absolute right, opacity 0 → 1)
3151
+ */
3152
+
3153
+ interface KdsCopyRowProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'children' | 'onClick'> {
3154
+ /** Label arriba (uppercase caption). */
3078
3155
  label: string;
3156
+ /** Valor mostrado y copiado al portapapeles. */
3079
3157
  value: string;
3158
+ /** Texto del toast cuando se copia. Default: "Copiado". */
3159
+ copiedText?: string;
3080
3160
  }
3081
- declare const KdsCopyRow: React__default.ForwardRefExoticComponent<KdsCopyRowProps & React__default.RefAttributes<HTMLDivElement>>;
3161
+ declare const KdsCopyRow: React__default.ForwardRefExoticComponent<KdsCopyRowProps & React__default.RefAttributes<HTMLButtonElement>>;
3162
+
3163
+ /**
3164
+ * Khipu Design System - CopyableTable Component
3165
+ *
3166
+ * Tabla compacta con filas que se copian individualmente al click, y un
3167
+ * botón "Copiar todos los datos" que cambia el color de todas las filas al copy.
3168
+ *
3169
+ * Contrato HTML (matchea el CSS .kds-copyable-table del DS):
3170
+ * ```html
3171
+ * <div class="kds-copyable-table" id="destination-copy-list">
3172
+ * <div class="kds-copyable-table-row" data-copy="value-to-copy">
3173
+ * <span class="kds-key">Banco</span>
3174
+ * <span class="kds-value">Banco Security</span>
3175
+ * </div>
3176
+ * ...
3177
+ * </div>
3178
+ * <button class="kds-btn kds-btn-outlined kds-btn-block kds-copy-all-btn"
3179
+ * data-copy-all="#destination-copy-list">
3180
+ * <span class="kds-icon"><i class="material-symbols-outlined">content_copy</i></span>
3181
+ * <span>Copiar todos los datos</span>
3182
+ * </button>
3183
+ * ```
3184
+ *
3185
+ * Specs:
3186
+ * - Row: flex space-between, padding 10px 8px, border-top divider, font sm, cursor pointer
3187
+ * - Row hover: bg primary-faint + icon copy aparece en `.kds-value::after`
3188
+ * - Row `.copied`: bg success-soft, `.kds-value` color success-dark, icon → check
3189
+ * - Copy-all-btn: kds-btn-outlined-block + bg primary-faint
3190
+ * - Copy-all-btn `.copied`: bg success-soft
3191
+ */
3082
3192
 
3083
3193
  interface KdsCopyableTableRow {
3084
3194
  label: string;
3085
3195
  value: string;
3196
+ /** Override del valor a copiar (default: `value`). */
3197
+ copy?: string;
3086
3198
  }
3087
3199
  interface KdsCopyableTableProps extends React__default.HTMLAttributes<HTMLDivElement> {
3088
3200
  rows: KdsCopyableTableRow[];
3201
+ /** Texto del botón "Copiar todo". Default: "Copiar todos los datos". */
3202
+ copyAllLabel?: string;
3203
+ /** Texto cuando se copió todo. Default: "Datos copiados". */
3204
+ copiedAllLabel?: string;
3205
+ /** Si `false`, no muestra el botón "Copiar todo". */
3206
+ showCopyAll?: boolean;
3089
3207
  }
3090
3208
  declare const KdsCopyableTable: React__default.ForwardRefExoticComponent<KdsCopyableTableProps & React__default.RefAttributes<HTMLDivElement>>;
3091
3209
 
@@ -3102,8 +3220,14 @@ interface KdsCountdownProps extends React__default.HTMLAttributes<HTMLDivElement
3102
3220
  }
3103
3221
  declare const KdsCountdown: React__default.ForwardRefExoticComponent<KdsCountdownProps & React__default.RefAttributes<HTMLDivElement>>;
3104
3222
 
3105
- type KdsSegmentedTabsProps = Omit<KdsTabsProps, 'variant'>;
3106
- declare const KdsSegmentedTabs: React$1.ForwardRefExoticComponent<KdsSegmentedTabsProps & React$1.RefAttributes<HTMLDivElement>>;
3223
+ /**
3224
+ * KdsSegmentedTabs alias semántico de `KdsTabs`.
3225
+ *
3226
+ * Mantenido por backwards-compat con código que importa `KdsSegmentedTabs`.
3227
+ * `KdsTabs` ahora ya renderiza directamente segmented (la única variante del DS).
3228
+ */
3229
+ type KdsSegmentedTabsProps = KdsTabsProps;
3230
+ declare const KdsSegmentedTabs: React$1.ForwardRefExoticComponent<KdsTabsProps & React$1.RefAttributes<HTMLDivElement>>;
3107
3231
 
3108
3232
  interface KdsBankRowProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
3109
3233
  name: string;
@@ -3164,15 +3288,50 @@ interface KdsInvoiceStickyProps extends React__default.HTMLAttributes<HTMLDivEle
3164
3288
  }
3165
3289
  declare const KdsInvoiceSticky: React__default.ForwardRefExoticComponent<KdsInvoiceStickyProps & React__default.RefAttributes<HTMLDivElement>>;
3166
3290
 
3291
+ /**
3292
+ * Khipu Design System - BottomSheet Component
3293
+ *
3294
+ * Bottom-sheet (modal que sube desde abajo en mobile, centrado en desktop) basado
3295
+ * en Radix Dialog. Único componente de modales del DS — `KdsModal` fue unificado aquí.
3296
+ *
3297
+ * Contrato HTML (matchea CSS `.kds-bottom-sheet*` de khipu-components.css):
3298
+ *
3299
+ * <div class="kds-bottom-sheet-scrim open">
3300
+ * <div class="kds-bottom-sheet">
3301
+ * <div class="kds-bottom-sheet-grabber" /> <!-- opcional -->
3302
+ * <button class="kds-bottom-sheet-close">X</button> <!-- opcional -->
3303
+ * <h2 class="kds-bottom-sheet-title">...</h2> <!-- opcional -->
3304
+ * <p class="kds-bottom-sheet-description">...</p> <!-- opcional -->
3305
+ * <div class="kds-bottom-sheet-body">children</div>
3306
+ * <div class="kds-bottom-sheet-actions">actions</div> <!-- opcional -->
3307
+ * </div>
3308
+ * </div>
3309
+ *
3310
+ * IMPORTANTE: el scrim DEBE llevar la clase `.open` SIEMPRE (Radix maneja mount/unmount).
3311
+ * Sin `.open`, el scrim queda `display: none` y no se ve.
3312
+ */
3313
+
3167
3314
  interface KdsBottomSheetProps {
3315
+ /** Controla la visibilidad. */
3168
3316
  open: boolean;
3317
+ /** Callback cuando se debe cerrar (close button / ESC / click fuera). */
3169
3318
  onClose: () => void;
3319
+ /** Título — renderiza `<h2 class="kds-bottom-sheet-title">`. */
3170
3320
  title?: string;
3321
+ /** Descripción opcional bajo el título (`<p class="kds-bottom-sheet-description">`). */
3322
+ description?: string;
3323
+ /** Contenido del body. */
3171
3324
  children: React__default.ReactNode;
3325
+ /** Botones de acción (footer). Renderiza dentro de `.kds-bottom-sheet-actions`. */
3172
3326
  actions?: React__default.ReactNode;
3173
- className?: string;
3174
- /** Portal container — pass a ref to mount inside a specific element instead of document.body */
3327
+ /** Mostrar grabber (handle) visual en el top. Default: true. */
3328
+ showGrabber?: boolean;
3329
+ /** Mostrar X de cierre en el top-right. Default: false. */
3330
+ showCloseButton?: boolean;
3331
+ /** Portal container — útil para Storybook o anchors específicos. */
3175
3332
  container?: HTMLElement | null;
3333
+ /** Clase adicional al sheet. */
3334
+ className?: string;
3176
3335
  }
3177
3336
  declare const KdsBottomSheet: React__default.ForwardRefExoticComponent<KdsBottomSheetProps & React__default.RefAttributes<HTMLDivElement>>;
3178
3337
 
@@ -3191,6 +3350,210 @@ interface KdsRecapListProps extends React__default.HTMLAttributes<HTMLUListEleme
3191
3350
  }
3192
3351
  declare const KdsRecapList: React__default.ForwardRefExoticComponent<KdsRecapListProps & React__default.RefAttributes<HTMLUListElement>>;
3193
3352
 
3353
+ interface KdsMontoRowProps extends React__default.HTMLAttributes<HTMLDivElement> {
3354
+ /** Título principal (e.g. "Monto a transferir"). */
3355
+ title: string;
3356
+ /** Valor destacado (e.g. "$3.300"). */
3357
+ value: string;
3358
+ /**
3359
+ * Texto secundario opcional bajo el título (deadline/subtitle).
3360
+ * Acepta un nodo React para incluir line-breaks o formato.
3361
+ */
3362
+ deadline?: React__default.ReactNode;
3363
+ }
3364
+ /**
3365
+ * KdsMontoRow — bloque destacado de monto con título + deadline opcional + valor.
3366
+ *
3367
+ * Layout (spec):
3368
+ * - `display: flex; justify-content: space-between`
3369
+ * - `padding: 14px 0 8px`
3370
+ * - `border-top: 1px dashed var(--kds-border-medium)`
3371
+ *
3372
+ * Tipografía:
3373
+ * - `.kds-monto-row-title`: `font-size: sm`, `font-weight: 500`
3374
+ * - `.kds-monto-row-deadline`: `font-size: xs`, `color: text-secondary`
3375
+ * - `.kds-monto-row-value`: `font-size: 24px`, `font-weight: 700`, `letter-spacing: tight`
3376
+ *
3377
+ * @gsp `_manualVerifyChileMaterial.gsp` y demás manualVerify
3378
+ * @css .kds-monto-row, .kds-monto-row-title, .kds-monto-row-deadline, .kds-monto-row-value
3379
+ */
3380
+ declare const KdsMontoRow: React__default.ForwardRefExoticComponent<KdsMontoRowProps & React__default.RefAttributes<HTMLDivElement>>;
3381
+
3382
+ interface KdsMerchantTileProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
3383
+ /** Nombre del merchant (usado para alt del logo o initials fallback). */
3384
+ name: string;
3385
+ /** URL del logo del merchant. Si está presente, renderiza `<img>` dentro del tile. */
3386
+ logoUrl?: string;
3387
+ /** Initials custom (2-3 letras). Si no se provee, usa las primeras 2 letras de `name`. */
3388
+ initials?: string;
3389
+ /** Variante compacta: 40×40 en vez de 56×56. */
3390
+ compact?: boolean;
3391
+ }
3392
+ /**
3393
+ * KdsMerchantTile — tile cuadrado con logo del comercio o initials.
3394
+ *
3395
+ * Layout (spec):
3396
+ * - `56 x 56` (default) / `40 x 40` (compact)
3397
+ * - `border-radius: var(--kds-radius-card)`
3398
+ * - `background: var(--kds-color-primary-deep)` (#5B3DB5)
3399
+ * - `color: white`, `display: grid; place-items: center`
3400
+ * - Initials: `font-size: xl` (20px), `font-weight: 700`, `letter-spacing: 0.02em`
3401
+ *
3402
+ * Variante logo:
3403
+ * - Agrega clase `.logo`, padding `var(--kds-spacing-0-5)` (4px)
3404
+ * - `<img>` interna: `object-fit: cover`, `border-radius: var(--kds-radius-md)`
3405
+ *
3406
+ * Compose with: este componente SOLO renderiza el tile cuadrado. Para el header
3407
+ * de comercio completo ("estás pagando a" + nombre), envolver en el patrón
3408
+ * `.kds-merchant`:
3409
+ * ```html
3410
+ * <div class="kds-merchant">
3411
+ * <!-- KdsMerchantTile → .kds-merchant-tile -->
3412
+ * <div class="kds-merchant-meta">
3413
+ * <span class="kds-merchant-label">Estás pagando a</span>
3414
+ * <strong>Comercial Santiago SpA</strong>
3415
+ * </div>
3416
+ * </div>
3417
+ * ```
3418
+ * Spacing canónico: `.kds-merchant` gap `var(--kds-spacing-1-75)`; label
3419
+ * `margin-bottom: var(--kds-spacing-0-25)`. Ver `Patterns/CSS-only → MerchantHeader`.
3420
+ *
3421
+ * @css .kds-merchant-tile, .kds-merchant-tile.logo, .kds-merchant.compact .kds-merchant-tile
3422
+ */
3423
+ declare const KdsMerchantTile: React__default.ForwardRefExoticComponent<KdsMerchantTileProps & React__default.RefAttributes<HTMLDivElement>>;
3424
+
3425
+ type KdsPaymentTotalVariant = 'default' | 'email';
3426
+ /**
3427
+ * Color tone for the amount value.
3428
+ * - `brand`: default Khipu purple (current behaviour).
3429
+ * - `info`: khipu-blue (#5A5FE0) — LigoPay QR / transfer flows.
3430
+ */
3431
+ type KdsPaymentTotalTone = 'brand' | 'info';
3432
+ interface KdsPaymentTotalProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'> {
3433
+ /**
3434
+ * Variante visual.
3435
+ * - `default`: monto destacado en color primario (QR / payment view).
3436
+ * - `email`: monto compacto en color de texto primario (email templates).
3437
+ * @default 'default'
3438
+ */
3439
+ variant?: KdsPaymentTotalVariant;
3440
+ /**
3441
+ * Tono de color del monto. Combinable con cualquier `variant`.
3442
+ * - `brand` (default): purple Khipu / texto primario según variante.
3443
+ * - `info`: khipu-blue (#5A5FE0) — pantallas QR/transfer de LigoPay.
3444
+ * @default 'brand'
3445
+ */
3446
+ tone?: KdsPaymentTotalTone;
3447
+ /**
3448
+ * Si `true`, aplica el modificador `kds-payment-total--centered`: remueve el
3449
+ * `padding-left` asimétrico (que existe por defecto para la vista QR de
3450
+ * LigoPay) y centra todo el texto interno. Combinable con `variant` y `tone`.
3451
+ * @default false
3452
+ */
3453
+ centered?: boolean;
3454
+ /**
3455
+ * Monto a mostrar.
3456
+ * - `number`: el componente formatea (entera + decimal) con `Intl.NumberFormat`.
3457
+ * - `string`: ya formateado (e.g. `"1,500.50"` o `"1500.50"`). Si contiene `.`,
3458
+ * la parte tras el punto se renderiza como superíndice decimal.
3459
+ */
3460
+ amount: number | string;
3461
+ /**
3462
+ * Símbolo de moneda. Default `'S/'` (sol peruano) para mantener paridad con el origen
3463
+ * en paylink-ligopay. Pásalo explícito para otras monedas (`'$'`, `'CLP$'`, etc.).
3464
+ * @default 'S/'
3465
+ */
3466
+ currency?: string;
3467
+ /**
3468
+ * Cantidad de decimales. `0` o `null` ocultan el superíndice decimal.
3469
+ * Aplica sólo cuando `amount` es `number` o cuando contiene un `.`.
3470
+ * @default 2
3471
+ */
3472
+ decimals?: number | null;
3473
+ /**
3474
+ * Locale BCP-47 para `Intl.NumberFormat` (separadores miles/decimal).
3475
+ * Aplica sólo cuando `amount` es `number`.
3476
+ * @default 'es-PE'
3477
+ */
3478
+ locale?: string;
3479
+ /**
3480
+ * Etiqueta sobre el monto (e.g. `"Monto a pagar"`).
3481
+ * @default 'Monto a pagar'
3482
+ */
3483
+ label?: React__default.ReactNode;
3484
+ /**
3485
+ * Título principal (desktop). En la variante `default` aparece arriba; en `email`
3486
+ * se omite. Pasa `null` para ocultarlo en `default` también.
3487
+ * @default 'Escanea el QR'
3488
+ */
3489
+ title?: React__default.ReactNode;
3490
+ /**
3491
+ * Título alternativo para mobile en variante `default`. En desktop se oculta vía CSS.
3492
+ * Pasa `null` para omitirlo.
3493
+ * @default 'Descarga el QR'
3494
+ */
3495
+ titleMobile?: React__default.ReactNode;
3496
+ }
3497
+ /**
3498
+ * KdsPaymentTotal — bloque de "monto a pagar" usado en pantallas de pago QR y emails de cobro.
3499
+ *
3500
+ * Portado desde el taglib `<kh:paymentTotal>` de paylink-ligopay
3501
+ * (`KhipuTagLib.groovy:131-177` + `materialize-config.css → .payment-total`).
3502
+ *
3503
+ * **Variantes:**
3504
+ * - `default`: amount grande (`3rem`) en color primario Khipu — vista QR de pago.
3505
+ * - `email`: amount compacto (`1.5rem`) en color texto primario — plantillas email.
3506
+ *
3507
+ * **Layout responsive (default):**
3508
+ * - Desktop: padding-left 80px, title visible (titleMobile oculto).
3509
+ * - Mobile (≤ 1024px): centrado, sólo titleMobile visible.
3510
+ * - La variante `email` mantiene alineación izquierda en todos los breakpoints.
3511
+ *
3512
+ * **Decimal handling:**
3513
+ * - Si `amount` es `number`, se formatea con `Intl.NumberFormat(locale)`.
3514
+ * - Si `amount` es `string` con `.`, la parte tras el punto va al `<sup>`.
3515
+ * - `decimals={0}` o `null` desactivan el superíndice.
3516
+ *
3517
+ * @gsp Origen: paylink-ligopay/grails-app/taglib/com/khipu/payment/paylink/ligopay/KhipuTagLib.groovy
3518
+ * @css .kds-payment-total, .kds-payment-total--email, .kds-payment-total-title,
3519
+ * .kds-payment-total-title-mobile, .kds-payment-label, .kds-payment-amount,
3520
+ * .kds-payment-total-decimal-sup
3521
+ */
3522
+ declare const KdsPaymentTotal: React__default.ForwardRefExoticComponent<KdsPaymentTotalProps & React__default.RefAttributes<HTMLDivElement>>;
3523
+
3524
+ interface KdsBillAttachmentProps extends Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
3525
+ /** Nombre del archivo a descargar. */
3526
+ filename: string;
3527
+ /** URL absoluta o relativa del archivo. */
3528
+ href: string;
3529
+ /** Icon Material Symbols. Default: `attach_file`. */
3530
+ icon?: string;
3531
+ }
3532
+ /**
3533
+ * KdsBillAttachment — link de descarga para adjuntos de la factura/bill.
3534
+ *
3535
+ * Layout (spec):
3536
+ * - `display: inline-flex; align-items: center; justify-content: flex-start`
3537
+ * - `width: fit-content`
3538
+ * - `color: var(--kds-color-info-main)`, `font-size: sm` (14px), `font-weight: 500`
3539
+ * - `text-decoration: none` → hover `underline` solo en el span
3540
+ * - Icon: `font-size: lg` (16px)
3541
+ *
3542
+ * @gsp `mat:billAttachments` taglib (introducida en commit 1a8e228c9)
3543
+ * @css .kds-bill-attachment, .kds-bill-attachments
3544
+ */
3545
+ declare const KdsBillAttachment: React__default.ForwardRefExoticComponent<KdsBillAttachmentProps & React__default.RefAttributes<HTMLAnchorElement>>;
3546
+ interface KdsBillAttachmentsProps extends React__default.HTMLAttributes<HTMLDivElement> {
3547
+ }
3548
+ /**
3549
+ * KdsBillAttachments — contenedor vertical de varios `KdsBillAttachment`.
3550
+ *
3551
+ * Layout (spec):
3552
+ * - `display: flex; flex-direction: column`
3553
+ * - `gap: var(--kds-spacing-0-75)` (6px)
3554
+ */
3555
+ declare const KdsBillAttachments: React__default.ForwardRefExoticComponent<KdsBillAttachmentsProps & React__default.RefAttributes<HTMLDivElement>>;
3556
+
3194
3557
  declare function useCopyToClipboard(resetMs?: number): {
3195
3558
  copied: boolean;
3196
3559
  copy: (text: string) => Promise<void>;
@@ -3236,4 +3599,4 @@ declare function getContrastColor(hex: string): string;
3236
3599
  */
3237
3600
  declare function lighten(hex: string, amount: number): string;
3238
3601
 
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 };
3602
+ 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 };