corekit-ui 0.1.14 → 0.1.16

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