@ilamy/calendar 0.1.0 → 0.1.2
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 +8 -2
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,10 +39,16 @@ function App() {
|
|
|
39
39
|
return (
|
|
40
40
|
<div className="h-screen p-4">
|
|
41
41
|
<IlamyCalendar
|
|
42
|
-
|
|
42
|
+
initialEvents=[
|
|
43
|
+
{
|
|
44
|
+
title: 'My Event',
|
|
45
|
+
start: '2025-01-20T19:57:55.476Z',
|
|
46
|
+
end: '2025-01-25T19:57:55.476Z'
|
|
47
|
+
}
|
|
48
|
+
]
|
|
43
49
|
dayMaxEvents={3}
|
|
44
50
|
onEventClick={(event) => console.log('Event clicked:', event)}
|
|
45
|
-
|
|
51
|
+
onCellClick={(start, end) => console.log('Date clicked:', start, end)}
|
|
46
52
|
/>
|
|
47
53
|
</div>
|
|
48
54
|
)
|
package/dist/index.cjs
CHANGED
|
@@ -694,15 +694,15 @@ var AllEventDialog = ({ ref }) => {
|
|
|
694
694
|
|
|
695
695
|
// src/lib/dayjs-config.ts
|
|
696
696
|
var import_dayjs3 = __toESM(require("dayjs"));
|
|
697
|
-
var import_weekday = __toESM(require("dayjs/plugin/weekday"));
|
|
698
|
-
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
|
699
|
-
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter"));
|
|
700
|
-
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore"));
|
|
701
|
-
var import_isBetween = __toESM(require("dayjs/plugin/isBetween"));
|
|
702
|
-
var import_minMax = __toESM(require("dayjs/plugin/minMax"));
|
|
703
|
-
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
|
704
|
-
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
|
705
|
-
var import_localeData = __toESM(require("dayjs/plugin/localeData"));
|
|
697
|
+
var import_weekday = __toESM(require("dayjs/plugin/weekday.js"));
|
|
698
|
+
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear.js"));
|
|
699
|
+
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
700
|
+
var import_isSameOrBefore = __toESM(require("dayjs/plugin/isSameOrBefore.js"));
|
|
701
|
+
var import_isBetween = __toESM(require("dayjs/plugin/isBetween.js"));
|
|
702
|
+
var import_minMax = __toESM(require("dayjs/plugin/minMax.js"));
|
|
703
|
+
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
|
704
|
+
var import_utc = __toESM(require("dayjs/plugin/utc.js"));
|
|
705
|
+
var import_localeData = __toESM(require("dayjs/plugin/localeData.js"));
|
|
706
706
|
var import_af = require("dayjs/locale/af");
|
|
707
707
|
var import_am = require("dayjs/locale/am");
|
|
708
708
|
var import_ar_dz = require("dayjs/locale/ar-dz");
|
package/dist/index.d.cts
CHANGED
|
@@ -25,6 +25,12 @@ interface CalendarEvent {
|
|
|
25
25
|
parentEventId?: string;
|
|
26
26
|
isException?: boolean;
|
|
27
27
|
}
|
|
28
|
+
interface ProcessedCalendarEvent extends CalendarEvent {
|
|
29
|
+
left: number;
|
|
30
|
+
width: number;
|
|
31
|
+
top: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}
|
|
28
34
|
type WeekDays = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
29
35
|
import dayjs2 from "dayjs";
|
|
30
36
|
import "dayjs/locale/af";
|
|
@@ -187,4 +193,4 @@ interface CalendarProps {
|
|
|
187
193
|
}
|
|
188
194
|
declare const IlamyCalendar: React2.FC<CalendarProps>;
|
|
189
195
|
declare const usePublicCalendarContext: () => {};
|
|
190
|
-
export { usePublicCalendarContext as useIlamyCalendarContext, IlamyCalendar };
|
|
196
|
+
export { usePublicCalendarContext as useIlamyCalendarContext, WeekDays, ProcessedCalendarEvent, IlamyCalendar, CalendarEvent };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ interface CalendarEvent {
|
|
|
25
25
|
parentEventId?: string;
|
|
26
26
|
isException?: boolean;
|
|
27
27
|
}
|
|
28
|
+
interface ProcessedCalendarEvent extends CalendarEvent {
|
|
29
|
+
left: number;
|
|
30
|
+
width: number;
|
|
31
|
+
top: number;
|
|
32
|
+
height: number;
|
|
33
|
+
}
|
|
28
34
|
type WeekDays = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
29
35
|
import dayjs2 from "dayjs";
|
|
30
36
|
import "dayjs/locale/af";
|
|
@@ -187,4 +193,4 @@ interface CalendarProps {
|
|
|
187
193
|
}
|
|
188
194
|
declare const IlamyCalendar: React2.FC<CalendarProps>;
|
|
189
195
|
declare const usePublicCalendarContext: () => {};
|
|
190
|
-
export { usePublicCalendarContext as useIlamyCalendarContext, IlamyCalendar };
|
|
196
|
+
export { usePublicCalendarContext as useIlamyCalendarContext, WeekDays, ProcessedCalendarEvent, IlamyCalendar, CalendarEvent };
|
package/dist/index.js
CHANGED
|
@@ -649,15 +649,15 @@ var AllEventDialog = ({ ref }) => {
|
|
|
649
649
|
|
|
650
650
|
// src/lib/dayjs-config.ts
|
|
651
651
|
import dayjs3 from "dayjs";
|
|
652
|
-
import weekday from "dayjs/plugin/weekday";
|
|
653
|
-
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
654
|
-
import isSameOrAfter from "dayjs/plugin/isSameOrAfter";
|
|
655
|
-
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
656
|
-
import isBetween from "dayjs/plugin/isBetween";
|
|
657
|
-
import minMax from "dayjs/plugin/minMax";
|
|
658
|
-
import timezone from "dayjs/plugin/timezone";
|
|
659
|
-
import utc from "dayjs/plugin/utc";
|
|
660
|
-
import localeData from "dayjs/plugin/localeData";
|
|
652
|
+
import weekday from "dayjs/plugin/weekday.js";
|
|
653
|
+
import weekOfYear from "dayjs/plugin/weekOfYear.js";
|
|
654
|
+
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
|
655
|
+
import isSameOrBefore from "dayjs/plugin/isSameOrBefore.js";
|
|
656
|
+
import isBetween from "dayjs/plugin/isBetween.js";
|
|
657
|
+
import minMax from "dayjs/plugin/minMax.js";
|
|
658
|
+
import timezone from "dayjs/plugin/timezone.js";
|
|
659
|
+
import utc from "dayjs/plugin/utc.js";
|
|
660
|
+
import localeData from "dayjs/plugin/localeData.js";
|
|
661
661
|
import"dayjs/locale/af";
|
|
662
662
|
import"dayjs/locale/am";
|
|
663
663
|
import"dayjs/locale/ar-dz";
|