corekit-ui 0.1.14 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animations/Transiciones.d.ts +9 -0
- package/dist/animations/index.d.ts +1 -0
- package/dist/badge/Badge.d.ts +3 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/types.d.ts +62 -0
- package/dist/boton/Boton.d.ts +2 -0
- package/dist/boton/index.d.ts +2 -0
- package/dist/boton/typesButton.d.ts +35 -0
- package/dist/checkbox/Checkbox.d.ts +25 -0
- package/dist/checkbox/CheckboxContext.d.ts +3 -0
- package/dist/checkbox/CheckboxGroup.d.ts +11 -0
- package/dist/checkbox/index.d.ts +4 -0
- package/dist/checkbox/types.d.ts +108 -0
- package/dist/corekit-ui.css +1 -1
- package/dist/drawer/Drawer.d.ts +2 -0
- package/dist/drawer/index.d.ts +2 -0
- package/dist/drawer/types.d.ts +140 -0
- package/dist/dropdown/ContextMenu.d.ts +12 -0
- package/dist/dropdown/DropdownContext.d.ts +29 -0
- package/dist/dropdown/DropdownMenu.d.ts +3 -0
- package/dist/dropdown/MenuItem.d.ts +8 -0
- package/dist/dropdown/Submenu.d.ts +23 -0
- package/dist/dropdown/index.d.ts +11 -0
- package/dist/dropdown/types.d.ts +168 -0
- package/dist/firma_manual/FirmaManual.d.ts +3 -0
- package/dist/firma_manual/Iconografia.d.ts +16 -0
- package/dist/firma_manual/TypesFirma.d.ts +22 -0
- package/dist/firma_manual/index.d.ts +2 -0
- package/dist/firma_manual/useFirmaLogica.d.ts +10 -0
- package/dist/hablar_escuchar/BadgeVoz.d.ts +6 -0
- package/dist/hablar_escuchar/Iconografia.d.ts +10 -0
- package/dist/hablar_escuchar/index.d.ts +3 -0
- package/dist/hablar_escuchar/useReconocimientoVoz.d.ts +21 -0
- package/dist/index.d.ts +21 -3744
- package/dist/index.js +5818 -5021
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/index.umd.cjs.map +1 -1
- package/dist/input_date/InputDate.d.ts +342 -0
- package/dist/input_date/funciones.d.ts +27 -0
- package/dist/input_date/index.d.ts +3 -0
- package/dist/input_date/types.d.ts +70 -0
- package/dist/input_numeric/Iconografia.d.ts +5 -0
- package/dist/input_numeric/InputNumeric.d.ts +353 -0
- package/dist/input_numeric/funciones.d.ts +64 -0
- package/dist/input_numeric/index.d.ts +3 -0
- package/dist/input_numeric/types.d.ts +96 -0
- package/dist/input_text/Iconografia.d.ts +9 -0
- package/dist/input_text/InputText.d.ts +347 -0
- package/dist/input_text/index.d.ts +2 -0
- package/dist/input_text/types.d.ts +77 -0
- package/dist/input_types_compartidos/index.d.ts +1 -0
- package/dist/input_types_compartidos/types.d.ts +11 -0
- package/dist/modal/Modal.d.ts +2 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/types.d.ts +115 -0
- package/dist/modal_stack/ModalStack.d.ts +14 -0
- package/dist/modal_stack/index.d.ts +2 -0
- package/dist/panel_filtros/Iconografia.d.ts +5 -0
- package/dist/panel_filtros/PanelFiltros.d.ts +49 -0
- package/dist/panel_filtros/index.d.ts +3 -0
- package/dist/radio/Radio.d.ts +16 -0
- package/dist/radio/RadioContext.d.ts +3 -0
- package/dist/radio/RadioGroup.d.ts +11 -0
- package/dist/radio/index.d.ts +3 -0
- package/dist/radio/types.d.ts +195 -0
- package/dist/select/Iconografia.d.ts +10 -0
- package/dist/select/Select.d.ts +42 -0
- package/dist/select/SelectBase.d.ts +17 -0
- package/dist/select/SelectNativo.d.ts +57 -0
- package/dist/select/Types.d.ts +629 -0
- package/dist/select/funciones.d.ts +244 -0
- package/dist/select/index.d.ts +4 -0
- package/dist/tabla_datos/TablaDatos.d.ts +80 -0
- package/dist/tabla_datos/components/Iconografia.d.ts +17 -0
- package/dist/tabla_datos/components/TablaCards.d.ts +1 -0
- package/dist/tabla_datos/components/TablaEscritorio.d.ts +1 -0
- package/dist/tabla_datos/components/configuraciones/ConfigColumnas.d.ts +1 -0
- package/dist/tabla_datos/components/configuraciones/ConfigEncabezado.d.ts +6 -0
- package/dist/tabla_datos/components/configuraciones/ConfigFilas.d.ts +1 -0
- package/dist/tabla_datos/components/configuraciones/ConfigOpciones.d.ts +6 -0
- package/dist/tabla_datos/components/configuraciones/MenuConfiguraciones.d.ts +1 -0
- package/dist/tabla_datos/components/skeletons/SkeletonCargando.d.ts +4 -0
- package/dist/tabla_datos/components/skeletons/SkeletonCargandoCards.d.ts +2 -0
- package/dist/tabla_datos/components/tabla/BarraHerramientas.d.ts +1 -0
- package/dist/tabla_datos/components/tabla/BarraSeleccion.d.ts +9 -0
- package/dist/tabla_datos/components/tabla/Paginacion.d.ts +1 -0
- package/dist/tabla_datos/components/tabla/SinDatos.d.ts +1 -0
- package/dist/tabla_datos/components/tabla/tabla_cards/AccionesCards.d.ts +3 -0
- package/dist/tabla_datos/components/tabla/tabla_cards/ContenidoCards.d.ts +3 -0
- package/dist/tabla_datos/components/tabla/tabla_cards/EncabezadoCards.d.ts +3 -0
- package/dist/tabla_datos/constantes/ConstGenerales.d.ts +18 -0
- package/dist/tabla_datos/context/ContextTypes.d.ts +23 -0
- package/dist/tabla_datos/context/TablaDatosContext.d.ts +3 -0
- package/dist/tabla_datos/context/hooks.d.ts +10 -0
- package/dist/tabla_datos/hooks/useClickOutside.d.ts +8 -0
- package/dist/tabla_datos/hooks/useEscapeKey.d.ts +1 -0
- package/dist/tabla_datos/hooks/usePopoverPosition.d.ts +15 -0
- package/dist/tabla_datos/hooks/useScrollLock.d.ts +1 -0
- package/dist/tabla_datos/index.d.ts +5 -0
- package/dist/tabla_datos/types/TablaTypes.d.ts +85 -0
- package/dist/tabla_datos/types/tanstack-table.d.ts +8 -0
- package/dist/tabla_datos/utils/FuncionesColumnas.d.ts +9 -0
- package/dist/tabla_datos/utils/FuncionesPaginacion.d.ts +12 -0
- package/dist/tabla_datos/utils/FuncionesTabla.d.ts +54 -0
- package/dist/text_area/Iconografia.d.ts +6 -0
- package/dist/text_area/TextArea.d.ts +333 -0
- package/dist/text_area/index.d.ts +2 -0
- package/dist/text_area/types.d.ts +76 -0
- package/dist/texts/Texts.d.ts +19 -0
- package/dist/toggle/Toggle.d.ts +21 -0
- package/dist/toggle/index.d.ts +2 -0
- package/dist/toggle/types.d.ts +90 -0
- package/dist/tooltip/Tooltip.d.ts +2 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/types.d.ts +83 -0
- package/package.json +23 -31
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Row, SortDirection, Table } from '@tanstack/react-table';
|
|
2
|
+
import { FiltrosAplicadosType } from '../types/TablaTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Obtiene el indicador visual de ordenamiento (↑ o ↓)
|
|
5
|
+
*/
|
|
6
|
+
export declare function obtenerIndicadorOrden(direccion: false | SortDirection): string | null;
|
|
7
|
+
/**
|
|
8
|
+
* Obtiene la etiqueta de un encabezado de columna
|
|
9
|
+
*/
|
|
10
|
+
export declare function obtenerEtiquetaEncabezado<TData>(idColumna: string, tabla: Table<TData>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Renderiza una celda si está visible en la fila
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderizarCeldaSiVisible<TData>(fila: Row<TData>, idColumna: string): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Verifica si una columna está visible en la fila
|
|
17
|
+
*/
|
|
18
|
+
export declare function esColumnaVisible<TData>(fila: Row<TData>, idColumna?: string): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Obtiene las columnas restantes excluyendo las destacadas y acciones
|
|
21
|
+
*/
|
|
22
|
+
export declare function obtenerColumnasRestantes<TData>(fila: Row<TData>, idPrimera?: string, idSegunda?: string): import('@tanstack/react-table').Cell<TData, unknown>[];
|
|
23
|
+
/**
|
|
24
|
+
* Obtiene el texto de los filtros aplicados
|
|
25
|
+
*/
|
|
26
|
+
export declare function obtenerTextoFiltros(filtros: FiltrosAplicadosType[], totalFiltros: number): string;
|
|
27
|
+
/**
|
|
28
|
+
* Capitaliza la primera letra de una cadena de texto
|
|
29
|
+
*/
|
|
30
|
+
export declare function capitalizarPrimeraLetra(str: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Normaliza un texto eliminando tildes/diacríticos.
|
|
33
|
+
* Útil para búsquedas que ignoren acentos.
|
|
34
|
+
* @param texto - Texto a normalizar
|
|
35
|
+
* @returns Texto sin tildes en minúsculas
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* normalizarTexto('Confirmación') // 'confirmacion'
|
|
40
|
+
* normalizarTexto('México') // 'mexico'
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function normalizarTexto(texto: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* Función de filtro global personalizada que ignora tildes/acentos.
|
|
46
|
+
* Compatible con @tanstack/react-table globalFilterFn.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* // En useReactTable:
|
|
51
|
+
* globalFilterFn: filtroGlobalSinTildes
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare function filtroGlobalSinTildes<TData>(row: Row<TData>, columnId: string, filterValue: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { MicrofonoIcono as IconoMicrofono, SonidoIcono as IconoSonido, GrabacionIcono as IconoGrabando, } from '../hablar_escuchar/Iconografia';
|
|
2
|
+
type IconoProps = {
|
|
3
|
+
size?: string | number;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function IconoCerrar({ size, className }: IconoProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { ResultadoValidacion } from './types';
|
|
2
|
+
declare const TextArea: import('react').ForwardRefExoticComponent<{
|
|
3
|
+
variant?: import('./types').InputVariant;
|
|
4
|
+
color?: import('./types').InputColor;
|
|
5
|
+
size?: import('./types').InputSize;
|
|
6
|
+
radius?: import('./types').InputRadius;
|
|
7
|
+
label?: import('react').ReactNode;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
description?: import('react').ReactNode;
|
|
12
|
+
errorMessage?: import('react').ReactNode | ((v: ResultadoValidacion) => import('react').ReactNode);
|
|
13
|
+
isRequired?: boolean;
|
|
14
|
+
isReadOnly?: boolean;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
isClearable?: boolean;
|
|
17
|
+
isInvalid?: boolean;
|
|
18
|
+
validationState?: "valid" | "invalid";
|
|
19
|
+
validate?: (value: string) => import('./types').ValidationResult;
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
disableAnimation?: boolean;
|
|
22
|
+
minRows?: number;
|
|
23
|
+
maxRows?: number;
|
|
24
|
+
disableAutosize?: boolean;
|
|
25
|
+
hideVoiceActions?: boolean;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
classNames?: {
|
|
29
|
+
base?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
inputWrapper?: string;
|
|
32
|
+
input?: string;
|
|
33
|
+
actions?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
errorMessage?: string;
|
|
36
|
+
};
|
|
37
|
+
onChange?: (value: string) => void;
|
|
38
|
+
onClear?: () => void;
|
|
39
|
+
children?: import('react').ReactNode;
|
|
40
|
+
} & {
|
|
41
|
+
form?: string | undefined | undefined;
|
|
42
|
+
slot?: string | undefined | undefined;
|
|
43
|
+
style?: import('react').CSSProperties | undefined;
|
|
44
|
+
title?: string | undefined | undefined;
|
|
45
|
+
disabled?: boolean | undefined | undefined;
|
|
46
|
+
name?: string | undefined | undefined;
|
|
47
|
+
value?: string | number | readonly string[] | undefined;
|
|
48
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
49
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
50
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
51
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
52
|
+
accessKey?: string | undefined | undefined;
|
|
53
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
54
|
+
autoFocus?: boolean | undefined | undefined;
|
|
55
|
+
className?: string | undefined | undefined;
|
|
56
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
57
|
+
contextMenu?: string | undefined | undefined;
|
|
58
|
+
dir?: string | undefined | undefined;
|
|
59
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
60
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
61
|
+
hidden?: boolean | undefined | undefined;
|
|
62
|
+
id?: string | undefined | undefined;
|
|
63
|
+
lang?: string | undefined | undefined;
|
|
64
|
+
nonce?: string | undefined | undefined;
|
|
65
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
66
|
+
tabIndex?: number | undefined | undefined;
|
|
67
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
68
|
+
radioGroup?: string | undefined | undefined;
|
|
69
|
+
role?: import('react').AriaRole | undefined;
|
|
70
|
+
about?: string | undefined | undefined;
|
|
71
|
+
content?: string | undefined | undefined;
|
|
72
|
+
datatype?: string | undefined | undefined;
|
|
73
|
+
inlist?: any;
|
|
74
|
+
prefix?: string | undefined | undefined;
|
|
75
|
+
property?: string | undefined | undefined;
|
|
76
|
+
rel?: string | undefined | undefined;
|
|
77
|
+
resource?: string | undefined | undefined;
|
|
78
|
+
rev?: string | undefined | undefined;
|
|
79
|
+
typeof?: string | undefined | undefined;
|
|
80
|
+
vocab?: string | undefined | undefined;
|
|
81
|
+
autoCorrect?: string | undefined | undefined;
|
|
82
|
+
autoSave?: string | undefined | undefined;
|
|
83
|
+
itemProp?: string | undefined | undefined;
|
|
84
|
+
itemScope?: boolean | undefined | undefined;
|
|
85
|
+
itemType?: string | undefined | undefined;
|
|
86
|
+
itemID?: string | undefined | undefined;
|
|
87
|
+
itemRef?: string | undefined | undefined;
|
|
88
|
+
results?: number | undefined | undefined;
|
|
89
|
+
security?: string | undefined | undefined;
|
|
90
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
91
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
92
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
93
|
+
popoverTarget?: string | undefined | undefined;
|
|
94
|
+
inert?: boolean | undefined | undefined;
|
|
95
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
96
|
+
is?: string | undefined | undefined;
|
|
97
|
+
exportparts?: string | undefined | undefined;
|
|
98
|
+
part?: string | undefined | undefined;
|
|
99
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
100
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
101
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
102
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
103
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
104
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
105
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
106
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
107
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
108
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
109
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
110
|
+
"aria-controls"?: string | undefined | undefined;
|
|
111
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
112
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
113
|
+
"aria-description"?: string | undefined | undefined;
|
|
114
|
+
"aria-details"?: string | undefined | undefined;
|
|
115
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
116
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
117
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
118
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
119
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
120
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
121
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
122
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
123
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
124
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
125
|
+
"aria-label"?: string | undefined | undefined;
|
|
126
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
127
|
+
"aria-level"?: number | undefined | undefined;
|
|
128
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
129
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
130
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
131
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
132
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
133
|
+
"aria-owns"?: string | undefined | undefined;
|
|
134
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
135
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
136
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
137
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
138
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
139
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
140
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
141
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
142
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
143
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
144
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
145
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
146
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
147
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
148
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
149
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
150
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
151
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
152
|
+
dangerouslySetInnerHTML?: {
|
|
153
|
+
__html: string | TrustedHTML;
|
|
154
|
+
} | undefined | undefined;
|
|
155
|
+
onCopy?: import('react').ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
156
|
+
onCopyCapture?: import('react').ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
157
|
+
onCut?: import('react').ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
158
|
+
onCutCapture?: import('react').ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
159
|
+
onPaste?: import('react').ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
160
|
+
onPasteCapture?: import('react').ClipboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
161
|
+
onCompositionEnd?: import('react').CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
162
|
+
onCompositionEndCapture?: import('react').CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
163
|
+
onCompositionStart?: import('react').CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
164
|
+
onCompositionStartCapture?: import('react').CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
165
|
+
onCompositionUpdate?: import('react').CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
166
|
+
onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLTextAreaElement> | undefined;
|
|
167
|
+
onFocus?: import('react').FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
168
|
+
onFocusCapture?: import('react').FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
169
|
+
onBlur?: import('react').FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
170
|
+
onBlurCapture?: import('react').FocusEventHandler<HTMLTextAreaElement> | undefined;
|
|
171
|
+
onChangeCapture?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
172
|
+
onBeforeInput?: import('react').InputEventHandler<HTMLTextAreaElement> | undefined;
|
|
173
|
+
onBeforeInputCapture?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
174
|
+
onInput?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
175
|
+
onInputCapture?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
176
|
+
onReset?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
177
|
+
onResetCapture?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
178
|
+
onSubmit?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
179
|
+
onSubmitCapture?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
180
|
+
onInvalid?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
181
|
+
onInvalidCapture?: import('react').FormEventHandler<HTMLTextAreaElement> | undefined;
|
|
182
|
+
onLoad?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
183
|
+
onLoadCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
184
|
+
onError?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
185
|
+
onErrorCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
186
|
+
onKeyDown?: import('react').KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
187
|
+
onKeyDownCapture?: import('react').KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
188
|
+
onKeyPress?: import('react').KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
189
|
+
onKeyPressCapture?: import('react').KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
190
|
+
onKeyUp?: import('react').KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
191
|
+
onKeyUpCapture?: import('react').KeyboardEventHandler<HTMLTextAreaElement> | undefined;
|
|
192
|
+
onAbort?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
193
|
+
onAbortCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
194
|
+
onCanPlay?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
195
|
+
onCanPlayCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
196
|
+
onCanPlayThrough?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
197
|
+
onCanPlayThroughCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
198
|
+
onDurationChange?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
199
|
+
onDurationChangeCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
200
|
+
onEmptied?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
201
|
+
onEmptiedCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
202
|
+
onEncrypted?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
203
|
+
onEncryptedCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
204
|
+
onEnded?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
205
|
+
onEndedCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
206
|
+
onLoadedData?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
207
|
+
onLoadedDataCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
208
|
+
onLoadedMetadata?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
209
|
+
onLoadedMetadataCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
210
|
+
onLoadStart?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
211
|
+
onLoadStartCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
212
|
+
onPause?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
213
|
+
onPauseCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
214
|
+
onPlay?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
215
|
+
onPlayCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
216
|
+
onPlaying?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
217
|
+
onPlayingCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
218
|
+
onProgress?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
219
|
+
onProgressCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
220
|
+
onRateChange?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
221
|
+
onRateChangeCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
222
|
+
onSeeked?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
223
|
+
onSeekedCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
224
|
+
onSeeking?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
225
|
+
onSeekingCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
226
|
+
onStalled?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
227
|
+
onStalledCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
228
|
+
onSuspend?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
229
|
+
onSuspendCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
230
|
+
onTimeUpdate?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
231
|
+
onTimeUpdateCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
232
|
+
onVolumeChange?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
233
|
+
onVolumeChangeCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
234
|
+
onWaiting?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
235
|
+
onWaitingCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
236
|
+
onAuxClick?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
237
|
+
onAuxClickCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
238
|
+
onClick?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
239
|
+
onClickCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
240
|
+
onContextMenu?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
241
|
+
onContextMenuCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
242
|
+
onDoubleClick?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
243
|
+
onDoubleClickCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
244
|
+
onDrag?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
245
|
+
onDragCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
246
|
+
onDragEnd?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
247
|
+
onDragEndCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
248
|
+
onDragEnter?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
249
|
+
onDragEnterCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
250
|
+
onDragExit?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
251
|
+
onDragExitCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
252
|
+
onDragLeave?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
253
|
+
onDragLeaveCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
254
|
+
onDragOver?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
255
|
+
onDragOverCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
256
|
+
onDragStart?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
257
|
+
onDragStartCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
258
|
+
onDrop?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
259
|
+
onDropCapture?: import('react').DragEventHandler<HTMLTextAreaElement> | undefined;
|
|
260
|
+
onMouseDown?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
261
|
+
onMouseDownCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
262
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
263
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
264
|
+
onMouseMove?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
265
|
+
onMouseMoveCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
266
|
+
onMouseOut?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
267
|
+
onMouseOutCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
268
|
+
onMouseOver?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
269
|
+
onMouseOverCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
270
|
+
onMouseUp?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
271
|
+
onMouseUpCapture?: import('react').MouseEventHandler<HTMLTextAreaElement> | undefined;
|
|
272
|
+
onSelect?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
273
|
+
onSelectCapture?: import('react').ReactEventHandler<HTMLTextAreaElement> | undefined;
|
|
274
|
+
onTouchCancel?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
275
|
+
onTouchCancelCapture?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
276
|
+
onTouchEnd?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
277
|
+
onTouchEndCapture?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
278
|
+
onTouchMove?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
279
|
+
onTouchMoveCapture?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
280
|
+
onTouchStart?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
281
|
+
onTouchStartCapture?: import('react').TouchEventHandler<HTMLTextAreaElement> | undefined;
|
|
282
|
+
onPointerDown?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
283
|
+
onPointerDownCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
284
|
+
onPointerMove?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
285
|
+
onPointerMoveCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
286
|
+
onPointerUp?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
287
|
+
onPointerUpCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
288
|
+
onPointerCancel?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
289
|
+
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
290
|
+
onPointerEnter?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
291
|
+
onPointerLeave?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
292
|
+
onPointerOver?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
293
|
+
onPointerOverCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
294
|
+
onPointerOut?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
295
|
+
onPointerOutCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
296
|
+
onGotPointerCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
297
|
+
onGotPointerCaptureCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
298
|
+
onLostPointerCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
299
|
+
onLostPointerCaptureCapture?: import('react').PointerEventHandler<HTMLTextAreaElement> | undefined;
|
|
300
|
+
onScroll?: import('react').UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
301
|
+
onScrollCapture?: import('react').UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
302
|
+
onScrollEnd?: import('react').UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
303
|
+
onScrollEndCapture?: import('react').UIEventHandler<HTMLTextAreaElement> | undefined;
|
|
304
|
+
onWheel?: import('react').WheelEventHandler<HTMLTextAreaElement> | undefined;
|
|
305
|
+
onWheelCapture?: import('react').WheelEventHandler<HTMLTextAreaElement> | undefined;
|
|
306
|
+
onAnimationStart?: import('react').AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
307
|
+
onAnimationStartCapture?: import('react').AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
308
|
+
onAnimationEnd?: import('react').AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
309
|
+
onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
310
|
+
onAnimationIteration?: import('react').AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
311
|
+
onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLTextAreaElement> | undefined;
|
|
312
|
+
onToggle?: import('react').ToggleEventHandler<HTMLTextAreaElement> | undefined;
|
|
313
|
+
onBeforeToggle?: import('react').ToggleEventHandler<HTMLTextAreaElement> | undefined;
|
|
314
|
+
onTransitionCancel?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
315
|
+
onTransitionCancelCapture?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
316
|
+
onTransitionEnd?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
317
|
+
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
318
|
+
onTransitionRun?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
319
|
+
onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
320
|
+
onTransitionStart?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
321
|
+
onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLTextAreaElement> | undefined;
|
|
322
|
+
wrap?: string | undefined | undefined;
|
|
323
|
+
autoComplete?: string | undefined | undefined;
|
|
324
|
+
maxLength?: number | undefined | undefined;
|
|
325
|
+
minLength?: number | undefined | undefined;
|
|
326
|
+
placeholder?: string | undefined | undefined;
|
|
327
|
+
readOnly?: boolean | undefined | undefined;
|
|
328
|
+
required?: boolean | undefined | undefined;
|
|
329
|
+
cols?: number | undefined | undefined;
|
|
330
|
+
dirName?: string | undefined | undefined;
|
|
331
|
+
rows?: number | undefined | undefined;
|
|
332
|
+
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
333
|
+
export { TextArea };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { InputVariant, InputColor, InputSize, InputRadius, ValidationResult, ResultadoValidacion } from '../input_types_compartidos';
|
|
3
|
+
export type { InputVariant, InputColor, InputSize, InputRadius, ValidationResult, ResultadoValidacion };
|
|
4
|
+
type NativeTextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'color' | 'size' | 'onChange' | 'children'>;
|
|
5
|
+
/**
|
|
6
|
+
* Props del componente TextArea
|
|
7
|
+
* @description Área de texto con soporte para dictado por voz, lectura TTS, autosize y validación
|
|
8
|
+
*/
|
|
9
|
+
export type TextAreaProps = {
|
|
10
|
+
/** Variante visual del textarea */
|
|
11
|
+
variant?: InputVariant;
|
|
12
|
+
/** Color temático del textarea (afecta el borde en focus) */
|
|
13
|
+
color?: InputColor;
|
|
14
|
+
/** Tamaño del textarea */
|
|
15
|
+
size?: InputSize;
|
|
16
|
+
/** Radio de bordes del textarea */
|
|
17
|
+
radius?: InputRadius;
|
|
18
|
+
/** Etiqueta del campo */
|
|
19
|
+
label?: ReactNode;
|
|
20
|
+
/** Placeholder del textarea */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** Valor controlado del textarea */
|
|
23
|
+
value?: string;
|
|
24
|
+
/** Valor inicial no controlado */
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
/** Descripción o texto de ayuda */
|
|
27
|
+
description?: ReactNode;
|
|
28
|
+
/** Mensaje de error personalizado */
|
|
29
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
30
|
+
/** Si el campo es requerido */
|
|
31
|
+
isRequired?: boolean;
|
|
32
|
+
/** Si el campo es de solo lectura */
|
|
33
|
+
isReadOnly?: boolean;
|
|
34
|
+
/** Si el campo está deshabilitado */
|
|
35
|
+
isDisabled?: boolean;
|
|
36
|
+
/** Si muestra botón para limpiar el campo */
|
|
37
|
+
isClearable?: boolean;
|
|
38
|
+
/** Si el campo es inválido (override manual) */
|
|
39
|
+
isInvalid?: boolean;
|
|
40
|
+
/** Estado de validación manual */
|
|
41
|
+
validationState?: 'valid' | 'invalid';
|
|
42
|
+
/** Función de validación personalizada */
|
|
43
|
+
validate?: (value: string) => ValidationResult;
|
|
44
|
+
/** Si el textarea ocupa todo el ancho */
|
|
45
|
+
fullWidth?: boolean;
|
|
46
|
+
/** Deshabilita animaciones */
|
|
47
|
+
disableAnimation?: boolean;
|
|
48
|
+
/** Número mínimo de filas visibles */
|
|
49
|
+
minRows?: number;
|
|
50
|
+
/** Número máximo de filas antes de mostrar scroll */
|
|
51
|
+
maxRows?: number;
|
|
52
|
+
/** Deshabilita el redimensionado automático */
|
|
53
|
+
disableAutosize?: boolean;
|
|
54
|
+
/** Oculta las acciones de voz (TTS y dictado) */
|
|
55
|
+
hideVoiceActions?: boolean;
|
|
56
|
+
/** Clase CSS personalizada para el contenedor base */
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Estilos en línea para el contenedor base */
|
|
59
|
+
style?: React.CSSProperties;
|
|
60
|
+
/** Clases CSS personalizadas para cada parte */
|
|
61
|
+
classNames?: {
|
|
62
|
+
base?: string;
|
|
63
|
+
label?: string;
|
|
64
|
+
inputWrapper?: string;
|
|
65
|
+
input?: string;
|
|
66
|
+
actions?: string;
|
|
67
|
+
description?: string;
|
|
68
|
+
errorMessage?: string;
|
|
69
|
+
};
|
|
70
|
+
/** Callback cuando cambia el valor */
|
|
71
|
+
onChange?: (value: string) => void;
|
|
72
|
+
/** Callback cuando se limpia el campo */
|
|
73
|
+
onClear?: () => void;
|
|
74
|
+
/** Contenido adicional (children) */
|
|
75
|
+
children?: ReactNode;
|
|
76
|
+
} & NativeTextareaProps;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
align?: "center" | "left" | "right" | null | undefined;
|
|
5
|
+
intent?: "primary" | "secondary" | null | undefined;
|
|
6
|
+
weight?: "small" | "medium" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
type TextVariantProps = VariantProps<typeof textVariants>;
|
|
9
|
+
type PolymorphicProps<E extends React.ElementType> = {
|
|
10
|
+
as?: E;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & TextVariantProps & Omit<React.ComponentPropsWithoutRef<E>, keyof (TextVariantProps & {
|
|
14
|
+
as?: E;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
})>;
|
|
18
|
+
export declare const Texts: <E extends React.ElementType = "p">({ as, align, intent, weight, className, children, ...props }: PolymorphicProps<E>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const Toggle: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> & {
|
|
2
|
+
isSelected?: boolean;
|
|
3
|
+
defaultSelected?: boolean;
|
|
4
|
+
onChange?: (isSelected: boolean) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
size?: import('./types').ToggleSize;
|
|
8
|
+
color?: import('./types').ToggleColor;
|
|
9
|
+
customColor?: string;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
isReadOnly?: boolean;
|
|
12
|
+
isInvalid?: boolean;
|
|
13
|
+
isRequired?: boolean;
|
|
14
|
+
showIcons?: boolean;
|
|
15
|
+
variant?: import('./types').ToggleVariant;
|
|
16
|
+
labelPlacement?: "left" | "right";
|
|
17
|
+
labelPosition?: "inline" | "top";
|
|
18
|
+
justifyEnd?: boolean;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export type ToggleSize = 'sm' | 'md' | 'lg';
|
|
2
|
+
export type ToggleColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export type ToggleVariant = 'default' | 'moon';
|
|
4
|
+
export type ToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'onChange'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Si el toggle está activado (modo controlado)
|
|
7
|
+
*/
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Si está activado por defecto (modo no controlado)
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
defaultSelected?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback cuando cambia el estado
|
|
16
|
+
*/
|
|
17
|
+
onChange?: (isSelected: boolean) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Label del toggle
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Descripción adicional
|
|
24
|
+
*/
|
|
25
|
+
description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Tamaño del toggle
|
|
28
|
+
* @default 'md'
|
|
29
|
+
*/
|
|
30
|
+
size?: ToggleSize;
|
|
31
|
+
/**
|
|
32
|
+
* Color del tema
|
|
33
|
+
* @default 'primary'
|
|
34
|
+
*/
|
|
35
|
+
color?: ToggleColor;
|
|
36
|
+
/**
|
|
37
|
+
* Color personalizado (CSS color value)
|
|
38
|
+
* Sobrescribe el color del tema si se especifica
|
|
39
|
+
*/
|
|
40
|
+
customColor?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Si está deshabilitado
|
|
43
|
+
*/
|
|
44
|
+
isDisabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Si está en modo solo lectura
|
|
47
|
+
*/
|
|
48
|
+
isReadOnly?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Si tiene error de validación
|
|
51
|
+
*/
|
|
52
|
+
isInvalid?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Si es requerido
|
|
55
|
+
*/
|
|
56
|
+
isRequired?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Mostrar iconos de check/x dentro del toggle
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
showIcons?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Variante del toggle
|
|
64
|
+
* @default 'default'
|
|
65
|
+
*/
|
|
66
|
+
variant?: ToggleVariant;
|
|
67
|
+
/**
|
|
68
|
+
* Posición del label horizontal
|
|
69
|
+
* @default 'right'
|
|
70
|
+
*/
|
|
71
|
+
labelPlacement?: 'left' | 'right';
|
|
72
|
+
/**
|
|
73
|
+
* Posición del label vertical
|
|
74
|
+
* @default 'inline'
|
|
75
|
+
*/
|
|
76
|
+
labelPosition?: 'inline' | 'top';
|
|
77
|
+
/**
|
|
78
|
+
* Alinear toggle al extremo en layouts (útil para Settings)
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
justifyEnd?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Children (usado cuando no se pasa label)
|
|
84
|
+
*/
|
|
85
|
+
children?: React.ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* Clase CSS adicional
|
|
88
|
+
*/
|
|
89
|
+
className?: string;
|
|
90
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { TooltipProps } from './types';
|
|
2
|
+
export declare function Tooltip({ content, children, placement, variant, size, offset: offsetValue, delayShow, delayHide, isDisabled, showArrow, maxWidth, isInteractive, className, onOpen, onClose, isOpen: controlledIsOpen, onOpenChange, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|