Releases: themesberg/flowbite-react
flowbite-react@0.10.2
Patch Changes
-
#1190
25bb353
Thanks @ddiasfront! - ### Datepicker Component UpdatesThe Datepicker has been enhanced with several improvements:
- Controlled Inputs: Supports controlled inputs via
value
anddefaultValue
props, enabling programmatic date updates without manual clicks. - State Management: Optimized internal state management using
useMemo
anduseEffect
. - Documentation: Added sections in documentation for controlled usage and handling
null
values. - Test Cases: Comprehensive unit tests added for date handling.
- 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
: ExpandedDatepickerProps
.DatepickerContext.tsx
: AdjustedselectedDate
type.Decades.tsx
,Months.tsx
,Years.tsx
: Updated logic to check forselectedDate
.
- Controlled Inputs: Supports controlled inputs via
-
#1484
38913e5
Thanks @KRTirtho! - fix: autocomplete for string enums with dynamic value not working
What's Changed
- revamp homepage and docs styles by @SutuSebastian in #1442
- Fix/datepicker decade picker unclickable by @Maraket in #1452
- Web/fixes by @SutuSebastian in #1461
- fix(datepicker) duplicate month display #1456 by @khareembld in #1457
- SEO: a11y + open external links in new tabs by @SutuSebastian in #1463
- fix: not allowing to select other year by @khareemnurulla in #1465
- chore: up packages by @SutuSebastian in #1464
- chore: Make label prop optional in Dropdown component by @raky291 in #1468
- Docs: not found page by @SutuSebastian in #1476
- fix: autocomplete for string enums with dynamic value not working by @KRTirtho in #1484
- Feat/date value datepicker by @ddiasfront in #1190
New Contributors
- @Maraket made their first contribution in #1452
- @khareembld made their first contribution in #1457
- @khareemnurulla made their first contribution in #1465
- @raky291 made their first contribution in #1468
- @KRTirtho made their first contribution in #1484
- @ddiasfront made their first contribution in #1190
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
Patch Changes
- #1433
a5d008e
Thanks @SutuSebastian! - addAdonisJS
integration guide
create-flowbite-react@1.0.8
Patch Changes
- #1433
a5d008e
Thanks @SutuSebastian! - addAdonisJS
integration guide
flowbite-react@0.10.0
Minor Changes
- #1413
26401bc
Thanks @dhavalveera! - feat(components): add "Clipboard"
Patch Changes
-
#1405
c8dba76
Thanks @dhavalveera! - Renamed theTabs
attribute fromstyle
tovariant
to allow the use of thestyle
attribute, which was previously blocked. -
#1430
83a055a
Thanks @SutuSebastian! - fix(ui): timeline - content - separateTimelineContent
base styles from horizontal/vertical styles -
#1428
b963b2c
Thanks @SutuSebastian! - fix(ui): Toggle Switch - styles- RTL
- broken switch when label too long
- bring back animations
-
#1371
92cec6f
Thanks @SutuSebastian! - Mega Menu - export all entities -
#1423
4350ffb
Thanks @SutuSebastian! - update packages -
#1346
92f41fe
Thanks @dhavalveera! - feat: addHR
component
What's Changed
- docs(popover) - fix svg path JSX format by @SutuSebastian in #1372
- chore: export all entities by @SutuSebastian in #1371
- docs(drawer) - examples cleanup by @SutuSebastian in #1374
- Exclude analytics from
examples
page by @SutuSebastian in #1376 - Docs : Toggle Switch #1321 - Issue has been fixed by @akashMasih in #1397
- fix(docs): single quote to double by @SutuSebastian in #1416
- Core: update packages + fixes by @SutuSebastian in #1423
- fix: fixed the Tabs attribute from style to variant by @dhavalveera in #1405
- feat(components): add Clipboard by @dhavalveera in #1413
- feat(ui) Add advanced list story by @paghar in #1361
- Add suppressHydrationWarning for nextJS by @sylwit in #1335
- Fix React warning in ButtonGroup by @chunkerchunker in #1323
- Add an override to useTypeAhead behavior from @floating-ui/react allowing use in DropDown.Header by @dragonlipz in #1394
- feat: add
HR
component by @dhavalveera in #1346 - fix(ui): Toggle Switch - styles by @SutuSebastian in #1428
- fix(ui): timeline - content - separate base styles from horizontal/vertical by @SutuSebastian in #1430
New Contributors
- @akashMasih made their first contribution in #1397
- @chunkerchunker made their first contribution in #1323
- @dragonlipz made their first contribution in #1394
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
Patch Changes
- #1423
4350ffb
Thanks @SutuSebastian! - update packages
flowbite-react@0.9.0
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
Minor Changes
-
#1344
bf1bdb0
Thanks @SutuSebastian! - Rework build process usingrollup
andtsc
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 thantsc
, which is very slow.After evaluating various tools including
tsup
,tshy
, andbun build
, we choserollup
with theesbuild
plugin for transpiling due to its performance and flexibility. We continue to usetsc
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 fromdist/esm
todist/types
- all files in the
- changed the build output dir from
lib
todist
- created a facade layer for easier management of the
content
path as well as theplugin
- fixed turbo repo dependency tree configs in order for
apps/web
to properly pipe and require the build output ofpackages/ui
in certain script steps such asbuild
anddev
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
- added
flowbite-react@0.7.8
Patch Changes
- #1339
8430004
Thanks @SutuSebastian! - fix package.json types path
flowbite-react@0.7.7
Patch Changes
- #1336
b6ebb31
Thanks @SutuSebastian! - fix build step, export types and improve DX
create-flowbite-react@1.0.6
Patch Changes
- #1336
b6ebb31
Thanks @SutuSebastian! - fixclean-package
flow