@cleartrip/ct-design-calendar 4.0.0 → 5.0.0

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.
Files changed (119) hide show
  1. package/dist/Arrow/LeftArrow.d.ts +3 -0
  2. package/dist/Arrow/LeftArrow.d.ts.map +1 -0
  3. package/dist/Arrow/RightArrow.d.ts +3 -0
  4. package/dist/Arrow/RightArrow.d.ts.map +1 -0
  5. package/dist/BaseCalendar.d.ts +4 -0
  6. package/dist/BaseCalendar.d.ts.map +1 -0
  7. package/dist/Calendar.d.ts +4 -0
  8. package/dist/Calendar.d.ts.map +1 -0
  9. package/dist/Calendar.native.d.ts +4 -0
  10. package/dist/Calendar.native.d.ts.map +1 -0
  11. package/dist/CalendarBody/LazyMonthList.d.ts +4 -0
  12. package/dist/CalendarBody/LazyMonthList.d.ts.map +1 -0
  13. package/dist/CalendarBody/PlaceholderMonth.d.ts +5 -0
  14. package/dist/CalendarBody/PlaceholderMonth.d.ts.map +1 -0
  15. package/dist/CalendarBody/index.d.ts +4 -0
  16. package/dist/CalendarBody/index.d.ts.map +1 -0
  17. package/dist/CalendarDayElements/CalendarDate.d.ts +4 -0
  18. package/dist/CalendarDayElements/CalendarDate.d.ts.map +1 -0
  19. package/dist/CalendarDayElements/CalendarDot.d.ts +4 -0
  20. package/dist/CalendarDayElements/CalendarDot.d.ts.map +1 -0
  21. package/dist/CalendarDayElements/CalendarDotWrapper.d.ts +5 -0
  22. package/dist/CalendarDayElements/CalendarDotWrapper.d.ts.map +1 -0
  23. package/dist/CalendarDayElements/CalendarRange.d.ts +4 -0
  24. package/dist/CalendarDayElements/CalendarRange.d.ts.map +1 -0
  25. package/dist/CalendarDayElements/index.d.ts +4 -0
  26. package/dist/CalendarDayElements/index.d.ts.map +1 -0
  27. package/dist/CalendarDayElements/useForceRerender.d.ts +5 -0
  28. package/dist/CalendarDayElements/useForceRerender.d.ts.map +1 -0
  29. package/dist/CalendarMonth/CalendarMonthBody.d.ts +4 -0
  30. package/dist/CalendarMonth/CalendarMonthBody.d.ts.map +1 -0
  31. package/dist/CalendarMonth/CalendarMonthFooter.d.ts +5 -0
  32. package/dist/CalendarMonth/CalendarMonthFooter.d.ts.map +1 -0
  33. package/dist/CalendarMonth/CalendarMonthHeader.d.ts +4 -0
  34. package/dist/CalendarMonth/CalendarMonthHeader.d.ts.map +1 -0
  35. package/dist/CalendarMonth/index.d.ts +12 -0
  36. package/dist/CalendarMonth/index.d.ts.map +1 -0
  37. package/dist/Caption/index.d.ts +4 -0
  38. package/dist/Caption/index.d.ts.map +1 -0
  39. package/dist/DayPicker.d.ts +62 -0
  40. package/dist/DayPicker.d.ts.map +1 -0
  41. package/dist/Footer/CheckinCheckout.d.ts +11 -0
  42. package/dist/Footer/CheckinCheckout.d.ts.map +1 -0
  43. package/dist/Footer/LongWeekend.d.ts +5 -0
  44. package/dist/Footer/LongWeekend.d.ts.map +1 -0
  45. package/dist/Footer/constants.d.ts +7 -0
  46. package/dist/Footer/constants.d.ts.map +1 -0
  47. package/dist/Footer/index.d.ts +14 -0
  48. package/dist/Footer/index.d.ts.map +1 -0
  49. package/dist/WeekDays.d.ts +3 -0
  50. package/dist/WeekDays.d.ts.map +1 -0
  51. package/dist/constants.d.ts +13 -0
  52. package/dist/constants.d.ts.map +1 -0
  53. package/dist/ct-design-calendar.browser.cjs.js +2 -0
  54. package/dist/ct-design-calendar.browser.cjs.js.map +1 -0
  55. package/dist/ct-design-calendar.browser.esm.js +2 -0
  56. package/dist/ct-design-calendar.browser.esm.js.map +1 -0
  57. package/dist/ct-design-calendar.cjs.js +67 -0
  58. package/dist/ct-design-calendar.cjs.js.map +1 -0
  59. package/dist/ct-design-calendar.esm.js +61 -0
  60. package/dist/ct-design-calendar.esm.js.map +1 -0
  61. package/dist/ct-design-calendar.umd.js +70 -0
  62. package/dist/ct-design-calendar.umd.js.map +1 -0
  63. package/dist/event/EventEmitter/index.d.ts +10 -0
  64. package/dist/event/EventEmitter/index.d.ts.map +1 -0
  65. package/dist/event/EventEmitter/type.d.ts +10 -0
  66. package/dist/event/EventEmitter/type.d.ts.map +1 -0
  67. package/dist/event/constants.d.ts +6 -0
  68. package/dist/event/constants.d.ts.map +1 -0
  69. package/dist/event/index.d.ts +8 -0
  70. package/dist/event/index.d.ts.map +1 -0
  71. package/dist/globalStyle.d.ts +2 -0
  72. package/dist/globalStyle.d.ts.map +1 -0
  73. package/dist/index.d.ts +4 -0
  74. package/dist/index.d.ts.map +1 -0
  75. package/dist/style.d.ts +2 -0
  76. package/dist/style.d.ts.map +1 -0
  77. package/dist/styles.d.ts +570 -0
  78. package/dist/styles.d.ts.map +1 -0
  79. package/dist/type.d.ts +58 -0
  80. package/dist/type.d.ts.map +1 -0
  81. package/dist/util.d.ts +22 -0
  82. package/dist/util.d.ts.map +1 -0
  83. package/package.json +32 -5
  84. package/src/Arrow/LeftArrow.tsx +13 -0
  85. package/src/Arrow/RightArrow.tsx +13 -0
  86. package/src/BaseCalendar.tsx +189 -0
  87. package/src/Calendar.native.tsx +99 -0
  88. package/src/Calendar.tsx +13 -0
  89. package/src/CalendarBody/LazyMonthList.tsx +45 -0
  90. package/src/CalendarBody/PlaceholderMonth.tsx +20 -0
  91. package/src/CalendarBody/index.tsx +159 -0
  92. package/src/CalendarDayElements/CalendarDate.tsx +34 -0
  93. package/src/CalendarDayElements/CalendarDot.tsx +11 -0
  94. package/src/CalendarDayElements/CalendarDotWrapper.tsx +17 -0
  95. package/src/CalendarDayElements/CalendarRange.tsx +54 -0
  96. package/src/CalendarDayElements/index.tsx +77 -0
  97. package/src/CalendarDayElements/useForceRerender.ts +14 -0
  98. package/src/CalendarMonth/CalendarMonthBody.tsx +39 -0
  99. package/src/CalendarMonth/CalendarMonthFooter.tsx +70 -0
  100. package/src/CalendarMonth/CalendarMonthHeader.tsx +15 -0
  101. package/src/CalendarMonth/index.tsx +43 -0
  102. package/src/Caption/index.tsx +39 -0
  103. package/src/DayPicker.tsx +324 -0
  104. package/src/Footer/CheckinCheckout.tsx +196 -0
  105. package/src/Footer/LongWeekend.tsx +98 -0
  106. package/src/Footer/constants.ts +7 -0
  107. package/src/Footer/index.tsx +84 -0
  108. package/src/WeekDays.tsx +20 -0
  109. package/src/constants.ts +54 -0
  110. package/src/event/EventEmitter/index.ts +34 -0
  111. package/src/event/EventEmitter/type.ts +10 -0
  112. package/src/event/constants.ts +5 -0
  113. package/src/event/index.tsx +21 -0
  114. package/src/globalStyle.ts +351 -0
  115. package/src/index.ts +3 -0
  116. package/src/style.ts +333 -0
  117. package/src/styles.ts +167 -0
  118. package/src/type.ts +66 -0
  119. package/src/util.ts +114 -0
@@ -0,0 +1,6 @@
1
+ export declare const PUB_SUB_IDS: {
2
+ FLAT_LIST_VIEWABLE_ITEM_CHANGED: string;
3
+ FLASH_LIST_VISIBLE_ITEMS: string;
4
+ MARKER_CLICKED: string;
5
+ };
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../packages/components/Calendar/src/event/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;CAIvB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import CustomEventEmitter from './EventEmitter';
2
+ import { ICustomEventListener } from './EventEmitter/type';
3
+ export declare const eventEmitter: CustomEventEmitter;
4
+ export declare function usePubEvent<T>(eventName: string): (data?: T) => void;
5
+ export declare function useSubEvent<T>(eventName: string, callback: ICustomEventListener<T>, options?: {
6
+ once?: boolean;
7
+ }): void;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/components/Calendar/src/event/index.tsx"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,YAAY,oBAA2B,CAAC;AAErD,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,CAIpE;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,QAOpH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=globalStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalStyle.d.ts","sourceRoot":"","sources":["../packages/components/Calendar/src/globalStyle.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export { default as Calendar } from './Calendar';
2
+ export type * from './type';
3
+ export * from './constants';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/Calendar/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,mBAAmB,QAAQ,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const rdpStyles: import("@emotion/react").SerializedStyles;
2
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/Calendar/src/style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,2CA0UrB,CAAC"}
@@ -0,0 +1,570 @@
1
+ import { Theme } from '@cleartrip/ct-design-theme';
2
+ export declare const staticDayNameStyles: import("packages/core/types/dist").NamedStyles<{
3
+ root: {
4
+ flexDirection: "row";
5
+ justifyContent: "space-between";
6
+ paddingVertical: 12;
7
+ paddingHorizontal: 16;
8
+ borderBottomWidth: 1;
9
+ borderBottomColor: string;
10
+ };
11
+ weekDay: {
12
+ fontSize: 48;
13
+ fontWeight: "600";
14
+ lineHeight: 56;
15
+ letterSpacing?: undefined;
16
+ textTransform?: undefined;
17
+ color: string;
18
+ } | {
19
+ fontSize: 40;
20
+ fontWeight: "600";
21
+ lineHeight: 48;
22
+ letterSpacing?: undefined;
23
+ textTransform?: undefined;
24
+ color: string;
25
+ } | {
26
+ fontSize: 32;
27
+ fontWeight: "600";
28
+ lineHeight: 40;
29
+ letterSpacing?: undefined;
30
+ textTransform?: undefined;
31
+ color: string;
32
+ } | {
33
+ fontSize: 24;
34
+ fontWeight: "600";
35
+ lineHeight: 32;
36
+ letterSpacing?: undefined;
37
+ textTransform?: undefined;
38
+ color: string;
39
+ } | {
40
+ fontSize: 20;
41
+ fontWeight: "600";
42
+ lineHeight: 28;
43
+ letterSpacing?: undefined;
44
+ textTransform?: undefined;
45
+ color: string;
46
+ } | {
47
+ fontSize: 16;
48
+ fontWeight: "600";
49
+ lineHeight: 24;
50
+ letterSpacing?: undefined;
51
+ textTransform?: undefined;
52
+ color: string;
53
+ } | {
54
+ fontSize: 14;
55
+ fontWeight: "600";
56
+ lineHeight: 20;
57
+ letterSpacing?: undefined;
58
+ textTransform?: undefined;
59
+ color: string;
60
+ } | {
61
+ fontSize: 16;
62
+ fontWeight: "500";
63
+ lineHeight: 24;
64
+ letterSpacing?: undefined;
65
+ textTransform?: undefined;
66
+ color: string;
67
+ } | {
68
+ fontSize: 14;
69
+ fontWeight: "500";
70
+ lineHeight: 20;
71
+ letterSpacing?: undefined;
72
+ textTransform?: undefined;
73
+ color: string;
74
+ } | {
75
+ fontSize: 12;
76
+ fontWeight: "500";
77
+ lineHeight: 16;
78
+ letterSpacing?: undefined;
79
+ textTransform?: undefined;
80
+ color: string;
81
+ } | {
82
+ fontSize: 12;
83
+ fontWeight: "600";
84
+ lineHeight: 16;
85
+ letterSpacing: 0.4;
86
+ textTransform: string;
87
+ color: string;
88
+ } | {
89
+ fontSize: 10;
90
+ fontWeight: "500";
91
+ lineHeight: 14;
92
+ letterSpacing?: undefined;
93
+ textTransform?: undefined;
94
+ color: string;
95
+ } | {
96
+ fontSize: 10;
97
+ fontWeight: "600";
98
+ lineHeight: 12;
99
+ letterSpacing: 0.4;
100
+ textTransform: string;
101
+ color: string;
102
+ } | {
103
+ fontSize: 16;
104
+ fontWeight: "400";
105
+ lineHeight: 22;
106
+ letterSpacing?: undefined;
107
+ textTransform?: undefined;
108
+ color: string;
109
+ } | {
110
+ fontSize: 14;
111
+ fontWeight: "400";
112
+ lineHeight: 20;
113
+ letterSpacing?: undefined;
114
+ textTransform?: undefined;
115
+ color: string;
116
+ } | {
117
+ fontSize: 12;
118
+ fontWeight: "400";
119
+ lineHeight: 16;
120
+ letterSpacing?: undefined;
121
+ textTransform?: undefined;
122
+ color: string;
123
+ } | {
124
+ fontSize: 10;
125
+ fontWeight: "400";
126
+ lineHeight: 14;
127
+ letterSpacing?: undefined;
128
+ textTransform?: undefined;
129
+ color: string;
130
+ } | {
131
+ fontSize: 12;
132
+ fontWeight: "600";
133
+ lineHeight: 16;
134
+ letterSpacing?: undefined;
135
+ textTransform?: undefined;
136
+ color: string;
137
+ } | {
138
+ fontSize: 10;
139
+ fontWeight: "600";
140
+ lineHeight: 12;
141
+ letterSpacing: 0.4;
142
+ textTransform?: undefined;
143
+ color: string;
144
+ };
145
+ weekEnd: {
146
+ fontSize: 48;
147
+ fontWeight: "600";
148
+ lineHeight: 56;
149
+ letterSpacing?: undefined;
150
+ textTransform?: undefined;
151
+ color: string;
152
+ } | {
153
+ fontSize: 40;
154
+ fontWeight: "600";
155
+ lineHeight: 48;
156
+ letterSpacing?: undefined;
157
+ textTransform?: undefined;
158
+ color: string;
159
+ } | {
160
+ fontSize: 32;
161
+ fontWeight: "600";
162
+ lineHeight: 40;
163
+ letterSpacing?: undefined;
164
+ textTransform?: undefined;
165
+ color: string;
166
+ } | {
167
+ fontSize: 24;
168
+ fontWeight: "600";
169
+ lineHeight: 32;
170
+ letterSpacing?: undefined;
171
+ textTransform?: undefined;
172
+ color: string;
173
+ } | {
174
+ fontSize: 20;
175
+ fontWeight: "600";
176
+ lineHeight: 28;
177
+ letterSpacing?: undefined;
178
+ textTransform?: undefined;
179
+ color: string;
180
+ } | {
181
+ fontSize: 16;
182
+ fontWeight: "600";
183
+ lineHeight: 24;
184
+ letterSpacing?: undefined;
185
+ textTransform?: undefined;
186
+ color: string;
187
+ } | {
188
+ fontSize: 14;
189
+ fontWeight: "600";
190
+ lineHeight: 20;
191
+ letterSpacing?: undefined;
192
+ textTransform?: undefined;
193
+ color: string;
194
+ } | {
195
+ fontSize: 16;
196
+ fontWeight: "500";
197
+ lineHeight: 24;
198
+ letterSpacing?: undefined;
199
+ textTransform?: undefined;
200
+ color: string;
201
+ } | {
202
+ fontSize: 14;
203
+ fontWeight: "500";
204
+ lineHeight: 20;
205
+ letterSpacing?: undefined;
206
+ textTransform?: undefined;
207
+ color: string;
208
+ } | {
209
+ fontSize: 12;
210
+ fontWeight: "500";
211
+ lineHeight: 16;
212
+ letterSpacing?: undefined;
213
+ textTransform?: undefined;
214
+ color: string;
215
+ } | {
216
+ fontSize: 12;
217
+ fontWeight: "600";
218
+ lineHeight: 16;
219
+ letterSpacing: 0.4;
220
+ textTransform: string;
221
+ color: string;
222
+ } | {
223
+ fontSize: 10;
224
+ fontWeight: "500";
225
+ lineHeight: 14;
226
+ letterSpacing?: undefined;
227
+ textTransform?: undefined;
228
+ color: string;
229
+ } | {
230
+ fontSize: 10;
231
+ fontWeight: "600";
232
+ lineHeight: 12;
233
+ letterSpacing: 0.4;
234
+ textTransform: string;
235
+ color: string;
236
+ } | {
237
+ fontSize: 16;
238
+ fontWeight: "400";
239
+ lineHeight: 22;
240
+ letterSpacing?: undefined;
241
+ textTransform?: undefined;
242
+ color: string;
243
+ } | {
244
+ fontSize: 14;
245
+ fontWeight: "400";
246
+ lineHeight: 20;
247
+ letterSpacing?: undefined;
248
+ textTransform?: undefined;
249
+ color: string;
250
+ } | {
251
+ fontSize: 12;
252
+ fontWeight: "400";
253
+ lineHeight: 16;
254
+ letterSpacing?: undefined;
255
+ textTransform?: undefined;
256
+ color: string;
257
+ } | {
258
+ fontSize: 10;
259
+ fontWeight: "400";
260
+ lineHeight: 14;
261
+ letterSpacing?: undefined;
262
+ textTransform?: undefined;
263
+ color: string;
264
+ } | {
265
+ fontSize: 12;
266
+ fontWeight: "600";
267
+ lineHeight: 16;
268
+ letterSpacing?: undefined;
269
+ textTransform?: undefined;
270
+ color: string;
271
+ } | {
272
+ fontSize: 10;
273
+ fontWeight: "600";
274
+ lineHeight: 12;
275
+ letterSpacing: 0.4;
276
+ textTransform?: undefined;
277
+ color: string;
278
+ };
279
+ }>;
280
+ export declare const staticCalendarMonthHeaderStyles: {
281
+ root: {
282
+ fontSize: 48;
283
+ fontWeight: "600";
284
+ lineHeight: 56;
285
+ letterSpacing?: undefined;
286
+ textTransform?: undefined;
287
+ textAlign: "center";
288
+ paddingTop: 24;
289
+ paddingBottom: 16;
290
+ color: string;
291
+ } | {
292
+ fontSize: 40;
293
+ fontWeight: "600";
294
+ lineHeight: 48;
295
+ letterSpacing?: undefined;
296
+ textTransform?: undefined;
297
+ textAlign: "center";
298
+ paddingTop: 24;
299
+ paddingBottom: 16;
300
+ color: string;
301
+ } | {
302
+ fontSize: 32;
303
+ fontWeight: "600";
304
+ lineHeight: 40;
305
+ letterSpacing?: undefined;
306
+ textTransform?: undefined;
307
+ textAlign: "center";
308
+ paddingTop: 24;
309
+ paddingBottom: 16;
310
+ color: string;
311
+ } | {
312
+ fontSize: 24;
313
+ fontWeight: "600";
314
+ lineHeight: 32;
315
+ letterSpacing?: undefined;
316
+ textTransform?: undefined;
317
+ textAlign: "center";
318
+ paddingTop: 24;
319
+ paddingBottom: 16;
320
+ color: string;
321
+ } | {
322
+ fontSize: 20;
323
+ fontWeight: "600";
324
+ lineHeight: 28;
325
+ letterSpacing?: undefined;
326
+ textTransform?: undefined;
327
+ textAlign: "center";
328
+ paddingTop: 24;
329
+ paddingBottom: 16;
330
+ color: string;
331
+ } | {
332
+ fontSize: 16;
333
+ fontWeight: "600";
334
+ lineHeight: 24;
335
+ letterSpacing?: undefined;
336
+ textTransform?: undefined;
337
+ textAlign: "center";
338
+ paddingTop: 24;
339
+ paddingBottom: 16;
340
+ color: string;
341
+ } | {
342
+ fontSize: 14;
343
+ fontWeight: "600";
344
+ lineHeight: 20;
345
+ letterSpacing?: undefined;
346
+ textTransform?: undefined;
347
+ textAlign: "center";
348
+ paddingTop: 24;
349
+ paddingBottom: 16;
350
+ color: string;
351
+ } | {
352
+ fontSize: 16;
353
+ fontWeight: "500";
354
+ lineHeight: 24;
355
+ letterSpacing?: undefined;
356
+ textTransform?: undefined;
357
+ textAlign: "center";
358
+ paddingTop: 24;
359
+ paddingBottom: 16;
360
+ color: string;
361
+ } | {
362
+ fontSize: 14;
363
+ fontWeight: "500";
364
+ lineHeight: 20;
365
+ letterSpacing?: undefined;
366
+ textTransform?: undefined;
367
+ textAlign: "center";
368
+ paddingTop: 24;
369
+ paddingBottom: 16;
370
+ color: string;
371
+ } | {
372
+ fontSize: 12;
373
+ fontWeight: "500";
374
+ lineHeight: 16;
375
+ letterSpacing?: undefined;
376
+ textTransform?: undefined;
377
+ textAlign: "center";
378
+ paddingTop: 24;
379
+ paddingBottom: 16;
380
+ color: string;
381
+ } | {
382
+ fontSize: 12;
383
+ fontWeight: "600";
384
+ lineHeight: 16;
385
+ letterSpacing: 0.4;
386
+ textTransform: string;
387
+ textAlign: "center";
388
+ paddingTop: 24;
389
+ paddingBottom: 16;
390
+ color: string;
391
+ } | {
392
+ fontSize: 10;
393
+ fontWeight: "500";
394
+ lineHeight: 14;
395
+ letterSpacing?: undefined;
396
+ textTransform?: undefined;
397
+ textAlign: "center";
398
+ paddingTop: 24;
399
+ paddingBottom: 16;
400
+ color: string;
401
+ } | {
402
+ fontSize: 10;
403
+ fontWeight: "600";
404
+ lineHeight: 12;
405
+ letterSpacing: 0.4;
406
+ textTransform: string;
407
+ textAlign: "center";
408
+ paddingTop: 24;
409
+ paddingBottom: 16;
410
+ color: string;
411
+ } | {
412
+ fontSize: 16;
413
+ fontWeight: "400";
414
+ lineHeight: 22;
415
+ letterSpacing?: undefined;
416
+ textTransform?: undefined;
417
+ textAlign: "center";
418
+ paddingTop: 24;
419
+ paddingBottom: 16;
420
+ color: string;
421
+ } | {
422
+ fontSize: 14;
423
+ fontWeight: "400";
424
+ lineHeight: 20;
425
+ letterSpacing?: undefined;
426
+ textTransform?: undefined;
427
+ textAlign: "center";
428
+ paddingTop: 24;
429
+ paddingBottom: 16;
430
+ color: string;
431
+ } | {
432
+ fontSize: 12;
433
+ fontWeight: "400";
434
+ lineHeight: 16;
435
+ letterSpacing?: undefined;
436
+ textTransform?: undefined;
437
+ textAlign: "center";
438
+ paddingTop: 24;
439
+ paddingBottom: 16;
440
+ color: string;
441
+ } | {
442
+ fontSize: 10;
443
+ fontWeight: "400";
444
+ lineHeight: 14;
445
+ letterSpacing?: undefined;
446
+ textTransform?: undefined;
447
+ textAlign: "center";
448
+ paddingTop: 24;
449
+ paddingBottom: 16;
450
+ color: string;
451
+ } | {
452
+ fontSize: 12;
453
+ fontWeight: "600";
454
+ lineHeight: 16;
455
+ letterSpacing?: undefined;
456
+ textTransform?: undefined;
457
+ textAlign: "center";
458
+ paddingTop: 24;
459
+ paddingBottom: 16;
460
+ color: string;
461
+ } | {
462
+ fontSize: 10;
463
+ fontWeight: "600";
464
+ lineHeight: 12;
465
+ letterSpacing: 0.4;
466
+ textTransform?: undefined;
467
+ textAlign: "center";
468
+ paddingTop: 24;
469
+ paddingBottom: 16;
470
+ color: string;
471
+ };
472
+ };
473
+ export declare const staticCalendarMonthFooterStyles: {
474
+ root: {
475
+ paddingHorizontal: 20;
476
+ paddingVertical: 8;
477
+ };
478
+ headingContainer: {
479
+ flexDirection: "row";
480
+ gap: 8;
481
+ alignItems: "center";
482
+ };
483
+ heading: {
484
+ color: string;
485
+ };
486
+ listContainer: {
487
+ marginTop: 8;
488
+ };
489
+ listItem: {
490
+ color: string;
491
+ };
492
+ };
493
+ export declare const staticCalendarDotStyle: {
494
+ root: {
495
+ width: 6;
496
+ height: 6;
497
+ borderRadius: 50;
498
+ backgroundColor: string;
499
+ };
500
+ wrapper: {
501
+ position: "absolute";
502
+ right: 4;
503
+ top: 4;
504
+ };
505
+ };
506
+ export declare const staticCalendarDateStyle: {
507
+ root: {
508
+ position: "relative";
509
+ alignItems: "center";
510
+ justifyContent: "center";
511
+ width: 40;
512
+ height: 40;
513
+ borderRadius: number;
514
+ };
515
+ };
516
+ export declare const getSelectedDateRootStyles: (theme: Theme, isSelected: boolean) => {
517
+ backgroundColor: string;
518
+ };
519
+ export declare const staticCalendarRangeStyles: {
520
+ root: {
521
+ flexDirection: "row";
522
+ position: "absolute";
523
+ height: "100%";
524
+ };
525
+ fullGrayed: {
526
+ backgroundColor: string;
527
+ width: "100%";
528
+ height: "100%";
529
+ };
530
+ halfNeutral: {
531
+ backgroundColor: string;
532
+ width: "50%";
533
+ height: "100%";
534
+ };
535
+ halfGrayed: {
536
+ backgroundColor: string;
537
+ width: "50%";
538
+ height: "100%";
539
+ };
540
+ };
541
+ export declare const staticCalendarDateWrapperStyles: {
542
+ root: {
543
+ width: "14.285714285714286%";
544
+ alignItems: "center";
545
+ justifyContent: "center";
546
+ paddingVertical: 6;
547
+ };
548
+ };
549
+ export declare const getSelectedDateStyles: (theme: Theme, isSelected: boolean) => {
550
+ opacity: number;
551
+ pointerEvents: string;
552
+ } | {
553
+ opacity: number;
554
+ pointerEvents?: undefined;
555
+ };
556
+ export declare const staticCalendarMonthBodyStyles: {
557
+ root: {
558
+ flexDirection: "row";
559
+ };
560
+ };
561
+ export declare const staticCalendarBodyStyle: {
562
+ placeholderMonthContainer: {
563
+ width: "100%";
564
+ backgroundColor: string;
565
+ };
566
+ spacer: {
567
+ height: number;
568
+ };
569
+ };
570
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources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AAuB;;;;;;;;CAUlC,CAAC"}
package/dist/type.d.ts ADDED
@@ -0,0 +1,58 @@
1
+ import { MutableRefObject } from 'react';
2
+ export interface IMonthListObj {
3
+ month: string;
4
+ year: string;
5
+ }
6
+ export interface HandleCalendarDateClickedParams {
7
+ checkInDate?: Date;
8
+ checkOutDate?: Date;
9
+ stateDateType?: 'checkIn' | 'checkOut';
10
+ }
11
+ export interface ICalendarProps {
12
+ selectedDates: string[];
13
+ handleCalendarDateClicked: (params: HandleCalendarDateClickedParams) => void;
14
+ calendarDotsList: string[];
15
+ holidayList: Record<string, Record<string, string[]>>;
16
+ }
17
+ export interface ICalendarMonthBodyProps {
18
+ month: string;
19
+ year: string;
20
+ calendarDotsList: string[];
21
+ getSelectedDates: () => string[];
22
+ handleDateClicked: (date: string) => void;
23
+ }
24
+ export interface ICalendarDateProp {
25
+ day: string;
26
+ date: string;
27
+ isSelected: boolean;
28
+ calendarDotsList: string[];
29
+ }
30
+ export interface ICalendarRangeProps {
31
+ getSelectedDates: () => string[];
32
+ date: string;
33
+ }
34
+ export interface ICalendarDateWrapperProps {
35
+ year: string;
36
+ month: string;
37
+ day: string;
38
+ idxx: number;
39
+ getSelectedDates: () => string[];
40
+ handleDateClicked: (date: string) => void;
41
+ calendarDotsList: string[];
42
+ }
43
+ export interface ILazyMonthListProps {
44
+ show: boolean;
45
+ monthList: IMonthListObj[];
46
+ getSelectedDates: () => string[];
47
+ handleDateClicked: (date: string) => void;
48
+ calendarDotsList: string[];
49
+ holidayList: Record<string, Record<string, string[]>>;
50
+ monthHeightRef: MutableRefObject<Record<string, number>>;
51
+ }
52
+ export interface ICalendarBodyProps {
53
+ getSelectedDates: () => string[];
54
+ handleDateClicked: (date: string) => void;
55
+ calendarDotsList: string[];
56
+ holidayList: Record<string, Record<string, string[]>>;
57
+ }
58
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Calendar/src/type.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