corekit-ui 0.1.10 → 0.1.12

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.
Files changed (84) hide show
  1. package/dist/corekit-ui.css +1 -1
  2. package/dist/index.d.ts +4010 -12
  3. package/dist/index.js +5841 -4260
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.umd.cjs +6 -6
  6. package/dist/index.umd.cjs.map +1 -1
  7. package/package.json +24 -25
  8. package/dist/animations/Transiciones.d.ts +0 -9
  9. package/dist/animations/index.d.ts +0 -1
  10. package/dist/boton/Boton.d.ts +0 -2
  11. package/dist/boton/index.d.ts +0 -2
  12. package/dist/boton/typesButton.d.ts +0 -31
  13. package/dist/checkbox/Checkbox.d.ts +0 -18
  14. package/dist/checkbox/CheckboxGroup.d.ts +0 -3
  15. package/dist/checkbox/Iconografia.d.ts +0 -0
  16. package/dist/checkbox/index.d.ts +0 -3
  17. package/dist/checkbox/types.d.ts +0 -41
  18. package/dist/firma_manual/FirmaManual.d.ts +0 -3
  19. package/dist/firma_manual/Iconografia.d.ts +0 -16
  20. package/dist/firma_manual/TypesFirma.d.ts +0 -22
  21. package/dist/firma_manual/index.d.ts +0 -2
  22. package/dist/firma_manual/useFirmaLogica.d.ts +0 -10
  23. package/dist/hablar_escuchar/BadgeVoz.d.ts +0 -6
  24. package/dist/hablar_escuchar/Iconografia.d.ts +0 -10
  25. package/dist/hablar_escuchar/index.d.ts +0 -3
  26. package/dist/hablar_escuchar/useReconocimientoVoz.d.ts +0 -21
  27. package/dist/input_date/InputDate.d.ts +0 -339
  28. package/dist/input_date/funciones.d.ts +0 -27
  29. package/dist/input_date/index.d.ts +0 -3
  30. package/dist/input_date/types.d.ts +0 -64
  31. package/dist/input_numeric/Iconografia.d.ts +0 -5
  32. package/dist/input_numeric/InputNumeric.d.ts +0 -351
  33. package/dist/input_numeric/funciones.d.ts +0 -64
  34. package/dist/input_numeric/index.d.ts +0 -3
  35. package/dist/input_numeric/types.d.ts +0 -92
  36. package/dist/input_text/Iconografia.d.ts +0 -9
  37. package/dist/input_text/InputText.d.ts +0 -345
  38. package/dist/input_text/index.d.ts +0 -2
  39. package/dist/input_text/types.d.ts +0 -73
  40. package/dist/input_types_compartidos/index.d.ts +0 -1
  41. package/dist/input_types_compartidos/types.d.ts +0 -11
  42. package/dist/select/Iconografia.d.ts +0 -10
  43. package/dist/select/Select.d.ts +0 -56
  44. package/dist/select/SelectNativo.d.ts +0 -57
  45. package/dist/select/Types.d.ts +0 -543
  46. package/dist/select/funciones.d.ts +0 -229
  47. package/dist/select/index.d.ts +0 -4
  48. package/dist/tabla_datos/TablaDatos.d.ts +0 -80
  49. package/dist/tabla_datos/components/Iconografia.d.ts +0 -17
  50. package/dist/tabla_datos/components/TablaCards.d.ts +0 -1
  51. package/dist/tabla_datos/components/TablaEscritorio.d.ts +0 -1
  52. package/dist/tabla_datos/components/configuraciones/ConfigColumnas.d.ts +0 -1
  53. package/dist/tabla_datos/components/configuraciones/ConfigEncabezado.d.ts +0 -6
  54. package/dist/tabla_datos/components/configuraciones/ConfigFilas.d.ts +0 -1
  55. package/dist/tabla_datos/components/configuraciones/ConfigOpciones.d.ts +0 -6
  56. package/dist/tabla_datos/components/configuraciones/MenuConfiguraciones.d.ts +0 -1
  57. package/dist/tabla_datos/components/skeletons/SkeletonCargando.d.ts +0 -4
  58. package/dist/tabla_datos/components/skeletons/SkeletonCargandoCards.d.ts +0 -2
  59. package/dist/tabla_datos/components/tabla/BarraHerramientas.d.ts +0 -1
  60. package/dist/tabla_datos/components/tabla/BarraSeleccion.d.ts +0 -9
  61. package/dist/tabla_datos/components/tabla/Paginacion.d.ts +0 -1
  62. package/dist/tabla_datos/components/tabla/SinDatos.d.ts +0 -1
  63. package/dist/tabla_datos/components/tabla/tabla_cards/AccionesCards.d.ts +0 -3
  64. package/dist/tabla_datos/components/tabla/tabla_cards/ContenidoCards.d.ts +0 -3
  65. package/dist/tabla_datos/components/tabla/tabla_cards/EncabezadoCards.d.ts +0 -3
  66. package/dist/tabla_datos/constantes/ConstGenerales.d.ts +0 -18
  67. package/dist/tabla_datos/context/ContextTypes.d.ts +0 -23
  68. package/dist/tabla_datos/context/TablaDatosContext.d.ts +0 -3
  69. package/dist/tabla_datos/context/hooks.d.ts +0 -10
  70. package/dist/tabla_datos/hooks/useClickOutside.d.ts +0 -8
  71. package/dist/tabla_datos/hooks/useEscapeKey.d.ts +0 -1
  72. package/dist/tabla_datos/hooks/usePopoverPosition.d.ts +0 -15
  73. package/dist/tabla_datos/hooks/useScrollLock.d.ts +0 -1
  74. package/dist/tabla_datos/index.d.ts +0 -5
  75. package/dist/tabla_datos/types/TablaTypes.d.ts +0 -85
  76. package/dist/tabla_datos/utils/FuncionesColumnas.d.ts +0 -9
  77. package/dist/tabla_datos/utils/FuncionesPaginacion.d.ts +0 -12
  78. package/dist/tabla_datos/utils/FuncionesTabla.d.ts +0 -30
  79. package/dist/text_area/Iconografia.d.ts +0 -6
  80. package/dist/text_area/TextArea.d.ts +0 -331
  81. package/dist/text_area/index.d.ts +0 -2
  82. package/dist/text_area/types.d.ts +0 -72
  83. package/dist/texts/Texts.d.ts +0 -19
  84. package/dist/vite.svg +0 -1
package/dist/index.d.ts CHANGED
@@ -1,12 +1,4010 @@
1
- export * from './boton';
2
- export * from './firma_manual';
3
- export * from './input_types_compartidos';
4
- export * from './input_text';
5
- export * from './input_numeric';
6
- export * from './input_date';
7
- export * from './text_area';
8
- export * from './select';
9
- export * from './hablar_escuchar';
10
- export * from './tabla_datos';
11
- export * from './checkbox';
12
- export * from './animations';
1
+ import { AnimationEventHandler } from 'react';
2
+ import { AriaRole } from 'react';
3
+ import { ClipboardEventHandler } from 'react';
4
+ import { Column } from '@tanstack/react-table';
5
+ import { ColumnDef } from '@tanstack/react-table';
6
+ import { ColumnOrderState } from '@tanstack/react-table';
7
+ import { ComponentPropsWithRef } from 'react';
8
+ import { CompositionEventHandler } from 'react';
9
+ import { CSSProperties } from 'react';
10
+ import { default as default_2 } from 'react';
11
+ import { DragEventHandler } from 'react';
12
+ import { FocusEventHandler } from 'react';
13
+ import { FormEventHandler } from 'react';
14
+ import { ForwardRefExoticComponent } from 'react';
15
+ import { HTMLAttributes } from 'react';
16
+ import { HTMLInputAutoCompleteAttribute } from 'react';
17
+ import { InputEventHandler } from 'react';
18
+ import { InputHTMLAttributes } from 'react';
19
+ import { JSX } from 'react/jsx-runtime';
20
+ import { KeyboardEventHandler } from 'react';
21
+ import { MouseEventHandler } from 'react';
22
+ import { PointerEventHandler } from 'react';
23
+ import { ReactEventHandler } from 'react';
24
+ import { ReactNode } from 'react';
25
+ import { RefAttributes } from 'react';
26
+ import { SVGProps } from 'react';
27
+ import { Table } from '@tanstack/react-table';
28
+ import { TextareaHTMLAttributes } from 'react';
29
+ import { ToggleEventHandler } from 'react';
30
+ import { TouchEventHandler } from 'react';
31
+ import { TransitionEventHandler } from 'react';
32
+ import { UIEventHandler } from 'react';
33
+ import { WheelEventHandler } from 'react';
34
+
35
+ declare type AccionFila<TData> = {
36
+ /** Identificador único de la acción */
37
+ id: string;
38
+ /**
39
+ * Componente que se renderiza en la barra de selección.
40
+ * Recibe las filas seleccionadas como parámetro para ejecutar acciones sobre ellas.
41
+ * @param filasSeleccionadas - Arreglo de datos de las filas seleccionadas (proporcionado automáticamente por la tabla)
42
+ * @returns Componente React (usualmente un botón con onClick)
43
+ */ componente: (filasSeleccionadas: TData[]) => React.ReactNode;
44
+ };
45
+
46
+ declare type ActualizarTablaConfig = {
47
+ cargando: boolean;
48
+ onClick: () => void;
49
+ };
50
+
51
+ /**
52
+ * Aplana opciones agrupadas a una lista lineal con metadatos
53
+ * @template T - Tipo de las opciones
54
+ * @param opcionesAgrupadas - Lista de grupos de opciones
55
+ * @returns Lista plana con encabezados de grupo y opciones
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const grupos = [
60
+ * { grupo: 'Frutas', opciones: ['Manzana', 'Pera'] },
61
+ * { grupo: 'Verduras', opciones: ['Zanahoria'] }
62
+ * ];
63
+ * aplanarOpcionesAgrupadas(grupos)
64
+ * // [
65
+ * // { tipo: 'grupo', datos: null, nombreGrupo: 'Frutas', indice: 0 },
66
+ * // { tipo: 'opcion', datos: 'Manzana', indice: 1 },
67
+ * // { tipo: 'opcion', datos: 'Pera', indice: 2 },
68
+ * // { tipo: 'grupo', datos: null, nombreGrupo: 'Verduras', indice: 3 },
69
+ * // { tipo: 'opcion', datos: 'Zanahoria', indice: 4 }
70
+ * // ]
71
+ * ```
72
+ */
73
+ export declare function aplanarOpcionesAgrupadas<T>(opcionesAgrupadas: OpcionGrupo<T>[]): OpcionPlana<T>[];
74
+
75
+ export declare const Badge: default_2.FC<BadgeProps>;
76
+
77
+ export declare type BadgeColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'brand';
78
+
79
+ export declare type BadgeProps = {
80
+ /**
81
+ * Variante visual del badge
82
+ * @default 'solid'
83
+ */
84
+ variant?: BadgeVariant;
85
+ /**
86
+ * Color del badge
87
+ * @default 'default'
88
+ */
89
+ color?: BadgeColor;
90
+ /**
91
+ * Tamaño del badge
92
+ * @default 'md'
93
+ */
94
+ size?: BadgeSize;
95
+ /**
96
+ * Radio de bordes
97
+ * @default 'md'
98
+ */
99
+ radius?: BadgeRadius;
100
+ /**
101
+ * Contenido del badge
102
+ */
103
+ children: React.ReactNode;
104
+ /**
105
+ * Icono al inicio
106
+ */
107
+ startIcon?: React.ReactNode;
108
+ /**
109
+ * Icono al final
110
+ */
111
+ endIcon?: React.ReactNode;
112
+ /**
113
+ * Si tiene un punto de estado
114
+ */
115
+ dot?: boolean;
116
+ /**
117
+ * Si puede ser removido (muestra X)
118
+ */
119
+ dismissible?: boolean;
120
+ /**
121
+ * Callback al hacer click en eliminar
122
+ */
123
+ onDismiss?: () => void;
124
+ /**
125
+ * Color personalizado
126
+ */
127
+ customColor?: string;
128
+ /**
129
+ * Clase CSS adicional
130
+ */
131
+ className?: string;
132
+ /**
133
+ * Callback al hacer click
134
+ */
135
+ onClick?: () => void;
136
+ };
137
+
138
+ export declare type BadgeRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
139
+
140
+ export declare type BadgeSize = 'sm' | 'md' | 'lg';
141
+
142
+ export declare type BadgeVariant = 'solid' | 'subtle' | 'outline' | 'soft';
143
+
144
+ export declare function BadgeVoz({ tipo, texto, size, estirar, }: {
145
+ tipo: 'mic' | 'tts';
146
+ texto: string;
147
+ size?: 'sm' | 'md' | 'lg';
148
+ estirar?: boolean;
149
+ }): JSX.Element;
150
+
151
+ /**
152
+ * Props base que comparten todos los modos del Select.
153
+ * Excluye las props que cambian según el tipo de dato.
154
+ */
155
+ declare type BaseSelectProps<T> = Omit<SelectProps<T>, 'options' | 'value' | 'onChange' | 'optionValueKey' | 'optionLabelKey'>;
156
+
157
+ export declare const Boton: ({ variant, color, size, radius, fullWidth, isLoading, onlyLoading, isDisabled, isIconOnly, disableRipple, disableAnimation, customColor, spinner, spinnerPlacement, children, className, onClick, style, type, "aria-label": ariaLabel, ...props }: BotonProps) => JSX.Element;
158
+
159
+ export declare type BotonProps = {
160
+ /** Estilo visual del botón */
161
+ variant?: 'solid' | 'bordered' | 'ghost' | 'light' | 'faded' | 'shadow';
162
+ /** Color temático del botón */
163
+ color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
164
+ /** Tamaño del botón */
165
+ size?: 'sm' | 'md' | 'lg';
166
+ /** Radio de borde del botón */
167
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
168
+ /** Ancho completo del contenedor */
169
+ fullWidth?: boolean;
170
+ /** Estado de carga del botón */
171
+ isLoading?: boolean;
172
+ /** Si es true, solo muestra el spinner sin el texto (visibility: hidden) */
173
+ onlyLoading?: boolean;
174
+ /** Botón deshabilitado */
175
+ isDisabled?: boolean;
176
+ /** Solo muestra un icono sin texto */
177
+ isIconOnly?: boolean;
178
+ /** Deshabilita el efecto ripple */
179
+ disableRipple?: boolean;
180
+ /** Deshabilita animaciones */
181
+ disableAnimation?: boolean;
182
+ /** Color personalizado (CSS color value) */
183
+ customColor?: string;
184
+ /** Spinner personalizado */
185
+ spinner?: ReactNode;
186
+ /** Posición del spinner */
187
+ spinnerPlacement?: 'start' | 'end';
188
+ } & ComponentPropsWithRef<'button'>;
189
+
190
+ export declare const Checkbox: default_2.ForwardRefExoticComponent<{
191
+ children?: default_2.ReactNode;
192
+ label?: default_2.ReactNode;
193
+ hint?: default_2.ReactNode;
194
+ isSelected?: boolean;
195
+ isIndeterminate?: boolean;
196
+ isDisabled?: boolean;
197
+ isReadOnly?: boolean;
198
+ size?: CheckboxSize;
199
+ color?: CheckboxColor;
200
+ customColor?: string;
201
+ radius?: CheckboxRadius;
202
+ variant?: CheckboxVariant;
203
+ lineThrough?: boolean;
204
+ onlyIcon?: boolean;
205
+ disableAnimation?: boolean;
206
+ customCheckIcon?: default_2.ReactNode;
207
+ onChange?: (isSelected: boolean) => void;
208
+ className?: string;
209
+ classNames?: CheckboxClassNames;
210
+ value?: string;
211
+ name?: string;
212
+ } & Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> & default_2.RefAttributes<HTMLInputElement>>;
213
+
214
+ declare type CheckboxClassNames = {
215
+ base?: string;
216
+ wrapper?: string;
217
+ icon?: string;
218
+ label?: string;
219
+ };
220
+
221
+ export declare type CheckboxColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
222
+
223
+ export declare const CheckboxGroup: ({ label, children, description, errorMessage, isInvalid, orientation, className, value: controlledValue, defaultValue, onChange, isDisabled, isReadOnly, name, }: CheckboxGroupProps) => JSX.Element;
224
+
225
+ declare type CheckboxGroupContextValue = {
226
+ value: string[];
227
+ onChange: (value: string) => void;
228
+ isDisabled?: boolean;
229
+ isReadOnly?: boolean;
230
+ name?: string;
231
+ };
232
+
233
+ export declare type CheckboxGroupProps = {
234
+ label?: ReactNode;
235
+ children: ReactNode;
236
+ description?: ReactNode;
237
+ errorMessage?: ReactNode;
238
+ isInvalid?: boolean;
239
+ orientation?: CheckboxOrientation;
240
+ className?: string;
241
+ value?: string[];
242
+ defaultValue?: string[];
243
+ onChange?: (value: string[]) => void;
244
+ isDisabled?: boolean;
245
+ isReadOnly?: boolean;
246
+ name?: string;
247
+ };
248
+
249
+ export declare type CheckboxOrientation = 'horizontal' | 'vertical';
250
+
251
+ export declare type CheckboxProps = {
252
+ children?: ReactNode;
253
+ label?: ReactNode;
254
+ hint?: ReactNode;
255
+ isSelected?: boolean;
256
+ isIndeterminate?: boolean;
257
+ isDisabled?: boolean;
258
+ isReadOnly?: boolean;
259
+ size?: CheckboxSize;
260
+ color?: CheckboxColor;
261
+ customColor?: string;
262
+ radius?: CheckboxRadius;
263
+ variant?: CheckboxVariant;
264
+ lineThrough?: boolean;
265
+ onlyIcon?: boolean;
266
+ disableAnimation?: boolean;
267
+ customCheckIcon?: ReactNode;
268
+ onChange?: (isSelected: boolean) => void;
269
+ className?: string;
270
+ classNames?: CheckboxClassNames;
271
+ value?: string;
272
+ name?: string;
273
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'>;
274
+
275
+ export declare type CheckboxRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
276
+
277
+ export declare type CheckboxSize = 'sm' | 'md' | 'lg';
278
+
279
+ export declare type CheckboxVariant = 'solid' | 'outline';
280
+
281
+ export { ColumnDef }
282
+
283
+ declare type Control<TData> = {
284
+ id: string;
285
+ nombre: string;
286
+ icono: JSX.Element;
287
+ evento: (data: TData) => void;
288
+ };
289
+
290
+ export declare const Drawer: ForwardRefExoticComponent<DrawerProps & RefAttributes<HTMLDivElement>>;
291
+
292
+ /**
293
+ * Intensidad del backdrop del drawer
294
+ * - 'transparente': Sin backdrop visible
295
+ * - 'sutil': Opacidad muy baja
296
+ * - 'normal': Opacidad estándar
297
+ * - 'intermedio': Opacidad alta
298
+ * - 'intenso': Opacidad máxima
299
+ */
300
+ export declare type DrawerBackdropVariant = 'transparente' | 'sutil' | 'normal' | 'intermedio' | 'intenso';
301
+
302
+ /**
303
+ * Posición del drawer en la pantalla
304
+ * - 'left': Aparece desde la izquierda (320px-800px)
305
+ * - 'right': Aparece desde la derecha (recomendado para menús)
306
+ * - 'top': Aparece desde arriba (320px-800px altura)
307
+ * - 'bottom': Aparece desde abajo (ideal para móviles)
308
+ */
309
+ export declare type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
310
+
311
+ export declare type DrawerProps = {
312
+ /**
313
+ * Si el drawer está abierto
314
+ * @example
315
+ * const [isOpen, setIsOpen] = useState(false);
316
+ * <Drawer isOpen={isOpen} onClose={() => setIsOpen(false)}>...</Drawer>
317
+ */
318
+ isOpen: boolean;
319
+ /**
320
+ * Callback cuando se cierra el drawer (Escape, backdrop click, botón X)
321
+ * @example
322
+ * onClose={() => setIsOpen(false)}
323
+ */
324
+ onClose: () => void;
325
+ /**
326
+ * Posición del drawer en la pantalla
327
+ * @default 'right'
328
+ * @example
329
+ * position="left" // Para menús laterales
330
+ */
331
+ position?: DrawerPosition;
332
+ /**
333
+ * Tamaño del drawer (ancho para left/right, alto para top/bottom)
334
+ * @default 'md'
335
+ * @example
336
+ * size="lg" // 640px de ancho
337
+ */
338
+ size?: DrawerSize;
339
+ /**
340
+ * Título del drawer
341
+ */
342
+ title?: string;
343
+ /**
344
+ * Si muestra el botón de cerrar (X) en esquina superior derecha
345
+ * @default true
346
+ */
347
+ showCloseButton?: boolean;
348
+ /**
349
+ * Si cierra al hacer click en el backdrop
350
+ * @default true
351
+ */
352
+ closeOnBackdropClick?: boolean;
353
+ /**
354
+ * Si cierra al presionar Escape
355
+ * @default true
356
+ */
357
+ closeOnEscape?: boolean;
358
+ /**
359
+ * Si previene el scroll del body cuando está abierto
360
+ * @default true
361
+ */
362
+ preventScroll?: boolean;
363
+ /**
364
+ * Contenido del header personalizado
365
+ */
366
+ header?: React.ReactNode;
367
+ /**
368
+ * Contenido del footer personalizado
369
+ */
370
+ footer?: React.ReactNode;
371
+ /**
372
+ * Contenido del drawer
373
+ */
374
+ children: React.ReactNode;
375
+ /**
376
+ * Clase CSS adicional
377
+ */
378
+ className?: string;
379
+ /**
380
+ * Clase CSS para el contenido
381
+ */
382
+ contentClassName?: string;
383
+ /**
384
+ * Estado de carga
385
+ * @default false
386
+ */
387
+ isLoading?: boolean;
388
+ /**
389
+ * Mensaje personalizado para el estado de carga
390
+ * @default 'Cargando...'
391
+ */
392
+ loadingMessage?: string;
393
+ /**
394
+ * Callback llamado cuando el drawer se abre
395
+ */
396
+ onOpen?: () => void;
397
+ /**
398
+ * Variante del backdrop
399
+ * @default 'normal'
400
+ */
401
+ backdropVariant?: DrawerBackdropVariant;
402
+ /**
403
+ * Radio de las esquinas del drawer
404
+ * @default 'none' para left/right, 'lg' para top/bottom
405
+ */
406
+ borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
407
+ /**
408
+ * Si el drawer se puede redimensionar
409
+ * @default false
410
+ */
411
+ resizable?: boolean;
412
+ /**
413
+ * Contenedor donde renderizar el drawer (portal)
414
+ * - HTMLElement: renderiza en ese elemento
415
+ * - () => HTMLElement: función que retorna el elemento
416
+ * - undefined/null: renderiza directamente sin portal
417
+ */
418
+ getContainer?: HTMLElement | (() => HTMLElement) | null;
419
+ /**
420
+ * z-index del drawer
421
+ * @default var(--z-modal)
422
+ */
423
+ zIndex?: number;
424
+ };
425
+
426
+ /**
427
+ * Tamaño del drawer
428
+ * - 'sm': 320px (ideal para menús compactos)
429
+ * - 'md': 480px (default, balance perfecto)
430
+ * - 'lg': 640px (para contenido extenso)
431
+ * - 'xl': 800px (para dashboards)
432
+ * - 'full': 100% (ocupa toda la pantalla)
433
+ */
434
+ export declare type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
435
+
436
+ /**
437
+ * Verifica si las opciones están agrupadas
438
+ * @template T - Tipo de las opciones
439
+ * @param opciones - Lista de opciones
440
+ * @returns true si las opciones tienen estructura de grupo
441
+ *
442
+ * @example
443
+ * ```ts
444
+ * esOpcionesAgrupadas([{ grupo: 'Frutas', opciones: ['Manzana'] }]) // true
445
+ * esOpcionesAgrupadas(['Manzana', 'Pera']) // false
446
+ * ```
447
+ */
448
+ export declare function esOpcionesAgrupadas<T>(opciones: (T | OpcionGrupo<T>)[]): opciones is OpcionGrupo<T>[];
449
+
450
+ /**
451
+ * Verifica si una opción está deshabilitada
452
+ * @template T - Tipo de la opción
453
+ * @param opcion - La opción a verificar
454
+ * @returns true si la opción tiene disabled: true
455
+ *
456
+ * @example
457
+ * ```ts
458
+ * estaDeshabilitada({ label: 'Opción', disabled: true }) // true
459
+ * estaDeshabilitada({ label: 'Opción' }) // false
460
+ * estaDeshabilitada('Texto simple') // false
461
+ * ```
462
+ */
463
+ export declare function estaDeshabilitada<T>(opcion: T): boolean;
464
+
465
+ /**
466
+ * Verifica si una opción está seleccionada
467
+ * @template T - Tipo de la opción
468
+ * @param opcion - La opción a verificar
469
+ * @param valorActual - El valor actual (puede ser single o array para multi)
470
+ * @param esMultiple - Si el select permite múltiple selección
471
+ * @param claveValor - Campo a usar para comparación
472
+ * @returns true si la opción está seleccionada
473
+ *
474
+ * @example
475
+ * ```ts
476
+ * // Selección simple
477
+ * estaSeleccionada('Manzana', 'Manzana', false, 'id') // true
478
+ *
479
+ * // Selección múltiple
480
+ * estaSeleccionada('Manzana', ['Manzana', 'Pera'], true, 'id') // true
481
+ * ```
482
+ */
483
+ export declare function estaSeleccionada<T>(opcion: T, valorActual: T | T[] | null, esMultiple: boolean, claveValor: string): boolean;
484
+
485
+ /**
486
+ * Valida si una fecha está dentro de un rango
487
+ * @param fecha - Fecha a validar (YYYY-MM-DD)
488
+ * @param min - Fecha mínima (YYYY-MM-DD)
489
+ * @param max - Fecha máxima (YYYY-MM-DD)
490
+ * @returns true si está en rango
491
+ */
492
+ export declare function fechaEnRango(fecha: string, min?: string, max?: string): boolean;
493
+
494
+ /**
495
+ * Filtra las opciones según el texto de búsqueda
496
+ * @template T - Tipo de las opciones
497
+ * @param opciones - Lista de opciones a filtrar
498
+ * @param textoBusqueda - Texto a buscar
499
+ * @param claveLabel - Campo a usar para la búsqueda
500
+ * @param funcionFiltro - Función de filtro personalizada (opcional)
501
+ * @returns Lista de opciones filtradas
502
+ *
503
+ * @example
504
+ * ```ts
505
+ * const frutas = ['Manzana', 'Mandarina', 'Pera'];
506
+ * filtrarOpciones(frutas, 'man', 'label') // ['Manzana', 'Mandarina']
507
+ * ```
508
+ */
509
+ export declare function filtrarOpciones<T>(opciones: T[], textoBusqueda: string, claveLabel: string, funcionFiltro?: (opcion: T, busqueda: string) => boolean): T[];
510
+
511
+ /**
512
+ * Filtra opciones agrupadas manteniendo la estructura de grupos
513
+ * @template T - Tipo de las opciones
514
+ * @param grupos - Lista de grupos de opciones
515
+ * @param textoBusqueda - Texto a buscar
516
+ * @param claveLabel - Campo a usar para la búsqueda
517
+ * @param funcionFiltro - Función de filtro personalizada (opcional)
518
+ * @returns Grupos filtrados (elimina grupos vacíos)
519
+ *
520
+ * @example
521
+ * ```ts
522
+ * const grupos = [
523
+ * { grupo: 'Frutas', opciones: ['Manzana', 'Pera'] },
524
+ * { grupo: 'Verduras', opciones: ['Zanahoria'] }
525
+ * ];
526
+ * filtrarOpcionesAgrupadas(grupos, 'man', 'label')
527
+ * // [{ grupo: 'Frutas', opciones: ['Manzana'] }]
528
+ * ```
529
+ */
530
+ export declare function filtrarOpcionesAgrupadas<T>(grupos: OpcionGrupo<T>[], textoBusqueda: string, claveLabel: string, funcionFiltro?: (opcion: T, busqueda: string) => boolean): OpcionGrupo<T>[];
531
+
532
+ declare type FiltrosAplicadosType = {
533
+ /** Nombre del filtro aplicado */
534
+ nombre: string;
535
+ /** Valor del filtro aplicado */
536
+ valor: string;
537
+ };
538
+
539
+ export declare const FirmaManual: ForwardRefExoticComponent<FirmaManualProps & RefAttributes<FirmaManualRef>>;
540
+
541
+ export declare type FirmaManualProps = {
542
+ isOpen?: boolean;
543
+ onClose?: () => void;
544
+ onConfirm?: (signatureData: string) => void;
545
+ titulo?: string;
546
+ textoGuardar?: string;
547
+ textoModificar?: string;
548
+ textoDeshacer?: string;
549
+ textoLimpiar?: string;
550
+ textoAdjuntar?: string;
551
+ ancho?: number;
552
+ alto?: number;
553
+ className?: string;
554
+ textoConsentimiento?: string;
555
+ mostrarBotonSubir?: boolean;
556
+ cerrarAlGuardar?: boolean;
557
+ };
558
+
559
+ export declare type FirmaManualRef = {
560
+ limpiar: () => void;
561
+ obtenerDatosFirma: () => string | null;
562
+ estaVacio: () => boolean;
563
+ };
564
+
565
+ /**
566
+ * Formatea una fecha ISO a formato legible
567
+ * @param fechaISO - Fecha en formato YYYY-MM-DD
568
+ * @param locale - Locale para formateo (default: 'es-CO')
569
+ * @returns Fecha formateada
570
+ */
571
+ export declare function formatearFecha(fechaISO: string, locale?: string): string;
572
+
573
+ /**
574
+ * Formatea un número aplicando separadores de miles y decimales
575
+ * @param valor - El número a formatear
576
+ * @param opciones - Configuración del formateo
577
+ * @returns String formateado con separadores
578
+ * @example
579
+ * formatearNumero(1234567.89, { separadorMiles: ',', separadorDecimal: '.' })
580
+ * // Retorna: "1,234,567.89"
581
+ */
582
+ export declare function formatearNumero(valor: number | undefined, opciones: {
583
+ separadorMiles?: string | boolean;
584
+ separadorDecimal?: string;
585
+ escalaDecimal?: number;
586
+ decimalesFijos?: boolean;
587
+ prefijo?: string;
588
+ sufijo?: string;
589
+ }): string;
590
+
591
+ /**
592
+ * Genera una lista de opciones aleatorias para pruebas
593
+ * @param cantidad - Número de opciones a generar
594
+ * @param prefijo - Prefijo para el texto de cada opción
595
+ * @returns Lista de strings con las opciones generadas
596
+ *
597
+ * @example
598
+ * ```ts
599
+ * generarOpcionesAleatorias(3, 'Usuario')
600
+ * // ['Usuario 1', 'Usuario 2', 'Usuario 3']
601
+ * ```
602
+ */
603
+ export declare function generarOpcionesAleatorias(cantidad: number, prefijo?: string): string[];
604
+
605
+ /**
606
+ * Genera objetos de prueba con id y nombre
607
+ * @param cantidad - Número de objetos a generar
608
+ * @param prefijo - Prefijo para el nombre
609
+ * @returns Lista de objetos { id, nombre, email }
610
+ *
611
+ * @example
612
+ * ```ts
613
+ * generarUsuariosPrueba(2)
614
+ * // [
615
+ * // { id: 'usr-1', nombre: 'Usuario 1', email: 'usuario1@test.com' },
616
+ * // { id: 'usr-2', nombre: 'Usuario 2', email: 'usuario2@test.com' }
617
+ * // ]
618
+ * ```
619
+ */
620
+ export declare function generarUsuariosPrueba(cantidad: number): Array<{
621
+ id: string;
622
+ nombre: string;
623
+ email: string;
624
+ }>;
625
+
626
+ export declare function GrabacionIcono(props: SVGProps<SVGSVGElement>): JSX.Element;
627
+
628
+ export declare const IconoCerrar: () => JSX.Element;
629
+
630
+ export declare const IconoDerecha: () => JSX.Element;
631
+
632
+ export declare const IconoFiltroAplicar: () => JSX.Element;
633
+
634
+ export declare const IconoFiltroLimpiar: () => JSX.Element;
635
+
636
+ export declare const IconoIzquierda: () => JSX.Element;
637
+
638
+ export declare type InputColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
639
+
640
+ export declare const InputDate: ForwardRefExoticComponent< {
641
+ variant?: InputVariant;
642
+ color?: InputColor;
643
+ size?: InputSize;
644
+ radius?: InputRadius;
645
+ label?: ReactNode;
646
+ placeholder?: string;
647
+ value?: string;
648
+ defaultValue?: string;
649
+ description?: ReactNode;
650
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
651
+ startContent?: ReactNode;
652
+ isRequired?: boolean;
653
+ isReadOnly?: boolean;
654
+ isDisabled?: boolean;
655
+ isInvalid?: boolean;
656
+ validationState?: "valid" | "invalid";
657
+ validate?: (value: string) => ValidationResult;
658
+ fullWidth?: boolean;
659
+ disableAnimation?: boolean;
660
+ min?: string;
661
+ max?: string;
662
+ classNames?: {
663
+ base?: string;
664
+ label?: string;
665
+ inputWrapper?: string;
666
+ innerWrapper?: string;
667
+ input?: string;
668
+ description?: string;
669
+ errorMessage?: string;
670
+ };
671
+ onChange?: (value: string) => void;
672
+ } & {
673
+ form?: string | undefined | undefined;
674
+ slot?: string | undefined | undefined;
675
+ style?: CSSProperties | undefined;
676
+ title?: string | undefined | undefined;
677
+ pattern?: string | undefined | undefined;
678
+ className?: string | undefined | undefined;
679
+ onClick?: MouseEventHandler<HTMLInputElement> | undefined;
680
+ "aria-label"?: string | undefined | undefined;
681
+ disabled?: boolean | undefined | undefined;
682
+ formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
683
+ formEncType?: string | undefined | undefined;
684
+ formMethod?: string | undefined | undefined;
685
+ formNoValidate?: boolean | undefined | undefined;
686
+ formTarget?: string | undefined | undefined;
687
+ name?: string | undefined | undefined;
688
+ defaultChecked?: boolean | undefined | undefined;
689
+ suppressContentEditableWarning?: boolean | undefined | undefined;
690
+ suppressHydrationWarning?: boolean | undefined | undefined;
691
+ accessKey?: string | undefined | undefined;
692
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
693
+ autoFocus?: boolean | undefined | undefined;
694
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
695
+ contextMenu?: string | undefined | undefined;
696
+ dir?: string | undefined | undefined;
697
+ draggable?: (boolean | "true" | "false") | undefined;
698
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
699
+ hidden?: boolean | undefined | undefined;
700
+ id?: string | undefined | undefined;
701
+ lang?: string | undefined | undefined;
702
+ nonce?: string | undefined | undefined;
703
+ spellCheck?: (boolean | "true" | "false") | undefined;
704
+ tabIndex?: number | undefined | undefined;
705
+ translate?: "yes" | "no" | undefined | undefined;
706
+ radioGroup?: string | undefined | undefined;
707
+ role?: AriaRole | undefined;
708
+ about?: string | undefined | undefined;
709
+ content?: string | undefined | undefined;
710
+ datatype?: string | undefined | undefined;
711
+ inlist?: any;
712
+ prefix?: string | undefined | undefined;
713
+ property?: string | undefined | undefined;
714
+ rel?: string | undefined | undefined;
715
+ resource?: string | undefined | undefined;
716
+ rev?: string | undefined | undefined;
717
+ typeof?: string | undefined | undefined;
718
+ vocab?: string | undefined | undefined;
719
+ autoCorrect?: string | undefined | undefined;
720
+ autoSave?: string | undefined | undefined;
721
+ itemProp?: string | undefined | undefined;
722
+ itemScope?: boolean | undefined | undefined;
723
+ itemType?: string | undefined | undefined;
724
+ itemID?: string | undefined | undefined;
725
+ itemRef?: string | undefined | undefined;
726
+ results?: number | undefined | undefined;
727
+ security?: string | undefined | undefined;
728
+ unselectable?: "on" | "off" | undefined | undefined;
729
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
730
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
731
+ popoverTarget?: string | undefined | undefined;
732
+ inert?: boolean | undefined | undefined;
733
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
734
+ is?: string | undefined | undefined;
735
+ exportparts?: string | undefined | undefined;
736
+ part?: string | undefined | undefined;
737
+ "aria-activedescendant"?: string | undefined | undefined;
738
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
739
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
740
+ "aria-braillelabel"?: string | undefined | undefined;
741
+ "aria-brailleroledescription"?: string | undefined | undefined;
742
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
743
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
744
+ "aria-colcount"?: number | undefined | undefined;
745
+ "aria-colindex"?: number | undefined | undefined;
746
+ "aria-colindextext"?: string | undefined | undefined;
747
+ "aria-colspan"?: number | undefined | undefined;
748
+ "aria-controls"?: string | undefined | undefined;
749
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
750
+ "aria-describedby"?: string | undefined | undefined;
751
+ "aria-description"?: string | undefined | undefined;
752
+ "aria-details"?: string | undefined | undefined;
753
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
754
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
755
+ "aria-errormessage"?: string | undefined | undefined;
756
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
757
+ "aria-flowto"?: string | undefined | undefined;
758
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
759
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
760
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
761
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
762
+ "aria-keyshortcuts"?: string | undefined | undefined;
763
+ "aria-labelledby"?: string | undefined | undefined;
764
+ "aria-level"?: number | undefined | undefined;
765
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
766
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
767
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
768
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
769
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
770
+ "aria-owns"?: string | undefined | undefined;
771
+ "aria-placeholder"?: string | undefined | undefined;
772
+ "aria-posinset"?: number | undefined | undefined;
773
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
774
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
775
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
776
+ "aria-required"?: (boolean | "true" | "false") | undefined;
777
+ "aria-roledescription"?: string | undefined | undefined;
778
+ "aria-rowcount"?: number | undefined | undefined;
779
+ "aria-rowindex"?: number | undefined | undefined;
780
+ "aria-rowindextext"?: string | undefined | undefined;
781
+ "aria-rowspan"?: number | undefined | undefined;
782
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
783
+ "aria-setsize"?: number | undefined | undefined;
784
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
785
+ "aria-valuemax"?: number | undefined | undefined;
786
+ "aria-valuemin"?: number | undefined | undefined;
787
+ "aria-valuenow"?: number | undefined | undefined;
788
+ "aria-valuetext"?: string | undefined | undefined;
789
+ dangerouslySetInnerHTML?: {
790
+ __html: string | TrustedHTML;
791
+ } | undefined | undefined;
792
+ onCopy?: ClipboardEventHandler<HTMLInputElement> | undefined;
793
+ onCopyCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
794
+ onCut?: ClipboardEventHandler<HTMLInputElement> | undefined;
795
+ onCutCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
796
+ onPaste?: ClipboardEventHandler<HTMLInputElement> | undefined;
797
+ onPasteCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
798
+ onCompositionEnd?: CompositionEventHandler<HTMLInputElement> | undefined;
799
+ onCompositionEndCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
800
+ onCompositionStart?: CompositionEventHandler<HTMLInputElement> | undefined;
801
+ onCompositionStartCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
802
+ onCompositionUpdate?: CompositionEventHandler<HTMLInputElement> | undefined;
803
+ onCompositionUpdateCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
804
+ onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
805
+ onFocusCapture?: FocusEventHandler<HTMLInputElement> | undefined;
806
+ onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
807
+ onBlurCapture?: FocusEventHandler<HTMLInputElement> | undefined;
808
+ onChangeCapture?: FormEventHandler<HTMLInputElement> | undefined;
809
+ onBeforeInput?: InputEventHandler<HTMLInputElement> | undefined;
810
+ onBeforeInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
811
+ onInput?: FormEventHandler<HTMLInputElement> | undefined;
812
+ onInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
813
+ onReset?: FormEventHandler<HTMLInputElement> | undefined;
814
+ onResetCapture?: FormEventHandler<HTMLInputElement> | undefined;
815
+ onSubmit?: FormEventHandler<HTMLInputElement> | undefined;
816
+ onSubmitCapture?: FormEventHandler<HTMLInputElement> | undefined;
817
+ onInvalid?: FormEventHandler<HTMLInputElement> | undefined;
818
+ onInvalidCapture?: FormEventHandler<HTMLInputElement> | undefined;
819
+ onLoad?: ReactEventHandler<HTMLInputElement> | undefined;
820
+ onLoadCapture?: ReactEventHandler<HTMLInputElement> | undefined;
821
+ onError?: ReactEventHandler<HTMLInputElement> | undefined;
822
+ onErrorCapture?: ReactEventHandler<HTMLInputElement> | undefined;
823
+ onKeyDown?: KeyboardEventHandler<HTMLInputElement> | undefined;
824
+ onKeyDownCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
825
+ onKeyPress?: KeyboardEventHandler<HTMLInputElement> | undefined;
826
+ onKeyPressCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
827
+ onKeyUp?: KeyboardEventHandler<HTMLInputElement> | undefined;
828
+ onKeyUpCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
829
+ onAbort?: ReactEventHandler<HTMLInputElement> | undefined;
830
+ onAbortCapture?: ReactEventHandler<HTMLInputElement> | undefined;
831
+ onCanPlay?: ReactEventHandler<HTMLInputElement> | undefined;
832
+ onCanPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
833
+ onCanPlayThrough?: ReactEventHandler<HTMLInputElement> | undefined;
834
+ onCanPlayThroughCapture?: ReactEventHandler<HTMLInputElement> | undefined;
835
+ onDurationChange?: ReactEventHandler<HTMLInputElement> | undefined;
836
+ onDurationChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
837
+ onEmptied?: ReactEventHandler<HTMLInputElement> | undefined;
838
+ onEmptiedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
839
+ onEncrypted?: ReactEventHandler<HTMLInputElement> | undefined;
840
+ onEncryptedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
841
+ onEnded?: ReactEventHandler<HTMLInputElement> | undefined;
842
+ onEndedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
843
+ onLoadedData?: ReactEventHandler<HTMLInputElement> | undefined;
844
+ onLoadedDataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
845
+ onLoadedMetadata?: ReactEventHandler<HTMLInputElement> | undefined;
846
+ onLoadedMetadataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
847
+ onLoadStart?: ReactEventHandler<HTMLInputElement> | undefined;
848
+ onLoadStartCapture?: ReactEventHandler<HTMLInputElement> | undefined;
849
+ onPause?: ReactEventHandler<HTMLInputElement> | undefined;
850
+ onPauseCapture?: ReactEventHandler<HTMLInputElement> | undefined;
851
+ onPlay?: ReactEventHandler<HTMLInputElement> | undefined;
852
+ onPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
853
+ onPlaying?: ReactEventHandler<HTMLInputElement> | undefined;
854
+ onPlayingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
855
+ onProgress?: ReactEventHandler<HTMLInputElement> | undefined;
856
+ onProgressCapture?: ReactEventHandler<HTMLInputElement> | undefined;
857
+ onRateChange?: ReactEventHandler<HTMLInputElement> | undefined;
858
+ onRateChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
859
+ onSeeked?: ReactEventHandler<HTMLInputElement> | undefined;
860
+ onSeekedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
861
+ onSeeking?: ReactEventHandler<HTMLInputElement> | undefined;
862
+ onSeekingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
863
+ onStalled?: ReactEventHandler<HTMLInputElement> | undefined;
864
+ onStalledCapture?: ReactEventHandler<HTMLInputElement> | undefined;
865
+ onSuspend?: ReactEventHandler<HTMLInputElement> | undefined;
866
+ onSuspendCapture?: ReactEventHandler<HTMLInputElement> | undefined;
867
+ onTimeUpdate?: ReactEventHandler<HTMLInputElement> | undefined;
868
+ onTimeUpdateCapture?: ReactEventHandler<HTMLInputElement> | undefined;
869
+ onVolumeChange?: ReactEventHandler<HTMLInputElement> | undefined;
870
+ onVolumeChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
871
+ onWaiting?: ReactEventHandler<HTMLInputElement> | undefined;
872
+ onWaitingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
873
+ onAuxClick?: MouseEventHandler<HTMLInputElement> | undefined;
874
+ onAuxClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
875
+ onClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
876
+ onContextMenu?: MouseEventHandler<HTMLInputElement> | undefined;
877
+ onContextMenuCapture?: MouseEventHandler<HTMLInputElement> | undefined;
878
+ onDoubleClick?: MouseEventHandler<HTMLInputElement> | undefined;
879
+ onDoubleClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
880
+ onDrag?: DragEventHandler<HTMLInputElement> | undefined;
881
+ onDragCapture?: DragEventHandler<HTMLInputElement> | undefined;
882
+ onDragEnd?: DragEventHandler<HTMLInputElement> | undefined;
883
+ onDragEndCapture?: DragEventHandler<HTMLInputElement> | undefined;
884
+ onDragEnter?: DragEventHandler<HTMLInputElement> | undefined;
885
+ onDragEnterCapture?: DragEventHandler<HTMLInputElement> | undefined;
886
+ onDragExit?: DragEventHandler<HTMLInputElement> | undefined;
887
+ onDragExitCapture?: DragEventHandler<HTMLInputElement> | undefined;
888
+ onDragLeave?: DragEventHandler<HTMLInputElement> | undefined;
889
+ onDragLeaveCapture?: DragEventHandler<HTMLInputElement> | undefined;
890
+ onDragOver?: DragEventHandler<HTMLInputElement> | undefined;
891
+ onDragOverCapture?: DragEventHandler<HTMLInputElement> | undefined;
892
+ onDragStart?: DragEventHandler<HTMLInputElement> | undefined;
893
+ onDragStartCapture?: DragEventHandler<HTMLInputElement> | undefined;
894
+ onDrop?: DragEventHandler<HTMLInputElement> | undefined;
895
+ onDropCapture?: DragEventHandler<HTMLInputElement> | undefined;
896
+ onMouseDown?: MouseEventHandler<HTMLInputElement> | undefined;
897
+ onMouseDownCapture?: MouseEventHandler<HTMLInputElement> | undefined;
898
+ onMouseEnter?: MouseEventHandler<HTMLInputElement> | undefined;
899
+ onMouseLeave?: MouseEventHandler<HTMLInputElement> | undefined;
900
+ onMouseMove?: MouseEventHandler<HTMLInputElement> | undefined;
901
+ onMouseMoveCapture?: MouseEventHandler<HTMLInputElement> | undefined;
902
+ onMouseOut?: MouseEventHandler<HTMLInputElement> | undefined;
903
+ onMouseOutCapture?: MouseEventHandler<HTMLInputElement> | undefined;
904
+ onMouseOver?: MouseEventHandler<HTMLInputElement> | undefined;
905
+ onMouseOverCapture?: MouseEventHandler<HTMLInputElement> | undefined;
906
+ onMouseUp?: MouseEventHandler<HTMLInputElement> | undefined;
907
+ onMouseUpCapture?: MouseEventHandler<HTMLInputElement> | undefined;
908
+ onSelect?: ReactEventHandler<HTMLInputElement> | undefined;
909
+ onSelectCapture?: ReactEventHandler<HTMLInputElement> | undefined;
910
+ onTouchCancel?: TouchEventHandler<HTMLInputElement> | undefined;
911
+ onTouchCancelCapture?: TouchEventHandler<HTMLInputElement> | undefined;
912
+ onTouchEnd?: TouchEventHandler<HTMLInputElement> | undefined;
913
+ onTouchEndCapture?: TouchEventHandler<HTMLInputElement> | undefined;
914
+ onTouchMove?: TouchEventHandler<HTMLInputElement> | undefined;
915
+ onTouchMoveCapture?: TouchEventHandler<HTMLInputElement> | undefined;
916
+ onTouchStart?: TouchEventHandler<HTMLInputElement> | undefined;
917
+ onTouchStartCapture?: TouchEventHandler<HTMLInputElement> | undefined;
918
+ onPointerDown?: PointerEventHandler<HTMLInputElement> | undefined;
919
+ onPointerDownCapture?: PointerEventHandler<HTMLInputElement> | undefined;
920
+ onPointerMove?: PointerEventHandler<HTMLInputElement> | undefined;
921
+ onPointerMoveCapture?: PointerEventHandler<HTMLInputElement> | undefined;
922
+ onPointerUp?: PointerEventHandler<HTMLInputElement> | undefined;
923
+ onPointerUpCapture?: PointerEventHandler<HTMLInputElement> | undefined;
924
+ onPointerCancel?: PointerEventHandler<HTMLInputElement> | undefined;
925
+ onPointerCancelCapture?: PointerEventHandler<HTMLInputElement> | undefined;
926
+ onPointerEnter?: PointerEventHandler<HTMLInputElement> | undefined;
927
+ onPointerLeave?: PointerEventHandler<HTMLInputElement> | undefined;
928
+ onPointerOver?: PointerEventHandler<HTMLInputElement> | undefined;
929
+ onPointerOverCapture?: PointerEventHandler<HTMLInputElement> | undefined;
930
+ onPointerOut?: PointerEventHandler<HTMLInputElement> | undefined;
931
+ onPointerOutCapture?: PointerEventHandler<HTMLInputElement> | undefined;
932
+ onGotPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
933
+ onGotPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
934
+ onLostPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
935
+ onLostPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
936
+ onScroll?: UIEventHandler<HTMLInputElement> | undefined;
937
+ onScrollCapture?: UIEventHandler<HTMLInputElement> | undefined;
938
+ onScrollEnd?: UIEventHandler<HTMLInputElement> | undefined;
939
+ onScrollEndCapture?: UIEventHandler<HTMLInputElement> | undefined;
940
+ onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
941
+ onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
942
+ onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
943
+ onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
944
+ onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
945
+ onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
946
+ onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
947
+ onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
948
+ onToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
949
+ onBeforeToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
950
+ onTransitionCancel?: TransitionEventHandler<HTMLInputElement> | undefined;
951
+ onTransitionCancelCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
952
+ onTransitionEnd?: TransitionEventHandler<HTMLInputElement> | undefined;
953
+ onTransitionEndCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
954
+ onTransitionRun?: TransitionEventHandler<HTMLInputElement> | undefined;
955
+ onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
956
+ onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
957
+ onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
958
+ multiple?: boolean | undefined | undefined;
959
+ list?: string | undefined | undefined;
960
+ accept?: string | undefined | undefined;
961
+ width?: number | string | undefined | undefined;
962
+ height?: number | string | undefined | undefined;
963
+ checked?: boolean | undefined | undefined;
964
+ max?: number | string | undefined | undefined;
965
+ min?: number | string | undefined | undefined;
966
+ alt?: string | undefined | undefined;
967
+ autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
968
+ capture?: boolean | "user" | "environment" | undefined | undefined;
969
+ maxLength?: number | undefined | undefined;
970
+ minLength?: number | undefined | undefined;
971
+ placeholder?: string | undefined | undefined;
972
+ readOnly?: boolean | undefined | undefined;
973
+ required?: boolean | undefined | undefined;
974
+ src?: string | undefined | undefined;
975
+ step?: number | string | undefined | undefined;
976
+ } & RefAttributes<HTMLInputElement>>;
977
+
978
+ /**
979
+ * Props del componente InputDate
980
+ * @description Input de fecha usando el selector nativo del navegador
981
+ */
982
+ export declare type InputDateProps = {
983
+ /** Variante visual del input */
984
+ variant?: InputVariant;
985
+ /** Color temático del input */
986
+ color?: InputColor;
987
+ /** Tamaño del input */
988
+ size?: InputSize;
989
+ /** Radio de bordes del input */
990
+ radius?: InputRadius;
991
+ /** Etiqueta del campo */
992
+ label?: ReactNode;
993
+ /** Placeholder del input */
994
+ placeholder?: string;
995
+ /** Valor controlado (string ISO: YYYY-MM-DD) */
996
+ value?: string;
997
+ /** Valor inicial no controlado */
998
+ defaultValue?: string;
999
+ /** Descripción o texto de ayuda */
1000
+ description?: ReactNode;
1001
+ /** Mensaje de error personalizado */
1002
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
1003
+ /** Contenido al inicio del input */
1004
+ startContent?: ReactNode;
1005
+ /** Si el campo es requerido */
1006
+ isRequired?: boolean;
1007
+ /** Si el campo es de solo lectura */
1008
+ isReadOnly?: boolean;
1009
+ /** Si el campo está deshabilitado */
1010
+ isDisabled?: boolean;
1011
+ /** Si el campo es inválido */
1012
+ isInvalid?: boolean;
1013
+ /** Estado de validación manual */
1014
+ validationState?: 'valid' | 'invalid';
1015
+ /** Función de validación personalizada */
1016
+ validate?: (value: string) => ValidationResult;
1017
+ /** Si el input ocupa todo el ancho */
1018
+ fullWidth?: boolean;
1019
+ /** Deshabilita animaciones */
1020
+ disableAnimation?: boolean;
1021
+ /** Fecha mínima seleccionable (YYYY-MM-DD) */
1022
+ min?: string;
1023
+ /** Fecha máxima seleccionable (YYYY-MM-DD) */
1024
+ max?: string;
1025
+ /** Clases CSS personalizadas */
1026
+ classNames?: {
1027
+ base?: string;
1028
+ label?: string;
1029
+ inputWrapper?: string;
1030
+ innerWrapper?: string;
1031
+ input?: string;
1032
+ description?: string;
1033
+ errorMessage?: string;
1034
+ };
1035
+ /** Callback cuando cambia la fecha */
1036
+ onChange?: (value: string) => void;
1037
+ } & NativeInputProps_3;
1038
+
1039
+ export declare const InputNumeric: ForwardRefExoticComponent< {
1040
+ variant?: InputVariant;
1041
+ color?: InputColor;
1042
+ size?: InputSize;
1043
+ radius?: InputRadius;
1044
+ label?: ReactNode;
1045
+ placeholder?: string;
1046
+ value?: number | "";
1047
+ defaultValue?: number;
1048
+ description?: ReactNode;
1049
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
1050
+ startContent?: ReactNode;
1051
+ endContent?: ReactNode;
1052
+ isRequired?: boolean;
1053
+ isReadOnly?: boolean;
1054
+ isDisabled?: boolean;
1055
+ isInvalid?: boolean;
1056
+ validationState?: "valid" | "invalid";
1057
+ validate?: (value: number | undefined) => ValidationResult;
1058
+ fullWidth?: boolean;
1059
+ disableAnimation?: boolean;
1060
+ min?: number;
1061
+ max?: number;
1062
+ step?: number;
1063
+ decimalScale?: number;
1064
+ fixedDecimalScale?: boolean;
1065
+ thousandSeparator?: string | boolean;
1066
+ decimalSeparator?: string;
1067
+ prefix?: string;
1068
+ suffix?: string;
1069
+ allowNegative?: boolean;
1070
+ allowDecimal?: boolean;
1071
+ hideControls?: boolean;
1072
+ clampBehavior?: "strict" | "blur" | "none";
1073
+ classNames?: {
1074
+ base?: string;
1075
+ label?: string;
1076
+ inputWrapper?: string;
1077
+ innerWrapper?: string;
1078
+ input?: string;
1079
+ controls?: string;
1080
+ controlButton?: string;
1081
+ description?: string;
1082
+ errorMessage?: string;
1083
+ };
1084
+ onChange?: (value: number | undefined) => void;
1085
+ onValueChange?: (formattedValue: string, value: number | undefined) => void;
1086
+ } & {
1087
+ form?: string | undefined | undefined;
1088
+ slot?: string | undefined | undefined;
1089
+ style?: CSSProperties | undefined;
1090
+ title?: string | undefined | undefined;
1091
+ pattern?: string | undefined | undefined;
1092
+ className?: string | undefined | undefined;
1093
+ onClick?: MouseEventHandler<HTMLInputElement> | undefined;
1094
+ "aria-label"?: string | undefined | undefined;
1095
+ disabled?: boolean | undefined | undefined;
1096
+ formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
1097
+ formEncType?: string | undefined | undefined;
1098
+ formMethod?: string | undefined | undefined;
1099
+ formNoValidate?: boolean | undefined | undefined;
1100
+ formTarget?: string | undefined | undefined;
1101
+ name?: string | undefined | undefined;
1102
+ defaultChecked?: boolean | undefined | undefined;
1103
+ suppressContentEditableWarning?: boolean | undefined | undefined;
1104
+ suppressHydrationWarning?: boolean | undefined | undefined;
1105
+ accessKey?: string | undefined | undefined;
1106
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
1107
+ autoFocus?: boolean | undefined | undefined;
1108
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
1109
+ contextMenu?: string | undefined | undefined;
1110
+ dir?: string | undefined | undefined;
1111
+ draggable?: (boolean | "true" | "false") | undefined;
1112
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
1113
+ hidden?: boolean | undefined | undefined;
1114
+ id?: string | undefined | undefined;
1115
+ lang?: string | undefined | undefined;
1116
+ nonce?: string | undefined | undefined;
1117
+ spellCheck?: (boolean | "true" | "false") | undefined;
1118
+ tabIndex?: number | undefined | undefined;
1119
+ translate?: "yes" | "no" | undefined | undefined;
1120
+ radioGroup?: string | undefined | undefined;
1121
+ role?: AriaRole | undefined;
1122
+ about?: string | undefined | undefined;
1123
+ content?: string | undefined | undefined;
1124
+ datatype?: string | undefined | undefined;
1125
+ inlist?: any;
1126
+ prefix?: string | undefined | undefined;
1127
+ property?: string | undefined | undefined;
1128
+ rel?: string | undefined | undefined;
1129
+ resource?: string | undefined | undefined;
1130
+ rev?: string | undefined | undefined;
1131
+ typeof?: string | undefined | undefined;
1132
+ vocab?: string | undefined | undefined;
1133
+ autoCorrect?: string | undefined | undefined;
1134
+ autoSave?: string | undefined | undefined;
1135
+ itemProp?: string | undefined | undefined;
1136
+ itemScope?: boolean | undefined | undefined;
1137
+ itemType?: string | undefined | undefined;
1138
+ itemID?: string | undefined | undefined;
1139
+ itemRef?: string | undefined | undefined;
1140
+ results?: number | undefined | undefined;
1141
+ security?: string | undefined | undefined;
1142
+ unselectable?: "on" | "off" | undefined | undefined;
1143
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
1144
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
1145
+ popoverTarget?: string | undefined | undefined;
1146
+ inert?: boolean | undefined | undefined;
1147
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
1148
+ is?: string | undefined | undefined;
1149
+ exportparts?: string | undefined | undefined;
1150
+ part?: string | undefined | undefined;
1151
+ "aria-activedescendant"?: string | undefined | undefined;
1152
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
1153
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
1154
+ "aria-braillelabel"?: string | undefined | undefined;
1155
+ "aria-brailleroledescription"?: string | undefined | undefined;
1156
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
1157
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
1158
+ "aria-colcount"?: number | undefined | undefined;
1159
+ "aria-colindex"?: number | undefined | undefined;
1160
+ "aria-colindextext"?: string | undefined | undefined;
1161
+ "aria-colspan"?: number | undefined | undefined;
1162
+ "aria-controls"?: string | undefined | undefined;
1163
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
1164
+ "aria-describedby"?: string | undefined | undefined;
1165
+ "aria-description"?: string | undefined | undefined;
1166
+ "aria-details"?: string | undefined | undefined;
1167
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
1168
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
1169
+ "aria-errormessage"?: string | undefined | undefined;
1170
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
1171
+ "aria-flowto"?: string | undefined | undefined;
1172
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
1173
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
1174
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
1175
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
1176
+ "aria-keyshortcuts"?: string | undefined | undefined;
1177
+ "aria-labelledby"?: string | undefined | undefined;
1178
+ "aria-level"?: number | undefined | undefined;
1179
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
1180
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
1181
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
1182
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
1183
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
1184
+ "aria-owns"?: string | undefined | undefined;
1185
+ "aria-placeholder"?: string | undefined | undefined;
1186
+ "aria-posinset"?: number | undefined | undefined;
1187
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
1188
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
1189
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
1190
+ "aria-required"?: (boolean | "true" | "false") | undefined;
1191
+ "aria-roledescription"?: string | undefined | undefined;
1192
+ "aria-rowcount"?: number | undefined | undefined;
1193
+ "aria-rowindex"?: number | undefined | undefined;
1194
+ "aria-rowindextext"?: string | undefined | undefined;
1195
+ "aria-rowspan"?: number | undefined | undefined;
1196
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
1197
+ "aria-setsize"?: number | undefined | undefined;
1198
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
1199
+ "aria-valuemax"?: number | undefined | undefined;
1200
+ "aria-valuemin"?: number | undefined | undefined;
1201
+ "aria-valuenow"?: number | undefined | undefined;
1202
+ "aria-valuetext"?: string | undefined | undefined;
1203
+ dangerouslySetInnerHTML?: {
1204
+ __html: string | TrustedHTML;
1205
+ } | undefined | undefined;
1206
+ onCopy?: ClipboardEventHandler<HTMLInputElement> | undefined;
1207
+ onCopyCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
1208
+ onCut?: ClipboardEventHandler<HTMLInputElement> | undefined;
1209
+ onCutCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
1210
+ onPaste?: ClipboardEventHandler<HTMLInputElement> | undefined;
1211
+ onPasteCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
1212
+ onCompositionEnd?: CompositionEventHandler<HTMLInputElement> | undefined;
1213
+ onCompositionEndCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
1214
+ onCompositionStart?: CompositionEventHandler<HTMLInputElement> | undefined;
1215
+ onCompositionStartCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
1216
+ onCompositionUpdate?: CompositionEventHandler<HTMLInputElement> | undefined;
1217
+ onCompositionUpdateCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
1218
+ onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
1219
+ onFocusCapture?: FocusEventHandler<HTMLInputElement> | undefined;
1220
+ onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
1221
+ onBlurCapture?: FocusEventHandler<HTMLInputElement> | undefined;
1222
+ onChangeCapture?: FormEventHandler<HTMLInputElement> | undefined;
1223
+ onBeforeInput?: InputEventHandler<HTMLInputElement> | undefined;
1224
+ onBeforeInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
1225
+ onInput?: FormEventHandler<HTMLInputElement> | undefined;
1226
+ onInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
1227
+ onReset?: FormEventHandler<HTMLInputElement> | undefined;
1228
+ onResetCapture?: FormEventHandler<HTMLInputElement> | undefined;
1229
+ onSubmit?: FormEventHandler<HTMLInputElement> | undefined;
1230
+ onSubmitCapture?: FormEventHandler<HTMLInputElement> | undefined;
1231
+ onInvalid?: FormEventHandler<HTMLInputElement> | undefined;
1232
+ onInvalidCapture?: FormEventHandler<HTMLInputElement> | undefined;
1233
+ onLoad?: ReactEventHandler<HTMLInputElement> | undefined;
1234
+ onLoadCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1235
+ onError?: ReactEventHandler<HTMLInputElement> | undefined;
1236
+ onErrorCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1237
+ onKeyDown?: KeyboardEventHandler<HTMLInputElement> | undefined;
1238
+ onKeyDownCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
1239
+ onKeyPress?: KeyboardEventHandler<HTMLInputElement> | undefined;
1240
+ onKeyPressCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
1241
+ onKeyUp?: KeyboardEventHandler<HTMLInputElement> | undefined;
1242
+ onKeyUpCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
1243
+ onAbort?: ReactEventHandler<HTMLInputElement> | undefined;
1244
+ onAbortCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1245
+ onCanPlay?: ReactEventHandler<HTMLInputElement> | undefined;
1246
+ onCanPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1247
+ onCanPlayThrough?: ReactEventHandler<HTMLInputElement> | undefined;
1248
+ onCanPlayThroughCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1249
+ onDurationChange?: ReactEventHandler<HTMLInputElement> | undefined;
1250
+ onDurationChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1251
+ onEmptied?: ReactEventHandler<HTMLInputElement> | undefined;
1252
+ onEmptiedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1253
+ onEncrypted?: ReactEventHandler<HTMLInputElement> | undefined;
1254
+ onEncryptedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1255
+ onEnded?: ReactEventHandler<HTMLInputElement> | undefined;
1256
+ onEndedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1257
+ onLoadedData?: ReactEventHandler<HTMLInputElement> | undefined;
1258
+ onLoadedDataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1259
+ onLoadedMetadata?: ReactEventHandler<HTMLInputElement> | undefined;
1260
+ onLoadedMetadataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1261
+ onLoadStart?: ReactEventHandler<HTMLInputElement> | undefined;
1262
+ onLoadStartCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1263
+ onPause?: ReactEventHandler<HTMLInputElement> | undefined;
1264
+ onPauseCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1265
+ onPlay?: ReactEventHandler<HTMLInputElement> | undefined;
1266
+ onPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1267
+ onPlaying?: ReactEventHandler<HTMLInputElement> | undefined;
1268
+ onPlayingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1269
+ onProgress?: ReactEventHandler<HTMLInputElement> | undefined;
1270
+ onProgressCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1271
+ onRateChange?: ReactEventHandler<HTMLInputElement> | undefined;
1272
+ onRateChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1273
+ onSeeked?: ReactEventHandler<HTMLInputElement> | undefined;
1274
+ onSeekedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1275
+ onSeeking?: ReactEventHandler<HTMLInputElement> | undefined;
1276
+ onSeekingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1277
+ onStalled?: ReactEventHandler<HTMLInputElement> | undefined;
1278
+ onStalledCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1279
+ onSuspend?: ReactEventHandler<HTMLInputElement> | undefined;
1280
+ onSuspendCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1281
+ onTimeUpdate?: ReactEventHandler<HTMLInputElement> | undefined;
1282
+ onTimeUpdateCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1283
+ onVolumeChange?: ReactEventHandler<HTMLInputElement> | undefined;
1284
+ onVolumeChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1285
+ onWaiting?: ReactEventHandler<HTMLInputElement> | undefined;
1286
+ onWaitingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1287
+ onAuxClick?: MouseEventHandler<HTMLInputElement> | undefined;
1288
+ onAuxClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1289
+ onClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1290
+ onContextMenu?: MouseEventHandler<HTMLInputElement> | undefined;
1291
+ onContextMenuCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1292
+ onDoubleClick?: MouseEventHandler<HTMLInputElement> | undefined;
1293
+ onDoubleClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1294
+ onDrag?: DragEventHandler<HTMLInputElement> | undefined;
1295
+ onDragCapture?: DragEventHandler<HTMLInputElement> | undefined;
1296
+ onDragEnd?: DragEventHandler<HTMLInputElement> | undefined;
1297
+ onDragEndCapture?: DragEventHandler<HTMLInputElement> | undefined;
1298
+ onDragEnter?: DragEventHandler<HTMLInputElement> | undefined;
1299
+ onDragEnterCapture?: DragEventHandler<HTMLInputElement> | undefined;
1300
+ onDragExit?: DragEventHandler<HTMLInputElement> | undefined;
1301
+ onDragExitCapture?: DragEventHandler<HTMLInputElement> | undefined;
1302
+ onDragLeave?: DragEventHandler<HTMLInputElement> | undefined;
1303
+ onDragLeaveCapture?: DragEventHandler<HTMLInputElement> | undefined;
1304
+ onDragOver?: DragEventHandler<HTMLInputElement> | undefined;
1305
+ onDragOverCapture?: DragEventHandler<HTMLInputElement> | undefined;
1306
+ onDragStart?: DragEventHandler<HTMLInputElement> | undefined;
1307
+ onDragStartCapture?: DragEventHandler<HTMLInputElement> | undefined;
1308
+ onDrop?: DragEventHandler<HTMLInputElement> | undefined;
1309
+ onDropCapture?: DragEventHandler<HTMLInputElement> | undefined;
1310
+ onMouseDown?: MouseEventHandler<HTMLInputElement> | undefined;
1311
+ onMouseDownCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1312
+ onMouseEnter?: MouseEventHandler<HTMLInputElement> | undefined;
1313
+ onMouseLeave?: MouseEventHandler<HTMLInputElement> | undefined;
1314
+ onMouseMove?: MouseEventHandler<HTMLInputElement> | undefined;
1315
+ onMouseMoveCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1316
+ onMouseOut?: MouseEventHandler<HTMLInputElement> | undefined;
1317
+ onMouseOutCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1318
+ onMouseOver?: MouseEventHandler<HTMLInputElement> | undefined;
1319
+ onMouseOverCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1320
+ onMouseUp?: MouseEventHandler<HTMLInputElement> | undefined;
1321
+ onMouseUpCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1322
+ onSelect?: ReactEventHandler<HTMLInputElement> | undefined;
1323
+ onSelectCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1324
+ onTouchCancel?: TouchEventHandler<HTMLInputElement> | undefined;
1325
+ onTouchCancelCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1326
+ onTouchEnd?: TouchEventHandler<HTMLInputElement> | undefined;
1327
+ onTouchEndCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1328
+ onTouchMove?: TouchEventHandler<HTMLInputElement> | undefined;
1329
+ onTouchMoveCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1330
+ onTouchStart?: TouchEventHandler<HTMLInputElement> | undefined;
1331
+ onTouchStartCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1332
+ onPointerDown?: PointerEventHandler<HTMLInputElement> | undefined;
1333
+ onPointerDownCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1334
+ onPointerMove?: PointerEventHandler<HTMLInputElement> | undefined;
1335
+ onPointerMoveCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1336
+ onPointerUp?: PointerEventHandler<HTMLInputElement> | undefined;
1337
+ onPointerUpCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1338
+ onPointerCancel?: PointerEventHandler<HTMLInputElement> | undefined;
1339
+ onPointerCancelCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1340
+ onPointerEnter?: PointerEventHandler<HTMLInputElement> | undefined;
1341
+ onPointerLeave?: PointerEventHandler<HTMLInputElement> | undefined;
1342
+ onPointerOver?: PointerEventHandler<HTMLInputElement> | undefined;
1343
+ onPointerOverCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1344
+ onPointerOut?: PointerEventHandler<HTMLInputElement> | undefined;
1345
+ onPointerOutCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1346
+ onGotPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1347
+ onGotPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1348
+ onLostPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1349
+ onLostPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1350
+ onScroll?: UIEventHandler<HTMLInputElement> | undefined;
1351
+ onScrollCapture?: UIEventHandler<HTMLInputElement> | undefined;
1352
+ onScrollEnd?: UIEventHandler<HTMLInputElement> | undefined;
1353
+ onScrollEndCapture?: UIEventHandler<HTMLInputElement> | undefined;
1354
+ onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
1355
+ onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
1356
+ onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
1357
+ onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
1358
+ onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
1359
+ onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
1360
+ onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
1361
+ onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
1362
+ onToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
1363
+ onBeforeToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
1364
+ onTransitionCancel?: TransitionEventHandler<HTMLInputElement> | undefined;
1365
+ onTransitionCancelCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1366
+ onTransitionEnd?: TransitionEventHandler<HTMLInputElement> | undefined;
1367
+ onTransitionEndCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1368
+ onTransitionRun?: TransitionEventHandler<HTMLInputElement> | undefined;
1369
+ onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1370
+ onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
1371
+ onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1372
+ multiple?: boolean | undefined | undefined;
1373
+ list?: string | undefined | undefined;
1374
+ accept?: string | undefined | undefined;
1375
+ width?: number | string | undefined | undefined;
1376
+ height?: number | string | undefined | undefined;
1377
+ checked?: boolean | undefined | undefined;
1378
+ alt?: string | undefined | undefined;
1379
+ autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
1380
+ capture?: boolean | "user" | "environment" | undefined | undefined;
1381
+ maxLength?: number | undefined | undefined;
1382
+ minLength?: number | undefined | undefined;
1383
+ placeholder?: string | undefined | undefined;
1384
+ readOnly?: boolean | undefined | undefined;
1385
+ required?: boolean | undefined | undefined;
1386
+ src?: string | undefined | undefined;
1387
+ } & RefAttributes<HTMLInputElement>>;
1388
+
1389
+ /**
1390
+ * Props del componente InputNumeric
1391
+ * @description Input numérico con soporte para decimales, separadores de miles y controles de incremento/decremento
1392
+ */
1393
+ export declare type InputNumericProps = {
1394
+ /** Variante visual del input */
1395
+ variant?: InputVariant;
1396
+ /** Color temático del input (afecta el borde en focus) */
1397
+ color?: InputColor;
1398
+ /** Tamaño del input */
1399
+ size?: InputSize;
1400
+ /** Radio de bordes del input */
1401
+ radius?: InputRadius;
1402
+ /** Etiqueta del campo */
1403
+ label?: ReactNode;
1404
+ /** Placeholder del input */
1405
+ placeholder?: string;
1406
+ /** Valor controlado del input (número o undefined para no controlado) */
1407
+ value?: number | '';
1408
+ /** Valor inicial no controlado */
1409
+ defaultValue?: number;
1410
+ /** Descripción o texto de ayuda */
1411
+ description?: ReactNode;
1412
+ /** Mensaje de error personalizado */
1413
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
1414
+ /** Contenido al inicio del input (iconos, prefijos como $) */
1415
+ startContent?: ReactNode;
1416
+ /** Contenido al final del input (sufijos como kg, %) */
1417
+ endContent?: ReactNode;
1418
+ /** Si el campo es requerido */
1419
+ isRequired?: boolean;
1420
+ /** Si el campo es de solo lectura */
1421
+ isReadOnly?: boolean;
1422
+ /** Si el campo está deshabilitado */
1423
+ isDisabled?: boolean;
1424
+ /** Si el campo es inválido (override manual) */
1425
+ isInvalid?: boolean;
1426
+ /** Estado de validación manual */
1427
+ validationState?: 'valid' | 'invalid';
1428
+ /** Función de validación personalizada */
1429
+ validate?: (value: number | undefined) => ValidationResult;
1430
+ /** Si el input ocupa todo el ancho */
1431
+ fullWidth?: boolean;
1432
+ /** Deshabilita animaciones */
1433
+ disableAnimation?: boolean;
1434
+ /** Valor mínimo permitido */
1435
+ min?: number;
1436
+ /** Valor máximo permitido */
1437
+ max?: number;
1438
+ /** Incremento al usar flechas o botones (default: 1) */
1439
+ step?: number;
1440
+ /** Número de decimales fijos (si se especifica, siempre muestra esa cantidad) */
1441
+ decimalScale?: number;
1442
+ /** Si fija los decimales (siempre muestra decimalScale decimales) */
1443
+ fixedDecimalScale?: boolean;
1444
+ /** Separador de miles (default: ',') */
1445
+ thousandSeparator?: string | boolean;
1446
+ /** Separador decimal (default: '.') */
1447
+ decimalSeparator?: string;
1448
+ /** Prefijo a mostrar (ej: '$') */
1449
+ prefix?: string;
1450
+ /** Sufijo a mostrar (ej: '%') */
1451
+ suffix?: string;
1452
+ /** Si permite valores negativos (default: true) */
1453
+ allowNegative?: boolean;
1454
+ /** Si permite decimales (default: true) */
1455
+ allowDecimal?: boolean;
1456
+ /** Si muestra los botones de incremento/decremento (default: true) */
1457
+ hideControls?: boolean;
1458
+ /** Si fija el valor al min/max cuando se excede (default: true) */
1459
+ clampBehavior?: 'strict' | 'blur' | 'none';
1460
+ /** Clases CSS personalizadas para cada parte */
1461
+ classNames?: {
1462
+ base?: string;
1463
+ label?: string;
1464
+ inputWrapper?: string;
1465
+ innerWrapper?: string;
1466
+ input?: string;
1467
+ controls?: string;
1468
+ controlButton?: string;
1469
+ description?: string;
1470
+ errorMessage?: string;
1471
+ };
1472
+ /** Callback cuando cambia el valor numérico */
1473
+ onChange?: (value: number | undefined) => void;
1474
+ /** Callback cuando cambia el valor formateado (string) */
1475
+ onValueChange?: (formattedValue: string, value: number | undefined) => void;
1476
+ } & NativeInputProps_2;
1477
+
1478
+ export declare type InputRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
1479
+
1480
+ export declare type InputSize = 'sm' | 'md' | 'lg';
1481
+
1482
+ export declare const InputText: ForwardRefExoticComponent< {
1483
+ type?: InputType;
1484
+ variant?: InputVariant;
1485
+ color?: InputColor;
1486
+ size?: InputSize;
1487
+ radius?: InputRadius;
1488
+ label?: ReactNode;
1489
+ placeholder?: string;
1490
+ value?: string;
1491
+ defaultValue?: string;
1492
+ description?: ReactNode;
1493
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
1494
+ startContent?: ReactNode;
1495
+ endContent?: ReactNode;
1496
+ isRequired?: boolean;
1497
+ isReadOnly?: boolean;
1498
+ isDisabled?: boolean;
1499
+ isClearable?: boolean;
1500
+ isInvalid?: boolean;
1501
+ validationState?: "valid" | "invalid";
1502
+ validate?: (value: string) => ValidationResult;
1503
+ fullWidth?: boolean;
1504
+ disableAnimation?: boolean;
1505
+ classNames?: {
1506
+ base?: string;
1507
+ label?: string;
1508
+ inputWrapper?: string;
1509
+ innerWrapper?: string;
1510
+ input?: string;
1511
+ clearButton?: string;
1512
+ description?: string;
1513
+ errorMessage?: string;
1514
+ };
1515
+ onChange?: (value: string) => void;
1516
+ onClear?: () => void;
1517
+ onValueChange?: (value: string) => void;
1518
+ } & {
1519
+ form?: string | undefined | undefined;
1520
+ slot?: string | undefined | undefined;
1521
+ style?: CSSProperties | undefined;
1522
+ title?: string | undefined | undefined;
1523
+ pattern?: string | undefined | undefined;
1524
+ className?: string | undefined | undefined;
1525
+ onClick?: MouseEventHandler<HTMLInputElement> | undefined;
1526
+ "aria-label"?: string | undefined | undefined;
1527
+ disabled?: boolean | undefined | undefined;
1528
+ formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
1529
+ formEncType?: string | undefined | undefined;
1530
+ formMethod?: string | undefined | undefined;
1531
+ formNoValidate?: boolean | undefined | undefined;
1532
+ formTarget?: string | undefined | undefined;
1533
+ name?: string | undefined | undefined;
1534
+ value?: string | number | readonly string[] | undefined;
1535
+ defaultChecked?: boolean | undefined | undefined;
1536
+ defaultValue?: string | number | readonly string[] | undefined;
1537
+ suppressContentEditableWarning?: boolean | undefined | undefined;
1538
+ suppressHydrationWarning?: boolean | undefined | undefined;
1539
+ accessKey?: string | undefined | undefined;
1540
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
1541
+ autoFocus?: boolean | undefined | undefined;
1542
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
1543
+ contextMenu?: string | undefined | undefined;
1544
+ dir?: string | undefined | undefined;
1545
+ draggable?: (boolean | "true" | "false") | undefined;
1546
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
1547
+ hidden?: boolean | undefined | undefined;
1548
+ id?: string | undefined | undefined;
1549
+ lang?: string | undefined | undefined;
1550
+ nonce?: string | undefined | undefined;
1551
+ spellCheck?: (boolean | "true" | "false") | undefined;
1552
+ tabIndex?: number | undefined | undefined;
1553
+ translate?: "yes" | "no" | undefined | undefined;
1554
+ radioGroup?: string | undefined | undefined;
1555
+ role?: AriaRole | undefined;
1556
+ about?: string | undefined | undefined;
1557
+ content?: string | undefined | undefined;
1558
+ datatype?: string | undefined | undefined;
1559
+ inlist?: any;
1560
+ prefix?: string | undefined | undefined;
1561
+ property?: string | undefined | undefined;
1562
+ rel?: string | undefined | undefined;
1563
+ resource?: string | undefined | undefined;
1564
+ rev?: string | undefined | undefined;
1565
+ typeof?: string | undefined | undefined;
1566
+ vocab?: string | undefined | undefined;
1567
+ autoCorrect?: string | undefined | undefined;
1568
+ autoSave?: string | undefined | undefined;
1569
+ itemProp?: string | undefined | undefined;
1570
+ itemScope?: boolean | undefined | undefined;
1571
+ itemType?: string | undefined | undefined;
1572
+ itemID?: string | undefined | undefined;
1573
+ itemRef?: string | undefined | undefined;
1574
+ results?: number | undefined | undefined;
1575
+ security?: string | undefined | undefined;
1576
+ unselectable?: "on" | "off" | undefined | undefined;
1577
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
1578
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
1579
+ popoverTarget?: string | undefined | undefined;
1580
+ inert?: boolean | undefined | undefined;
1581
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
1582
+ is?: string | undefined | undefined;
1583
+ exportparts?: string | undefined | undefined;
1584
+ part?: string | undefined | undefined;
1585
+ "aria-activedescendant"?: string | undefined | undefined;
1586
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
1587
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
1588
+ "aria-braillelabel"?: string | undefined | undefined;
1589
+ "aria-brailleroledescription"?: string | undefined | undefined;
1590
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
1591
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
1592
+ "aria-colcount"?: number | undefined | undefined;
1593
+ "aria-colindex"?: number | undefined | undefined;
1594
+ "aria-colindextext"?: string | undefined | undefined;
1595
+ "aria-colspan"?: number | undefined | undefined;
1596
+ "aria-controls"?: string | undefined | undefined;
1597
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
1598
+ "aria-describedby"?: string | undefined | undefined;
1599
+ "aria-description"?: string | undefined | undefined;
1600
+ "aria-details"?: string | undefined | undefined;
1601
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
1602
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
1603
+ "aria-errormessage"?: string | undefined | undefined;
1604
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
1605
+ "aria-flowto"?: string | undefined | undefined;
1606
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
1607
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
1608
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
1609
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
1610
+ "aria-keyshortcuts"?: string | undefined | undefined;
1611
+ "aria-labelledby"?: string | undefined | undefined;
1612
+ "aria-level"?: number | undefined | undefined;
1613
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
1614
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
1615
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
1616
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
1617
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
1618
+ "aria-owns"?: string | undefined | undefined;
1619
+ "aria-placeholder"?: string | undefined | undefined;
1620
+ "aria-posinset"?: number | undefined | undefined;
1621
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
1622
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
1623
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
1624
+ "aria-required"?: (boolean | "true" | "false") | undefined;
1625
+ "aria-roledescription"?: string | undefined | undefined;
1626
+ "aria-rowcount"?: number | undefined | undefined;
1627
+ "aria-rowindex"?: number | undefined | undefined;
1628
+ "aria-rowindextext"?: string | undefined | undefined;
1629
+ "aria-rowspan"?: number | undefined | undefined;
1630
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
1631
+ "aria-setsize"?: number | undefined | undefined;
1632
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
1633
+ "aria-valuemax"?: number | undefined | undefined;
1634
+ "aria-valuemin"?: number | undefined | undefined;
1635
+ "aria-valuenow"?: number | undefined | undefined;
1636
+ "aria-valuetext"?: string | undefined | undefined;
1637
+ dangerouslySetInnerHTML?: {
1638
+ __html: string | TrustedHTML;
1639
+ } | undefined | undefined;
1640
+ onCopy?: ClipboardEventHandler<HTMLInputElement> | undefined;
1641
+ onCopyCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
1642
+ onCut?: ClipboardEventHandler<HTMLInputElement> | undefined;
1643
+ onCutCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
1644
+ onPaste?: ClipboardEventHandler<HTMLInputElement> | undefined;
1645
+ onPasteCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
1646
+ onCompositionEnd?: CompositionEventHandler<HTMLInputElement> | undefined;
1647
+ onCompositionEndCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
1648
+ onCompositionStart?: CompositionEventHandler<HTMLInputElement> | undefined;
1649
+ onCompositionStartCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
1650
+ onCompositionUpdate?: CompositionEventHandler<HTMLInputElement> | undefined;
1651
+ onCompositionUpdateCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
1652
+ onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
1653
+ onFocusCapture?: FocusEventHandler<HTMLInputElement> | undefined;
1654
+ onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
1655
+ onBlurCapture?: FocusEventHandler<HTMLInputElement> | undefined;
1656
+ onChangeCapture?: FormEventHandler<HTMLInputElement> | undefined;
1657
+ onBeforeInput?: InputEventHandler<HTMLInputElement> | undefined;
1658
+ onBeforeInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
1659
+ onInput?: FormEventHandler<HTMLInputElement> | undefined;
1660
+ onInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
1661
+ onReset?: FormEventHandler<HTMLInputElement> | undefined;
1662
+ onResetCapture?: FormEventHandler<HTMLInputElement> | undefined;
1663
+ onSubmit?: FormEventHandler<HTMLInputElement> | undefined;
1664
+ onSubmitCapture?: FormEventHandler<HTMLInputElement> | undefined;
1665
+ onInvalid?: FormEventHandler<HTMLInputElement> | undefined;
1666
+ onInvalidCapture?: FormEventHandler<HTMLInputElement> | undefined;
1667
+ onLoad?: ReactEventHandler<HTMLInputElement> | undefined;
1668
+ onLoadCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1669
+ onError?: ReactEventHandler<HTMLInputElement> | undefined;
1670
+ onErrorCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1671
+ onKeyDown?: KeyboardEventHandler<HTMLInputElement> | undefined;
1672
+ onKeyDownCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
1673
+ onKeyPress?: KeyboardEventHandler<HTMLInputElement> | undefined;
1674
+ onKeyPressCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
1675
+ onKeyUp?: KeyboardEventHandler<HTMLInputElement> | undefined;
1676
+ onKeyUpCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
1677
+ onAbort?: ReactEventHandler<HTMLInputElement> | undefined;
1678
+ onAbortCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1679
+ onCanPlay?: ReactEventHandler<HTMLInputElement> | undefined;
1680
+ onCanPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1681
+ onCanPlayThrough?: ReactEventHandler<HTMLInputElement> | undefined;
1682
+ onCanPlayThroughCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1683
+ onDurationChange?: ReactEventHandler<HTMLInputElement> | undefined;
1684
+ onDurationChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1685
+ onEmptied?: ReactEventHandler<HTMLInputElement> | undefined;
1686
+ onEmptiedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1687
+ onEncrypted?: ReactEventHandler<HTMLInputElement> | undefined;
1688
+ onEncryptedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1689
+ onEnded?: ReactEventHandler<HTMLInputElement> | undefined;
1690
+ onEndedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1691
+ onLoadedData?: ReactEventHandler<HTMLInputElement> | undefined;
1692
+ onLoadedDataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1693
+ onLoadedMetadata?: ReactEventHandler<HTMLInputElement> | undefined;
1694
+ onLoadedMetadataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1695
+ onLoadStart?: ReactEventHandler<HTMLInputElement> | undefined;
1696
+ onLoadStartCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1697
+ onPause?: ReactEventHandler<HTMLInputElement> | undefined;
1698
+ onPauseCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1699
+ onPlay?: ReactEventHandler<HTMLInputElement> | undefined;
1700
+ onPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1701
+ onPlaying?: ReactEventHandler<HTMLInputElement> | undefined;
1702
+ onPlayingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1703
+ onProgress?: ReactEventHandler<HTMLInputElement> | undefined;
1704
+ onProgressCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1705
+ onRateChange?: ReactEventHandler<HTMLInputElement> | undefined;
1706
+ onRateChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1707
+ onSeeked?: ReactEventHandler<HTMLInputElement> | undefined;
1708
+ onSeekedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1709
+ onSeeking?: ReactEventHandler<HTMLInputElement> | undefined;
1710
+ onSeekingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1711
+ onStalled?: ReactEventHandler<HTMLInputElement> | undefined;
1712
+ onStalledCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1713
+ onSuspend?: ReactEventHandler<HTMLInputElement> | undefined;
1714
+ onSuspendCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1715
+ onTimeUpdate?: ReactEventHandler<HTMLInputElement> | undefined;
1716
+ onTimeUpdateCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1717
+ onVolumeChange?: ReactEventHandler<HTMLInputElement> | undefined;
1718
+ onVolumeChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1719
+ onWaiting?: ReactEventHandler<HTMLInputElement> | undefined;
1720
+ onWaitingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1721
+ onAuxClick?: MouseEventHandler<HTMLInputElement> | undefined;
1722
+ onAuxClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1723
+ onClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1724
+ onContextMenu?: MouseEventHandler<HTMLInputElement> | undefined;
1725
+ onContextMenuCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1726
+ onDoubleClick?: MouseEventHandler<HTMLInputElement> | undefined;
1727
+ onDoubleClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1728
+ onDrag?: DragEventHandler<HTMLInputElement> | undefined;
1729
+ onDragCapture?: DragEventHandler<HTMLInputElement> | undefined;
1730
+ onDragEnd?: DragEventHandler<HTMLInputElement> | undefined;
1731
+ onDragEndCapture?: DragEventHandler<HTMLInputElement> | undefined;
1732
+ onDragEnter?: DragEventHandler<HTMLInputElement> | undefined;
1733
+ onDragEnterCapture?: DragEventHandler<HTMLInputElement> | undefined;
1734
+ onDragExit?: DragEventHandler<HTMLInputElement> | undefined;
1735
+ onDragExitCapture?: DragEventHandler<HTMLInputElement> | undefined;
1736
+ onDragLeave?: DragEventHandler<HTMLInputElement> | undefined;
1737
+ onDragLeaveCapture?: DragEventHandler<HTMLInputElement> | undefined;
1738
+ onDragOver?: DragEventHandler<HTMLInputElement> | undefined;
1739
+ onDragOverCapture?: DragEventHandler<HTMLInputElement> | undefined;
1740
+ onDragStart?: DragEventHandler<HTMLInputElement> | undefined;
1741
+ onDragStartCapture?: DragEventHandler<HTMLInputElement> | undefined;
1742
+ onDrop?: DragEventHandler<HTMLInputElement> | undefined;
1743
+ onDropCapture?: DragEventHandler<HTMLInputElement> | undefined;
1744
+ onMouseDown?: MouseEventHandler<HTMLInputElement> | undefined;
1745
+ onMouseDownCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1746
+ onMouseEnter?: MouseEventHandler<HTMLInputElement> | undefined;
1747
+ onMouseLeave?: MouseEventHandler<HTMLInputElement> | undefined;
1748
+ onMouseMove?: MouseEventHandler<HTMLInputElement> | undefined;
1749
+ onMouseMoveCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1750
+ onMouseOut?: MouseEventHandler<HTMLInputElement> | undefined;
1751
+ onMouseOutCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1752
+ onMouseOver?: MouseEventHandler<HTMLInputElement> | undefined;
1753
+ onMouseOverCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1754
+ onMouseUp?: MouseEventHandler<HTMLInputElement> | undefined;
1755
+ onMouseUpCapture?: MouseEventHandler<HTMLInputElement> | undefined;
1756
+ onSelect?: ReactEventHandler<HTMLInputElement> | undefined;
1757
+ onSelectCapture?: ReactEventHandler<HTMLInputElement> | undefined;
1758
+ onTouchCancel?: TouchEventHandler<HTMLInputElement> | undefined;
1759
+ onTouchCancelCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1760
+ onTouchEnd?: TouchEventHandler<HTMLInputElement> | undefined;
1761
+ onTouchEndCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1762
+ onTouchMove?: TouchEventHandler<HTMLInputElement> | undefined;
1763
+ onTouchMoveCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1764
+ onTouchStart?: TouchEventHandler<HTMLInputElement> | undefined;
1765
+ onTouchStartCapture?: TouchEventHandler<HTMLInputElement> | undefined;
1766
+ onPointerDown?: PointerEventHandler<HTMLInputElement> | undefined;
1767
+ onPointerDownCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1768
+ onPointerMove?: PointerEventHandler<HTMLInputElement> | undefined;
1769
+ onPointerMoveCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1770
+ onPointerUp?: PointerEventHandler<HTMLInputElement> | undefined;
1771
+ onPointerUpCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1772
+ onPointerCancel?: PointerEventHandler<HTMLInputElement> | undefined;
1773
+ onPointerCancelCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1774
+ onPointerEnter?: PointerEventHandler<HTMLInputElement> | undefined;
1775
+ onPointerLeave?: PointerEventHandler<HTMLInputElement> | undefined;
1776
+ onPointerOver?: PointerEventHandler<HTMLInputElement> | undefined;
1777
+ onPointerOverCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1778
+ onPointerOut?: PointerEventHandler<HTMLInputElement> | undefined;
1779
+ onPointerOutCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1780
+ onGotPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1781
+ onGotPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1782
+ onLostPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1783
+ onLostPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
1784
+ onScroll?: UIEventHandler<HTMLInputElement> | undefined;
1785
+ onScrollCapture?: UIEventHandler<HTMLInputElement> | undefined;
1786
+ onScrollEnd?: UIEventHandler<HTMLInputElement> | undefined;
1787
+ onScrollEndCapture?: UIEventHandler<HTMLInputElement> | undefined;
1788
+ onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
1789
+ onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
1790
+ onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
1791
+ onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
1792
+ onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
1793
+ onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
1794
+ onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
1795
+ onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
1796
+ onToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
1797
+ onBeforeToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
1798
+ onTransitionCancel?: TransitionEventHandler<HTMLInputElement> | undefined;
1799
+ onTransitionCancelCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1800
+ onTransitionEnd?: TransitionEventHandler<HTMLInputElement> | undefined;
1801
+ onTransitionEndCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1802
+ onTransitionRun?: TransitionEventHandler<HTMLInputElement> | undefined;
1803
+ onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1804
+ onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
1805
+ onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
1806
+ multiple?: boolean | undefined | undefined;
1807
+ list?: string | undefined | undefined;
1808
+ accept?: string | undefined | undefined;
1809
+ width?: number | string | undefined | undefined;
1810
+ height?: number | string | undefined | undefined;
1811
+ checked?: boolean | undefined | undefined;
1812
+ max?: number | string | undefined | undefined;
1813
+ min?: number | string | undefined | undefined;
1814
+ alt?: string | undefined | undefined;
1815
+ autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
1816
+ capture?: boolean | "user" | "environment" | undefined | undefined;
1817
+ maxLength?: number | undefined | undefined;
1818
+ minLength?: number | undefined | undefined;
1819
+ placeholder?: string | undefined | undefined;
1820
+ readOnly?: boolean | undefined | undefined;
1821
+ required?: boolean | undefined | undefined;
1822
+ src?: string | undefined | undefined;
1823
+ step?: number | string | undefined | undefined;
1824
+ } & RefAttributes<HTMLInputElement>>;
1825
+
1826
+ /**
1827
+ * Props del componente InputText
1828
+ * @description Input de texto con soporte para múltiples tipos, validación, iconos y estados
1829
+ */
1830
+ export declare type InputTextProps = {
1831
+ /** Tipo del input (text, password, email, tel, url, search) */
1832
+ type?: InputType;
1833
+ /** Variante visual del input */
1834
+ variant?: InputVariant;
1835
+ /** Color temático del input (afecta el borde en focus) */
1836
+ color?: InputColor;
1837
+ /** Tamaño del input */
1838
+ size?: InputSize;
1839
+ /** Radio de bordes del input */
1840
+ radius?: InputRadius;
1841
+ /** Etiqueta del campo */
1842
+ label?: ReactNode;
1843
+ /** Placeholder del input */
1844
+ placeholder?: string;
1845
+ /** Valor controlado del input */
1846
+ value?: string;
1847
+ /** Valor inicial no controlado */
1848
+ defaultValue?: string;
1849
+ /** Descripción o texto de ayuda */
1850
+ description?: ReactNode;
1851
+ /** Mensaje de error personalizado */
1852
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
1853
+ /** Contenido al inicio del input (iconos, prefijos) */
1854
+ startContent?: ReactNode;
1855
+ /** Contenido al final del input (iconos, sufijos) */
1856
+ endContent?: ReactNode;
1857
+ /** Si el campo es requerido */
1858
+ isRequired?: boolean;
1859
+ /** Si el campo es de solo lectura */
1860
+ isReadOnly?: boolean;
1861
+ /** Si el campo está deshabilitado */
1862
+ isDisabled?: boolean;
1863
+ /** Si muestra botón para limpiar el campo */
1864
+ isClearable?: boolean;
1865
+ /** Si el campo es inválido (override manual) */
1866
+ isInvalid?: boolean;
1867
+ /** Estado de validación manual */
1868
+ validationState?: 'valid' | 'invalid';
1869
+ /** Función de validación personalizada */
1870
+ validate?: (value: string) => ValidationResult;
1871
+ /** Si el input ocupa todo el ancho */
1872
+ fullWidth?: boolean;
1873
+ /** Deshabilita animaciones */
1874
+ disableAnimation?: boolean;
1875
+ /** Clases CSS personalizadas para cada parte */
1876
+ classNames?: {
1877
+ base?: string;
1878
+ label?: string;
1879
+ inputWrapper?: string;
1880
+ innerWrapper?: string;
1881
+ input?: string;
1882
+ clearButton?: string;
1883
+ description?: string;
1884
+ errorMessage?: string;
1885
+ };
1886
+ /** Callback cuando cambia el valor */
1887
+ onChange?: (value: string) => void;
1888
+ /** Callback cuando se limpia el campo */
1889
+ onClear?: () => void;
1890
+ /** Callback cuando cambia el valor (alias de onChange) */
1891
+ onValueChange?: (value: string) => void;
1892
+ } & NativeInputProps;
1893
+
1894
+ /** Tipos de input de texto soportados */
1895
+ export declare type InputType = 'text' | 'password' | 'email' | 'tel' | 'url' | 'search';
1896
+
1897
+ export declare type InputVariant = 'bordered' | 'faded' | 'underlined' | 'ghost';
1898
+
1899
+ export declare function MicrofonoIcono(props: SVGProps<SVGSVGElement>): JSX.Element;
1900
+
1901
+ export declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDivElement>>;
1902
+
1903
+ /**
1904
+ * Intensidad del backdrop del modal
1905
+ * - 'transparente': Sin backdrop visible
1906
+ * - 'sutil': Opacidad muy baja
1907
+ * - 'normal': Opacidad estándar
1908
+ * - 'intermedio': Opacidad alta
1909
+ * - 'intenso': Opacidad máxima
1910
+ */
1911
+ export declare type ModalBackdropVariant = 'transparente' | 'sutil' | 'normal' | 'intermedio' | 'intenso';
1912
+
1913
+ export declare type ModalProps = {
1914
+ /**
1915
+ * Si el modal está abierto
1916
+ * @example
1917
+ * const [isOpen, setIsOpen] = useState(false);
1918
+ * <Modal isOpen={isOpen} onClose={() => setIsOpen(false)}>...</Modal>
1919
+ */
1920
+ isOpen: boolean;
1921
+ /**
1922
+ * Callback cuando se cierra el modal (Escape, backdrop click, botón X)
1923
+ * @example
1924
+ * onClose={() => { console.log('Modal cerrado'); setIsOpen(false); }}
1925
+ */
1926
+ onClose: () => void;
1927
+ /**
1928
+ * Tamaño del modal (max-width)
1929
+ * @default 'md'
1930
+ * @example
1931
+ * size="formulario" // 1100px para formularios extensos
1932
+ */
1933
+ size?: ModalSize;
1934
+ /**
1935
+ * Título del modal
1936
+ */
1937
+ title?: string;
1938
+ /**
1939
+ * Icono del título (ReactNode, string o emoticon)
1940
+ * @default '📄' (cuando showIconTitle=true y titleIcon es undefined)
1941
+ */
1942
+ titleIcon?: React.ReactNode;
1943
+ /**
1944
+ * Si muestra el botón de volver (flecha '<')
1945
+ * @default true
1946
+ */
1947
+ showCloseButton?: boolean;
1948
+ /**
1949
+ * Si cierra al hacer click en el backdrop
1950
+ * @default true
1951
+ */
1952
+ closeOnBackdropClick?: boolean;
1953
+ /**
1954
+ * Si cierra al presionar Escape
1955
+ * @default true
1956
+ */
1957
+ closeOnEscape?: boolean;
1958
+ /**
1959
+ * Si previene el scroll del body cuando está abierto
1960
+ * @default true
1961
+ */
1962
+ preventScroll?: boolean;
1963
+ /**
1964
+ * Si está centrado verticalmente
1965
+ * @default true
1966
+ */
1967
+ isCentered?: boolean;
1968
+ /**
1969
+ * Contenido del header personalizado
1970
+ */
1971
+ header?: React.ReactNode;
1972
+ /**
1973
+ * Contenido del footer personalizado
1974
+ */
1975
+ footer?: React.ReactNode;
1976
+ /**
1977
+ * Contenido del modal
1978
+ */
1979
+ children: React.ReactNode;
1980
+ /**
1981
+ * Clase CSS adicional
1982
+ */
1983
+ className?: string;
1984
+ /**
1985
+ * Clase CSS para el contenido
1986
+ */
1987
+ contentClassName?: string;
1988
+ /**
1989
+ * Estado de carga
1990
+ * @default false
1991
+ */
1992
+ isLoading?: boolean;
1993
+ /**
1994
+ * Mensaje personalizado para el estado de carga
1995
+ * @default 'Cargando...'
1996
+ */
1997
+ loadingMessage?: string;
1998
+ /**
1999
+ * Variante del backdrop
2000
+ * @default 'normal'
2001
+ */
2002
+ backdropVariant?: ModalBackdropVariant;
2003
+ /**
2004
+ * Si muestra el icono al lado del título
2005
+ * @default true
2006
+ */
2007
+ showIconTitle?: boolean;
2008
+ /**
2009
+ * Callback cuando se abre el modal
2010
+ */
2011
+ onOpen?: () => void;
2012
+ };
2013
+
2014
+ /**
2015
+ * Tamaño del modal
2016
+ * - 'sm': 400px (alertas, confirmaciones)
2017
+ * - 'md': 560px (default, formularios básicos)
2018
+ * - 'lg': 720px (contenido extenso)
2019
+ * - 'xl': 960px (dashboards, tablas)
2020
+ * - 'formulario': 1100px (formularios complejos con múltiples columnas)
2021
+ * - 'full': 95% (ocupa casi toda la pantalla)
2022
+ */
2023
+ export declare type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'formulario' | 'full';
2024
+
2025
+ export declare function ModalStack({ modals, onClose }: ModalStackProps): JSX.Element | null;
2026
+
2027
+ export declare type ModalStackItem = {
2028
+ id: string;
2029
+ title: string;
2030
+ titleIcon?: string;
2031
+ content: ReactNode;
2032
+ footer?: ReactNode;
2033
+ };
2034
+
2035
+ declare type ModalStackProps = {
2036
+ modals: ModalStackItem[];
2037
+ onClose: (id: string) => void;
2038
+ };
2039
+
2040
+ declare type NativeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type'>;
2041
+
2042
+ declare type NativeInputProps_2 = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type' | 'value' | 'defaultValue' | 'min' | 'max' | 'step'>;
2043
+
2044
+ declare type NativeInputProps_3 = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type' | 'value' | 'defaultValue'>;
2045
+
2046
+ declare type NativeTextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'color' | 'size' | 'onChange' | 'children'>;
2047
+
2048
+ /**
2049
+ * Obtiene la fecha actual en formato ISO
2050
+ * @returns Fecha actual en formato YYYY-MM-DD
2051
+ */
2052
+ export declare function obtenerFechaHoy(): string;
2053
+
2054
+ /**
2055
+ * Obtiene el label de una opción
2056
+ * @template T - Tipo de la opción
2057
+ * @param opcion - La opción de la cual extraer el label
2058
+ * @param claveLabel - Campo del objeto a usar como label
2059
+ * @returns El texto del label
2060
+ *
2061
+ * @example
2062
+ * ```ts
2063
+ * // Con string
2064
+ * obtenerLabelOpcion('Manzana', 'label') // 'Manzana'
2065
+ *
2066
+ * // Con objeto
2067
+ * obtenerLabelOpcion({ nombre: 'Colombia', id: 'co' }, 'nombre') // 'Colombia'
2068
+ * ```
2069
+ */
2070
+ export declare function obtenerLabelOpcion<T>(opcion: T, claveLabel: string): string;
2071
+
2072
+ /**
2073
+ * Obtiene el valor único de una opción
2074
+ * @template T - Tipo de la opción
2075
+ * @param opcion - La opción de la cual extraer el valor
2076
+ * @param claveValor - Campo del objeto a usar como valor
2077
+ * @returns El valor único de la opción
2078
+ *
2079
+ * @example
2080
+ * ```ts
2081
+ * // Con string
2082
+ * obtenerValorOpcion('Manzana', 'id') // 'Manzana'
2083
+ *
2084
+ * // Con objeto
2085
+ * obtenerValorOpcion({ nombre: 'Colombia', id: 'co' }, 'id') // 'co'
2086
+ * ```
2087
+ */
2088
+ export declare function obtenerValorOpcion<T>(opcion: T, claveValor: string): string;
2089
+
2090
+ /**
2091
+ * @fileoverview Funciones utilitarias para el componente Select
2092
+ * @module Select/funciones
2093
+ */
2094
+ /**
2095
+ * Opción de grupo para categorización
2096
+ */
2097
+ export declare type OpcionGrupo<T> = {
2098
+ /** Nombre del grupo */
2099
+ grupo: string;
2100
+ /** Opciones dentro del grupo */
2101
+ opciones: T[];
2102
+ };
2103
+
2104
+ /**
2105
+ * Opción plana con información de grupo
2106
+ */
2107
+ export declare type OpcionPlana<T> = {
2108
+ /** Tipo: 'grupo' para encabezado, 'opcion' para ítem */
2109
+ tipo: 'grupo' | 'opcion';
2110
+ /** Datos de la opción (null si es encabezado de grupo) */
2111
+ datos: T | null;
2112
+ /** Nombre del grupo (para encabezados) */
2113
+ nombreGrupo?: string;
2114
+ /** Índice real en la lista plana */
2115
+ indice: number;
2116
+ };
2117
+
2118
+ export declare const PanelFiltros: ({ abierto, al_cerrar, al_aplicar, al_limpiar, titulo, backdropVariant, closeOnBackdropClick, allowBackdropInteraction, getContainer, children, }: PanelFiltrosProps) => JSX.Element | null;
2119
+
2120
+ export declare type PanelFiltrosProps = {
2121
+ /**
2122
+ * Si el panel está abierto
2123
+ */
2124
+ abierto: boolean;
2125
+ /**
2126
+ * Callback al cerrar el panel
2127
+ */
2128
+ al_cerrar: () => void;
2129
+ /**
2130
+ * Callback al aplicar filtros
2131
+ */
2132
+ al_aplicar: () => void;
2133
+ /**
2134
+ * Callback al limpiar filtros
2135
+ */
2136
+ al_limpiar: () => void;
2137
+ /**
2138
+ * Título del panel
2139
+ * @default 'Filtros'
2140
+ */
2141
+ titulo?: string;
2142
+ /**
2143
+ * Variante del backdrop
2144
+ * @default 'sutil'
2145
+ */
2146
+ backdropVariant?: 'transparente' | 'sutil' | 'normal' | 'intenso';
2147
+ /**
2148
+ * Cerrar al hacer click en el backdrop
2149
+ * @default true
2150
+ */
2151
+ closeOnBackdropClick?: boolean;
2152
+ /**
2153
+ * Permite interactuar con el contenido de fondo (backdrop transparente sin bloqueo)
2154
+ * @default false
2155
+ */
2156
+ allowBackdropInteraction?: boolean;
2157
+ /**
2158
+ * Contenedor donde renderizar el portal
2159
+ * @default document.body
2160
+ */
2161
+ getContainer?: HTMLElement | (() => HTMLElement) | null;
2162
+ /**
2163
+ * Contenido del panel (puede ser array para paginación)
2164
+ */
2165
+ children: ReactNode | ReactNode[];
2166
+ };
2167
+
2168
+ /**
2169
+ * Parsea un string formateado y extrae el valor numérico
2170
+ * @param texto - String con formato (puede tener separadores, prefijos, sufijos)
2171
+ * @param opciones - Configuración para el parseo
2172
+ * @returns El número parseado o undefined si no es válido
2173
+ * @example
2174
+ * parsearNumero("$1,234.56", { separadorMiles: ',', separadorDecimal: '.', prefijo: '$' })
2175
+ * // Retorna: 1234.56
2176
+ */
2177
+ export declare function parsearNumero(texto: string, opciones: {
2178
+ separadorMiles?: string | boolean;
2179
+ separadorDecimal?: string;
2180
+ prefijo?: string;
2181
+ sufijo?: string;
2182
+ permitirNegativo?: boolean;
2183
+ }): number | undefined;
2184
+
2185
+ /**
2186
+ * Procesa el resultado de una función de validación
2187
+ * @param resultado - Resultado de la función validate
2188
+ * @returns Objeto con estado de validación y mensaje
2189
+ */
2190
+ export declare function procesarValidacion(resultado: ValidationResult): ResultadoValidacion;
2191
+
2192
+ declare type Props = {
2193
+ value: string;
2194
+ onChange: (nuevoTexto: string) => void;
2195
+ isDisabled?: boolean;
2196
+ isReadOnly?: boolean;
2197
+ onDictadoCompleto?: () => void;
2198
+ idioma?: string;
2199
+ };
2200
+
2201
+ export declare const Radio: default_2.NamedExoticComponent<{
2202
+ value: string;
2203
+ label?: string;
2204
+ description?: string;
2205
+ size?: RadioSize;
2206
+ color?: RadioColor;
2207
+ customColor?: string;
2208
+ variant?: RadioVariant;
2209
+ isDisabled?: boolean;
2210
+ isReadOnly?: boolean;
2211
+ isInvalid?: boolean;
2212
+ isRequired?: boolean;
2213
+ children?: default_2.ReactNode;
2214
+ className?: string;
2215
+ } & Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & default_2.RefAttributes<HTMLInputElement>>;
2216
+
2217
+ export declare type RadioColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
2218
+
2219
+ export declare const RadioGroup: default_2.FC<RadioGroupProps>;
2220
+
2221
+ export declare type RadioGroupOrientation = 'vertical' | 'horizontal';
2222
+
2223
+ export declare type RadioGroupProps = {
2224
+ /**
2225
+ * Nombre del grupo (crítico para HTML)
2226
+ */
2227
+ name: string;
2228
+ /**
2229
+ * Valor seleccionado actual (modo controlado)
2230
+ */
2231
+ value?: string;
2232
+ /**
2233
+ * Valor por defecto (modo no controlado)
2234
+ */
2235
+ defaultValue?: string;
2236
+ /**
2237
+ * Callback cuando cambia la selección
2238
+ */
2239
+ onChange?: (value: string) => void;
2240
+ /**
2241
+ * Orientación del grupo
2242
+ * @default 'vertical'
2243
+ */
2244
+ orientation?: RadioGroupOrientation;
2245
+ /**
2246
+ * Label del grupo
2247
+ */
2248
+ label?: string;
2249
+ /**
2250
+ * Descripción del grupo
2251
+ */
2252
+ description?: string;
2253
+ /**
2254
+ * Si el grupo está deshabilitado
2255
+ */
2256
+ isDisabled?: boolean;
2257
+ /**
2258
+ * Si el grupo está en modo solo lectura
2259
+ */
2260
+ isReadOnly?: boolean;
2261
+ /**
2262
+ * Si el grupo es requerido
2263
+ */
2264
+ isRequired?: boolean;
2265
+ /**
2266
+ * Si el grupo tiene error de validación
2267
+ */
2268
+ isInvalid?: boolean;
2269
+ /**
2270
+ * Mensaje de error
2271
+ */
2272
+ errorMessage?: string;
2273
+ /**
2274
+ * Tamaño de los radio buttons
2275
+ */
2276
+ size?: RadioSize;
2277
+ /**
2278
+ * Color de los radio buttons
2279
+ */
2280
+ color?: RadioColor;
2281
+ /**
2282
+ * Color personalizado para todos los radios del grupo
2283
+ * Sobrescribe el color del tema si se especifica
2284
+ */
2285
+ customColor?: string;
2286
+ /**
2287
+ * Variante de los radio buttons
2288
+ */
2289
+ variant?: RadioVariant;
2290
+ /**
2291
+ * Alineación de los radios (horizontal)
2292
+ * @default 'flex-start'
2293
+ */
2294
+ justifyContent?: 'flex-start' | 'center' | 'flex-end';
2295
+ /**
2296
+ * Children (Radio components)
2297
+ */
2298
+ children: React.ReactNode;
2299
+ /**
2300
+ * Clase CSS adicional
2301
+ */
2302
+ className?: string;
2303
+ };
2304
+
2305
+ export declare type RadioProps = {
2306
+ /**
2307
+ * Valor del radio button
2308
+ */
2309
+ value: string;
2310
+ /**
2311
+ * Label del radio button
2312
+ */
2313
+ label?: string;
2314
+ /**
2315
+ * Descripción adicional (aparece debajo del label)
2316
+ */
2317
+ description?: string;
2318
+ /**
2319
+ * Tamaño del radio button
2320
+ * @default 'md'
2321
+ */
2322
+ size?: RadioSize;
2323
+ /**
2324
+ * Color del tema
2325
+ * @default 'primary'
2326
+ */
2327
+ color?: RadioColor;
2328
+ /**
2329
+ * Color personalizado (CSS color value)
2330
+ * Sobrescribe el color del tema si se especifica
2331
+ */
2332
+ customColor?: string;
2333
+ /**
2334
+ * Variante visual
2335
+ * @default 'default'
2336
+ */
2337
+ variant?: RadioVariant;
2338
+ /**
2339
+ * Si está deshabilitado
2340
+ */
2341
+ isDisabled?: boolean;
2342
+ /**
2343
+ * Si está en modo solo lectura
2344
+ */
2345
+ isReadOnly?: boolean;
2346
+ /**
2347
+ * Si tiene error de validación
2348
+ */
2349
+ isInvalid?: boolean;
2350
+ /**
2351
+ * Si es requerido
2352
+ */
2353
+ isRequired?: boolean;
2354
+ /**
2355
+ * Children (usado cuando no se pasa label)
2356
+ */
2357
+ children?: React.ReactNode;
2358
+ /**
2359
+ * Clase CSS adicional
2360
+ */
2361
+ className?: string;
2362
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>;
2363
+
2364
+ export declare type RadioSize = 'sm' | 'md' | 'lg';
2365
+
2366
+ export declare type RadioVariant = 'default' | 'card';
2367
+
2368
+ /**
2369
+ * Redondea un número a una cantidad específica de decimales
2370
+ * @param valor - Número a redondear
2371
+ * @param decimales - Cantidad de decimales
2372
+ * @returns Número redondeado
2373
+ */
2374
+ export declare function redondearDecimales(valor: number, decimales: number): number;
2375
+
2376
+ /**
2377
+ * Restringe un valor dentro de un rango mínimo y máximo
2378
+ * @param valor - Valor a restringir
2379
+ * @param min - Valor mínimo permitido
2380
+ * @param max - Valor máximo permitido
2381
+ * @returns El valor restringido dentro del rango
2382
+ * @example
2383
+ * restringirRango(150, 0, 100) // Retorna: 100
2384
+ * restringirRango(-10, 0, 100) // Retorna: 0
2385
+ */
2386
+ export declare function restringirRango(valor: number, min?: number, max?: number): number;
2387
+
2388
+ export declare type ResultadoValidacion = {
2389
+ invalido: boolean;
2390
+ mensaje: string | null;
2391
+ };
2392
+
2393
+ /**
2394
+ * Componente Select con discriminated unions y wrapper inteligente.
2395
+ *
2396
+ * @template T - Tipo de las opciones (string u objeto personalizado)
2397
+ *
2398
+ * @description
2399
+ * Este es el componente público que se debe usar en la aplicación.
2400
+ * Internamente delega el renderizado a SelectBase pero añade la capa
2401
+ * inteligente de conversión de tipos.
2402
+ *
2403
+ * ### Ventajas de esta arquitectura:
2404
+ * - ✅ Separación de responsabilidades (Clean Architecture)
2405
+ * - ✅ SelectBase es 100% reutilizable
2406
+ * - ✅ Tipado estricto sin 'any'
2407
+ * - ✅ Fácil testing (puedes testear SelectBase aislado)
2408
+ * - ✅ Retrocompatibilidad total
2409
+ *
2410
+ * @see {@link SelectBase} para la implementación visual
2411
+ * @see {@link SmartSelectProps} para los tipos disponibles
2412
+ * @see {@link SelectRef} para métodos imperativos
2413
+ */
2414
+ export declare const Select: <T extends string | Record<string, unknown>>(props: SmartSelectProps<T> & {
2415
+ ref?: React.ForwardedRef<SelectRef>;
2416
+ }) => React.ReactElement;
2417
+
2418
+ /**
2419
+ * Props para Select con objetos múltiples (retorna objetos completos).
2420
+ *
2421
+ * @example
2422
+ * ```tsx
2423
+ * <Select
2424
+ * options={usuarios}
2425
+ * value={usuariosSeleccionados}
2426
+ * optionValueKey="id"
2427
+ * devolverObjeto
2428
+ * isMultiple
2429
+ * onChange={(usuarios) => {
2430
+ * console.log(usuarios); // Usuario[]
2431
+ * }}
2432
+ * />
2433
+ * ```
2434
+ */
2435
+ declare type SelectMultiObjectFullProps<T> = BaseSelectProps<T> & WrapperProps & {
2436
+ options: T[];
2437
+ value?: T[];
2438
+ onChange?: (value: T[]) => void;
2439
+ optionValueKey: keyof T;
2440
+ optionLabelKey?: keyof T;
2441
+ devolverObjeto: true;
2442
+ isMultiple: true;
2443
+ };
2444
+
2445
+ /**
2446
+ * Props para Select con objetos en modo múltiple (retorna IDs).
2447
+ *
2448
+ * @example
2449
+ * ```tsx
2450
+ * <Select
2451
+ * options={usuarios}
2452
+ * value={['1', '2', '3']} // Array de IDs
2453
+ * optionValueKey="id"
2454
+ * isMultiple
2455
+ * onChange={(ids) => console.log(ids)} // ['1', '2', '3']
2456
+ * />
2457
+ * ```
2458
+ */
2459
+ declare type SelectMultiObjectIdProps<T> = BaseSelectProps<T> & WrapperProps & {
2460
+ options: T[];
2461
+ value?: Array<string | number>;
2462
+ onChange?: (value: Array<string | number>) => void;
2463
+ optionValueKey: keyof T;
2464
+ optionLabelKey?: keyof T;
2465
+ devolverObjeto?: false;
2466
+ isMultiple: true;
2467
+ };
2468
+
2469
+ /**
2470
+ * Props para Select con opciones de tipo string (modo múltiple).
2471
+ *
2472
+ * @example
2473
+ * ```tsx
2474
+ * const colores = ['Rojo', 'Verde', 'Azul'];
2475
+ * <Select
2476
+ * options={colores}
2477
+ * value={['Rojo', 'Verde']}
2478
+ * isMultiple
2479
+ * onChange={(seleccionados) => console.log(seleccionados)} // string[]
2480
+ * />
2481
+ * ```
2482
+ */
2483
+ declare type SelectMultiStringProps = BaseSelectProps<string> & WrapperProps & {
2484
+ options: string[];
2485
+ value?: string[];
2486
+ onChange?: (value: string[]) => void;
2487
+ optionValueKey?: never;
2488
+ optionLabelKey?: never;
2489
+ devolverObjeto?: never;
2490
+ isMultiple: true;
2491
+ };
2492
+
2493
+ /**
2494
+ * Props para Select con objetos (retorna objeto completo).
2495
+ *
2496
+ * @description
2497
+ * Modo alternativo donde `onChange` devuelve el objeto completo en lugar del ID.
2498
+ * Útil cuando necesitas acceder a otras propiedades sin hacer búsquedas.
2499
+ *
2500
+ * @example
2501
+ * ```tsx
2502
+ * <Select
2503
+ * options={usuarios}
2504
+ * value={usuarioSeleccionado} // Pasas el objeto
2505
+ * optionValueKey="id"
2506
+ * devolverObjeto // Activa este modo
2507
+ * onChange={(usuario) => {
2508
+ * console.log(usuario); // { id: '123', nombre: 'Ana', ... }
2509
+ * // Tienes acceso directo a todas las propiedades
2510
+ * }}
2511
+ * />
2512
+ * ```
2513
+ */
2514
+ declare type SelectObjectFullProps<T> = BaseSelectProps<T> & WrapperProps & {
2515
+ options: T[];
2516
+ /** Recibe el objeto completo */
2517
+ value?: T | null;
2518
+ /** Devuelve el objeto completo */
2519
+ onChange?: (value: T | null) => void;
2520
+ optionValueKey: keyof T;
2521
+ optionLabelKey?: keyof T;
2522
+ /** Debe ser true explícitamente */
2523
+ devolverObjeto: true;
2524
+ isMultiple?: false;
2525
+ };
2526
+
2527
+ /**
2528
+ * Props para Select con opciones de tipo objeto (retorna ID).
2529
+ *
2530
+ * @template T - Tipo del objeto de la opción
2531
+ *
2532
+ * @description
2533
+ * Este es el modo más común para stores/APIs.
2534
+ * - El `value` que recibe es el ID (string | number)
2535
+ * - El `onChange` devuelve el ID
2536
+ * - `optionValueKey` es **obligatorio**
2537
+ *
2538
+ * @example
2539
+ * ```tsx
2540
+ * interface Usuario { id: string; nombre: string; email: string; }
2541
+ * const usuarios: Usuario[] = [...];
2542
+ *
2543
+ * <Select
2544
+ * options={usuarios}
2545
+ * value="123" // Pasas el ID
2546
+ * optionValueKey="id" // Obligatorio
2547
+ * optionLabelKey="nombre"
2548
+ * onChange={(id) => {
2549
+ * console.log(id); // '123' (string)
2550
+ * // Luego buscas el objeto si lo necesitas
2551
+ * }}
2552
+ * />
2553
+ * ```
2554
+ */
2555
+ declare type SelectObjectIdProps<T> = BaseSelectProps<T> & WrapperProps & {
2556
+ options: T[];
2557
+ /** Recibe el ID como string o number */
2558
+ value?: string | number | null;
2559
+ /** Devuelve el ID */
2560
+ onChange?: (value: string | number | null) => void;
2561
+ /** Obligatorio cuando son objetos */
2562
+ optionValueKey: keyof T;
2563
+ /** Opcional */
2564
+ optionLabelKey?: keyof T;
2565
+ /** Debe ser false o no definido */
2566
+ devolverObjeto?: false;
2567
+ isMultiple?: false;
2568
+ };
2569
+
2570
+ /**
2571
+ * Tipo de opción del Select.
2572
+ *
2573
+ * Puede ser un string simple o un objeto con propiedades adicionales.
2574
+ * Si es objeto, puede incluir `disabled: true` para deshabilitarla.
2575
+ *
2576
+ * @template T - Tipo base de la opción
2577
+ *
2578
+ * @example
2579
+ * ```ts
2580
+ * // String simple
2581
+ * type OpcionSimple = SelectOption<string>; // string
2582
+ *
2583
+ * // Objeto con disabled
2584
+ * type OpcionObjeto = SelectOption<{ id: string; label: string }>;
2585
+ * // { id: string; label: string; disabled?: boolean }
2586
+ * ```
2587
+ */
2588
+ export declare type SelectOption<T = string> = T extends string ? string : T & {
2589
+ disabled?: boolean;
2590
+ };
2591
+
2592
+ /**
2593
+ * Estado de una opción para el render personalizado.
2594
+ *
2595
+ * @description
2596
+ * Este estado se pasa a `renderOption` para permitir
2597
+ * estilos condicionales basados en la interacción.
2598
+ */
2599
+ export declare type SelectOptionState = {
2600
+ /** true si la opción está actualmente seleccionada */
2601
+ isSelected: boolean;
2602
+ /** true si la opción tiene el foco (hover o navegación por teclado) */
2603
+ isActive: boolean;
2604
+ /** true si la opción está deshabilitada */
2605
+ isDisabled: boolean;
2606
+ };
2607
+
2608
+ /**
2609
+ * Props principales del componente Select.
2610
+ *
2611
+ * @template T - Tipo de las opciones (string por defecto)
2612
+ *
2613
+ * @description
2614
+ * El componente Select soporta:
2615
+ * - Opciones simples (strings) o complejas (objetos)
2616
+ * - Modo controlado y no controlado
2617
+ * - Selección simple o múltiple
2618
+ * - Búsqueda/filtrado con función personalizable
2619
+ * - Virtualización para listas grandes
2620
+ * - Validación integrada
2621
+ * - Render personalizado de opciones y valor
2622
+ *
2623
+ * @example
2624
+ * ```tsx
2625
+ * // Props básicas
2626
+ * <Select
2627
+ * options={['Opción 1', 'Opción 2']}
2628
+ * value={seleccionado}
2629
+ * onChange={setSeleccionado}
2630
+ * />
2631
+ *
2632
+ * // Props avanzadas con objetos
2633
+ * interface Pais { codigo: string; nombre: string; bandera: string; }
2634
+ *
2635
+ * <Select<Pais>
2636
+ * options={paises}
2637
+ * optionLabelKey="nombre"
2638
+ * optionValueKey="codigo"
2639
+ * renderOption={(pais, { isSelected }) => (
2640
+ * <div className={isSelected ? 'selected' : ''}>
2641
+ * {pais.bandera} {pais.nombre}
2642
+ * </div>
2643
+ * )}
2644
+ * isSearchable
2645
+ * isVirtualized
2646
+ * />
2647
+ * ```
2648
+ */
2649
+ export declare type SelectProps<T = string> = {
2650
+ /**
2651
+ * Lista de opciones disponibles para seleccionar.
2652
+ *
2653
+ * Puede ser un array de strings o un array de objetos.
2654
+ * Para objetos, usar `optionLabelKey` y `optionValueKey`.
2655
+ *
2656
+ * @example
2657
+ * ```ts
2658
+ * // Strings
2659
+ * options={['Rojo', 'Verde', 'Azul']}
2660
+ *
2661
+ * // Objetos
2662
+ * options={[{ id: '1', nombre: 'Ana' }, { id: '2', nombre: 'Luis' }]}
2663
+ * ```
2664
+ */
2665
+ options: T[];
2666
+ /**
2667
+ * Valor actual seleccionado (modo controlado).
2668
+ *
2669
+ * En modo simple: `T | null`
2670
+ * En modo múltiple: `T[]`
2671
+ *
2672
+ * Si no se proporciona, el componente es no controlado.
2673
+ */
2674
+ value?: T | T[] | null;
2675
+ /**
2676
+ * Valor inicial (modo no controlado).
2677
+ *
2678
+ * Se usa solo si `value` no está definido.
2679
+ * El componente mantendrá su propio estado interno.
2680
+ */
2681
+ defaultValue?: T | T[] | null;
2682
+ /**
2683
+ * Callback cuando cambia la selección.
2684
+ *
2685
+ * @important Recibe el valor (T | T[] | null), NO el evento.
2686
+ * Esto es intencional para una API más limpia.
2687
+ *
2688
+ * @param value - Nueva selección (objeto/string, array, o null)
2689
+ *
2690
+ * @example
2691
+ * ```ts
2692
+ * onChange={(usuario) => {
2693
+ * console.log(usuario?.nombre); // Acceso directo al objeto
2694
+ * }}
2695
+ * ```
2696
+ */
2697
+ onChange?: (value: T | T[] | null) => void;
2698
+ /**
2699
+ * Callback alternativo con el mismo comportamiento que onChange.
2700
+ *
2701
+ * Útil para compatibilidad con librerías de formularios que
2702
+ * esperan un prop diferente a onChange.
2703
+ */
2704
+ onValueChange?: (value: T | T[] | null) => void;
2705
+ /**
2706
+ * Campo del objeto a mostrar como texto de la opción.
2707
+ *
2708
+ * @default 'label'
2709
+ *
2710
+ * @example
2711
+ * ```ts
2712
+ * // Con objetos { nombre: 'Ana', correo: 'ana@...' }
2713
+ * optionLabelKey="nombre" // Mostrará 'Ana'
2714
+ * ```
2715
+ */
2716
+ optionLabelKey?: keyof T | string;
2717
+ /**
2718
+ * Campo del objeto a usar como identificador único.
2719
+ *
2720
+ * Se usa para:
2721
+ * - Claves de React (keys)
2722
+ * - Comparar opciones seleccionadas
2723
+ * - Valor del input hidden
2724
+ *
2725
+ * @default 'id'
2726
+ *
2727
+ * @example
2728
+ * ```ts
2729
+ * // Con objetos { codigo: 'CO', nombre: 'Colombia' }
2730
+ * optionValueKey="codigo" // Usará 'CO' como identificador
2731
+ * ```
2732
+ */
2733
+ optionValueKey?: keyof T | string;
2734
+ /**
2735
+ * Render personalizado para cada opción en el dropdown.
2736
+ *
2737
+ * @param option - La opción a renderizar
2738
+ * @param state - Estado actual de la opción
2739
+ * @returns ReactNode con el contenido personalizado
2740
+ *
2741
+ * @example
2742
+ * ```tsx
2743
+ * renderOption={(usuario, { isSelected, isActive }) => (
2744
+ * <div className={clsx({ selected: isSelected, active: isActive })}>
2745
+ * <Avatar src={usuario.avatar} />
2746
+ * <span>{usuario.nombre}</span>
2747
+ * {isSelected && <CheckIcon />}
2748
+ * </div>
2749
+ * )}
2750
+ * ```
2751
+ */
2752
+ renderOption?: (option: T, state: {
2753
+ isSelected: boolean;
2754
+ isActive: boolean;
2755
+ }) => ReactNode;
2756
+ /**
2757
+ * Render personalizado del valor mostrado en el trigger.
2758
+ *
2759
+ * @param value - Valor actual (puede ser null, T, o T[])
2760
+ * @returns ReactNode con el contenido personalizado
2761
+ *
2762
+ * @example
2763
+ * ```tsx
2764
+ * renderValue={(usuario) => (
2765
+ * usuario ? (
2766
+ * <div className="selected-user">
2767
+ * <Avatar src={usuario.avatar} size="sm" />
2768
+ * {usuario.nombre}
2769
+ * </div>
2770
+ * ) : (
2771
+ * <span className="placeholder">Selecciona un usuario</span>
2772
+ * )
2773
+ * )}
2774
+ * ```
2775
+ */
2776
+ renderValue?: (value: T | T[] | null) => ReactNode;
2777
+ /**
2778
+ * Variante visual del componente.
2779
+ *
2780
+ * - `bordered`: Borde visible (default)
2781
+ * - `faded`: Fondo gris, sin borde
2782
+ * - `underlined`: Solo borde inferior
2783
+ * - `ghost`: Transparente con sombra
2784
+ *
2785
+ * @default 'bordered'
2786
+ */
2787
+ variant?: InputVariant;
2788
+ /**
2789
+ * Color del borde en estado focus.
2790
+ *
2791
+ * @default 'default'
2792
+ */
2793
+ color?: InputColor;
2794
+ /**
2795
+ * Tamaño del componente.
2796
+ *
2797
+ * Afecta altura, padding y tamaño de fuente.
2798
+ * Usa las mismas variables CSS que InputText para consistencia.
2799
+ *
2800
+ * @default 'md'
2801
+ */
2802
+ size?: InputSize;
2803
+ /**
2804
+ * Radio de borde del trigger.
2805
+ *
2806
+ * @default 'md'
2807
+ */
2808
+ radius?: InputRadius;
2809
+ /**
2810
+ * Si true, el componente ocupa el 100% del ancho disponible.
2811
+ *
2812
+ * @default true
2813
+ */
2814
+ fullWidth?: boolean;
2815
+ /**
2816
+ * Deshabilita todas las animaciones y transiciones.
2817
+ *
2818
+ * Útil para usuarios con preferencias de movimiento reducido
2819
+ * o para testing.
2820
+ *
2821
+ * @default false
2822
+ */
2823
+ disableAnimation?: boolean;
2824
+ /**
2825
+ * Etiqueta del campo, mostrada arriba del trigger.
2826
+ */
2827
+ label?: string;
2828
+ /**
2829
+ * Texto mostrado cuando no hay selección.
2830
+ *
2831
+ * @default 'Seleccione una opción'
2832
+ */
2833
+ placeholder?: string;
2834
+ /**
2835
+ * Texto de ayuda mostrado debajo del campo.
2836
+ *
2837
+ * Se oculta cuando hay error de validación.
2838
+ */
2839
+ description?: string;
2840
+ /**
2841
+ * Mensaje de error personalizado.
2842
+ *
2843
+ * Puede ser un string o una función que recibe el estado de validación.
2844
+ *
2845
+ * @example
2846
+ * ```tsx
2847
+ * // String simple
2848
+ * errorMessage="Campo requerido"
2849
+ *
2850
+ * // Función dinámica
2851
+ * errorMessage={({ invalido, mensaje }) =>
2852
+ * invalido ? `⚠️ ${mensaje}` : null
2853
+ * }
2854
+ * ```
2855
+ */
2856
+ errorMessage?: string | ((validation: ResultadoValidacion) => ReactNode);
2857
+ /**
2858
+ * Texto cuando la lista de opciones está vacía.
2859
+ *
2860
+ * @default 'No hay opciones'
2861
+ */
2862
+ emptyMessage?: string;
2863
+ /**
2864
+ * Texto cuando la búsqueda no encuentra resultados.
2865
+ *
2866
+ * @default 'Sin resultados'
2867
+ */
2868
+ noResultsMessage?: string;
2869
+ /**
2870
+ * Marca el campo como obligatorio.
2871
+ *
2872
+ * Muestra asterisco (*) junto al label.
2873
+ *
2874
+ * @default false
2875
+ */
2876
+ isRequired?: boolean;
2877
+ /**
2878
+ * Deshabilita el componente.
2879
+ *
2880
+ * El trigger se vuelve no interactivo y semi-transparente.
2881
+ *
2882
+ * @default false
2883
+ */
2884
+ isDisabled?: boolean;
2885
+ /**
2886
+ * Modo solo lectura.
2887
+ *
2888
+ * Similar a disabled pero semánticamente diferente:
2889
+ * el valor existe pero no se puede cambiar.
2890
+ *
2891
+ * @default false
2892
+ */
2893
+ isReadOnly?: boolean;
2894
+ /**
2895
+ * Muestra indicador de carga (spinner).
2896
+ *
2897
+ * También deshabilita la interacción mientras carga.
2898
+ *
2899
+ * @default false
2900
+ */
2901
+ isLoading?: boolean;
2902
+ /**
2903
+ * Muestra botón para limpiar la selección.
2904
+ *
2905
+ * @default true
2906
+ */
2907
+ isClearable?: boolean;
2908
+ /**
2909
+ * Fuerza el estado inválido del campo.
2910
+ *
2911
+ * Tiene prioridad sobre validationState y validate.
2912
+ */
2913
+ isInvalid?: boolean;
2914
+ /**
2915
+ * Estado de validación explícito.
2916
+ *
2917
+ * - `valid`: Muestra borde verde
2918
+ * - `invalid`: Muestra borde rojo y mensaje de error
2919
+ */
2920
+ validationState?: 'valid' | 'invalid';
2921
+ /**
2922
+ * Habilita selección múltiple.
2923
+ *
2924
+ * El valor será un array de opciones.
2925
+ * Muestra chips para las seleccionadas.
2926
+ *
2927
+ * @default false
2928
+ */
2929
+ isMultiple?: boolean;
2930
+ /**
2931
+ * Controla si se muestran todos los chips en modo multi-selección.
2932
+ *
2933
+ * - `true`: Renderiza todos los chips seleccionados, permitiendo que
2934
+ * el trigger crezca verticalmente con wrapping (múltiples líneas).
2935
+ * - `false`: Colapsa después de 2 chips y muestra contador "+N" (comportamiento default).
2936
+ *
2937
+ * Solo aplica cuando `isMultiple={true}`.
2938
+ *
2939
+ * @default false
2940
+ *
2941
+ * @example
2942
+ * ```tsx
2943
+ * // Mostrar solo 2 chips + contador (default)
2944
+ * <Select
2945
+ * options={opciones}
2946
+ * isMultiple
2947
+ * value={[opt1, opt2, opt3, opt4]}
2948
+ * />
2949
+ * // Renderiza: [Chip1] [Chip2] +2
2950
+ *
2951
+ * // Mostrar todos los chips (crece verticalmente)
2952
+ * <Select
2953
+ * options={opciones}
2954
+ * isMultiple
2955
+ * mostrarTodos
2956
+ * value={[opt1, opt2, opt3, opt4]}
2957
+ * />
2958
+ * // Renderiza:
2959
+ * // [Chip1] [Chip2] [Chip3]
2960
+ * // [Chip4]
2961
+ * ```
2962
+ */
2963
+ mostrarTodos?: boolean;
2964
+ /**
2965
+ * Habilita campo de búsqueda.
2966
+ *
2967
+ * Permite filtrar las opciones escribiendo.
2968
+ *
2969
+ * @default false
2970
+ */
2971
+ isSearchable?: boolean;
2972
+ /**
2973
+ * Habilita virtualización de la lista.
2974
+ *
2975
+ * Necesario para listas grandes (+500 opciones).
2976
+ * Solo renderiza los elementos visibles.
2977
+ *
2978
+ * @default false
2979
+ */
2980
+ isVirtualized?: boolean;
2981
+ /**
2982
+ * Altura estimada de cada opción (en píxeles).
2983
+ *
2984
+ * Solo se usa cuando `isVirtualized` es true.
2985
+ * Ayuda al virtualizador a calcular el scroll.
2986
+ *
2987
+ * @default 36
2988
+ */
2989
+ estimatedOptionHeight?: number;
2990
+ /**
2991
+ * Función de filtrado personalizada.
2992
+ *
2993
+ * Por defecto busca coincidencia en el label (case-insensitive).
2994
+ *
2995
+ * @param option - Opción a evaluar
2996
+ * @param searchValue - Texto de búsqueda actual
2997
+ * @returns true si la opción debe mostrarse
2998
+ *
2999
+ * @example
3000
+ * ```ts
3001
+ * // Buscar en múltiples campos
3002
+ * filterFn={(usuario, busqueda) =>
3003
+ * usuario.nombre.toLowerCase().includes(busqueda.toLowerCase()) ||
3004
+ * usuario.email.toLowerCase().includes(busqueda.toLowerCase())
3005
+ * }
3006
+ * ```
3007
+ */
3008
+ filterFn?: (option: T, searchValue: string) => boolean;
3009
+ /**
3010
+ * Función de validación.
3011
+ *
3012
+ * Se ejecuta cada vez que cambia el valor.
3013
+ *
3014
+ * @param value - Valor actual a validar
3015
+ * @returns
3016
+ * - `true` o `null`: válido
3017
+ * - `string`: mensaje de error
3018
+ * - `{ message?: string }`: objeto con mensaje
3019
+ *
3020
+ * @example
3021
+ * ```ts
3022
+ * validate={(valor) => {
3023
+ * if (!valor) return 'Seleccione una opción';
3024
+ * if (valor.activo === false) return 'Esta opción no está disponible';
3025
+ * return true;
3026
+ * }}
3027
+ * ```
3028
+ */
3029
+ validate?: (value: T | T[] | null) => boolean | string | {
3030
+ message?: string;
3031
+ } | null | undefined;
3032
+ /** Callback al abrir el menú desplegable */
3033
+ onOpen?: () => void;
3034
+ /** Callback al cerrar el menú desplegable */
3035
+ onClose?: () => void;
3036
+ /**
3037
+ * Callback cuando cambia el texto de búsqueda.
3038
+ *
3039
+ * Útil para búsqueda en servidor (debounced).
3040
+ *
3041
+ * @param search - Texto de búsqueda actual
3042
+ */
3043
+ onSearchChange?: (search: string) => void;
3044
+ /** Callback al limpiar la selección (botón X) */
3045
+ onClear?: () => void;
3046
+ /** Callback cuando el trigger recibe focus */
3047
+ onFocus?: () => void;
3048
+ /** Callback cuando el trigger pierde focus */
3049
+ onBlur?: () => void;
3050
+ /**
3051
+ * ID del elemento (para label y accesibilidad).
3052
+ *
3053
+ * Si no se proporciona, se genera automáticamente con useId().
3054
+ */
3055
+ id?: string;
3056
+ /**
3057
+ * Nombre del campo para formularios HTML.
3058
+ *
3059
+ * Se crea un input hidden con este nombre y el valor seleccionado.
3060
+ */
3061
+ name?: string;
3062
+ /**
3063
+ * Clase CSS adicional para el contenedor base.
3064
+ */
3065
+ className?: string;
3066
+ /**
3067
+ * Clases CSS para slots específicos.
3068
+ *
3069
+ * Permite personalizar cada parte del componente.
3070
+ */
3071
+ classNames?: {
3072
+ /** Contenedor principal */
3073
+ base?: string;
3074
+ /** Etiqueta del campo */
3075
+ label?: string;
3076
+ /** Botón/trigger que abre el menú */
3077
+ trigger?: string;
3078
+ /** Área donde se muestra el valor seleccionado */
3079
+ value?: string;
3080
+ /** Botón de limpiar */
3081
+ clearButton?: string;
3082
+ /** Contenedor del menú desplegable */
3083
+ menu?: string;
3084
+ /** Cada opción individual */
3085
+ option?: string;
3086
+ /** Input de búsqueda */
3087
+ searchInput?: string;
3088
+ /** Texto de descripción */
3089
+ description?: string;
3090
+ /** Mensaje de error */
3091
+ errorMessage?: string;
3092
+ };
3093
+ /**
3094
+ * Contenido antes del valor (icono, prefijo, etc).
3095
+ */
3096
+ startContent?: ReactNode;
3097
+ /**
3098
+ * Contenido después del valor (antes del chevron).
3099
+ */
3100
+ endContent?: ReactNode;
3101
+ /**
3102
+ * Z-index del menú flotante.
3103
+ *
3104
+ * Por defecto usa `--z-popover` de las variables CSS.
3105
+ */
3106
+ menuZIndex?: number;
3107
+ /**
3108
+ * Contenedor donde se renderiza el portal del menú.
3109
+ *
3110
+ * Por defecto se renderiza al final del `<body>`.
3111
+ */
3112
+ portalContainer?: HTMLElement | null;
3113
+ };
3114
+
3115
+ /**
3116
+ * Métodos expuestos vía ref del componente Select.
3117
+ *
3118
+ * @description
3119
+ * Permite control imperativo del componente.
3120
+ * Usar con `useRef<SelectRef>()`.
3121
+ *
3122
+ * @example
3123
+ * ```tsx
3124
+ * const selectRef = useRef<SelectRef>(null);
3125
+ *
3126
+ * // Abrir programáticamente
3127
+ * selectRef.current?.open();
3128
+ *
3129
+ * // Limpiar selección
3130
+ * selectRef.current?.clear();
3131
+ *
3132
+ * // Enfocar después de una acción
3133
+ * selectRef.current?.focus();
3134
+ * ```
3135
+ */
3136
+ export declare type SelectRef = {
3137
+ /** Enfoca el trigger del select */
3138
+ focus: () => void;
3139
+ /** Quita el focus del trigger */
3140
+ blur: () => void;
3141
+ /** Abre el menú desplegable */
3142
+ open: () => void;
3143
+ /** Cierra el menú desplegable */
3144
+ close: () => void;
3145
+ /** Limpia la selección (null en simple, [] en múltiple) */
3146
+ clear: () => void;
3147
+ };
3148
+
3149
+ /**
3150
+ * Props para Select con opciones de tipo string (modo simple).
3151
+ *
3152
+ * @description
3153
+ * Cuando las opciones son strings, no se necesitan optionValueKey ni optionLabelKey.
3154
+ * El onChange recibe directamente el string seleccionado o null.
3155
+ *
3156
+ * @example
3157
+ * ```tsx
3158
+ * const frutas = ['Manzana', 'Pera', 'Naranja'];
3159
+ * <Select
3160
+ * options={frutas}
3161
+ * value="Manzana"
3162
+ * onChange={(fruta) => console.log(fruta)} // 'Manzana' | null
3163
+ * />
3164
+ * ```
3165
+ */
3166
+ declare type SelectStringProps = BaseSelectProps<string> & WrapperProps & {
3167
+ /** Lista de strings */
3168
+ options: string[];
3169
+ /** Valor seleccionado actual */
3170
+ value?: string | null;
3171
+ /** Callback al cambiar selección */
3172
+ onChange?: (value: string | null) => void;
3173
+ /** No debe existir en modo string */
3174
+ optionValueKey?: never;
3175
+ /** No debe existir en modo string */
3176
+ optionLabelKey?: never;
3177
+ /** No aplica en modo string */
3178
+ devolverObjeto?: never;
3179
+ /** Debe ser false o no definido */
3180
+ isMultiple?: false;
3181
+ };
3182
+
3183
+ declare type SinDatosProps = {
3184
+ alAgregarRegistro?: () => void;
3185
+ titulo?: string;
3186
+ descripcion?: string;
3187
+ etiquetaAccion?: string;
3188
+ };
3189
+
3190
+ /**
3191
+ * Unión discriminada de todos los tipos posibles del Select.
3192
+ *
3193
+ * @description
3194
+ * TypeScript inferirá automáticamente qué interfaz usar según:
3195
+ * - El tipo de `options` (string[] vs objeto[])
3196
+ * - El valor de `isMultiple`
3197
+ * - El valor de `devolverObjeto`
3198
+ * - La presencia de `optionValueKey`
3199
+ *
3200
+ * Esto fuerza el uso correcto en tiempo de compilación.
3201
+ */
3202
+ declare type SmartSelectProps<T> = SelectStringProps | SelectMultiStringProps | SelectObjectIdProps<T> | SelectMultiObjectIdProps<T> | SelectObjectFullProps<T> | SelectMultiObjectFullProps<T>;
3203
+
3204
+ export declare function SonidoIcono(props: SVGProps<SVGSVGElement>): JSX.Element;
3205
+
3206
+ export declare type TablaContextType<TData extends object = object> = {
3207
+ state: TablaState<TData>;
3208
+ todasLasColumnas: Column<TData, unknown>[];
3209
+ etiquetaColumna: (id: string) => string;
3210
+ restaurarConfiguracion: () => void;
3211
+ cambiarPageSize: (valor: number) => void;
3212
+ cambiarOrdenColumnas: (actualizador: ColumnOrderState | ((prev: ColumnOrderState) => ColumnOrderState)) => void;
3213
+ };
3214
+
3215
+ /**
3216
+ * Componente principal de tabla de datos
3217
+ *
3218
+ * Características:
3219
+ * - Vista adaptativa: tabla tradicional en escritorio, cards en dispositivos móviles
3220
+ * - Búsqueda global con debounce
3221
+ * - Paginación automática
3222
+ * - Ordenamiento de columnas
3223
+ * - Acciones personalizables por fila
3224
+ * - Botones de filtros, actualizar y exportar Excel
3225
+ * - Visualización resumida de los filtros aplicados
3226
+ * - Acciones personalizables al seleccionar varias filas
3227
+ * - Textos personalizables cuando no hay datos
3228
+ *
3229
+ * @example
3230
+ * ```tsx
3231
+ * <TablaDatos
3232
+ * id="tabla-empleados"
3233
+ * data={empleados}
3234
+ * columns={[
3235
+ * { accessorKey: 'nombre', header: 'Nombre' },
3236
+ * { accessorKey: 'cargo', header: 'Cargo' },
3237
+ * ]}
3238
+ * controls={[
3239
+ * {
3240
+ * id: 'editar',
3241
+ * name: 'Editar',
3242
+ * icon: <IconoEditar />,
3243
+ * event: (empleado) => console.log('Editar', empleado),
3244
+ * },
3245
+ * ]}
3246
+ * filtros={{
3247
+ * filtrosAplicados: [{
3248
+ * id: 'cedula',
3249
+ * nombre: 'Cédula',
3250
+ * valor: '1234567890',
3251
+ * }],
3252
+ * abrirFiltros: () => setAbrirFiltros(true),
3253
+ * }}
3254
+ * primerasColumnas={['nombre', 'cargo']}
3255
+ * loading={false}
3256
+ * selectorFilas={[
3257
+ * {
3258
+ * id: 'descargar-reporte',
3259
+ * componente(filas) {
3260
+ * return (
3261
+ * <Boton
3262
+ * variant="light"
3263
+ * color="default"
3264
+ * size="md"
3265
+ * radius="md"
3266
+ * onClick={() => descargarReportes(filas.map(f => f.id))}
3267
+ * >
3268
+ * <IconoPdf /> Descargar reporte
3269
+ * </Boton>
3270
+ * );
3271
+ * },
3272
+ * },
3273
+ * {
3274
+ * id: 'eliminar',
3275
+ * componente(filas) {
3276
+ * return (
3277
+ * <Boton
3278
+ * variant="light"
3279
+ * color="danger"
3280
+ * size="md"
3281
+ * radius="md"
3282
+ * onClick={() => eliminarRegistros(filas.map(f => f.id))}
3283
+ * >
3284
+ * <IconoEliminar /> Eliminar
3285
+ * </Boton>
3286
+ * );
3287
+ * },
3288
+ * },
3289
+ * ]}
3290
+ * />
3291
+ * ```
3292
+ */
3293
+ export declare function TablaDatos<TData extends object>({ id, ...providerProps }: TablaDatosProps<TData>): JSX.Element;
3294
+
3295
+ export declare type TablaDatosProps<TData extends object> = {
3296
+ /** Identificador único de la tabla */
3297
+ id: string;
3298
+ /** Datos a mostrar en la tabla */
3299
+ data: TData[];
3300
+ /** Definición de columnas usando TanStack Table */
3301
+ columns: ColumnDef<TData>[];
3302
+ /** Controles/acciones disponibles por fila */
3303
+ controls?: Control<TData>[];
3304
+ /** Configuración de los filtros */
3305
+ filtros?: {
3306
+ /** Callback para abrir panel de filtros */
3307
+ abrirFiltros?: () => void;
3308
+ /** Filtros aplicados */
3309
+ filtrosAplicados?: FiltrosAplicadosType[];
3310
+ };
3311
+ /** Callback para descargar Excel */
3312
+ descargarExcel?: () => void;
3313
+ /** Indica si la tabla está cargando */
3314
+ loading?: boolean;
3315
+ /** Configuración del botón actualizar */
3316
+ actualizarTabla?: ActualizarTablaConfig;
3317
+ /** Llaves de las primeras columnas para vista móvil (máximo 2) */
3318
+ primerasColumnas: (keyof TData)[];
3319
+ /** Configuración del selector de filas con acciones masivas, se muestra en la tabla cuando se selecciona al menos una fila */
3320
+ selectorFilas?: AccionFila<TData>[];
3321
+ /** Configuración del estado "sin datos" */
3322
+ sinDatosProps?: SinDatosProps;
3323
+ };
3324
+
3325
+ export declare type TablaState<TData extends object = object> = {
3326
+ ordenColumnas: ColumnOrderState;
3327
+ table: Table<TData>;
3328
+ columns: ColumnDef<TData>[];
3329
+ primerasColumnas: [string, string];
3330
+ inputBusqueda: string;
3331
+ setInputBusqueda: (valor: string) => void;
3332
+ } & Omit<TablaDatosProps<TData>, 'data' | 'columns' | 'primerasColumnas' | 'id'>;
3333
+
3334
+ export declare const TextArea: ForwardRefExoticComponent< {
3335
+ variant?: InputVariant;
3336
+ color?: InputColor;
3337
+ size?: InputSize;
3338
+ radius?: InputRadius;
3339
+ label?: ReactNode;
3340
+ placeholder?: string;
3341
+ value?: string;
3342
+ defaultValue?: string;
3343
+ description?: ReactNode;
3344
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
3345
+ isRequired?: boolean;
3346
+ isReadOnly?: boolean;
3347
+ isDisabled?: boolean;
3348
+ isClearable?: boolean;
3349
+ isInvalid?: boolean;
3350
+ validationState?: "valid" | "invalid";
3351
+ validate?: (value: string) => ValidationResult;
3352
+ fullWidth?: boolean;
3353
+ disableAnimation?: boolean;
3354
+ minRows?: number;
3355
+ maxRows?: number;
3356
+ disableAutosize?: boolean;
3357
+ hideVoiceActions?: boolean;
3358
+ classNames?: {
3359
+ base?: string;
3360
+ label?: string;
3361
+ inputWrapper?: string;
3362
+ input?: string;
3363
+ actions?: string;
3364
+ description?: string;
3365
+ errorMessage?: string;
3366
+ };
3367
+ onChange?: (value: string) => void;
3368
+ onClear?: () => void;
3369
+ children?: ReactNode;
3370
+ } & {
3371
+ form?: string | undefined | undefined;
3372
+ slot?: string | undefined | undefined;
3373
+ style?: CSSProperties | undefined;
3374
+ title?: string | undefined | undefined;
3375
+ className?: string | undefined | undefined;
3376
+ onClick?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3377
+ "aria-label"?: string | undefined | undefined;
3378
+ disabled?: boolean | undefined | undefined;
3379
+ name?: string | undefined | undefined;
3380
+ value?: string | number | readonly string[] | undefined;
3381
+ defaultChecked?: boolean | undefined | undefined;
3382
+ defaultValue?: string | number | readonly string[] | undefined;
3383
+ suppressContentEditableWarning?: boolean | undefined | undefined;
3384
+ suppressHydrationWarning?: boolean | undefined | undefined;
3385
+ accessKey?: string | undefined | undefined;
3386
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
3387
+ autoFocus?: boolean | undefined | undefined;
3388
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
3389
+ contextMenu?: string | undefined | undefined;
3390
+ dir?: string | undefined | undefined;
3391
+ draggable?: (boolean | "true" | "false") | undefined;
3392
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
3393
+ hidden?: boolean | undefined | undefined;
3394
+ id?: string | undefined | undefined;
3395
+ lang?: string | undefined | undefined;
3396
+ nonce?: string | undefined | undefined;
3397
+ spellCheck?: (boolean | "true" | "false") | undefined;
3398
+ tabIndex?: number | undefined | undefined;
3399
+ translate?: "yes" | "no" | undefined | undefined;
3400
+ radioGroup?: string | undefined | undefined;
3401
+ role?: AriaRole | undefined;
3402
+ about?: string | undefined | undefined;
3403
+ content?: string | undefined | undefined;
3404
+ datatype?: string | undefined | undefined;
3405
+ inlist?: any;
3406
+ prefix?: string | undefined | undefined;
3407
+ property?: string | undefined | undefined;
3408
+ rel?: string | undefined | undefined;
3409
+ resource?: string | undefined | undefined;
3410
+ rev?: string | undefined | undefined;
3411
+ typeof?: string | undefined | undefined;
3412
+ vocab?: string | undefined | undefined;
3413
+ autoCorrect?: string | undefined | undefined;
3414
+ autoSave?: string | undefined | undefined;
3415
+ itemProp?: string | undefined | undefined;
3416
+ itemScope?: boolean | undefined | undefined;
3417
+ itemType?: string | undefined | undefined;
3418
+ itemID?: string | undefined | undefined;
3419
+ itemRef?: string | undefined | undefined;
3420
+ results?: number | undefined | undefined;
3421
+ security?: string | undefined | undefined;
3422
+ unselectable?: "on" | "off" | undefined | undefined;
3423
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
3424
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
3425
+ popoverTarget?: string | undefined | undefined;
3426
+ inert?: boolean | undefined | undefined;
3427
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
3428
+ is?: string | undefined | undefined;
3429
+ exportparts?: string | undefined | undefined;
3430
+ part?: string | undefined | undefined;
3431
+ "aria-activedescendant"?: string | undefined | undefined;
3432
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
3433
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
3434
+ "aria-braillelabel"?: string | undefined | undefined;
3435
+ "aria-brailleroledescription"?: string | undefined | undefined;
3436
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
3437
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
3438
+ "aria-colcount"?: number | undefined | undefined;
3439
+ "aria-colindex"?: number | undefined | undefined;
3440
+ "aria-colindextext"?: string | undefined | undefined;
3441
+ "aria-colspan"?: number | undefined | undefined;
3442
+ "aria-controls"?: string | undefined | undefined;
3443
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
3444
+ "aria-describedby"?: string | undefined | undefined;
3445
+ "aria-description"?: string | undefined | undefined;
3446
+ "aria-details"?: string | undefined | undefined;
3447
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
3448
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
3449
+ "aria-errormessage"?: string | undefined | undefined;
3450
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
3451
+ "aria-flowto"?: string | undefined | undefined;
3452
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
3453
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
3454
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
3455
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
3456
+ "aria-keyshortcuts"?: string | undefined | undefined;
3457
+ "aria-labelledby"?: string | undefined | undefined;
3458
+ "aria-level"?: number | undefined | undefined;
3459
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
3460
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
3461
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
3462
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
3463
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
3464
+ "aria-owns"?: string | undefined | undefined;
3465
+ "aria-placeholder"?: string | undefined | undefined;
3466
+ "aria-posinset"?: number | undefined | undefined;
3467
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
3468
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
3469
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
3470
+ "aria-required"?: (boolean | "true" | "false") | undefined;
3471
+ "aria-roledescription"?: string | undefined | undefined;
3472
+ "aria-rowcount"?: number | undefined | undefined;
3473
+ "aria-rowindex"?: number | undefined | undefined;
3474
+ "aria-rowindextext"?: string | undefined | undefined;
3475
+ "aria-rowspan"?: number | undefined | undefined;
3476
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
3477
+ "aria-setsize"?: number | undefined | undefined;
3478
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
3479
+ "aria-valuemax"?: number | undefined | undefined;
3480
+ "aria-valuemin"?: number | undefined | undefined;
3481
+ "aria-valuenow"?: number | undefined | undefined;
3482
+ "aria-valuetext"?: string | undefined | undefined;
3483
+ dangerouslySetInnerHTML?: {
3484
+ __html: string | TrustedHTML;
3485
+ } | undefined | undefined;
3486
+ onCopy?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
3487
+ onCopyCapture?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
3488
+ onCut?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
3489
+ onCutCapture?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
3490
+ onPaste?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
3491
+ onPasteCapture?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
3492
+ onCompositionEnd?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
3493
+ onCompositionEndCapture?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
3494
+ onCompositionStart?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
3495
+ onCompositionStartCapture?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
3496
+ onCompositionUpdate?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
3497
+ onCompositionUpdateCapture?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
3498
+ onFocus?: FocusEventHandler<HTMLTextAreaElement> | undefined;
3499
+ onFocusCapture?: FocusEventHandler<HTMLTextAreaElement> | undefined;
3500
+ onBlur?: FocusEventHandler<HTMLTextAreaElement> | undefined;
3501
+ onBlurCapture?: FocusEventHandler<HTMLTextAreaElement> | undefined;
3502
+ onChangeCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
3503
+ onBeforeInput?: InputEventHandler<HTMLTextAreaElement> | undefined;
3504
+ onBeforeInputCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
3505
+ onInput?: FormEventHandler<HTMLTextAreaElement> | undefined;
3506
+ onInputCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
3507
+ onReset?: FormEventHandler<HTMLTextAreaElement> | undefined;
3508
+ onResetCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
3509
+ onSubmit?: FormEventHandler<HTMLTextAreaElement> | undefined;
3510
+ onSubmitCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
3511
+ onInvalid?: FormEventHandler<HTMLTextAreaElement> | undefined;
3512
+ onInvalidCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
3513
+ onLoad?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3514
+ onLoadCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3515
+ onError?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3516
+ onErrorCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3517
+ onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
3518
+ onKeyDownCapture?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
3519
+ onKeyPress?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
3520
+ onKeyPressCapture?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
3521
+ onKeyUp?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
3522
+ onKeyUpCapture?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
3523
+ onAbort?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3524
+ onAbortCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3525
+ onCanPlay?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3526
+ onCanPlayCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3527
+ onCanPlayThrough?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3528
+ onCanPlayThroughCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3529
+ onDurationChange?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3530
+ onDurationChangeCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3531
+ onEmptied?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3532
+ onEmptiedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3533
+ onEncrypted?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3534
+ onEncryptedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3535
+ onEnded?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3536
+ onEndedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3537
+ onLoadedData?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3538
+ onLoadedDataCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3539
+ onLoadedMetadata?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3540
+ onLoadedMetadataCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3541
+ onLoadStart?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3542
+ onLoadStartCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3543
+ onPause?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3544
+ onPauseCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3545
+ onPlay?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3546
+ onPlayCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3547
+ onPlaying?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3548
+ onPlayingCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3549
+ onProgress?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3550
+ onProgressCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3551
+ onRateChange?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3552
+ onRateChangeCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3553
+ onSeeked?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3554
+ onSeekedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3555
+ onSeeking?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3556
+ onSeekingCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3557
+ onStalled?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3558
+ onStalledCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3559
+ onSuspend?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3560
+ onSuspendCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3561
+ onTimeUpdate?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3562
+ onTimeUpdateCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3563
+ onVolumeChange?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3564
+ onVolumeChangeCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3565
+ onWaiting?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3566
+ onWaitingCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3567
+ onAuxClick?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3568
+ onAuxClickCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3569
+ onClickCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3570
+ onContextMenu?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3571
+ onContextMenuCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3572
+ onDoubleClick?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3573
+ onDoubleClickCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3574
+ onDrag?: DragEventHandler<HTMLTextAreaElement> | undefined;
3575
+ onDragCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3576
+ onDragEnd?: DragEventHandler<HTMLTextAreaElement> | undefined;
3577
+ onDragEndCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3578
+ onDragEnter?: DragEventHandler<HTMLTextAreaElement> | undefined;
3579
+ onDragEnterCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3580
+ onDragExit?: DragEventHandler<HTMLTextAreaElement> | undefined;
3581
+ onDragExitCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3582
+ onDragLeave?: DragEventHandler<HTMLTextAreaElement> | undefined;
3583
+ onDragLeaveCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3584
+ onDragOver?: DragEventHandler<HTMLTextAreaElement> | undefined;
3585
+ onDragOverCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3586
+ onDragStart?: DragEventHandler<HTMLTextAreaElement> | undefined;
3587
+ onDragStartCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3588
+ onDrop?: DragEventHandler<HTMLTextAreaElement> | undefined;
3589
+ onDropCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
3590
+ onMouseDown?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3591
+ onMouseDownCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3592
+ onMouseEnter?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3593
+ onMouseLeave?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3594
+ onMouseMove?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3595
+ onMouseMoveCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3596
+ onMouseOut?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3597
+ onMouseOutCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3598
+ onMouseOver?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3599
+ onMouseOverCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3600
+ onMouseUp?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3601
+ onMouseUpCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
3602
+ onSelect?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3603
+ onSelectCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
3604
+ onTouchCancel?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3605
+ onTouchCancelCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3606
+ onTouchEnd?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3607
+ onTouchEndCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3608
+ onTouchMove?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3609
+ onTouchMoveCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3610
+ onTouchStart?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3611
+ onTouchStartCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
3612
+ onPointerDown?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3613
+ onPointerDownCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3614
+ onPointerMove?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3615
+ onPointerMoveCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3616
+ onPointerUp?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3617
+ onPointerUpCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3618
+ onPointerCancel?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3619
+ onPointerCancelCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3620
+ onPointerEnter?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3621
+ onPointerLeave?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3622
+ onPointerOver?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3623
+ onPointerOverCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3624
+ onPointerOut?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3625
+ onPointerOutCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3626
+ onGotPointerCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3627
+ onGotPointerCaptureCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3628
+ onLostPointerCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3629
+ onLostPointerCaptureCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
3630
+ onScroll?: UIEventHandler<HTMLTextAreaElement> | undefined;
3631
+ onScrollCapture?: UIEventHandler<HTMLTextAreaElement> | undefined;
3632
+ onScrollEnd?: UIEventHandler<HTMLTextAreaElement> | undefined;
3633
+ onScrollEndCapture?: UIEventHandler<HTMLTextAreaElement> | undefined;
3634
+ onWheel?: WheelEventHandler<HTMLTextAreaElement> | undefined;
3635
+ onWheelCapture?: WheelEventHandler<HTMLTextAreaElement> | undefined;
3636
+ onAnimationStart?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
3637
+ onAnimationStartCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
3638
+ onAnimationEnd?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
3639
+ onAnimationEndCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
3640
+ onAnimationIteration?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
3641
+ onAnimationIterationCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
3642
+ onToggle?: ToggleEventHandler<HTMLTextAreaElement> | undefined;
3643
+ onBeforeToggle?: ToggleEventHandler<HTMLTextAreaElement> | undefined;
3644
+ onTransitionCancel?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3645
+ onTransitionCancelCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3646
+ onTransitionEnd?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3647
+ onTransitionEndCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3648
+ onTransitionRun?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3649
+ onTransitionRunCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3650
+ onTransitionStart?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3651
+ onTransitionStartCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
3652
+ wrap?: string | undefined | undefined;
3653
+ autoComplete?: string | undefined | undefined;
3654
+ maxLength?: number | undefined | undefined;
3655
+ minLength?: number | undefined | undefined;
3656
+ placeholder?: string | undefined | undefined;
3657
+ readOnly?: boolean | undefined | undefined;
3658
+ required?: boolean | undefined | undefined;
3659
+ cols?: number | undefined | undefined;
3660
+ dirName?: string | undefined | undefined;
3661
+ rows?: number | undefined | undefined;
3662
+ } & RefAttributes<HTMLTextAreaElement>>;
3663
+
3664
+ /**
3665
+ * Props del componente TextArea
3666
+ * @description Área de texto con soporte para dictado por voz, lectura TTS, autosize y validación
3667
+ */
3668
+ export declare type TextAreaProps = {
3669
+ /** Variante visual del textarea */
3670
+ variant?: InputVariant;
3671
+ /** Color temático del textarea (afecta el borde en focus) */
3672
+ color?: InputColor;
3673
+ /** Tamaño del textarea */
3674
+ size?: InputSize;
3675
+ /** Radio de bordes del textarea */
3676
+ radius?: InputRadius;
3677
+ /** Etiqueta del campo */
3678
+ label?: ReactNode;
3679
+ /** Placeholder del textarea */
3680
+ placeholder?: string;
3681
+ /** Valor controlado del textarea */
3682
+ value?: string;
3683
+ /** Valor inicial no controlado */
3684
+ defaultValue?: string;
3685
+ /** Descripción o texto de ayuda */
3686
+ description?: ReactNode;
3687
+ /** Mensaje de error personalizado */
3688
+ errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
3689
+ /** Si el campo es requerido */
3690
+ isRequired?: boolean;
3691
+ /** Si el campo es de solo lectura */
3692
+ isReadOnly?: boolean;
3693
+ /** Si el campo está deshabilitado */
3694
+ isDisabled?: boolean;
3695
+ /** Si muestra botón para limpiar el campo */
3696
+ isClearable?: boolean;
3697
+ /** Si el campo es inválido (override manual) */
3698
+ isInvalid?: boolean;
3699
+ /** Estado de validación manual */
3700
+ validationState?: 'valid' | 'invalid';
3701
+ /** Función de validación personalizada */
3702
+ validate?: (value: string) => ValidationResult;
3703
+ /** Si el textarea ocupa todo el ancho */
3704
+ fullWidth?: boolean;
3705
+ /** Deshabilita animaciones */
3706
+ disableAnimation?: boolean;
3707
+ /** Número mínimo de filas visibles */
3708
+ minRows?: number;
3709
+ /** Número máximo de filas antes de mostrar scroll */
3710
+ maxRows?: number;
3711
+ /** Deshabilita el redimensionado automático */
3712
+ disableAutosize?: boolean;
3713
+ /** Oculta las acciones de voz (TTS y dictado) */
3714
+ hideVoiceActions?: boolean;
3715
+ /** Clases CSS personalizadas para cada parte */
3716
+ classNames?: {
3717
+ base?: string;
3718
+ label?: string;
3719
+ inputWrapper?: string;
3720
+ input?: string;
3721
+ actions?: string;
3722
+ description?: string;
3723
+ errorMessage?: string;
3724
+ };
3725
+ /** Callback cuando cambia el valor */
3726
+ onChange?: (value: string) => void;
3727
+ /** Callback cuando se limpia el campo */
3728
+ onClear?: () => void;
3729
+ /** Contenido adicional (children) */
3730
+ children?: ReactNode;
3731
+ } & NativeTextareaProps;
3732
+
3733
+ declare type TipoTransicion = 'desvanecerDeslizar' | 'escalar';
3734
+
3735
+ export declare const Toggle: ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> & {
3736
+ isSelected?: boolean;
3737
+ defaultSelected?: boolean;
3738
+ onChange?: (isSelected: boolean) => void;
3739
+ label?: string;
3740
+ description?: string;
3741
+ size?: ToggleSize;
3742
+ color?: ToggleColor;
3743
+ customColor?: string;
3744
+ isDisabled?: boolean;
3745
+ isReadOnly?: boolean;
3746
+ isInvalid?: boolean;
3747
+ isRequired?: boolean;
3748
+ showIcons?: boolean;
3749
+ variant?: ToggleVariant;
3750
+ labelPlacement?: "left" | "right";
3751
+ labelPosition?: "inline" | "top";
3752
+ justifyEnd?: boolean;
3753
+ children?: React.ReactNode;
3754
+ className?: string;
3755
+ } & RefAttributes<HTMLInputElement>>;
3756
+
3757
+ export declare type ToggleColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
3758
+
3759
+ export declare type ToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'onChange'> & {
3760
+ /**
3761
+ * Si el toggle está activado (modo controlado)
3762
+ */
3763
+ isSelected?: boolean;
3764
+ /**
3765
+ * Si está activado por defecto (modo no controlado)
3766
+ * @default false
3767
+ */
3768
+ defaultSelected?: boolean;
3769
+ /**
3770
+ * Callback cuando cambia el estado
3771
+ */
3772
+ onChange?: (isSelected: boolean) => void;
3773
+ /**
3774
+ * Label del toggle
3775
+ */
3776
+ label?: string;
3777
+ /**
3778
+ * Descripción adicional
3779
+ */
3780
+ description?: string;
3781
+ /**
3782
+ * Tamaño del toggle
3783
+ * @default 'md'
3784
+ */
3785
+ size?: ToggleSize;
3786
+ /**
3787
+ * Color del tema
3788
+ * @default 'primary'
3789
+ */
3790
+ color?: ToggleColor;
3791
+ /**
3792
+ * Color personalizado (CSS color value)
3793
+ * Sobrescribe el color del tema si se especifica
3794
+ */
3795
+ customColor?: string;
3796
+ /**
3797
+ * Si está deshabilitado
3798
+ */
3799
+ isDisabled?: boolean;
3800
+ /**
3801
+ * Si está en modo solo lectura
3802
+ */
3803
+ isReadOnly?: boolean;
3804
+ /**
3805
+ * Si tiene error de validación
3806
+ */
3807
+ isInvalid?: boolean;
3808
+ /**
3809
+ * Si es requerido
3810
+ */
3811
+ isRequired?: boolean;
3812
+ /**
3813
+ * Mostrar iconos de check/x dentro del toggle
3814
+ * @default false
3815
+ */
3816
+ showIcons?: boolean;
3817
+ /**
3818
+ * Variante del toggle
3819
+ * @default 'default'
3820
+ */
3821
+ variant?: ToggleVariant;
3822
+ /**
3823
+ * Posición del label horizontal
3824
+ * @default 'right'
3825
+ */
3826
+ labelPlacement?: 'left' | 'right';
3827
+ /**
3828
+ * Posición del label vertical
3829
+ * @default 'inline'
3830
+ */
3831
+ labelPosition?: 'inline' | 'top';
3832
+ /**
3833
+ * Alinear toggle al extremo en layouts (útil para Settings)
3834
+ * @default false
3835
+ */
3836
+ justifyEnd?: boolean;
3837
+ /**
3838
+ * Children (usado cuando no se pasa label)
3839
+ */
3840
+ children?: React.ReactNode;
3841
+ /**
3842
+ * Clase CSS adicional
3843
+ */
3844
+ className?: string;
3845
+ };
3846
+
3847
+ export declare type ToggleSize = 'sm' | 'md' | 'lg';
3848
+
3849
+ export declare type ToggleVariant = 'default' | 'moon';
3850
+
3851
+ export declare function Tooltip({ content, children, placement, variant, size, offset: offsetValue, delayShow, delayHide, isDisabled, showArrow, maxWidth, isInteractive, className, onOpen, onClose, isOpen: controlledIsOpen, onOpenChange, }: TooltipProps): JSX.Element;
3852
+
3853
+ export declare type TooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
3854
+
3855
+ export declare type TooltipProps = {
3856
+ /**
3857
+ * Contenido del tooltip
3858
+ */
3859
+ content: React.ReactNode;
3860
+ /**
3861
+ * Elemento trigger (children)
3862
+ */
3863
+ children: React.ReactElement;
3864
+ /**
3865
+ * Posición del tooltip relativa al trigger
3866
+ * @default 'top'
3867
+ */
3868
+ placement?: TooltipPlacement;
3869
+ /**
3870
+ * Variante de color/estilo del tooltip
3871
+ * @default 'default'
3872
+ */
3873
+ variant?: TooltipVariant;
3874
+ /**
3875
+ * Tamaño del tooltip
3876
+ * @default 'md'
3877
+ */
3878
+ size?: TooltipSize;
3879
+ /**
3880
+ * Offset (distancia) desde el trigger en píxeles
3881
+ * @default 8
3882
+ */
3883
+ offset?: number;
3884
+ /**
3885
+ * Delay antes de mostrar el tooltip (ms)
3886
+ * @default 200
3887
+ */
3888
+ delayShow?: number;
3889
+ /**
3890
+ * Delay antes de ocultar el tooltip (ms)
3891
+ * @default 0
3892
+ */
3893
+ delayHide?: number;
3894
+ /**
3895
+ * Si el tooltip está deshabilitado
3896
+ * @default false
3897
+ */
3898
+ isDisabled?: boolean;
3899
+ /**
3900
+ * Si muestra la flecha apuntando al trigger
3901
+ * @default false
3902
+ */
3903
+ showArrow?: boolean;
3904
+ /**
3905
+ * Ancho máximo del tooltip (CSS)
3906
+ * @default '320px'
3907
+ */
3908
+ maxWidth?: string;
3909
+ /**
3910
+ * Si el tooltip es interactivo (se puede hacer hover sobre él)
3911
+ * @default false
3912
+ */
3913
+ isInteractive?: boolean;
3914
+ /**
3915
+ * Clase CSS adicional para el tooltip
3916
+ */
3917
+ className?: string;
3918
+ /**
3919
+ * Callback cuando se abre el tooltip
3920
+ */
3921
+ onOpen?: () => void;
3922
+ /**
3923
+ * Callback cuando se cierra el tooltip
3924
+ */
3925
+ onClose?: () => void;
3926
+ /**
3927
+ * Si el tooltip se controla manualmente
3928
+ */
3929
+ isOpen?: boolean;
3930
+ /**
3931
+ * Callback para cambiar el estado controlado
3932
+ */
3933
+ onOpenChange?: (isOpen: boolean) => void;
3934
+ };
3935
+
3936
+ export declare type TooltipSize = 'sm' | 'md' | 'lg';
3937
+
3938
+ export declare type TooltipVariant = 'default' | 'dark' | 'light' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
3939
+
3940
+ export declare function Transicion({ mostrar, children, tipo, className, ...resto }: TransicionProps): JSX.Element | null;
3941
+
3942
+ export declare type TransicionProps = {
3943
+ mostrar: boolean;
3944
+ children: default_2.ReactNode;
3945
+ tipo?: TipoTransicion;
3946
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
3947
+
3948
+ export declare const useCheckboxGroupContext: () => CheckboxGroupContextValue | null;
3949
+
3950
+ export declare function useReconocimientoVoz({ value, onChange, isDisabled, isReadOnly, onDictadoCompleto, idioma, }: Props): {
3951
+ puedeHablar: boolean;
3952
+ puedeEscuchar: boolean;
3953
+ hablando: boolean;
3954
+ escuchando: boolean;
3955
+ errorDictado: string | null;
3956
+ escuchar: () => void;
3957
+ detenerHablar: () => void;
3958
+ dictar: () => void;
3959
+ detenerDictado: () => void;
3960
+ };
3961
+
3962
+ /**
3963
+ * Hook para acceder al contexto de TablaDatos con tipado genérico
3964
+ * @throws Error si se usa fuera de TablaDatosProvider
3965
+ */
3966
+ export declare function useTablaContext<TData extends object>(): TablaContextType<TData>;
3967
+
3968
+ /**
3969
+ * Hook para acceder al contexto de forma segura (puede ser null)
3970
+ */
3971
+ export declare function useTablaContextSafe<TData extends object>(): TablaContextType<TData> | null;
3972
+
3973
+ export declare type ValidationResult = boolean | string | {
3974
+ message?: string;
3975
+ } | null | undefined;
3976
+
3977
+ /**
3978
+ * Props adicionales del wrapper inteligente.
3979
+ */
3980
+ declare type WrapperProps = {
3981
+ /**
3982
+ * Controla el formato del valor retornado en onChange.
3983
+ *
3984
+ * - `true`: Devuelve el objeto completo cuando se selecciona una opción
3985
+ * - `false`: Devuelve solo el ID/valor primitivo (string | number)
3986
+ *
3987
+ * @default false
3988
+ *
3989
+ * @example
3990
+ * ```tsx
3991
+ * // devolverObjeto={false} (default)
3992
+ * <Select
3993
+ * options={usuarios}
3994
+ * optionValueKey="id"
3995
+ * onChange={(valor) => console.log(valor)} // '123' (string)
3996
+ * />
3997
+ *
3998
+ * // devolverObjeto={true}
3999
+ * <Select
4000
+ * options={usuarios}
4001
+ * optionValueKey="id"
4002
+ * devolverObjeto
4003
+ * onChange={(valor) => console.log(valor)} // { id: '123', nombre: 'Ana' }
4004
+ * />
4005
+ * ```
4006
+ */
4007
+ devolverObjeto?: boolean;
4008
+ };
4009
+
4010
+ export { }