UNPKG

@octopusdeploy/design-system-components

Version:
19 lines (18 loc) 1.15 kB
import type { TransitionProps } from "@mui/material/transitions"; import type { ComponentType, PropsWithChildren } from "react"; import type React from "react"; import type { DesignSystemLinkHref, DesignSystemLinkProps } from "../routing/OctopusRoutingContext"; interface TestDesignSystemProviderProps { Link?: ReturnType<typeof React.forwardRef<HTMLAnchorElement, DesignSystemLinkProps>>; useIsUrlActive?: () => (path: DesignSystemLinkHref, exact: boolean | undefined) => boolean; useDispatchLinkAnalytics?: () => (linkLabel: string, href: string, name: string, linkLocation?: string) => void; } export declare function TestDesignSystemProvider({ Link, useIsUrlActive, useDispatchLinkAnalytics, children }: PropsWithChildren<TestDesignSystemProviderProps>): import("react/jsx-runtime").JSX.Element; /** * Set the default transitions for MUI. This can be used to disable transitions * during tests for example. */ export declare const SetMuiDefaultTransitions: ({ children, TransitionComponent }: PropsWithChildren<{ TransitionComponent: ComponentType<TransitionProps>; }>) => import("react/jsx-runtime").JSX.Element; export {};