Skip to content

Releases: themesberg/flowbite-react

flowbite-react@0.10.2

01 Oct 06:46
bed3c41
Compare
Choose a tag to compare

Patch Changes

  • #1190 25bb353 Thanks @ddiasfront! - ### Datepicker Component Updates

    The Datepicker has been enhanced with several improvements:

    1. Controlled Inputs: Supports controlled inputs via value and defaultValue props, enabling programmatic date updates without manual clicks.
    2. State Management: Optimized internal state management using useMemo and useEffect.
    3. Documentation: Added sections in documentation for controlled usage and handling null values.
    4. Test Cases: Comprehensive unit tests added for date handling.
    5. Storybook: Improved stories, showcasing different states (controlled/uncontrolled).

    Files Updated:

    • apps/web/content/docs/components/datepicker.mdx: Added controlled usage section.
    • Datepicker.spec.tsx: Added unit tests.
    • Datepicker.stories.tsx: Enhanced story variants.
    • Datepicker.tsx: Expanded DatepickerProps.
    • DatepickerContext.tsx: Adjusted selectedDate type.
    • Decades.tsx, Months.tsx, Years.tsx: Updated logic to check for selectedDate.
  • #1484 38913e5 Thanks @KRTirtho! - fix: autocomplete for string enums with dynamic value not working

What's Changed

New Contributors

Full Changelog: https://github.com/themesberg/flowbite-react/compare/create-flowbite-react@1.0.8...flowbite-react@0.10.2

flowbite-react@0.10.1

21 Jun 15:12
1ddf19d
Compare
Choose a tag to compare

Patch Changes

create-flowbite-react@1.0.8

21 Jun 15:12
1ddf19d
Compare
Choose a tag to compare

Patch Changes

flowbite-react@0.10.0

20 Jun 13:10
ba3463d
Compare
Choose a tag to compare

Minor Changes

Patch Changes

What's Changed

New Contributors

Full Changelog: https://github.com/themesberg/flowbite-react/compare/flowbite-react@0.9.0...flowbite-react@0.10.0

create-flowbite-react@1.0.7

20 Jun 13:10
ba3463d
Compare
Choose a tag to compare

Patch Changes

flowbite-react@0.9.0

16 Apr 23:16
8ae8b16
Compare
Choose a tag to compare

Introducing Drawer and Mega menu

Summary

Say hello to Drawer and Mega menu!

These long-awaited components from the vanilla Flowbite library have finally made their way to Flowbite React. Everything you need to get started - including full theme support, and the full set of examples to match the main Flowbite library - are ready at your fingertips.

Special thank you to @dhavalveera for your work on Drawer!

Changes

  • added Drawer component
  • added Mega menu component

flowbite-react@0.8.0

04 Apr 12:33
a3d282b
Compare
Choose a tag to compare

Minor Changes

  • #1344 bf1bdb0 Thanks @SutuSebastian! - Rework build process using rollup and tsc

    Summary

    In order to bring more performance to the build process of flowbite-react package, we have to consider transpiling the files using other tools rather than tsc, which is very slow.

    After evaluating various tools including tsup, tshy, and bun build, we chose rollup with the esbuild plugin for transpiling due to its performance and flexibility. We continue to use tsc solely for generating *.d.ts declaration files.

    Changes

    • added rollup + esbuild for transpiling files
      • all files in the cjs directory now have .cjs extension
      • all files in the esm directory now have .mjs extension
      • declaration file types (*.d.ts) have been moved from dist/esm to dist/types
    • changed the build output dir from lib to dist
    • created a facade layer for easier management of the content path as well as the plugin
    • fixed turbo repo dependency tree configs in order for apps/web to properly pipe and require the build output of packages/ui in certain script steps such as build and dev

    Breaking changes

    tailwind.config.js content path:

    old: "node_modules/flowbite-react/lib/esm/**/*.js"

    new: "node_modules/flowbite-react/dist/esm/**/*.mjs" - (flowbite.content() returns it)

    Before

    /** @type {import('tailwindcss').Config} */
    module.exports = {
      content: [
        // ...
        "node_modules/flowbite-react/lib/esm/**/*.js",
      ],
      plugins: [
        // ...
        require("flowbite/plugin"),
      ],
    };

    After

    const flowbite = require("flowbite-react/tailwind");
    
    /** @type {import('tailwindcss').Config} */
    module.exports = {
      content: [
        // ...
        flowbite.content(),
      ],
      plugins: [
        // ...
        flowbite.plugin(),
      ],
    };

    Addresses Issues

    #1326, #1329, #1343

flowbite-react@0.7.8

01 Apr 18:54
65e7c89
Compare
Choose a tag to compare

Patch Changes

flowbite-react@0.7.7

01 Apr 18:31
19da9c3
Compare
Choose a tag to compare

Patch Changes

create-flowbite-react@1.0.6

01 Apr 18:31
19da9c3
Compare
Choose a tag to compare

Patch Changes