react-calendar-datetime 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![npm version](https://img.shields.io/npm/v/react-calendar-datetime.svg?style=flat-square)](https://www.npmjs.com/package/react-calendar-datetime)
2
+ [![react version](https://img.shields.io/badge/react-%5E18.0.0%20%7C%7C%20%5E19.0.0-61dafb?style=flat-square&logo=react)](https://react.dev/)
2
3
  [![npm downloads](https://img.shields.io/npm/dm/react-calendar-datetime.svg?style=flat-square)](https://www.npmjs.com/package/react-calendar-datetime)
3
4
  [![bundle size](https://img.shields.io/bundlephobia/minzip/react-calendar-datetime?style=flat-square)](https://bundlephobia.com/package/react-calendar-datetime)
4
5
  [![license](https://img.shields.io/npm/l/react-calendar-datetime.svg?style=flat-square)](https://github.com/kirilinsky/react-calendar-datetime/blob/main/LICENSE)
@@ -7,13 +8,16 @@
7
8
 
8
9
  ---
9
10
 
10
- 📅 Date and **time** picker, include presets and themes
11
+ 📅 Modern **Date** and **Time** picker with built-in presets and customizable themes.
12
+
13
+ [**Live Demo**](https://react-calendar-datetime.vercel.app/?story=components--calendar--base)
11
14
 
12
- [Demo](https://react-calendar-datetime.vercel.app/?story=components--calendar--base)
13
15
  [![N|Solid](https://i.ibb.co/d0G4xXF7/image.png)](https://react-calendar-datetime.vercel.app/?story=components--calendar--base)
14
16
 
15
- <img src="https://i.ibb.co/rGGX6sSj/image.png" alt="time" width="45%"/>
16
- <img src="https://i.ibb.co/DPZWq2Tn/image.png" width="45%" alt="dark" >
17
+ <img src="https://i.ibb.co/rGGX6sSj/image.png" alt="Time Picker" width="45%"/>
18
+ # Time picker
19
+ <img src="https://i.ibb.co/DPZWq2Tn/image.png" alt="Dark Theme" width="45%" >
20
+ # Themes
17
21
 
18
22
  ---
19
23
 
@@ -81,7 +85,7 @@ Basic commands for development and building:
81
85
 
82
86
  - **Weekday Headers:** Added localized day-of-week labels (Mon, Tue, etc.) above the date grid.
83
87
  - **Built-in Themes:** Introduced 5 color palettes using CSS variables.
84
- - **Flexible Layout:** New `showMonths` prop allows the date grid to adapt and fill the container width.
88
+ - **Flexible Layout:** New `months` prop allows the date grid to adapt and fill the container width.
85
89
  - **Expanded Locales:** Added `es` (Spanish) and `sr` (Serbian) support.
86
90
  - **Smart Presets:** Labels like "yesterday" or "month ago" are now fully localized via a dedicated i18n engine.
87
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-calendar-datetime",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "React date and time calendar component (with presets and locale)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -33,8 +33,8 @@
33
33
  "clean": "rm -rf dist"
34
34
  },
35
35
  "peerDependencies": {
36
- "react": "^19.2.4",
37
- "react-dom": "^19.2.4"
36
+ "react": "^18.0.0 || ^19.0.0",
37
+ "react-dom": "^18.0.0 || ^19.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@ladle/react": "^5.1.1",