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/[email protected]@0.10.2