@elliemae/ds-toolbar 3.22.0-next.22 → 3.22.0-next.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/dist/cjs/DSToolbarItemV2.js +2 -1
- package/dist/cjs/DSToolbarItemV2.js.map +2 -2
- package/dist/cjs/DSToolbarV2.js +3 -2
- package/dist/cjs/DSToolbarV2.js.map +2 -2
- package/dist/cjs/DSToolbarV2Context.js.map +1 -1
- package/dist/cjs/index.js +1 -9
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +10 -4
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/styled.js.map +1 -1
- package/dist/cjs/useToolbarItemHandlers.js +1 -1
- package/dist/cjs/useToolbarItemHandlers.js.map +2 -2
- package/dist/esm/DSToolbarItemV2.js +2 -1
- package/dist/esm/DSToolbarItemV2.js.map +2 -2
- package/dist/esm/DSToolbarV2.js +3 -2
- package/dist/esm/DSToolbarV2.js.map +2 -2
- package/dist/esm/DSToolbarV2Context.js.map +1 -1
- package/dist/esm/index.js +1 -5
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/react-desc-prop-types.js +15 -5
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/styled.js.map +1 -1
- package/dist/esm/useToolbarItemHandlers.js +1 -1
- package/dist/esm/useToolbarItemHandlers.js.map +2 -2
- package/dist/types/DSToolbarV2Context.d.ts +2 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/react-desc-prop-types.d.ts +101 -395
- package/dist/types/styled.d.ts +4 -1
- package/package.json +8 -12
- package/dist/cjs/deprecated/DSToolbar.js +0 -96
- package/dist/cjs/deprecated/DSToolbar.js.map +0 -7
- package/dist/cjs/deprecated/ToolbarDivider.js +0 -40
- package/dist/cjs/deprecated/ToolbarDivider.js.map +0 -7
- package/dist/cjs/deprecated/ToolbarGroup.js +0 -50
- package/dist/cjs/deprecated/ToolbarGroup.js.map +0 -7
- package/dist/cjs/deprecated/ToolbarItem.js +0 -60
- package/dist/cjs/deprecated/ToolbarItem.js.map +0 -7
- package/dist/cjs/deprecated/decorateToolbarChildren.js +0 -45
- package/dist/cjs/deprecated/decorateToolbarChildren.js.map +0 -7
- package/dist/cjs/deprecated/hooks/useKeyboardNavigation.js +0 -72
- package/dist/cjs/deprecated/hooks/useKeyboardNavigation.js.map +0 -7
- package/dist/cjs/deprecated/index.js +0 -38
- package/dist/cjs/deprecated/index.js.map +0 -7
- package/dist/esm/deprecated/DSToolbar.js +0 -66
- package/dist/esm/deprecated/DSToolbar.js.map +0 -7
- package/dist/esm/deprecated/ToolbarDivider.js +0 -10
- package/dist/esm/deprecated/ToolbarDivider.js.map +0 -7
- package/dist/esm/deprecated/ToolbarGroup.js +0 -20
- package/dist/esm/deprecated/ToolbarGroup.js.map +0 -7
- package/dist/esm/deprecated/ToolbarItem.js +0 -30
- package/dist/esm/deprecated/ToolbarItem.js.map +0 -7
- package/dist/esm/deprecated/decorateToolbarChildren.js +0 -15
- package/dist/esm/deprecated/decorateToolbarChildren.js.map +0 -7
- package/dist/esm/deprecated/hooks/useKeyboardNavigation.js +0 -42
- package/dist/esm/deprecated/hooks/useKeyboardNavigation.js.map +0 -7
- package/dist/esm/deprecated/index.js +0 -7
- package/dist/esm/deprecated/index.js.map +0 -7
- package/dist/types/deprecated/DSToolbar.d.ts +0 -37
- package/dist/types/deprecated/ToolbarDivider.d.ts +0 -3
- package/dist/types/deprecated/ToolbarGroup.d.ts +0 -14
- package/dist/types/deprecated/ToolbarItem.d.ts +0 -16
- package/dist/types/deprecated/decorateToolbarChildren.d.ts +0 -2
- package/dist/types/deprecated/hooks/useKeyboardNavigation.d.ts +0 -9
- package/dist/types/deprecated/index.d.ts +0 -2
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import React2, { useState } from "react";
|
|
4
|
-
import PropTypes from "prop-types";
|
|
5
|
-
import { useFocusGroupWithState } from "@elliemae/ds-shared";
|
|
6
|
-
import { DSButtonV2 } from "@elliemae/ds-button-v2";
|
|
7
|
-
import { PopperPositions as Position } from "@elliemae/ds-popper";
|
|
8
|
-
const ToolbarItem = ({ icon, labelText, menu = void 0, containerProps = {}, ...otherProps }) => {
|
|
9
|
-
const [ref, setRef] = useState(null);
|
|
10
|
-
useFocusGroupWithState(ref);
|
|
11
|
-
const btn = /* @__PURE__ */ jsx(DSButtonV2, { ...otherProps, buttonType: "icon", innerRef: (r) => setRef(r), labelText, ...containerProps, children: icon });
|
|
12
|
-
if (menu) {
|
|
13
|
-
return React2.cloneElement(menu, {
|
|
14
|
-
...menu.props,
|
|
15
|
-
placement: Position.BOTTOM_END,
|
|
16
|
-
triggerComponent: btn
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return btn;
|
|
20
|
-
};
|
|
21
|
-
ToolbarItem.displayName = "ToolbarItem";
|
|
22
|
-
ToolbarItem.propTypes = {
|
|
23
|
-
icon: PropTypes.element,
|
|
24
|
-
labelText: PropTypes.string
|
|
25
|
-
};
|
|
26
|
-
var ToolbarItem_default = ToolbarItem;
|
|
27
|
-
export {
|
|
28
|
-
ToolbarItem_default as default
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=ToolbarItem.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/ToolbarItem.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { useFocusGroupWithState } from '@elliemae/ds-shared';\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { PopperPositions as Position } from '@elliemae/ds-popper';\n\nconst ToolbarItem = ({ icon, labelText, menu = undefined, containerProps = {}, ...otherProps }) => {\n const [ref, setRef] = useState(null);\n\n useFocusGroupWithState(ref);\n const btn = (\n <DSButtonV2 {...otherProps} buttonType=\"icon\" innerRef={(r) => setRef(r)} labelText={labelText} {...containerProps}>\n {icon}\n </DSButtonV2>\n );\n if (menu) {\n return React.cloneElement(menu, {\n ...menu.props,\n placement: Position.BOTTOM_END,\n triggerComponent: btn,\n });\n }\n return btn;\n};\n\nToolbarItem.displayName = 'ToolbarItem';\n\nToolbarItem.propTypes = {\n icon: PropTypes.element,\n labelText: PropTypes.string,\n};\n\nexport default ToolbarItem;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACenB;AAXJ,OAAOA,UAAS,gBAAgB;AAChC,OAAO,eAAe;AACtB,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB,gBAAgB;AAE5C,MAAM,cAAc,CAAC,EAAE,MAAM,WAAW,OAAO,QAAW,iBAAiB,CAAC,GAAG,GAAG,WAAW,MAAM;AACjG,QAAM,CAAC,KAAK,MAAM,IAAI,SAAS,IAAI;AAEnC,yBAAuB,GAAG;AAC1B,QAAM,MACJ,oBAAC,cAAY,GAAG,YAAY,YAAW,QAAO,UAAU,CAAC,MAAM,OAAO,CAAC,GAAG,WAAuB,GAAG,gBACjG,gBACH;AAEF,MAAI,MAAM;AACR,WAAOA,OAAM,aAAa,MAAM;AAAA,MAC9B,GAAG,KAAK;AAAA,MACR,WAAW,SAAS;AAAA,MACpB,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAEA,YAAY,cAAc;AAE1B,YAAY,YAAY;AAAA,EACtB,MAAM,UAAU;AAAA,EAChB,WAAW,UAAU;AACvB;AAEA,IAAO,sBAAQ;",
|
|
6
|
-
"names": ["React"]
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2, { cloneElement } from "react";
|
|
3
|
-
var decorateToolbarChildren_default = (children, extraProps = {}) => React2.Children.map(
|
|
4
|
-
children,
|
|
5
|
-
(component) => component ? cloneElement(component, {
|
|
6
|
-
...extraProps,
|
|
7
|
-
...component.props,
|
|
8
|
-
className: `${component.props.className} toolbar-item`
|
|
9
|
-
}) : component,
|
|
10
|
-
null
|
|
11
|
-
);
|
|
12
|
-
export {
|
|
13
|
-
decorateToolbarChildren_default as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=decorateToolbarChildren.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/decorateToolbarChildren.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport React, { cloneElement } from 'react';\n\nexport default (children, extraProps = {}) =>\n React.Children.map(\n children,\n (component) =>\n component\n ? cloneElement(component, {\n ...extraProps,\n ...component.props,\n className: `${component.props.className} toolbar-item`,\n })\n : component,\n null,\n );\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACIvB,OAAOA,UAAS,oBAAoB;AAEpC,IAAO,kCAAQ,CAAC,UAAU,aAAa,CAAC,MACtCA,OAAM,SAAS;AAAA,EACb;AAAA,EACA,CAAC,cACC,YACI,aAAa,WAAW;AAAA,IACtB,GAAG;AAAA,IACH,GAAG,UAAU;AAAA,IACb,WAAW,GAAG,UAAU,MAAM;AAAA,EAChC,CAAC,IACD;AAAA,EACN;AACF;",
|
|
6
|
-
"names": ["React"]
|
|
7
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { useRef, useEffect, useCallback } from "react";
|
|
3
|
-
const useKeyboardNavigation = ({ containerRef, autoFocusOnMount }) => {
|
|
4
|
-
const allChildrenButtonRef = useRef(null);
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
if (containerRef.current) {
|
|
7
|
-
allChildrenButtonRef.current = containerRef.current.querySelectorAll("button");
|
|
8
|
-
}
|
|
9
|
-
if (autoFocusOnMount) {
|
|
10
|
-
setTimeout(() => allChildrenButtonRef.current?.[0].focus());
|
|
11
|
-
}
|
|
12
|
-
}, [autoFocusOnMount]);
|
|
13
|
-
const handleOnKeyDown = useCallback((e) => {
|
|
14
|
-
if (allChildrenButtonRef.current) {
|
|
15
|
-
const lastButton = allChildrenButtonRef.current[allChildrenButtonRef.current?.length - 1];
|
|
16
|
-
const firstButton = allChildrenButtonRef.current[0];
|
|
17
|
-
if (e.key === "ArrowRight") {
|
|
18
|
-
e.preventDefault();
|
|
19
|
-
if (e.target !== lastButton) {
|
|
20
|
-
e.target.nextSibling.focus();
|
|
21
|
-
} else {
|
|
22
|
-
firstButton.focus();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (e.key === "ArrowLeft") {
|
|
26
|
-
e.preventDefault();
|
|
27
|
-
if (e.target !== firstButton) {
|
|
28
|
-
e.target.previousSibling.focus();
|
|
29
|
-
} else {
|
|
30
|
-
lastButton.focus();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}, []);
|
|
35
|
-
return {
|
|
36
|
-
handleOnKeyDown
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
useKeyboardNavigation
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=useKeyboardNavigation.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/deprecated/hooks/useKeyboardNavigation.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport type React from 'react';\nimport { useRef, useEffect, useCallback } from 'react';\n\ninterface useKeyboardNavigationT {\n containerRef: React.MutableRefObject<HTMLDivElement | null>;\n autoFocusOnMount: boolean;\n}\n\n// Toolbar should not allow to use Tab/Shift+Tab to navigate between ToolbarItems.\n// Tab/Shift+Tab should be only used once to enter the whole controller.\n// Toolbars should be only navigable with Arrows to follow correct a11y.\n// https://www.w3.org/TR/wai-aria-practices/examples/toolbar/toolbar.html\n\nexport const useKeyboardNavigation = ({ containerRef, autoFocusOnMount }: useKeyboardNavigationT) => {\n const allChildrenButtonRef = useRef<NodeListOf<HTMLButtonElement> | null>(null);\n\n useEffect(() => {\n if (containerRef.current) {\n allChildrenButtonRef.current = containerRef.current.querySelectorAll('button');\n // allChildrenButtonRef.current.forEach((button, index) => {\n // if (index !== 0) {\n // button.setAttribute('tabindex', '-1');\n // }\n // });\n }\n\n if (autoFocusOnMount) {\n setTimeout(() => allChildrenButtonRef.current?.[0].focus());\n }\n\n // return () => {\n // allChildrenButtonRef.current?.forEach((button, index) => {\n // if (index !== 0) {\n // button.setAttribute('tabindex', '');\n // }\n // });\n // };\n }, [autoFocusOnMount]);\n\n const handleOnKeyDown = useCallback((e) => {\n if (allChildrenButtonRef.current) {\n const lastButton = allChildrenButtonRef.current[allChildrenButtonRef.current?.length - 1];\n const firstButton = allChildrenButtonRef.current[0];\n\n if (e.key === 'ArrowRight') {\n e.preventDefault();\n if (e.target !== lastButton) {\n e.target.nextSibling.focus();\n } else {\n firstButton.focus();\n }\n }\n if (e.key === 'ArrowLeft') {\n e.preventDefault();\n if (e.target !== firstButton) {\n e.target.previousSibling.focus();\n } else {\n lastButton.focus();\n }\n }\n }\n }, []);\n\n return {\n handleOnKeyDown,\n };\n};\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACKvB,SAAS,QAAQ,WAAW,mBAAmB;AAYxC,MAAM,wBAAwB,CAAC,EAAE,cAAc,iBAAiB,MAA8B;AACnG,QAAM,uBAAuB,OAA6C,IAAI;AAE9E,YAAU,MAAM;AACd,QAAI,aAAa,SAAS;AACxB,2BAAqB,UAAU,aAAa,QAAQ,iBAAiB,QAAQ;AAAA,IAM/E;AAEA,QAAI,kBAAkB;AACpB,iBAAW,MAAM,qBAAqB,UAAU,CAAC,EAAE,MAAM,CAAC;AAAA,IAC5D;AAAA,EASF,GAAG,CAAC,gBAAgB,CAAC;AAErB,QAAM,kBAAkB,YAAY,CAAC,MAAM;AACzC,QAAI,qBAAqB,SAAS;AAChC,YAAM,aAAa,qBAAqB,QAAQ,qBAAqB,SAAS,SAAS,CAAC;AACxF,YAAM,cAAc,qBAAqB,QAAQ,CAAC;AAElD,UAAI,EAAE,QAAQ,cAAc;AAC1B,UAAE,eAAe;AACjB,YAAI,EAAE,WAAW,YAAY;AAC3B,YAAE,OAAO,YAAY,MAAM;AAAA,QAC7B,OAAO;AACL,sBAAY,MAAM;AAAA,QACpB;AAAA,MACF;AACA,UAAI,EAAE,QAAQ,aAAa;AACzB,UAAE,eAAe;AACjB,YAAI,EAAE,WAAW,aAAa;AAC5B,YAAE,OAAO,gBAAgB,MAAM;AAAA,QACjC,OAAO;AACL,qBAAW,MAAM;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,SAAO;AAAA,IACL;AAAA,EACF;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/deprecated/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable import/export */\nexport * from './DSToolbar.js';\n\nexport { default } from './DSToolbar.js';\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACCvB,cAAc;AAEd,SAAS,WAAAA,gBAAe;",
|
|
6
|
-
"names": ["default"]
|
|
7
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import Item from './ToolbarItem.js';
|
|
2
|
-
import ToolbarGroup from './ToolbarGroup.js';
|
|
3
|
-
import Divider from './ToolbarDivider.js';
|
|
4
|
-
declare const DSToolbar: {
|
|
5
|
-
({ containerProps, innerRef, withDepth, alignment, autoFocusOnMount, children, size, ...otherProps }: {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
containerProps?: {} | undefined;
|
|
8
|
-
innerRef: any;
|
|
9
|
-
withDepth?: boolean | undefined;
|
|
10
|
-
alignment?: string | undefined;
|
|
11
|
-
autoFocusOnMount?: boolean | undefined;
|
|
12
|
-
children?: never[] | undefined;
|
|
13
|
-
size?: string | undefined;
|
|
14
|
-
}): import("react/jsx-runtime.js").JSX.Element;
|
|
15
|
-
propTypes: {
|
|
16
|
-
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
17
|
-
withDepth: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
18
|
-
alignment: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
-
size: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
20
|
-
autoFocusOnMount: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
21
|
-
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
22
|
-
innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
23
|
-
};
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
26
|
-
declare const ToolbarWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
27
|
-
[x: string]: any;
|
|
28
|
-
containerProps?: {} | undefined;
|
|
29
|
-
innerRef: any;
|
|
30
|
-
withDepth?: boolean | undefined;
|
|
31
|
-
alignment?: string | undefined;
|
|
32
|
-
autoFocusOnMount?: boolean | undefined;
|
|
33
|
-
children?: never[] | undefined;
|
|
34
|
-
size?: string | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
export { DSToolbar, Item as ToolbarItem, ToolbarGroup, Divider as ToolbarDivider, ToolbarWithSchema };
|
|
37
|
-
export default DSToolbar;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const ToolbarGroup: {
|
|
3
|
-
({ children, size, space }: {
|
|
4
|
-
children: any;
|
|
5
|
-
size: any;
|
|
6
|
-
space?: number | undefined;
|
|
7
|
-
}): import("react/jsx-runtime.js").JSX.Element;
|
|
8
|
-
propTypes: {
|
|
9
|
-
children: PropTypes.Requireable<any>;
|
|
10
|
-
size: PropTypes.Requireable<number>;
|
|
11
|
-
space: PropTypes.Requireable<number>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default ToolbarGroup;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const ToolbarItem: {
|
|
3
|
-
({ icon, labelText, menu, containerProps, ...otherProps }: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
icon: any;
|
|
6
|
-
labelText: any;
|
|
7
|
-
menu?: undefined;
|
|
8
|
-
containerProps?: {} | undefined;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
propTypes: {
|
|
12
|
-
icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
13
|
-
labelText: PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default ToolbarItem;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
interface useKeyboardNavigationT {
|
|
3
|
-
containerRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
4
|
-
autoFocusOnMount: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const useKeyboardNavigation: ({ containerRef, autoFocusOnMount }: useKeyboardNavigationT) => {
|
|
7
|
-
handleOnKeyDown: (e: any) => void;
|
|
8
|
-
};
|
|
9
|
-
export {};
|