corekit-ui 0.2.34 → 0.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/excel.worker-CFqewIyg.js.map +1 -1
- package/dist/corekit-ui.css +1 -1
- package/dist/index.d.ts +49 -0
- package/dist/index.js +9609 -9477
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +45 -6
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/assets/excel.worker-CFqewIyg.js +0 -39
package/dist/index.d.ts
CHANGED
|
@@ -1175,6 +1175,7 @@ errorMessage?: string;
|
|
|
1175
1175
|
clearButton?: string;
|
|
1176
1176
|
};
|
|
1177
1177
|
onChange?: (value: string) => void;
|
|
1178
|
+
'data-testid'?: string;
|
|
1178
1179
|
} & {
|
|
1179
1180
|
form?: string | undefined | undefined;
|
|
1180
1181
|
slot?: string | undefined | undefined;
|
|
@@ -1549,6 +1550,8 @@ export declare type InputDateProps = {
|
|
|
1549
1550
|
};
|
|
1550
1551
|
/** Callback cuando cambia la fecha */
|
|
1551
1552
|
onChange?: (value: string) => void;
|
|
1553
|
+
/** Identificador para pruebas. Por defecto se genera como `input-{name}`. */
|
|
1554
|
+
'data-testid'?: string;
|
|
1552
1555
|
} & NativeInputProps_3;
|
|
1553
1556
|
|
|
1554
1557
|
export declare const InputNumeric: ForwardRefExoticComponent< {
|
|
@@ -1600,6 +1603,7 @@ errorMessage?: string;
|
|
|
1600
1603
|
};
|
|
1601
1604
|
onChange?: (value: number | undefined) => void;
|
|
1602
1605
|
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
1606
|
+
'data-testid'?: string;
|
|
1603
1607
|
} & {
|
|
1604
1608
|
form?: string | undefined | undefined;
|
|
1605
1609
|
slot?: string | undefined | undefined;
|
|
@@ -1998,6 +2002,8 @@ export declare type InputNumericProps = {
|
|
|
1998
2002
|
onChange?: (value: number | undefined) => void;
|
|
1999
2003
|
/** Callback cuando cambia el valor formateado (string) */
|
|
2000
2004
|
onValueChange?: (formattedValue: string, value: number | undefined) => void;
|
|
2005
|
+
/** Identificador para pruebas. Por defecto se genera como `input-{name}`. */
|
|
2006
|
+
'data-testid'?: string;
|
|
2001
2007
|
} & NativeInputProps_2;
|
|
2002
2008
|
|
|
2003
2009
|
export declare type InputRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
@@ -2042,6 +2048,7 @@ errorMessage?: string;
|
|
|
2042
2048
|
onChange?: (value: string) => void;
|
|
2043
2049
|
onClear?: () => void;
|
|
2044
2050
|
onValueChange?: (value: string) => void;
|
|
2051
|
+
'data-testid'?: string;
|
|
2045
2052
|
} & {
|
|
2046
2053
|
form?: string | undefined | undefined;
|
|
2047
2054
|
slot?: string | undefined | undefined;
|
|
@@ -2420,6 +2427,8 @@ export declare type InputTextProps = {
|
|
|
2420
2427
|
onClear?: () => void;
|
|
2421
2428
|
/** Callback cuando cambia el valor (alias de onChange) */
|
|
2422
2429
|
onValueChange?: (value: string) => void;
|
|
2430
|
+
/** Identificador para pruebas. Por defecto se genera como `input-{name}`. */
|
|
2431
|
+
'data-testid'?: string;
|
|
2423
2432
|
} & NativeInputProps;
|
|
2424
2433
|
|
|
2425
2434
|
/** Tipos de input de texto soportados */
|
|
@@ -2523,6 +2532,17 @@ export declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes
|
|
|
2523
2532
|
*/
|
|
2524
2533
|
export declare const ModalAviso: ForwardRefExoticComponent<ModalAvisoProps & RefAttributes<HTMLDivElement>>;
|
|
2525
2534
|
|
|
2535
|
+
export declare type ModalAvisoClassNames = {
|
|
2536
|
+
body?: string;
|
|
2537
|
+
icon?: string;
|
|
2538
|
+
title?: string;
|
|
2539
|
+
message?: string;
|
|
2540
|
+
description?: string;
|
|
2541
|
+
buttonGroup?: string;
|
|
2542
|
+
cancelButton?: string;
|
|
2543
|
+
confirmButton?: string;
|
|
2544
|
+
};
|
|
2545
|
+
|
|
2526
2546
|
export declare type ModalAvisoProps = {
|
|
2527
2547
|
/** Controla si el modal está abierto */
|
|
2528
2548
|
isOpen: boolean;
|
|
@@ -2570,6 +2590,22 @@ export declare type ModalAvisoProps = {
|
|
|
2570
2590
|
* Si no se provee, usa el color del tipo automáticamente.
|
|
2571
2591
|
*/
|
|
2572
2592
|
colorBotonConfirmar?: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* Clases CSS personalizadas para partes internas del modal.
|
|
2595
|
+
* Útil para sobrescribir estilos de título, mensaje, descripción, etc.
|
|
2596
|
+
* @example
|
|
2597
|
+
* classNames={{
|
|
2598
|
+
* title: 'mi-titulo',
|
|
2599
|
+
* message: 'mi-mensaje',
|
|
2600
|
+
* }}
|
|
2601
|
+
*/
|
|
2602
|
+
classNames?: ModalAvisoClassNames;
|
|
2603
|
+
/**
|
|
2604
|
+
* Intensidad del blur del backdrop.
|
|
2605
|
+
* @default '6px'
|
|
2606
|
+
* @example '10px'
|
|
2607
|
+
*/
|
|
2608
|
+
backdropBlur?: string;
|
|
2573
2609
|
};
|
|
2574
2610
|
|
|
2575
2611
|
/**
|
|
@@ -2667,6 +2703,11 @@ export declare type ModalProps = {
|
|
|
2667
2703
|
* @default 'normal'
|
|
2668
2704
|
*/
|
|
2669
2705
|
backdropVariant?: ModalBackdropVariant;
|
|
2706
|
+
/**
|
|
2707
|
+
* Intensidad del blur del backdrop (ej: '2px', '8px')
|
|
2708
|
+
* @default '1px'
|
|
2709
|
+
*/
|
|
2710
|
+
backdropBlur?: string;
|
|
2670
2711
|
/**
|
|
2671
2712
|
* Si muestra el icono al lado del título
|
|
2672
2713
|
* @default true
|
|
@@ -3734,6 +3775,8 @@ export declare type SelectProps<T = string> = {
|
|
|
3734
3775
|
* Por defecto se renderiza al final del `<body>`.
|
|
3735
3776
|
*/
|
|
3736
3777
|
portalContainer?: HTMLElement | null;
|
|
3778
|
+
/** Identificador para pruebas. Por defecto se genera como `select-{name}`. */
|
|
3779
|
+
'data-testid'?: string;
|
|
3737
3780
|
};
|
|
3738
3781
|
|
|
3739
3782
|
/**
|
|
@@ -4042,6 +4085,7 @@ errorMessage?: string;
|
|
|
4042
4085
|
onChange?: (value: string) => void;
|
|
4043
4086
|
onClear?: () => void;
|
|
4044
4087
|
children?: ReactNode;
|
|
4088
|
+
'data-testid'?: string;
|
|
4045
4089
|
} & {
|
|
4046
4090
|
form?: string | undefined | undefined;
|
|
4047
4091
|
slot?: string | undefined | undefined;
|
|
@@ -4407,6 +4451,8 @@ export declare type TextAreaProps = {
|
|
|
4407
4451
|
onClear?: () => void;
|
|
4408
4452
|
/** Contenido adicional (children) */
|
|
4409
4453
|
children?: ReactNode;
|
|
4454
|
+
/** Identificador para pruebas. Por defecto se genera como `textarea-{name}`. */
|
|
4455
|
+
'data-testid'?: string;
|
|
4410
4456
|
} & NativeTextareaProps;
|
|
4411
4457
|
|
|
4412
4458
|
export declare const tieneHijos: (item: DropdownMenuItem) => item is DropdownMenuItemBase & {
|
|
@@ -4446,6 +4492,7 @@ labelPosition?: "inline" | "top";
|
|
|
4446
4492
|
justifyEnd?: boolean;
|
|
4447
4493
|
children?: React.ReactNode;
|
|
4448
4494
|
className?: string;
|
|
4495
|
+
'data-testid'?: string;
|
|
4449
4496
|
} & RefAttributes<HTMLInputElement>>;
|
|
4450
4497
|
|
|
4451
4498
|
export declare type ToggleColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
@@ -4536,6 +4583,8 @@ export declare type ToggleProps = Omit<React.InputHTMLAttributes<HTMLInputElemen
|
|
|
4536
4583
|
* Clase CSS adicional
|
|
4537
4584
|
*/
|
|
4538
4585
|
className?: string;
|
|
4586
|
+
/** Identificador para pruebas. Por defecto se genera como `toggle-{name}`. */
|
|
4587
|
+
'data-testid'?: string;
|
|
4539
4588
|
};
|
|
4540
4589
|
|
|
4541
4590
|
export declare type ToggleSize = 'sm' | 'md' | 'lg';
|