Skip to content

Releases: themesberg/flowbite-react

[email protected]

22 Jul 12:04
29496c4

Choose a tag to compare

Minor Changes

  • #1566 7b79b18 Thanks @SutuSebastian! - # Breaking changes

    • removed flowbite-react patch CLI command

    Changes

    • flowbite-react/.gitignore, flowbite-react/config.json self manages, regenerates and repairs
    • new generated file init.(jsx|tsx) in .flowbite-react/ directory that syncs up values from config.json that also are needed in React app runtime (similar to how a React context works)
      • synced on CLI commands: init, build, dev, register
    • If you have custom configuration in .flowbite-react/config.json (different dark/prefix/version values), 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 custom dark, prefix, or version values are detected in the configuration file
    • expose flowbite-react/store import path
    • check if flowbite-react is installed when npx flowbite-react@latest init
      • bump the version to latest if below 0.11.x
    • remove redundant { flag: "w" } in fs.writeFile
    • update dark-mode.md and prefix.md documentation 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

    1. Remove flowbite-react patch from your package.json

      {
        "scripts": {
      -   "postinstall": "flowbite-react patch"
        }
      }
    2. 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 (different dark/prefix/version values).

[email protected]

12 Jul 14:00
213be8e

Choose a tag to compare

Patch Changes

[email protected]

07 Jun 12:49
557d233

Choose a tag to compare

Patch Changes

What's Changed

New Contributors

Full Changelog: https://github.com/themesberg/flowbite-react/compare/[email protected]@0.11.8

[email protected]

02 Apr 09:15
2dcc282

Choose a tag to compare

Patch Changes

[email protected]

02 Apr 07:57
ffc962b

Choose a tag to compare

Patch Changes

[email protected]

26 Mar 17:23
a2038a2

Choose a tag to compare

Patch Changes

[email protected]

26 Mar 08:45
eddce06

Choose a tag to compare

Patch Changes

[email protected]

26 Mar 10:12
8a8fa60

Choose a tag to compare

Patch Changes

[email protected]

25 Mar 17:21
c2b8795

Choose a tag to compare

Patch Changes

  • #1543 868e485 Thanks @SutuSebastian! - add new migrate CLI 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]

25 Mar 08:49
0e53a94

Choose a tag to compare

Patch Changes

  • #1541 af49b10 Thanks @SutuSebastian! - fix(ui~cli): path normalzation for windows support (setup plugins paths)

  • #1539 6caecce Thanks @SutuSebastian! - refactor(Alert): onDismiss prop

    • Changed the type of onDismiss prop in Alert component from boolean to a function type
    • Removed onDismiss default values from various Alert stories to align with the updated prop type