lambda-ui-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +154 -0
- package/dist/main.css +1 -0
- package/dist/main.d.ts +3264 -0
- package/dist/main.mjs +21165 -0
- package/dist/main.umd.js +391 -0
- package/dist/vite.svg +1 -0
- package/package.json +104 -0
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,3264 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { CSSProperties } from 'react';
|
|
4
|
+
import { default as default_2 } from 'react';
|
|
5
|
+
import { Dispatch } from 'react';
|
|
6
|
+
import { FC } from 'react';
|
|
7
|
+
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
8
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
9
|
+
import { HTMLAttributeAnchorTarget } from 'react';
|
|
10
|
+
import { HTMLAttributes } from 'react';
|
|
11
|
+
import { HTMLMotionProps } from 'framer-motion';
|
|
12
|
+
import { InputHTMLAttributes } from 'react';
|
|
13
|
+
import { JSX } from 'react/jsx-runtime';
|
|
14
|
+
import { PropsWithChildren } from 'react';
|
|
15
|
+
import * as React_2 from 'react';
|
|
16
|
+
import { ReactNode } from 'react';
|
|
17
|
+
import { RefAttributes } from 'react';
|
|
18
|
+
import { RefObject } from 'react';
|
|
19
|
+
import { SetStateAction } from 'react';
|
|
20
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
21
|
+
import { VariantProps } from 'class-variance-authority';
|
|
22
|
+
|
|
23
|
+
export declare const Accordion: default_2.ForwardRefExoticComponent<AccordionProps & default_2.RefAttributes<HTMLDivElement>> & {
|
|
24
|
+
Item: default_2.ForwardRefExoticComponent<AccordionItemProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
Header: default_2.ForwardRefExoticComponent<AccordionHeaderProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
Content: default_2.ForwardRefExoticComponent<AccordionContentProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
declare interface AccordionContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
/**
|
|
31
|
+
* El contenido del panel del item (el contenido expandible/colapsable).
|
|
32
|
+
*/
|
|
33
|
+
children: default_2.ReactNode;
|
|
34
|
+
size?: AccordionVariants["size"];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare interface AccordionHeaderProps extends HTMLAttributes<HTMLButtonElement> {
|
|
38
|
+
/**
|
|
39
|
+
* El contenido del encabezado del item (el texto clickeable).
|
|
40
|
+
*/
|
|
41
|
+
children: default_2.ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Si es true, este item está deshabilitado y no se puede expandir/colapsar.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Opcional: Tamaño visual del Accordion.
|
|
49
|
+
* @type `AccordionSize`
|
|
50
|
+
* @default `medium`
|
|
51
|
+
*/
|
|
52
|
+
size?: AccordionVariants["size"];
|
|
53
|
+
/**
|
|
54
|
+
* Opcional: Variante visual del Accordion.
|
|
55
|
+
*/
|
|
56
|
+
variant?: AccordionVariants["variant"];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
60
|
+
/**
|
|
61
|
+
* Un valor único que identifica este item dentro del Accordion padre.
|
|
62
|
+
* Se usa para controlar su estado abierto/cerrado. Requerido.
|
|
63
|
+
*/
|
|
64
|
+
value: string | number;
|
|
65
|
+
/**
|
|
66
|
+
* Los hijos del AccordionItem. Deben ser `AccordionHeader` y `AccordionContent`.
|
|
67
|
+
*/
|
|
68
|
+
children: default_2.ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Si es true, este item está deshabilitado y no se puede expandir/colapsar.
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> {
|
|
77
|
+
/**
|
|
78
|
+
* El/los valor(es) del AccordionItem que está/n actualmente abierto(s).
|
|
79
|
+
* Para un Accordion single-open (predeterminado), es un único valor (string | number)
|
|
80
|
+
* o null/undefined si ninguno está abierto.
|
|
81
|
+
* Usar con `onValueChange` para un componente controlado.
|
|
82
|
+
*/
|
|
83
|
+
value?: AccordionValue;
|
|
84
|
+
/**
|
|
85
|
+
* El valor del AccordionItem que debe estar abierto por defecto (al montar)
|
|
86
|
+
* cuando el componente es no controlado.
|
|
87
|
+
* Para un Accordion single-open (predeterminado), es un único valor.
|
|
88
|
+
*/
|
|
89
|
+
defaultValue?: AccordionValue;
|
|
90
|
+
/**
|
|
91
|
+
* Callback llamado cuando el estado de un AccordionItem cambia (se abre o cierra).
|
|
92
|
+
* Recibe el nuevo valor del item abierto (o null/undefined si se cierra).
|
|
93
|
+
* Usar con `value` para un componente controlado.
|
|
94
|
+
*/
|
|
95
|
+
onValueChange?: (value: AccordionValue) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Los hijos del Accordion. Deben ser `AccordionItem` componentes.
|
|
98
|
+
*/
|
|
99
|
+
children: default_2.ReactNode;
|
|
100
|
+
/**
|
|
101
|
+
* Opcional: Indica si se permite tener múltiples items abiertos simultáneamente.
|
|
102
|
+
* (Implementación de single-open por ahora, esta prop no afectará hasta implementarla).
|
|
103
|
+
* @default false (para single-open)
|
|
104
|
+
*/
|
|
105
|
+
/**
|
|
106
|
+
* Opcional: Tamaño visual del Accordion.
|
|
107
|
+
* @type `AccordionSize`
|
|
108
|
+
* @default `medium`
|
|
109
|
+
*/
|
|
110
|
+
size?: AccordionVariants["size"];
|
|
111
|
+
/**
|
|
112
|
+
* Opcional: Variante visual del Accordion.
|
|
113
|
+
*/
|
|
114
|
+
variant?: AccordionVariants["variant"];
|
|
115
|
+
/**
|
|
116
|
+
* Opcional: Radio visual del Accordion.
|
|
117
|
+
*/
|
|
118
|
+
radius?: AccordionVariants["radius"];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare type AccordionValue = string | number | null | undefined;
|
|
122
|
+
|
|
123
|
+
declare type AccordionVariants = VariantProps<typeof accordionVariants>;
|
|
124
|
+
|
|
125
|
+
declare const accordionVariants: (props?: ({
|
|
126
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
127
|
+
variant?: "default" | "flush" | "split" | "soft" | null | undefined;
|
|
128
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
129
|
+
} & ClassProp) | undefined) => string;
|
|
130
|
+
|
|
131
|
+
export declare const Alert: default_2.ForwardRefExoticComponent<AlertProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
132
|
+
|
|
133
|
+
declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
134
|
+
/**
|
|
135
|
+
* Define la variante visual del alert, afectando típicamente el color de fondo y texto.
|
|
136
|
+
* Corresponde a los tipos semánticos de alerta.
|
|
137
|
+
*/
|
|
138
|
+
color?: AlertVariants["color"];
|
|
139
|
+
/**
|
|
140
|
+
* Define la variante visual del alert, afectando típicamente el color de fondo y texto.
|
|
141
|
+
* Corresponde a los tipos semánticos de alerta.
|
|
142
|
+
*/
|
|
143
|
+
variant?: AlertVariants["variant"];
|
|
144
|
+
/**
|
|
145
|
+
* El texto que representa el titulo del contenido.
|
|
146
|
+
*/
|
|
147
|
+
title?: string;
|
|
148
|
+
/**
|
|
149
|
+
* El contenido del mensaje del alert.
|
|
150
|
+
*/
|
|
151
|
+
message: string;
|
|
152
|
+
/**
|
|
153
|
+
* Opcional: Callback que se llama cuando se hace clic en el botón de cerrar (si se muestra).
|
|
154
|
+
* Si se proporciona este callback, se mostrará un botón de cerrar.
|
|
155
|
+
*/
|
|
156
|
+
onClose?: () => void;
|
|
157
|
+
/**
|
|
158
|
+
* Modifica el tamaño de la Alert
|
|
159
|
+
* @default small
|
|
160
|
+
*/
|
|
161
|
+
size?: AlertVariants["size"];
|
|
162
|
+
/**
|
|
163
|
+
* Modifica el radio de la Alert
|
|
164
|
+
* @default small
|
|
165
|
+
*/
|
|
166
|
+
radius?: AlertVariants["radius"];
|
|
167
|
+
/**
|
|
168
|
+
* Si es `true`, se mostrará un icono por defecto basado en la variante (success, danger, warning, info).
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
showIcon?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Opcional: Un elemento React para usar como icono, sobrescribiendo el icono por defecto.
|
|
174
|
+
* Solo se mostrará si `showIcon` es `true` o si prefieres controlarlo internamente.
|
|
175
|
+
* (Decidimos: solo si `showIcon` es true O `customIcon` es proporcionado directamente).
|
|
176
|
+
* Si `customIcon` se proporciona, tiene prioridad sobre el icono por defecto.
|
|
177
|
+
*/
|
|
178
|
+
customIcon?: default_2.ReactNode;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare type AlertVariants = VariantProps<typeof alertVariants>;
|
|
182
|
+
|
|
183
|
+
declare const alertVariants: (props?: ({
|
|
184
|
+
variant?: "soft" | "solid" | "outline" | null | undefined;
|
|
185
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
186
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
187
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
188
|
+
} & ClassProp) | undefined) => string;
|
|
189
|
+
|
|
190
|
+
declare type AlignItems = "flex-start" | "flex-end" | "center" | "end" | "start" | "self-end" | "self-start" | "baseline" | "stretch" | "normal" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-initial";
|
|
191
|
+
|
|
192
|
+
declare type AllThemes = LightTheme | DarkTheme | "system";
|
|
193
|
+
|
|
194
|
+
declare type Attribute = DataAttribute | "class";
|
|
195
|
+
|
|
196
|
+
export declare const Avatar: default_2.FC<AvatarProps> & {
|
|
197
|
+
Group: default_2.FC<AvatarGroupProps>;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
declare interface AvatarGroupProps {
|
|
201
|
+
/**
|
|
202
|
+
* Array of user objects to display as avatars.
|
|
203
|
+
* Each user should have a name and optionally an image src.
|
|
204
|
+
*/
|
|
205
|
+
users: {
|
|
206
|
+
name: string;
|
|
207
|
+
src?: string;
|
|
208
|
+
}[];
|
|
209
|
+
/**
|
|
210
|
+
* Maximum number of avatars to display.
|
|
211
|
+
* Remaining avatars will be shown as a "+N" indicator.
|
|
212
|
+
* @default 5
|
|
213
|
+
*/
|
|
214
|
+
max?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Size of all avatars in the group.
|
|
217
|
+
* @default "medium"
|
|
218
|
+
*/
|
|
219
|
+
size?: AvatarVariants["size"];
|
|
220
|
+
/**
|
|
221
|
+
* Additional CSS class name for custom styling.
|
|
222
|
+
*/
|
|
223
|
+
className?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Inline styles to apply to the avatar group container.
|
|
226
|
+
*/
|
|
227
|
+
style?: React.CSSProperties;
|
|
228
|
+
/**
|
|
229
|
+
* Additional content to render after the avatars.
|
|
230
|
+
*/
|
|
231
|
+
children?: ReactNode;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare interface AvatarProps {
|
|
235
|
+
/**
|
|
236
|
+
* Name of the user. Used to generate initials when no image is provided.
|
|
237
|
+
* The initials are automatically generated from the first letters of the name.
|
|
238
|
+
*/
|
|
239
|
+
name: string;
|
|
240
|
+
/**
|
|
241
|
+
* Image URL for the avatar. If provided, displays the image instead of initials.
|
|
242
|
+
*/
|
|
243
|
+
src?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Size of the avatar.
|
|
246
|
+
* @default "medium"
|
|
247
|
+
*/
|
|
248
|
+
size?: AvatarVariants["size"];
|
|
249
|
+
/**
|
|
250
|
+
* Additional CSS class name for custom styling.
|
|
251
|
+
*/
|
|
252
|
+
className?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Inline styles to apply to the avatar.
|
|
255
|
+
*/
|
|
256
|
+
style?: React.CSSProperties;
|
|
257
|
+
/**
|
|
258
|
+
* Enable hover and tap animations.
|
|
259
|
+
* @default false
|
|
260
|
+
*/
|
|
261
|
+
animate?: boolean;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare type AvatarVariants = VariantProps<typeof avatarVariants>;
|
|
265
|
+
|
|
266
|
+
declare const avatarVariants: (props?: ({
|
|
267
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
268
|
+
overflow?: boolean | null | undefined;
|
|
269
|
+
} & ClassProp) | undefined) => string;
|
|
270
|
+
|
|
271
|
+
export declare const Badge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLDivElement>>;
|
|
272
|
+
|
|
273
|
+
declare interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "size" | "disabled" | "checked" | "color"> {
|
|
274
|
+
/**
|
|
275
|
+
* Controla el tamaño visual del badge.
|
|
276
|
+
*/
|
|
277
|
+
size?: BadgeVariants["size"];
|
|
278
|
+
/**
|
|
279
|
+
* Establece el esquema de color para el badge, típicamente afectando el color cuando está activado.
|
|
280
|
+
*/
|
|
281
|
+
color?: BadgeVariants["color"];
|
|
282
|
+
/**
|
|
283
|
+
* Define el texto que se muestra en el badge.
|
|
284
|
+
*/
|
|
285
|
+
/**
|
|
286
|
+
* Define el radio del badge.
|
|
287
|
+
*/
|
|
288
|
+
radius?: BadgeVariants["radius"];
|
|
289
|
+
/**
|
|
290
|
+
* Define el texto que se muestra en el badge.
|
|
291
|
+
*/
|
|
292
|
+
text?: string;
|
|
293
|
+
/**
|
|
294
|
+
* Define el número que se muestra en el badge, si no se define no se muestra.
|
|
295
|
+
*/
|
|
296
|
+
count?: number;
|
|
297
|
+
/**
|
|
298
|
+
* Define el número máximo que se muestra en el badge, si count supera este número se muestra el valor de maxCount.
|
|
299
|
+
*/
|
|
300
|
+
maxCount?: number;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare const badgeStyles: (props?: ({
|
|
304
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
305
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
306
|
+
color?: "default" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
307
|
+
hasCount?: boolean | null | undefined;
|
|
308
|
+
hasText?: boolean | null | undefined;
|
|
309
|
+
} & ClassProp) | undefined) => string;
|
|
310
|
+
|
|
311
|
+
declare type BadgeVariants = VariantProps<typeof badgeStyles>;
|
|
312
|
+
|
|
313
|
+
declare interface BaseSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange" | "onInput" | "defaultValue" | "color"> {
|
|
314
|
+
/**
|
|
315
|
+
* Allows customizing how the slider value is displayed (tooltip/handle label).
|
|
316
|
+
* Receives the numeric value and must return a string or number to show.
|
|
317
|
+
*/
|
|
318
|
+
formatValue?: (value: number) => string | number;
|
|
319
|
+
/**
|
|
320
|
+
* The minimum allowed value of the slider range.
|
|
321
|
+
* @default 0
|
|
322
|
+
*/
|
|
323
|
+
min?: number;
|
|
324
|
+
/**
|
|
325
|
+
* The maximum allowed value of the slider range.
|
|
326
|
+
* @default 100
|
|
327
|
+
*/
|
|
328
|
+
max?: number;
|
|
329
|
+
/**
|
|
330
|
+
* The amount the value increases or decreases with each movement.
|
|
331
|
+
* Must be positive. If set to 0, any value between min and max is allowed.
|
|
332
|
+
* @default 1
|
|
333
|
+
*/
|
|
334
|
+
step?: number;
|
|
335
|
+
/**
|
|
336
|
+
* Disables user interaction with the slider.
|
|
337
|
+
* @default false
|
|
338
|
+
*/
|
|
339
|
+
disabled?: boolean;
|
|
340
|
+
/**
|
|
341
|
+
* Controls the size of the slider (track and thumb).
|
|
342
|
+
* @default "medium"
|
|
343
|
+
*/
|
|
344
|
+
size?: SliderSize;
|
|
345
|
+
/**
|
|
346
|
+
* Optional label describing the slider.
|
|
347
|
+
* Rendered as a <label> when provided.
|
|
348
|
+
*/
|
|
349
|
+
label?: string;
|
|
350
|
+
/**
|
|
351
|
+
* The color of the slider fill.
|
|
352
|
+
* @default "primary"
|
|
353
|
+
*/
|
|
354
|
+
color?: SliderTrackVariants["color"];
|
|
355
|
+
/**
|
|
356
|
+
* Whether the current value should be visible on the slider (e.g., tooltip).
|
|
357
|
+
* @default true
|
|
358
|
+
*/
|
|
359
|
+
viewValue?: boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Whether the filled progress bar should be visible.
|
|
362
|
+
* @default true
|
|
363
|
+
*/
|
|
364
|
+
viewBar?: boolean;
|
|
365
|
+
/**
|
|
366
|
+
* Marks displayed along the slider track.
|
|
367
|
+
* Each mark can optionally show a label.
|
|
368
|
+
*/
|
|
369
|
+
marks?: SliderMarks[];
|
|
370
|
+
/**
|
|
371
|
+
* Orientation of the slider: horizontal or vertical.
|
|
372
|
+
* @default "horizontal"
|
|
373
|
+
*/
|
|
374
|
+
orientation?: SliderTrackVariants["orientation"];
|
|
375
|
+
/**
|
|
376
|
+
* Controls how rounded the track and thumb should be.
|
|
377
|
+
*/
|
|
378
|
+
radius?: SliderTrackVariants["radius"];
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export declare const Breadcrumb: ForwardRefExoticComponent<BreadcrumbProps & RefAttributes<HTMLElement>>;
|
|
382
|
+
|
|
383
|
+
declare interface BreadcrumbItem {
|
|
384
|
+
/**
|
|
385
|
+
* Label of the breadcrumb item
|
|
386
|
+
*/
|
|
387
|
+
label: string;
|
|
388
|
+
/**
|
|
389
|
+
* URL of the breadcrumb item
|
|
390
|
+
*/
|
|
391
|
+
href: string;
|
|
392
|
+
/**
|
|
393
|
+
* Icon of the breadcrumb item
|
|
394
|
+
*/
|
|
395
|
+
icon?: React.ReactNode;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
declare interface BreadcrumbProps {
|
|
399
|
+
/**
|
|
400
|
+
* Array of breadcrumb items
|
|
401
|
+
*/
|
|
402
|
+
items: BreadcrumbItem[];
|
|
403
|
+
/**
|
|
404
|
+
* Size of the breadcrumb
|
|
405
|
+
*/
|
|
406
|
+
size?: BreadcrumbVariants["size"];
|
|
407
|
+
/**
|
|
408
|
+
* Radius of the breadcrumb
|
|
409
|
+
*/
|
|
410
|
+
radius?: BreadcrumbVariants["radius"];
|
|
411
|
+
/**
|
|
412
|
+
* Variant of the breadcrumb separator
|
|
413
|
+
*/
|
|
414
|
+
variant?: BreadcrumbVariants["variant"];
|
|
415
|
+
/**
|
|
416
|
+
* Color of the breadcrumb
|
|
417
|
+
*/
|
|
418
|
+
color?: BreadcrumbVariants["color"];
|
|
419
|
+
/**
|
|
420
|
+
* Maximun number of items to show
|
|
421
|
+
*/
|
|
422
|
+
maxItems?: number;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare type BreadcrumbVariants = VariantProps<typeof variantBreadcrumbItem>;
|
|
426
|
+
|
|
427
|
+
declare interface Breakpoint {
|
|
428
|
+
/**
|
|
429
|
+
* Ancho mínimo de la ventana en píxeles para aplicar esta configuración.
|
|
430
|
+
* Los puntos de ruptura deben estar ordenados de menor a mayor.
|
|
431
|
+
*/
|
|
432
|
+
breakpoint: number;
|
|
433
|
+
/**
|
|
434
|
+
* Número de items visibles a la vez en este punto de ruptura.
|
|
435
|
+
*/
|
|
436
|
+
items: number;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
440
|
+
|
|
441
|
+
declare const button: (props?: ({
|
|
442
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
443
|
+
variant?: "soft" | "text" | "dashed" | "solid" | "outline" | "classic" | "subtle" | "unstyled" | null | undefined;
|
|
444
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
445
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
446
|
+
block?: boolean | null | undefined;
|
|
447
|
+
isCircle?: boolean | null | undefined;
|
|
448
|
+
iconPosition?: "left" | "right" | null | undefined;
|
|
449
|
+
loading?: boolean | null | undefined;
|
|
450
|
+
disabled?: boolean | null | undefined;
|
|
451
|
+
joinposition?: "middle" | "first" | "last" | "single" | null | undefined;
|
|
452
|
+
onlyIcon?: boolean | null | undefined;
|
|
453
|
+
} & ClassProp) | undefined) => string;
|
|
454
|
+
|
|
455
|
+
declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> {
|
|
456
|
+
/**
|
|
457
|
+
* Define el estilo visual principal del botón (por ejemplo, sólido, delineado, transparente).
|
|
458
|
+
*/
|
|
459
|
+
variant?: ButtonVariants["variant"];
|
|
460
|
+
/**
|
|
461
|
+
* Establece el esquema de color del botón (por ejemplo, primario, secundario, peligro).
|
|
462
|
+
*/
|
|
463
|
+
color?: ButtonVariants["color"];
|
|
464
|
+
/**
|
|
465
|
+
* Controla el tamaño visual del botón, afectando el padding y el tamaño del texto/icono.
|
|
466
|
+
*/
|
|
467
|
+
size?: ButtonVariants["size"];
|
|
468
|
+
/**
|
|
469
|
+
* Define el radio del botón.
|
|
470
|
+
*/
|
|
471
|
+
radius?: ButtonVariants["radius"];
|
|
472
|
+
/**
|
|
473
|
+
* Define si el botón ocupa todo el ancho disponible (cuando es true) o normal (cuando es false).
|
|
474
|
+
*/
|
|
475
|
+
block?: ButtonVariants["block"];
|
|
476
|
+
/**
|
|
477
|
+
* Define si el botón es circular (cuando es true) o normal (cuando es false).
|
|
478
|
+
*/
|
|
479
|
+
isCircle?: ButtonVariants["isCircle"];
|
|
480
|
+
/**
|
|
481
|
+
* Controla la posición de un icono (`icon`) en relación con la etiqueta (`label`) del botón.
|
|
482
|
+
*/
|
|
483
|
+
iconPosition?: ButtonVariants["iconPosition"];
|
|
484
|
+
/**
|
|
485
|
+
* Activa un estado visual de carga para el botón, típicamente mostrando un spinner y deshabilitando la interacción.
|
|
486
|
+
*/
|
|
487
|
+
loading?: ButtonVariants["loading"];
|
|
488
|
+
/**
|
|
489
|
+
* Un elemento React (como un icono) para mostrar dentro del botón.
|
|
490
|
+
*/
|
|
491
|
+
icon?: ReactNode | undefined | null;
|
|
492
|
+
/**
|
|
493
|
+
* El texto principal que se muestra dentro del botón.
|
|
494
|
+
*/
|
|
495
|
+
label?: string;
|
|
496
|
+
/**
|
|
497
|
+
* Texto que se muestra en lugar de la etiqueta (`label`) cuando el botón está en estado de carga (`loading`).
|
|
498
|
+
*/
|
|
499
|
+
loadingText?: string;
|
|
500
|
+
/**
|
|
501
|
+
* Una etiqueta para accesibilidad (ARIA). Proporciona una descripción concisa para lectores de pantalla, especialmente útil si el botón solo contiene un icono.
|
|
502
|
+
*/
|
|
503
|
+
"aria-label"?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Indica la posición del hijo dentro del Join(Si el botón está dentro de un Join).
|
|
506
|
+
*/
|
|
507
|
+
joinposition?: "first" | "last" | "middle";
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export declare const ButtonTheme: default_2.FC<ButtonThemeProps>;
|
|
511
|
+
|
|
512
|
+
declare type ButtonThemeAnimation = "fade" | "rotate" | "scale" | "flip" | "slide" | "none";
|
|
513
|
+
|
|
514
|
+
declare interface ButtonThemeProps extends ButtonProps {
|
|
515
|
+
/**
|
|
516
|
+
* Tipo de animación al cambiar el icono del tema
|
|
517
|
+
*/
|
|
518
|
+
animation?: ButtonThemeAnimation;
|
|
519
|
+
/**
|
|
520
|
+
* Otros props que quieras pasar al botón base
|
|
521
|
+
*/
|
|
522
|
+
[key: string]: any;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare type ButtonVariants = VariantProps<typeof button>;
|
|
526
|
+
|
|
527
|
+
export declare const Calendar: ({ value, onChange, minDate, maxDate, disabled, events, variant, isDateDisabled, }: CalendarProps) => JSX.Element;
|
|
528
|
+
|
|
529
|
+
declare interface CalendarEvents {
|
|
530
|
+
date: Date;
|
|
531
|
+
label: string[];
|
|
532
|
+
status: CalendarEventStatus[];
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare type CalendarEventStatus = "success" | "warning" | "danger";
|
|
536
|
+
|
|
537
|
+
declare interface CalendarProps {
|
|
538
|
+
/**
|
|
539
|
+
* Fecha actualmente seleccionada
|
|
540
|
+
*/
|
|
541
|
+
value?: Date;
|
|
542
|
+
/**
|
|
543
|
+
* Callback cuando cambia la fecha seleccionada
|
|
544
|
+
*/
|
|
545
|
+
onChange?: (date: Date) => void;
|
|
546
|
+
/**
|
|
547
|
+
* Fecha mínima seleccionable
|
|
548
|
+
*/
|
|
549
|
+
minDate?: Date;
|
|
550
|
+
/**
|
|
551
|
+
* Fecha máxima seleccionable
|
|
552
|
+
*/
|
|
553
|
+
maxDate?: Date;
|
|
554
|
+
/**
|
|
555
|
+
* Deshabilita el calendario
|
|
556
|
+
*/
|
|
557
|
+
disabled?: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Permite personalizar la variante visual
|
|
560
|
+
*/
|
|
561
|
+
variant?: CalendarVariants["variant"];
|
|
562
|
+
/**
|
|
563
|
+
* Permite deshabilitar días específicos
|
|
564
|
+
*/
|
|
565
|
+
isDateDisabled?: (date: Date) => boolean;
|
|
566
|
+
/**
|
|
567
|
+
* Permite personalizar los eventos del calendario
|
|
568
|
+
*/
|
|
569
|
+
events?: CalendarEvents[];
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare type CalendarVariants = VariantProps<typeof calendarVariants>;
|
|
573
|
+
|
|
574
|
+
declare const calendarVariants: (props?: ({
|
|
575
|
+
variant?: "soft" | "solid" | null | undefined;
|
|
576
|
+
} & ClassProp) | undefined) => string;
|
|
577
|
+
|
|
578
|
+
export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement>>;
|
|
579
|
+
|
|
580
|
+
declare const card: (props?: ({
|
|
581
|
+
variant?: "outline" | "borderless" | null | undefined;
|
|
582
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
583
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
584
|
+
} & ClassProp) | undefined) => string;
|
|
585
|
+
|
|
586
|
+
declare interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, "disabled" | "color"> {
|
|
587
|
+
/**
|
|
588
|
+
* Opcional: Configuración para la sección de imagen de la tarjeta.
|
|
589
|
+
*/
|
|
590
|
+
image?: ICardImage;
|
|
591
|
+
/**
|
|
592
|
+
* Opcional: Configuración para la sección de encabezado de la tarjeta.
|
|
593
|
+
*/
|
|
594
|
+
header?: ICardHeader;
|
|
595
|
+
/**
|
|
596
|
+
* Opcional: Un array de objetos que definen las acciones disponibles en la tarjeta en el pie de la card.
|
|
597
|
+
*/
|
|
598
|
+
actions?: ICardActions[];
|
|
599
|
+
/**
|
|
600
|
+
* Define la variante visual principal de la tarjeta.
|
|
601
|
+
*/
|
|
602
|
+
variant?: VariantProps<typeof card>["variant"];
|
|
603
|
+
/**
|
|
604
|
+
* Define el tamaño de la tarjeta, afectando dimensiones, espaciado interno (padding) y quizás el tamaño de otros elementos internos.
|
|
605
|
+
*/
|
|
606
|
+
size?: CardVariants["size"];
|
|
607
|
+
/**
|
|
608
|
+
* Define el radio de la tarjeta, afectando dimensiones, espaciado interno (padding) y quizás el tamaño de otros elementos internos.
|
|
609
|
+
*/
|
|
610
|
+
radius?: CardVariants["radius"];
|
|
611
|
+
/**
|
|
612
|
+
* El contenido principal de la tarjeta. Este es el área donde se coloca el contenido principal
|
|
613
|
+
* de la tarjeta (texto, otros componentes, etc.). Se pasa como children del componente.
|
|
614
|
+
*/
|
|
615
|
+
children: React.ReactNode;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
declare type CardVariants = VariantProps<typeof card>;
|
|
619
|
+
|
|
620
|
+
export declare const Carousel: ForwardRefExoticComponent<CarouselProps & RefAttributes<HTMLDivElement>>;
|
|
621
|
+
|
|
622
|
+
declare type CarouselDotType = 'circle' | 'line' | 'square' | 'number';
|
|
623
|
+
|
|
624
|
+
declare type CarouselOrientation = 'horizontal' | 'vertical';
|
|
625
|
+
|
|
626
|
+
declare type CarouselPaginationType = 'dots' | 'thumbnail';
|
|
627
|
+
|
|
628
|
+
declare interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
|
|
629
|
+
/**
|
|
630
|
+
* Los elementos o componentes que se mostrarán dentro del carrusel.
|
|
631
|
+
* Cada hijo directo será tratado como un item del carrusel.
|
|
632
|
+
*/
|
|
633
|
+
children: default_2.ReactNode;
|
|
634
|
+
/**
|
|
635
|
+
* Opcional: Configuración de puntos de ruptura responsivos.
|
|
636
|
+
* Un array de objetos { breakpoint: number, items: number }, ordenado por breakpoint.
|
|
637
|
+
* Define cuántos items se muestran en diferentes tamaños de pantalla.
|
|
638
|
+
* Si no se proporciona, por defecto muestra 1 item.
|
|
639
|
+
* Ejemplo: [{ breakpoint: 0, items: 1 }, { breakpoint: 768, items: 2 }, { breakpoint: 1200, items: 3 }]
|
|
640
|
+
*/
|
|
641
|
+
breakpoints?: Breakpoint[];
|
|
642
|
+
/**
|
|
643
|
+
* Opcional: Velocidad de la transición de desplazamiento en milisegundos.
|
|
644
|
+
* Debe coincidir con la duración de la transición CSS `scroll-behavior: smooth`.
|
|
645
|
+
* @default 300
|
|
646
|
+
*/
|
|
647
|
+
transitionDuration?: number;
|
|
648
|
+
/**
|
|
649
|
+
* Opcional: Define la orientación del carrusel (horizontal o vertical).
|
|
650
|
+
* @default 'horizontal'
|
|
651
|
+
*/
|
|
652
|
+
orientation?: CarouselOrientation;
|
|
653
|
+
/**
|
|
654
|
+
* Determina cómo avanza el carrusel al navegar (botones) o durante la reproducción automática.
|
|
655
|
+
* - 'auto': Avanza por el número de ítems visibles en el breakpoint actual.
|
|
656
|
+
* - 'single': Avanza de un ítem en uno, independientemente de cuántos sean visibles.
|
|
657
|
+
* @default 'auto'
|
|
658
|
+
*/
|
|
659
|
+
slideMode?: CarouselSliderMode;
|
|
660
|
+
/**
|
|
661
|
+
* Habilita o deshabilita la reproducción automática del carrusel.
|
|
662
|
+
* Cuando está habilitado, el carrusel avanza automáticamente a la siguiente diapositiva
|
|
663
|
+
* @default false
|
|
664
|
+
*/
|
|
665
|
+
autoPlay?: boolean;
|
|
666
|
+
/**
|
|
667
|
+
* Especifica el tipo visual o la forma de los puntos de paginación.
|
|
668
|
+
* * Solo relevante si `paginationType` es 'dots'.
|
|
669
|
+
* @default 'circle'
|
|
670
|
+
*/
|
|
671
|
+
dotType?: CarouselDotType;
|
|
672
|
+
/**
|
|
673
|
+
* Especifica el tipo de indicadores de paginación a usar.
|
|
674
|
+
* - 'dots': Utiliza los indicadores de puntos estándar (requiere `showPagination` true).
|
|
675
|
+
* - 'thumbnail': Utiliza thumbnail extraídas de los ítems hijos como indicadores
|
|
676
|
+
* @default 'dots'
|
|
677
|
+
*/
|
|
678
|
+
paginationType?: CarouselPaginationType;
|
|
679
|
+
/**
|
|
680
|
+
* Si es `true`, muestra los botones de navegación "Anterior" y "Siguiente".
|
|
681
|
+
* @default true
|
|
682
|
+
*/
|
|
683
|
+
showNavigationButtons?: boolean;
|
|
684
|
+
/**
|
|
685
|
+
* Si es `true`, el carrusel se desplazará infinitamente (modo looping).
|
|
686
|
+
* Requiere duplicar items visualmente al inicio y al final.
|
|
687
|
+
* @default false
|
|
688
|
+
*/
|
|
689
|
+
loop?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* Si es `true`, muestra los indicadores de paginación (puntos).
|
|
692
|
+
* @default true
|
|
693
|
+
*/
|
|
694
|
+
showPagination?: boolean;
|
|
695
|
+
/**
|
|
696
|
+
* Opcional: Etiqueta ARIA para el contenedor principal del carrusel, necesaria si role="region".
|
|
697
|
+
*/
|
|
698
|
+
'aria-label'?: string;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
declare type CarouselSliderMode = 'auto' | 'single';
|
|
702
|
+
|
|
703
|
+
export declare const Checkbox: ForwardRefExoticComponent<CheckBoxProps & RefAttributes<HTMLInputElement>>;
|
|
704
|
+
|
|
705
|
+
declare const checkboxContainerVariants: (props?: ({
|
|
706
|
+
positionLabel?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
707
|
+
disabled?: boolean | null | undefined;
|
|
708
|
+
} & ClassProp) | undefined) => string;
|
|
709
|
+
|
|
710
|
+
declare interface CheckBoxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "color" | "type"> {
|
|
711
|
+
/**
|
|
712
|
+
* Controla si el checkbox está activado (`true`) o desactivado (`false`).
|
|
713
|
+
* Usar esta prop hace que el componente sea controlado.
|
|
714
|
+
* @default false
|
|
715
|
+
*/
|
|
716
|
+
checked?: boolean;
|
|
717
|
+
/**
|
|
718
|
+
* Callback simple que se ejecuta cada vez que el estado del checkbox cambia (de activado a desactivado o viceversa).
|
|
719
|
+
* Recibe el nuevo valor booleano.
|
|
720
|
+
*/
|
|
721
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
722
|
+
/**
|
|
723
|
+
* Callback que se ejecuta con el evento nativo de cambio del input.
|
|
724
|
+
*/
|
|
725
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
726
|
+
/**
|
|
727
|
+
* Controla el tamaño visual del control de la casilla de verificación.
|
|
728
|
+
*/
|
|
729
|
+
size?: CheckboxVariants["size"];
|
|
730
|
+
/**
|
|
731
|
+
* Define el estilo visual de la casilla de verificación, como la apariencia de la caja y la marca de verificación.
|
|
732
|
+
*/
|
|
733
|
+
variant?: CheckboxVariants["variant"];
|
|
734
|
+
/**
|
|
735
|
+
* Ajusta la redondez de las esquinas de la caja de la casilla de verificación.
|
|
736
|
+
*/
|
|
737
|
+
radius?: CheckboxVariants["radius"];
|
|
738
|
+
/**
|
|
739
|
+
* Establece el esquema de color para la casilla de verificación, típicamente afectando el color de la marca de verificación cuando está marcada.
|
|
740
|
+
*/
|
|
741
|
+
color?: CheckboxVariants["color"];
|
|
742
|
+
/**
|
|
743
|
+
* Controla dónde se coloca la etiqueta de texto (`label`) en relación con el control de la casilla (por ejemplo, a la izquierda o a la derecha).
|
|
744
|
+
*/
|
|
745
|
+
positionLabel?: ContainerVariants["positionLabel"];
|
|
746
|
+
/**
|
|
747
|
+
* El texto que se muestra junto al control de la casilla, asociado semánticamente a él.
|
|
748
|
+
*/
|
|
749
|
+
label?: string;
|
|
750
|
+
/**
|
|
751
|
+
* Deshabilita la casilla de verificación, impidiendo que el usuario cambie su estado y cambiando su apariencia para indicar que no está disponible.
|
|
752
|
+
* @default false
|
|
753
|
+
*/
|
|
754
|
+
disabled?: boolean;
|
|
755
|
+
/**
|
|
756
|
+
* Marca el checkbox como requerido, lo que implica que debe estar marcado para que el formulario sea válido.
|
|
757
|
+
* @default false
|
|
758
|
+
*/
|
|
759
|
+
required?: boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Marca el checkbox como inválido, lo que implica que el formulario no es válido.
|
|
762
|
+
* @default false
|
|
763
|
+
*/
|
|
764
|
+
invalid?: boolean;
|
|
765
|
+
/**
|
|
766
|
+
* Icono personalizado que se muestra en la casilla de verificación cuando está marcada.
|
|
767
|
+
*/
|
|
768
|
+
icon?: React.ReactNode;
|
|
769
|
+
/**
|
|
770
|
+
* Indica la posición de la casilla de verificación dentro de un grupo de casillas de verificación (Join).
|
|
771
|
+
* @default "middle"
|
|
772
|
+
*/
|
|
773
|
+
joinposition?: "first" | "middle" | "last";
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
declare type CheckboxVariants = VariantProps<typeof checkboxWrapperVariants>;
|
|
777
|
+
|
|
778
|
+
declare const checkboxWrapperVariants: (props?: ({
|
|
779
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
780
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
781
|
+
variant?: "soft" | "solid" | "outline" | null | undefined;
|
|
782
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
783
|
+
disabled?: boolean | null | undefined;
|
|
784
|
+
checked?: boolean | null | undefined;
|
|
785
|
+
join?: boolean | null | undefined;
|
|
786
|
+
joinposition?: "middle" | "first" | "last" | "single" | null | undefined;
|
|
787
|
+
invalid?: boolean | null | undefined;
|
|
788
|
+
} & ClassProp) | undefined) => string;
|
|
789
|
+
|
|
790
|
+
export declare const ClientOnly: {
|
|
791
|
+
({ children, fallback }: ClientOnlyProps): JSX.Element;
|
|
792
|
+
displayName: string;
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
declare interface ClientOnlyProps {
|
|
796
|
+
children: React.ReactNode;
|
|
797
|
+
fallback?: React.ReactNode;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export declare const CodeBlock: default_2.FC<CodeBlockProps>;
|
|
801
|
+
|
|
802
|
+
declare interface CodeBlockProps {
|
|
803
|
+
/**
|
|
804
|
+
* Theme for code block: 'light' (default) or 'dark'
|
|
805
|
+
*/
|
|
806
|
+
theme?: "light" | "dark";
|
|
807
|
+
/**
|
|
808
|
+
* The code to be displayed
|
|
809
|
+
*/
|
|
810
|
+
code?: string;
|
|
811
|
+
/**
|
|
812
|
+
* The language of the code
|
|
813
|
+
*/
|
|
814
|
+
language?: string;
|
|
815
|
+
/**
|
|
816
|
+
* Líneas a resaltar, formato: '2,4-6'
|
|
817
|
+
*/
|
|
818
|
+
highlightLines?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Whether to show line numbers
|
|
821
|
+
*/
|
|
822
|
+
showLineNumbers?: boolean;
|
|
823
|
+
/**
|
|
824
|
+
* Whether to show copy button
|
|
825
|
+
*/
|
|
826
|
+
buttonCopy?: boolean;
|
|
827
|
+
/**
|
|
828
|
+
* The tabs to be displayed
|
|
829
|
+
*/
|
|
830
|
+
tabs?: CodeTab[];
|
|
831
|
+
/**
|
|
832
|
+
* The class name to be applied to the code block
|
|
833
|
+
*/
|
|
834
|
+
className?: string;
|
|
835
|
+
/**
|
|
836
|
+
* The children to be displayed
|
|
837
|
+
*/
|
|
838
|
+
children?: ReactNode;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
declare interface CodeTab {
|
|
842
|
+
/**
|
|
843
|
+
* The label of the tab
|
|
844
|
+
*/
|
|
845
|
+
label: string;
|
|
846
|
+
/**
|
|
847
|
+
* The icon of the tab
|
|
848
|
+
*/
|
|
849
|
+
icon?: ReactNode;
|
|
850
|
+
/**
|
|
851
|
+
* The language of the code
|
|
852
|
+
*/
|
|
853
|
+
language: string;
|
|
854
|
+
/**
|
|
855
|
+
* The code to be displayed
|
|
856
|
+
*/
|
|
857
|
+
code: string;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export declare const ColorPicker: ForwardRefExoticComponent<ColorPickerProps & RefAttributes<HTMLDivElement>>;
|
|
861
|
+
|
|
862
|
+
declare interface ColorPickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "size" | "disabled" | "checked" | "color" | "onChange"> {
|
|
863
|
+
/**
|
|
864
|
+
* Valor actual del color seleccionado.
|
|
865
|
+
*/
|
|
866
|
+
value?: string;
|
|
867
|
+
/**
|
|
868
|
+
* Define el valor actual del color seleccionado.
|
|
869
|
+
*/
|
|
870
|
+
onChange?: (value: string) => void;
|
|
871
|
+
/**
|
|
872
|
+
* Define el valor actual del color seleccionado.
|
|
873
|
+
*/
|
|
874
|
+
disabled?: boolean;
|
|
875
|
+
/**
|
|
876
|
+
* Define el formato del color seleccionado.
|
|
877
|
+
*/
|
|
878
|
+
format?: "hex" | "rgb" | "rgba" | "hsl" | "hsla";
|
|
879
|
+
/**
|
|
880
|
+
* Define el tamaño del color picker.
|
|
881
|
+
*/
|
|
882
|
+
size?: ColorPickerVariants["size"];
|
|
883
|
+
/**
|
|
884
|
+
* Define si se muestra el texto del color picker.
|
|
885
|
+
*/
|
|
886
|
+
showText?: boolean;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
declare type ColorPickerVariants = VariantProps<typeof colorpickerVariants>;
|
|
890
|
+
|
|
891
|
+
declare const colorpickerVariants: (props?: ({
|
|
892
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
893
|
+
disabled?: boolean | null | undefined;
|
|
894
|
+
showText?: boolean | null | undefined;
|
|
895
|
+
} & ClassProp) | undefined) => string;
|
|
896
|
+
|
|
897
|
+
declare interface ConfigProviderProps {
|
|
898
|
+
lang: keyof Dictionary;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
declare type ContainerVariants = VariantProps<typeof checkboxContainerVariants>;
|
|
902
|
+
|
|
903
|
+
declare const countVariants: (props?: ({
|
|
904
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
905
|
+
} & ClassProp) | undefined) => string;
|
|
906
|
+
|
|
907
|
+
declare type DarkTheme = "dark" | "slate" | "deep-cosmic-night" | "soft-obsidian" | "graphite" | "midnight" | "aurora-night" | "electro-violet";
|
|
908
|
+
|
|
909
|
+
declare type DataAttribute = `data-${string}`;
|
|
910
|
+
|
|
911
|
+
export declare const DatePicker: ForwardRefExoticComponent<DatePickerProps & RefAttributes<HTMLDivElement>>;
|
|
912
|
+
|
|
913
|
+
declare interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "onChange"> {
|
|
914
|
+
/**
|
|
915
|
+
* The currently selected date value in the calendar.
|
|
916
|
+
* If not provided, the field will be empty (uncontrolled component).
|
|
917
|
+
*/
|
|
918
|
+
value?: Date;
|
|
919
|
+
/**
|
|
920
|
+
* Callback function that is triggered when the user selects a new date.
|
|
921
|
+
*
|
|
922
|
+
* @param date - The newly selected date (Date), or `undefined` if the field is cleared.
|
|
923
|
+
*/
|
|
924
|
+
onChange?: (date: Date | undefined) => void;
|
|
925
|
+
/**
|
|
926
|
+
* The earliest date the user can select.
|
|
927
|
+
* Dates prior to this will be disabled.
|
|
928
|
+
*/
|
|
929
|
+
minDate?: Date;
|
|
930
|
+
/**
|
|
931
|
+
* The furthest (future) date the user can select.
|
|
932
|
+
* Dates after this will be disabled.
|
|
933
|
+
*/
|
|
934
|
+
maxDate?: Date;
|
|
935
|
+
/**
|
|
936
|
+
* Completely disables the input field and the calendar, preventing user interaction.
|
|
937
|
+
*/
|
|
938
|
+
disabled?: boolean;
|
|
939
|
+
/**
|
|
940
|
+
* Defines the visual size of the component (e.g., `sm`, `md`, `lg`).
|
|
941
|
+
*
|
|
942
|
+
* @default md
|
|
943
|
+
*/
|
|
944
|
+
size?: DatePickerVariants["size"];
|
|
945
|
+
/**
|
|
946
|
+
* Specifies the selection mode for the calendar (e.g., day, month, year).
|
|
947
|
+
* The 'date' value allows selection of day, month, and year.
|
|
948
|
+
*
|
|
949
|
+
* @default date
|
|
950
|
+
*/
|
|
951
|
+
type?: DatePickerVariants["type"];
|
|
952
|
+
/**
|
|
953
|
+
* Defines the corner shape (radius) of the input field and the calendar dropdown.
|
|
954
|
+
*
|
|
955
|
+
* @default md
|
|
956
|
+
*/
|
|
957
|
+
radius?: DatePickerVariants["radius"];
|
|
958
|
+
/**
|
|
959
|
+
* The visual style (variant) of the component (e.g., 'filled', 'outline', 'ghost').
|
|
960
|
+
*
|
|
961
|
+
* @default filled
|
|
962
|
+
*/
|
|
963
|
+
variant?: DatePickerVariants["variant"];
|
|
964
|
+
/**
|
|
965
|
+
* Custom function to disable specific dates in the calendar.
|
|
966
|
+
* Useful for restricting holidays, weekends, etc.
|
|
967
|
+
*
|
|
968
|
+
* @param date - The date to evaluate.
|
|
969
|
+
* @returns `true` if the date should be disabled, `false` otherwise.
|
|
970
|
+
*/
|
|
971
|
+
isDateDisabled?: (date: Date) => boolean;
|
|
972
|
+
/**
|
|
973
|
+
* Label text that appears above the input field (Input Label).
|
|
974
|
+
*
|
|
975
|
+
* @default ""
|
|
976
|
+
*/
|
|
977
|
+
label?: string;
|
|
978
|
+
/**
|
|
979
|
+
* The display format of the date shown in the input field.
|
|
980
|
+
* Defines how the selected date is presented to the user (e.g., 'full' as "Thursday, November 13, 2025").
|
|
981
|
+
*
|
|
982
|
+
* @default medium
|
|
983
|
+
*/
|
|
984
|
+
displayFormat?: "full" | "long" | "medium" | "short";
|
|
985
|
+
/**
|
|
986
|
+
* Optional text that provides **additional guidance** or context to the user about the expected input format or purpose. It is displayed below the date input.
|
|
987
|
+
*
|
|
988
|
+
* @default ""
|
|
989
|
+
*/
|
|
990
|
+
helperText?: string;
|
|
991
|
+
/**
|
|
992
|
+
* Error message displayed below the input field when a validation issue occurs.
|
|
993
|
+
* Setting this value automatically implies an `invalid` state.
|
|
994
|
+
*
|
|
995
|
+
* @default ""
|
|
996
|
+
*/
|
|
997
|
+
errorMessage?: string;
|
|
998
|
+
/**
|
|
999
|
+
* Forces the component into an error (invalid) state, applying corresponding error styles.
|
|
1000
|
+
* Useful for showing visual error feedback even without an explicit `errorMessage`.
|
|
1001
|
+
*
|
|
1002
|
+
* @default false
|
|
1003
|
+
*/
|
|
1004
|
+
invalid?: boolean;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
declare type DatePickerVariants = VariantProps<typeof datepickerVariants>;
|
|
1008
|
+
|
|
1009
|
+
declare const datepickerVariants: (props?: ({
|
|
1010
|
+
type?: "inline" | "dropdown" | "modal" | null | undefined;
|
|
1011
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1012
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
1013
|
+
variant?: "soft" | "solid" | null | undefined;
|
|
1014
|
+
invalid?: boolean | null | undefined;
|
|
1015
|
+
} & ClassProp) | undefined) => string;
|
|
1016
|
+
|
|
1017
|
+
export declare const Dialog: default_2.ForwardRefExoticComponent<DialogProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1018
|
+
|
|
1019
|
+
declare const dialogOverlayVariants: (props?: ({
|
|
1020
|
+
backdropType?: "transparent" | "dark" | "blur" | null | undefined;
|
|
1021
|
+
state?: "entering" | "entered" | "exiting" | "exited" | null | undefined;
|
|
1022
|
+
isModal?: boolean | null | undefined;
|
|
1023
|
+
transitionMode?: "fade" | "fadeFromTop" | "fadeFromBottom" | "fadeFromLeft" | "fadeFromRight" | "scaleUp" | "unfold" | null | undefined;
|
|
1024
|
+
} & ClassProp) | undefined) => string;
|
|
1025
|
+
|
|
1026
|
+
declare interface DialogProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "children" | "title"> {
|
|
1027
|
+
/**
|
|
1028
|
+
* Controla si el diálogo está visible (abierto) o no (cerrado).
|
|
1029
|
+
* Al cambiar este valor (típicamente desde un estado en el componente padre),
|
|
1030
|
+
* se activan las animaciones de entrada o salida.
|
|
1031
|
+
* @default false
|
|
1032
|
+
*/
|
|
1033
|
+
isOpen: boolean;
|
|
1034
|
+
/**
|
|
1035
|
+
* Callback que se llama cuando se solicita cerrar el diálogo.
|
|
1036
|
+
* Esto puede ocurrir al hacer clic en el overlay, presionar la tecla Escape,
|
|
1037
|
+
* o hacer clic en el botón de cerrar (si `showCloseButton` es true).
|
|
1038
|
+
* Es responsabilidad del componente padre usar este callback para actualizar
|
|
1039
|
+
* la prop `isOpen` y así cerrar el diálogo.
|
|
1040
|
+
*/
|
|
1041
|
+
onClose: () => void;
|
|
1042
|
+
/**
|
|
1043
|
+
* El contenido principal que se mostrará dentro del cuerpo del diálogo.
|
|
1044
|
+
* Puede ser cualquier elemento o componente React.
|
|
1045
|
+
*/
|
|
1046
|
+
children: default_2.ReactNode;
|
|
1047
|
+
/**
|
|
1048
|
+
* Opcional: Contenido para la sección del encabezado del diálogo.
|
|
1049
|
+
* Típicamente se usa para un título o una descripción corta.
|
|
1050
|
+
*/
|
|
1051
|
+
title?: default_2.ReactNode;
|
|
1052
|
+
/**
|
|
1053
|
+
* Opcional: Contenido para la sección del pie del diálogo.
|
|
1054
|
+
* Se usa comúnmente para botones de acción (por ejemplo, "Aceptar", "Cancelar").
|
|
1055
|
+
*/
|
|
1056
|
+
footer?: default_2.ReactNode;
|
|
1057
|
+
/**
|
|
1058
|
+
* Opcional: Tipo de animación del diálogo al abrirse y cerrarse.
|
|
1059
|
+
* @default scaleUp
|
|
1060
|
+
*/
|
|
1061
|
+
transitionMode?: DialogVariants["transitionMode"];
|
|
1062
|
+
/**
|
|
1063
|
+
* Opcional: Tipo de backdrop
|
|
1064
|
+
* @default dark
|
|
1065
|
+
*/
|
|
1066
|
+
backdropType?: DialogVariants["backdropType"];
|
|
1067
|
+
/**
|
|
1068
|
+
* Si es `true`, presionar la tecla 'Escape' cuando el diálogo está abierto
|
|
1069
|
+
* activará la llamada a `onClose`.
|
|
1070
|
+
* @default true
|
|
1071
|
+
*/
|
|
1072
|
+
closeOnEscape?: boolean;
|
|
1073
|
+
/**
|
|
1074
|
+
* Si es `true`, se mostrará automáticamente un botón estándar de cerrar (una 'x')
|
|
1075
|
+
* en la esquina superior derecha del encabezado del diálogo.
|
|
1076
|
+
* @default true
|
|
1077
|
+
*/
|
|
1078
|
+
showCloseButton?: boolean;
|
|
1079
|
+
/**
|
|
1080
|
+
* Opcional: Una referencia a un elemento HTML dentro del diálogo.
|
|
1081
|
+
* Cuando el diálogo se abre completamente, intentará poner el foco en este elemento.
|
|
1082
|
+
* Esto es importante para la accesibilidad, guiando al usuario al contenido interactivo inicial.
|
|
1083
|
+
*/
|
|
1084
|
+
initialFocusRef?: RefObject<HTMLElement>;
|
|
1085
|
+
/**
|
|
1086
|
+
* Clase CSS adicional para el overlay (fondo oscuro).
|
|
1087
|
+
*/
|
|
1088
|
+
overlayClassName?: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* Clase CSS adicional para el panel principal del diálogo (la caja).
|
|
1091
|
+
*/
|
|
1092
|
+
panelClassName?: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* Clase CSS adicional para la sección del encabezado.
|
|
1095
|
+
*/
|
|
1096
|
+
headerClassName?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* Clase CSS adicional para la sección del cuerpo (donde se muestra `children`).
|
|
1099
|
+
*/
|
|
1100
|
+
bodyClassName?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* Clase CSS adicional para la sección del pie de página (donde se muestra `footer`).
|
|
1103
|
+
*/
|
|
1104
|
+
footerClassName?: string;
|
|
1105
|
+
/**
|
|
1106
|
+
* Si es `true`, el diálogo se mostrará como un modal (con un overlay oscuro), y no dejará
|
|
1107
|
+
* interactuar con el contenido por debajo del diálogo.
|
|
1108
|
+
* @default false
|
|
1109
|
+
*/
|
|
1110
|
+
isModal?: boolean;
|
|
1111
|
+
/**
|
|
1112
|
+
* Si es `true`, el dialogo se puede arrastrar
|
|
1113
|
+
* @default false
|
|
1114
|
+
*/
|
|
1115
|
+
isDraggable?: boolean;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
declare type DialogVariants = VariantProps<typeof dialogOverlayVariants>;
|
|
1119
|
+
|
|
1120
|
+
declare type Dictionary = typeof translations;
|
|
1121
|
+
|
|
1122
|
+
declare type Direction = "row" | "row-reverse" | "column" | "column-reverse" | "initial" | "inherit" | "unset" | "revert" | "revert-layer" | "-moz-initial";
|
|
1123
|
+
|
|
1124
|
+
export declare const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<HTMLDivElement>>;
|
|
1125
|
+
|
|
1126
|
+
declare interface DividerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color"> {
|
|
1127
|
+
variant?: DividerVariants["variant"];
|
|
1128
|
+
orientation?: DividerVariants["orientation"];
|
|
1129
|
+
color?: DividerVariants["color"];
|
|
1130
|
+
size?: DividerVariants["size"];
|
|
1131
|
+
spacing?: number;
|
|
1132
|
+
contentPosition?: DividerVariants["contentPosition"];
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
declare type DividerVariants = VariantProps<typeof dividerVariants>;
|
|
1136
|
+
|
|
1137
|
+
declare const dividerVariants: (props?: ({
|
|
1138
|
+
variant?: "dashed" | "dotted" | "solid" | null | undefined;
|
|
1139
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1140
|
+
color?: "black" | "white" | "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
1141
|
+
contentPosition?: "center" | "end" | "start" | null | undefined;
|
|
1142
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1143
|
+
hasContent?: boolean | null | undefined;
|
|
1144
|
+
} & ClassProp) | undefined) => string;
|
|
1145
|
+
|
|
1146
|
+
export declare const Drawer: default_2.ForwardRefExoticComponent<DrawerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1147
|
+
|
|
1148
|
+
declare const drawerPanelVariants: (props?: ({
|
|
1149
|
+
state?: "entering" | "entered" | "exiting" | "exited" | null | undefined;
|
|
1150
|
+
placement?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
1151
|
+
width?: "small" | "medium" | "full" | "xsmall" | "half" | null | undefined;
|
|
1152
|
+
radius?: "none" | "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1153
|
+
backdropType?: "transparent" | "dark" | "blur" | null | undefined;
|
|
1154
|
+
} & ClassProp) | undefined) => string;
|
|
1155
|
+
|
|
1156
|
+
declare interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "title"> {
|
|
1157
|
+
/**
|
|
1158
|
+
* Controla si el drawer está abierto o cerrado.
|
|
1159
|
+
* Al cambiar este valor (típicamente desde un estado en el componente padre),
|
|
1160
|
+
* se activan las animaciones de entrada o salida.
|
|
1161
|
+
* @default false
|
|
1162
|
+
*/
|
|
1163
|
+
isOpen: boolean;
|
|
1164
|
+
/**
|
|
1165
|
+
* Callback que se llama cuando se solicita cerrar el drawer.
|
|
1166
|
+
* Esto puede ocurrir al hacer clic en el overlay, presionar la tecla Escape,
|
|
1167
|
+
* o hacer clic en el botón de cerrar (si `showCloseButton` es true).
|
|
1168
|
+
* Es responsabilidad del componente padre usar este callback para actualizar
|
|
1169
|
+
* la prop `isOpen` y así cerrar el drawer.
|
|
1170
|
+
*/
|
|
1171
|
+
onClose: () => void;
|
|
1172
|
+
/**
|
|
1173
|
+
* El contenido principal que se mostrará dentro del cuerpo del drawer.
|
|
1174
|
+
* Puede ser cualquier elemento o componente React.
|
|
1175
|
+
*/
|
|
1176
|
+
children: default_2.ReactNode;
|
|
1177
|
+
/**
|
|
1178
|
+
* Opcional: Contenido para la sección del encabezado del drawer.
|
|
1179
|
+
* Típicamente se usa para un título o una descripción corta.
|
|
1180
|
+
*/
|
|
1181
|
+
title?: default_2.ReactNode;
|
|
1182
|
+
/**
|
|
1183
|
+
* Define el tipo de backdrop que se mostrará detrás del drawer.
|
|
1184
|
+
* Puede ser 'dark' (fondo oscuro), 'blur' (fondo con desenfoque), o 'transparent' (fondo transparente).
|
|
1185
|
+
* @default 'dark'
|
|
1186
|
+
*/
|
|
1187
|
+
backdropType?: DrawerVariants["backdropType"];
|
|
1188
|
+
/**
|
|
1189
|
+
* Opcional: Contenido para la sección del pie del drawer.
|
|
1190
|
+
* Se usa comúnmente para botones de acción (por ejemplo, "Aceptar", "Cancelar").
|
|
1191
|
+
*/
|
|
1192
|
+
footer?: default_2.ReactNode;
|
|
1193
|
+
/**
|
|
1194
|
+
* Define desde qué borde de la pantalla se abre el drawer.
|
|
1195
|
+
* Requerido.
|
|
1196
|
+
*/
|
|
1197
|
+
placement?: DrawerVariants["placement"];
|
|
1198
|
+
/**
|
|
1199
|
+
* Define el ancho del drawer.
|
|
1200
|
+
* Solo aplica para placement en: 'right' y 'left'
|
|
1201
|
+
*/
|
|
1202
|
+
width?: DrawerVariants["width"];
|
|
1203
|
+
/**
|
|
1204
|
+
* Opcional: Define el tamaño del drawer (ancho para 'left'/'right', alto para 'top'/'bottom').
|
|
1205
|
+
* @default '300px' para left/right, '25vh' para top/bottom (ejemplos definidos en CSS)
|
|
1206
|
+
*/
|
|
1207
|
+
size?: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Si es `true`, hacer clic en el área oscura (overlay) fuera del panel del drawer
|
|
1210
|
+
* activará la llamada a `onClose`.
|
|
1211
|
+
* @default true
|
|
1212
|
+
*/
|
|
1213
|
+
closeOnOverlayClick?: boolean;
|
|
1214
|
+
/**
|
|
1215
|
+
* Si es `true`, presionar la tecla 'Escape' cuando el drawer está abierto
|
|
1216
|
+
* activará la llamada a `onClose`.
|
|
1217
|
+
* @default true
|
|
1218
|
+
*/
|
|
1219
|
+
closeOnEscape?: boolean;
|
|
1220
|
+
/**
|
|
1221
|
+
* Si es `true`, se mostrará automáticamente un botón estándar de cerrar (una 'x')
|
|
1222
|
+
* en la esquina superior derecha del encabezado del drawer.
|
|
1223
|
+
* @default true
|
|
1224
|
+
*/
|
|
1225
|
+
showCloseButton?: boolean;
|
|
1226
|
+
/**
|
|
1227
|
+
* Opcional: Una referencia a un elemento HTML dentro del drawer.
|
|
1228
|
+
* Cuando el drawer se abre completamente, intentará poner el foco en este elemento.
|
|
1229
|
+
* Esto es importante para la accesibilidad, guiando al usuario al contenido interactivo inicial.
|
|
1230
|
+
*/
|
|
1231
|
+
initialFocusRef?: RefObject<HTMLElement>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Clase CSS adicional para el overlay (fondo oscuro).
|
|
1234
|
+
*/
|
|
1235
|
+
overlayClassName?: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* Clase CSS adicional para el panel principal del drawer (la caja que desliza).
|
|
1238
|
+
*/
|
|
1239
|
+
panelClassName?: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* Clase CSS adicional para la sección del encabezado.
|
|
1242
|
+
*/
|
|
1243
|
+
headerClassName?: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* Clase CSS adicional para la sección del cuerpo (donde se muestra `children`).
|
|
1246
|
+
*/
|
|
1247
|
+
bodyClassName?: string;
|
|
1248
|
+
/**
|
|
1249
|
+
* Clase CSS adicional para la sección del pie de página (donde se muestra `footer`).
|
|
1250
|
+
*/
|
|
1251
|
+
footerClassName?: string;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
declare type DrawerVariants = VariantProps<typeof drawerPanelVariants>;
|
|
1255
|
+
|
|
1256
|
+
export declare const Dropdown: ForwardRefExoticComponent<DropdownProps & RefAttributes<HTMLButtonElement>> & {
|
|
1257
|
+
Item: ({ index, icon, text, shortcutKeys, url, onSelectOption, ...props }: DropdownItemProps & Omit<HTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "children"> & {
|
|
1258
|
+
index?: number;
|
|
1259
|
+
icon?: ReactNode;
|
|
1260
|
+
text?: string;
|
|
1261
|
+
shortcutKeys?: string[];
|
|
1262
|
+
url?: string;
|
|
1263
|
+
onSelectOption?: () => void;
|
|
1264
|
+
}) => JSX.Element;
|
|
1265
|
+
ItemCustom: ({ children, index, onSelectOption }: DropdownItemCustomProps) => JSX.Element;
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
declare interface DropdownItemCustomProps {
|
|
1269
|
+
children: ReactNode;
|
|
1270
|
+
"data-navigable"?: boolean;
|
|
1271
|
+
index?: number;
|
|
1272
|
+
onSelectOption?: () => void;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
declare interface DropdownItemProps {
|
|
1276
|
+
index?: number;
|
|
1277
|
+
icon?: ReactNode;
|
|
1278
|
+
text?: string;
|
|
1279
|
+
shortcutKeys?: string[];
|
|
1280
|
+
url?: string;
|
|
1281
|
+
onSelectOption?: () => void | undefined;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
declare interface DropdownProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> {
|
|
1285
|
+
/**
|
|
1286
|
+
* Define el estilo visual principal del botón (por ejemplo, sólido, delineado, transparente).
|
|
1287
|
+
*/
|
|
1288
|
+
variant?: DropdownVariants["variant"];
|
|
1289
|
+
/**
|
|
1290
|
+
* Controla el tamaño visual del botón, afectando el padding y el tamaño del texto/icono.
|
|
1291
|
+
*/
|
|
1292
|
+
size?: DropdownVariants["size"];
|
|
1293
|
+
/**
|
|
1294
|
+
* Define el radio del botón.
|
|
1295
|
+
*/
|
|
1296
|
+
radius?: DropdownVariants["radius"];
|
|
1297
|
+
/**
|
|
1298
|
+
* Un elemento React (como un icono) para mostrar dentro del botón.
|
|
1299
|
+
*/
|
|
1300
|
+
icon?: ReactNode | undefined | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* El texto principal que se muestra dentro del botón.
|
|
1303
|
+
*/
|
|
1304
|
+
text?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* Una etiqueta para accesibilidad (ARIA). Proporciona una descripción concisa para lectores de pantalla, especialmente útil si el botón solo contiene un icono.
|
|
1307
|
+
*/
|
|
1308
|
+
"aria-label"?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Indica la posición del hijo dentro del Join(Si el botón está dentro de un Join).
|
|
1311
|
+
*/
|
|
1312
|
+
joinposition?: DropdownVariants["joinposition"];
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
declare type DropdownVariants = VariantProps<typeof dropdownVariants>;
|
|
1316
|
+
|
|
1317
|
+
declare const dropdownVariants: (props?: ({
|
|
1318
|
+
variant?: "soft" | "text" | "solid" | "subtle" | null | undefined;
|
|
1319
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1320
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
1321
|
+
disabled?: boolean | null | undefined;
|
|
1322
|
+
joinposition?: "middle" | "first" | "last" | "single" | null | undefined;
|
|
1323
|
+
menuPosition?: "above" | "below" | null | undefined;
|
|
1324
|
+
iconOnly?: boolean | null | undefined;
|
|
1325
|
+
active?: boolean | null | undefined;
|
|
1326
|
+
} & ClassProp) | undefined) => string;
|
|
1327
|
+
|
|
1328
|
+
export declare const FileUpload: default_2.ForwardRefExoticComponent<FileUploadProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
1329
|
+
|
|
1330
|
+
declare interface FileUploadProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "onChange" | "value" | "multiple" | "accept" | "required" | "aria-invalid" | "aria-describedby" | "aria-labelledby"> {
|
|
1331
|
+
/**
|
|
1332
|
+
* Determines the main appearance and interaction pattern of the component.
|
|
1333
|
+
* - `dropzone`: Renders an area where users can drag and drop files.
|
|
1334
|
+
* - `button`: Renders a button that opens the file selection dialog on click.
|
|
1335
|
+
* @default 'dropzone'
|
|
1336
|
+
*/
|
|
1337
|
+
type?: "dropzone" | "button";
|
|
1338
|
+
/**
|
|
1339
|
+
* Controls the visual size of the component, affecting the dropzone area
|
|
1340
|
+
* or the dimensions of the button.
|
|
1341
|
+
*/
|
|
1342
|
+
size?: FileUploadVariants["size"];
|
|
1343
|
+
/**
|
|
1344
|
+
* Disables the component, preventing file selection and drag-and-drop interactions.
|
|
1345
|
+
* @default false
|
|
1346
|
+
*/
|
|
1347
|
+
disabled?: boolean;
|
|
1348
|
+
/**
|
|
1349
|
+
* Indicates that the component is in an invalid or error state.
|
|
1350
|
+
* Commonly used to display error styling around the dropzone or button.
|
|
1351
|
+
* @default false
|
|
1352
|
+
*/
|
|
1353
|
+
invalid?: boolean;
|
|
1354
|
+
/**
|
|
1355
|
+
* Allows selecting multiple files at once.
|
|
1356
|
+
* When set to `false`, only a single file can be selected.
|
|
1357
|
+
* @default false
|
|
1358
|
+
*/
|
|
1359
|
+
multiple?: boolean;
|
|
1360
|
+
/**
|
|
1361
|
+
* Specifies which file types can be selected (e.g., `"image/*"`, `".pdf"`, `"image/png,image/jpeg"`).
|
|
1362
|
+
* Uses the standard HTML `accept` attribute format.
|
|
1363
|
+
*/
|
|
1364
|
+
accept?: string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Marks the file selection as required.
|
|
1367
|
+
* This does not perform validation by itself, but can be used for styling
|
|
1368
|
+
* or integrated with form libraries for validation logic.
|
|
1369
|
+
* @default false
|
|
1370
|
+
*/
|
|
1371
|
+
required?: boolean;
|
|
1372
|
+
/**
|
|
1373
|
+
* Label text associated with the component.
|
|
1374
|
+
* When provided, a `<label>` element will typically be rendered.
|
|
1375
|
+
*/
|
|
1376
|
+
label?: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* Error message displayed when `invalid` is true or when file selection fails validation.
|
|
1379
|
+
* Usually shown below the component.
|
|
1380
|
+
*/
|
|
1381
|
+
errorMessage?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* Secondary descriptive text shown below the component.
|
|
1384
|
+
* Useful for instructions or validation hints.
|
|
1385
|
+
*/
|
|
1386
|
+
helperText?: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Maximum allowed file size in bytes.
|
|
1389
|
+
* Files that exceed this limit will be rejected and passed to `onFilesRejected`.
|
|
1390
|
+
*/
|
|
1391
|
+
maxSize?: number;
|
|
1392
|
+
/**
|
|
1393
|
+
* Array of currently selected files.
|
|
1394
|
+
* Each file is represented by a native `File` object.
|
|
1395
|
+
*/
|
|
1396
|
+
files?: File[];
|
|
1397
|
+
/**
|
|
1398
|
+
* Callback fired when one or more files are selected via the file dialog
|
|
1399
|
+
* or dropped into the dropzone area.
|
|
1400
|
+
* Receives an array of selected `File` objects.
|
|
1401
|
+
*/
|
|
1402
|
+
onChangeFiles?: (files: File[]) => void;
|
|
1403
|
+
/**
|
|
1404
|
+
* Callback fired when a draggable item enters the dropzone area.
|
|
1405
|
+
* Receives the native drag event.
|
|
1406
|
+
*/
|
|
1407
|
+
onDragOver?: (event: React.DragEvent<HTMLElement>) => void;
|
|
1408
|
+
/**
|
|
1409
|
+
* Callback fired when a draggable item leaves the dropzone area.
|
|
1410
|
+
* Receives the native drag event.
|
|
1411
|
+
*/
|
|
1412
|
+
onDragLeave?: (event: React.DragEvent<HTMLElement>) => void;
|
|
1413
|
+
/**
|
|
1414
|
+
* Callback fired when files are dropped into the dropzone area.
|
|
1415
|
+
*/
|
|
1416
|
+
onDrop?: (event: React.DragEvent<HTMLElement>) => void;
|
|
1417
|
+
/**
|
|
1418
|
+
* Name attribute for the underlying native input element.
|
|
1419
|
+
*/
|
|
1420
|
+
name?: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Callback fired when one or more selected files fail validation
|
|
1423
|
+
* (e.g., unsupported file type or file size exceeds `maxSize`).
|
|
1424
|
+
* Receives an array of rejected `File` objects.
|
|
1425
|
+
*/
|
|
1426
|
+
onFilesRejected?: (files: File[]) => void;
|
|
1427
|
+
/**
|
|
1428
|
+
* Displays the file size next to each selected file.
|
|
1429
|
+
* @default false
|
|
1430
|
+
*/
|
|
1431
|
+
viewFileSize?: boolean;
|
|
1432
|
+
/**
|
|
1433
|
+
* Controls how selected files are displayed:
|
|
1434
|
+
* - `list`: Shows files in a vertical list with name and size.
|
|
1435
|
+
* - `thumbnail`: Shows files with preview thumbnails when available.
|
|
1436
|
+
* @default 'list'
|
|
1437
|
+
*/
|
|
1438
|
+
displayMode?: "list" | "thumbnail";
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
declare type FileUploadVariants = VariantProps<typeof fileUploadWrapper>;
|
|
1442
|
+
|
|
1443
|
+
declare const fileUploadWrapper: (props?: ({
|
|
1444
|
+
type?: "button" | "dropzone" | null | undefined;
|
|
1445
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
1446
|
+
disabled?: boolean | null | undefined;
|
|
1447
|
+
invalid?: boolean | null | undefined;
|
|
1448
|
+
} & ClassProp) | undefined) => string;
|
|
1449
|
+
|
|
1450
|
+
export declare const Flex: ForwardRefExoticComponent<FlexProps & RefAttributes<HTMLDivElement>>;
|
|
1451
|
+
|
|
1452
|
+
declare interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1453
|
+
children: React.ReactNode;
|
|
1454
|
+
direction?: Direction;
|
|
1455
|
+
justify?: JustifyContent | undefined;
|
|
1456
|
+
align?: AlignItems | undefined;
|
|
1457
|
+
gap?: Gap;
|
|
1458
|
+
wrap?: Wrap;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
declare type Gap = string | number;
|
|
1462
|
+
|
|
1463
|
+
declare interface ICardActions {
|
|
1464
|
+
/**
|
|
1465
|
+
* Opcional: Un elemento React (como un icono) para mostrar como parte de la acción.
|
|
1466
|
+
*/
|
|
1467
|
+
icon?: React.ReactNode;
|
|
1468
|
+
/**
|
|
1469
|
+
* Opcional: El texto que se muestra como parte de la acción (por ejemplo, el texto de un botón de acción).
|
|
1470
|
+
*/
|
|
1471
|
+
text?: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* Opcional: La función que se llama cuando se activa esta acción (por ejemplo, al hacer clic en el área de la acción).
|
|
1474
|
+
*/
|
|
1475
|
+
onClick?: () => void;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
declare interface ICardHeader {
|
|
1479
|
+
/**
|
|
1480
|
+
* El título principal del encabezado de la tarjeta. Es un string de texto.
|
|
1481
|
+
*/
|
|
1482
|
+
title: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* Opcional: Un texto descriptivo o subtítulo para el encabezado.
|
|
1485
|
+
*/
|
|
1486
|
+
description?: string;
|
|
1487
|
+
/**
|
|
1488
|
+
* Opcional: Un elemento React (como un icono) para mostrar en el encabezado.
|
|
1489
|
+
*/
|
|
1490
|
+
icon?: React.ReactNode;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
declare interface ICardImage {
|
|
1494
|
+
/**
|
|
1495
|
+
* La URL de la fuente de la imagen.
|
|
1496
|
+
*/
|
|
1497
|
+
src: string;
|
|
1498
|
+
/**
|
|
1499
|
+
* Opcional: El texto alternativo para la imagen (recomendado para accesibilidad).
|
|
1500
|
+
*/
|
|
1501
|
+
alt?: string;
|
|
1502
|
+
/**
|
|
1503
|
+
* Opcional: Un número que indica la altura de la imagen como porcentaje del ancho de la tarjeta.
|
|
1504
|
+
* Esto puede usarse para controlar la relación de aspecto de la imagen.
|
|
1505
|
+
*/
|
|
1506
|
+
heightPorcent?: number;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
declare interface IListCollection {
|
|
1510
|
+
/**
|
|
1511
|
+
* The visible label for this option in the dropdown list.
|
|
1512
|
+
*/
|
|
1513
|
+
label: string;
|
|
1514
|
+
/**
|
|
1515
|
+
* The unique value associated with this option.
|
|
1516
|
+
* Used to identify the selected item.
|
|
1517
|
+
*/
|
|
1518
|
+
value: string;
|
|
1519
|
+
/**
|
|
1520
|
+
* Optional: URL of an image or an element to display as an avatar next to the option label.
|
|
1521
|
+
*/
|
|
1522
|
+
avatar?: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* Optional: Additional descriptive text for this option.
|
|
1525
|
+
*/
|
|
1526
|
+
description?: string;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
|
|
1530
|
+
|
|
1531
|
+
declare const input: (props?: ({
|
|
1532
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
1533
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1534
|
+
variant?: "soft" | "underline" | "outline" | null | undefined;
|
|
1535
|
+
type?: "search" | "text" | "email" | "password" | null | undefined;
|
|
1536
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
1537
|
+
invalid?: boolean | null | undefined;
|
|
1538
|
+
hasElements?: "none" | "both" | "first" | "last" | null | undefined;
|
|
1539
|
+
disabled?: boolean | null | undefined;
|
|
1540
|
+
joinposition?: "middle" | "first" | "last" | "single" | null | undefined;
|
|
1541
|
+
} & ClassProp) | undefined) => string;
|
|
1542
|
+
|
|
1543
|
+
export declare const InputNumber: ForwardRefExoticComponent<InputNumberProps & RefAttributes<HTMLInputElement>>;
|
|
1544
|
+
|
|
1545
|
+
declare const inputNumber: (props?: ({
|
|
1546
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1547
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
1548
|
+
variant?: "soft" | "outline" | null | undefined;
|
|
1549
|
+
typeNumber?: "default" | "decimal" | "currency-USD" | "currency-EUR" | "currency-GBP" | "percentage" | null | undefined;
|
|
1550
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
1551
|
+
invalid?: boolean | null | undefined;
|
|
1552
|
+
disabled?: boolean | null | undefined;
|
|
1553
|
+
joinposition?: "middle" | "first" | "last" | "single" | null | undefined;
|
|
1554
|
+
} & ClassProp) | undefined) => string;
|
|
1555
|
+
|
|
1556
|
+
declare interface InputNumberProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "size" | "type" | "onChange" | "value" | "min" | "max" | "step" | "color"> {
|
|
1557
|
+
/**
|
|
1558
|
+
* Controls the visual style of the numeric input, such as border color or background.
|
|
1559
|
+
*/
|
|
1560
|
+
variant?: InputNumberVariants["variant"];
|
|
1561
|
+
/**
|
|
1562
|
+
* Sets the visual size of the input, adjusting padding and text size.
|
|
1563
|
+
*/
|
|
1564
|
+
size?: InputNumberVariants["size"];
|
|
1565
|
+
/**
|
|
1566
|
+
* Defines the border radius applied to the input.
|
|
1567
|
+
*/
|
|
1568
|
+
radius?: InputNumberVariants["radius"];
|
|
1569
|
+
/**
|
|
1570
|
+
* Enables an error or invalid visual state, typically changing the border color to red.
|
|
1571
|
+
*/
|
|
1572
|
+
invalid?: InputNumberVariants["invalid"];
|
|
1573
|
+
/**
|
|
1574
|
+
* Disables the input entirely, preventing interaction and applying a disabled appearance.
|
|
1575
|
+
*/
|
|
1576
|
+
disabled?: InputNumberVariants["disabled"];
|
|
1577
|
+
/**
|
|
1578
|
+
* Sets the color of the input, typically changing the border color to red.
|
|
1579
|
+
*/
|
|
1580
|
+
color?: InputNumberVariants["color"];
|
|
1581
|
+
/**
|
|
1582
|
+
* (Implementation-specific) Defines an internal subtype or variation of the numeric input component.
|
|
1583
|
+
*/
|
|
1584
|
+
typeNumber?: InputNumberVariants["typeNumber"];
|
|
1585
|
+
/**
|
|
1586
|
+
* Specifies the minimum numeric value the user is allowed to enter.
|
|
1587
|
+
*/
|
|
1588
|
+
min?: number;
|
|
1589
|
+
/**
|
|
1590
|
+
* Specifies the maximum numeric value the user is allowed to enter.
|
|
1591
|
+
*/
|
|
1592
|
+
max?: number;
|
|
1593
|
+
/**
|
|
1594
|
+
* Determines the increment by which the value changes when using step controls
|
|
1595
|
+
* (such as arrow buttons) or validating step multiples.
|
|
1596
|
+
*/
|
|
1597
|
+
step?: number;
|
|
1598
|
+
/**
|
|
1599
|
+
* A visible text label that describes the purpose of the numeric input.
|
|
1600
|
+
*/
|
|
1601
|
+
label?: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* A message displayed below the input when it is marked as invalid (`invalid={true}`).
|
|
1604
|
+
*/
|
|
1605
|
+
errorMessage?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Additional text displayed below the input to provide guidance or context for the user.
|
|
1608
|
+
*/
|
|
1609
|
+
helperText?: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* Indicates that this field is required in order to submit a form.
|
|
1612
|
+
* Visually, it may display an asterisk.
|
|
1613
|
+
*/
|
|
1614
|
+
required?: boolean;
|
|
1615
|
+
/**
|
|
1616
|
+
* Sets the default numeric value for the input when it is initially rendered.
|
|
1617
|
+
*/
|
|
1618
|
+
defaultValue?: number;
|
|
1619
|
+
/**
|
|
1620
|
+
* Function called whenever the numeric value is changed by the user.
|
|
1621
|
+
* Receives the updated number.
|
|
1622
|
+
*/
|
|
1623
|
+
onChangeValue?: (value: number) => void;
|
|
1624
|
+
/**
|
|
1625
|
+
* The current numeric value to be displayed in the input.
|
|
1626
|
+
* When provided, the component becomes controlled by the parent.
|
|
1627
|
+
*/
|
|
1628
|
+
value?: number;
|
|
1629
|
+
/**
|
|
1630
|
+
* Indicates the input's position when used inside a joined input group.
|
|
1631
|
+
*/
|
|
1632
|
+
joinposition?: "first" | "last" | "middle";
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
declare type InputNumberVariants = VariantProps<typeof inputNumber>;
|
|
1636
|
+
|
|
1637
|
+
declare interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "size" | "type" | "value" | "placeholder" | "prefix" | "suffix" | "color"> {
|
|
1638
|
+
/**
|
|
1639
|
+
* Define el tamaño visual del input, ajustando el padding y el tamaño del texto.
|
|
1640
|
+
*/
|
|
1641
|
+
size?: InputVariants["size"];
|
|
1642
|
+
/**
|
|
1643
|
+
* Define el radio de los bordes del input.
|
|
1644
|
+
*/
|
|
1645
|
+
radius?: InputVariants["radius"];
|
|
1646
|
+
/**
|
|
1647
|
+
* Controla el estilo visual del input, como el color del borde o el fondo.
|
|
1648
|
+
*/
|
|
1649
|
+
variant?: InputVariants["variant"];
|
|
1650
|
+
/**
|
|
1651
|
+
* Activa un estado visual de error o inválido para el input, típicamente cambiando el color del borde a rojo.
|
|
1652
|
+
*/
|
|
1653
|
+
invalid?: InputVariants["invalid"];
|
|
1654
|
+
/**
|
|
1655
|
+
* Desactiva completamente el input, haciendo que no se pueda interactuar con él.
|
|
1656
|
+
*/
|
|
1657
|
+
disabled?: InputVariants["disabled"];
|
|
1658
|
+
/**
|
|
1659
|
+
* Define el color del input, ajustando el color del borde y el fondo.
|
|
1660
|
+
*/
|
|
1661
|
+
color?: InputVariants["color"];
|
|
1662
|
+
/**
|
|
1663
|
+
* Establece el tipo de entrada nativa subyacente (ej. 'text', 'password', 'email').
|
|
1664
|
+
*/
|
|
1665
|
+
type?: InputVariants["type"];
|
|
1666
|
+
/**
|
|
1667
|
+
* Una etiqueta de texto asociada al input, que generalmente aparece sobre o junto a él.
|
|
1668
|
+
*/
|
|
1669
|
+
label?: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* Un mensaje de texto que se muestra debajo del input cuando está marcado como inválido (`invalid={true}`).
|
|
1672
|
+
*/
|
|
1673
|
+
errorMessage?: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* Habilita una animación donde la etiqueta (`label`) se mueve y reduce de tamaño cuando el input está enfocado o tiene valor.
|
|
1676
|
+
*/
|
|
1677
|
+
floatingLabel?: boolean;
|
|
1678
|
+
/**
|
|
1679
|
+
* Texto adicional que se muestra debajo del input para proporcionar ayuda o contexto.
|
|
1680
|
+
*/
|
|
1681
|
+
helperText?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* Indica que este campo debe ser llenado para que un formulario sea válido.
|
|
1684
|
+
*/
|
|
1685
|
+
required?: boolean;
|
|
1686
|
+
/**
|
|
1687
|
+
* Un elemento React que se muestra antes del valor del input, como un icono o un botón.
|
|
1688
|
+
*/
|
|
1689
|
+
prefix?: React.ReactNode | string | undefined;
|
|
1690
|
+
/**
|
|
1691
|
+
* Un elemento React que se muestra después del valor del input, como un icono o un botón.
|
|
1692
|
+
*/
|
|
1693
|
+
suffix?: React.ReactNode | string | undefined;
|
|
1694
|
+
/**
|
|
1695
|
+
* Una función que se ejecuta cada vez que el texto en el input es modificado por el usuario. Recibe el valor actual del input como un string.
|
|
1696
|
+
*/
|
|
1697
|
+
onChangeValue?: (value: string) => void;
|
|
1698
|
+
/**
|
|
1699
|
+
* El texto actual que debe mostrar el input. Al usar esta prop, controlas el valor desde el componente padre.
|
|
1700
|
+
*/
|
|
1701
|
+
value?: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* Texto que aparece dentro del input cuando está vacío y no tiene foco, sirviendo como pista para el usuario.
|
|
1704
|
+
*/
|
|
1705
|
+
placeholder?: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* Indica la posición del hijo dentro del Join(Si el input está dentro de un Join).
|
|
1708
|
+
*/
|
|
1709
|
+
joinposition?: "first" | "last" | "middle";
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
declare type InputVariants = VariantProps<typeof input>;
|
|
1713
|
+
|
|
1714
|
+
export declare const Join: default_2.ForwardRefExoticComponent<Omit<PropsWithChildren<JoinProps>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1715
|
+
|
|
1716
|
+
declare const join: (props?: ({
|
|
1717
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1718
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
1719
|
+
hasElements?: "none" | "both" | "first" | "last" | null | undefined;
|
|
1720
|
+
invalid?: boolean | null | undefined;
|
|
1721
|
+
disabled?: boolean | null | undefined;
|
|
1722
|
+
} & ClassProp) | undefined) => string;
|
|
1723
|
+
|
|
1724
|
+
declare interface JoinProps extends VariantProps<typeof join>, RefAttributes<HTMLDivElement> {
|
|
1725
|
+
errorMessage?: string;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
declare type JustifyContent = "-moz-initial" | "center" | "end" | "flex-end" | "flex-start" | "inherit" | "initial" | "left" | "right" | "normal" | "revert" | "revert-layer" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | "unset";
|
|
1729
|
+
|
|
1730
|
+
export declare const LambdaConfigProvider: FC<PropsWithChildren<ConfigProviderProps>>;
|
|
1731
|
+
|
|
1732
|
+
declare type LightTheme = "light" | "retro" | "lavender" | "mint" | "sunset" | "ocean" | "sandstone" | "pop-art";
|
|
1733
|
+
|
|
1734
|
+
export declare const Link: default_2.ForwardRefExoticComponent<LinkProps & default_2.RefAttributes<HTMLAnchorElement>>;
|
|
1735
|
+
|
|
1736
|
+
declare const linkButtonProps: (props?: ({
|
|
1737
|
+
justify?: "center" | "end" | "start" | null | undefined;
|
|
1738
|
+
} & ClassProp) | undefined) => string;
|
|
1739
|
+
|
|
1740
|
+
declare type LinkButtonVariants = VariantProps<typeof linkButtonProps>;
|
|
1741
|
+
|
|
1742
|
+
declare interface LinkProps extends Omit<default_2.AnchorHTMLAttributes<HTMLAnchorElement>, "disabled" | "label" | "color"> {
|
|
1743
|
+
/**
|
|
1744
|
+
* La URL a la que apunta el enlace. Requerida para la navegación del <a>.
|
|
1745
|
+
*/
|
|
1746
|
+
href: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* El tipo de Link determina su **apariencia visual**:
|
|
1749
|
+
* 'default' para un enlace de texto normal, 'button' para apariencia de botón.
|
|
1750
|
+
* @default 'default'
|
|
1751
|
+
*/
|
|
1752
|
+
type?: LinkType;
|
|
1753
|
+
/**
|
|
1754
|
+
* Texto de la etiqueta del Link. Se puede usar en lugar de `children`.
|
|
1755
|
+
* Si se proporcionan 'label' y 'children', 'label' tiene prioridad.
|
|
1756
|
+
*/
|
|
1757
|
+
label?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* Opcional: Un elemento React (como un icono SVG) para mostrar dentro del Link.
|
|
1760
|
+
* Su apariencia y posición se controlarán solo cuando `type` sea 'button'.
|
|
1761
|
+
*/
|
|
1762
|
+
icon?: default_2.ReactNode | undefined | null;
|
|
1763
|
+
/**
|
|
1764
|
+
* Opcional: Mantiene un estilo caundo su valor esta activado.
|
|
1765
|
+
* Su apariencia y posición se controlarán solo cuando `type` sea 'button'.
|
|
1766
|
+
*/
|
|
1767
|
+
justify?: LinkButtonVariants["justify"];
|
|
1768
|
+
/**
|
|
1769
|
+
* Si es true, el Link se muestra en un estado deshabilitado.
|
|
1770
|
+
* Visualmente afectará a ambos tipos. Se aplicará `pointer-events: none` y `aria-disabled="true"`.
|
|
1771
|
+
* @default false
|
|
1772
|
+
*/
|
|
1773
|
+
disabled?: boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* Atributo ARIA para proporcionar una etiqueta accesible cuando el contenido visual no es suficiente.
|
|
1776
|
+
* Por ejemplo, si el link solo tiene un icono.
|
|
1777
|
+
*/
|
|
1778
|
+
"aria-label"?: string;
|
|
1779
|
+
variant?: ButtonVariants["variant"];
|
|
1780
|
+
color?: ButtonVariants["color"];
|
|
1781
|
+
size?: ButtonVariants["size"];
|
|
1782
|
+
iconPosition?: ButtonVariants["iconPosition"];
|
|
1783
|
+
radius?: ButtonVariants["radius"];
|
|
1784
|
+
loading?: ButtonVariants["loading"];
|
|
1785
|
+
onClick?: default_2.MouseEventHandler<HTMLAnchorElement>;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
declare type LinkType = "default" | "button";
|
|
1789
|
+
|
|
1790
|
+
export declare const NavigationMenu: default_2.ForwardRefExoticComponent<NavigationMenuProps & default_2.RefAttributes<HTMLElement>> & {
|
|
1791
|
+
Item: default_2.ForwardRefExoticComponent<NavigationMenuItemProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1792
|
+
Label: default_2.ForwardRefExoticComponent<NavigationMenuLabelProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
export declare interface NavigationMenuData {
|
|
1796
|
+
/**
|
|
1797
|
+
* Unique identifier for the menu item.
|
|
1798
|
+
*/
|
|
1799
|
+
id: string;
|
|
1800
|
+
/**
|
|
1801
|
+
* Text label to display for the item.
|
|
1802
|
+
*/
|
|
1803
|
+
label: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Optional icon to display next to the label.
|
|
1806
|
+
*/
|
|
1807
|
+
icon?: ReactNode;
|
|
1808
|
+
/**
|
|
1809
|
+
* Nested menu items (sub-menus).
|
|
1810
|
+
*/
|
|
1811
|
+
children?: NavigationMenuData[];
|
|
1812
|
+
/**
|
|
1813
|
+
* If true, the item is disabled and cannot be interacted with.
|
|
1814
|
+
*/
|
|
1815
|
+
disabled?: boolean;
|
|
1816
|
+
/**
|
|
1817
|
+
* URL path for navigation.
|
|
1818
|
+
*/
|
|
1819
|
+
path?: string;
|
|
1820
|
+
/**
|
|
1821
|
+
* HTML target attribute for the link (e.g., "_blank").
|
|
1822
|
+
*/
|
|
1823
|
+
target?: HTMLAttributeAnchorTarget;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
declare interface NavigationMenuItemProps {
|
|
1827
|
+
/**
|
|
1828
|
+
* The data object representing this menu item.
|
|
1829
|
+
*/
|
|
1830
|
+
node: NavigationMenuData;
|
|
1831
|
+
/**
|
|
1832
|
+
* The depth level of the item in the hierarchy (0-based).
|
|
1833
|
+
*/
|
|
1834
|
+
level?: number;
|
|
1835
|
+
/**
|
|
1836
|
+
* If true, this is the first item in its group.
|
|
1837
|
+
*/
|
|
1838
|
+
isFirst?: boolean;
|
|
1839
|
+
/**
|
|
1840
|
+
* If true, this is the last item in its group.
|
|
1841
|
+
*/
|
|
1842
|
+
isLast?: boolean;
|
|
1843
|
+
/**
|
|
1844
|
+
* The current active path used for highlighting selected items.
|
|
1845
|
+
*/
|
|
1846
|
+
currentPath?: string;
|
|
1847
|
+
/**
|
|
1848
|
+
* Callback function to handle navigation.
|
|
1849
|
+
*/
|
|
1850
|
+
onNavigate?: (path: string) => void;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
declare interface NavigationMenuLabelProps {
|
|
1854
|
+
/**
|
|
1855
|
+
* The data object for the menu item label.
|
|
1856
|
+
*/
|
|
1857
|
+
node: NavigationMenuData;
|
|
1858
|
+
/**
|
|
1859
|
+
* If true, the item is currently selected.
|
|
1860
|
+
*/
|
|
1861
|
+
selected?: boolean;
|
|
1862
|
+
/**
|
|
1863
|
+
* Click handler for the label.
|
|
1864
|
+
*/
|
|
1865
|
+
onClick?: () => void;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
declare interface NavigationMenuProps {
|
|
1869
|
+
/**
|
|
1870
|
+
* Array of menu items to render.
|
|
1871
|
+
*/
|
|
1872
|
+
data: NavigationMenuData[];
|
|
1873
|
+
/**
|
|
1874
|
+
* Array of item IDs that should be expanded by default.
|
|
1875
|
+
*/
|
|
1876
|
+
defaultExpanded?: string[];
|
|
1877
|
+
/**
|
|
1878
|
+
* Controls the size of the menu items.
|
|
1879
|
+
* @default "medium"
|
|
1880
|
+
*/
|
|
1881
|
+
size?: NavigationMenuVariants["size"];
|
|
1882
|
+
/**
|
|
1883
|
+
* Callback fired when a node is selected.
|
|
1884
|
+
*/
|
|
1885
|
+
onNodeSelect?: (id: string) => void;
|
|
1886
|
+
/**
|
|
1887
|
+
* Custom renderer for the menu item label.
|
|
1888
|
+
*/
|
|
1889
|
+
renderLabel?: (node: NavigationMenuData) => ReactNode;
|
|
1890
|
+
/**
|
|
1891
|
+
* Controls how selected menu items scroll into view within their container.
|
|
1892
|
+
* - `"center"`: Centers the item (may affect parent scroll containers like body)
|
|
1893
|
+
* - `"nearest"`: Minimal scroll, only if item is out of view (recommended for nested menus)
|
|
1894
|
+
* - `"start"`: Aligns item to the top of the container
|
|
1895
|
+
* - `"end"`: Aligns item to the bottom of the container
|
|
1896
|
+
*
|
|
1897
|
+
* @default "center"
|
|
1898
|
+
*/
|
|
1899
|
+
scrollBehavior?: ScrollLogicalPosition;
|
|
1900
|
+
/**
|
|
1901
|
+
* Additional CSS class names.
|
|
1902
|
+
*/
|
|
1903
|
+
className?: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* Inline styles.
|
|
1906
|
+
*/
|
|
1907
|
+
style?: React.CSSProperties;
|
|
1908
|
+
/**
|
|
1909
|
+
* If true, displays connecting lines between parent and child items.
|
|
1910
|
+
* @default false
|
|
1911
|
+
*/
|
|
1912
|
+
showLines?: boolean;
|
|
1913
|
+
/**
|
|
1914
|
+
* Style of the connecting lines (if shown).
|
|
1915
|
+
* @default "solid"
|
|
1916
|
+
*/
|
|
1917
|
+
styleLines?: NavigationMenuVariants["styleLines"];
|
|
1918
|
+
/**
|
|
1919
|
+
* If true, keeps all menu items expanded by default.
|
|
1920
|
+
* @default false
|
|
1921
|
+
*/
|
|
1922
|
+
alwaysOpen?: boolean;
|
|
1923
|
+
/**
|
|
1924
|
+
* Visual style for the selected item.
|
|
1925
|
+
* @default "highlight"
|
|
1926
|
+
*/
|
|
1927
|
+
selectedStyle?: NavigationMenuVariants["selectedStyle"];
|
|
1928
|
+
/**
|
|
1929
|
+
* The current active path for highlighting.
|
|
1930
|
+
*/
|
|
1931
|
+
currentPath: string;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
declare type NavigationMenuVariants = VariantProps<typeof navigationMenuVariants>;
|
|
1935
|
+
|
|
1936
|
+
declare const navigationMenuVariants: (props?: ({
|
|
1937
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
1938
|
+
showLines?: boolean | null | undefined;
|
|
1939
|
+
styleLines?: "dashed" | "dotted" | "solid" | null | undefined;
|
|
1940
|
+
selectedStyle?: "border" | "highlight" | null | undefined;
|
|
1941
|
+
} & ClassProp) | undefined) => string;
|
|
1942
|
+
|
|
1943
|
+
declare const Notification_2: ForwardRefExoticComponent<NotificationProps & RefAttributes<HTMLDivElement>>;
|
|
1944
|
+
export { Notification_2 as Notification }
|
|
1945
|
+
|
|
1946
|
+
declare type NotificationContextType = {
|
|
1947
|
+
showNotification: (props: Omit<NotificationProps, "id">) => void;
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
declare interface NotificationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "size"> {
|
|
1951
|
+
/**
|
|
1952
|
+
* Define el tipo semántico de la notificación (por ejemplo, 'info', 'success', 'warning', 'error').
|
|
1953
|
+
* Esto suele afectar el color del icono y del borde/fondo de la notificación. .
|
|
1954
|
+
*/
|
|
1955
|
+
notificationType?: NotificationVariants["notificationType"];
|
|
1956
|
+
/**
|
|
1957
|
+
* Define la posición en la pantalla donde aparecerá la notificación .
|
|
1958
|
+
*/
|
|
1959
|
+
placement?: NotificationVariants["placement"];
|
|
1960
|
+
/**
|
|
1961
|
+
* Define la variante visual general de la notificación .
|
|
1962
|
+
*/
|
|
1963
|
+
variant?: NotificationVariants["variant"];
|
|
1964
|
+
/**
|
|
1965
|
+
* Define el radio de los bordes del input.
|
|
1966
|
+
*/
|
|
1967
|
+
radius?: NotificationVariants["radius"];
|
|
1968
|
+
/**
|
|
1969
|
+
* El título principal de la notificación.
|
|
1970
|
+
*/
|
|
1971
|
+
title?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* El mensaje o contenido principal de la notificación.
|
|
1974
|
+
*/
|
|
1975
|
+
message?: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* Opcional: Un elemento React para usar como icono principal de la notificación.
|
|
1978
|
+
* Si no se proporciona, se puede usar un icono por defecto basado en `notificationType`.
|
|
1979
|
+
*/
|
|
1980
|
+
icon?: React.ReactNode;
|
|
1981
|
+
/**
|
|
1982
|
+
* Indica si el usuario puede cerrar la notificación manualmente (por ejemplo, haciendo clic en un botón de cerrar).
|
|
1983
|
+
* @default true (o el valor que se defina en el componente)
|
|
1984
|
+
*/
|
|
1985
|
+
closable?: boolean;
|
|
1986
|
+
/**
|
|
1987
|
+
* La duración en milisegundos que la notificación permanecerá visible antes de cerrarse automáticamente.
|
|
1988
|
+
* Si es 0 o indefinido, la notificación no se cerrará automáticamente.
|
|
1989
|
+
*/
|
|
1990
|
+
duration?: number;
|
|
1991
|
+
/**
|
|
1992
|
+
* Callback que se dispara cuando la notificación se cierra, ya sea manualmente por el usuario o automáticamente después de `duration`.
|
|
1993
|
+
*/
|
|
1994
|
+
onClose?: () => void;
|
|
1995
|
+
/**
|
|
1996
|
+
* Callback que se dispara cuando el usuario activa la acción de confirmación.
|
|
1997
|
+
* La presencia de este handler suele indicar que la notificación tiene botones de acción.
|
|
1998
|
+
*/
|
|
1999
|
+
onConfirm?: () => void;
|
|
2000
|
+
/**
|
|
2001
|
+
* Callback que se dispara cuando el usuario activa la acción de cancelación.
|
|
2002
|
+
* La presencia de este handler suele indicar que la notificación tiene botones de acción.
|
|
2003
|
+
*/
|
|
2004
|
+
onCancel?: () => void;
|
|
2005
|
+
/**
|
|
2006
|
+
* El texto que se muestra en el botón o enlace de cancelación.
|
|
2007
|
+
* Relevante cuando se usa `onCancel`.
|
|
2008
|
+
* @default 'Cancel'
|
|
2009
|
+
*/
|
|
2010
|
+
cancelText?: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* El texto que se muestra en el botón o enlace de confirmación.
|
|
2013
|
+
* Relevante cuando se usa `onConfirm`.
|
|
2014
|
+
* @default 'Confirm'
|
|
2015
|
+
*/
|
|
2016
|
+
confirmText?: string;
|
|
2017
|
+
/**
|
|
2018
|
+
* Una etiqueta para accesibilidad (ARIA). Proporciona una descripción concisa para lectores de pantalla.
|
|
2019
|
+
*/
|
|
2020
|
+
"aria-label"?: string;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
export declare const NotificationProvider: ({ children, maxNotifications, placement: defaultPlacement, duration: defaultDuration }: {
|
|
2024
|
+
children?: ReactNode;
|
|
2025
|
+
maxNotifications?: number;
|
|
2026
|
+
placement?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
2027
|
+
duration?: number;
|
|
2028
|
+
}) => JSX.Element;
|
|
2029
|
+
|
|
2030
|
+
declare type NotificationVariants = VariantProps<typeof notificationVariants>;
|
|
2031
|
+
|
|
2032
|
+
declare const notificationVariants: (props?: ({
|
|
2033
|
+
notificationType?: "neutral" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2034
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2035
|
+
variant?: "soft" | "solid" | "themed" | "darkened" | "lightened" | null | undefined;
|
|
2036
|
+
placement?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | null | undefined;
|
|
2037
|
+
} & ClassProp) | undefined) => string;
|
|
2038
|
+
|
|
2039
|
+
export declare const Pagination: default_2.ForwardRefExoticComponent<PaginationProps & default_2.RefAttributes<HTMLElement>>;
|
|
2040
|
+
|
|
2041
|
+
declare const paginationButton: (props?: ({
|
|
2042
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2043
|
+
variant?: "soft" | "solid" | "outline" | "bordered" | null | undefined;
|
|
2044
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2045
|
+
isActive?: boolean | null | undefined;
|
|
2046
|
+
disabled?: boolean | null | undefined;
|
|
2047
|
+
isNavigation?: boolean | null | undefined;
|
|
2048
|
+
} & ClassProp) | undefined) => string;
|
|
2049
|
+
|
|
2050
|
+
declare interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
2051
|
+
/**
|
|
2052
|
+
* La página actual activa.
|
|
2053
|
+
*/
|
|
2054
|
+
currentPage: number;
|
|
2055
|
+
/**
|
|
2056
|
+
* El número total de páginas.
|
|
2057
|
+
*/
|
|
2058
|
+
totalPages: number;
|
|
2059
|
+
/**
|
|
2060
|
+
* Callback que se llama cuando el usuario cambia de página.
|
|
2061
|
+
* @param pageNumber El número de la nueva página seleccionada.
|
|
2062
|
+
*/
|
|
2063
|
+
onPageChange: (pageNumber: number) => void;
|
|
2064
|
+
/**
|
|
2065
|
+
* Número máximo de botones de página visibles (excluyendo los botones de primera/última página y '...').
|
|
2066
|
+
* Si el total de páginas es menor o igual a este número, se muestran todas las páginas.
|
|
2067
|
+
* Por defecto es 5.
|
|
2068
|
+
*/
|
|
2069
|
+
maxVisiblePages?: number;
|
|
2070
|
+
/**
|
|
2071
|
+
* Mostrar botones para ir a la primera y última página.
|
|
2072
|
+
* Por defecto es true.
|
|
2073
|
+
*/
|
|
2074
|
+
showFirstLastButtons?: boolean;
|
|
2075
|
+
/**
|
|
2076
|
+
* Mostrar botones para ir a la página anterior y siguiente.
|
|
2077
|
+
* Por defecto es true.
|
|
2078
|
+
*/
|
|
2079
|
+
showPrevNextButtons?: boolean;
|
|
2080
|
+
/**
|
|
2081
|
+
* Deshabilitar toda la paginación.
|
|
2082
|
+
* Por defecto es false.
|
|
2083
|
+
*/
|
|
2084
|
+
disabled?: boolean;
|
|
2085
|
+
/**
|
|
2086
|
+
* Tamaño de los botones de paginación.
|
|
2087
|
+
* @default "medium"
|
|
2088
|
+
*/
|
|
2089
|
+
size?: PaginationVariants["size"];
|
|
2090
|
+
/**
|
|
2091
|
+
* Radio de los botones de paginación.
|
|
2092
|
+
* @default "small"
|
|
2093
|
+
*/
|
|
2094
|
+
radius?: PaginationVariants["radius"];
|
|
2095
|
+
/**
|
|
2096
|
+
* Variante visual de los botones de paginación.
|
|
2097
|
+
* @default "outline"
|
|
2098
|
+
*/
|
|
2099
|
+
variant?: PaginationVariants["variant"];
|
|
2100
|
+
/**
|
|
2101
|
+
* Etiqueta ARIA para la navegación de paginación.
|
|
2102
|
+
* Por defecto es "Navegación de página".
|
|
2103
|
+
*/
|
|
2104
|
+
ariaLabel?: string;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
declare type PaginationVariants = VariantProps<typeof paginationButton>;
|
|
2108
|
+
|
|
2109
|
+
declare const pos_label: (props?: ({
|
|
2110
|
+
position_label?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
2111
|
+
disabled?: boolean | null | undefined;
|
|
2112
|
+
checked?: boolean | null | undefined;
|
|
2113
|
+
} & ClassProp) | undefined) => string;
|
|
2114
|
+
|
|
2115
|
+
export declare const Progress: default_2.ForwardRefExoticComponent<ProgressProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2116
|
+
|
|
2117
|
+
declare interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "color"> {
|
|
2118
|
+
/**
|
|
2119
|
+
* Valor del progreso (0-100).
|
|
2120
|
+
*/
|
|
2121
|
+
value: number;
|
|
2122
|
+
/**
|
|
2123
|
+
* Si es true, muestra el progreso como indeterminado (animación infinita).
|
|
2124
|
+
*/
|
|
2125
|
+
indeterminate?: boolean;
|
|
2126
|
+
/**
|
|
2127
|
+
* Tamaño del progreso
|
|
2128
|
+
*/
|
|
2129
|
+
size?: ProgressVariants["size"];
|
|
2130
|
+
/**
|
|
2131
|
+
* Color del progreso
|
|
2132
|
+
*/
|
|
2133
|
+
color?: ProgressVariants["color"];
|
|
2134
|
+
/**
|
|
2135
|
+
* Variant del progreso
|
|
2136
|
+
*/
|
|
2137
|
+
variant?: ProgressVariants["variant"];
|
|
2138
|
+
/**
|
|
2139
|
+
* Clases adicionales
|
|
2140
|
+
*/
|
|
2141
|
+
className?: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* Etiqueta del progreso
|
|
2144
|
+
*/
|
|
2145
|
+
label?: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* Mostrar valor del progreso
|
|
2148
|
+
*/
|
|
2149
|
+
showValue?: boolean;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
declare type ProgressVariants = VariantProps<typeof progressVariants>;
|
|
2153
|
+
|
|
2154
|
+
declare const progressVariants: (props?: ({
|
|
2155
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2156
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2157
|
+
variant?: "bar" | "circle" | null | undefined;
|
|
2158
|
+
} & ClassProp) | undefined) => string;
|
|
2159
|
+
|
|
2160
|
+
export declare const Radio: default_2.ForwardRefExoticComponent<RadioProps & default_2.RefAttributes<HTMLInputElement>> & {
|
|
2161
|
+
Button: default_2.ForwardRefExoticComponent<RadioProps & {
|
|
2162
|
+
icon?: ReactNode;
|
|
2163
|
+
} & default_2.RefAttributes<HTMLInputElement>>;
|
|
2164
|
+
Card: default_2.ForwardRefExoticComponent<RadioProps & {
|
|
2165
|
+
title?: string;
|
|
2166
|
+
subtitle?: string;
|
|
2167
|
+
body?: default_2.ReactElement;
|
|
2168
|
+
showRadio?: boolean;
|
|
2169
|
+
color?: RadioGroupVariants["color"];
|
|
2170
|
+
} & default_2.RefAttributes<HTMLInputElement>>;
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
export declare const RadioGroup: FC<PropsWithChildren<RadioGroupProps>>;
|
|
2174
|
+
|
|
2175
|
+
export declare interface RadioGroupProps {
|
|
2176
|
+
/**
|
|
2177
|
+
* Defines the layout direction of the radio buttons within the group (e.g., 'horizontal' or 'vertical').
|
|
2178
|
+
*/
|
|
2179
|
+
orientation?: RadioGroupVariants["orientation"];
|
|
2180
|
+
/**
|
|
2181
|
+
* Controls the overall size of the radio group and its influence on individual radio buttons.
|
|
2182
|
+
*/
|
|
2183
|
+
size?: RadioGroupVariants["size"];
|
|
2184
|
+
/**
|
|
2185
|
+
* Sets the border radius for the group, typically affecting the visual container or the radios themselves.
|
|
2186
|
+
*/
|
|
2187
|
+
radius?: RadioGroupVariants["radius"];
|
|
2188
|
+
/**
|
|
2189
|
+
* Establishes the color scheme for all contained radio buttons.
|
|
2190
|
+
*/
|
|
2191
|
+
color?: RadioGroupVariants["color"];
|
|
2192
|
+
/**
|
|
2193
|
+
* Controls the general visual style or aesthetic of the radio group (e.g., 'solid', 'outline').
|
|
2194
|
+
*/
|
|
2195
|
+
variant?: RadioGroupVariants["variant"];
|
|
2196
|
+
/**
|
|
2197
|
+
* Controls the visibility of the radio input circle/dot itself.
|
|
2198
|
+
* @default false
|
|
2199
|
+
*/
|
|
2200
|
+
hideRadio?: boolean;
|
|
2201
|
+
/**
|
|
2202
|
+
* If set to true, disables all individual radio buttons within this group.
|
|
2203
|
+
* @default false
|
|
2204
|
+
*/
|
|
2205
|
+
disabled?: boolean;
|
|
2206
|
+
/**
|
|
2207
|
+
* The HTML `name` attribute applied to all radio buttons. Essential for grouping and ensuring only one option can be selected at a time.
|
|
2208
|
+
*/
|
|
2209
|
+
name?: string;
|
|
2210
|
+
/**
|
|
2211
|
+
* The currently selected radio button's `value` (for use as a controlled component).
|
|
2212
|
+
*/
|
|
2213
|
+
selectedOption?: string;
|
|
2214
|
+
/**
|
|
2215
|
+
* Callback function executed when the user selects a different radio button. Receives the `value` of the newly selected radio.
|
|
2216
|
+
*/
|
|
2217
|
+
onChangeOption?: (value: string) => void;
|
|
2218
|
+
/**
|
|
2219
|
+
* The initial selected `value` when the component is first mounted (for use as an uncontrolled component).
|
|
2220
|
+
*/
|
|
2221
|
+
defaultValue?: string;
|
|
2222
|
+
/**
|
|
2223
|
+
* Defines the spacing (margin) between individual radio buttons inside the group, using a valid CSS value (e.g., '8px', '1rem').
|
|
2224
|
+
*/
|
|
2225
|
+
gap?: string;
|
|
2226
|
+
/**
|
|
2227
|
+
* The individual radio buttons (`<Radio />`) passed as children to the group.
|
|
2228
|
+
*/
|
|
2229
|
+
children: React.ReactNode;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
declare const RadioGroups: (props?: ({
|
|
2233
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
2234
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2235
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2236
|
+
type?: "button" | "radio" | "card" | null | undefined;
|
|
2237
|
+
variant?: "soft" | "solid" | "outline" | null | undefined;
|
|
2238
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2239
|
+
} & ClassProp) | undefined) => string;
|
|
2240
|
+
|
|
2241
|
+
declare type RadioGroupVariants = VariantProps<typeof RadioGroups>;
|
|
2242
|
+
|
|
2243
|
+
declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "checked" | "color" | "type" | "value"> {
|
|
2244
|
+
/**
|
|
2245
|
+
* Controls the placement of the text label (`label`) relative to the radio control (e.g., 'left' or 'right').
|
|
2246
|
+
*/
|
|
2247
|
+
positionLabel?: RadioVariants["positionLabel"];
|
|
2248
|
+
/**
|
|
2249
|
+
* Disables this specific radio button, preventing user interaction.
|
|
2250
|
+
*/
|
|
2251
|
+
disabled?: RadioVariants["disabled"];
|
|
2252
|
+
/**
|
|
2253
|
+
* The descriptive text displayed next to the radio control, semantically associated with it.
|
|
2254
|
+
*/
|
|
2255
|
+
label?: string;
|
|
2256
|
+
/**
|
|
2257
|
+
* The unique value associated with this specific radio option. This value is used by the parent RadioGroup to determine selection.
|
|
2258
|
+
* Note: The `checked` state is managed externally by the `RadioGroup` based on this value.
|
|
2259
|
+
*/
|
|
2260
|
+
value: string | number | ReadonlyArray<string>;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
declare type RadioVariants = VariantProps<typeof wrapper>;
|
|
2264
|
+
|
|
2265
|
+
export declare const Rating: ForwardRefExoticComponent<RatingProps & RefAttributes<HTMLDivElement>>;
|
|
2266
|
+
|
|
2267
|
+
declare interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, "size" | "disabled" | "checked" | "color" | "onChange"> {
|
|
2268
|
+
/**
|
|
2269
|
+
* Controla el tamaño visual del control de calificación.
|
|
2270
|
+
* @default "medium"
|
|
2271
|
+
*/
|
|
2272
|
+
size?: RatingVariants["size"];
|
|
2273
|
+
/**
|
|
2274
|
+
* Define el estilo visual del control de calificación.
|
|
2275
|
+
* @default "solid"
|
|
2276
|
+
*/
|
|
2277
|
+
variant?: RatingVariants["variant"];
|
|
2278
|
+
/**
|
|
2279
|
+
* Define el color del control de calificación.
|
|
2280
|
+
* @default "default"
|
|
2281
|
+
*/
|
|
2282
|
+
color?: RatingVariants["color"];
|
|
2283
|
+
/**
|
|
2284
|
+
* Define el valor actual del control de calificación.
|
|
2285
|
+
* @default 0
|
|
2286
|
+
*/
|
|
2287
|
+
value?: number;
|
|
2288
|
+
/**
|
|
2289
|
+
*Función que se ejecuta cuando el valor del control de calificación cambia.
|
|
2290
|
+
*/
|
|
2291
|
+
onChange?: (value: number) => void;
|
|
2292
|
+
/**
|
|
2293
|
+
* Define el icono personalizado.
|
|
2294
|
+
*/
|
|
2295
|
+
customIcon?: React.ReactNode[];
|
|
2296
|
+
/**
|
|
2297
|
+
* Define el texto personalizado, para cada nivel de calificación.
|
|
2298
|
+
*/
|
|
2299
|
+
text?: string[];
|
|
2300
|
+
/**
|
|
2301
|
+
* Define la posición del texto personalizado.
|
|
2302
|
+
* @default "right"
|
|
2303
|
+
*/
|
|
2304
|
+
textPosition?: "top" | "bottom" | "right";
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
declare type RatingVariants = VariantProps<typeof ratingVariants>;
|
|
2308
|
+
|
|
2309
|
+
declare const ratingVariants: (props?: ({
|
|
2310
|
+
variant?: "solid" | "outline" | "bordered" | null | undefined;
|
|
2311
|
+
color?: "default" | "primary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2312
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2313
|
+
type?: "string" | "icon" | "custom" | null | undefined;
|
|
2314
|
+
textPosition?: "right" | "bottom" | "top" | null | undefined;
|
|
2315
|
+
} & ClassProp) | undefined) => string;
|
|
2316
|
+
|
|
2317
|
+
declare interface ScriptProps extends React_2.DetailedHTMLProps<React_2.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement> {
|
|
2318
|
+
[dataAttribute: DataAttribute]: any;
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
export declare const Select: default_2.ForwardRefExoticComponent<SelectProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2322
|
+
|
|
2323
|
+
declare const selectContainerVariants: (props?: ({
|
|
2324
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2325
|
+
variant?: "soft" | "underline" | "outline" | null | undefined;
|
|
2326
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2327
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2328
|
+
disabled?: boolean | null | undefined;
|
|
2329
|
+
invalid?: boolean | null | undefined;
|
|
2330
|
+
} & ClassProp) | undefined) => string;
|
|
2331
|
+
|
|
2332
|
+
declare interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "size" | "disabled" | "value" | "onChange" | "placeholder" | "required" | "multiple" | "name" | "color"> {
|
|
2333
|
+
/**
|
|
2334
|
+
* Controls the size of the select component, affecting its padding and font size.
|
|
2335
|
+
*/
|
|
2336
|
+
size?: SelectVariants["size"];
|
|
2337
|
+
/**
|
|
2338
|
+
* Controls the border radius applied to the select trigger.
|
|
2339
|
+
*/
|
|
2340
|
+
radius?: SelectVariants["radius"];
|
|
2341
|
+
/**
|
|
2342
|
+
* Visual styling variant of the select component.
|
|
2343
|
+
*/
|
|
2344
|
+
variant?: SelectVariants["variant"];
|
|
2345
|
+
/**
|
|
2346
|
+
* Controls the color theme of the select component.
|
|
2347
|
+
*/
|
|
2348
|
+
color?: SelectVariants["color"];
|
|
2349
|
+
/**
|
|
2350
|
+
* Disables the select component, preventing user interaction.
|
|
2351
|
+
* @default false
|
|
2352
|
+
*/
|
|
2353
|
+
disabled?: boolean;
|
|
2354
|
+
/**
|
|
2355
|
+
* Indicates whether the select is in an invalid validation state.
|
|
2356
|
+
* @default false
|
|
2357
|
+
*/
|
|
2358
|
+
invalid?: boolean;
|
|
2359
|
+
/**
|
|
2360
|
+
* Optional text label associated with the select control.
|
|
2361
|
+
*/
|
|
2362
|
+
label?: string;
|
|
2363
|
+
/**
|
|
2364
|
+
* Array of option objects available for selection.
|
|
2365
|
+
* Must follow the `IListCollection` structure.
|
|
2366
|
+
*/
|
|
2367
|
+
options: IListCollection[];
|
|
2368
|
+
/**
|
|
2369
|
+
* Placeholder text displayed when no value is selected.
|
|
2370
|
+
*/
|
|
2371
|
+
placeholder?: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* Error message shown when `invalid` is true.
|
|
2374
|
+
* Typically displayed below the select.
|
|
2375
|
+
*/
|
|
2376
|
+
errorMessage?: string;
|
|
2377
|
+
/**
|
|
2378
|
+
* Optional helper text displayed below the select.
|
|
2379
|
+
*/
|
|
2380
|
+
helperText?: string;
|
|
2381
|
+
/**
|
|
2382
|
+
* Indicates whether selecting a value is required.
|
|
2383
|
+
* @default false
|
|
2384
|
+
*/
|
|
2385
|
+
required?: boolean;
|
|
2386
|
+
/**
|
|
2387
|
+
* The currently selected value (for controlled usage).
|
|
2388
|
+
*/
|
|
2389
|
+
value?: string;
|
|
2390
|
+
/**
|
|
2391
|
+
* Initial value for uncontrolled usage.
|
|
2392
|
+
* Ignored when `value` is provided.
|
|
2393
|
+
*/
|
|
2394
|
+
defaultValue?: string;
|
|
2395
|
+
/**
|
|
2396
|
+
* Callback fired when the user selects a new option.
|
|
2397
|
+
* Receives the `value` of the selected option, or `undefined`
|
|
2398
|
+
* when the selection is cleared (native behavior).
|
|
2399
|
+
*/
|
|
2400
|
+
onChange?: (value: string | undefined) => void;
|
|
2401
|
+
/**
|
|
2402
|
+
* The `name` attribute for the underlying native `<select>` element.
|
|
2403
|
+
* Useful for form serialization.
|
|
2404
|
+
*/
|
|
2405
|
+
name?: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* Indicates the select’s position inside a Join group (if used within one).
|
|
2408
|
+
*/
|
|
2409
|
+
joinposition?: "first" | "last" | "middle";
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
declare type SelectVariants = VariantProps<typeof selectContainerVariants>;
|
|
2413
|
+
|
|
2414
|
+
export declare const Skeleton: default_2.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
|
|
2415
|
+
|
|
2416
|
+
declare type SkeletonAnimationType = "fade" | "wave";
|
|
2417
|
+
|
|
2418
|
+
declare interface SkeletonProps extends HTMLMotionProps<"div"> {
|
|
2419
|
+
/**
|
|
2420
|
+
* Forma del skeleton: rectángulo o círculo
|
|
2421
|
+
*/
|
|
2422
|
+
shape?: SkeletonShape;
|
|
2423
|
+
/**
|
|
2424
|
+
* Si es true y shape es rect, el skeleton tendrá bordes redondeados
|
|
2425
|
+
*/
|
|
2426
|
+
rounded?: boolean;
|
|
2427
|
+
/**
|
|
2428
|
+
* Ancho del skeleton (puede ser string o número)
|
|
2429
|
+
*/
|
|
2430
|
+
width?: string | number;
|
|
2431
|
+
/**
|
|
2432
|
+
* Alto del skeleton (puede ser string o número)
|
|
2433
|
+
*/
|
|
2434
|
+
height?: string | number;
|
|
2435
|
+
/**
|
|
2436
|
+
* Tipo de animación: 'fade' (por defecto) o 'wave' (CSS)
|
|
2437
|
+
*/
|
|
2438
|
+
animationType?: SkeletonAnimationType;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
declare type SkeletonShape = "rect" | "circle";
|
|
2442
|
+
|
|
2443
|
+
export declare const Slider: default_2.ForwardRefExoticComponent<SliderSingleProps & default_2.RefAttributes<HTMLDivElement>> & {
|
|
2444
|
+
Range: default_2.ForwardRefExoticComponent<SliderRangeProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2445
|
+
};
|
|
2446
|
+
|
|
2447
|
+
declare type SliderMarks = {
|
|
2448
|
+
value: number;
|
|
2449
|
+
label?: string | number;
|
|
2450
|
+
};
|
|
2451
|
+
|
|
2452
|
+
declare interface SliderRangeProps extends BaseSliderProps {
|
|
2453
|
+
/**
|
|
2454
|
+
* The default value of the slider.
|
|
2455
|
+
*/
|
|
2456
|
+
defaultValue?: [number, number];
|
|
2457
|
+
/**
|
|
2458
|
+
* The current value range represented as [start, end].
|
|
2459
|
+
*/
|
|
2460
|
+
value?: [number, number];
|
|
2461
|
+
/**
|
|
2462
|
+
* Callback fired when the selected range changes.
|
|
2463
|
+
*/
|
|
2464
|
+
onChangeValue?: (value: [number, number]) => void;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
declare interface SliderSingleProps extends BaseSliderProps {
|
|
2468
|
+
/**
|
|
2469
|
+
* The default value of the slider.
|
|
2470
|
+
*/
|
|
2471
|
+
defaultValue?: number;
|
|
2472
|
+
/**
|
|
2473
|
+
* The current value of the slider.
|
|
2474
|
+
*/
|
|
2475
|
+
value?: number;
|
|
2476
|
+
/**
|
|
2477
|
+
* Callback fired when the slider value changes.
|
|
2478
|
+
*/
|
|
2479
|
+
onChangeValue?: (value: number) => void;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
declare type SliderSize = SliderTrackVariants["size"];
|
|
2483
|
+
|
|
2484
|
+
declare const sliderTrack: (props?: ({
|
|
2485
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2486
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2487
|
+
radius?: "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2488
|
+
viewBar?: boolean | null | undefined;
|
|
2489
|
+
disabled?: boolean | null | undefined;
|
|
2490
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
2491
|
+
} & ClassProp) | undefined) => string;
|
|
2492
|
+
|
|
2493
|
+
declare type SliderTrackVariants = VariantProps<typeof sliderTrack>;
|
|
2494
|
+
|
|
2495
|
+
declare interface SortConfig {
|
|
2496
|
+
key: string | null;
|
|
2497
|
+
direction: "asc" | "desc";
|
|
2498
|
+
type?: "string" | "number" | "date" | "boolean";
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
export declare const Splitter: default_2.ForwardRefExoticComponent<SplitterProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2502
|
+
|
|
2503
|
+
declare type SplitterDirection = "horizontal" | "vertical";
|
|
2504
|
+
|
|
2505
|
+
declare interface SplitterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2506
|
+
/**
|
|
2507
|
+
* Dirección del splitter (horizontal=columnas, vertical=filas)
|
|
2508
|
+
*/
|
|
2509
|
+
direction?: SplitterDirection;
|
|
2510
|
+
/**
|
|
2511
|
+
* Mínimo tamaño del primer panel (px)
|
|
2512
|
+
*/
|
|
2513
|
+
/**
|
|
2514
|
+
* Mínimo tamaño del primer panel (px o porcentaje, ej: 100 o "30%")
|
|
2515
|
+
*/
|
|
2516
|
+
min?: number | string;
|
|
2517
|
+
/**
|
|
2518
|
+
* Máximo tamaño del primer panel (px o porcentaje, ej: 600 o "70%")
|
|
2519
|
+
*/
|
|
2520
|
+
max?: number | string;
|
|
2521
|
+
/**
|
|
2522
|
+
* Tamaño inicial del primer panel (px o porcentaje, ej: 200 o "50%")
|
|
2523
|
+
*/
|
|
2524
|
+
initial?: number | string;
|
|
2525
|
+
/**
|
|
2526
|
+
* Clases adicionales
|
|
2527
|
+
*/
|
|
2528
|
+
className?: string;
|
|
2529
|
+
/**
|
|
2530
|
+
* Los hijos deben ser dos elementos (los paneles)
|
|
2531
|
+
*/
|
|
2532
|
+
children: React.ReactNode[] | React.ReactNode;
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
declare interface StepContentProps {
|
|
2536
|
+
/** The index of the step this content belongs to */
|
|
2537
|
+
index?: number;
|
|
2538
|
+
/** The content to be rendered */
|
|
2539
|
+
children: ReactNode;
|
|
2540
|
+
/** Whether validation should be performed for this step */
|
|
2541
|
+
validate?: boolean;
|
|
2542
|
+
/** Whether the step content is currently valid */
|
|
2543
|
+
isValid?: boolean;
|
|
2544
|
+
/** Error message to display if validation fails */
|
|
2545
|
+
errorMessage?: string;
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
export declare const Stepper: default_2.FC<StepperProps> & {
|
|
2549
|
+
Step: default_2.FC<StepProps>;
|
|
2550
|
+
Content: default_2.FC<StepContentProps>;
|
|
2551
|
+
CompletedContent: default_2.FC<StepContentProps>;
|
|
2552
|
+
};
|
|
2553
|
+
|
|
2554
|
+
declare interface StepperProps {
|
|
2555
|
+
/** Array of step objects defining the stepper structure */
|
|
2556
|
+
steps: StepperStep[];
|
|
2557
|
+
/** The index of the step that is active by default (0-indexed) */
|
|
2558
|
+
defaultActiveStep?: number;
|
|
2559
|
+
/** The orientation of the stepper */
|
|
2560
|
+
orientation?: StepperVariants["orientation"];
|
|
2561
|
+
/** Callback function triggered when a step is completed */
|
|
2562
|
+
onStepCompleted?: (stepIndex: number) => void;
|
|
2563
|
+
/** Additional CSS class names for the container */
|
|
2564
|
+
className?: string;
|
|
2565
|
+
/** Inline CSS styles for the container */
|
|
2566
|
+
style?: CSSProperties;
|
|
2567
|
+
/** Visual variant of the stepper */
|
|
2568
|
+
variant?: StepperVariants["variant"];
|
|
2569
|
+
/** Optional children elements */
|
|
2570
|
+
children?: ReactNode;
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
declare interface StepperStep {
|
|
2574
|
+
/** Unique identifier for the step */
|
|
2575
|
+
id?: string | number;
|
|
2576
|
+
/** The title of the step */
|
|
2577
|
+
title: ReactNode;
|
|
2578
|
+
/** Optional description or subtitle for the step */
|
|
2579
|
+
description?: ReactNode;
|
|
2580
|
+
/** Optional icon to display in the step indicator */
|
|
2581
|
+
icon?: ReactNode;
|
|
2582
|
+
/** The current status of the step */
|
|
2583
|
+
status?: StepperVariants["status"];
|
|
2584
|
+
/** The content to be rendered when this step is active */
|
|
2585
|
+
content?: ReactNode;
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
declare type StepperVariants = VariantProps<typeof stepperVariants>;
|
|
2589
|
+
|
|
2590
|
+
declare const stepperVariants: (props?: ({
|
|
2591
|
+
status?: "active" | "error" | "pending" | "completed" | null | undefined;
|
|
2592
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
2593
|
+
variant?: "soft" | "bordered" | null | undefined;
|
|
2594
|
+
} & ClassProp) | undefined) => string;
|
|
2595
|
+
|
|
2596
|
+
declare interface StepProps extends StepperStep {
|
|
2597
|
+
/** The index of the step within the stepper */
|
|
2598
|
+
index: number;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLInputElement>>;
|
|
2602
|
+
|
|
2603
|
+
declare type SwitchLabelVariants = VariantProps<typeof pos_label>;
|
|
2604
|
+
|
|
2605
|
+
declare const switchprop: (props?: ({
|
|
2606
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2607
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2608
|
+
variant?: "soft" | "solid" | "outline" | null | undefined;
|
|
2609
|
+
shape?: "default" | "square" | "subtle" | "rounded" | null | undefined;
|
|
2610
|
+
disabled?: boolean | null | undefined;
|
|
2611
|
+
checked?: boolean | null | undefined;
|
|
2612
|
+
} & ClassProp) | undefined) => string;
|
|
2613
|
+
|
|
2614
|
+
declare interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "disabled" | "checked" | "color"> {
|
|
2615
|
+
/**
|
|
2616
|
+
* Callback simple que se ejecuta cada vez que el estado del switch cambia (de activado a desactivado o viceversa).
|
|
2617
|
+
* Recibe el nuevo valor booleano.
|
|
2618
|
+
*/
|
|
2619
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
2620
|
+
/**
|
|
2621
|
+
* Controla el tamaño visual del control de interruptor.
|
|
2622
|
+
*/
|
|
2623
|
+
size?: SwitchVariants["size"];
|
|
2624
|
+
/**
|
|
2625
|
+
* Define el estilo visual del interruptor, como la apariencia del carril y el pulgar.
|
|
2626
|
+
*/
|
|
2627
|
+
variant?: SwitchVariants["variant"];
|
|
2628
|
+
/**
|
|
2629
|
+
* Establece el esquema de color para el interruptor, típicamente afectando el color cuando está activado.
|
|
2630
|
+
*/
|
|
2631
|
+
color?: SwitchVariants["color"];
|
|
2632
|
+
/**
|
|
2633
|
+
* Define la forma del interruptor (por ejemplo, con extremos redondeados o cuadrados).
|
|
2634
|
+
*/
|
|
2635
|
+
shape?: SwitchVariants["shape"];
|
|
2636
|
+
/**
|
|
2637
|
+
* Controla dónde se coloca la etiqueta de texto (`label`) en relación con el control del interruptor (por ejemplo, a la izquierda o a la derecha).
|
|
2638
|
+
*/
|
|
2639
|
+
positionLabel?: SwitchLabelVariants["position_label"];
|
|
2640
|
+
/**
|
|
2641
|
+
* Deshabilita el interruptor, impidiendo que el usuario cambie su estado y cambiando su apariencia para indicar que no está disponible.
|
|
2642
|
+
* @default false
|
|
2643
|
+
*/
|
|
2644
|
+
disabled?: boolean;
|
|
2645
|
+
/**
|
|
2646
|
+
* El texto que se muestra junto al control del interruptor, asociado semánticamente a él.
|
|
2647
|
+
*/
|
|
2648
|
+
label?: string;
|
|
2649
|
+
/**
|
|
2650
|
+
* Controla si el interruptor está activado (`true`) o desactivado (`false`).
|
|
2651
|
+
* Usar esta prop hace que el componente sea controlado.
|
|
2652
|
+
* @default false (o el valor por defecto del input nativo)
|
|
2653
|
+
*/
|
|
2654
|
+
checked?: boolean;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
export declare const SwitchTheme: default_2.FC<SwitchThemeProps>;
|
|
2658
|
+
|
|
2659
|
+
declare interface SwitchThemeProps {
|
|
2660
|
+
variant?: "solid" | "soft" | "subtle" | "text";
|
|
2661
|
+
size?: "tiny" | "small" | "medium" | "large";
|
|
2662
|
+
radius?: "default" | "tiny" | "small" | "medium" | "large";
|
|
2663
|
+
showLabel?: boolean;
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
declare type SwitchVariants = VariantProps<typeof switchprop>;
|
|
2667
|
+
|
|
2668
|
+
declare interface TabItemProps {
|
|
2669
|
+
title: string;
|
|
2670
|
+
icon?: React.ReactNode;
|
|
2671
|
+
disabled?: boolean;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
export declare const Table: (<T>({ size, variant, highlightOnHover, children, data, pagination, onSortColumn, ...props }: {
|
|
2675
|
+
children: ReactNode;
|
|
2676
|
+
data: T[];
|
|
2677
|
+
onSortColumn?: (column: string, direction: "asc" | "desc", type: SortConfig["type"]) => void;
|
|
2678
|
+
highlightOnHover?: boolean;
|
|
2679
|
+
pagination?: {
|
|
2680
|
+
page?: number;
|
|
2681
|
+
totalPages?: number;
|
|
2682
|
+
rowsPerPage?: number;
|
|
2683
|
+
totalRows?: number;
|
|
2684
|
+
onPageChange?: (page: number) => void;
|
|
2685
|
+
};
|
|
2686
|
+
} & HTMLAttributes<HTMLTableElement> & {
|
|
2687
|
+
size?: "tiny" | "small" | "medium" | "large";
|
|
2688
|
+
variant?: "soft" | "underlined" | "bordered" | "striped" | null | undefined;
|
|
2689
|
+
}) => JSX.Element) & {
|
|
2690
|
+
Header: ({ children, ...props }: HTMLAttributes<HTMLTableSectionElement> & {
|
|
2691
|
+
children: ReactNode;
|
|
2692
|
+
}) => JSX.Element;
|
|
2693
|
+
ColumnHeader: ({ children, sortKey, type, width, isSortable, ...props }: HTMLAttributes<HTMLTableCellElement> & {
|
|
2694
|
+
children: ReactNode;
|
|
2695
|
+
sortKey: string;
|
|
2696
|
+
type?: "string" | "number" | "date" | "boolean";
|
|
2697
|
+
width?: string;
|
|
2698
|
+
isSortable?: boolean;
|
|
2699
|
+
}) => JSX.Element;
|
|
2700
|
+
Body: ({ children, ...props }: HTMLAttributes<HTMLTableSectionElement> & {
|
|
2701
|
+
children: ReactNode;
|
|
2702
|
+
}) => JSX.Element;
|
|
2703
|
+
Row: ({ children, ...props }: HTMLAttributes<HTMLTableRowElement> & {
|
|
2704
|
+
children: ReactNode;
|
|
2705
|
+
}) => JSX.Element;
|
|
2706
|
+
Cell: ({ children, align, ...props }: HTMLAttributes<HTMLTableCellElement> & {
|
|
2707
|
+
children: ReactNode;
|
|
2708
|
+
align?: "left" | "center" | "right";
|
|
2709
|
+
}) => JSX.Element;
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2712
|
+
declare interface TabProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "color" | "value" | "FormEvent"> {
|
|
2713
|
+
variant?: TabVariants["variant"];
|
|
2714
|
+
size?: TabVariants["size"];
|
|
2715
|
+
color?: TabVariants["color"];
|
|
2716
|
+
radius?: TabVariants["radius"];
|
|
2717
|
+
disabled?: boolean;
|
|
2718
|
+
value?: number;
|
|
2719
|
+
onChange?: (value: number) => void;
|
|
2720
|
+
children?: React.ReactNode;
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
export declare const Tabs: default_2.ForwardRefExoticComponent<TabProps & default_2.RefAttributes<HTMLDivElement>> & {
|
|
2724
|
+
List: {
|
|
2725
|
+
({ children }: {
|
|
2726
|
+
children: ReactNode;
|
|
2727
|
+
}): JSX.Element;
|
|
2728
|
+
displayName: string;
|
|
2729
|
+
};
|
|
2730
|
+
Tab: ({ title, icon, disabled, index, labelRef, }: TabItemProps & {
|
|
2731
|
+
index?: number;
|
|
2732
|
+
labelRef?: (el: HTMLLabelElement | null) => void;
|
|
2733
|
+
}) => JSX.Element;
|
|
2734
|
+
Panels: ({ children }: {
|
|
2735
|
+
children: ReactNode;
|
|
2736
|
+
}) => JSX.Element;
|
|
2737
|
+
Panel: ({ children }: {
|
|
2738
|
+
children?: ReactNode;
|
|
2739
|
+
}) => JSX.Element;
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
declare type TabVariants = VariantProps<typeof tabWrapper>;
|
|
2743
|
+
|
|
2744
|
+
declare const tabWrapper: (props?: ({
|
|
2745
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2746
|
+
variant?: "soft" | "underline" | "border" | "box" | null | undefined;
|
|
2747
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2748
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2749
|
+
} & ClassProp) | undefined) => string;
|
|
2750
|
+
|
|
2751
|
+
export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLDivElement>>;
|
|
2752
|
+
|
|
2753
|
+
declare interface TagProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "size" | "disabled" | "checked" | "color"> {
|
|
2754
|
+
/**
|
|
2755
|
+
* Define el estilo visual del tag, como la apariencia del carril y el pulgar.
|
|
2756
|
+
*/
|
|
2757
|
+
variant?: TagVariants["variant"];
|
|
2758
|
+
/**
|
|
2759
|
+
* Controla el tamaño visual del tag.
|
|
2760
|
+
*/
|
|
2761
|
+
size?: TagVariants["size"];
|
|
2762
|
+
/**
|
|
2763
|
+
* Controla el radio visual del tag.
|
|
2764
|
+
*/
|
|
2765
|
+
radius?: TagVariants["radius"];
|
|
2766
|
+
/**
|
|
2767
|
+
* Establece el esquema de color para el tag, típicamente afectando el color cuando está activado.
|
|
2768
|
+
*/
|
|
2769
|
+
color?: TagVariants["color"];
|
|
2770
|
+
/**
|
|
2771
|
+
* Define el texto que se muestra en el tag.
|
|
2772
|
+
*/
|
|
2773
|
+
text?: string;
|
|
2774
|
+
/**
|
|
2775
|
+
* Define el icono que se muestra en el tag.
|
|
2776
|
+
*/
|
|
2777
|
+
icon?: React.ReactNode;
|
|
2778
|
+
/**
|
|
2779
|
+
* Define la funcionalidad de cierre del tag, si no se define no se muestra (no se muestra el icono de cierre).
|
|
2780
|
+
*/
|
|
2781
|
+
onClose?: () => void;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
declare type TagVariants = VariantProps<typeof tagVariants> & VariantProps<typeof countVariants>;
|
|
2785
|
+
|
|
2786
|
+
declare const tagVariants: (props?: ({
|
|
2787
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2788
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2789
|
+
variant?: "soft" | "dashed" | "solid" | "outline" | "subtle" | null | undefined;
|
|
2790
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2791
|
+
} & ClassProp) | undefined) => string;
|
|
2792
|
+
|
|
2793
|
+
export declare const TextArea: ForwardRefExoticComponent<TextAreaProps & RefAttributes<HTMLTextAreaElement>>;
|
|
2794
|
+
|
|
2795
|
+
declare interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "disabled" | "aria-invalid" | "aria-describedby" | "aria-labelledby" | "onFocus" | "onBlur"> {
|
|
2796
|
+
/**
|
|
2797
|
+
* Define la variante visual del área de texto.
|
|
2798
|
+
*/
|
|
2799
|
+
variant?: TextAreaVariants["variant"];
|
|
2800
|
+
/**
|
|
2801
|
+
* Define el tamaño del área de texto, afectando el padding y el tamaño de fuente.
|
|
2802
|
+
*/
|
|
2803
|
+
size?: TextAreaVariants["size"];
|
|
2804
|
+
/**
|
|
2805
|
+
* Define el radio del área de texto, afectando el radio de los bordes.
|
|
2806
|
+
*/
|
|
2807
|
+
radius?: TextAreaVariants["radius"];
|
|
2808
|
+
/**
|
|
2809
|
+
* Indica si el área de texto está en un estado de validación inválido.
|
|
2810
|
+
* Esto suele usarse para mostrar estilos de error.
|
|
2811
|
+
* @default false
|
|
2812
|
+
*/
|
|
2813
|
+
invalid?: boolean;
|
|
2814
|
+
/**
|
|
2815
|
+
* Deshabilita el área de texto, impidiendo la interacción del usuario.
|
|
2816
|
+
* @default false
|
|
2817
|
+
*/
|
|
2818
|
+
disabled?: boolean;
|
|
2819
|
+
/**
|
|
2820
|
+
* Indica si el área de texto es obligatoria para completar un formulario.
|
|
2821
|
+
* No añade validación por sí solo, pero puede usarse para estilos o lógica.
|
|
2822
|
+
* @default false
|
|
2823
|
+
*/
|
|
2824
|
+
required?: boolean;
|
|
2825
|
+
/**
|
|
2826
|
+
* Etiqueta de texto asociada al área de texto.
|
|
2827
|
+
* Si se proporciona, se renderizará típicamente un elemento `<label>` vinculado al área de texto.
|
|
2828
|
+
*/
|
|
2829
|
+
label?: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* Mensaje de error que se muestra cuando `invalid` es true.
|
|
2832
|
+
* Este texto suele aparecer debajo del área de texto.
|
|
2833
|
+
*/
|
|
2834
|
+
errorMessage?: string;
|
|
2835
|
+
/**
|
|
2836
|
+
* Texto de ayuda o descripción adicional que se muestra debajo del área de texto.
|
|
2837
|
+
*/
|
|
2838
|
+
helperText?: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* Callback que se dispara cuando el área de texto recibe el foco.
|
|
2841
|
+
* Recibe el evento de foco nativo.
|
|
2842
|
+
*/
|
|
2843
|
+
onFocus?: (e: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
2844
|
+
/**
|
|
2845
|
+
* Callback que se dispara cuando el área de texto pierde el foco.
|
|
2846
|
+
* Recibe el evento de foco nativo.
|
|
2847
|
+
*/
|
|
2848
|
+
onBlur?: (e: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
declare type TextAreaVariants = VariantProps<typeof textareaVariants>;
|
|
2852
|
+
|
|
2853
|
+
declare const textareaVariants: (props?: ({
|
|
2854
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
2855
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2856
|
+
variant?: "soft" | "outline" | null | undefined;
|
|
2857
|
+
invalid?: boolean | null | undefined;
|
|
2858
|
+
disabled?: boolean | null | undefined;
|
|
2859
|
+
} & ClassProp) | undefined) => string;
|
|
2860
|
+
|
|
2861
|
+
export declare const ThemeProvider: (props: ThemeProviderProps) => JSX.Element;
|
|
2862
|
+
|
|
2863
|
+
declare interface ThemeProviderProps extends React_2.PropsWithChildren<unknown> {
|
|
2864
|
+
/** Light theme name */
|
|
2865
|
+
lightTheme?: LightTheme;
|
|
2866
|
+
/** Dark theme name */
|
|
2867
|
+
darkTheme?: DarkTheme;
|
|
2868
|
+
/** List of all available theme names */
|
|
2869
|
+
themes?: AllThemes[] | undefined;
|
|
2870
|
+
/** Forced theme name for the current page */
|
|
2871
|
+
forcedTheme?: AllThemes | undefined;
|
|
2872
|
+
/** Whether to switch between dark and light themes based on prefers-color-scheme */
|
|
2873
|
+
enableSystem?: boolean | undefined;
|
|
2874
|
+
/** Disable all CSS transitions when switching themes */
|
|
2875
|
+
disableTransitionOnChange?: boolean | undefined;
|
|
2876
|
+
/** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
|
|
2877
|
+
enableColorScheme?: boolean | undefined;
|
|
2878
|
+
/** Key used to store theme setting in localStorage */
|
|
2879
|
+
storageKey?: string | undefined;
|
|
2880
|
+
/** Default theme name (for v0.0.12 and lower the default was light). If `enableSystem` is false, the default theme is light */
|
|
2881
|
+
defaultTheme?: AllThemes | undefined;
|
|
2882
|
+
/** HTML attribute modified based on the active theme. Accepts `class`, `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.), or an array which could include both */
|
|
2883
|
+
attribute?: Attribute | Attribute[] | undefined;
|
|
2884
|
+
/** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */
|
|
2885
|
+
value?: ValueObject | undefined;
|
|
2886
|
+
/** Nonce string to pass to the inline script and style elements for CSP headers */
|
|
2887
|
+
nonce?: string;
|
|
2888
|
+
/** Props to pass the inline script */
|
|
2889
|
+
scriptProps?: ScriptProps;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
export declare const ThemeScript: React_2.MemoExoticComponent<({ forcedTheme, storageKey, attribute, enableSystem, enableColorScheme, defaultTheme, value, themes, nonce, scriptProps, lightThemes, darkThemes, }: Omit<ThemeProviderProps, "children"> & {
|
|
2893
|
+
defaultTheme: string;
|
|
2894
|
+
lightThemes?: string[];
|
|
2895
|
+
darkThemes?: string[];
|
|
2896
|
+
}) => JSX.Element>;
|
|
2897
|
+
|
|
2898
|
+
export declare const Tooltip: default_2.ForwardRefExoticComponent<TooltipProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
2899
|
+
|
|
2900
|
+
declare const tooltipContainer: (props?: ({
|
|
2901
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
2902
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
2903
|
+
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-center" | "right-center" | null | undefined;
|
|
2904
|
+
} & ClassProp) | undefined) => string;
|
|
2905
|
+
|
|
2906
|
+
declare type TooltipContainerVariants = VariantProps<typeof tooltipContainer>;
|
|
2907
|
+
|
|
2908
|
+
declare type TooltipPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-center" | "right-center";
|
|
2909
|
+
|
|
2910
|
+
declare interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "disabled" | "content" | "color"> {
|
|
2911
|
+
/**
|
|
2912
|
+
* El contenido a mostrar dentro del tooltip.
|
|
2913
|
+
*/
|
|
2914
|
+
content: default_2.ReactNode;
|
|
2915
|
+
/**
|
|
2916
|
+
* El elemento sobre el cual se activará el tooltip.
|
|
2917
|
+
* Debe ser un elemento React válido (ej: <button>, <span>, <div>).
|
|
2918
|
+
*/
|
|
2919
|
+
children: default_2.ReactElement;
|
|
2920
|
+
/**
|
|
2921
|
+
* La posición del tooltip relativa al componente hijo.
|
|
2922
|
+
* @default 'top-center'
|
|
2923
|
+
*/
|
|
2924
|
+
position?: TooltipPosition;
|
|
2925
|
+
/**
|
|
2926
|
+
* Retraso en milisegundos antes de mostrar el tooltip al hacer hover o focus.
|
|
2927
|
+
* @default 0
|
|
2928
|
+
*/
|
|
2929
|
+
delayShow?: number;
|
|
2930
|
+
/**
|
|
2931
|
+
* Retraso en milisegundos antes de ocultar el tooltip al quitar hover o blur.
|
|
2932
|
+
* @default 0
|
|
2933
|
+
*/
|
|
2934
|
+
delayHide?: number;
|
|
2935
|
+
/**
|
|
2936
|
+
* Distancia en píxeles entre el tooltip y el componente hijo.
|
|
2937
|
+
* @default 8
|
|
2938
|
+
*/
|
|
2939
|
+
offset?: number;
|
|
2940
|
+
/**
|
|
2941
|
+
* Variante visual del tooltip.
|
|
2942
|
+
* @default 'default'
|
|
2943
|
+
*/
|
|
2944
|
+
color?: TooltipContainerVariants["color"];
|
|
2945
|
+
/**
|
|
2946
|
+
* Variante visual del tooltip.
|
|
2947
|
+
* @default 'default'
|
|
2948
|
+
*/
|
|
2949
|
+
radius?: TooltipContainerVariants["radius"];
|
|
2950
|
+
/**
|
|
2951
|
+
* Deshabilitar el tooltip.
|
|
2952
|
+
* @default false
|
|
2953
|
+
*/
|
|
2954
|
+
disabled?: boolean;
|
|
2955
|
+
/**
|
|
2956
|
+
* Etiqueta ARIA adicional para el tooltip si el contenido no es suficiente.
|
|
2957
|
+
* Usado para aria-label en el elemento del tooltip si content es solo iconografía,
|
|
2958
|
+
* o para aria-describedby si el ID no se genera o proporciona.
|
|
2959
|
+
*/
|
|
2960
|
+
ariaLabel?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* ID para el elemento del tooltip (para vincularlo con aria-describedby).
|
|
2963
|
+
* Si no se proporciona, se genera un ID único.
|
|
2964
|
+
*/
|
|
2965
|
+
id?: string;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
declare const translations: {
|
|
2969
|
+
en: {
|
|
2970
|
+
"file-upload": {
|
|
2971
|
+
"drop-zone-placeholder": string;
|
|
2972
|
+
"max-size": string;
|
|
2973
|
+
"button-text-single": string;
|
|
2974
|
+
"button-text-multiple": string;
|
|
2975
|
+
"file-empty-single": string;
|
|
2976
|
+
"files-empty-multiple": string;
|
|
2977
|
+
"file-selected-single": string;
|
|
2978
|
+
"files-selected-multiple": string;
|
|
2979
|
+
"max-size-error-single": string;
|
|
2980
|
+
"max-size-error-multiple": string;
|
|
2981
|
+
"type-error-single": string;
|
|
2982
|
+
"type-error-multiple": string;
|
|
2983
|
+
};
|
|
2984
|
+
table: {
|
|
2985
|
+
rows: string;
|
|
2986
|
+
page: string;
|
|
2987
|
+
};
|
|
2988
|
+
"color-picker": {
|
|
2989
|
+
copy: string;
|
|
2990
|
+
"copy-success": string;
|
|
2991
|
+
"eye-dropper": string;
|
|
2992
|
+
format: string;
|
|
2993
|
+
};
|
|
2994
|
+
rating: {
|
|
2995
|
+
text: string;
|
|
2996
|
+
};
|
|
2997
|
+
"date-picker": {
|
|
2998
|
+
code: string;
|
|
2999
|
+
header: string;
|
|
3000
|
+
placeholder: string;
|
|
3001
|
+
"prev-month": string;
|
|
3002
|
+
"next-month": string;
|
|
3003
|
+
"prev-year": string;
|
|
3004
|
+
"next-year": string;
|
|
3005
|
+
today: string;
|
|
3006
|
+
days: string;
|
|
3007
|
+
months: string;
|
|
3008
|
+
cancel: string;
|
|
3009
|
+
confirm: string;
|
|
3010
|
+
reset: string;
|
|
3011
|
+
};
|
|
3012
|
+
stepper: {
|
|
3013
|
+
next: string;
|
|
3014
|
+
previous: string;
|
|
3015
|
+
finish: string;
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
3018
|
+
es: {
|
|
3019
|
+
"file-upload": {
|
|
3020
|
+
"drop-zone-placeholder": string;
|
|
3021
|
+
"max-size": string;
|
|
3022
|
+
"button-text-single": string;
|
|
3023
|
+
"button-text-multiple": string;
|
|
3024
|
+
"file-empty-single": string;
|
|
3025
|
+
"files-empty-multiple": string;
|
|
3026
|
+
"file-selected-single": string;
|
|
3027
|
+
"files-selected-multiple": string;
|
|
3028
|
+
"max-size-error-single": string;
|
|
3029
|
+
"max-size-error-multiple": string;
|
|
3030
|
+
"type-error-single": string;
|
|
3031
|
+
"type-error-multiple": string;
|
|
3032
|
+
};
|
|
3033
|
+
table: {
|
|
3034
|
+
rows: string;
|
|
3035
|
+
page: string;
|
|
3036
|
+
};
|
|
3037
|
+
"color-picker": {
|
|
3038
|
+
copy: string;
|
|
3039
|
+
"copy-success": string;
|
|
3040
|
+
"eye-dropper": string;
|
|
3041
|
+
format: string;
|
|
3042
|
+
};
|
|
3043
|
+
rating: {
|
|
3044
|
+
text: string;
|
|
3045
|
+
};
|
|
3046
|
+
"date-picker": {
|
|
3047
|
+
code: string;
|
|
3048
|
+
header: string;
|
|
3049
|
+
placeholder: string;
|
|
3050
|
+
"prev-month": string;
|
|
3051
|
+
"next-month": string;
|
|
3052
|
+
"prev-year": string;
|
|
3053
|
+
"next-year": string;
|
|
3054
|
+
today: string;
|
|
3055
|
+
days: string;
|
|
3056
|
+
months: string;
|
|
3057
|
+
cancel: string;
|
|
3058
|
+
confirm: string;
|
|
3059
|
+
reset: string;
|
|
3060
|
+
};
|
|
3061
|
+
stepper: {
|
|
3062
|
+
next: string;
|
|
3063
|
+
previous: string;
|
|
3064
|
+
finish: string;
|
|
3065
|
+
};
|
|
3066
|
+
};
|
|
3067
|
+
fr: {
|
|
3068
|
+
"file-upload": {
|
|
3069
|
+
"drop-zone-placeholder": string;
|
|
3070
|
+
"max-size": string;
|
|
3071
|
+
"button-text-single": string;
|
|
3072
|
+
"button-text-multiple": string;
|
|
3073
|
+
"file-empty-single": string;
|
|
3074
|
+
"files-empty-multiple": string;
|
|
3075
|
+
"file-selected-single": string;
|
|
3076
|
+
"files-selected-multiple": string;
|
|
3077
|
+
"max-size-error-single": string;
|
|
3078
|
+
"max-size-error-multiple": string;
|
|
3079
|
+
"type-error-single": string;
|
|
3080
|
+
"type-error-multiple": string;
|
|
3081
|
+
};
|
|
3082
|
+
table: {
|
|
3083
|
+
rows: string;
|
|
3084
|
+
page: string;
|
|
3085
|
+
};
|
|
3086
|
+
"color-picker": {
|
|
3087
|
+
copy: string;
|
|
3088
|
+
"copy-success": string;
|
|
3089
|
+
"eye-dropper": string;
|
|
3090
|
+
format: string;
|
|
3091
|
+
};
|
|
3092
|
+
rating: {
|
|
3093
|
+
text: string;
|
|
3094
|
+
};
|
|
3095
|
+
"date-picker": {
|
|
3096
|
+
code: string;
|
|
3097
|
+
header: string;
|
|
3098
|
+
placeholder: string;
|
|
3099
|
+
"prev-month": string;
|
|
3100
|
+
"next-month": string;
|
|
3101
|
+
"prev-year": string;
|
|
3102
|
+
"next-year": string;
|
|
3103
|
+
today: string;
|
|
3104
|
+
days: string;
|
|
3105
|
+
months: string;
|
|
3106
|
+
cancel: string;
|
|
3107
|
+
confirm: string;
|
|
3108
|
+
reset: string;
|
|
3109
|
+
};
|
|
3110
|
+
stepper: {
|
|
3111
|
+
next: string;
|
|
3112
|
+
previous: string;
|
|
3113
|
+
finish: string;
|
|
3114
|
+
};
|
|
3115
|
+
};
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
declare interface TreeNode {
|
|
3119
|
+
/** Unique identifier for the node */
|
|
3120
|
+
id: string;
|
|
3121
|
+
/** Label to display for the node */
|
|
3122
|
+
label: string;
|
|
3123
|
+
/** Optional icon to display next to the label */
|
|
3124
|
+
icon?: ReactNode;
|
|
3125
|
+
/** Array of child nodes */
|
|
3126
|
+
children?: TreeNode[];
|
|
3127
|
+
/** Whether the node is disabled */
|
|
3128
|
+
disabled?: boolean;
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
export declare const TreeView: default_2.ForwardRefExoticComponent<TreeViewProps & default_2.RefAttributes<HTMLDivElement>> & {
|
|
3132
|
+
Item: default_2.ForwardRefExoticComponent<TreeViewItemProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
3133
|
+
Label: default_2.ForwardRefExoticComponent<TreeViewLabelProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
3134
|
+
};
|
|
3135
|
+
|
|
3136
|
+
declare interface TreeViewItemProps {
|
|
3137
|
+
/**
|
|
3138
|
+
* The node to render
|
|
3139
|
+
*/
|
|
3140
|
+
node: TreeNode;
|
|
3141
|
+
/**
|
|
3142
|
+
* The level of the node in the tree
|
|
3143
|
+
*/
|
|
3144
|
+
level?: number;
|
|
3145
|
+
/**
|
|
3146
|
+
* Whether the node is the first child of its parent
|
|
3147
|
+
*/
|
|
3148
|
+
isFirst?: boolean;
|
|
3149
|
+
/**
|
|
3150
|
+
* Whether the node is the last child of its parent
|
|
3151
|
+
*/
|
|
3152
|
+
isLast?: boolean;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
declare interface TreeViewLabelProps {
|
|
3156
|
+
/**
|
|
3157
|
+
* The node to render
|
|
3158
|
+
*/
|
|
3159
|
+
node: TreeNode;
|
|
3160
|
+
/**
|
|
3161
|
+
* Whether the node is selected
|
|
3162
|
+
*/
|
|
3163
|
+
selected?: boolean;
|
|
3164
|
+
/**
|
|
3165
|
+
* Callback fired when the node is clicked
|
|
3166
|
+
*/
|
|
3167
|
+
onClick?: () => void;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
declare interface TreeViewProps {
|
|
3171
|
+
/** Array of tree nodes to render */
|
|
3172
|
+
data: TreeNode[];
|
|
3173
|
+
/** Array of node IDs to expand by default */
|
|
3174
|
+
defaultExpanded?: string[];
|
|
3175
|
+
/** ID of the currently selected node */
|
|
3176
|
+
selectedId?: string;
|
|
3177
|
+
/** Size of the tree items */
|
|
3178
|
+
size?: TreeViewVariants["size"];
|
|
3179
|
+
/** Callback fired when a node is selected */
|
|
3180
|
+
onNodeSelect?: (id: string) => void;
|
|
3181
|
+
/** Custom render function for node labels */
|
|
3182
|
+
renderLabel?: (node: TreeNode) => ReactNode;
|
|
3183
|
+
/** Additional CSS class for the root element */
|
|
3184
|
+
className?: string;
|
|
3185
|
+
/** Inline styles for the root element */
|
|
3186
|
+
style?: React.CSSProperties;
|
|
3187
|
+
/** If true, renders folder icons for parent nodes */
|
|
3188
|
+
isDirectory?: boolean;
|
|
3189
|
+
/** If true, shows connection lines between nodes */
|
|
3190
|
+
showLines?: boolean;
|
|
3191
|
+
/** Style of the connection lines */
|
|
3192
|
+
styleLines?: TreeViewVariants["styleLines"];
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
declare type TreeViewVariants = VariantProps<typeof treeViewVariants>;
|
|
3196
|
+
|
|
3197
|
+
declare const treeViewVariants: (props?: ({
|
|
3198
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
3199
|
+
showLines?: boolean | null | undefined;
|
|
3200
|
+
styleLines?: "dashed" | "dotted" | "solid" | null | undefined;
|
|
3201
|
+
} & ClassProp) | undefined) => string;
|
|
3202
|
+
|
|
3203
|
+
/**
|
|
3204
|
+
* Custom hook that returns the ID of the currently active section.
|
|
3205
|
+
*
|
|
3206
|
+
* @param selectors - The CSS selector for the sections to observe. (default: "h2"), (optional: "h2, h3, h4, h5, h6")
|
|
3207
|
+
* @param rootMargin - The margin around the root element. (default: "-20% 0px -70% 0px") this is the margin around the root element in the viewport - top, right, bottom, left
|
|
3208
|
+
* @returns The ID of the currently active section.
|
|
3209
|
+
*/
|
|
3210
|
+
export declare function useActiveSectionObserver({ selectors, rootMargin, }: {
|
|
3211
|
+
selectors?: string;
|
|
3212
|
+
rootMargin?: string;
|
|
3213
|
+
}): string | null;
|
|
3214
|
+
|
|
3215
|
+
export declare const useNotification: () => NotificationContextType;
|
|
3216
|
+
|
|
3217
|
+
export declare function usePathObserver(): string;
|
|
3218
|
+
|
|
3219
|
+
export declare const usePopover: <T extends HTMLElement, U extends HTMLElement>(offset?: {
|
|
3220
|
+
x?: number;
|
|
3221
|
+
y?: number;
|
|
3222
|
+
}, itemCallbacks?: Array<(() => void) | undefined>) => {
|
|
3223
|
+
isOpen: boolean;
|
|
3224
|
+
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
3225
|
+
menuPosition: {
|
|
3226
|
+
top: number;
|
|
3227
|
+
left: number;
|
|
3228
|
+
position: "below" | "above";
|
|
3229
|
+
width: number;
|
|
3230
|
+
};
|
|
3231
|
+
triggerRef: RefObject<T | null>;
|
|
3232
|
+
contentRef: RefObject<U | null>;
|
|
3233
|
+
handleKeyDown: (e: React.KeyboardEvent<HTMLDivElement | HTMLUListElement | HTMLButtonElement>) => void;
|
|
3234
|
+
selectedOptionIndex: number | null;
|
|
3235
|
+
highlightedIndex: number;
|
|
3236
|
+
onSelectOption: () => void;
|
|
3237
|
+
};
|
|
3238
|
+
|
|
3239
|
+
declare interface ValueObject {
|
|
3240
|
+
[themeName: string]: string;
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3243
|
+
declare const variantBreadcrumbItem: (props?: ({
|
|
3244
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
3245
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
3246
|
+
variant?: "dot" | "chevron" | "slash" | "arrow" | "stepped" | null | undefined;
|
|
3247
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
3248
|
+
} & ClassProp) | undefined) => string;
|
|
3249
|
+
|
|
3250
|
+
declare type Wrap = "nowrap" | "wrap" | "wrap-reverse" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-initial";
|
|
3251
|
+
|
|
3252
|
+
declare const wrapper: (props?: ({
|
|
3253
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
3254
|
+
positionLabel?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
3255
|
+
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
3256
|
+
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
3257
|
+
variant?: "soft" | "solid" | "outline" | null | undefined;
|
|
3258
|
+
type?: "button" | "radio" | "card" | null | undefined;
|
|
3259
|
+
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
3260
|
+
disabled?: boolean | null | undefined;
|
|
3261
|
+
checked?: boolean | null | undefined;
|
|
3262
|
+
} & ClassProp) | undefined) => string;
|
|
3263
|
+
|
|
3264
|
+
export { }
|