From 6438f49dcad090446fdec9b189a027751e8dca11 Mon Sep 17 00:00:00 2001 From: Sean Monahan Date: Wed, 29 Nov 2023 11:03:54 -0800 Subject: [PATCH] feat: add useFocusVisible() to exports (#29935) * feat: add useFocusVisible() to exports * update API snapshot --- ...ct-components-53e298a8-94c2-4760-ad6b-4f62f876b949.json | 7 +++++++ .../react-components/etc/react-components.api.md | 3 +++ packages/react-components/react-components/src/index.ts | 1 + 3 files changed, 11 insertions(+) create mode 100644 change/@fluentui-react-components-53e298a8-94c2-4760-ad6b-4f62f876b949.json diff --git a/change/@fluentui-react-components-53e298a8-94c2-4760-ad6b-4f62f876b949.json b/change/@fluentui-react-components-53e298a8-94c2-4760-ad6b-4f62f876b949.json new file mode 100644 index 0000000000000..7275ecf7bcbd4 --- /dev/null +++ b/change/@fluentui-react-components-53e298a8-94c2-4760-ad6b-4f62f876b949.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "add useFocusVisible() to exports", + "packageName": "@fluentui/react-components", + "email": "seanmonahan@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-components/etc/react-components.api.md b/packages/react-components/react-components/etc/react-components.api.md index c6344a07f7f6c..041f499cbb435 100644 --- a/packages/react-components/react-components/etc/react-components.api.md +++ b/packages/react-components/react-components/etc/react-components.api.md @@ -1195,6 +1195,7 @@ import { useFocusableGroup } from '@fluentui/react-tabster'; import { UseFocusableGroupOptions } from '@fluentui/react-tabster'; import { useFocusFinders } from '@fluentui/react-tabster'; import { useFocusObserved } from '@fluentui/react-tabster'; +import { useFocusVisible } from '@fluentui/react-tabster'; import { useFocusWithin } from '@fluentui/react-tabster'; import { useHeadlessFlatTree_unstable } from '@fluentui/react-tree'; import { useId } from '@fluentui/react-utilities'; @@ -3799,6 +3800,8 @@ export { useFocusFinders } export { useFocusObserved } +export { useFocusVisible } + export { useFocusWithin } export { useHeadlessFlatTree_unstable } diff --git a/packages/react-components/react-components/src/index.ts b/packages/react-components/react-components/src/index.ts index 46c3dd2cd3520..9fe31be8d728e 100644 --- a/packages/react-components/react-components/src/index.ts +++ b/packages/react-components/react-components/src/index.ts @@ -37,6 +37,7 @@ export { useArrowNavigationGroup, useFocusableGroup, useFocusFinders, + useFocusVisible, useFocusWithin, useKeyboardNavAttribute, useModalAttributes,