diff --git a/CHANGELOG.md b/CHANGELOG.md index f759e6614..cc5fd9891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,74 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.4.1](https://github.com/themesberg/flowbite-react/compare/v0.3.8...v0.4.1) (2023-03-03) + + +### ⚠ BREAKING CHANGES + +* **/lib/components/flowbite:** ThemeProps no longer includes usePreferences +* **theme:** Like in #500, this version permanently changes the `FlowbiteTheme` for numerous +components. + +The philosophy is that themes will more clearly reflect the component's structure. + +For example, an `` can contain any number of `` or `` +sections. The theme used to look like: + +```js +accordion: { + base: "..", + content: "..", + flush: "..", + title: "..", +} +``` + +And now, the theme for an `` looks like: + +``` +js +accordion: { + root: { + base: "..", + flush: "..", + }, + content: "..", + title: "..", +} +``` + +So now the options in the theme which apply to the `` itself will always be found under +`root`. Likewise, `` can be themed via the `content` subsection. + +This ultimately will apply to all components. + +* ci(eslint): remove `prettier` plugins for `eslint` + +Instead, use `prettier-plugin-tailwindcss`, which is sufficient. + +* refactor(/lib/*): use `yarn prettier` with `prettier-plugin-tailwindcss` + +* fix(/lib/components/*.spec): resolve test errors caused by migrating theme + +* feat(/lib/components/*): add `theme={}` attribute to components that need it + +### Features + +* **/lib/components/flowbite:** remove `usePreferences` ([#582](https://github.com/themesberg/flowbite-react/issues/582)) ([77cbc27](https://github.com/themesberg/flowbite-react/commit/77cbc27aa5d42bcff1bdd54c3b5c35e37ff039a0)), closes [#581](https://github.com/themesberg/flowbite-react/issues/581) [#565](https://github.com/themesberg/flowbite-react/issues/565) [#581](https://github.com/themesberg/flowbite-react/issues/581) [#565](https://github.com/themesberg/flowbite-react/issues/565) +* **/lib/components/timeline:** change `` to a `
` ([#603](https://github.com/themesberg/flowbite-react/issues/603)) ([720c8ef](https://github.com/themesberg/flowbite-react/commit/720c8ef6c707837372dddf33e9e4a73d42caea1e)), closes [#602](https://github.com/themesberg/flowbite-react/issues/602) +* **/lib/theme:** add Tailwind CSS colors to ``s ([#586](https://github.com/themesberg/flowbite-react/issues/586)) ([05bde49](https://github.com/themesberg/flowbite-react/commit/05bde49a7fe27e456b7e3da631424705beeaabb8)), closes [#473](https://github.com/themesberg/flowbite-react/issues/473) [#473](https://github.com/themesberg/flowbite-react/issues/473) [#473](https://github.com/themesberg/flowbite-react/issues/473) +* **/lib/theme:** add Tailwind CSS colors to ``s ([#617](https://github.com/themesberg/flowbite-react/issues/617)) ([f00628f](https://github.com/themesberg/flowbite-react/commit/f00628f95059f7e4e18bbe069ceb5573471dc36d)) +* **/lib/theme:** add Tailwind CSS colors to `