From 5e6720b9e77158f2e298d99fb71b4d0b40c5c34f Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Sun, 10 Aug 2025 09:01:00 +0200 Subject: [PATCH] chore: bump version to 1.1.0 and update documentation - Bump version from 1.0.5 to 1.1.0 - Add version 1.1.0 features to README - Link to USAGE_GUIDE.md for detailed documentation - Add locale and color scheme examples --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- package.json | 2 +- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b7e5bca..89428f8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,14 @@ A modern, flexible, and highly customizable calendar component library for React with TypeScript support. +## 🆕 Version 1.1.0 Features + +- 🌍 **International Locale Support**: Full internationalization with 50+ languages via date-fns +- 🎨 **Comprehensive Color Schemes**: Complete control over colors for every state (default, selecting, selected, range start/end/mid, active) and day type (weekday/weekend) +- 🎯 **Enhanced Weekend Support**: Distinct colors for weekends in all selection states + +📖 **[View the complete Usage Guide](./USAGE_GUIDE.md)** for detailed examples of the new features! + ## Features - 📅 **Multiple Views**: Year, Month, Week, and custom date ranges @@ -9,7 +17,8 @@ A modern, flexible, and highly customizable calendar component library for React - 🔍 **Interactive**: Date selection, range picking, and click handlers - 📱 **Responsive**: Works on all screen sizes - 🎯 **TypeScript**: Full type safety and IntelliSense support -- 🎨 **Themeable**: Customizable colors and styles +- 🌍 **i18n Support**: Locale-aware with date-fns locales +- 🎨 **Advanced Theming**: Comprehensive color customization system - 📦 **Lightweight**: Minimal dependencies ## Installation @@ -41,6 +50,39 @@ function App() { } ``` +### With Locale and Custom Colors (v1.1.0+) + +```tsx +import { Year } from 'react-calendario'; +import { fr } from 'date-fns/locale'; + +const colorScheme = [ + { + type: 'weekday', + state: 'default', + colors: { + header: { backgroundColor: '#2c3e50', color: '#ffffff' }, + content: { backgroundColor: '#ffffff', color: '#2c3e50' } + } + }, + { + type: 'weekend', + state: 'default', + colors: { + header: { backgroundColor: '#95a5a6', color: '#ffffff' }, + content: { backgroundColor: '#ecf0f1', color: '#34495e' } + } + } + // ... more states +]; + + +``` + ## Components ### Year diff --git a/package.json b/package.json index 3169159..5f27ea6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-calendario", - "version": "1.0.5", + "version": "1.1.0", "description": "A modern, flexible calendar component for React with TypeScript support", "type": "module", "main": "dist/index.umd.js",