- ✅ Ticket 1.1: Estructura Clean Architecture en backend - ✅ Ticket 1.2: Schemas Zod compartidos - ✅ Ticket 1.3: Refactorización drugs.ts (1362 → 8 archivos modulares) - ✅ Ticket 1.4: Refactorización procedures.ts (3583 → 6 archivos modulares) - ✅ Ticket 1.5: Eliminación de duplicidades (~50 líneas) Cambios principales: - Creada estructura Clean Architecture en backend/src/ - Schemas Zod compartidos en backend/src/shared/schemas/ - Refactorización modular de drugs y procedures - Utilidades genéricas en src/utils/ (filter, validation) - Eliminados scripts obsoletos y documentación antigua - Corregidos errores: QueryClient, import test-error-handling - Build verificado y funcionando correctamente
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import * as React from 'react';
|
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
|
|
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
interface FocusScopeProps extends PrimitiveDivProps {
|
|
/**
|
|
* When `true`, tabbing from last item will focus first tabbable
|
|
* and shift+tab from first item will focus last tababble.
|
|
* @defaultValue false
|
|
*/
|
|
loop?: boolean;
|
|
/**
|
|
* When `true`, focus cannot escape the focus scope via keyboard,
|
|
* pointer, or a programmatic focus.
|
|
* @defaultValue false
|
|
*/
|
|
trapped?: boolean;
|
|
/**
|
|
* Event handler called when auto-focusing on mount.
|
|
* Can be prevented.
|
|
*/
|
|
onMountAutoFocus?: (event: Event) => void;
|
|
/**
|
|
* Event handler called when auto-focusing on unmount.
|
|
* Can be prevented.
|
|
*/
|
|
onUnmountAutoFocus?: (event: Event) => void;
|
|
}
|
|
declare const FocusScope: React.ForwardRefExoticComponent<FocusScopeProps & React.RefAttributes<HTMLDivElement>>;
|
|
declare const Root: React.ForwardRefExoticComponent<FocusScopeProps & React.RefAttributes<HTMLDivElement>>;
|
|
|
|
export { FocusScope, type FocusScopeProps, Root };
|