feat(components): add FocusRing

This commit is contained in:
AAGaming
2022-09-18 14:51:50 -04:00
parent 218e007234
commit b05f84658a
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { ElementType, FC, ReactNode } from "react";
import { findModuleChild } from "../webpack";
export interface FocusRingProps {
className?: string,
rootClassName?: string,
render?: ElementType,
children?: ReactNode,
NavigationManager?: any
}
export const FocusRing = findModuleChild((m: any) => {
if (typeof m !== 'object') return false;
for (let prop in m) {
if (m[prop]?.toString()?.includes('.GetShowDebugFocusRing())')) return m[prop];
}
return false;
}) as FC<FocusRingProps>;

View File

@@ -4,6 +4,7 @@ export * from './Carousel';
export * from './Dropdown';
export * from './Field';
export * from './Focusable';
export * from './FocusRing';
export * from './FooterLegend';
export * from './Menu';
export * from './Modal';