corekit-ui 0.1.8 → 0.1.10
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/CHANGELOG.md +42 -0
- package/dist/animations/Transiciones.d.ts +9 -0
- package/dist/animations/index.d.ts +1 -0
- package/dist/boton/Boton.d.ts +2 -0
- package/dist/boton/index.d.ts +2 -0
- package/dist/boton/typesButton.d.ts +31 -0
- package/dist/checkbox/Checkbox.d.ts +18 -0
- package/dist/checkbox/CheckboxGroup.d.ts +3 -0
- package/dist/checkbox/Iconografia.d.ts +0 -0
- package/dist/checkbox/index.d.ts +3 -0
- package/dist/checkbox/types.d.ts +41 -0
- package/dist/corekit-ui.css +1 -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 +12 -0
- package/dist/index.js +9274 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +29 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/input_date/InputDate.d.ts +339 -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 +64 -0
- package/dist/input_numeric/Iconografia.d.ts +5 -0
- package/dist/input_numeric/InputNumeric.d.ts +351 -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 +92 -0
- package/dist/input_text/Iconografia.d.ts +9 -0
- package/dist/input_text/InputText.d.ts +345 -0
- package/dist/input_text/index.d.ts +2 -0
- package/dist/input_text/types.d.ts +73 -0
- package/dist/input_types_compartidos/index.d.ts +1 -0
- package/dist/input_types_compartidos/types.d.ts +11 -0
- package/dist/select/Iconografia.d.ts +10 -0
- package/dist/select/Select.d.ts +56 -0
- package/dist/select/SelectNativo.d.ts +57 -0
- package/dist/select/Types.d.ts +543 -0
- package/dist/select/funciones.d.ts +229 -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/utils/FuncionesColumnas.d.ts +9 -0
- package/dist/tabla_datos/utils/FuncionesPaginacion.d.ts +12 -0
- package/dist/tabla_datos/utils/FuncionesTabla.d.ts +30 -0
- package/dist/text_area/Iconografia.d.ts +6 -0
- package/dist/text_area/TextArea.d.ts +331 -0
- package/dist/text_area/index.d.ts +2 -0
- package/dist/text_area/types.d.ts +72 -0
- package/dist/texts/Texts.d.ts +19 -0
- package/dist/vite.svg +1 -0
- package/package.json +141 -120
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { ResultadoValidacion } from './types';
|
|
2
|
+
declare const InputNumeric: 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?: number | "";
|
|
10
|
+
defaultValue?: number;
|
|
11
|
+
description?: import('react').ReactNode;
|
|
12
|
+
errorMessage?: import('react').ReactNode | ((v: ResultadoValidacion) => import('react').ReactNode);
|
|
13
|
+
startContent?: import('react').ReactNode;
|
|
14
|
+
endContent?: import('react').ReactNode;
|
|
15
|
+
isRequired?: boolean;
|
|
16
|
+
isReadOnly?: boolean;
|
|
17
|
+
isDisabled?: boolean;
|
|
18
|
+
isInvalid?: boolean;
|
|
19
|
+
validationState?: "valid" | "invalid";
|
|
20
|
+
validate?: (value: number | undefined) => import('./types').ValidationResult;
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
disableAnimation?: boolean;
|
|
23
|
+
min?: number;
|
|
24
|
+
max?: number;
|
|
25
|
+
step?: number;
|
|
26
|
+
decimalScale?: number;
|
|
27
|
+
fixedDecimalScale?: boolean;
|
|
28
|
+
thousandSeparator?: string | boolean;
|
|
29
|
+
decimalSeparator?: string;
|
|
30
|
+
prefix?: string;
|
|
31
|
+
suffix?: string;
|
|
32
|
+
allowNegative?: boolean;
|
|
33
|
+
allowDecimal?: boolean;
|
|
34
|
+
hideControls?: boolean;
|
|
35
|
+
clampBehavior?: "strict" | "blur" | "none";
|
|
36
|
+
classNames?: {
|
|
37
|
+
base?: string;
|
|
38
|
+
label?: string;
|
|
39
|
+
inputWrapper?: string;
|
|
40
|
+
innerWrapper?: string;
|
|
41
|
+
input?: string;
|
|
42
|
+
controls?: string;
|
|
43
|
+
controlButton?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
errorMessage?: string;
|
|
46
|
+
};
|
|
47
|
+
onChange?: (value: number | undefined) => void;
|
|
48
|
+
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
49
|
+
} & {
|
|
50
|
+
form?: string | undefined | undefined;
|
|
51
|
+
slot?: string | undefined | undefined;
|
|
52
|
+
style?: import('react').CSSProperties | undefined;
|
|
53
|
+
title?: string | undefined | undefined;
|
|
54
|
+
pattern?: string | undefined | undefined;
|
|
55
|
+
className?: string | undefined | undefined;
|
|
56
|
+
onClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
57
|
+
"aria-label"?: string | undefined | undefined;
|
|
58
|
+
disabled?: boolean | undefined | undefined;
|
|
59
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
60
|
+
formEncType?: string | undefined | undefined;
|
|
61
|
+
formMethod?: string | undefined | undefined;
|
|
62
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
63
|
+
formTarget?: string | undefined | undefined;
|
|
64
|
+
name?: string | undefined | undefined;
|
|
65
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
66
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
67
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
68
|
+
accessKey?: string | undefined | undefined;
|
|
69
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
70
|
+
autoFocus?: boolean | undefined | undefined;
|
|
71
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
72
|
+
contextMenu?: string | undefined | undefined;
|
|
73
|
+
dir?: string | undefined | undefined;
|
|
74
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
76
|
+
hidden?: boolean | undefined | undefined;
|
|
77
|
+
id?: string | undefined | undefined;
|
|
78
|
+
lang?: string | undefined | undefined;
|
|
79
|
+
nonce?: string | undefined | undefined;
|
|
80
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
81
|
+
tabIndex?: number | undefined | undefined;
|
|
82
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
83
|
+
radioGroup?: string | undefined | undefined;
|
|
84
|
+
role?: import('react').AriaRole | undefined;
|
|
85
|
+
about?: string | undefined | undefined;
|
|
86
|
+
content?: string | undefined | undefined;
|
|
87
|
+
datatype?: string | undefined | undefined;
|
|
88
|
+
inlist?: any;
|
|
89
|
+
prefix?: string | undefined | undefined;
|
|
90
|
+
property?: string | undefined | undefined;
|
|
91
|
+
rel?: string | undefined | undefined;
|
|
92
|
+
resource?: string | undefined | undefined;
|
|
93
|
+
rev?: string | undefined | undefined;
|
|
94
|
+
typeof?: string | undefined | undefined;
|
|
95
|
+
vocab?: string | undefined | undefined;
|
|
96
|
+
autoCorrect?: string | undefined | undefined;
|
|
97
|
+
autoSave?: string | undefined | undefined;
|
|
98
|
+
itemProp?: string | undefined | undefined;
|
|
99
|
+
itemScope?: boolean | undefined | undefined;
|
|
100
|
+
itemType?: string | undefined | undefined;
|
|
101
|
+
itemID?: string | undefined | undefined;
|
|
102
|
+
itemRef?: string | undefined | undefined;
|
|
103
|
+
results?: number | undefined | undefined;
|
|
104
|
+
security?: string | undefined | undefined;
|
|
105
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
106
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
107
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
108
|
+
popoverTarget?: string | undefined | undefined;
|
|
109
|
+
inert?: boolean | undefined | undefined;
|
|
110
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
111
|
+
is?: string | undefined | undefined;
|
|
112
|
+
exportparts?: string | undefined | undefined;
|
|
113
|
+
part?: string | undefined | undefined;
|
|
114
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
115
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
116
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
117
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
118
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
119
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
120
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
121
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
122
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
123
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
124
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
125
|
+
"aria-controls"?: string | undefined | undefined;
|
|
126
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
127
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
128
|
+
"aria-description"?: string | undefined | undefined;
|
|
129
|
+
"aria-details"?: string | undefined | undefined;
|
|
130
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
131
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
132
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
133
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
134
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
135
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
136
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
137
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
138
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
139
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
140
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
141
|
+
"aria-level"?: number | undefined | undefined;
|
|
142
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
143
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
144
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
145
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
146
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
147
|
+
"aria-owns"?: string | undefined | undefined;
|
|
148
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
149
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
150
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
151
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
152
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
153
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
154
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
155
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
156
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
157
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
158
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
159
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
160
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
161
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
162
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
163
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
164
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
165
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
166
|
+
dangerouslySetInnerHTML?: {
|
|
167
|
+
__html: string | TrustedHTML;
|
|
168
|
+
} | undefined | undefined;
|
|
169
|
+
onCopy?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onCopyCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onCut?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onCutCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onPaste?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onPasteCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onCompositionEnd?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onCompositionEndCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
177
|
+
onCompositionStart?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
178
|
+
onCompositionStartCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
179
|
+
onCompositionUpdate?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
180
|
+
onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
181
|
+
onFocus?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
182
|
+
onFocusCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
183
|
+
onBlur?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
184
|
+
onBlurCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
185
|
+
onChangeCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
186
|
+
onBeforeInput?: import('react').InputEventHandler<HTMLInputElement> | undefined;
|
|
187
|
+
onBeforeInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
188
|
+
onInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
189
|
+
onInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
190
|
+
onReset?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
191
|
+
onResetCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
192
|
+
onSubmit?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
193
|
+
onSubmitCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
194
|
+
onInvalid?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
195
|
+
onInvalidCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
196
|
+
onLoad?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
197
|
+
onLoadCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
198
|
+
onError?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
199
|
+
onErrorCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
200
|
+
onKeyDown?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
201
|
+
onKeyDownCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
202
|
+
onKeyPress?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onKeyPressCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
204
|
+
onKeyUp?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
205
|
+
onKeyUpCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
206
|
+
onAbort?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
207
|
+
onAbortCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
208
|
+
onCanPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
209
|
+
onCanPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
210
|
+
onCanPlayThrough?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
211
|
+
onCanPlayThroughCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
212
|
+
onDurationChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
213
|
+
onDurationChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
214
|
+
onEmptied?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
215
|
+
onEmptiedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
216
|
+
onEncrypted?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
217
|
+
onEncryptedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
218
|
+
onEnded?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
219
|
+
onEndedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onLoadedData?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onLoadedDataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
222
|
+
onLoadedMetadata?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
223
|
+
onLoadedMetadataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
224
|
+
onLoadStart?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
225
|
+
onLoadStartCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
226
|
+
onPause?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
227
|
+
onPauseCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
230
|
+
onPlaying?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
231
|
+
onPlayingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
232
|
+
onProgress?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
233
|
+
onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
235
|
+
onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
236
|
+
onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
238
|
+
onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
239
|
+
onSeekingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
240
|
+
onStalled?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
241
|
+
onStalledCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
242
|
+
onSuspend?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
243
|
+
onSuspendCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
244
|
+
onTimeUpdate?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
245
|
+
onTimeUpdateCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
246
|
+
onVolumeChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
247
|
+
onVolumeChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
248
|
+
onWaiting?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
249
|
+
onWaitingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
250
|
+
onAuxClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
251
|
+
onAuxClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
252
|
+
onClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
253
|
+
onContextMenu?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
254
|
+
onContextMenuCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
255
|
+
onDoubleClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
256
|
+
onDoubleClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
257
|
+
onDrag?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
258
|
+
onDragCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
259
|
+
onDragEnd?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
260
|
+
onDragEndCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
261
|
+
onDragEnter?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
262
|
+
onDragEnterCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
263
|
+
onDragExit?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
264
|
+
onDragExitCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
265
|
+
onDragLeave?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
266
|
+
onDragLeaveCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
267
|
+
onDragOver?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
268
|
+
onDragOverCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
onDragStart?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
270
|
+
onDragStartCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
271
|
+
onDrop?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
272
|
+
onDropCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
273
|
+
onMouseDown?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
274
|
+
onMouseDownCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
276
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
277
|
+
onMouseMove?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
278
|
+
onMouseMoveCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
279
|
+
onMouseOut?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
280
|
+
onMouseOutCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
281
|
+
onMouseOver?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
282
|
+
onMouseOverCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
283
|
+
onMouseUp?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
284
|
+
onMouseUpCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
285
|
+
onSelect?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
286
|
+
onSelectCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
287
|
+
onTouchCancel?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
288
|
+
onTouchCancelCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
289
|
+
onTouchEnd?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
290
|
+
onTouchEndCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
291
|
+
onTouchMove?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
292
|
+
onTouchMoveCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
293
|
+
onTouchStart?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
294
|
+
onTouchStartCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
295
|
+
onPointerDown?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
296
|
+
onPointerDownCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
297
|
+
onPointerMove?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
298
|
+
onPointerMoveCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
299
|
+
onPointerUp?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
300
|
+
onPointerUpCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
301
|
+
onPointerCancel?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
302
|
+
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
303
|
+
onPointerEnter?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
304
|
+
onPointerLeave?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
305
|
+
onPointerOver?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
306
|
+
onPointerOverCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
307
|
+
onPointerOut?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
308
|
+
onPointerOutCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
309
|
+
onGotPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
310
|
+
onGotPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
311
|
+
onLostPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
312
|
+
onLostPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
313
|
+
onScroll?: import('react').UIEventHandler<HTMLInputElement> | undefined;
|
|
314
|
+
onScrollCapture?: import('react').UIEventHandler<HTMLInputElement> | undefined;
|
|
315
|
+
onScrollEnd?: import('react').UIEventHandler<HTMLInputElement> | undefined;
|
|
316
|
+
onScrollEndCapture?: import('react').UIEventHandler<HTMLInputElement> | undefined;
|
|
317
|
+
onWheel?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
|
|
318
|
+
onWheelCapture?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
|
|
319
|
+
onAnimationStart?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
320
|
+
onAnimationStartCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
321
|
+
onAnimationEnd?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
322
|
+
onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
323
|
+
onAnimationIteration?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
324
|
+
onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
325
|
+
onToggle?: import('react').ToggleEventHandler<HTMLInputElement> | undefined;
|
|
326
|
+
onBeforeToggle?: import('react').ToggleEventHandler<HTMLInputElement> | undefined;
|
|
327
|
+
onTransitionCancel?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
328
|
+
onTransitionCancelCapture?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
329
|
+
onTransitionEnd?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
330
|
+
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
331
|
+
onTransitionRun?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
332
|
+
onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
333
|
+
onTransitionStart?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
334
|
+
onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
335
|
+
multiple?: boolean | undefined | undefined;
|
|
336
|
+
list?: string | undefined | undefined;
|
|
337
|
+
accept?: string | undefined | undefined;
|
|
338
|
+
width?: number | string | undefined | undefined;
|
|
339
|
+
height?: number | string | undefined | undefined;
|
|
340
|
+
checked?: boolean | undefined | undefined;
|
|
341
|
+
alt?: string | undefined | undefined;
|
|
342
|
+
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
343
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
344
|
+
maxLength?: number | undefined | undefined;
|
|
345
|
+
minLength?: number | undefined | undefined;
|
|
346
|
+
placeholder?: string | undefined | undefined;
|
|
347
|
+
readOnly?: boolean | undefined | undefined;
|
|
348
|
+
required?: boolean | undefined | undefined;
|
|
349
|
+
src?: string | undefined | undefined;
|
|
350
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
351
|
+
export { InputNumeric };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ResultadoValidacion, ValidationResult } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Escapa caracteres especiales para uso en expresiones regulares
|
|
4
|
+
* @param texto - String a escapar
|
|
5
|
+
* @returns String con caracteres especiales escapados
|
|
6
|
+
*/
|
|
7
|
+
export declare function escaparRegex(texto: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Formatea un número aplicando separadores de miles y decimales
|
|
10
|
+
* @param valor - El número a formatear
|
|
11
|
+
* @param opciones - Configuración del formateo
|
|
12
|
+
* @returns String formateado con separadores
|
|
13
|
+
* @example
|
|
14
|
+
* formatearNumero(1234567.89, { separadorMiles: ',', separadorDecimal: '.' })
|
|
15
|
+
* // Retorna: "1,234,567.89"
|
|
16
|
+
*/
|
|
17
|
+
export declare function formatearNumero(valor: number | undefined, opciones: {
|
|
18
|
+
separadorMiles?: string | boolean;
|
|
19
|
+
separadorDecimal?: string;
|
|
20
|
+
escalaDecimal?: number;
|
|
21
|
+
decimalesFijos?: boolean;
|
|
22
|
+
prefijo?: string;
|
|
23
|
+
sufijo?: string;
|
|
24
|
+
}): string;
|
|
25
|
+
/**
|
|
26
|
+
* Parsea un string formateado y extrae el valor numérico
|
|
27
|
+
* @param texto - String con formato (puede tener separadores, prefijos, sufijos)
|
|
28
|
+
* @param opciones - Configuración para el parseo
|
|
29
|
+
* @returns El número parseado o undefined si no es válido
|
|
30
|
+
* @example
|
|
31
|
+
* parsearNumero("$1,234.56", { separadorMiles: ',', separadorDecimal: '.', prefijo: '$' })
|
|
32
|
+
* // Retorna: 1234.56
|
|
33
|
+
*/
|
|
34
|
+
export declare function parsearNumero(texto: string, opciones: {
|
|
35
|
+
separadorMiles?: string | boolean;
|
|
36
|
+
separadorDecimal?: string;
|
|
37
|
+
prefijo?: string;
|
|
38
|
+
sufijo?: string;
|
|
39
|
+
permitirNegativo?: boolean;
|
|
40
|
+
}): number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Restringe un valor dentro de un rango mínimo y máximo
|
|
43
|
+
* @param valor - Valor a restringir
|
|
44
|
+
* @param min - Valor mínimo permitido
|
|
45
|
+
* @param max - Valor máximo permitido
|
|
46
|
+
* @returns El valor restringido dentro del rango
|
|
47
|
+
* @example
|
|
48
|
+
* restringirRango(150, 0, 100) // Retorna: 100
|
|
49
|
+
* restringirRango(-10, 0, 100) // Retorna: 0
|
|
50
|
+
*/
|
|
51
|
+
export declare function restringirRango(valor: number, min?: number, max?: number): number;
|
|
52
|
+
/**
|
|
53
|
+
* Procesa el resultado de una función de validación
|
|
54
|
+
* @param resultado - Resultado de la función validate
|
|
55
|
+
* @returns Objeto con estado de validación y mensaje
|
|
56
|
+
*/
|
|
57
|
+
export declare function procesarValidacion(resultado: ValidationResult): ResultadoValidacion;
|
|
58
|
+
/**
|
|
59
|
+
* Redondea un número a una cantidad específica de decimales
|
|
60
|
+
* @param valor - Número a redondear
|
|
61
|
+
* @param decimales - Cantidad de decimales
|
|
62
|
+
* @returns Número redondeado
|
|
63
|
+
*/
|
|
64
|
+
export declare function redondearDecimales(valor: number, decimales: number): number;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } 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 NativeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'color' | 'size' | 'onChange' | 'children' | 'type' | 'value' | 'defaultValue' | 'min' | 'max' | 'step'>;
|
|
5
|
+
/**
|
|
6
|
+
* Props del componente InputNumeric
|
|
7
|
+
* @description Input numérico con soporte para decimales, separadores de miles y controles de incremento/decremento
|
|
8
|
+
*/
|
|
9
|
+
export type InputNumericProps = {
|
|
10
|
+
/** Variante visual del input */
|
|
11
|
+
variant?: InputVariant;
|
|
12
|
+
/** Color temático del input (afecta el borde en focus) */
|
|
13
|
+
color?: InputColor;
|
|
14
|
+
/** Tamaño del input */
|
|
15
|
+
size?: InputSize;
|
|
16
|
+
/** Radio de bordes del input */
|
|
17
|
+
radius?: InputRadius;
|
|
18
|
+
/** Etiqueta del campo */
|
|
19
|
+
label?: ReactNode;
|
|
20
|
+
/** Placeholder del input */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** Valor controlado del input (número o undefined para no controlado) */
|
|
23
|
+
value?: number | '';
|
|
24
|
+
/** Valor inicial no controlado */
|
|
25
|
+
defaultValue?: number;
|
|
26
|
+
/** Descripción o texto de ayuda */
|
|
27
|
+
description?: ReactNode;
|
|
28
|
+
/** Mensaje de error personalizado */
|
|
29
|
+
errorMessage?: ReactNode | ((v: ResultadoValidacion) => ReactNode);
|
|
30
|
+
/** Contenido al inicio del input (iconos, prefijos como $) */
|
|
31
|
+
startContent?: ReactNode;
|
|
32
|
+
/** Contenido al final del input (sufijos como kg, %) */
|
|
33
|
+
endContent?: ReactNode;
|
|
34
|
+
/** Si el campo es requerido */
|
|
35
|
+
isRequired?: boolean;
|
|
36
|
+
/** Si el campo es de solo lectura */
|
|
37
|
+
isReadOnly?: boolean;
|
|
38
|
+
/** Si el campo está deshabilitado */
|
|
39
|
+
isDisabled?: boolean;
|
|
40
|
+
/** Si el campo es inválido (override manual) */
|
|
41
|
+
isInvalid?: boolean;
|
|
42
|
+
/** Estado de validación manual */
|
|
43
|
+
validationState?: 'valid' | 'invalid';
|
|
44
|
+
/** Función de validación personalizada */
|
|
45
|
+
validate?: (value: number | undefined) => ValidationResult;
|
|
46
|
+
/** Si el input ocupa todo el ancho */
|
|
47
|
+
fullWidth?: boolean;
|
|
48
|
+
/** Deshabilita animaciones */
|
|
49
|
+
disableAnimation?: boolean;
|
|
50
|
+
/** Valor mínimo permitido */
|
|
51
|
+
min?: number;
|
|
52
|
+
/** Valor máximo permitido */
|
|
53
|
+
max?: number;
|
|
54
|
+
/** Incremento al usar flechas o botones (default: 1) */
|
|
55
|
+
step?: number;
|
|
56
|
+
/** Número de decimales fijos (si se especifica, siempre muestra esa cantidad) */
|
|
57
|
+
decimalScale?: number;
|
|
58
|
+
/** Si fija los decimales (siempre muestra decimalScale decimales) */
|
|
59
|
+
fixedDecimalScale?: boolean;
|
|
60
|
+
/** Separador de miles (default: ',') */
|
|
61
|
+
thousandSeparator?: string | boolean;
|
|
62
|
+
/** Separador decimal (default: '.') */
|
|
63
|
+
decimalSeparator?: string;
|
|
64
|
+
/** Prefijo a mostrar (ej: '$') */
|
|
65
|
+
prefix?: string;
|
|
66
|
+
/** Sufijo a mostrar (ej: '%') */
|
|
67
|
+
suffix?: string;
|
|
68
|
+
/** Si permite valores negativos (default: true) */
|
|
69
|
+
allowNegative?: boolean;
|
|
70
|
+
/** Si permite decimales (default: true) */
|
|
71
|
+
allowDecimal?: boolean;
|
|
72
|
+
/** Si muestra los botones de incremento/decremento (default: true) */
|
|
73
|
+
hideControls?: boolean;
|
|
74
|
+
/** Si fija el valor al min/max cuando se excede (default: true) */
|
|
75
|
+
clampBehavior?: 'strict' | 'blur' | 'none';
|
|
76
|
+
/** Clases CSS personalizadas para cada parte */
|
|
77
|
+
classNames?: {
|
|
78
|
+
base?: string;
|
|
79
|
+
label?: string;
|
|
80
|
+
inputWrapper?: string;
|
|
81
|
+
innerWrapper?: string;
|
|
82
|
+
input?: string;
|
|
83
|
+
controls?: string;
|
|
84
|
+
controlButton?: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
errorMessage?: string;
|
|
87
|
+
};
|
|
88
|
+
/** Callback cuando cambia el valor numérico */
|
|
89
|
+
onChange?: (value: number | undefined) => void;
|
|
90
|
+
/** Callback cuando cambia el valor formateado (string) */
|
|
91
|
+
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
92
|
+
} & NativeInputProps;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
};
|
|
5
|
+
export declare const IconoCerrar: ({ size, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const IconoOjoAbierto: ({ size, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const IconoOjoCerrado: ({ size, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const IconoBuscar: ({ size, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|