@ilamy/calendar 0.1.9 → 0.1.10

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.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A powerful, full-featured React calendar component library built with TypeScript, Tailwind CSS, and modern React patterns. Features multiple calendar views, drag-and-drop support, recurring events, and comprehensive internationalization.
4
4
 
5
+ <img width="1648" height="883" alt="Screenshot 2025-07-21 at 4 26 22 PM" src="https://github.com/user-attachments/assets/2fedaec6-bafc-4a29-b045-8b0c5117b486" />
6
+
5
7
  ## Features
6
8
 
7
9
  - 🗓️ **Multiple Views**: Month, Week, Day, and Year views
package/dist/index.d.ts CHANGED
@@ -345,5 +345,29 @@ interface CalendarProps {
345
345
  headerComponent?: React2.ReactNode;
346
346
  }
347
347
  declare const IlamyCalendar: React2.FC<CalendarProps>;
348
- declare const usePublicCalendarContext: () => {};
349
- export { usePublicCalendarContext as useIlamyCalendarContext, WeekDays, IlamyCalendar, IlamyCalendarEventRecurrence as EventRecurrence, IlamyCalendarEvent as CalendarEvent };
348
+ /**
349
+ * Simplified calendar context type for external use
350
+ * Contains only the most commonly used calendar operations
351
+ */
352
+ type UseIlamyCalendarContextReturn = {
353
+ readonly currentDate: dayjs.Dayjs
354
+ readonly view: "month" | "week" | "day" | "year"
355
+ readonly events: CalendarEvent[]
356
+ readonly isEventFormOpen: boolean
357
+ readonly selectedEvent: CalendarEvent | null
358
+ readonly selectedDate: dayjs.Dayjs | null
359
+ readonly firstDayOfWeek: number
360
+ readonly setCurrentDate: (date: dayjs.Dayjs) => void
361
+ readonly selectDate: (date: dayjs.Dayjs) => void
362
+ readonly setView: (view: "month" | "week" | "day" | "year") => void
363
+ readonly nextPeriod: () => void
364
+ readonly prevPeriod: () => void
365
+ readonly today: () => void
366
+ readonly addEvent: (event: CalendarEvent) => void
367
+ readonly updateEvent: (eventId: string | number, event: Partial<CalendarEvent>) => void
368
+ readonly deleteEvent: (eventId: string | number) => void
369
+ readonly openEventForm: (date?: dayjs.Dayjs) => void
370
+ readonly closeEventForm: () => void
371
+ };
372
+ declare const useIlamyCalendarContext: () => UseIlamyCalendarContextReturn;
373
+ export { useIlamyCalendarContext, WeekDays, UseIlamyCalendarContextReturn, IlamyCalendar, IlamyCalendarEventRecurrence as EventRecurrence, IlamyCalendarEvent as CalendarEvent };