@ilamy/calendar 0.1.6 → 0.1.8
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/dist/index.d.ts +168 -19
- package/dist/index.js +35 -11
- package/package.json +1 -5
- package/dist/index.cjs +0 -3570
- package/dist/index.d.cts +0 -200
package/dist/index.d.cts
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import React2 from "react";
|
|
2
|
-
import dayjs from "dayjs";
|
|
3
|
-
import "dayjs/locale/af";
|
|
4
|
-
import "dayjs/locale/am";
|
|
5
|
-
import "dayjs/locale/ar-dz";
|
|
6
|
-
import "dayjs/locale/ar-iq";
|
|
7
|
-
import "dayjs/locale/ar-kw";
|
|
8
|
-
import "dayjs/locale/ar-ly";
|
|
9
|
-
import "dayjs/locale/ar-ma";
|
|
10
|
-
import "dayjs/locale/ar-sa";
|
|
11
|
-
import "dayjs/locale/ar-tn";
|
|
12
|
-
import "dayjs/locale/ar";
|
|
13
|
-
import "dayjs/locale/az";
|
|
14
|
-
import "dayjs/locale/be";
|
|
15
|
-
import "dayjs/locale/bg";
|
|
16
|
-
import "dayjs/locale/bi";
|
|
17
|
-
import "dayjs/locale/bm";
|
|
18
|
-
import "dayjs/locale/bn-bd";
|
|
19
|
-
import "dayjs/locale/bn";
|
|
20
|
-
import "dayjs/locale/bo";
|
|
21
|
-
import "dayjs/locale/br";
|
|
22
|
-
import "dayjs/locale/bs";
|
|
23
|
-
import "dayjs/locale/ca";
|
|
24
|
-
import "dayjs/locale/cs";
|
|
25
|
-
import "dayjs/locale/cv";
|
|
26
|
-
import "dayjs/locale/cy";
|
|
27
|
-
import "dayjs/locale/da";
|
|
28
|
-
import "dayjs/locale/de-at";
|
|
29
|
-
import "dayjs/locale/de-ch";
|
|
30
|
-
import "dayjs/locale/de";
|
|
31
|
-
import "dayjs/locale/dv";
|
|
32
|
-
import "dayjs/locale/el";
|
|
33
|
-
import "dayjs/locale/en-au";
|
|
34
|
-
import "dayjs/locale/en-ca";
|
|
35
|
-
import "dayjs/locale/en-gb";
|
|
36
|
-
import "dayjs/locale/en-ie";
|
|
37
|
-
import "dayjs/locale/en-il";
|
|
38
|
-
import "dayjs/locale/en-in";
|
|
39
|
-
import "dayjs/locale/en-nz";
|
|
40
|
-
import "dayjs/locale/en-sg";
|
|
41
|
-
import "dayjs/locale/en-tt";
|
|
42
|
-
import "dayjs/locale/en";
|
|
43
|
-
import "dayjs/locale/eo";
|
|
44
|
-
import "dayjs/locale/es-do";
|
|
45
|
-
import "dayjs/locale/es-mx";
|
|
46
|
-
import "dayjs/locale/es-pr";
|
|
47
|
-
import "dayjs/locale/es-us";
|
|
48
|
-
import "dayjs/locale/es";
|
|
49
|
-
import "dayjs/locale/et";
|
|
50
|
-
import "dayjs/locale/eu";
|
|
51
|
-
import "dayjs/locale/fa";
|
|
52
|
-
import "dayjs/locale/fi";
|
|
53
|
-
import "dayjs/locale/fo";
|
|
54
|
-
import "dayjs/locale/fr-ca";
|
|
55
|
-
import "dayjs/locale/fr-ch";
|
|
56
|
-
import "dayjs/locale/fr";
|
|
57
|
-
import "dayjs/locale/fy";
|
|
58
|
-
import "dayjs/locale/ga";
|
|
59
|
-
import "dayjs/locale/gd";
|
|
60
|
-
import "dayjs/locale/gl";
|
|
61
|
-
import "dayjs/locale/gom-latn";
|
|
62
|
-
import "dayjs/locale/gu";
|
|
63
|
-
import "dayjs/locale/he";
|
|
64
|
-
import "dayjs/locale/hi";
|
|
65
|
-
import "dayjs/locale/hr";
|
|
66
|
-
import "dayjs/locale/ht";
|
|
67
|
-
import "dayjs/locale/hu";
|
|
68
|
-
import "dayjs/locale/hy-am";
|
|
69
|
-
import "dayjs/locale/id";
|
|
70
|
-
import "dayjs/locale/is";
|
|
71
|
-
import "dayjs/locale/it-ch";
|
|
72
|
-
import "dayjs/locale/it";
|
|
73
|
-
import "dayjs/locale/ja";
|
|
74
|
-
import "dayjs/locale/jv";
|
|
75
|
-
import "dayjs/locale/ka";
|
|
76
|
-
import "dayjs/locale/kk";
|
|
77
|
-
import "dayjs/locale/km";
|
|
78
|
-
import "dayjs/locale/kn";
|
|
79
|
-
import "dayjs/locale/ko";
|
|
80
|
-
import "dayjs/locale/ku";
|
|
81
|
-
import "dayjs/locale/ky";
|
|
82
|
-
import "dayjs/locale/lb";
|
|
83
|
-
import "dayjs/locale/lo";
|
|
84
|
-
import "dayjs/locale/lt";
|
|
85
|
-
import "dayjs/locale/lv";
|
|
86
|
-
import "dayjs/locale/me";
|
|
87
|
-
import "dayjs/locale/mi";
|
|
88
|
-
import "dayjs/locale/mk";
|
|
89
|
-
import "dayjs/locale/ml";
|
|
90
|
-
import "dayjs/locale/mn";
|
|
91
|
-
import "dayjs/locale/mr";
|
|
92
|
-
import "dayjs/locale/ms-my";
|
|
93
|
-
import "dayjs/locale/ms";
|
|
94
|
-
import "dayjs/locale/mt";
|
|
95
|
-
import "dayjs/locale/my";
|
|
96
|
-
import "dayjs/locale/nb";
|
|
97
|
-
import "dayjs/locale/ne";
|
|
98
|
-
import "dayjs/locale/nl-be";
|
|
99
|
-
import "dayjs/locale/nl";
|
|
100
|
-
import "dayjs/locale/nn";
|
|
101
|
-
import "dayjs/locale/oc-lnc";
|
|
102
|
-
import "dayjs/locale/pa-in";
|
|
103
|
-
import "dayjs/locale/pl";
|
|
104
|
-
import "dayjs/locale/pt-br";
|
|
105
|
-
import "dayjs/locale/pt";
|
|
106
|
-
import "dayjs/locale/rn";
|
|
107
|
-
import "dayjs/locale/ro";
|
|
108
|
-
import "dayjs/locale/ru";
|
|
109
|
-
import "dayjs/locale/rw";
|
|
110
|
-
import "dayjs/locale/sd";
|
|
111
|
-
import "dayjs/locale/se";
|
|
112
|
-
import "dayjs/locale/si";
|
|
113
|
-
import "dayjs/locale/sk";
|
|
114
|
-
import "dayjs/locale/sl";
|
|
115
|
-
import "dayjs/locale/sq";
|
|
116
|
-
import "dayjs/locale/sr-cyrl";
|
|
117
|
-
import "dayjs/locale/sr";
|
|
118
|
-
import "dayjs/locale/ss";
|
|
119
|
-
import "dayjs/locale/sv-fi";
|
|
120
|
-
import "dayjs/locale/sv";
|
|
121
|
-
import "dayjs/locale/sw";
|
|
122
|
-
import "dayjs/locale/ta";
|
|
123
|
-
import "dayjs/locale/te";
|
|
124
|
-
import "dayjs/locale/tet";
|
|
125
|
-
import "dayjs/locale/tg";
|
|
126
|
-
import "dayjs/locale/th";
|
|
127
|
-
import "dayjs/locale/tk";
|
|
128
|
-
import "dayjs/locale/tl-ph";
|
|
129
|
-
import "dayjs/locale/tlh";
|
|
130
|
-
import "dayjs/locale/tr";
|
|
131
|
-
import "dayjs/locale/tzl";
|
|
132
|
-
import "dayjs/locale/tzm-latn";
|
|
133
|
-
import "dayjs/locale/tzm";
|
|
134
|
-
import "dayjs/locale/ug-cn";
|
|
135
|
-
import "dayjs/locale/uk";
|
|
136
|
-
import "dayjs/locale/ur";
|
|
137
|
-
import "dayjs/locale/uz-latn";
|
|
138
|
-
import "dayjs/locale/uz";
|
|
139
|
-
import "dayjs/locale/vi";
|
|
140
|
-
import "dayjs/locale/x-pseudo";
|
|
141
|
-
import "dayjs/locale/yo";
|
|
142
|
-
import "dayjs/locale/zh-cn";
|
|
143
|
-
import "dayjs/locale/zh-hk";
|
|
144
|
-
import "dayjs/locale/zh-tw";
|
|
145
|
-
import "dayjs/locale/zh";
|
|
146
|
-
interface CalendarEvent {
|
|
147
|
-
id: string;
|
|
148
|
-
title: string;
|
|
149
|
-
start: dayjs.Dayjs;
|
|
150
|
-
originalStart?: dayjs.Dayjs;
|
|
151
|
-
originalEnd?: dayjs.Dayjs;
|
|
152
|
-
end: dayjs.Dayjs;
|
|
153
|
-
color?: string;
|
|
154
|
-
backgroundColor?: string;
|
|
155
|
-
description?: string;
|
|
156
|
-
location?: string;
|
|
157
|
-
height?: number;
|
|
158
|
-
allDay?: boolean;
|
|
159
|
-
recurrence?: {
|
|
160
|
-
frequency: "daily" | "weekly" | "monthly" | "yearly"
|
|
161
|
-
interval: number
|
|
162
|
-
endDate?: dayjs.Dayjs
|
|
163
|
-
count?: number
|
|
164
|
-
daysOfWeek?: number[]
|
|
165
|
-
exceptions?: dayjs.Dayjs[]
|
|
166
|
-
};
|
|
167
|
-
isRecurring?: boolean;
|
|
168
|
-
parentEventId?: string;
|
|
169
|
-
isException?: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* Custom data associated with the event
|
|
172
|
-
*/
|
|
173
|
-
data?: Record<string, any>;
|
|
174
|
-
}
|
|
175
|
-
interface ProcessedCalendarEvent extends CalendarEvent {
|
|
176
|
-
left: number;
|
|
177
|
-
width: number;
|
|
178
|
-
top: number;
|
|
179
|
-
height: number;
|
|
180
|
-
}
|
|
181
|
-
type WeekDays = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
|
|
182
|
-
interface CalendarProps {
|
|
183
|
-
events?: CalendarEvent[];
|
|
184
|
-
firstDayOfWeek?: WeekDays;
|
|
185
|
-
renderEvent?: (event: CalendarEvent) => React2.ReactNode;
|
|
186
|
-
onEventClick?: (event: CalendarEvent) => void;
|
|
187
|
-
onCellClick?: (startDate: dayjs.Dayjs, endDate: dayjs.Dayjs) => void;
|
|
188
|
-
onViewChange?: (view: "month" | "week" | "day" | "year") => void;
|
|
189
|
-
locale?: string;
|
|
190
|
-
timezone?: string;
|
|
191
|
-
disableCellClick?: boolean;
|
|
192
|
-
disableEventClick?: boolean;
|
|
193
|
-
disableDragAndDrop?: boolean;
|
|
194
|
-
dayMaxEvents?: number;
|
|
195
|
-
stickyViewHeader?: boolean;
|
|
196
|
-
viewHeaderClassName?: string;
|
|
197
|
-
}
|
|
198
|
-
declare const IlamyCalendar: React2.FC<CalendarProps>;
|
|
199
|
-
declare const usePublicCalendarContext: () => {};
|
|
200
|
-
export { usePublicCalendarContext as useIlamyCalendarContext, WeekDays, ProcessedCalendarEvent, IlamyCalendar, CalendarEvent };
|