corekit-ui 0.1.21 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -39
- package/dist/corekit-ui.css +1 -1
- package/dist/index.d.ts +4231 -21
- package/dist/index.js +5649 -5149
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +143 -132
- package/dist/animations/Transiciones.d.ts +0 -9
- package/dist/animations/index.d.ts +0 -1
- package/dist/badge/Badge.d.ts +0 -3
- package/dist/badge/index.d.ts +0 -2
- package/dist/badge/types.d.ts +0 -62
- package/dist/boton/Boton.d.ts +0 -2
- package/dist/boton/index.d.ts +0 -2
- package/dist/boton/typesButton.d.ts +0 -35
- package/dist/checkbox/Checkbox.d.ts +0 -25
- package/dist/checkbox/CheckboxContext.d.ts +0 -3
- package/dist/checkbox/CheckboxGroup.d.ts +0 -11
- package/dist/checkbox/index.d.ts +0 -4
- package/dist/checkbox/types.d.ts +0 -108
- package/dist/drawer/Drawer.d.ts +0 -2
- package/dist/drawer/index.d.ts +0 -2
- package/dist/drawer/types.d.ts +0 -140
- package/dist/dropdown/ContextMenu.d.ts +0 -12
- package/dist/dropdown/DropdownContext.d.ts +0 -29
- package/dist/dropdown/DropdownMenu.d.ts +0 -3
- package/dist/dropdown/MenuItem.d.ts +0 -8
- package/dist/dropdown/Submenu.d.ts +0 -23
- package/dist/dropdown/index.d.ts +0 -11
- package/dist/dropdown/types.d.ts +0 -168
- package/dist/firma_manual/FirmaManual.d.ts +0 -3
- package/dist/firma_manual/Iconografia.d.ts +0 -16
- package/dist/firma_manual/TypesFirma.d.ts +0 -22
- package/dist/firma_manual/index.d.ts +0 -2
- package/dist/firma_manual/useFirmaLogica.d.ts +0 -10
- package/dist/hablar_escuchar/BadgeVoz.d.ts +0 -6
- package/dist/hablar_escuchar/Iconografia.d.ts +0 -10
- package/dist/hablar_escuchar/index.d.ts +0 -3
- package/dist/hablar_escuchar/useReconocimientoVoz.d.ts +0 -21
- package/dist/input_date/InputDate.d.ts +0 -342
- package/dist/input_date/funciones.d.ts +0 -27
- package/dist/input_date/index.d.ts +0 -3
- package/dist/input_date/types.d.ts +0 -70
- package/dist/input_numeric/Iconografia.d.ts +0 -5
- package/dist/input_numeric/InputNumeric.d.ts +0 -353
- package/dist/input_numeric/funciones.d.ts +0 -64
- package/dist/input_numeric/index.d.ts +0 -3
- package/dist/input_numeric/types.d.ts +0 -96
- package/dist/input_text/Iconografia.d.ts +0 -9
- package/dist/input_text/InputText.d.ts +0 -347
- package/dist/input_text/index.d.ts +0 -2
- package/dist/input_text/types.d.ts +0 -77
- package/dist/input_types_compartidos/index.d.ts +0 -1
- package/dist/input_types_compartidos/types.d.ts +0 -11
- package/dist/modal/Modal.d.ts +0 -2
- package/dist/modal/index.d.ts +0 -2
- package/dist/modal/types.d.ts +0 -115
- package/dist/modal_stack/ModalStack.d.ts +0 -14
- package/dist/modal_stack/index.d.ts +0 -2
- package/dist/panel_filtros/Iconografia.d.ts +0 -5
- package/dist/panel_filtros/PanelFiltros.d.ts +0 -49
- package/dist/panel_filtros/index.d.ts +0 -3
- package/dist/radio/Radio.d.ts +0 -16
- package/dist/radio/RadioContext.d.ts +0 -3
- package/dist/radio/RadioGroup.d.ts +0 -11
- package/dist/radio/index.d.ts +0 -3
- package/dist/radio/types.d.ts +0 -195
- package/dist/select/Iconografia.d.ts +0 -10
- package/dist/select/Select.d.ts +0 -42
- package/dist/select/SelectBase.d.ts +0 -17
- package/dist/select/SelectNativo.d.ts +0 -57
- package/dist/select/Types.d.ts +0 -629
- package/dist/select/funciones.d.ts +0 -244
- package/dist/select/index.d.ts +0 -4
- package/dist/tabla_datos/TablaDatos.d.ts +0 -80
- package/dist/tabla_datos/components/Iconografia.d.ts +0 -17
- package/dist/tabla_datos/components/TablaCards.d.ts +0 -1
- package/dist/tabla_datos/components/TablaEscritorio.d.ts +0 -1
- package/dist/tabla_datos/components/configuraciones/ConfigColumnas.d.ts +0 -1
- package/dist/tabla_datos/components/configuraciones/ConfigEncabezado.d.ts +0 -6
- package/dist/tabla_datos/components/configuraciones/ConfigFilas.d.ts +0 -1
- package/dist/tabla_datos/components/configuraciones/ConfigOpciones.d.ts +0 -6
- package/dist/tabla_datos/components/configuraciones/MenuConfiguraciones.d.ts +0 -1
- package/dist/tabla_datos/components/skeletons/SkeletonCargando.d.ts +0 -4
- package/dist/tabla_datos/components/skeletons/SkeletonCargandoCards.d.ts +0 -2
- package/dist/tabla_datos/components/tabla/BarraHerramientas.d.ts +0 -1
- package/dist/tabla_datos/components/tabla/BarraSeleccion.d.ts +0 -9
- package/dist/tabla_datos/components/tabla/Paginacion.d.ts +0 -1
- package/dist/tabla_datos/components/tabla/SinDatos.d.ts +0 -1
- package/dist/tabla_datos/components/tabla/tabla_cards/AccionesCards.d.ts +0 -3
- package/dist/tabla_datos/components/tabla/tabla_cards/ContenidoCards.d.ts +0 -3
- package/dist/tabla_datos/components/tabla/tabla_cards/EncabezadoCards.d.ts +0 -3
- package/dist/tabla_datos/constantes/ConstGenerales.d.ts +0 -18
- package/dist/tabla_datos/context/ContextTypes.d.ts +0 -23
- package/dist/tabla_datos/context/TablaDatosContext.d.ts +0 -3
- package/dist/tabla_datos/context/hooks.d.ts +0 -10
- package/dist/tabla_datos/hooks/useClickOutside.d.ts +0 -8
- package/dist/tabla_datos/hooks/useEscapeKey.d.ts +0 -1
- package/dist/tabla_datos/hooks/usePopoverPosition.d.ts +0 -15
- package/dist/tabla_datos/hooks/useScrollLock.d.ts +0 -1
- package/dist/tabla_datos/index.d.ts +0 -5
- package/dist/tabla_datos/types/TablaTypes.d.ts +0 -85
- package/dist/tabla_datos/types/tanstack-table.d.ts +0 -8
- package/dist/tabla_datos/utils/FuncionesColumnas.d.ts +0 -9
- package/dist/tabla_datos/utils/FuncionesPaginacion.d.ts +0 -12
- package/dist/tabla_datos/utils/FuncionesTabla.d.ts +0 -54
- package/dist/text_area/Iconografia.d.ts +0 -6
- package/dist/text_area/TextArea.d.ts +0 -333
- package/dist/text_area/index.d.ts +0 -2
- package/dist/text_area/types.d.ts +0 -76
- package/dist/texts/Texts.d.ts +0 -19
- package/dist/toggle/Toggle.d.ts +0 -21
- package/dist/toggle/index.d.ts +0 -2
- package/dist/toggle/types.d.ts +0 -90
- package/dist/tooltip/Tooltip.d.ts +0 -2
- package/dist/tooltip/index.d.ts +0 -2
- package/dist/tooltip/types.d.ts +0 -83
package/dist/drawer/types.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Posición del drawer en la pantalla
|
|
3
|
-
* - 'left': Aparece desde la izquierda (320px-800px)
|
|
4
|
-
* - 'right': Aparece desde la derecha (recomendado para menús)
|
|
5
|
-
* - 'top': Aparece desde arriba (320px-800px altura)
|
|
6
|
-
* - 'bottom': Aparece desde abajo (ideal para móviles)
|
|
7
|
-
*/
|
|
8
|
-
export type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
9
|
-
/**
|
|
10
|
-
* Tamaño del drawer
|
|
11
|
-
* - 'sm': 320px (ideal para menús compactos)
|
|
12
|
-
* - 'md': 480px (default, balance perfecto)
|
|
13
|
-
* - 'lg': 640px (para contenido extenso)
|
|
14
|
-
* - 'xl': 800px (para dashboards)
|
|
15
|
-
* - 'full': 100% (ocupa toda la pantalla)
|
|
16
|
-
*/
|
|
17
|
-
export type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
18
|
-
/**
|
|
19
|
-
* Intensidad del backdrop del drawer
|
|
20
|
-
* - 'transparente': Sin backdrop visible
|
|
21
|
-
* - 'sutil': Opacidad muy baja
|
|
22
|
-
* - 'normal': Opacidad estándar
|
|
23
|
-
* - 'intermedio': Opacidad alta
|
|
24
|
-
* - 'intenso': Opacidad máxima
|
|
25
|
-
*/
|
|
26
|
-
export type DrawerBackdropVariant = 'transparente' | 'sutil' | 'normal' | 'intermedio' | 'intenso';
|
|
27
|
-
export type DrawerProps = {
|
|
28
|
-
/**
|
|
29
|
-
* Si el drawer está abierto
|
|
30
|
-
* @example
|
|
31
|
-
* const [isOpen, setIsOpen] = useState(false);
|
|
32
|
-
* <Drawer isOpen={isOpen} onClose={() => setIsOpen(false)}>...</Drawer>
|
|
33
|
-
*/
|
|
34
|
-
isOpen: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Callback cuando se cierra el drawer (Escape, backdrop click, botón X)
|
|
37
|
-
* @example
|
|
38
|
-
* onClose={() => setIsOpen(false)}
|
|
39
|
-
*/
|
|
40
|
-
onClose: () => void;
|
|
41
|
-
/**
|
|
42
|
-
* Posición del drawer en la pantalla
|
|
43
|
-
* @default 'right'
|
|
44
|
-
* @example
|
|
45
|
-
* position="left" // Para menús laterales
|
|
46
|
-
*/
|
|
47
|
-
position?: DrawerPosition;
|
|
48
|
-
/**
|
|
49
|
-
* Tamaño del drawer (ancho para left/right, alto para top/bottom)
|
|
50
|
-
* @default 'md'
|
|
51
|
-
* @example
|
|
52
|
-
* size="lg" // 640px de ancho
|
|
53
|
-
*/
|
|
54
|
-
size?: DrawerSize;
|
|
55
|
-
/**
|
|
56
|
-
* Título del drawer
|
|
57
|
-
*/
|
|
58
|
-
title?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Si muestra el botón de cerrar (X) en esquina superior derecha
|
|
61
|
-
* @default true
|
|
62
|
-
*/
|
|
63
|
-
showCloseButton?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Si cierra al hacer click en el backdrop
|
|
66
|
-
* @default true
|
|
67
|
-
*/
|
|
68
|
-
closeOnBackdropClick?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Si cierra al presionar Escape
|
|
71
|
-
* @default true
|
|
72
|
-
*/
|
|
73
|
-
closeOnEscape?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Si previene el scroll del body cuando está abierto
|
|
76
|
-
* @default true
|
|
77
|
-
*/
|
|
78
|
-
preventScroll?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Contenido del header personalizado
|
|
81
|
-
*/
|
|
82
|
-
header?: React.ReactNode;
|
|
83
|
-
/**
|
|
84
|
-
* Contenido del footer personalizado
|
|
85
|
-
*/
|
|
86
|
-
footer?: React.ReactNode;
|
|
87
|
-
/**
|
|
88
|
-
* Contenido del drawer
|
|
89
|
-
*/
|
|
90
|
-
children: React.ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* Clase CSS adicional
|
|
93
|
-
*/
|
|
94
|
-
className?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Clase CSS para el contenido
|
|
97
|
-
*/
|
|
98
|
-
contentClassName?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Estado de carga
|
|
101
|
-
* @default false
|
|
102
|
-
*/
|
|
103
|
-
isLoading?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Mensaje personalizado para el estado de carga
|
|
106
|
-
* @default 'Cargando...'
|
|
107
|
-
*/
|
|
108
|
-
loadingMessage?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Callback llamado cuando el drawer se abre
|
|
111
|
-
*/
|
|
112
|
-
onOpen?: () => void;
|
|
113
|
-
/**
|
|
114
|
-
* Variante del backdrop
|
|
115
|
-
* @default 'normal'
|
|
116
|
-
*/
|
|
117
|
-
backdropVariant?: DrawerBackdropVariant;
|
|
118
|
-
/**
|
|
119
|
-
* Radio de las esquinas del drawer
|
|
120
|
-
* @default 'none' para left/right, 'lg' para top/bottom
|
|
121
|
-
*/
|
|
122
|
-
borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
123
|
-
/**
|
|
124
|
-
* Si el drawer se puede redimensionar
|
|
125
|
-
* @default false
|
|
126
|
-
*/
|
|
127
|
-
resizable?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Contenedor donde renderizar el drawer (portal)
|
|
130
|
-
* - HTMLElement: renderiza en ese elemento
|
|
131
|
-
* - () => HTMLElement: función que retorna el elemento
|
|
132
|
-
* - undefined/null: renderiza directamente sin portal
|
|
133
|
-
*/
|
|
134
|
-
getContainer?: HTMLElement | (() => HTMLElement) | null;
|
|
135
|
-
/**
|
|
136
|
-
* z-index del drawer
|
|
137
|
-
* @default var(--z-modal)
|
|
138
|
-
*/
|
|
139
|
-
zIndex?: number;
|
|
140
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ContextMenuRef } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* ContextMenu
|
|
4
|
-
*
|
|
5
|
-
* Componente especializado para menús de clic derecho.
|
|
6
|
-
* Implementado como un wrapper semántico sobre DropdownMenu.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ContextMenu: import('react').ForwardRefExoticComponent<Omit<import('./types').DropdownMenuProps, "children" | "placement" | "triggerAction"> & {
|
|
9
|
-
children: React.ReactElement<React.HTMLAttributes<HTMLElement>>;
|
|
10
|
-
isEnabled?: boolean;
|
|
11
|
-
} & import('react').RefAttributes<ContextMenuRef>>;
|
|
12
|
-
export default ContextMenu;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DropdownMenuCheckboxItem, DropdownMenuItem, DropdownMenuItemBase, DropdownMenuProps, DropdownMenuRadioItem } from './types';
|
|
2
|
-
export type DropdownContextValue = {
|
|
3
|
-
radioValue?: string;
|
|
4
|
-
onRadioChange?: (value: string) => void;
|
|
5
|
-
cerrarMenu: () => void;
|
|
6
|
-
closeOnSelect: boolean;
|
|
7
|
-
size: 'sm' | 'md' | 'lg';
|
|
8
|
-
variant: 'default' | 'elevated' | 'bordered' | 'glass';
|
|
9
|
-
disableAnimation: boolean;
|
|
10
|
-
classNames?: DropdownMenuProps['classNames'];
|
|
11
|
-
portalContainer?: HTMLElement | null;
|
|
12
|
-
zIndex?: number | string;
|
|
13
|
-
};
|
|
14
|
-
export declare const DropdownContext: import('react').Context<DropdownContextValue | null>;
|
|
15
|
-
export declare const useDropdownContext: () => DropdownContextValue;
|
|
16
|
-
export declare const tieneHijos: (item: DropdownMenuItem) => item is DropdownMenuItemBase & {
|
|
17
|
-
children: DropdownMenuItem[];
|
|
18
|
-
};
|
|
19
|
-
export declare const esCheckbox: (item: DropdownMenuItem) => item is DropdownMenuCheckboxItem;
|
|
20
|
-
export declare const esRadio: (item: DropdownMenuItem) => item is DropdownMenuRadioItem;
|
|
21
|
-
export declare const esSeparador: (item: DropdownMenuItem) => item is {
|
|
22
|
-
id: string;
|
|
23
|
-
type: "separator";
|
|
24
|
-
};
|
|
25
|
-
export declare const esLabel: (item: DropdownMenuItem) => item is {
|
|
26
|
-
id: string;
|
|
27
|
-
type: "label";
|
|
28
|
-
label: string;
|
|
29
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DropdownMenuItem } from './types';
|
|
2
|
-
export type MenuItemProps = {
|
|
3
|
-
item: DropdownMenuItem;
|
|
4
|
-
index: number;
|
|
5
|
-
activeIndex: number | null;
|
|
6
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
7
|
-
};
|
|
8
|
-
export declare const MenuItem: import('react').ForwardRefExoticComponent<MenuItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DropdownMenuItem, DropdownMenuItemBase } from './types';
|
|
2
|
-
export type SubmenuProps = {
|
|
3
|
-
item: DropdownMenuItemBase & {
|
|
4
|
-
children: DropdownMenuItem[];
|
|
5
|
-
};
|
|
6
|
-
index: number;
|
|
7
|
-
activeIndex: number | null;
|
|
8
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Renderiza la lista de items del menú.
|
|
12
|
-
* Extraído para ser reutilizado por el menú principal y submenús.
|
|
13
|
-
*/
|
|
14
|
-
export declare const MenuList: {
|
|
15
|
-
({ items, activeIndex, getItemProps, listRef, }: {
|
|
16
|
-
items: DropdownMenuItem[];
|
|
17
|
-
activeIndex: number | null;
|
|
18
|
-
getItemProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
19
|
-
listRef: React.MutableRefObject<Array<HTMLElement | null>>;
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const Submenu: import('react').ForwardRefExoticComponent<SubmenuProps & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/dropdown/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Exports del módulo dropdown
|
|
3
|
-
* @module dropdown
|
|
4
|
-
*/
|
|
5
|
-
export { DropdownMenu as default, DropdownMenu } from './DropdownMenu';
|
|
6
|
-
export { ContextMenu } from './ContextMenu';
|
|
7
|
-
export { MenuItem } from './MenuItem';
|
|
8
|
-
export { Submenu, MenuList } from './Submenu';
|
|
9
|
-
export { DropdownContext, tieneHijos, esCheckbox, esRadio, esSeparador, esLabel, useDropdownContext, } from './DropdownContext';
|
|
10
|
-
export type { DropdownContextValue } from './DropdownContext';
|
|
11
|
-
export type { DropdownMenuProps, DropdownMenuItem, DropdownMenuItemBase, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuLabel, DropdownMenuRef, DropdownMenuSize, DropdownMenuVariant, DropdownTriggerAction, ContextMenuProps, ContextMenuRef, } from './types';
|
package/dist/dropdown/types.d.ts
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { Placement } from '@floating-ui/react';
|
|
2
|
-
import { ReactElement, ReactNode } from 'react';
|
|
3
|
-
/** Variante visual del menú */
|
|
4
|
-
export type DropdownMenuVariant = 'default' | 'elevated' | 'bordered' | 'glass';
|
|
5
|
-
/** Tamaño del menú y sus items */
|
|
6
|
-
export type DropdownMenuSize = 'sm' | 'md' | 'lg';
|
|
7
|
-
/** Acción que dispara la apertura del menú */
|
|
8
|
-
export type DropdownTriggerAction = 'click' | 'hover' | 'contextmenu' | 'both';
|
|
9
|
-
/** Props comunes para items del menú */
|
|
10
|
-
export type ItemCommonProps = {
|
|
11
|
-
/** Identificador único del item */
|
|
12
|
-
id: string;
|
|
13
|
-
/** Texto principal del item */
|
|
14
|
-
label?: string;
|
|
15
|
-
/** Texto secundario descriptivo */
|
|
16
|
-
description?: string;
|
|
17
|
-
/** Atajo de teclado a mostrar (ej: "⌘K") */
|
|
18
|
-
shortcut?: string;
|
|
19
|
-
/** Ícono al inicio del item */
|
|
20
|
-
startIcon?: ReactNode;
|
|
21
|
-
/** Ícono al final del item */
|
|
22
|
-
endIcon?: ReactNode;
|
|
23
|
-
/** Si el item está deshabilitado */
|
|
24
|
-
isDisabled?: boolean;
|
|
25
|
-
/** Si es una acción destructiva (se muestra en rojo) */
|
|
26
|
-
isDanger?: boolean;
|
|
27
|
-
/** Clases CSS adicionales para el item */
|
|
28
|
-
className?: string;
|
|
29
|
-
/** Items hijos para crear un submenú */
|
|
30
|
-
children?: DropdownMenuItem[];
|
|
31
|
-
/** Callback ejecutado al seleccionar el item */
|
|
32
|
-
onSelect?: (event?: React.SyntheticEvent) => void;
|
|
33
|
-
};
|
|
34
|
-
/** Item de acción normal (sin type o type='action') */
|
|
35
|
-
export type DropdownMenuItemBase = ItemCommonProps & {
|
|
36
|
-
type?: 'action';
|
|
37
|
-
children?: DropdownMenuItem[];
|
|
38
|
-
};
|
|
39
|
-
/** Item tipo checkbox con estado checked */
|
|
40
|
-
export type DropdownMenuCheckboxItem = ItemCommonProps & {
|
|
41
|
-
type: 'checkbox';
|
|
42
|
-
/** Si el checkbox está marcado */
|
|
43
|
-
isChecked: boolean;
|
|
44
|
-
/** Callback al cambiar el estado */
|
|
45
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
46
|
-
};
|
|
47
|
-
/** Item tipo radio para selección única en grupo */
|
|
48
|
-
export type DropdownMenuRadioItem = ItemCommonProps & {
|
|
49
|
-
type: 'radio';
|
|
50
|
-
/** Valor del radio (se compara con radioValue del menú) */
|
|
51
|
-
value: string;
|
|
52
|
-
/** Grupo al que pertenece este radio */
|
|
53
|
-
group: string;
|
|
54
|
-
};
|
|
55
|
-
/** Separador visual entre items */
|
|
56
|
-
export type DropdownMenuSeparator = {
|
|
57
|
-
id: string;
|
|
58
|
-
type: 'separator';
|
|
59
|
-
};
|
|
60
|
-
/** Etiqueta de grupo (no interactiva) */
|
|
61
|
-
export type DropdownMenuLabel = {
|
|
62
|
-
id: string;
|
|
63
|
-
type: 'label';
|
|
64
|
-
label: string;
|
|
65
|
-
};
|
|
66
|
-
/** Unión de todos los tipos de items del menú */
|
|
67
|
-
export type DropdownMenuItem = DropdownMenuItemBase | DropdownMenuCheckboxItem | DropdownMenuRadioItem | DropdownMenuSeparator | DropdownMenuLabel;
|
|
68
|
-
/** Clases CSS personalizables por parte del menú */
|
|
69
|
-
export type DropdownMenuClassNames = {
|
|
70
|
-
/** Clase para el contenedor del menú */
|
|
71
|
-
menu?: string;
|
|
72
|
-
/** Clase para cada item */
|
|
73
|
-
item?: string;
|
|
74
|
-
/** Clase para los separadores */
|
|
75
|
-
separator?: string;
|
|
76
|
-
/** Clase para las etiquetas de grupo */
|
|
77
|
-
label?: string;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Props del componente DropdownMenu.
|
|
81
|
-
* Menú desplegable con soporte para submenús, checkboxes, radios y navegación por teclado.
|
|
82
|
-
*/
|
|
83
|
-
export type DropdownMenuProps = {
|
|
84
|
-
/** Array de items a renderizar en el menú */
|
|
85
|
-
items: DropdownMenuItem[];
|
|
86
|
-
/** Elemento trigger que abre el menú (debe aceptar ref) */
|
|
87
|
-
children: ReactElement;
|
|
88
|
-
/** Variante visual del menú */
|
|
89
|
-
variant?: DropdownMenuVariant;
|
|
90
|
-
/** Tamaño del menú y sus items */
|
|
91
|
-
size?: DropdownMenuSize;
|
|
92
|
-
/** Posición del menú relativo al trigger (Floating UI placement) */
|
|
93
|
-
placement?: Placement;
|
|
94
|
-
/** Distancia entre el trigger y el menú en px */
|
|
95
|
-
offset?: number;
|
|
96
|
-
/** Tipo de interacción que abre el menú */
|
|
97
|
-
triggerAction?: DropdownTriggerAction;
|
|
98
|
-
/** Si se cierra al seleccionar un item */
|
|
99
|
-
closeOnSelect?: boolean;
|
|
100
|
-
/** Si se cierra al hacer clic fuera */
|
|
101
|
-
closeOnClickOutside?: boolean;
|
|
102
|
-
/** Si se cierra al presionar Escape */
|
|
103
|
-
closeOnEscape?: boolean;
|
|
104
|
-
/** Valor seleccionado para items tipo radio */
|
|
105
|
-
radioValue?: string;
|
|
106
|
-
/** Callback al cambiar selección de radio */
|
|
107
|
-
onRadioChange?: (value: string) => void;
|
|
108
|
-
/** Estado controlado de apertura */
|
|
109
|
-
isOpen?: boolean;
|
|
110
|
-
/** Callback al cambiar estado de apertura */
|
|
111
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
112
|
-
/** Callback al abrir el menú */
|
|
113
|
-
onOpen?: () => void;
|
|
114
|
-
/** Callback al cerrar el menú */
|
|
115
|
-
onClose?: () => void;
|
|
116
|
-
/** Callback al hacer clic derecho (solo si triggerAction es contextmenu o both) */
|
|
117
|
-
onContextMenu?: (event: React.MouseEvent, position: {
|
|
118
|
-
x: number;
|
|
119
|
-
y: number;
|
|
120
|
-
}) => void;
|
|
121
|
-
/** Ancho mínimo del menú */
|
|
122
|
-
minWidth?: number | string;
|
|
123
|
-
/** Ancho máximo del menú */
|
|
124
|
-
maxWidth?: number | string;
|
|
125
|
-
/** Si el menú debe igualar el ancho del trigger */
|
|
126
|
-
matchTriggerWidth?: boolean;
|
|
127
|
-
/** Deshabilita las animaciones */
|
|
128
|
-
disableAnimation?: boolean;
|
|
129
|
-
/** Deshabilita el menú completamente */
|
|
130
|
-
isDisabled?: boolean;
|
|
131
|
-
/** Clases CSS adicionales para el contenedor */
|
|
132
|
-
className?: string;
|
|
133
|
-
/** Clases CSS para partes específicas */
|
|
134
|
-
classNames?: DropdownMenuClassNames;
|
|
135
|
-
/** Estilos inline para el contenedor */
|
|
136
|
-
style?: React.CSSProperties;
|
|
137
|
-
/** z-index personalizado */
|
|
138
|
-
zIndex?: number | string;
|
|
139
|
-
/** Contenedor donde se renderiza el portal */
|
|
140
|
-
portalContainer?: HTMLElement | null;
|
|
141
|
-
/** ID para testing */
|
|
142
|
-
'data-testid'?: string;
|
|
143
|
-
};
|
|
144
|
-
/** Métodos expuestos via ref para control imperativo */
|
|
145
|
-
export type DropdownMenuRef = {
|
|
146
|
-
/** Abre el menú */
|
|
147
|
-
open: () => void;
|
|
148
|
-
/** Cierra el menú */
|
|
149
|
-
close: () => void;
|
|
150
|
-
/** Alterna el estado del menú */
|
|
151
|
-
toggle: () => void;
|
|
152
|
-
/** Estado actual de apertura */
|
|
153
|
-
isOpen: boolean;
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Props del componente ContextMenu.
|
|
157
|
-
* Menú contextual que se activa con clic derecho.
|
|
158
|
-
*/
|
|
159
|
-
export type ContextMenuProps = Omit<DropdownMenuProps, 'triggerAction' | 'placement' | 'children'> & {
|
|
160
|
-
/** Elemento sobre el que se activará el menú contextual */
|
|
161
|
-
children: React.ReactElement<React.HTMLAttributes<HTMLElement>>;
|
|
162
|
-
/** Si el menú contextual está habilitado */
|
|
163
|
-
isEnabled?: boolean;
|
|
164
|
-
};
|
|
165
|
-
export type { DropdownMenuRef as ContextMenuRef };
|
|
166
|
-
export type { DropdownMenuSize as ContextMenuSize };
|
|
167
|
-
export type { DropdownMenuVariant as ContextMenuVariant };
|
|
168
|
-
export type { DropdownMenuClassNames as ContextMenuClassNames };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type IconProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const IconUndo: FC<IconProps>;
|
|
7
|
-
export declare const IconTrash: FC<IconProps>;
|
|
8
|
-
export declare const IconUpload: FC<IconProps>;
|
|
9
|
-
export declare const IconClose: FC<IconProps>;
|
|
10
|
-
declare const _default: {
|
|
11
|
-
IconUndo: FC<IconProps>;
|
|
12
|
-
IconTrash: FC<IconProps>;
|
|
13
|
-
IconUpload: FC<IconProps>;
|
|
14
|
-
IconClose: FC<IconProps>;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type FirmaManualProps = {
|
|
2
|
-
isOpen?: boolean;
|
|
3
|
-
onClose?: () => void;
|
|
4
|
-
onConfirm?: (signatureData: string) => void;
|
|
5
|
-
titulo?: string;
|
|
6
|
-
textoGuardar?: string;
|
|
7
|
-
textoModificar?: string;
|
|
8
|
-
textoDeshacer?: string;
|
|
9
|
-
textoLimpiar?: string;
|
|
10
|
-
textoAdjuntar?: string;
|
|
11
|
-
ancho?: number;
|
|
12
|
-
alto?: number;
|
|
13
|
-
className?: string;
|
|
14
|
-
textoConsentimiento?: string;
|
|
15
|
-
mostrarBotonSubir?: boolean;
|
|
16
|
-
cerrarAlGuardar?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export type FirmaManualRef = {
|
|
19
|
-
limpiar: () => void;
|
|
20
|
-
obtenerDatosFirma: () => string | null;
|
|
21
|
-
estaVacio: () => boolean;
|
|
22
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const useFirmaLogica: () => {
|
|
2
|
-
canvasRef: import('react').RefObject<HTMLCanvasElement | null>;
|
|
3
|
-
estaVacio: boolean;
|
|
4
|
-
limpiarCanvas: () => void;
|
|
5
|
-
deshacerUltimoTrazo: () => void;
|
|
6
|
-
puedeDeshacer: boolean;
|
|
7
|
-
obtenerDatosFirma: () => string | null;
|
|
8
|
-
configurarCanvas: (color: string, habilitado?: boolean) => (() => void) | undefined;
|
|
9
|
-
};
|
|
10
|
-
export default useFirmaLogica;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
2
|
-
export declare function MicrofonoIcono(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function SonidoIcono(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function GrabacionIcono(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
MicrofonoIcono: typeof MicrofonoIcono;
|
|
7
|
-
SonidoIcono: typeof SonidoIcono;
|
|
8
|
-
GrabacionIcono: typeof GrabacionIcono;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
value: string;
|
|
3
|
-
onChange: (nuevoTexto: string) => void;
|
|
4
|
-
isDisabled?: boolean;
|
|
5
|
-
isReadOnly?: boolean;
|
|
6
|
-
onDictadoCompleto?: () => void;
|
|
7
|
-
idioma?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function useReconocimientoVoz({ value, onChange, isDisabled, isReadOnly, onDictadoCompleto, idioma, }: Props): {
|
|
10
|
-
puedeHablar: boolean;
|
|
11
|
-
puedeEscuchar: boolean;
|
|
12
|
-
hablando: boolean;
|
|
13
|
-
escuchando: boolean;
|
|
14
|
-
errorDictado: string | null;
|
|
15
|
-
escuchar: () => void;
|
|
16
|
-
detenerHablar: () => void;
|
|
17
|
-
dictar: () => void;
|
|
18
|
-
detenerDictado: () => void;
|
|
19
|
-
};
|
|
20
|
-
export type UseReconocimientoVoz = ReturnType<typeof useReconocimientoVoz>;
|
|
21
|
-
export {};
|