UNPKG

@progress/kendo-react-data-tools

Version:

Includes React Pager & React Filter component, an intuitive interface to create complex filter descriptions. KendoReact Data Tools package

23 lines (22 loc) 833 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use client"; import * as e from "react"; import { KEYBOARD_NAV_DATA_LEVEL as r, KEYBOARD_NAV_DATA_ID as i } from "./constants.mjs"; import { TableKeyboardNavigationContext as n } from "./TableKeyboardNavigationContext.mjs"; const v = (o, a) => { const t = e.useContext(n); return !t || !o || a === !1 ? {} : { tabIndex: t && t.activeId && t.activeId === o ? 0 : -1, [r]: t.level, [i]: o }; }; export { v as useTableKeyboardNavigation };