Skip to content

Commit bed3c41

Browse files
Version Packages (#1486)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 25bb353 commit bed3c41

File tree

4 files changed

+26
-28
lines changed

4 files changed

+26
-28
lines changed

.changeset/old-jobs-decide.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

.changeset/plenty-lemons-bow.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/ui/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## 0.10.2
4+
5+
### Patch Changes
6+
7+
- [#1190](https://github.com/themesberg/flowbite-react/pull/1190) [`25bb353`](https://github.com/themesberg/flowbite-react/commit/25bb353685c595c2b05f1a355a381c28fd57526a) Thanks [@ddiasfront](https://github.com/ddiasfront)! - ### Datepicker Component Updates
8+
9+
The Datepicker has been enhanced with several improvements:
10+
11+
1. **Controlled Inputs**: Supports controlled inputs via `value` and `defaultValue` props, enabling programmatic date updates without manual clicks.
12+
2. **State Management**: Optimized internal state management using `useMemo` and `useEffect`.
13+
3. **Documentation**: Added sections in documentation for controlled usage and handling `null` values.
14+
4. **Test Cases**: Comprehensive unit tests added for date handling.
15+
5. **Storybook**: Improved stories, showcasing different states (controlled/uncontrolled).
16+
17+
### Files Updated:
18+
19+
- `apps/web/content/docs/components/datepicker.mdx`: Added controlled usage section.
20+
- `Datepicker.spec.tsx`: Added unit tests.
21+
- `Datepicker.stories.tsx`: Enhanced story variants.
22+
- `Datepicker.tsx`: Expanded `DatepickerProps`.
23+
- `DatepickerContext.tsx`: Adjusted `selectedDate` type.
24+
- `Decades.tsx`, `Months.tsx`, `Years.tsx`: Updated logic to check for `selectedDate`.
25+
26+
- [#1484](https://github.com/themesberg/flowbite-react/pull/1484) [`38913e5`](https://github.com/themesberg/flowbite-react/commit/38913e51536ecf1c8e924a6de571880cb91d2ea0) Thanks [@KRTirtho](https://github.com/KRTirtho)! - fix: autocomplete for string enums with dynamic value not working
27+
328
## 0.10.1
429

530
### Patch Changes

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-react",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "Official React components built for Flowbite and Tailwind CSS",
55
"keywords": [
66
"design-system",

0 commit comments

Comments
 (0)