corekit-ui 0.1.21 → 0.1.24

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