@fluentui/react-theme-provider
Version:
Fluent UI React theme provider component, hook, and theme related utilities.
313 lines (180 loc) • 16.6 kB
Markdown
# Change Log - @fluentui/react-theme-provider
This log was last generated on Fri, 26 Feb 2021 21:26:52 GMT and should not be manually modified.
<!-- Start content -->
## [0.18.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.18.5)
Fri, 26 Feb 2021 21:26:52 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.18.0..@fluentui/react-theme-provider_v0.18.5)
### Patches
- Publish packages with names that also exist in master under dist-tag lts-7 ([PR #17191](https://github.com/microsoft/fluentui/pull/17191) by elcraig@microsoft.com)
## [0.18.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.18.0)
Wed, 18 Nov 2020 12:26:33 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.17.0..@fluentui/react-theme-provider_v0.18.0)
### Minor changes
- Adding applyClasses helper. ([PR #15968](https://github.com/microsoft/fluentui/pull/15968) by dzearing@hotmail.com)
## [0.17.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.17.0)
Tue, 17 Nov 2020 12:27:56 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.16.3..@fluentui/react-theme-provider_v0.17.0)
### Minor changes
- Changing useStyleRenderer to default to merge-styles so that things actually happen. ([PR #15956](https://github.com/microsoft/fluentui/pull/15956) by xgao@microsoft.com)
## [0.16.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.16.3)
Fri, 30 Oct 2020 18:59:48 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v1.0.0-beta.4..@fluentui/react-theme-provider_v0.16.3)
### Patches
- add react-theme-provider (v0) package back in 7.0 branch ([PR #15789](https://github.com/microsoft/fluentui/pull/15789) by xgao@microsoft.com)
## [1.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v1.0.0-beta.4)
Wed, 28 Oct 2020 12:32:24 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v1.0.0-beta.1..@fluentui/react-theme-provider_v1.0.0-beta.4)
### Changes
- Expanding type of MakeVariantClassesOptions to take into account user provided Variants. ([PR #15518](https://github.com/microsoft/fluentui/pull/15518) by humbertomakotomorimoto@gmail.com)
## [1.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v1.0.0-beta.1)
Fri, 23 Oct 2020 23:25:40 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v1.0.0-beta.0..@fluentui/react-theme-provider_v1.0.0-beta.1)
### Changes
- Major bump react-compose package since it dependes on packages with new major. ([PR #15679](https://github.com/microsoft/fluentui/pull/15679) by xgao@microsoft.com)
## [1.0.0-beta.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v1.0.0-beta.0)
Fri, 23 Oct 2020 03:26:15 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.14.2..@fluentui/react-theme-provider_v1.0.0-beta.0)
### Changes
- ThemeProvider: RecursivePartial now correctly works. ([PR #14562](https://github.com/microsoft/fluentui/pull/14562) by dzearing@hotmail.com)
- Remove unintended exports from public APIs and ensure default theme is always provided by ThemeProvider. ([PR #15229](https://github.com/microsoft/fluentui/pull/15229) by xgao@microsoft.com)
- Fix getTokens to only override with user provided tokens. ([PR #15326](https://github.com/microsoft/fluentui/pull/15326) by xgao@microsoft.com)
- Adding checked iconColor tokens. ([PR #15328](https://github.com/microsoft/fluentui/pull/15328) by humbertomakotomorimoto@gmail.com)
- add tokens for `react-text` ([PR #15304](https://github.com/microsoft/fluentui/pull/15304) by olfedias@microsoft.com)
- Set correct dir on root element based on rtl value in theme. ([PR #15347](https://github.com/microsoft/fluentui/pull/15347) by xgao@microsoft.com)
- Fix ThemeProvider props and state typings. ([PR #15485](https://github.com/microsoft/fluentui/pull/15485) by xgao@microsoft.com)
- do not use css vars for default styles applied by ThemeProvider. ([PR #15585](https://github.com/microsoft/fluentui/pull/15585) by xgao@microsoft.com)
- Rename @uifabric/styling to @fluentui/style-utilities ([PR #15567](https://github.com/microsoft/fluentui/pull/15567) by elcraig@microsoft.com)
- Rename @uifabric/set-version to @fluentui/set-version ([PR #15616](https://github.com/microsoft/fluentui/pull/15616) by ololubek@microsoft.com)
- Rename @uifabric/merge-styles to @fluentui/merge-styles ([PR #15627](https://github.com/microsoft/fluentui/pull/15627) by ololubek@microsoft.com)
- Rename @uifabric/react-hooks to @fluentui/react-hooks & @uifabric/utilities to @fluentui/utilities ([PR #15629](https://github.com/microsoft/fluentui/pull/15629) by ololubek@microsoft.com)
- Remove react-dom from peerDependencies ([PR #15634](https://github.com/microsoft/fluentui/pull/15634) by elcraig@microsoft.com)
## [0.14.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.14.2)
Sun, 27 Sep 2020 04:20:52 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.14.1..@fluentui/react-theme-provider_v0.14.2)
### Patches
- Add instructions to replace Fabric, Customizer, loadTheme in README. ([PR #15194](https://github.com/microsoft/fluentui/pull/15194) by xgao@microsoft.com)
## [0.14.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.14.1)
Fri, 25 Sep 2020 12:25:17 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.14.0..@fluentui/react-theme-provider_v0.14.1)
### Patches
- Adjusting storybook config so that it works with new changes. ([PR #15132](https://github.com/microsoft/fluentui/pull/15132) by humbertomakotomorimoto@gmail.com)
## [0.14.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.14.0)
Wed, 23 Sep 2020 12:27:48 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.13.3..@fluentui/react-theme-provider_v0.14.0)
### Minor changes
- Adding Card tokens to theme. ([PR #14206](https://github.com/microsoft/fluentui/pull/14206) by makotom@microsoft.com)
### Patches
- set theme package version to be 1.0.0. ([PR #15174](https://github.com/microsoft/fluentui/pull/15174) by xgao@microsoft.com)
## [0.13.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.13.3)
Fri, 18 Sep 2020 12:23:24 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.13.1..@fluentui/react-theme-provider_v0.13.3)
### Patches
- Code cleanup: remove defaultTokens and aggregate everything in getTokens. ([PR #15110](https://github.com/microsoft/fluentui/pull/15110) by xgao@microsoft.com)
## [0.13.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.13.1)
Thu, 17 Sep 2020 15:52:49 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.13.0..@fluentui/react-theme-provider_v0.13.1)
### Patches
- Fix button styles to match v7 buttons. ([PR #14972](https://github.com/microsoft/fluentui/pull/14972) by xgao@microsoft.com)
## [0.13.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.13.0)
Thu, 17 Sep 2020 12:25:04 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.12.1..@fluentui/react-theme-provider_v0.13.0)
### Minor changes
- Support applyTo prop and align styles with Fabric component. ([PR #14696](https://github.com/microsoft/fluentui/pull/14696) by xgao@microsoft.com)
- Updating color token references to use `color` prefix, and `accent` tokens have been renamed to `brand`. ([PR #15070](https://github.com/microsoft/fluentui/pull/15070) by dzearing@hotmail.com)
## [0.12.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.12.0)
Tue, 15 Sep 2020 12:26:06 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.11.3..@fluentui/react-theme-provider_v0.12.0)
### Minor changes
- Support passing different renderer and default to use merge-styles ([PR #14889](https://github.com/microsoft/fluentui/pull/14889) by dzearing@hotmail.com)
## [0.11.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.11.3)
Thu, 10 Sep 2020 22:29:38 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.11.2..@fluentui/react-theme-provider_v0.11.3)
### Patches
- Clean up default styles applied on ThemeProvider root to match Fabric ([PR #14976](https://github.com/microsoft/fluentui/pull/14976) by xgao@microsoft.com)
## [0.11.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.11.2)
Wed, 09 Sep 2020 12:24:19 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.11.1..@fluentui/react-theme-provider_v0.11.2)
### Patches
- Adding token definition for tokens related to CompoundButton. ([PR #14855](https://github.com/microsoft/fluentui/pull/14855) by humbertomakotomorimoto@gmail.com)
## [0.11.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.11.1)
Mon, 07 Sep 2020 12:26:26 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.11.0..@fluentui/react-theme-provider_v0.11.1)
### Patches
- Minor tweaks in theme styling. ([PR #14889](https://github.com/microsoft/fluentui/pull/14889) by dzearing@microsoft.com)
## [0.11.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.11.0)
Mon, 31 Aug 2020 18:11:10 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.10.0..@fluentui/react-theme-provider_v0.11.0)
### Minor changes
- Export ThemeContext. ([PR #14803](https://github.com/microsoft/fluentui/pull/14803) by xgao@microsoft.com)
## [0.10.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.10.0)
Fri, 28 Aug 2020 12:29:20 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.9.1..@fluentui/react-theme-provider_v0.10.0)
### Patches
- Adding ghost defaults to Fluent theme. ([PR #14743](https://github.com/microsoft/fluentui/pull/14743) by humbertomakotomorimoto@gmail.com)
## [0.9.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.9.1)
Wed, 26 Aug 2020 12:35:38 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.9.0..@fluentui/react-theme-provider_v0.9.1)
### Patches
- Fix Theme and PartialTheme typing. ([PR #14741](https://github.com/microsoft/fluentui/pull/14741) by xgao@microsoft.com)
## [0.9.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.9.0)
Tue, 25 Aug 2020 12:36:19 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.8.1..@fluentui/react-theme-provider_v0.9.0)
### Minor changes
- Move mergeThemes and Theme related typings to new theme package. ([PR #14650](https://github.com/microsoft/fluentui/pull/14650) by xgao@microsoft.com)
- Adding `makeStyles` helper to register styles as a function of the theme. ([PR #14641](https://github.com/microsoft/fluentui/pull/14641) by dzearing@hotmail.com)
- Updated typings for makeStyles so that it can more correctly resolve style inputs. ([PR #14727](https://github.com/microsoft/fluentui/pull/14727) by dzearing@hotmail.com)
## [0.8.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.8.1)
Thu, 20 Aug 2020 12:37:22 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.8.0..@fluentui/react-theme-provider_v0.8.1)
### Patches
- Fix default button tokens ([PR #14612](https://github.com/microsoft/fluentui/pull/14612) by xgao@microsoft.com)
- Remove references to React global (add explicit imports) ([PR #14613](https://github.com/microsoft/fluentui/pull/14613) by elcraig@microsoft.com)
## [0.8.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.8.0)
Wed, 19 Aug 2020 12:44:33 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.7.3..@fluentui/react-theme-provider_v0.8.0)
### Minor changes
- add Teams/Fluent/default themes; Convert v7 theme to tokens. ([PR #14500](https://github.com/microsoft/fluentui/pull/14500) by xgao@microsoft.com)
## [0.7.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.7.3)
Tue, 18 Aug 2020 07:58:00 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.7.0..@fluentui/react-theme-provider_v0.7.3)
### Patches
- ThemeProvider: RecursivePartial now correctly works. ([PR #14562](https://github.com/microsoft/fluentui/pull/14562) by dzearing@hotmail.com)
## [0.7.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.7.0)
Wed, 12 Aug 2020 18:34:18 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.6.0..@fluentui/react-theme-provider_v0.7.0)
### Minor changes
- Support v7 theme (ITheme) ([PR #14398](https://github.com/microsoft/fluentui/pull/14398) by xgao@microsoft.com)
## [0.6.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.6.0)
Tue, 11 Aug 2020 05:47:07 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.5.0..@fluentui/react-theme-provider_v0.6.0)
### Minor changes
- Renaming TokenPlateSet to TokenColorSet ([PR #14455](https://github.com/microsoft/fluentui/pull/14455) by dzearing@hotmail.com)
## [0.5.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.5.0)
Mon, 10 Aug 2020 06:19:21 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.4.0..@fluentui/react-theme-provider_v0.5.0)
### Minor changes
- Adding useInlineTokens hook. ([PR #14274](https://github.com/microsoft/fluentui/pull/14274) by dzearing@microsoft.com)
## [0.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.4.0)
Mon, 27 Jul 2020 12:42:21 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.3.7..@fluentui/react-theme-provider_v0.4.0)
### Minor changes
- Move ThemeProvider from react-next to react-theme-provider's Compat folder ([PR #14187](https://github.com/microsoft/fluentui/pull/14187) by behowell@microsoft.com)
## [0.3.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.3.0)
Tue, 23 Jun 2020 12:41:54 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.2.1..@fluentui/react-theme-provider_v0.3.0)
### Minor changes
- Adding getStylesFromOptionsAndProps method to calculate the correct value for the style prop. ([PR #13723](https://github.com/microsoft/fluentui/pull/13723) by humbertomakotomorimoto@gmail.com)
## [0.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.2.0)
Fri, 12 Jun 2020 18:29:07 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.1.6..@fluentui/react-theme-provider_v0.2.0)
### Minor changes
- Exporting utility to generate inline styles based on tokens. ([PR #13416](https://github.com/microsoft/fluentui/pull/13416) by dzearing@microsoft.com)
## [0.1.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.1.6)
Thu, 21 May 2020 12:34:43 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v0.1.1..@fluentui/react-theme-provider_v0.1.6)
### Patches
- Avoid adding empty string class attribute ([PR #13146](https://github.com/microsoft/fluentui/pull/13146) by xgao@microsoft.com)
## [0.1.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v0.1.1)
Mon, 11 May 2020 12:36:34 GMT
### Patches
- Initial publishing of the Fluent UI theme provider package. ([PR #12996](https://github.com/microsoft/fluentui/pull/12996) by dzearing@microsoft.com)