From 88955f095e4838be4116449f112ce7b37b582429 Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Sun, 10 Aug 2025 09:11:33 +0200 Subject: [PATCH] fix: export ColorScheme and other new types - Export ColorScheme, ActiveColors, and related types - Export Locale type from date-fns for convenience - Fix TypeScript import errors in consuming projects --- package.json | 2 +- src/index.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5f27ea6..f25f6c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-calendario", - "version": "1.1.0", + "version": "1.1.1", "description": "A modern, flexible calendar component for React with TypeScript support", "type": "module", "main": "dist/index.umd.js", diff --git a/src/index.ts b/src/index.ts index 719e11b..e55af0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,8 +16,18 @@ export type { YearProps, MonthProps, WeekProps, - DayProps + DayProps, + ActiveColors, + ColorScheme, + ColorSchemeEntry, + ColorStyle, + StateColors, + DayState, + DayType } from './types/calendar'; +// Re-export Locale type from date-fns for convenience +export type { Locale } from 'date-fns'; + // Utilities (if needed by consumers) export { getDateVariations } from './utils/dateUtils'; \ No newline at end of file