Releases: themesberg/flowbite-react
[email protected]
Minor Changes
-
#1566
7b79b18Thanks @SutuSebastian! - # Breaking changes- removed
flowbite-react patchCLI command
Changes
flowbite-react/.gitignore,flowbite-react/config.jsonself manages, regenerates and repairs- new generated file
init.(jsx|tsx)in.flowbite-react/directory that syncs up values fromconfig.jsonthat also are needed in React app runtime (similar to how a React context works)- synced on CLI commands:
init,build,dev,register
- synced on CLI commands:
- If you have custom configuration in
.flowbite-react/config.json(differentdark/prefix/versionvalues), you must render<ThemeInit />at the root level of your app to sync runtime with node config values- notify users to include
<ThemeInit />at the root level if customdark,prefix, orversionvalues are detected in the configuration file
- notify users to include
- expose
flowbite-react/storeimport path - check if
flowbite-reactis installed whennpx flowbite-react@latest init- bump the version to latest if below
0.11.x
- bump the version to latest if below
- remove redundant
{ flag: "w" }infs.writeFile - update
dark-mode.mdandprefix.mddocumentation to reflect the<ThemeInit />changes - add Tailwind CSS version support in theme mode handling and fix dark theme toggle class in Tailwind CSS v4
Migration Guide
-
Remove
flowbite-react patchfrom yourpackage.json{ "scripts": { - "postinstall": "flowbite-react patch" } } -
Add
<ThemeInit />(import from.flowbite-react/init.(jsx|tsx)) at the root level of your app if you have custom configuration in.flowbite-react/config.json(differentdark/prefix/versionvalues).
- removed
[email protected]
[email protected]
Patch Changes
- #1579
d44648dThanks @SutuSebastian! - fix(Datepicker): switch hardcoded colorcyan->primary
What's Changed
- Improve table pagination by @jfacoustic in #1567
- fix(Datepicker): switch hardcoded color
cyan->primaryby @SutuSebastian in #1579
New Contributors
- @jfacoustic made their first contribution in #1567
Full Changelog: https://github.com/themesberg/flowbite-react/compare/[email protected]@0.11.8
[email protected]
Patch Changes
- #1556
f0724b9Thanks @SutuSebastian! - fix(ui~cli):patchcommand windows support
[email protected]
Patch Changes
-
#1552
bab6c75Thanks @bigbyte-stuart! - make drawer close button type button -
#1555
2f461eaThanks @SutuSebastian! - refactor(ui~convertUtilitiesToV4): dropjs-regexp-lookbehindin favor of more simpler regex for improved browser support
[email protected]
Patch Changes
- #1549
7327e55Thanks @SutuSebastian! - fix file watcher ignore directory logic leading to false positives
[email protected]
Patch Changes
c54183bThanks @SutuSebastian! - add orphanclassNames to the theme object
[email protected]
Patch Changes
- #1546
4e90ee8Thanks @SutuSebastian! - add Parcelserver-bunandserver-denotemplates
[email protected]
Patch Changes
-
#1543
868e485Thanks @SutuSebastian! - add newmigrateCLI command-
add new transformer from compound components to singular imports
import { Button } from "flowbite-react"; // from <Button.Group> <Button>tab 1</Button> <Button>tab 2</Button> <Button>tab 3</Button> </Button.Group> // to import { Button, ButtonGroup } from "flowbite-react"; <ButtonGroup> <Button>tab 1</Button> <Button>tab 2</Button> <Button>tab 3</Button> </ButtonGroup>
-
[email protected]
Patch Changes
-
#1541
af49b10Thanks @SutuSebastian! - fix(ui~cli): path normalzation for windows support (setup plugins paths) -
#1539
6caecceThanks @SutuSebastian! - refactor(Alert):onDismissprop- Changed the type of
onDismissprop in Alert component from boolean to a function type - Removed
onDismissdefault values from various Alert stories to align with the updated prop type
- Changed the type of