corekit-ui 0.1.5 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +8 -8
- package/dist/corekit-ui.css +1 -0
- package/dist/index.d.ts +2866 -60
- package/dist/index.js +9202 -826
- package/dist/index.umd.cjs +28 -3
- package/package.json +120 -132
- package/dist/index.js.map +0 -1
- package/dist/index.umd.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,50 +1,298 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnimationEventHandler } from 'react';
|
|
2
|
+
import { AriaRole } from 'react';
|
|
3
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
4
|
+
import { ClipboardEventHandler } from 'react';
|
|
5
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
6
|
+
import { ComponentPropsWithRef } from 'react';
|
|
7
|
+
import { CompositionEventHandler } from 'react';
|
|
8
|
+
import { CSSProperties } from 'react';
|
|
9
|
+
import { default as default_2 } from 'react';
|
|
10
|
+
import { DragEventHandler } from 'react';
|
|
11
|
+
import { FocusEventHandler } from 'react';
|
|
12
|
+
import { FormEventHandler } from 'react';
|
|
2
13
|
import { ForwardRefExoticComponent } from 'react';
|
|
14
|
+
import { HTMLAttributes } from 'react';
|
|
15
|
+
import { HTMLInputAutoCompleteAttribute } from 'react';
|
|
16
|
+
import { InputEventHandler } from 'react';
|
|
17
|
+
import { InputHTMLAttributes } from 'react';
|
|
18
|
+
import { JSX } from 'react/jsx-runtime';
|
|
19
|
+
import { KeyboardEventHandler } from 'react';
|
|
20
|
+
import { MouseEventHandler } from 'react';
|
|
21
|
+
import { PointerEventHandler } from 'react';
|
|
22
|
+
import { ReactEventHandler } from 'react';
|
|
3
23
|
import { ReactNode } from 'react';
|
|
4
24
|
import { RefAttributes } from 'react';
|
|
25
|
+
import { SVGProps } from 'react';
|
|
26
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
27
|
+
import { ToggleEventHandler } from 'react';
|
|
28
|
+
import { TouchEventHandler } from 'react';
|
|
29
|
+
import { TransitionEventHandler } from 'react';
|
|
30
|
+
import { UIEventHandler } from 'react';
|
|
31
|
+
import { VariantProps } from 'class-variance-authority';
|
|
32
|
+
import { WheelEventHandler } from 'react';
|
|
5
33
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
34
|
+
declare type AccionFila<TData> = {
|
|
35
|
+
/** Identificador único de la acción */
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Componente que se renderiza en la barra de selección.
|
|
39
|
+
* Recibe las filas seleccionadas como parámetro para ejecutar acciones sobre ellas.
|
|
40
|
+
* @param filasSeleccionadas - Arreglo de datos de las filas seleccionadas (proporcionado automáticamente por la tabla)
|
|
41
|
+
* @returns Componente React (usualmente un botón con onClick)
|
|
42
|
+
*/ componente: (filasSeleccionadas: TData[]) => React.ReactNode;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
declare type ActualizarTablaConfig = {
|
|
46
|
+
cargando: boolean;
|
|
47
|
+
onClick: () => void;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Aplana opciones agrupadas a una lista lineal con metadatos
|
|
52
|
+
* @template T - Tipo de las opciones
|
|
53
|
+
* @param opcionesAgrupadas - Lista de grupos de opciones
|
|
54
|
+
* @returns Lista plana con encabezados de grupo y opciones
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const grupos = [
|
|
59
|
+
* { grupo: 'Frutas', opciones: ['Manzana', 'Pera'] },
|
|
60
|
+
* { grupo: 'Verduras', opciones: ['Zanahoria'] }
|
|
61
|
+
* ];
|
|
62
|
+
* aplanarOpcionesAgrupadas(grupos)
|
|
63
|
+
* // [
|
|
64
|
+
* // { tipo: 'grupo', datos: null, nombreGrupo: 'Frutas', indice: 0 },
|
|
65
|
+
* // { tipo: 'opcion', datos: 'Manzana', indice: 1 },
|
|
66
|
+
* // { tipo: 'opcion', datos: 'Pera', indice: 2 },
|
|
67
|
+
* // { tipo: 'grupo', datos: null, nombreGrupo: 'Verduras', indice: 3 },
|
|
68
|
+
* // { tipo: 'opcion', datos: 'Zanahoria', indice: 4 }
|
|
69
|
+
* // ]
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare function aplanarOpcionesAgrupadas<T>(opcionesAgrupadas: OpcionGrupo<T>[]): OpcionPlana<T>[];
|
|
73
|
+
|
|
74
|
+
export declare function BadgeVoz({ tipo, texto, size, estirar, }: {
|
|
75
|
+
tipo: 'mic' | 'tts';
|
|
76
|
+
texto: string;
|
|
77
|
+
size?: 'sm' | 'md' | 'lg';
|
|
78
|
+
estirar?: boolean;
|
|
79
|
+
}): JSX.Element;
|
|
80
|
+
|
|
81
|
+
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;
|
|
82
|
+
|
|
83
|
+
export declare type BotonProps = {
|
|
84
|
+
/** Estilo visual del botón */
|
|
85
|
+
variant?: 'solid' | 'bordered' | 'ghost' | 'light' | 'faded' | 'shadow';
|
|
86
|
+
/** Color temático del botón */
|
|
87
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
88
|
+
/** Tamaño del botón */
|
|
89
|
+
size?: 'sm' | 'md' | 'lg';
|
|
90
|
+
/** Radio de borde del botón */
|
|
91
|
+
radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
92
|
+
/** Ancho completo del contenedor */
|
|
93
|
+
fullWidth?: boolean;
|
|
94
|
+
/** Estado de carga del botón */
|
|
95
|
+
isLoading?: boolean;
|
|
96
|
+
/** Si es true, solo muestra el spinner sin el texto (visibility: hidden) */
|
|
97
|
+
onlyLoading?: boolean;
|
|
98
|
+
/** Botón deshabilitado */
|
|
99
|
+
isDisabled?: boolean;
|
|
100
|
+
/** Solo muestra un icono sin texto */
|
|
101
|
+
isIconOnly?: boolean;
|
|
102
|
+
/** Deshabilita el efecto ripple */
|
|
103
|
+
disableRipple?: boolean;
|
|
104
|
+
/** Deshabilita animaciones */
|
|
105
|
+
disableAnimation?: boolean;
|
|
106
|
+
/** Color personalizado (CSS color value) */
|
|
107
|
+
customColor?: string;
|
|
108
|
+
/** Spinner personalizado */
|
|
109
|
+
spinner?: ReactNode;
|
|
110
|
+
/** Posición del spinner */
|
|
111
|
+
spinnerPlacement?: 'start' | 'end';
|
|
112
|
+
} & ComponentPropsWithRef<'button'>;
|
|
113
|
+
|
|
114
|
+
export declare const Checkbox: default_2.ForwardRefExoticComponent<{
|
|
115
|
+
children?: default_2.ReactNode;
|
|
116
|
+
isSelected?: boolean;
|
|
117
|
+
isIndeterminate?: boolean;
|
|
118
|
+
isDisabled?: boolean;
|
|
119
|
+
isReadOnly?: boolean;
|
|
120
|
+
size?: CheckboxSize;
|
|
121
|
+
color?: CheckboxColor;
|
|
122
|
+
radius?: CheckboxRadius;
|
|
123
|
+
lineThrough?: boolean;
|
|
124
|
+
onlyIcon?: boolean;
|
|
125
|
+
disableAnimation?: boolean;
|
|
126
|
+
onChange?: (isSelected: boolean) => void;
|
|
127
|
+
className?: string;
|
|
128
|
+
classNames?: CheckboxClassNames;
|
|
129
|
+
value?: string;
|
|
130
|
+
} & Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> & default_2.RefAttributes<HTMLInputElement>>;
|
|
131
|
+
|
|
132
|
+
declare type CheckboxClassNames = {
|
|
133
|
+
base?: string;
|
|
134
|
+
wrapper?: string;
|
|
135
|
+
icon?: string;
|
|
136
|
+
label?: string;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
declare type CheckboxColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
140
|
+
|
|
141
|
+
export declare const CheckboxGroup: default_2.FC<CheckboxGroupProps>;
|
|
142
|
+
|
|
143
|
+
declare type CheckboxGroupProps = {
|
|
144
|
+
label?: string;
|
|
145
|
+
children: ReactNode;
|
|
146
|
+
description?: string;
|
|
147
|
+
errorMessage?: string;
|
|
148
|
+
isInvalid?: boolean;
|
|
149
|
+
orientation?: CheckboxOrientation;
|
|
150
|
+
className?: string;
|
|
151
|
+
value?: string[];
|
|
152
|
+
onChange?: (value: string[]) => void;
|
|
153
|
+
isDisabled?: boolean;
|
|
154
|
+
isReadOnly?: boolean;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare type CheckboxOrientation = 'horizontal' | 'vertical';
|
|
158
|
+
|
|
159
|
+
export declare type CheckboxProps = {
|
|
160
|
+
children?: ReactNode;
|
|
161
|
+
isSelected?: boolean;
|
|
162
|
+
isIndeterminate?: boolean;
|
|
163
|
+
isDisabled?: boolean;
|
|
164
|
+
isReadOnly?: boolean;
|
|
165
|
+
size?: CheckboxSize;
|
|
166
|
+
color?: CheckboxColor;
|
|
167
|
+
radius?: CheckboxRadius;
|
|
168
|
+
lineThrough?: boolean;
|
|
169
|
+
onlyIcon?: boolean;
|
|
170
|
+
disableAnimation?: boolean;
|
|
171
|
+
onChange?: (isSelected: boolean) => void;
|
|
172
|
+
className?: string;
|
|
173
|
+
classNames?: CheckboxClassNames;
|
|
174
|
+
value?: string;
|
|
175
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'>;
|
|
176
|
+
|
|
177
|
+
declare type CheckboxRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
22
178
|
|
|
23
|
-
declare type
|
|
179
|
+
declare type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
24
180
|
|
|
25
|
-
|
|
181
|
+
export { ColumnDef }
|
|
182
|
+
|
|
183
|
+
declare type Control<TData> = {
|
|
184
|
+
id: string;
|
|
185
|
+
nombre: string;
|
|
186
|
+
icono: JSX.Element;
|
|
187
|
+
evento: (data: TData) => void;
|
|
188
|
+
};
|
|
26
189
|
|
|
27
190
|
/**
|
|
28
|
-
*
|
|
191
|
+
* Verifica si las opciones están agrupadas
|
|
192
|
+
* @template T - Tipo de las opciones
|
|
193
|
+
* @param opciones - Lista de opciones
|
|
194
|
+
* @returns true si las opciones tienen estructura de grupo
|
|
29
195
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```ts
|
|
198
|
+
* esOpcionesAgrupadas([{ grupo: 'Frutas', opciones: ['Manzana'] }]) // true
|
|
199
|
+
* esOpcionesAgrupadas(['Manzana', 'Pera']) // false
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
export declare function esOpcionesAgrupadas<T>(opciones: (T | OpcionGrupo<T>)[]): opciones is OpcionGrupo<T>[];
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Verifica si una opción está deshabilitada
|
|
206
|
+
* @template T - Tipo de la opción
|
|
207
|
+
* @param opcion - La opción a verificar
|
|
208
|
+
* @returns true si la opción tiene disabled: true
|
|
34
209
|
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```ts
|
|
212
|
+
* estaDeshabilitada({ label: 'Opción', disabled: true }) // true
|
|
213
|
+
* estaDeshabilitada({ label: 'Opción' }) // false
|
|
214
|
+
* estaDeshabilitada('Texto simple') // false
|
|
215
|
+
* ```
|
|
35
216
|
*/
|
|
36
|
-
export declare
|
|
217
|
+
export declare function estaDeshabilitada<T>(opcion: T): boolean;
|
|
37
218
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
219
|
+
/**
|
|
220
|
+
* Verifica si una opción está seleccionada
|
|
221
|
+
* @template T - Tipo de la opción
|
|
222
|
+
* @param opcion - La opción a verificar
|
|
223
|
+
* @param valorActual - El valor actual (puede ser single o array para multi)
|
|
224
|
+
* @param esMultiple - Si el select permite múltiple selección
|
|
225
|
+
* @param claveValor - Campo a usar para comparación
|
|
226
|
+
* @returns true si la opción está seleccionada
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```ts
|
|
230
|
+
* // Selección simple
|
|
231
|
+
* estaSeleccionada('Manzana', 'Manzana', false, 'id') // true
|
|
232
|
+
*
|
|
233
|
+
* // Selección múltiple
|
|
234
|
+
* estaSeleccionada('Manzana', ['Manzana', 'Pera'], true, 'id') // true
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
export declare function estaSeleccionada<T>(opcion: T, valorActual: T | T[] | null, esMultiple: boolean, claveValor: string): boolean;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Valida si una fecha está dentro de un rango
|
|
241
|
+
* @param fecha - Fecha a validar (YYYY-MM-DD)
|
|
242
|
+
* @param min - Fecha mínima (YYYY-MM-DD)
|
|
243
|
+
* @param max - Fecha máxima (YYYY-MM-DD)
|
|
244
|
+
* @returns true si está en rango
|
|
245
|
+
*/
|
|
246
|
+
export declare function fechaEnRango(fecha: string, min?: string, max?: string): boolean;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Filtra las opciones según el texto de búsqueda
|
|
250
|
+
* @template T - Tipo de las opciones
|
|
251
|
+
* @param opciones - Lista de opciones a filtrar
|
|
252
|
+
* @param textoBusqueda - Texto a buscar
|
|
253
|
+
* @param claveLabel - Campo a usar para la búsqueda
|
|
254
|
+
* @param funcionFiltro - Función de filtro personalizada (opcional)
|
|
255
|
+
* @returns Lista de opciones filtradas
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* ```ts
|
|
259
|
+
* const frutas = ['Manzana', 'Mandarina', 'Pera'];
|
|
260
|
+
* filtrarOpciones(frutas, 'man', 'label') // ['Manzana', 'Mandarina']
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
export declare function filtrarOpciones<T>(opciones: T[], textoBusqueda: string, claveLabel: string, funcionFiltro?: (opcion: T, busqueda: string) => boolean): T[];
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Filtra opciones agrupadas manteniendo la estructura de grupos
|
|
267
|
+
* @template T - Tipo de las opciones
|
|
268
|
+
* @param grupos - Lista de grupos de opciones
|
|
269
|
+
* @param textoBusqueda - Texto a buscar
|
|
270
|
+
* @param claveLabel - Campo a usar para la búsqueda
|
|
271
|
+
* @param funcionFiltro - Función de filtro personalizada (opcional)
|
|
272
|
+
* @returns Grupos filtrados (elimina grupos vacíos)
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```ts
|
|
276
|
+
* const grupos = [
|
|
277
|
+
* { grupo: 'Frutas', opciones: ['Manzana', 'Pera'] },
|
|
278
|
+
* { grupo: 'Verduras', opciones: ['Zanahoria'] }
|
|
279
|
+
* ];
|
|
280
|
+
* filtrarOpcionesAgrupadas(grupos, 'man', 'label')
|
|
281
|
+
* // [{ grupo: 'Frutas', opciones: ['Manzana'] }]
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
export declare function filtrarOpcionesAgrupadas<T>(grupos: OpcionGrupo<T>[], textoBusqueda: string, claveLabel: string, funcionFiltro?: (opcion: T, busqueda: string) => boolean): OpcionGrupo<T>[];
|
|
285
|
+
|
|
286
|
+
declare type FiltrosAplicadosType = {
|
|
287
|
+
/** Nombre del filtro aplicado */
|
|
288
|
+
nombre: string;
|
|
289
|
+
/** Valor del filtro aplicado */
|
|
290
|
+
valor: string;
|
|
45
291
|
};
|
|
46
292
|
|
|
47
|
-
declare
|
|
293
|
+
export declare const FirmaManual: ForwardRefExoticComponent<FirmaManualProps & RefAttributes<FirmaManualRef>>;
|
|
294
|
+
|
|
295
|
+
export declare type FirmaManualProps = {
|
|
48
296
|
isOpen?: boolean;
|
|
49
297
|
onClose?: () => void;
|
|
50
298
|
onConfirm?: (signatureData: string) => void;
|
|
@@ -62,58 +310,2616 @@ declare type Props = {
|
|
|
62
310
|
cerrarAlGuardar?: boolean;
|
|
63
311
|
};
|
|
64
312
|
|
|
65
|
-
declare type
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
mensaje?: string | null;
|
|
313
|
+
export declare type FirmaManualRef = {
|
|
314
|
+
limpiar: () => void;
|
|
315
|
+
obtenerDatosFirma: () => string | null;
|
|
316
|
+
estaVacio: () => boolean;
|
|
70
317
|
};
|
|
71
318
|
|
|
72
|
-
|
|
319
|
+
/**
|
|
320
|
+
* Formatea una fecha ISO a formato legible
|
|
321
|
+
* @param fechaISO - Fecha en formato YYYY-MM-DD
|
|
322
|
+
* @param locale - Locale para formateo (default: 'es-CO')
|
|
323
|
+
* @returns Fecha formateada
|
|
324
|
+
*/
|
|
325
|
+
export declare function formatearFecha(fechaISO: string, locale?: string): string;
|
|
73
326
|
|
|
74
|
-
|
|
327
|
+
/**
|
|
328
|
+
* Formatea un número aplicando separadores de miles y decimales
|
|
329
|
+
* @param valor - El número a formatear
|
|
330
|
+
* @param opciones - Configuración del formateo
|
|
331
|
+
* @returns String formateado con separadores
|
|
332
|
+
* @example
|
|
333
|
+
* formatearNumero(1234567.89, { separadorMiles: ',', separadorDecimal: '.' })
|
|
334
|
+
* // Retorna: "1,234,567.89"
|
|
335
|
+
*/
|
|
336
|
+
export declare function formatearNumero(valor: number | undefined, opciones: {
|
|
337
|
+
separadorMiles?: string | boolean;
|
|
338
|
+
separadorDecimal?: string;
|
|
339
|
+
escalaDecimal?: number;
|
|
340
|
+
decimalesFijos?: boolean;
|
|
341
|
+
prefijo?: string;
|
|
342
|
+
sufijo?: string;
|
|
343
|
+
}): string;
|
|
75
344
|
|
|
76
|
-
|
|
345
|
+
/**
|
|
346
|
+
* Genera una lista de opciones aleatorias para pruebas
|
|
347
|
+
* @param cantidad - Número de opciones a generar
|
|
348
|
+
* @param prefijo - Prefijo para el texto de cada opción
|
|
349
|
+
* @returns Lista de strings con las opciones generadas
|
|
350
|
+
*
|
|
351
|
+
* @example
|
|
352
|
+
* ```ts
|
|
353
|
+
* generarOpcionesAleatorias(3, 'Usuario')
|
|
354
|
+
* // ['Usuario 1', 'Usuario 2', 'Usuario 3']
|
|
355
|
+
* ```
|
|
356
|
+
*/
|
|
357
|
+
export declare function generarOpcionesAleatorias(cantidad: number, prefijo?: string): string[];
|
|
77
358
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
359
|
+
/**
|
|
360
|
+
* Genera objetos de prueba con id y nombre
|
|
361
|
+
* @param cantidad - Número de objetos a generar
|
|
362
|
+
* @param prefijo - Prefijo para el nombre
|
|
363
|
+
* @returns Lista de objetos { id, nombre, email }
|
|
364
|
+
*
|
|
365
|
+
* @example
|
|
366
|
+
* ```ts
|
|
367
|
+
* generarUsuariosPrueba(2)
|
|
368
|
+
* // [
|
|
369
|
+
* // { id: 'usr-1', nombre: 'Usuario 1', email: 'usuario1@test.com' },
|
|
370
|
+
* // { id: 'usr-2', nombre: 'Usuario 2', email: 'usuario2@test.com' }
|
|
371
|
+
* // ]
|
|
372
|
+
* ```
|
|
373
|
+
*/
|
|
374
|
+
export declare function generarUsuariosPrueba(cantidad: number): Array<{
|
|
375
|
+
id: string;
|
|
376
|
+
nombre: string;
|
|
377
|
+
email: string;
|
|
378
|
+
}>;
|
|
379
|
+
|
|
380
|
+
export declare function GrabacionIcono(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
381
|
+
|
|
382
|
+
export declare type InputColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
383
|
+
|
|
384
|
+
export declare const InputDate: ForwardRefExoticComponent< {
|
|
385
|
+
variant?: InputVariant;
|
|
386
|
+
color?: InputColor;
|
|
387
|
+
size?: InputSize;
|
|
388
|
+
radius?: InputRadius;
|
|
389
|
+
label?: ReactNode;
|
|
390
|
+
placeholder?: string;
|
|
391
|
+
value?: string;
|
|
392
|
+
defaultValue?: string;
|
|
393
|
+
description?: ReactNode;
|
|
394
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
395
|
+
startContent?: ReactNode;
|
|
396
|
+
isRequired?: boolean;
|
|
397
|
+
isReadOnly?: boolean;
|
|
398
|
+
isDisabled?: boolean;
|
|
399
|
+
isInvalid?: boolean;
|
|
400
|
+
validationState?: "valid" | "invalid";
|
|
401
|
+
validate?: (value: string) => ValidationResult;
|
|
402
|
+
fullWidth?: boolean;
|
|
403
|
+
disableAnimation?: boolean;
|
|
404
|
+
min?: string;
|
|
405
|
+
max?: string;
|
|
406
|
+
classNames?: {
|
|
407
|
+
base?: string;
|
|
408
|
+
label?: string;
|
|
409
|
+
inputWrapper?: string;
|
|
410
|
+
innerWrapper?: string;
|
|
411
|
+
input?: string;
|
|
412
|
+
description?: string;
|
|
413
|
+
errorMessage?: string;
|
|
414
|
+
};
|
|
415
|
+
onChange?: (value: string) => void;
|
|
416
|
+
} & {
|
|
417
|
+
form?: string | undefined | undefined;
|
|
418
|
+
slot?: string | undefined | undefined;
|
|
419
|
+
style?: CSSProperties | undefined;
|
|
420
|
+
title?: string | undefined | undefined;
|
|
421
|
+
pattern?: string | undefined | undefined;
|
|
422
|
+
className?: string | undefined | undefined;
|
|
423
|
+
onClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
424
|
+
"aria-label"?: string | undefined | undefined;
|
|
425
|
+
disabled?: boolean | undefined | undefined;
|
|
426
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
427
|
+
formEncType?: string | undefined | undefined;
|
|
428
|
+
formMethod?: string | undefined | undefined;
|
|
429
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
430
|
+
formTarget?: string | undefined | undefined;
|
|
431
|
+
name?: string | undefined | undefined;
|
|
432
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
433
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
434
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
435
|
+
accessKey?: string | undefined | undefined;
|
|
436
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
437
|
+
autoFocus?: boolean | undefined | undefined;
|
|
438
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
439
|
+
contextMenu?: string | undefined | undefined;
|
|
440
|
+
dir?: string | undefined | undefined;
|
|
441
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
442
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
443
|
+
hidden?: boolean | undefined | undefined;
|
|
444
|
+
id?: string | undefined | undefined;
|
|
445
|
+
lang?: string | undefined | undefined;
|
|
446
|
+
nonce?: string | undefined | undefined;
|
|
447
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
448
|
+
tabIndex?: number | undefined | undefined;
|
|
449
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
450
|
+
radioGroup?: string | undefined | undefined;
|
|
451
|
+
role?: AriaRole | undefined;
|
|
452
|
+
about?: string | undefined | undefined;
|
|
453
|
+
content?: string | undefined | undefined;
|
|
454
|
+
datatype?: string | undefined | undefined;
|
|
455
|
+
inlist?: any;
|
|
456
|
+
prefix?: string | undefined | undefined;
|
|
457
|
+
property?: string | undefined | undefined;
|
|
458
|
+
rel?: string | undefined | undefined;
|
|
459
|
+
resource?: string | undefined | undefined;
|
|
460
|
+
rev?: string | undefined | undefined;
|
|
461
|
+
typeof?: string | undefined | undefined;
|
|
462
|
+
vocab?: string | undefined | undefined;
|
|
463
|
+
autoCorrect?: string | undefined | undefined;
|
|
464
|
+
autoSave?: string | undefined | undefined;
|
|
465
|
+
itemProp?: string | undefined | undefined;
|
|
466
|
+
itemScope?: boolean | undefined | undefined;
|
|
467
|
+
itemType?: string | undefined | undefined;
|
|
468
|
+
itemID?: string | undefined | undefined;
|
|
469
|
+
itemRef?: string | undefined | undefined;
|
|
470
|
+
results?: number | undefined | undefined;
|
|
471
|
+
security?: string | undefined | undefined;
|
|
472
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
473
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
474
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
475
|
+
popoverTarget?: string | undefined | undefined;
|
|
476
|
+
inert?: boolean | undefined | undefined;
|
|
477
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
478
|
+
is?: string | undefined | undefined;
|
|
479
|
+
exportparts?: string | undefined | undefined;
|
|
480
|
+
part?: string | undefined | undefined;
|
|
481
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
482
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
483
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
484
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
485
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
486
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
487
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
488
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
489
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
490
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
491
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
492
|
+
"aria-controls"?: string | undefined | undefined;
|
|
493
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
494
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
495
|
+
"aria-description"?: string | undefined | undefined;
|
|
496
|
+
"aria-details"?: string | undefined | undefined;
|
|
497
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
498
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
499
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
500
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
501
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
502
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
503
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
504
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
505
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
506
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
507
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
508
|
+
"aria-level"?: number | undefined | undefined;
|
|
509
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
510
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
511
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
512
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
513
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
514
|
+
"aria-owns"?: string | undefined | undefined;
|
|
515
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
516
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
517
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
518
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
519
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
520
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
521
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
522
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
523
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
524
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
525
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
526
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
527
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
528
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
529
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
530
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
531
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
532
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
533
|
+
dangerouslySetInnerHTML?: {
|
|
534
|
+
__html: string | TrustedHTML;
|
|
535
|
+
} | undefined | undefined;
|
|
536
|
+
onCopy?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
537
|
+
onCopyCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
538
|
+
onCut?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
539
|
+
onCutCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
540
|
+
onPaste?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
541
|
+
onPasteCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
542
|
+
onCompositionEnd?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
543
|
+
onCompositionEndCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
544
|
+
onCompositionStart?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
545
|
+
onCompositionStartCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
546
|
+
onCompositionUpdate?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
547
|
+
onCompositionUpdateCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
548
|
+
onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
549
|
+
onFocusCapture?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
550
|
+
onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
551
|
+
onBlurCapture?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
552
|
+
onChangeCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
553
|
+
onBeforeInput?: InputEventHandler<HTMLInputElement> | undefined;
|
|
554
|
+
onBeforeInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
555
|
+
onInput?: FormEventHandler<HTMLInputElement> | undefined;
|
|
556
|
+
onInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
557
|
+
onReset?: FormEventHandler<HTMLInputElement> | undefined;
|
|
558
|
+
onResetCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
559
|
+
onSubmit?: FormEventHandler<HTMLInputElement> | undefined;
|
|
560
|
+
onSubmitCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
561
|
+
onInvalid?: FormEventHandler<HTMLInputElement> | undefined;
|
|
562
|
+
onInvalidCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
563
|
+
onLoad?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
564
|
+
onLoadCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
565
|
+
onError?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
566
|
+
onErrorCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
567
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
568
|
+
onKeyDownCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
569
|
+
onKeyPress?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
570
|
+
onKeyPressCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
571
|
+
onKeyUp?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
572
|
+
onKeyUpCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
573
|
+
onAbort?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
574
|
+
onAbortCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
575
|
+
onCanPlay?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
576
|
+
onCanPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
577
|
+
onCanPlayThrough?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
578
|
+
onCanPlayThroughCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
579
|
+
onDurationChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
580
|
+
onDurationChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
581
|
+
onEmptied?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
582
|
+
onEmptiedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
583
|
+
onEncrypted?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
584
|
+
onEncryptedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
585
|
+
onEnded?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
586
|
+
onEndedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
587
|
+
onLoadedData?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
588
|
+
onLoadedDataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
589
|
+
onLoadedMetadata?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
590
|
+
onLoadedMetadataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
591
|
+
onLoadStart?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
592
|
+
onLoadStartCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
593
|
+
onPause?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
594
|
+
onPauseCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
595
|
+
onPlay?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
596
|
+
onPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
597
|
+
onPlaying?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
598
|
+
onPlayingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
599
|
+
onProgress?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
600
|
+
onProgressCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
601
|
+
onRateChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
602
|
+
onRateChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
603
|
+
onSeeked?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
604
|
+
onSeekedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
605
|
+
onSeeking?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
606
|
+
onSeekingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
607
|
+
onStalled?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
608
|
+
onStalledCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
609
|
+
onSuspend?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
610
|
+
onSuspendCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
611
|
+
onTimeUpdate?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
612
|
+
onTimeUpdateCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
613
|
+
onVolumeChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
614
|
+
onVolumeChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
615
|
+
onWaiting?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
616
|
+
onWaitingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
617
|
+
onAuxClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
618
|
+
onAuxClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
619
|
+
onClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
620
|
+
onContextMenu?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
621
|
+
onContextMenuCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
622
|
+
onDoubleClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
623
|
+
onDoubleClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
624
|
+
onDrag?: DragEventHandler<HTMLInputElement> | undefined;
|
|
625
|
+
onDragCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
626
|
+
onDragEnd?: DragEventHandler<HTMLInputElement> | undefined;
|
|
627
|
+
onDragEndCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
628
|
+
onDragEnter?: DragEventHandler<HTMLInputElement> | undefined;
|
|
629
|
+
onDragEnterCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
630
|
+
onDragExit?: DragEventHandler<HTMLInputElement> | undefined;
|
|
631
|
+
onDragExitCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
632
|
+
onDragLeave?: DragEventHandler<HTMLInputElement> | undefined;
|
|
633
|
+
onDragLeaveCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
634
|
+
onDragOver?: DragEventHandler<HTMLInputElement> | undefined;
|
|
635
|
+
onDragOverCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
636
|
+
onDragStart?: DragEventHandler<HTMLInputElement> | undefined;
|
|
637
|
+
onDragStartCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
638
|
+
onDrop?: DragEventHandler<HTMLInputElement> | undefined;
|
|
639
|
+
onDropCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
640
|
+
onMouseDown?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
641
|
+
onMouseDownCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
642
|
+
onMouseEnter?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
643
|
+
onMouseLeave?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
644
|
+
onMouseMove?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
645
|
+
onMouseMoveCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
646
|
+
onMouseOut?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
647
|
+
onMouseOutCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
648
|
+
onMouseOver?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
649
|
+
onMouseOverCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
650
|
+
onMouseUp?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
651
|
+
onMouseUpCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
652
|
+
onSelect?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
653
|
+
onSelectCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
654
|
+
onTouchCancel?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
655
|
+
onTouchCancelCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
656
|
+
onTouchEnd?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
657
|
+
onTouchEndCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
658
|
+
onTouchMove?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
659
|
+
onTouchMoveCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
660
|
+
onTouchStart?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
661
|
+
onTouchStartCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
662
|
+
onPointerDown?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
663
|
+
onPointerDownCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
664
|
+
onPointerMove?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
665
|
+
onPointerMoveCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
666
|
+
onPointerUp?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
667
|
+
onPointerUpCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
668
|
+
onPointerCancel?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
669
|
+
onPointerCancelCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
670
|
+
onPointerEnter?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
671
|
+
onPointerLeave?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
672
|
+
onPointerOver?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
673
|
+
onPointerOverCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
674
|
+
onPointerOut?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
675
|
+
onPointerOutCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
676
|
+
onGotPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
677
|
+
onGotPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
678
|
+
onLostPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
679
|
+
onLostPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
680
|
+
onScroll?: UIEventHandler<HTMLInputElement> | undefined;
|
|
681
|
+
onScrollCapture?: UIEventHandler<HTMLInputElement> | undefined;
|
|
682
|
+
onScrollEnd?: UIEventHandler<HTMLInputElement> | undefined;
|
|
683
|
+
onScrollEndCapture?: UIEventHandler<HTMLInputElement> | undefined;
|
|
684
|
+
onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
685
|
+
onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
686
|
+
onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
687
|
+
onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
688
|
+
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
689
|
+
onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
690
|
+
onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
691
|
+
onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
692
|
+
onToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
|
|
693
|
+
onBeforeToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
|
|
694
|
+
onTransitionCancel?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
695
|
+
onTransitionCancelCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
696
|
+
onTransitionEnd?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
697
|
+
onTransitionEndCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
698
|
+
onTransitionRun?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
699
|
+
onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
700
|
+
onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
701
|
+
onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
702
|
+
multiple?: boolean | undefined | undefined;
|
|
703
|
+
list?: string | undefined | undefined;
|
|
704
|
+
accept?: string | undefined | undefined;
|
|
705
|
+
width?: number | string | undefined | undefined;
|
|
706
|
+
height?: number | string | undefined | undefined;
|
|
707
|
+
checked?: boolean | undefined | undefined;
|
|
708
|
+
max?: number | string | undefined | undefined;
|
|
709
|
+
min?: number | string | undefined | undefined;
|
|
710
|
+
alt?: string | undefined | undefined;
|
|
711
|
+
autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
712
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
713
|
+
maxLength?: number | undefined | undefined;
|
|
714
|
+
minLength?: number | undefined | undefined;
|
|
715
|
+
placeholder?: string | undefined | undefined;
|
|
716
|
+
readOnly?: boolean | undefined | undefined;
|
|
717
|
+
required?: boolean | undefined | undefined;
|
|
718
|
+
src?: string | undefined | undefined;
|
|
719
|
+
step?: number | string | undefined | undefined;
|
|
720
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Props del componente InputDate
|
|
724
|
+
* @description Input de fecha usando el selector nativo del navegador
|
|
725
|
+
*/
|
|
726
|
+
export declare type InputDateProps = {
|
|
727
|
+
/** Variante visual del input */
|
|
728
|
+
variant?: InputVariant;
|
|
729
|
+
/** Color temático del input */
|
|
730
|
+
color?: InputColor;
|
|
731
|
+
/** Tamaño del input */
|
|
732
|
+
size?: InputSize;
|
|
733
|
+
/** Radio de bordes del input */
|
|
734
|
+
radius?: InputRadius;
|
|
735
|
+
/** Etiqueta del campo */
|
|
84
736
|
label?: ReactNode;
|
|
85
|
-
|
|
86
|
-
|
|
737
|
+
/** Placeholder del input */
|
|
738
|
+
placeholder?: string;
|
|
739
|
+
/** Valor controlado (string ISO: YYYY-MM-DD) */
|
|
87
740
|
value?: string;
|
|
741
|
+
/** Valor inicial no controlado */
|
|
88
742
|
defaultValue?: string;
|
|
743
|
+
/** Descripción o texto de ayuda */
|
|
744
|
+
description?: ReactNode;
|
|
745
|
+
/** Mensaje de error personalizado */
|
|
746
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
747
|
+
/** Contenido al inicio del input */
|
|
748
|
+
startContent?: ReactNode;
|
|
749
|
+
/** Si el campo es requerido */
|
|
750
|
+
isRequired?: boolean;
|
|
751
|
+
/** Si el campo es de solo lectura */
|
|
752
|
+
isReadOnly?: boolean;
|
|
753
|
+
/** Si el campo está deshabilitado */
|
|
754
|
+
isDisabled?: boolean;
|
|
755
|
+
/** Si el campo es inválido */
|
|
756
|
+
isInvalid?: boolean;
|
|
757
|
+
/** Estado de validación manual */
|
|
758
|
+
validationState?: 'valid' | 'invalid';
|
|
759
|
+
/** Función de validación personalizada */
|
|
760
|
+
validate?: (value: string) => ValidationResult;
|
|
761
|
+
/** Si el input ocupa todo el ancho */
|
|
762
|
+
fullWidth?: boolean;
|
|
763
|
+
/** Deshabilita animaciones */
|
|
764
|
+
disableAnimation?: boolean;
|
|
765
|
+
/** Fecha mínima seleccionable (YYYY-MM-DD) */
|
|
766
|
+
min?: string;
|
|
767
|
+
/** Fecha máxima seleccionable (YYYY-MM-DD) */
|
|
768
|
+
max?: string;
|
|
769
|
+
/** Clases CSS personalizadas */
|
|
770
|
+
classNames?: {
|
|
771
|
+
base?: string;
|
|
772
|
+
label?: string;
|
|
773
|
+
inputWrapper?: string;
|
|
774
|
+
innerWrapper?: string;
|
|
775
|
+
input?: string;
|
|
776
|
+
description?: string;
|
|
777
|
+
errorMessage?: string;
|
|
778
|
+
};
|
|
779
|
+
/** Callback cuando cambia la fecha */
|
|
780
|
+
onChange?: (value: string) => void;
|
|
781
|
+
} & NativeInputProps_3;
|
|
782
|
+
|
|
783
|
+
export declare const InputNumeric: ForwardRefExoticComponent< {
|
|
784
|
+
variant?: InputVariant;
|
|
785
|
+
color?: InputColor;
|
|
786
|
+
size?: InputSize;
|
|
787
|
+
radius?: InputRadius;
|
|
788
|
+
label?: ReactNode;
|
|
789
|
+
placeholder?: string;
|
|
790
|
+
value?: number | "";
|
|
791
|
+
defaultValue?: number;
|
|
792
|
+
description?: ReactNode;
|
|
793
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
794
|
+
startContent?: ReactNode;
|
|
795
|
+
endContent?: ReactNode;
|
|
796
|
+
isRequired?: boolean;
|
|
797
|
+
isReadOnly?: boolean;
|
|
798
|
+
isDisabled?: boolean;
|
|
799
|
+
isInvalid?: boolean;
|
|
800
|
+
validationState?: "valid" | "invalid";
|
|
801
|
+
validate?: (value: number | undefined) => ValidationResult;
|
|
802
|
+
fullWidth?: boolean;
|
|
803
|
+
disableAnimation?: boolean;
|
|
804
|
+
min?: number;
|
|
805
|
+
max?: number;
|
|
806
|
+
step?: number;
|
|
807
|
+
decimalScale?: number;
|
|
808
|
+
fixedDecimalScale?: boolean;
|
|
809
|
+
thousandSeparator?: string | boolean;
|
|
810
|
+
decimalSeparator?: string;
|
|
811
|
+
prefix?: string;
|
|
812
|
+
suffix?: string;
|
|
813
|
+
allowNegative?: boolean;
|
|
814
|
+
allowDecimal?: boolean;
|
|
815
|
+
hideControls?: boolean;
|
|
816
|
+
clampBehavior?: "strict" | "blur" | "none";
|
|
817
|
+
classNames?: {
|
|
818
|
+
base?: string;
|
|
819
|
+
label?: string;
|
|
820
|
+
inputWrapper?: string;
|
|
821
|
+
innerWrapper?: string;
|
|
822
|
+
input?: string;
|
|
823
|
+
controls?: string;
|
|
824
|
+
controlButton?: string;
|
|
825
|
+
description?: string;
|
|
826
|
+
errorMessage?: string;
|
|
827
|
+
};
|
|
828
|
+
onChange?: (value: number | undefined) => void;
|
|
829
|
+
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
830
|
+
} & {
|
|
831
|
+
form?: string | undefined | undefined;
|
|
832
|
+
slot?: string | undefined | undefined;
|
|
833
|
+
style?: CSSProperties | undefined;
|
|
834
|
+
title?: string | undefined | undefined;
|
|
835
|
+
pattern?: string | undefined | undefined;
|
|
836
|
+
className?: string | undefined | undefined;
|
|
837
|
+
onClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
838
|
+
"aria-label"?: string | undefined | undefined;
|
|
839
|
+
disabled?: boolean | undefined | undefined;
|
|
840
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
841
|
+
formEncType?: string | undefined | undefined;
|
|
842
|
+
formMethod?: string | undefined | undefined;
|
|
843
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
844
|
+
formTarget?: string | undefined | undefined;
|
|
845
|
+
name?: string | undefined | undefined;
|
|
846
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
847
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
848
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
849
|
+
accessKey?: string | undefined | undefined;
|
|
850
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
851
|
+
autoFocus?: boolean | undefined | undefined;
|
|
852
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
853
|
+
contextMenu?: string | undefined | undefined;
|
|
854
|
+
dir?: string | undefined | undefined;
|
|
855
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
856
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
857
|
+
hidden?: boolean | undefined | undefined;
|
|
858
|
+
id?: string | undefined | undefined;
|
|
859
|
+
lang?: string | undefined | undefined;
|
|
860
|
+
nonce?: string | undefined | undefined;
|
|
861
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
862
|
+
tabIndex?: number | undefined | undefined;
|
|
863
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
864
|
+
radioGroup?: string | undefined | undefined;
|
|
865
|
+
role?: AriaRole | undefined;
|
|
866
|
+
about?: string | undefined | undefined;
|
|
867
|
+
content?: string | undefined | undefined;
|
|
868
|
+
datatype?: string | undefined | undefined;
|
|
869
|
+
inlist?: any;
|
|
870
|
+
prefix?: string | undefined | undefined;
|
|
871
|
+
property?: string | undefined | undefined;
|
|
872
|
+
rel?: string | undefined | undefined;
|
|
873
|
+
resource?: string | undefined | undefined;
|
|
874
|
+
rev?: string | undefined | undefined;
|
|
875
|
+
typeof?: string | undefined | undefined;
|
|
876
|
+
vocab?: string | undefined | undefined;
|
|
877
|
+
autoCorrect?: string | undefined | undefined;
|
|
878
|
+
autoSave?: string | undefined | undefined;
|
|
879
|
+
itemProp?: string | undefined | undefined;
|
|
880
|
+
itemScope?: boolean | undefined | undefined;
|
|
881
|
+
itemType?: string | undefined | undefined;
|
|
882
|
+
itemID?: string | undefined | undefined;
|
|
883
|
+
itemRef?: string | undefined | undefined;
|
|
884
|
+
results?: number | undefined | undefined;
|
|
885
|
+
security?: string | undefined | undefined;
|
|
886
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
887
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
888
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
889
|
+
popoverTarget?: string | undefined | undefined;
|
|
890
|
+
inert?: boolean | undefined | undefined;
|
|
891
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
892
|
+
is?: string | undefined | undefined;
|
|
893
|
+
exportparts?: string | undefined | undefined;
|
|
894
|
+
part?: string | undefined | undefined;
|
|
895
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
896
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
897
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
898
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
899
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
900
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
901
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
902
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
903
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
904
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
905
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
906
|
+
"aria-controls"?: string | undefined | undefined;
|
|
907
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
908
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
909
|
+
"aria-description"?: string | undefined | undefined;
|
|
910
|
+
"aria-details"?: string | undefined | undefined;
|
|
911
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
912
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
913
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
914
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
915
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
916
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
917
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
918
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
919
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
920
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
921
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
922
|
+
"aria-level"?: number | undefined | undefined;
|
|
923
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
924
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
925
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
926
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
927
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
928
|
+
"aria-owns"?: string | undefined | undefined;
|
|
929
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
930
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
931
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
932
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
933
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
934
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
935
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
936
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
937
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
938
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
939
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
940
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
941
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
942
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
943
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
944
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
945
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
946
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
947
|
+
dangerouslySetInnerHTML?: {
|
|
948
|
+
__html: string | TrustedHTML;
|
|
949
|
+
} | undefined | undefined;
|
|
950
|
+
onCopy?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
951
|
+
onCopyCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
952
|
+
onCut?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
953
|
+
onCutCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
954
|
+
onPaste?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
955
|
+
onPasteCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
956
|
+
onCompositionEnd?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
957
|
+
onCompositionEndCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
958
|
+
onCompositionStart?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
959
|
+
onCompositionStartCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
960
|
+
onCompositionUpdate?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
961
|
+
onCompositionUpdateCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
962
|
+
onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
963
|
+
onFocusCapture?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
964
|
+
onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
965
|
+
onBlurCapture?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
966
|
+
onChangeCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
967
|
+
onBeforeInput?: InputEventHandler<HTMLInputElement> | undefined;
|
|
968
|
+
onBeforeInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
969
|
+
onInput?: FormEventHandler<HTMLInputElement> | undefined;
|
|
970
|
+
onInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
971
|
+
onReset?: FormEventHandler<HTMLInputElement> | undefined;
|
|
972
|
+
onResetCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
973
|
+
onSubmit?: FormEventHandler<HTMLInputElement> | undefined;
|
|
974
|
+
onSubmitCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
975
|
+
onInvalid?: FormEventHandler<HTMLInputElement> | undefined;
|
|
976
|
+
onInvalidCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
977
|
+
onLoad?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
978
|
+
onLoadCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
979
|
+
onError?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
980
|
+
onErrorCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
981
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
982
|
+
onKeyDownCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
983
|
+
onKeyPress?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
984
|
+
onKeyPressCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
985
|
+
onKeyUp?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
986
|
+
onKeyUpCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
987
|
+
onAbort?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
988
|
+
onAbortCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
989
|
+
onCanPlay?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
990
|
+
onCanPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
991
|
+
onCanPlayThrough?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
992
|
+
onCanPlayThroughCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
993
|
+
onDurationChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
994
|
+
onDurationChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
995
|
+
onEmptied?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
996
|
+
onEmptiedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
997
|
+
onEncrypted?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
998
|
+
onEncryptedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
999
|
+
onEnded?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1000
|
+
onEndedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1001
|
+
onLoadedData?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1002
|
+
onLoadedDataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1003
|
+
onLoadedMetadata?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1004
|
+
onLoadedMetadataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1005
|
+
onLoadStart?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1006
|
+
onLoadStartCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1007
|
+
onPause?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1008
|
+
onPauseCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1009
|
+
onPlay?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1010
|
+
onPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1011
|
+
onPlaying?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1012
|
+
onPlayingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1013
|
+
onProgress?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1014
|
+
onProgressCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1015
|
+
onRateChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1016
|
+
onRateChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1017
|
+
onSeeked?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1018
|
+
onSeekedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1019
|
+
onSeeking?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1020
|
+
onSeekingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1021
|
+
onStalled?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1022
|
+
onStalledCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1023
|
+
onSuspend?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1024
|
+
onSuspendCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1025
|
+
onTimeUpdate?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1026
|
+
onTimeUpdateCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1027
|
+
onVolumeChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1028
|
+
onVolumeChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1029
|
+
onWaiting?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1030
|
+
onWaitingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1031
|
+
onAuxClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1032
|
+
onAuxClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1033
|
+
onClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1034
|
+
onContextMenu?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1035
|
+
onContextMenuCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1036
|
+
onDoubleClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1037
|
+
onDoubleClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1038
|
+
onDrag?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1039
|
+
onDragCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1040
|
+
onDragEnd?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1041
|
+
onDragEndCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1042
|
+
onDragEnter?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1043
|
+
onDragEnterCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1044
|
+
onDragExit?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1045
|
+
onDragExitCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1046
|
+
onDragLeave?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1047
|
+
onDragLeaveCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1048
|
+
onDragOver?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1049
|
+
onDragOverCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1050
|
+
onDragStart?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1051
|
+
onDragStartCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1052
|
+
onDrop?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1053
|
+
onDropCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1054
|
+
onMouseDown?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1055
|
+
onMouseDownCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1056
|
+
onMouseEnter?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1057
|
+
onMouseLeave?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1058
|
+
onMouseMove?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1059
|
+
onMouseMoveCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1060
|
+
onMouseOut?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1061
|
+
onMouseOutCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1062
|
+
onMouseOver?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1063
|
+
onMouseOverCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1064
|
+
onMouseUp?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1065
|
+
onMouseUpCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1066
|
+
onSelect?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1067
|
+
onSelectCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1068
|
+
onTouchCancel?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1069
|
+
onTouchCancelCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1070
|
+
onTouchEnd?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1071
|
+
onTouchEndCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1072
|
+
onTouchMove?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1073
|
+
onTouchMoveCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1074
|
+
onTouchStart?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1075
|
+
onTouchStartCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1076
|
+
onPointerDown?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1077
|
+
onPointerDownCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1078
|
+
onPointerMove?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1079
|
+
onPointerMoveCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1080
|
+
onPointerUp?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1081
|
+
onPointerUpCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1082
|
+
onPointerCancel?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1083
|
+
onPointerCancelCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1084
|
+
onPointerEnter?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1085
|
+
onPointerLeave?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1086
|
+
onPointerOver?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1087
|
+
onPointerOverCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1088
|
+
onPointerOut?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1089
|
+
onPointerOutCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1090
|
+
onGotPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1091
|
+
onGotPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1092
|
+
onLostPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1093
|
+
onLostPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1094
|
+
onScroll?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1095
|
+
onScrollCapture?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1096
|
+
onScrollEnd?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1097
|
+
onScrollEndCapture?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1098
|
+
onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
1099
|
+
onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
1100
|
+
onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1101
|
+
onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1102
|
+
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1103
|
+
onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1104
|
+
onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1105
|
+
onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1106
|
+
onToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
|
|
1107
|
+
onBeforeToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
|
|
1108
|
+
onTransitionCancel?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1109
|
+
onTransitionCancelCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1110
|
+
onTransitionEnd?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1111
|
+
onTransitionEndCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1112
|
+
onTransitionRun?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1113
|
+
onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1114
|
+
onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1115
|
+
onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1116
|
+
multiple?: boolean | undefined | undefined;
|
|
1117
|
+
list?: string | undefined | undefined;
|
|
1118
|
+
accept?: string | undefined | undefined;
|
|
1119
|
+
width?: number | string | undefined | undefined;
|
|
1120
|
+
height?: number | string | undefined | undefined;
|
|
1121
|
+
checked?: boolean | undefined | undefined;
|
|
1122
|
+
alt?: string | undefined | undefined;
|
|
1123
|
+
autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
1124
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
1125
|
+
maxLength?: number | undefined | undefined;
|
|
1126
|
+
minLength?: number | undefined | undefined;
|
|
1127
|
+
placeholder?: string | undefined | undefined;
|
|
1128
|
+
readOnly?: boolean | undefined | undefined;
|
|
1129
|
+
required?: boolean | undefined | undefined;
|
|
1130
|
+
src?: string | undefined | undefined;
|
|
1131
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Props del componente InputNumeric
|
|
1135
|
+
* @description Input numérico con soporte para decimales, separadores de miles y controles de incremento/decremento
|
|
1136
|
+
*/
|
|
1137
|
+
export declare type InputNumericProps = {
|
|
1138
|
+
/** Variante visual del input */
|
|
1139
|
+
variant?: InputVariant;
|
|
1140
|
+
/** Color temático del input (afecta el borde en focus) */
|
|
1141
|
+
color?: InputColor;
|
|
1142
|
+
/** Tamaño del input */
|
|
1143
|
+
size?: InputSize;
|
|
1144
|
+
/** Radio de bordes del input */
|
|
1145
|
+
radius?: InputRadius;
|
|
1146
|
+
/** Etiqueta del campo */
|
|
1147
|
+
label?: ReactNode;
|
|
1148
|
+
/** Placeholder del input */
|
|
89
1149
|
placeholder?: string;
|
|
1150
|
+
/** Valor controlado del input (número o undefined para no controlado) */
|
|
1151
|
+
value?: number | '';
|
|
1152
|
+
/** Valor inicial no controlado */
|
|
1153
|
+
defaultValue?: number;
|
|
1154
|
+
/** Descripción o texto de ayuda */
|
|
1155
|
+
description?: ReactNode;
|
|
1156
|
+
/** Mensaje de error personalizado */
|
|
1157
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
1158
|
+
/** Contenido al inicio del input (iconos, prefijos como $) */
|
|
90
1159
|
startContent?: ReactNode;
|
|
1160
|
+
/** Contenido al final del input (sufijos como kg, %) */
|
|
91
1161
|
endContent?: ReactNode;
|
|
1162
|
+
/** Si el campo es requerido */
|
|
92
1163
|
isRequired?: boolean;
|
|
1164
|
+
/** Si el campo es de solo lectura */
|
|
93
1165
|
isReadOnly?: boolean;
|
|
1166
|
+
/** Si el campo está deshabilitado */
|
|
94
1167
|
isDisabled?: boolean;
|
|
95
|
-
|
|
1168
|
+
/** Si el campo es inválido (override manual) */
|
|
96
1169
|
isInvalid?: boolean;
|
|
1170
|
+
/** Estado de validación manual */
|
|
97
1171
|
validationState?: 'valid' | 'invalid';
|
|
1172
|
+
/** Función de validación personalizada */
|
|
1173
|
+
validate?: (value: number | undefined) => ValidationResult;
|
|
1174
|
+
/** Si el input ocupa todo el ancho */
|
|
1175
|
+
fullWidth?: boolean;
|
|
1176
|
+
/** Deshabilita animaciones */
|
|
1177
|
+
disableAnimation?: boolean;
|
|
1178
|
+
/** Valor mínimo permitido */
|
|
1179
|
+
min?: number;
|
|
1180
|
+
/** Valor máximo permitido */
|
|
1181
|
+
max?: number;
|
|
1182
|
+
/** Incremento al usar flechas o botones (default: 1) */
|
|
1183
|
+
step?: number;
|
|
1184
|
+
/** Número de decimales fijos (si se especifica, siempre muestra esa cantidad) */
|
|
1185
|
+
decimalScale?: number;
|
|
1186
|
+
/** Si fija los decimales (siempre muestra decimalScale decimales) */
|
|
1187
|
+
fixedDecimalScale?: boolean;
|
|
1188
|
+
/** Separador de miles (default: ',') */
|
|
1189
|
+
thousandSeparator?: string | boolean;
|
|
1190
|
+
/** Separador decimal (default: '.') */
|
|
1191
|
+
decimalSeparator?: string;
|
|
1192
|
+
/** Prefijo a mostrar (ej: '$') */
|
|
1193
|
+
prefix?: string;
|
|
1194
|
+
/** Sufijo a mostrar (ej: '%') */
|
|
1195
|
+
suffix?: string;
|
|
1196
|
+
/** Si permite valores negativos (default: true) */
|
|
1197
|
+
allowNegative?: boolean;
|
|
1198
|
+
/** Si permite decimales (default: true) */
|
|
1199
|
+
allowDecimal?: boolean;
|
|
1200
|
+
/** Si muestra los botones de incremento/decremento (default: true) */
|
|
1201
|
+
hideControls?: boolean;
|
|
1202
|
+
/** Si fija el valor al min/max cuando se excede (default: true) */
|
|
1203
|
+
clampBehavior?: 'strict' | 'blur' | 'none';
|
|
1204
|
+
/** Clases CSS personalizadas para cada parte */
|
|
1205
|
+
classNames?: {
|
|
1206
|
+
base?: string;
|
|
1207
|
+
label?: string;
|
|
1208
|
+
inputWrapper?: string;
|
|
1209
|
+
innerWrapper?: string;
|
|
1210
|
+
input?: string;
|
|
1211
|
+
controls?: string;
|
|
1212
|
+
controlButton?: string;
|
|
1213
|
+
description?: string;
|
|
1214
|
+
errorMessage?: string;
|
|
1215
|
+
};
|
|
1216
|
+
/** Callback cuando cambia el valor numérico */
|
|
1217
|
+
onChange?: (value: number | undefined) => void;
|
|
1218
|
+
/** Callback cuando cambia el valor formateado (string) */
|
|
1219
|
+
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
1220
|
+
} & NativeInputProps_2;
|
|
1221
|
+
|
|
1222
|
+
export declare type InputRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
1223
|
+
|
|
1224
|
+
export declare type InputSize = 'sm' | 'md' | 'lg';
|
|
1225
|
+
|
|
1226
|
+
export declare const InputText: ForwardRefExoticComponent< {
|
|
1227
|
+
type?: InputType;
|
|
1228
|
+
variant?: InputVariant;
|
|
1229
|
+
color?: InputColor;
|
|
1230
|
+
size?: InputSize;
|
|
1231
|
+
radius?: InputRadius;
|
|
1232
|
+
label?: ReactNode;
|
|
1233
|
+
placeholder?: string;
|
|
1234
|
+
value?: string;
|
|
1235
|
+
defaultValue?: string;
|
|
1236
|
+
description?: ReactNode;
|
|
1237
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
1238
|
+
startContent?: ReactNode;
|
|
1239
|
+
endContent?: ReactNode;
|
|
1240
|
+
isRequired?: boolean;
|
|
1241
|
+
isReadOnly?: boolean;
|
|
1242
|
+
isDisabled?: boolean;
|
|
1243
|
+
isClearable?: boolean;
|
|
1244
|
+
isInvalid?: boolean;
|
|
1245
|
+
validationState?: "valid" | "invalid";
|
|
1246
|
+
validate?: (value: string) => ValidationResult;
|
|
1247
|
+
fullWidth?: boolean;
|
|
1248
|
+
disableAnimation?: boolean;
|
|
1249
|
+
classNames?: {
|
|
1250
|
+
base?: string;
|
|
1251
|
+
label?: string;
|
|
1252
|
+
inputWrapper?: string;
|
|
1253
|
+
innerWrapper?: string;
|
|
1254
|
+
input?: string;
|
|
1255
|
+
clearButton?: string;
|
|
1256
|
+
description?: string;
|
|
1257
|
+
errorMessage?: string;
|
|
1258
|
+
};
|
|
1259
|
+
onChange?: (value: string) => void;
|
|
1260
|
+
onClear?: () => void;
|
|
1261
|
+
onValueChange?: (value: string) => void;
|
|
1262
|
+
} & {
|
|
1263
|
+
form?: string | undefined | undefined;
|
|
1264
|
+
slot?: string | undefined | undefined;
|
|
1265
|
+
style?: CSSProperties | undefined;
|
|
1266
|
+
title?: string | undefined | undefined;
|
|
1267
|
+
pattern?: string | undefined | undefined;
|
|
1268
|
+
className?: string | undefined | undefined;
|
|
1269
|
+
onClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1270
|
+
"aria-label"?: string | undefined | undefined;
|
|
1271
|
+
disabled?: boolean | undefined | undefined;
|
|
1272
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
1273
|
+
formEncType?: string | undefined | undefined;
|
|
1274
|
+
formMethod?: string | undefined | undefined;
|
|
1275
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
1276
|
+
formTarget?: string | undefined | undefined;
|
|
1277
|
+
name?: string | undefined | undefined;
|
|
1278
|
+
value?: string | number | readonly string[] | undefined;
|
|
1279
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
1280
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
1281
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
1282
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
1283
|
+
accessKey?: string | undefined | undefined;
|
|
1284
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
1285
|
+
autoFocus?: boolean | undefined | undefined;
|
|
1286
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
1287
|
+
contextMenu?: string | undefined | undefined;
|
|
1288
|
+
dir?: string | undefined | undefined;
|
|
1289
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
1290
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
1291
|
+
hidden?: boolean | undefined | undefined;
|
|
1292
|
+
id?: string | undefined | undefined;
|
|
1293
|
+
lang?: string | undefined | undefined;
|
|
1294
|
+
nonce?: string | undefined | undefined;
|
|
1295
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1296
|
+
tabIndex?: number | undefined | undefined;
|
|
1297
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
1298
|
+
radioGroup?: string | undefined | undefined;
|
|
1299
|
+
role?: AriaRole | undefined;
|
|
1300
|
+
about?: string | undefined | undefined;
|
|
1301
|
+
content?: string | undefined | undefined;
|
|
1302
|
+
datatype?: string | undefined | undefined;
|
|
1303
|
+
inlist?: any;
|
|
1304
|
+
prefix?: string | undefined | undefined;
|
|
1305
|
+
property?: string | undefined | undefined;
|
|
1306
|
+
rel?: string | undefined | undefined;
|
|
1307
|
+
resource?: string | undefined | undefined;
|
|
1308
|
+
rev?: string | undefined | undefined;
|
|
1309
|
+
typeof?: string | undefined | undefined;
|
|
1310
|
+
vocab?: string | undefined | undefined;
|
|
1311
|
+
autoCorrect?: string | undefined | undefined;
|
|
1312
|
+
autoSave?: string | undefined | undefined;
|
|
1313
|
+
itemProp?: string | undefined | undefined;
|
|
1314
|
+
itemScope?: boolean | undefined | undefined;
|
|
1315
|
+
itemType?: string | undefined | undefined;
|
|
1316
|
+
itemID?: string | undefined | undefined;
|
|
1317
|
+
itemRef?: string | undefined | undefined;
|
|
1318
|
+
results?: number | undefined | undefined;
|
|
1319
|
+
security?: string | undefined | undefined;
|
|
1320
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
1321
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1322
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
1323
|
+
popoverTarget?: string | undefined | undefined;
|
|
1324
|
+
inert?: boolean | undefined | undefined;
|
|
1325
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
1326
|
+
is?: string | undefined | undefined;
|
|
1327
|
+
exportparts?: string | undefined | undefined;
|
|
1328
|
+
part?: string | undefined | undefined;
|
|
1329
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
1330
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
1331
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
1332
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
1333
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
1334
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
1335
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
1336
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
1337
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
1338
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
1339
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
1340
|
+
"aria-controls"?: string | undefined | undefined;
|
|
1341
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
1342
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
1343
|
+
"aria-description"?: string | undefined | undefined;
|
|
1344
|
+
"aria-details"?: string | undefined | undefined;
|
|
1345
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
1346
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
1347
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
1348
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
1349
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
1350
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
1351
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
1352
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
1353
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
1354
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
1355
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
1356
|
+
"aria-level"?: number | undefined | undefined;
|
|
1357
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
1358
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
1359
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
1360
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
1361
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
1362
|
+
"aria-owns"?: string | undefined | undefined;
|
|
1363
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
1364
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
1365
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
1366
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
1367
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
1368
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
1369
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
1370
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
1371
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
1372
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
1373
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
1374
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
1375
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
1376
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
1377
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
1378
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
1379
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
1380
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
1381
|
+
dangerouslySetInnerHTML?: {
|
|
1382
|
+
__html: string | TrustedHTML;
|
|
1383
|
+
} | undefined | undefined;
|
|
1384
|
+
onCopy?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
1385
|
+
onCopyCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
1386
|
+
onCut?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
1387
|
+
onCutCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
1388
|
+
onPaste?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
1389
|
+
onPasteCapture?: ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
1390
|
+
onCompositionEnd?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
1391
|
+
onCompositionEndCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
1392
|
+
onCompositionStart?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
1393
|
+
onCompositionStartCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
1394
|
+
onCompositionUpdate?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
1395
|
+
onCompositionUpdateCapture?: CompositionEventHandler<HTMLInputElement> | undefined;
|
|
1396
|
+
onFocus?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
1397
|
+
onFocusCapture?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
1398
|
+
onBlur?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
1399
|
+
onBlurCapture?: FocusEventHandler<HTMLInputElement> | undefined;
|
|
1400
|
+
onChangeCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1401
|
+
onBeforeInput?: InputEventHandler<HTMLInputElement> | undefined;
|
|
1402
|
+
onBeforeInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1403
|
+
onInput?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1404
|
+
onInputCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1405
|
+
onReset?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1406
|
+
onResetCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1407
|
+
onSubmit?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1408
|
+
onSubmitCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1409
|
+
onInvalid?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1410
|
+
onInvalidCapture?: FormEventHandler<HTMLInputElement> | undefined;
|
|
1411
|
+
onLoad?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1412
|
+
onLoadCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1413
|
+
onError?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1414
|
+
onErrorCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1415
|
+
onKeyDown?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
1416
|
+
onKeyDownCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
1417
|
+
onKeyPress?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
1418
|
+
onKeyPressCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
1419
|
+
onKeyUp?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
1420
|
+
onKeyUpCapture?: KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
1421
|
+
onAbort?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1422
|
+
onAbortCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1423
|
+
onCanPlay?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1424
|
+
onCanPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1425
|
+
onCanPlayThrough?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1426
|
+
onCanPlayThroughCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1427
|
+
onDurationChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1428
|
+
onDurationChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1429
|
+
onEmptied?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1430
|
+
onEmptiedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1431
|
+
onEncrypted?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1432
|
+
onEncryptedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1433
|
+
onEnded?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1434
|
+
onEndedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1435
|
+
onLoadedData?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1436
|
+
onLoadedDataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1437
|
+
onLoadedMetadata?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1438
|
+
onLoadedMetadataCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1439
|
+
onLoadStart?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1440
|
+
onLoadStartCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1441
|
+
onPause?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1442
|
+
onPauseCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1443
|
+
onPlay?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1444
|
+
onPlayCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1445
|
+
onPlaying?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1446
|
+
onPlayingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1447
|
+
onProgress?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1448
|
+
onProgressCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1449
|
+
onRateChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1450
|
+
onRateChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1451
|
+
onSeeked?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1452
|
+
onSeekedCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1453
|
+
onSeeking?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1454
|
+
onSeekingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1455
|
+
onStalled?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1456
|
+
onStalledCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1457
|
+
onSuspend?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1458
|
+
onSuspendCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1459
|
+
onTimeUpdate?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1460
|
+
onTimeUpdateCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1461
|
+
onVolumeChange?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1462
|
+
onVolumeChangeCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1463
|
+
onWaiting?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1464
|
+
onWaitingCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1465
|
+
onAuxClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1466
|
+
onAuxClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1467
|
+
onClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1468
|
+
onContextMenu?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1469
|
+
onContextMenuCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1470
|
+
onDoubleClick?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1471
|
+
onDoubleClickCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1472
|
+
onDrag?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1473
|
+
onDragCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1474
|
+
onDragEnd?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1475
|
+
onDragEndCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1476
|
+
onDragEnter?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1477
|
+
onDragEnterCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1478
|
+
onDragExit?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1479
|
+
onDragExitCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1480
|
+
onDragLeave?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1481
|
+
onDragLeaveCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1482
|
+
onDragOver?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1483
|
+
onDragOverCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1484
|
+
onDragStart?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1485
|
+
onDragStartCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1486
|
+
onDrop?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1487
|
+
onDropCapture?: DragEventHandler<HTMLInputElement> | undefined;
|
|
1488
|
+
onMouseDown?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1489
|
+
onMouseDownCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1490
|
+
onMouseEnter?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1491
|
+
onMouseLeave?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1492
|
+
onMouseMove?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1493
|
+
onMouseMoveCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1494
|
+
onMouseOut?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1495
|
+
onMouseOutCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1496
|
+
onMouseOver?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1497
|
+
onMouseOverCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1498
|
+
onMouseUp?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1499
|
+
onMouseUpCapture?: MouseEventHandler<HTMLInputElement> | undefined;
|
|
1500
|
+
onSelect?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1501
|
+
onSelectCapture?: ReactEventHandler<HTMLInputElement> | undefined;
|
|
1502
|
+
onTouchCancel?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1503
|
+
onTouchCancelCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1504
|
+
onTouchEnd?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1505
|
+
onTouchEndCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1506
|
+
onTouchMove?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1507
|
+
onTouchMoveCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1508
|
+
onTouchStart?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1509
|
+
onTouchStartCapture?: TouchEventHandler<HTMLInputElement> | undefined;
|
|
1510
|
+
onPointerDown?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1511
|
+
onPointerDownCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1512
|
+
onPointerMove?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1513
|
+
onPointerMoveCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1514
|
+
onPointerUp?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1515
|
+
onPointerUpCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1516
|
+
onPointerCancel?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1517
|
+
onPointerCancelCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1518
|
+
onPointerEnter?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1519
|
+
onPointerLeave?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1520
|
+
onPointerOver?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1521
|
+
onPointerOverCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1522
|
+
onPointerOut?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1523
|
+
onPointerOutCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1524
|
+
onGotPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1525
|
+
onGotPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1526
|
+
onLostPointerCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1527
|
+
onLostPointerCaptureCapture?: PointerEventHandler<HTMLInputElement> | undefined;
|
|
1528
|
+
onScroll?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1529
|
+
onScrollCapture?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1530
|
+
onScrollEnd?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1531
|
+
onScrollEndCapture?: UIEventHandler<HTMLInputElement> | undefined;
|
|
1532
|
+
onWheel?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
1533
|
+
onWheelCapture?: WheelEventHandler<HTMLInputElement> | undefined;
|
|
1534
|
+
onAnimationStart?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1535
|
+
onAnimationStartCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1536
|
+
onAnimationEnd?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1537
|
+
onAnimationEndCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1538
|
+
onAnimationIteration?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1539
|
+
onAnimationIterationCapture?: AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1540
|
+
onToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
|
|
1541
|
+
onBeforeToggle?: ToggleEventHandler<HTMLInputElement> | undefined;
|
|
1542
|
+
onTransitionCancel?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1543
|
+
onTransitionCancelCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1544
|
+
onTransitionEnd?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1545
|
+
onTransitionEndCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1546
|
+
onTransitionRun?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1547
|
+
onTransitionRunCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1548
|
+
onTransitionStart?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1549
|
+
onTransitionStartCapture?: TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1550
|
+
multiple?: boolean | undefined | undefined;
|
|
1551
|
+
list?: string | undefined | undefined;
|
|
1552
|
+
accept?: string | undefined | undefined;
|
|
1553
|
+
width?: number | string | undefined | undefined;
|
|
1554
|
+
height?: number | string | undefined | undefined;
|
|
1555
|
+
checked?: boolean | undefined | undefined;
|
|
1556
|
+
max?: number | string | undefined | undefined;
|
|
1557
|
+
min?: number | string | undefined | undefined;
|
|
1558
|
+
alt?: string | undefined | undefined;
|
|
1559
|
+
autoComplete?: HTMLInputAutoCompleteAttribute | undefined;
|
|
1560
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
1561
|
+
maxLength?: number | undefined | undefined;
|
|
1562
|
+
minLength?: number | undefined | undefined;
|
|
1563
|
+
placeholder?: string | undefined | undefined;
|
|
1564
|
+
readOnly?: boolean | undefined | undefined;
|
|
1565
|
+
required?: boolean | undefined | undefined;
|
|
1566
|
+
src?: string | undefined | undefined;
|
|
1567
|
+
step?: number | string | undefined | undefined;
|
|
1568
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Props del componente InputText
|
|
1572
|
+
* @description Input de texto con soporte para múltiples tipos, validación, iconos y estados
|
|
1573
|
+
*/
|
|
1574
|
+
export declare type InputTextProps = {
|
|
1575
|
+
/** Tipo del input (text, password, email, tel, url, search) */
|
|
1576
|
+
type?: InputType;
|
|
1577
|
+
/** Variante visual del input */
|
|
1578
|
+
variant?: InputVariant;
|
|
1579
|
+
/** Color temático del input (afecta el borde en focus) */
|
|
1580
|
+
color?: InputColor;
|
|
1581
|
+
/** Tamaño del input */
|
|
1582
|
+
size?: InputSize;
|
|
1583
|
+
/** Radio de bordes del input */
|
|
1584
|
+
radius?: InputRadius;
|
|
1585
|
+
/** Etiqueta del campo */
|
|
1586
|
+
label?: ReactNode;
|
|
1587
|
+
/** Placeholder del input */
|
|
1588
|
+
placeholder?: string;
|
|
1589
|
+
/** Valor controlado del input */
|
|
1590
|
+
value?: string;
|
|
1591
|
+
/** Valor inicial no controlado */
|
|
1592
|
+
defaultValue?: string;
|
|
1593
|
+
/** Descripción o texto de ayuda */
|
|
98
1594
|
description?: ReactNode;
|
|
1595
|
+
/** Mensaje de error personalizado */
|
|
99
1596
|
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
100
|
-
|
|
1597
|
+
/** Contenido al inicio del input (iconos, prefijos) */
|
|
1598
|
+
startContent?: ReactNode;
|
|
1599
|
+
/** Contenido al final del input (iconos, sufijos) */
|
|
1600
|
+
endContent?: ReactNode;
|
|
1601
|
+
/** Si el campo es requerido */
|
|
1602
|
+
isRequired?: boolean;
|
|
1603
|
+
/** Si el campo es de solo lectura */
|
|
1604
|
+
isReadOnly?: boolean;
|
|
1605
|
+
/** Si el campo está deshabilitado */
|
|
1606
|
+
isDisabled?: boolean;
|
|
1607
|
+
/** Si muestra botón para limpiar el campo */
|
|
1608
|
+
isClearable?: boolean;
|
|
1609
|
+
/** Si el campo es inválido (override manual) */
|
|
1610
|
+
isInvalid?: boolean;
|
|
1611
|
+
/** Estado de validación manual */
|
|
1612
|
+
validationState?: 'valid' | 'invalid';
|
|
1613
|
+
/** Función de validación personalizada */
|
|
1614
|
+
validate?: (value: string) => ValidationResult;
|
|
1615
|
+
/** Si el input ocupa todo el ancho */
|
|
1616
|
+
fullWidth?: boolean;
|
|
1617
|
+
/** Deshabilita animaciones */
|
|
1618
|
+
disableAnimation?: boolean;
|
|
1619
|
+
/** Clases CSS personalizadas para cada parte */
|
|
1620
|
+
classNames?: {
|
|
1621
|
+
base?: string;
|
|
1622
|
+
label?: string;
|
|
1623
|
+
inputWrapper?: string;
|
|
1624
|
+
innerWrapper?: string;
|
|
1625
|
+
input?: string;
|
|
1626
|
+
clearButton?: string;
|
|
1627
|
+
description?: string;
|
|
1628
|
+
errorMessage?: string;
|
|
1629
|
+
};
|
|
1630
|
+
/** Callback cuando cambia el valor */
|
|
1631
|
+
onChange?: (value: string) => void;
|
|
1632
|
+
/** Callback cuando se limpia el campo */
|
|
1633
|
+
onClear?: () => void;
|
|
1634
|
+
/** Callback cuando cambia el valor (alias de onChange) */
|
|
1635
|
+
onValueChange?: (value: string) => void;
|
|
1636
|
+
} & NativeInputProps;
|
|
1637
|
+
|
|
1638
|
+
/** Tipos de input de texto soportados */
|
|
1639
|
+
export declare type InputType = 'text' | 'password' | 'email' | 'tel' | 'url' | 'search';
|
|
1640
|
+
|
|
1641
|
+
export declare type InputVariant = 'bordered' | 'faded' | 'underlined' | 'ghost';
|
|
1642
|
+
|
|
1643
|
+
export declare function MicrofonoIcono(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
1644
|
+
|
|
1645
|
+
declare type NativeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type'>;
|
|
1646
|
+
|
|
1647
|
+
declare type NativeInputProps_2 = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type' | 'value' | 'defaultValue' | 'min' | 'max' | 'step'>;
|
|
1648
|
+
|
|
1649
|
+
declare type NativeInputProps_3 = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type' | 'value' | 'defaultValue'>;
|
|
1650
|
+
|
|
1651
|
+
declare type NativeTextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'color' | 'size' | 'onChange' | 'children'>;
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* Obtiene la fecha actual en formato ISO
|
|
1655
|
+
* @returns Fecha actual en formato YYYY-MM-DD
|
|
1656
|
+
*/
|
|
1657
|
+
export declare function obtenerFechaHoy(): string;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Obtiene el label de una opción
|
|
1661
|
+
* @template T - Tipo de la opción
|
|
1662
|
+
* @param opcion - La opción de la cual extraer el label
|
|
1663
|
+
* @param claveLabel - Campo del objeto a usar como label
|
|
1664
|
+
* @returns El texto del label
|
|
1665
|
+
*
|
|
1666
|
+
* @example
|
|
1667
|
+
* ```ts
|
|
1668
|
+
* // Con string
|
|
1669
|
+
* obtenerLabelOpcion('Manzana', 'label') // 'Manzana'
|
|
1670
|
+
*
|
|
1671
|
+
* // Con objeto
|
|
1672
|
+
* obtenerLabelOpcion({ nombre: 'Colombia', id: 'co' }, 'nombre') // 'Colombia'
|
|
1673
|
+
* ```
|
|
1674
|
+
*/
|
|
1675
|
+
export declare function obtenerLabelOpcion<T>(opcion: T, claveLabel: string): string;
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* Obtiene el valor único de una opción
|
|
1679
|
+
* @template T - Tipo de la opción
|
|
1680
|
+
* @param opcion - La opción de la cual extraer el valor
|
|
1681
|
+
* @param claveValor - Campo del objeto a usar como valor
|
|
1682
|
+
* @returns El valor único de la opción
|
|
1683
|
+
*
|
|
1684
|
+
* @example
|
|
1685
|
+
* ```ts
|
|
1686
|
+
* // Con string
|
|
1687
|
+
* obtenerValorOpcion('Manzana', 'id') // 'Manzana'
|
|
1688
|
+
*
|
|
1689
|
+
* // Con objeto
|
|
1690
|
+
* obtenerValorOpcion({ nombre: 'Colombia', id: 'co' }, 'id') // 'co'
|
|
1691
|
+
* ```
|
|
1692
|
+
*/
|
|
1693
|
+
export declare function obtenerValorOpcion<T>(opcion: T, claveValor: string): string;
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* @fileoverview Funciones utilitarias para el componente Select
|
|
1697
|
+
* @module Select/funciones
|
|
1698
|
+
*/
|
|
1699
|
+
/**
|
|
1700
|
+
* Opción de grupo para categorización
|
|
1701
|
+
*/
|
|
1702
|
+
export declare interface OpcionGrupo<T> {
|
|
1703
|
+
/** Nombre del grupo */
|
|
1704
|
+
grupo: string;
|
|
1705
|
+
/** Opciones dentro del grupo */
|
|
1706
|
+
opciones: T[];
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* Opción plana con información de grupo
|
|
1711
|
+
*/
|
|
1712
|
+
export declare interface OpcionPlana<T> {
|
|
1713
|
+
/** Tipo: 'grupo' para encabezado, 'opcion' para ítem */
|
|
1714
|
+
tipo: 'grupo' | 'opcion';
|
|
1715
|
+
/** Datos de la opción (null si es encabezado de grupo) */
|
|
1716
|
+
datos: T | null;
|
|
1717
|
+
/** Nombre del grupo (para encabezados) */
|
|
1718
|
+
nombreGrupo?: string;
|
|
1719
|
+
/** Índice real en la lista plana */
|
|
1720
|
+
indice: number;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Parsea un string formateado y extrae el valor numérico
|
|
1725
|
+
* @param texto - String con formato (puede tener separadores, prefijos, sufijos)
|
|
1726
|
+
* @param opciones - Configuración para el parseo
|
|
1727
|
+
* @returns El número parseado o undefined si no es válido
|
|
1728
|
+
* @example
|
|
1729
|
+
* parsearNumero("$1,234.56", { separadorMiles: ',', separadorDecimal: '.', prefijo: '$' })
|
|
1730
|
+
* // Retorna: 1234.56
|
|
1731
|
+
*/
|
|
1732
|
+
export declare function parsearNumero(texto: string, opciones: {
|
|
1733
|
+
separadorMiles?: string | boolean;
|
|
1734
|
+
separadorDecimal?: string;
|
|
1735
|
+
prefijo?: string;
|
|
1736
|
+
sufijo?: string;
|
|
1737
|
+
permitirNegativo?: boolean;
|
|
1738
|
+
}): number | undefined;
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Procesa el resultado de una función de validación
|
|
1742
|
+
* @param resultado - Resultado de la función validate
|
|
1743
|
+
* @returns Objeto con estado de validación y mensaje
|
|
1744
|
+
*/
|
|
1745
|
+
export declare function procesarValidacion(resultado: ValidationResult): ResultadoValidacion;
|
|
1746
|
+
|
|
1747
|
+
declare type Props = {
|
|
1748
|
+
value: string;
|
|
1749
|
+
onChange: (nuevoTexto: string) => void;
|
|
1750
|
+
isDisabled?: boolean;
|
|
1751
|
+
isReadOnly?: boolean;
|
|
1752
|
+
onDictadoCompleto?: () => void;
|
|
1753
|
+
idioma?: string;
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Redondea un número a una cantidad específica de decimales
|
|
1758
|
+
* @param valor - Número a redondear
|
|
1759
|
+
* @param decimales - Cantidad de decimales
|
|
1760
|
+
* @returns Número redondeado
|
|
1761
|
+
*/
|
|
1762
|
+
export declare function redondearDecimales(valor: number, decimales: number): number;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Restringe un valor dentro de un rango mínimo y máximo
|
|
1766
|
+
* @param valor - Valor a restringir
|
|
1767
|
+
* @param min - Valor mínimo permitido
|
|
1768
|
+
* @param max - Valor máximo permitido
|
|
1769
|
+
* @returns El valor restringido dentro del rango
|
|
1770
|
+
* @example
|
|
1771
|
+
* restringirRango(150, 0, 100) // Retorna: 100
|
|
1772
|
+
* restringirRango(-10, 0, 100) // Retorna: 0
|
|
1773
|
+
*/
|
|
1774
|
+
export declare function restringirRango(valor: number, min?: number, max?: number): number;
|
|
1775
|
+
|
|
1776
|
+
export declare type ResultadoValidacion = {
|
|
1777
|
+
invalido: boolean;
|
|
1778
|
+
mensaje: string | null;
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Componente Select genérico con soporte para virtualización, búsqueda y selección múltiple.
|
|
1783
|
+
*
|
|
1784
|
+
* @template T - Tipo de las opciones (string u objeto personalizado)
|
|
1785
|
+
*
|
|
1786
|
+
* @description
|
|
1787
|
+
* Select implementa un patrón de "Hybrid Rendering":
|
|
1788
|
+
* - En **desktop**: Usa un dropdown custom con Floating UI
|
|
1789
|
+
* - En **móvil**: Usa el select nativo del SO (mejor UX táctil)
|
|
1790
|
+
*
|
|
1791
|
+
* ### Características principales:
|
|
1792
|
+
* - ✅ Virtualización para listas de +10,000 opciones
|
|
1793
|
+
* - ✅ Búsqueda/filtrado con función personalizable
|
|
1794
|
+
* - ✅ Selección simple o múltiple
|
|
1795
|
+
* - ✅ Soporte para opciones agrupadas
|
|
1796
|
+
* - ✅ Validación integrada
|
|
1797
|
+
* - ✅ Navegación por teclado completa
|
|
1798
|
+
* - ✅ Typeahead (búsqueda por tecla)
|
|
1799
|
+
*
|
|
1800
|
+
* @example
|
|
1801
|
+
* ```tsx
|
|
1802
|
+
* // Básico con strings
|
|
1803
|
+
* <Select options={['Opción 1', 'Opción 2']} />
|
|
1804
|
+
*
|
|
1805
|
+
* // Con objetos
|
|
1806
|
+
* <Select
|
|
1807
|
+
* options={usuarios}
|
|
1808
|
+
* optionLabelKey="nombre"
|
|
1809
|
+
* optionValueKey="id"
|
|
1810
|
+
* />
|
|
1811
|
+
*
|
|
1812
|
+
* // Multi-selección con búsqueda
|
|
1813
|
+
* <Select
|
|
1814
|
+
* options={paises}
|
|
1815
|
+
* isMultiple
|
|
1816
|
+
* isSearchable
|
|
1817
|
+
* placeholder="Seleccione países..."
|
|
1818
|
+
* />
|
|
1819
|
+
*
|
|
1820
|
+
* // Lista virtualizada
|
|
1821
|
+
* <Select
|
|
1822
|
+
* options={listaGrande}
|
|
1823
|
+
* isVirtualized
|
|
1824
|
+
* estimatedOptionHeight={40}
|
|
1825
|
+
* />
|
|
1826
|
+
* ```
|
|
1827
|
+
*
|
|
1828
|
+
* @see {@link SelectProps} para la lista completa de props
|
|
1829
|
+
* @see {@link SelectRef} para los métodos imperativos disponibles
|
|
1830
|
+
*/
|
|
1831
|
+
export declare const Select: <T = string>(props: SelectProps<T> & {
|
|
1832
|
+
ref?: React.ForwardedRef<SelectRef>;
|
|
1833
|
+
}) => React.ReactElement;
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Tipo de opción del Select.
|
|
1837
|
+
*
|
|
1838
|
+
* Puede ser un string simple o un objeto con propiedades adicionales.
|
|
1839
|
+
* Si es objeto, puede incluir `disabled: true` para deshabilitarla.
|
|
1840
|
+
*
|
|
1841
|
+
* @template T - Tipo base de la opción
|
|
1842
|
+
*
|
|
1843
|
+
* @example
|
|
1844
|
+
* ```ts
|
|
1845
|
+
* // String simple
|
|
1846
|
+
* type OpcionSimple = SelectOption<string>; // string
|
|
1847
|
+
*
|
|
1848
|
+
* // Objeto con disabled
|
|
1849
|
+
* type OpcionObjeto = SelectOption<{ id: string; label: string }>;
|
|
1850
|
+
* // { id: string; label: string; disabled?: boolean }
|
|
1851
|
+
* ```
|
|
1852
|
+
*/
|
|
1853
|
+
export declare type SelectOption<T = string> = T extends string ? string : T & {
|
|
1854
|
+
disabled?: boolean;
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* Estado de una opción para el render personalizado.
|
|
1859
|
+
*
|
|
1860
|
+
* @description
|
|
1861
|
+
* Este estado se pasa a `renderOption` para permitir
|
|
1862
|
+
* estilos condicionales basados en la interacción.
|
|
1863
|
+
*/
|
|
1864
|
+
export declare interface SelectOptionState {
|
|
1865
|
+
/** true si la opción está actualmente seleccionada */
|
|
1866
|
+
isSelected: boolean;
|
|
1867
|
+
/** true si la opción tiene el foco (hover o navegación por teclado) */
|
|
1868
|
+
isActive: boolean;
|
|
1869
|
+
/** true si la opción está deshabilitada */
|
|
1870
|
+
isDisabled: boolean;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Props principales del componente Select.
|
|
1875
|
+
*
|
|
1876
|
+
* @template T - Tipo de las opciones (string por defecto)
|
|
1877
|
+
*
|
|
1878
|
+
* @description
|
|
1879
|
+
* El componente Select soporta:
|
|
1880
|
+
* - Opciones simples (strings) o complejas (objetos)
|
|
1881
|
+
* - Modo controlado y no controlado
|
|
1882
|
+
* - Selección simple o múltiple
|
|
1883
|
+
* - Búsqueda/filtrado con función personalizable
|
|
1884
|
+
* - Virtualización para listas grandes
|
|
1885
|
+
* - Validación integrada
|
|
1886
|
+
* - Render personalizado de opciones y valor
|
|
1887
|
+
*
|
|
1888
|
+
* @example
|
|
1889
|
+
* ```tsx
|
|
1890
|
+
* // Props básicas
|
|
1891
|
+
* <Select
|
|
1892
|
+
* options={['Opción 1', 'Opción 2']}
|
|
1893
|
+
* value={seleccionado}
|
|
1894
|
+
* onChange={setSeleccionado}
|
|
1895
|
+
* />
|
|
1896
|
+
*
|
|
1897
|
+
* // Props avanzadas con objetos
|
|
1898
|
+
* interface Pais { codigo: string; nombre: string; bandera: string; }
|
|
1899
|
+
*
|
|
1900
|
+
* <Select<Pais>
|
|
1901
|
+
* options={paises}
|
|
1902
|
+
* optionLabelKey="nombre"
|
|
1903
|
+
* optionValueKey="codigo"
|
|
1904
|
+
* renderOption={(pais, { isSelected }) => (
|
|
1905
|
+
* <div className={isSelected ? 'selected' : ''}>
|
|
1906
|
+
* {pais.bandera} {pais.nombre}
|
|
1907
|
+
* </div>
|
|
1908
|
+
* )}
|
|
1909
|
+
* isSearchable
|
|
1910
|
+
* isVirtualized
|
|
1911
|
+
* />
|
|
1912
|
+
* ```
|
|
1913
|
+
*/
|
|
1914
|
+
export declare interface SelectProps<T = string> {
|
|
1915
|
+
/**
|
|
1916
|
+
* Lista de opciones disponibles para seleccionar.
|
|
1917
|
+
*
|
|
1918
|
+
* Puede ser un array de strings o un array de objetos.
|
|
1919
|
+
* Para objetos, usar `optionLabelKey` y `optionValueKey`.
|
|
1920
|
+
*
|
|
1921
|
+
* @example
|
|
1922
|
+
* ```ts
|
|
1923
|
+
* // Strings
|
|
1924
|
+
* options={['Rojo', 'Verde', 'Azul']}
|
|
1925
|
+
*
|
|
1926
|
+
* // Objetos
|
|
1927
|
+
* options={[{ id: '1', nombre: 'Ana' }, { id: '2', nombre: 'Luis' }]}
|
|
1928
|
+
* ```
|
|
1929
|
+
*/
|
|
1930
|
+
options: T[];
|
|
1931
|
+
/**
|
|
1932
|
+
* Valor actual seleccionado (modo controlado).
|
|
1933
|
+
*
|
|
1934
|
+
* En modo simple: `T | null`
|
|
1935
|
+
* En modo múltiple: `T[]`
|
|
1936
|
+
*
|
|
1937
|
+
* Si no se proporciona, el componente es no controlado.
|
|
1938
|
+
*/
|
|
1939
|
+
value?: T | T[] | null;
|
|
1940
|
+
/**
|
|
1941
|
+
* Valor inicial (modo no controlado).
|
|
1942
|
+
*
|
|
1943
|
+
* Se usa solo si `value` no está definido.
|
|
1944
|
+
* El componente mantendrá su propio estado interno.
|
|
1945
|
+
*/
|
|
1946
|
+
defaultValue?: T | T[] | null;
|
|
1947
|
+
/**
|
|
1948
|
+
* Callback cuando cambia la selección.
|
|
1949
|
+
*
|
|
1950
|
+
* @important Recibe el valor (T | T[] | null), NO el evento.
|
|
1951
|
+
* Esto es intencional para una API más limpia.
|
|
1952
|
+
*
|
|
1953
|
+
* @param value - Nueva selección (objeto/string, array, o null)
|
|
1954
|
+
*
|
|
1955
|
+
* @example
|
|
1956
|
+
* ```ts
|
|
1957
|
+
* onChange={(usuario) => {
|
|
1958
|
+
* console.log(usuario?.nombre); // Acceso directo al objeto
|
|
1959
|
+
* }}
|
|
1960
|
+
* ```
|
|
1961
|
+
*/
|
|
1962
|
+
onChange?: (value: T | T[] | null) => void;
|
|
1963
|
+
/**
|
|
1964
|
+
* Callback alternativo con el mismo comportamiento que onChange.
|
|
1965
|
+
*
|
|
1966
|
+
* Útil para compatibilidad con librerías de formularios que
|
|
1967
|
+
* esperan un prop diferente a onChange.
|
|
1968
|
+
*/
|
|
1969
|
+
onValueChange?: (value: T | T[] | null) => void;
|
|
1970
|
+
/**
|
|
1971
|
+
* Campo del objeto a mostrar como texto de la opción.
|
|
1972
|
+
*
|
|
1973
|
+
* @default 'label'
|
|
1974
|
+
*
|
|
1975
|
+
* @example
|
|
1976
|
+
* ```ts
|
|
1977
|
+
* // Con objetos { nombre: 'Ana', correo: 'ana@...' }
|
|
1978
|
+
* optionLabelKey="nombre" // Mostrará 'Ana'
|
|
1979
|
+
* ```
|
|
1980
|
+
*/
|
|
1981
|
+
optionLabelKey?: keyof T | string;
|
|
1982
|
+
/**
|
|
1983
|
+
* Campo del objeto a usar como identificador único.
|
|
1984
|
+
*
|
|
1985
|
+
* Se usa para:
|
|
1986
|
+
* - Claves de React (keys)
|
|
1987
|
+
* - Comparar opciones seleccionadas
|
|
1988
|
+
* - Valor del input hidden
|
|
1989
|
+
*
|
|
1990
|
+
* @default 'id'
|
|
1991
|
+
*
|
|
1992
|
+
* @example
|
|
1993
|
+
* ```ts
|
|
1994
|
+
* // Con objetos { codigo: 'CO', nombre: 'Colombia' }
|
|
1995
|
+
* optionValueKey="codigo" // Usará 'CO' como identificador
|
|
1996
|
+
* ```
|
|
1997
|
+
*/
|
|
1998
|
+
optionValueKey?: keyof T | string;
|
|
1999
|
+
/**
|
|
2000
|
+
* Render personalizado para cada opción en el dropdown.
|
|
2001
|
+
*
|
|
2002
|
+
* @param option - La opción a renderizar
|
|
2003
|
+
* @param state - Estado actual de la opción
|
|
2004
|
+
* @returns ReactNode con el contenido personalizado
|
|
2005
|
+
*
|
|
2006
|
+
* @example
|
|
2007
|
+
* ```tsx
|
|
2008
|
+
* renderOption={(usuario, { isSelected, isActive }) => (
|
|
2009
|
+
* <div className={clsx({ selected: isSelected, active: isActive })}>
|
|
2010
|
+
* <Avatar src={usuario.avatar} />
|
|
2011
|
+
* <span>{usuario.nombre}</span>
|
|
2012
|
+
* {isSelected && <CheckIcon />}
|
|
2013
|
+
* </div>
|
|
2014
|
+
* )}
|
|
2015
|
+
* ```
|
|
2016
|
+
*/
|
|
2017
|
+
renderOption?: (option: T, state: {
|
|
2018
|
+
isSelected: boolean;
|
|
2019
|
+
isActive: boolean;
|
|
2020
|
+
}) => ReactNode;
|
|
2021
|
+
/**
|
|
2022
|
+
* Render personalizado del valor mostrado en el trigger.
|
|
2023
|
+
*
|
|
2024
|
+
* @param value - Valor actual (puede ser null, T, o T[])
|
|
2025
|
+
* @returns ReactNode con el contenido personalizado
|
|
2026
|
+
*
|
|
2027
|
+
* @example
|
|
2028
|
+
* ```tsx
|
|
2029
|
+
* renderValue={(usuario) => (
|
|
2030
|
+
* usuario ? (
|
|
2031
|
+
* <div className="selected-user">
|
|
2032
|
+
* <Avatar src={usuario.avatar} size="sm" />
|
|
2033
|
+
* {usuario.nombre}
|
|
2034
|
+
* </div>
|
|
2035
|
+
* ) : (
|
|
2036
|
+
* <span className="placeholder">Selecciona un usuario</span>
|
|
2037
|
+
* )
|
|
2038
|
+
* )}
|
|
2039
|
+
* ```
|
|
2040
|
+
*/
|
|
2041
|
+
renderValue?: (value: T | T[] | null) => ReactNode;
|
|
2042
|
+
/**
|
|
2043
|
+
* Variante visual del componente.
|
|
2044
|
+
*
|
|
2045
|
+
* - `bordered`: Borde visible (default)
|
|
2046
|
+
* - `faded`: Fondo gris, sin borde
|
|
2047
|
+
* - `underlined`: Solo borde inferior
|
|
2048
|
+
* - `ghost`: Transparente con sombra
|
|
2049
|
+
*
|
|
2050
|
+
* @default 'bordered'
|
|
2051
|
+
*/
|
|
2052
|
+
variant?: InputVariant;
|
|
2053
|
+
/**
|
|
2054
|
+
* Color del borde en estado focus.
|
|
2055
|
+
*
|
|
2056
|
+
* @default 'default'
|
|
2057
|
+
*/
|
|
2058
|
+
color?: InputColor;
|
|
2059
|
+
/**
|
|
2060
|
+
* Tamaño del componente.
|
|
2061
|
+
*
|
|
2062
|
+
* Afecta altura, padding y tamaño de fuente.
|
|
2063
|
+
* Usa las mismas variables CSS que InputText para consistencia.
|
|
2064
|
+
*
|
|
2065
|
+
* @default 'md'
|
|
2066
|
+
*/
|
|
2067
|
+
size?: InputSize;
|
|
2068
|
+
/**
|
|
2069
|
+
* Radio de borde del trigger.
|
|
2070
|
+
*
|
|
2071
|
+
* @default 'md'
|
|
2072
|
+
*/
|
|
2073
|
+
radius?: InputRadius;
|
|
2074
|
+
/**
|
|
2075
|
+
* Si true, el componente ocupa el 100% del ancho disponible.
|
|
2076
|
+
*
|
|
2077
|
+
* @default true
|
|
2078
|
+
*/
|
|
2079
|
+
fullWidth?: boolean;
|
|
2080
|
+
/**
|
|
2081
|
+
* Deshabilita todas las animaciones y transiciones.
|
|
2082
|
+
*
|
|
2083
|
+
* Útil para usuarios con preferencias de movimiento reducido
|
|
2084
|
+
* o para testing.
|
|
2085
|
+
*
|
|
2086
|
+
* @default false
|
|
2087
|
+
*/
|
|
2088
|
+
disableAnimation?: boolean;
|
|
2089
|
+
/**
|
|
2090
|
+
* Etiqueta del campo, mostrada arriba del trigger.
|
|
2091
|
+
*/
|
|
2092
|
+
label?: string;
|
|
2093
|
+
/**
|
|
2094
|
+
* Texto mostrado cuando no hay selección.
|
|
2095
|
+
*
|
|
2096
|
+
* @default 'Seleccione una opción'
|
|
2097
|
+
*/
|
|
2098
|
+
placeholder?: string;
|
|
2099
|
+
/**
|
|
2100
|
+
* Texto de ayuda mostrado debajo del campo.
|
|
2101
|
+
*
|
|
2102
|
+
* Se oculta cuando hay error de validación.
|
|
2103
|
+
*/
|
|
2104
|
+
description?: string;
|
|
2105
|
+
/**
|
|
2106
|
+
* Mensaje de error personalizado.
|
|
2107
|
+
*
|
|
2108
|
+
* Puede ser un string o una función que recibe el estado de validación.
|
|
2109
|
+
*
|
|
2110
|
+
* @example
|
|
2111
|
+
* ```tsx
|
|
2112
|
+
* // String simple
|
|
2113
|
+
* errorMessage="Campo requerido"
|
|
2114
|
+
*
|
|
2115
|
+
* // Función dinámica
|
|
2116
|
+
* errorMessage={({ invalido, mensaje }) =>
|
|
2117
|
+
* invalido ? `⚠️ ${mensaje}` : null
|
|
2118
|
+
* }
|
|
2119
|
+
* ```
|
|
2120
|
+
*/
|
|
2121
|
+
errorMessage?: string | ((validation: ResultadoValidacion) => ReactNode);
|
|
2122
|
+
/**
|
|
2123
|
+
* Texto cuando la lista de opciones está vacía.
|
|
2124
|
+
*
|
|
2125
|
+
* @default 'No hay opciones'
|
|
2126
|
+
*/
|
|
2127
|
+
emptyMessage?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* Texto cuando la búsqueda no encuentra resultados.
|
|
2130
|
+
*
|
|
2131
|
+
* @default 'Sin resultados'
|
|
2132
|
+
*/
|
|
2133
|
+
noResultsMessage?: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* Marca el campo como obligatorio.
|
|
2136
|
+
*
|
|
2137
|
+
* Muestra asterisco (*) junto al label.
|
|
2138
|
+
*
|
|
2139
|
+
* @default false
|
|
2140
|
+
*/
|
|
2141
|
+
isRequired?: boolean;
|
|
2142
|
+
/**
|
|
2143
|
+
* Deshabilita el componente.
|
|
2144
|
+
*
|
|
2145
|
+
* El trigger se vuelve no interactivo y semi-transparente.
|
|
2146
|
+
*
|
|
2147
|
+
* @default false
|
|
2148
|
+
*/
|
|
2149
|
+
isDisabled?: boolean;
|
|
2150
|
+
/**
|
|
2151
|
+
* Modo solo lectura.
|
|
2152
|
+
*
|
|
2153
|
+
* Similar a disabled pero semánticamente diferente:
|
|
2154
|
+
* el valor existe pero no se puede cambiar.
|
|
2155
|
+
*
|
|
2156
|
+
* @default false
|
|
2157
|
+
*/
|
|
2158
|
+
isReadOnly?: boolean;
|
|
2159
|
+
/**
|
|
2160
|
+
* Muestra indicador de carga (spinner).
|
|
2161
|
+
*
|
|
2162
|
+
* También deshabilita la interacción mientras carga.
|
|
2163
|
+
*
|
|
2164
|
+
* @default false
|
|
2165
|
+
*/
|
|
2166
|
+
isLoading?: boolean;
|
|
2167
|
+
/**
|
|
2168
|
+
* Muestra botón para limpiar la selección.
|
|
2169
|
+
*
|
|
2170
|
+
* @default true
|
|
2171
|
+
*/
|
|
2172
|
+
isClearable?: boolean;
|
|
2173
|
+
/**
|
|
2174
|
+
* Fuerza el estado inválido del campo.
|
|
2175
|
+
*
|
|
2176
|
+
* Tiene prioridad sobre validationState y validate.
|
|
2177
|
+
*/
|
|
2178
|
+
isInvalid?: boolean;
|
|
2179
|
+
/**
|
|
2180
|
+
* Estado de validación explícito.
|
|
2181
|
+
*
|
|
2182
|
+
* - `valid`: Muestra borde verde
|
|
2183
|
+
* - `invalid`: Muestra borde rojo y mensaje de error
|
|
2184
|
+
*/
|
|
2185
|
+
validationState?: 'valid' | 'invalid';
|
|
2186
|
+
/**
|
|
2187
|
+
* Habilita selección múltiple.
|
|
2188
|
+
*
|
|
2189
|
+
* El valor será un array de opciones.
|
|
2190
|
+
* Muestra chips para las seleccionadas.
|
|
2191
|
+
*
|
|
2192
|
+
* @default false
|
|
2193
|
+
*/
|
|
2194
|
+
isMultiple?: boolean;
|
|
2195
|
+
/**
|
|
2196
|
+
* Habilita campo de búsqueda.
|
|
2197
|
+
*
|
|
2198
|
+
* Permite filtrar las opciones escribiendo.
|
|
2199
|
+
*
|
|
2200
|
+
* @default false
|
|
2201
|
+
*/
|
|
2202
|
+
isSearchable?: boolean;
|
|
2203
|
+
/**
|
|
2204
|
+
* Habilita virtualización de la lista.
|
|
2205
|
+
*
|
|
2206
|
+
* Necesario para listas grandes (+500 opciones).
|
|
2207
|
+
* Solo renderiza los elementos visibles.
|
|
2208
|
+
*
|
|
2209
|
+
* @default false
|
|
2210
|
+
*/
|
|
2211
|
+
isVirtualized?: boolean;
|
|
2212
|
+
/**
|
|
2213
|
+
* Altura estimada de cada opción (en píxeles).
|
|
2214
|
+
*
|
|
2215
|
+
* Solo se usa cuando `isVirtualized` es true.
|
|
2216
|
+
* Ayuda al virtualizador a calcular el scroll.
|
|
2217
|
+
*
|
|
2218
|
+
* @default 36
|
|
2219
|
+
*/
|
|
2220
|
+
estimatedOptionHeight?: number;
|
|
2221
|
+
/**
|
|
2222
|
+
* Función de filtrado personalizada.
|
|
2223
|
+
*
|
|
2224
|
+
* Por defecto busca coincidencia en el label (case-insensitive).
|
|
2225
|
+
*
|
|
2226
|
+
* @param option - Opción a evaluar
|
|
2227
|
+
* @param searchValue - Texto de búsqueda actual
|
|
2228
|
+
* @returns true si la opción debe mostrarse
|
|
2229
|
+
*
|
|
2230
|
+
* @example
|
|
2231
|
+
* ```ts
|
|
2232
|
+
* // Buscar en múltiples campos
|
|
2233
|
+
* filterFn={(usuario, busqueda) =>
|
|
2234
|
+
* usuario.nombre.toLowerCase().includes(busqueda.toLowerCase()) ||
|
|
2235
|
+
* usuario.email.toLowerCase().includes(busqueda.toLowerCase())
|
|
2236
|
+
* }
|
|
2237
|
+
* ```
|
|
2238
|
+
*/
|
|
2239
|
+
filterFn?: (option: T, searchValue: string) => boolean;
|
|
2240
|
+
/**
|
|
2241
|
+
* Función de validación.
|
|
2242
|
+
*
|
|
2243
|
+
* Se ejecuta cada vez que cambia el valor.
|
|
2244
|
+
*
|
|
2245
|
+
* @param value - Valor actual a validar
|
|
2246
|
+
* @returns
|
|
2247
|
+
* - `true` o `null`: válido
|
|
2248
|
+
* - `string`: mensaje de error
|
|
2249
|
+
* - `{ message?: string }`: objeto con mensaje
|
|
2250
|
+
*
|
|
2251
|
+
* @example
|
|
2252
|
+
* ```ts
|
|
2253
|
+
* validate={(valor) => {
|
|
2254
|
+
* if (!valor) return 'Seleccione una opción';
|
|
2255
|
+
* if (valor.activo === false) return 'Esta opción no está disponible';
|
|
2256
|
+
* return true;
|
|
2257
|
+
* }}
|
|
2258
|
+
* ```
|
|
2259
|
+
*/
|
|
2260
|
+
validate?: (value: T | T[] | null) => boolean | string | {
|
|
101
2261
|
message?: string;
|
|
102
|
-
} |
|
|
2262
|
+
} | null | undefined;
|
|
2263
|
+
/** Callback al abrir el menú desplegable */
|
|
2264
|
+
onOpen?: () => void;
|
|
2265
|
+
/** Callback al cerrar el menú desplegable */
|
|
2266
|
+
onClose?: () => void;
|
|
2267
|
+
/**
|
|
2268
|
+
* Callback cuando cambia el texto de búsqueda.
|
|
2269
|
+
*
|
|
2270
|
+
* Útil para búsqueda en servidor (debounced).
|
|
2271
|
+
*
|
|
2272
|
+
* @param search - Texto de búsqueda actual
|
|
2273
|
+
*/
|
|
2274
|
+
onSearchChange?: (search: string) => void;
|
|
2275
|
+
/** Callback al limpiar la selección (botón X) */
|
|
2276
|
+
onClear?: () => void;
|
|
2277
|
+
/** Callback cuando el trigger recibe focus */
|
|
2278
|
+
onFocus?: () => void;
|
|
2279
|
+
/** Callback cuando el trigger pierde focus */
|
|
2280
|
+
onBlur?: () => void;
|
|
2281
|
+
/**
|
|
2282
|
+
* ID del elemento (para label y accesibilidad).
|
|
2283
|
+
*
|
|
2284
|
+
* Si no se proporciona, se genera automáticamente con useId().
|
|
2285
|
+
*/
|
|
2286
|
+
id?: string;
|
|
2287
|
+
/**
|
|
2288
|
+
* Nombre del campo para formularios HTML.
|
|
2289
|
+
*
|
|
2290
|
+
* Se crea un input hidden con este nombre y el valor seleccionado.
|
|
2291
|
+
*/
|
|
2292
|
+
name?: string;
|
|
2293
|
+
/**
|
|
2294
|
+
* Clase CSS adicional para el contenedor base.
|
|
2295
|
+
*/
|
|
2296
|
+
className?: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* Clases CSS para slots específicos.
|
|
2299
|
+
*
|
|
2300
|
+
* Permite personalizar cada parte del componente.
|
|
2301
|
+
*/
|
|
2302
|
+
classNames?: {
|
|
2303
|
+
/** Contenedor principal */
|
|
2304
|
+
base?: string;
|
|
2305
|
+
/** Etiqueta del campo */
|
|
2306
|
+
label?: string;
|
|
2307
|
+
/** Botón/trigger que abre el menú */
|
|
2308
|
+
trigger?: string;
|
|
2309
|
+
/** Área donde se muestra el valor seleccionado */
|
|
2310
|
+
value?: string;
|
|
2311
|
+
/** Botón de limpiar */
|
|
2312
|
+
clearButton?: string;
|
|
2313
|
+
/** Contenedor del menú desplegable */
|
|
2314
|
+
menu?: string;
|
|
2315
|
+
/** Cada opción individual */
|
|
2316
|
+
option?: string;
|
|
2317
|
+
/** Input de búsqueda */
|
|
2318
|
+
searchInput?: string;
|
|
2319
|
+
/** Texto de descripción */
|
|
2320
|
+
description?: string;
|
|
2321
|
+
/** Mensaje de error */
|
|
2322
|
+
errorMessage?: string;
|
|
2323
|
+
};
|
|
2324
|
+
/**
|
|
2325
|
+
* Contenido antes del valor (icono, prefijo, etc).
|
|
2326
|
+
*/
|
|
2327
|
+
startContent?: ReactNode;
|
|
2328
|
+
/**
|
|
2329
|
+
* Contenido después del valor (antes del chevron).
|
|
2330
|
+
*/
|
|
2331
|
+
endContent?: ReactNode;
|
|
2332
|
+
/**
|
|
2333
|
+
* Z-index del menú flotante.
|
|
2334
|
+
*
|
|
2335
|
+
* Por defecto usa `--z-popover` de las variables CSS.
|
|
2336
|
+
*/
|
|
2337
|
+
menuZIndex?: number;
|
|
2338
|
+
/**
|
|
2339
|
+
* Contenedor donde se renderiza el portal del menú.
|
|
2340
|
+
*
|
|
2341
|
+
* Por defecto se renderiza al final del `<body>`.
|
|
2342
|
+
*/
|
|
2343
|
+
portalContainer?: HTMLElement | null;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* Métodos expuestos vía ref del componente Select.
|
|
2348
|
+
*
|
|
2349
|
+
* @description
|
|
2350
|
+
* Permite control imperativo del componente.
|
|
2351
|
+
* Usar con `useRef<SelectRef>()`.
|
|
2352
|
+
*
|
|
2353
|
+
* @example
|
|
2354
|
+
* ```tsx
|
|
2355
|
+
* const selectRef = useRef<SelectRef>(null);
|
|
2356
|
+
*
|
|
2357
|
+
* // Abrir programáticamente
|
|
2358
|
+
* selectRef.current?.open();
|
|
2359
|
+
*
|
|
2360
|
+
* // Limpiar selección
|
|
2361
|
+
* selectRef.current?.clear();
|
|
2362
|
+
*
|
|
2363
|
+
* // Enfocar después de una acción
|
|
2364
|
+
* selectRef.current?.focus();
|
|
2365
|
+
* ```
|
|
2366
|
+
*/
|
|
2367
|
+
export declare interface SelectRef {
|
|
2368
|
+
/** Enfoca el trigger del select */
|
|
2369
|
+
focus: () => void;
|
|
2370
|
+
/** Quita el focus del trigger */
|
|
2371
|
+
blur: () => void;
|
|
2372
|
+
/** Abre el menú desplegable */
|
|
2373
|
+
open: () => void;
|
|
2374
|
+
/** Cierra el menú desplegable */
|
|
2375
|
+
close: () => void;
|
|
2376
|
+
/** Limpia la selección (null en simple, [] en múltiple) */
|
|
2377
|
+
clear: () => void;
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
declare type SinDatosProps = {
|
|
2381
|
+
alAgregarRegistro?: () => void;
|
|
2382
|
+
titulo?: string;
|
|
2383
|
+
descripcion?: string;
|
|
2384
|
+
etiquetaAccion?: string;
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
export declare function SonidoIcono(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* Componente principal de tabla de datos
|
|
2391
|
+
*
|
|
2392
|
+
* Características:
|
|
2393
|
+
* - Vista adaptativa: tabla tradicional en escritorio, cards en dispositivos móviles
|
|
2394
|
+
* - Búsqueda global con debounce
|
|
2395
|
+
* - Paginación automática
|
|
2396
|
+
* - Ordenamiento de columnas
|
|
2397
|
+
* - Acciones personalizables por fila
|
|
2398
|
+
* - Botones de filtros, actualizar y exportar Excel
|
|
2399
|
+
* - Visualización resumida de los filtros aplicados
|
|
2400
|
+
* - Acciones personalizables al seleccionar varias filas
|
|
2401
|
+
* - Textos personalizables cuando no hay datos
|
|
2402
|
+
*
|
|
2403
|
+
* @example
|
|
2404
|
+
* ```tsx
|
|
2405
|
+
* <TablaDatos
|
|
2406
|
+
* id="tabla-empleados"
|
|
2407
|
+
* data={empleados}
|
|
2408
|
+
* columns={[
|
|
2409
|
+
* { accessorKey: 'nombre', header: 'Nombre' },
|
|
2410
|
+
* { accessorKey: 'cargo', header: 'Cargo' },
|
|
2411
|
+
* ]}
|
|
2412
|
+
* controls={[
|
|
2413
|
+
* {
|
|
2414
|
+
* id: 'editar',
|
|
2415
|
+
* name: 'Editar',
|
|
2416
|
+
* icon: <IconoEditar />,
|
|
2417
|
+
* event: (empleado) => console.log('Editar', empleado),
|
|
2418
|
+
* },
|
|
2419
|
+
* ]}
|
|
2420
|
+
* filtros={{
|
|
2421
|
+
* filtrosAplicados: [{
|
|
2422
|
+
* id: 'cedula',
|
|
2423
|
+
* nombre: 'Cédula',
|
|
2424
|
+
* valor: '1234567890',
|
|
2425
|
+
* }],
|
|
2426
|
+
* abrirFiltros: () => setAbrirFiltros(true),
|
|
2427
|
+
* }}
|
|
2428
|
+
* primerasColumnas={['nombre', 'cargo']}
|
|
2429
|
+
* loading={false}
|
|
2430
|
+
* selectorFilas={[
|
|
2431
|
+
* {
|
|
2432
|
+
* id: 'descargar-reporte',
|
|
2433
|
+
* componente(filas) {
|
|
2434
|
+
* return (
|
|
2435
|
+
* <Boton
|
|
2436
|
+
* variant="light"
|
|
2437
|
+
* color="default"
|
|
2438
|
+
* size="md"
|
|
2439
|
+
* radius="md"
|
|
2440
|
+
* onClick={() => descargarReportes(filas.map(f => f.id))}
|
|
2441
|
+
* >
|
|
2442
|
+
* <IconoPdf /> Descargar reporte
|
|
2443
|
+
* </Boton>
|
|
2444
|
+
* );
|
|
2445
|
+
* },
|
|
2446
|
+
* },
|
|
2447
|
+
* {
|
|
2448
|
+
* id: 'eliminar',
|
|
2449
|
+
* componente(filas) {
|
|
2450
|
+
* return (
|
|
2451
|
+
* <Boton
|
|
2452
|
+
* variant="light"
|
|
2453
|
+
* color="danger"
|
|
2454
|
+
* size="md"
|
|
2455
|
+
* radius="md"
|
|
2456
|
+
* onClick={() => eliminarRegistros(filas.map(f => f.id))}
|
|
2457
|
+
* >
|
|
2458
|
+
* <IconoEliminar /> Eliminar
|
|
2459
|
+
* </Boton>
|
|
2460
|
+
* );
|
|
2461
|
+
* },
|
|
2462
|
+
* },
|
|
2463
|
+
* ]}
|
|
2464
|
+
* />
|
|
2465
|
+
* ```
|
|
2466
|
+
*/
|
|
2467
|
+
export declare function TablaDatos<TData extends object>({ id, ...providerProps }: TablaDatosProps<TData>): JSX.Element;
|
|
2468
|
+
|
|
2469
|
+
export declare type TablaDatosProps<TData extends object> = {
|
|
2470
|
+
/** Identificador único de la tabla */
|
|
2471
|
+
id: string;
|
|
2472
|
+
/** Datos a mostrar en la tabla */
|
|
2473
|
+
data: TData[];
|
|
2474
|
+
/** Definición de columnas usando TanStack Table */
|
|
2475
|
+
columns: ColumnDef<TData>[];
|
|
2476
|
+
/** Controles/acciones disponibles por fila */
|
|
2477
|
+
controls?: Control<TData>[];
|
|
2478
|
+
/** Configuración de los filtros */
|
|
2479
|
+
filtros?: {
|
|
2480
|
+
/** Callback para abrir panel de filtros */
|
|
2481
|
+
abrirFiltros?: () => void;
|
|
2482
|
+
/** Filtros aplicados */
|
|
2483
|
+
filtrosAplicados?: FiltrosAplicadosType[];
|
|
2484
|
+
};
|
|
2485
|
+
/** Callback para descargar Excel */
|
|
2486
|
+
descargarExcel?: () => void;
|
|
2487
|
+
/** Indica si la tabla está cargando */
|
|
2488
|
+
loading?: boolean;
|
|
2489
|
+
/** Configuración del botón actualizar */
|
|
2490
|
+
actualizarTabla?: ActualizarTablaConfig;
|
|
2491
|
+
/** Llaves de las primeras columnas para vista móvil (máximo 2) */
|
|
2492
|
+
primerasColumnas: (keyof TData)[];
|
|
2493
|
+
/** Configuración del selector de filas con acciones masivas, se muestra en la tabla cuando se selecciona al menos una fila */
|
|
2494
|
+
selectorFilas?: AccionFila<TData>[];
|
|
2495
|
+
/** Configuración del estado "sin datos" */
|
|
2496
|
+
sinDatosProps?: SinDatosProps;
|
|
2497
|
+
};
|
|
2498
|
+
|
|
2499
|
+
export declare const TextArea: ForwardRefExoticComponent< {
|
|
2500
|
+
variant?: InputVariant;
|
|
2501
|
+
color?: InputColor;
|
|
2502
|
+
size?: InputSize;
|
|
2503
|
+
radius?: InputRadius;
|
|
2504
|
+
label?: ReactNode;
|
|
2505
|
+
placeholder?: string;
|
|
2506
|
+
value?: string;
|
|
2507
|
+
defaultValue?: string;
|
|
2508
|
+
description?: ReactNode;
|
|
2509
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
2510
|
+
isRequired?: boolean;
|
|
2511
|
+
isReadOnly?: boolean;
|
|
2512
|
+
isDisabled?: boolean;
|
|
2513
|
+
isClearable?: boolean;
|
|
2514
|
+
isInvalid?: boolean;
|
|
2515
|
+
validationState?: "valid" | "invalid";
|
|
2516
|
+
validate?: (value: string) => ValidationResult;
|
|
2517
|
+
fullWidth?: boolean;
|
|
2518
|
+
disableAnimation?: boolean;
|
|
2519
|
+
minRows?: number;
|
|
2520
|
+
maxRows?: number;
|
|
2521
|
+
disableAutosize?: boolean;
|
|
2522
|
+
hideVoiceActions?: boolean;
|
|
2523
|
+
classNames?: {
|
|
2524
|
+
base?: string;
|
|
2525
|
+
label?: string;
|
|
2526
|
+
inputWrapper?: string;
|
|
2527
|
+
input?: string;
|
|
2528
|
+
actions?: string;
|
|
2529
|
+
description?: string;
|
|
2530
|
+
errorMessage?: string;
|
|
2531
|
+
};
|
|
2532
|
+
onChange?: (value: string) => void;
|
|
2533
|
+
onClear?: () => void;
|
|
2534
|
+
children?: ReactNode;
|
|
2535
|
+
} & {
|
|
2536
|
+
form?: string | undefined | undefined;
|
|
2537
|
+
slot?: string | undefined | undefined;
|
|
2538
|
+
style?: CSSProperties | undefined;
|
|
2539
|
+
title?: string | undefined | undefined;
|
|
2540
|
+
className?: string | undefined | undefined;
|
|
2541
|
+
onClick?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2542
|
+
"aria-label"?: string | undefined | undefined;
|
|
2543
|
+
disabled?: boolean | undefined | undefined;
|
|
2544
|
+
name?: string | undefined | undefined;
|
|
2545
|
+
value?: string | number | readonly string[] | undefined;
|
|
2546
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
2547
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
2548
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
2549
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
2550
|
+
accessKey?: string | undefined | undefined;
|
|
2551
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
2552
|
+
autoFocus?: boolean | undefined | undefined;
|
|
2553
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
2554
|
+
contextMenu?: string | undefined | undefined;
|
|
2555
|
+
dir?: string | undefined | undefined;
|
|
2556
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
2557
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
2558
|
+
hidden?: boolean | undefined | undefined;
|
|
2559
|
+
id?: string | undefined | undefined;
|
|
2560
|
+
lang?: string | undefined | undefined;
|
|
2561
|
+
nonce?: string | undefined | undefined;
|
|
2562
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
2563
|
+
tabIndex?: number | undefined | undefined;
|
|
2564
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
2565
|
+
radioGroup?: string | undefined | undefined;
|
|
2566
|
+
role?: AriaRole | undefined;
|
|
2567
|
+
about?: string | undefined | undefined;
|
|
2568
|
+
content?: string | undefined | undefined;
|
|
2569
|
+
datatype?: string | undefined | undefined;
|
|
2570
|
+
inlist?: any;
|
|
2571
|
+
prefix?: string | undefined | undefined;
|
|
2572
|
+
property?: string | undefined | undefined;
|
|
2573
|
+
rel?: string | undefined | undefined;
|
|
2574
|
+
resource?: string | undefined | undefined;
|
|
2575
|
+
rev?: string | undefined | undefined;
|
|
2576
|
+
typeof?: string | undefined | undefined;
|
|
2577
|
+
vocab?: string | undefined | undefined;
|
|
2578
|
+
autoCorrect?: string | undefined | undefined;
|
|
2579
|
+
autoSave?: string | undefined | undefined;
|
|
2580
|
+
itemProp?: string | undefined | undefined;
|
|
2581
|
+
itemScope?: boolean | undefined | undefined;
|
|
2582
|
+
itemType?: string | undefined | undefined;
|
|
2583
|
+
itemID?: string | undefined | undefined;
|
|
2584
|
+
itemRef?: string | undefined | undefined;
|
|
2585
|
+
results?: number | undefined | undefined;
|
|
2586
|
+
security?: string | undefined | undefined;
|
|
2587
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
2588
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
2589
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
2590
|
+
popoverTarget?: string | undefined | undefined;
|
|
2591
|
+
inert?: boolean | undefined | undefined;
|
|
2592
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
2593
|
+
is?: string | undefined | undefined;
|
|
2594
|
+
exportparts?: string | undefined | undefined;
|
|
2595
|
+
part?: string | undefined | undefined;
|
|
2596
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
2597
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
2598
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
2599
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
2600
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
2601
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
2602
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
2603
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
2604
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
2605
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
2606
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
2607
|
+
"aria-controls"?: string | undefined | undefined;
|
|
2608
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
2609
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
2610
|
+
"aria-description"?: string | undefined | undefined;
|
|
2611
|
+
"aria-details"?: string | undefined | undefined;
|
|
2612
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
2613
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
2614
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
2615
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
2616
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
2617
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
2618
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
2619
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
2620
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
2621
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
2622
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
2623
|
+
"aria-level"?: number | undefined | undefined;
|
|
2624
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
2625
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
2626
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
2627
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
2628
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
2629
|
+
"aria-owns"?: string | undefined | undefined;
|
|
2630
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
2631
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
2632
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
2633
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
2634
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
2635
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
2636
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
2637
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
2638
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
2639
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
2640
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
2641
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
2642
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
2643
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
2644
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
2645
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
2646
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
2647
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
2648
|
+
dangerouslySetInnerHTML?: {
|
|
2649
|
+
__html: string | TrustedHTML;
|
|
2650
|
+
} | undefined | undefined;
|
|
2651
|
+
onCopy?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2652
|
+
onCopyCapture?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2653
|
+
onCut?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2654
|
+
onCutCapture?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2655
|
+
onPaste?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2656
|
+
onPasteCapture?: ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2657
|
+
onCompositionEnd?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2658
|
+
onCompositionEndCapture?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2659
|
+
onCompositionStart?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2660
|
+
onCompositionStartCapture?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2661
|
+
onCompositionUpdate?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2662
|
+
onCompositionUpdateCapture?: CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2663
|
+
onFocus?: FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
2664
|
+
onFocusCapture?: FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
2665
|
+
onBlur?: FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
2666
|
+
onBlurCapture?: FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
2667
|
+
onChangeCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2668
|
+
onBeforeInput?: InputEventHandler<HTMLTextAreaElement> | undefined;
|
|
2669
|
+
onBeforeInputCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2670
|
+
onInput?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2671
|
+
onInputCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2672
|
+
onReset?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2673
|
+
onResetCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2674
|
+
onSubmit?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2675
|
+
onSubmitCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2676
|
+
onInvalid?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2677
|
+
onInvalidCapture?: FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
2678
|
+
onLoad?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2679
|
+
onLoadCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2680
|
+
onError?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2681
|
+
onErrorCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2682
|
+
onKeyDown?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2683
|
+
onKeyDownCapture?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2684
|
+
onKeyPress?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2685
|
+
onKeyPressCapture?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2686
|
+
onKeyUp?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2687
|
+
onKeyUpCapture?: KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
2688
|
+
onAbort?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2689
|
+
onAbortCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2690
|
+
onCanPlay?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2691
|
+
onCanPlayCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2692
|
+
onCanPlayThrough?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2693
|
+
onCanPlayThroughCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2694
|
+
onDurationChange?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2695
|
+
onDurationChangeCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2696
|
+
onEmptied?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2697
|
+
onEmptiedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2698
|
+
onEncrypted?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2699
|
+
onEncryptedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2700
|
+
onEnded?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2701
|
+
onEndedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2702
|
+
onLoadedData?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2703
|
+
onLoadedDataCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2704
|
+
onLoadedMetadata?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2705
|
+
onLoadedMetadataCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2706
|
+
onLoadStart?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2707
|
+
onLoadStartCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2708
|
+
onPause?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2709
|
+
onPauseCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2710
|
+
onPlay?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2711
|
+
onPlayCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2712
|
+
onPlaying?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2713
|
+
onPlayingCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2714
|
+
onProgress?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2715
|
+
onProgressCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2716
|
+
onRateChange?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2717
|
+
onRateChangeCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2718
|
+
onSeeked?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2719
|
+
onSeekedCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2720
|
+
onSeeking?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2721
|
+
onSeekingCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2722
|
+
onStalled?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2723
|
+
onStalledCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2724
|
+
onSuspend?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2725
|
+
onSuspendCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2726
|
+
onTimeUpdate?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2727
|
+
onTimeUpdateCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2728
|
+
onVolumeChange?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2729
|
+
onVolumeChangeCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2730
|
+
onWaiting?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2731
|
+
onWaitingCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2732
|
+
onAuxClick?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2733
|
+
onAuxClickCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2734
|
+
onClickCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2735
|
+
onContextMenu?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2736
|
+
onContextMenuCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2737
|
+
onDoubleClick?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2738
|
+
onDoubleClickCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2739
|
+
onDrag?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2740
|
+
onDragCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2741
|
+
onDragEnd?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2742
|
+
onDragEndCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2743
|
+
onDragEnter?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2744
|
+
onDragEnterCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2745
|
+
onDragExit?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2746
|
+
onDragExitCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2747
|
+
onDragLeave?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2748
|
+
onDragLeaveCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2749
|
+
onDragOver?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2750
|
+
onDragOverCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2751
|
+
onDragStart?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2752
|
+
onDragStartCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2753
|
+
onDrop?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2754
|
+
onDropCapture?: DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
2755
|
+
onMouseDown?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2756
|
+
onMouseDownCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2757
|
+
onMouseEnter?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2758
|
+
onMouseLeave?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2759
|
+
onMouseMove?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2760
|
+
onMouseMoveCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2761
|
+
onMouseOut?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2762
|
+
onMouseOutCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2763
|
+
onMouseOver?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2764
|
+
onMouseOverCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2765
|
+
onMouseUp?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2766
|
+
onMouseUpCapture?: MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
2767
|
+
onSelect?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2768
|
+
onSelectCapture?: ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
2769
|
+
onTouchCancel?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2770
|
+
onTouchCancelCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2771
|
+
onTouchEnd?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2772
|
+
onTouchEndCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2773
|
+
onTouchMove?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2774
|
+
onTouchMoveCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2775
|
+
onTouchStart?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2776
|
+
onTouchStartCapture?: TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
2777
|
+
onPointerDown?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2778
|
+
onPointerDownCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2779
|
+
onPointerMove?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2780
|
+
onPointerMoveCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2781
|
+
onPointerUp?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2782
|
+
onPointerUpCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2783
|
+
onPointerCancel?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2784
|
+
onPointerCancelCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2785
|
+
onPointerEnter?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2786
|
+
onPointerLeave?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2787
|
+
onPointerOver?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2788
|
+
onPointerOverCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2789
|
+
onPointerOut?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2790
|
+
onPointerOutCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2791
|
+
onGotPointerCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2792
|
+
onGotPointerCaptureCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2793
|
+
onLostPointerCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2794
|
+
onLostPointerCaptureCapture?: PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
2795
|
+
onScroll?: UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
2796
|
+
onScrollCapture?: UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
2797
|
+
onScrollEnd?: UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
2798
|
+
onScrollEndCapture?: UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
2799
|
+
onWheel?: WheelEventHandler<HTMLTextAreaElement> | undefined;
|
|
2800
|
+
onWheelCapture?: WheelEventHandler<HTMLTextAreaElement> | undefined;
|
|
2801
|
+
onAnimationStart?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
2802
|
+
onAnimationStartCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
2803
|
+
onAnimationEnd?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
2804
|
+
onAnimationEndCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
2805
|
+
onAnimationIteration?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
2806
|
+
onAnimationIterationCapture?: AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
2807
|
+
onToggle?: ToggleEventHandler<HTMLTextAreaElement> | undefined;
|
|
2808
|
+
onBeforeToggle?: ToggleEventHandler<HTMLTextAreaElement> | undefined;
|
|
2809
|
+
onTransitionCancel?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2810
|
+
onTransitionCancelCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2811
|
+
onTransitionEnd?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2812
|
+
onTransitionEndCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2813
|
+
onTransitionRun?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2814
|
+
onTransitionRunCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2815
|
+
onTransitionStart?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2816
|
+
onTransitionStartCapture?: TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
2817
|
+
wrap?: string | undefined | undefined;
|
|
2818
|
+
autoComplete?: string | undefined | undefined;
|
|
2819
|
+
maxLength?: number | undefined | undefined;
|
|
2820
|
+
minLength?: number | undefined | undefined;
|
|
2821
|
+
placeholder?: string | undefined | undefined;
|
|
2822
|
+
readOnly?: boolean | undefined | undefined;
|
|
2823
|
+
required?: boolean | undefined | undefined;
|
|
2824
|
+
cols?: number | undefined | undefined;
|
|
2825
|
+
dirName?: string | undefined | undefined;
|
|
2826
|
+
rows?: number | undefined | undefined;
|
|
2827
|
+
} & RefAttributes<HTMLTextAreaElement>>;
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* Props del componente TextArea
|
|
2831
|
+
* @description Área de texto con soporte para dictado por voz, lectura TTS, autosize y validación
|
|
2832
|
+
*/
|
|
2833
|
+
export declare type TextAreaProps = {
|
|
2834
|
+
/** Variante visual del textarea */
|
|
2835
|
+
variant?: InputVariant;
|
|
2836
|
+
/** Color temático del textarea (afecta el borde en focus) */
|
|
2837
|
+
color?: InputColor;
|
|
2838
|
+
/** Tamaño del textarea */
|
|
2839
|
+
size?: InputSize;
|
|
2840
|
+
/** Radio de bordes del textarea */
|
|
2841
|
+
radius?: InputRadius;
|
|
2842
|
+
/** Etiqueta del campo */
|
|
2843
|
+
label?: ReactNode;
|
|
2844
|
+
/** Placeholder del textarea */
|
|
2845
|
+
placeholder?: string;
|
|
2846
|
+
/** Valor controlado del textarea */
|
|
2847
|
+
value?: string;
|
|
2848
|
+
/** Valor inicial no controlado */
|
|
2849
|
+
defaultValue?: string;
|
|
2850
|
+
/** Descripción o texto de ayuda */
|
|
2851
|
+
description?: ReactNode;
|
|
2852
|
+
/** Mensaje de error personalizado */
|
|
2853
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
2854
|
+
/** Si el campo es requerido */
|
|
2855
|
+
isRequired?: boolean;
|
|
2856
|
+
/** Si el campo es de solo lectura */
|
|
2857
|
+
isReadOnly?: boolean;
|
|
2858
|
+
/** Si el campo está deshabilitado */
|
|
2859
|
+
isDisabled?: boolean;
|
|
2860
|
+
/** Si muestra botón para limpiar el campo */
|
|
2861
|
+
isClearable?: boolean;
|
|
2862
|
+
/** Si el campo es inválido (override manual) */
|
|
2863
|
+
isInvalid?: boolean;
|
|
2864
|
+
/** Estado de validación manual */
|
|
2865
|
+
validationState?: 'valid' | 'invalid';
|
|
2866
|
+
/** Función de validación personalizada */
|
|
2867
|
+
validate?: (value: string) => ValidationResult;
|
|
2868
|
+
/** Si el textarea ocupa todo el ancho */
|
|
2869
|
+
fullWidth?: boolean;
|
|
2870
|
+
/** Deshabilita animaciones */
|
|
2871
|
+
disableAnimation?: boolean;
|
|
2872
|
+
/** Número mínimo de filas visibles */
|
|
103
2873
|
minRows?: number;
|
|
2874
|
+
/** Número máximo de filas antes de mostrar scroll */
|
|
104
2875
|
maxRows?: number;
|
|
2876
|
+
/** Deshabilita el redimensionado automático */
|
|
105
2877
|
disableAutosize?: boolean;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
2878
|
+
/** Oculta las acciones de voz (TTS y dictado) */
|
|
2879
|
+
hideVoiceActions?: boolean;
|
|
2880
|
+
/** Clases CSS personalizadas para cada parte */
|
|
2881
|
+
classNames?: {
|
|
2882
|
+
base?: string;
|
|
2883
|
+
label?: string;
|
|
2884
|
+
inputWrapper?: string;
|
|
2885
|
+
input?: string;
|
|
2886
|
+
actions?: string;
|
|
2887
|
+
description?: string;
|
|
2888
|
+
errorMessage?: string;
|
|
2889
|
+
};
|
|
2890
|
+
/** Callback cuando cambia el valor */
|
|
111
2891
|
onChange?: (value: string) => void;
|
|
2892
|
+
/** Callback cuando se limpia el campo */
|
|
112
2893
|
onClear?: () => void;
|
|
113
|
-
|
|
2894
|
+
/** Contenido adicional (children) */
|
|
2895
|
+
children?: ReactNode;
|
|
2896
|
+
} & NativeTextareaProps;
|
|
114
2897
|
|
|
115
|
-
declare
|
|
2898
|
+
export declare function Transicion({ mostrar, children, tipo, className, ...resto }: TransicionProps): JSX.Element | null;
|
|
2899
|
+
|
|
2900
|
+
export declare type TransicionProps = {
|
|
2901
|
+
mostrar: boolean;
|
|
2902
|
+
children: default_2.ReactNode;
|
|
2903
|
+
} & VariantProps<typeof transicionVariants> & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
2904
|
+
|
|
2905
|
+
declare const transicionVariants: (props?: ({
|
|
2906
|
+
tipo?: "desvanecerDeslizar" | "escalar" | null | undefined;
|
|
2907
|
+
} & ClassProp) | undefined) => string;
|
|
2908
|
+
|
|
2909
|
+
export declare function useReconocimientoVoz({ value, onChange, isDisabled, isReadOnly, onDictadoCompleto, idioma, }: Props): {
|
|
2910
|
+
puedeHablar: boolean;
|
|
2911
|
+
puedeEscuchar: boolean;
|
|
2912
|
+
hablando: boolean;
|
|
2913
|
+
escuchando: boolean;
|
|
2914
|
+
errorDictado: string | null;
|
|
2915
|
+
escuchar: () => void;
|
|
2916
|
+
detenerHablar: () => void;
|
|
2917
|
+
dictar: () => void;
|
|
2918
|
+
detenerDictado: () => void;
|
|
2919
|
+
};
|
|
116
2920
|
|
|
117
|
-
declare type
|
|
2921
|
+
export declare type ValidationResult = boolean | string | {
|
|
2922
|
+
message?: string;
|
|
2923
|
+
} | null | undefined;
|
|
118
2924
|
|
|
119
2925
|
export { }
|