From c2b898e34555b14e9518cfe2622ba0dc428b75e8 Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Wed, 12 Jan 2022 10:58:26 +0100 Subject: [PATCH 1/3] breaking: stop exporting useTheme hook --- packages/react-components/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/src/index.ts b/packages/react-components/src/index.ts index f17b7b28494ead..2cabbad471c73c 100644 --- a/packages/react-components/src/index.ts +++ b/packages/react-components/src/index.ts @@ -21,7 +21,6 @@ export { useFluentProvider, useFluentProviderContextValues, useFluentProviderStyles, - useTheme, } from '@fluentui/react-provider'; export type { FluentProviderContextValues, @@ -38,6 +37,7 @@ export { teamsDarkTheme, teamsHighContrastTheme, teamsLightTheme, + tokens, webDarkTheme, webHighContrastTheme, webLightTheme, From 5416198ba17031413cb5a2eaf18be981f7a70473 Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Wed, 12 Jan 2022 11:00:05 +0100 Subject: [PATCH 2/3] Change files --- ...ct-components-c4676f9d-868b-4612-8296-8a30d56a2a12.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 change/@fluentui-react-components-c4676f9d-868b-4612-8296-8a30d56a2a12.json diff --git a/change/@fluentui-react-components-c4676f9d-868b-4612-8296-8a30d56a2a12.json b/change/@fluentui-react-components-c4676f9d-868b-4612-8296-8a30d56a2a12.json new file mode 100644 index 00000000000000..061a94f4bd1927 --- /dev/null +++ b/change/@fluentui-react-components-c4676f9d-868b-4612-8296-8a30d56a2a12.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "breaking: stop exporting useTheme hook", + "packageName": "@fluentui/react-components", + "email": "olfedias@microsoft.com", + "dependentChangeType": "patch" +} From 206af673e12affadb800b1d9b7d24df8244a5823 Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Wed, 12 Jan 2022 11:02:04 +0100 Subject: [PATCH 3/3] update API --- packages/react-components/etc/react-components.api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-components/etc/react-components.api.md b/packages/react-components/etc/react-components.api.md index c403da9e82c577..b36a099da3156d 100644 --- a/packages/react-components/etc/react-components.api.md +++ b/packages/react-components/etc/react-components.api.md @@ -295,6 +295,7 @@ import { ToggleButton } from '@fluentui/react-button'; import { toggleButtonClassName } from '@fluentui/react-button'; import { ToggleButtonProps } from '@fluentui/react-button'; import { ToggleButtonState } from '@fluentui/react-button'; +import { tokens } from '@fluentui/react-theme'; import { Tooltip } from '@fluentui/react-tooltip'; import { tooltipClassName } from '@fluentui/react-tooltip'; import { TooltipProps } from '@fluentui/react-tooltip'; @@ -377,7 +378,6 @@ import { useSplitButton } from '@fluentui/react-button'; import { useSplitButtonStyles } from '@fluentui/react-button'; import { useText } from '@fluentui/react-text'; import { useTextStyles } from '@fluentui/react-text'; -import { useTheme } from '@fluentui/react-provider'; import { useToggleButton } from '@fluentui/react-button'; import { useToggleButtonStyles } from '@fluentui/react-button'; import { useTooltip } from '@fluentui/react-tooltip'; @@ -968,6 +968,8 @@ export { ToggleButtonProps } export { ToggleButtonState } +export { tokens } + export { Tooltip } export { tooltipClassName } @@ -1132,8 +1134,6 @@ export { useText } export { useTextStyles } -export { useTheme } - export { useToggleButton } export { useToggleButtonStyles }