willba-component-library 0.2.70 → 0.2.72
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/lib/components/FilterCalendar/components/Footer.d.ts +10 -0
- package/lib/core/components/buttons/submit-button/SubmitButton.d.ts +3 -1
- package/lib/core/components/calendar/utils/checkForContinuousSelection.d.ts +3 -2
- package/lib/index.esm.js +166 -64
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +166 -64
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +166 -64
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/IconsSvg.tsx +2 -0
- package/src/components/FilterBar/components/buttons/tab-button/TabButton.css +1 -1
- package/src/components/FilterCalendar/FilterCalendar.css +14 -10
- package/src/components/FilterCalendar/FilterCalendar.stories.tsx +177 -426
- package/src/components/FilterCalendar/FilterCalendar.tsx +10 -90
- package/src/components/FilterCalendar/components/Footer.tsx +114 -0
- package/src/core/components/buttons/submit-button/SubmitButton.css +16 -2
- package/src/core/components/buttons/submit-button/SubmitButton.tsx +5 -1
- package/src/core/components/calendar/Calendar.css +19 -14
- package/src/core/components/calendar/Calendar.tsx +2 -1
- package/src/core/components/calendar/hooks/useCalendarTooltips.tsx +2 -0
- package/src/core/components/calendar/utils/checkForContinuousSelection.tsx +45 -12
- package/src/themes/Default.css +7 -5
|
@@ -16,594 +16,224 @@ const baseData = {
|
|
|
16
16
|
disableCalendarDates: {
|
|
17
17
|
availableDates: [
|
|
18
18
|
{
|
|
19
|
-
checkIn: new Date('
|
|
20
|
-
firstCheckOut: new Date('
|
|
21
|
-
lastCheckOut: new Date('
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
checkIn: new Date('2024-10-26'),
|
|
25
|
-
firstCheckOut: new Date('2024-10-27'),
|
|
26
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
checkIn: new Date('2024-10-27'),
|
|
30
|
-
firstCheckOut: new Date('2024-10-28'),
|
|
31
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
checkIn: new Date('2024-10-28'),
|
|
35
|
-
firstCheckOut: new Date('2024-10-29'),
|
|
36
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
checkIn: new Date('2024-10-29'),
|
|
40
|
-
firstCheckOut: new Date('2024-10-30'),
|
|
41
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
checkIn: new Date('2024-10-30'),
|
|
45
|
-
firstCheckOut: new Date('2024-10-31'),
|
|
46
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
checkIn: new Date('2024-10-31'),
|
|
50
|
-
firstCheckOut: new Date('2024-11-01'),
|
|
51
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
checkIn: new Date('2024-11-01'),
|
|
55
|
-
firstCheckOut: new Date('2024-11-02'),
|
|
56
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
checkIn: new Date('2024-11-02'),
|
|
60
|
-
firstCheckOut: new Date('2024-11-03'),
|
|
61
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
checkIn: new Date('2024-11-03'),
|
|
65
|
-
firstCheckOut: new Date('2024-11-04'),
|
|
66
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
checkIn: new Date('2024-11-04'),
|
|
70
|
-
firstCheckOut: new Date('2024-11-05'),
|
|
71
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
checkIn: new Date('2024-11-05'),
|
|
75
|
-
firstCheckOut: new Date('2024-11-06'),
|
|
76
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
checkIn: new Date('2024-11-06'),
|
|
80
|
-
firstCheckOut: new Date('2024-11-07'),
|
|
81
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
checkIn: new Date('2024-11-07'),
|
|
85
|
-
firstCheckOut: new Date('2024-11-08'),
|
|
86
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
checkIn: new Date('2024-11-08'),
|
|
90
|
-
firstCheckOut: new Date('2024-11-09'),
|
|
91
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
checkIn: new Date('2024-11-09'),
|
|
95
|
-
firstCheckOut: new Date('2024-11-10'),
|
|
96
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
checkIn: new Date('2024-11-10'),
|
|
100
|
-
firstCheckOut: new Date('2024-11-11'),
|
|
101
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
checkIn: new Date('2024-11-11'),
|
|
105
|
-
firstCheckOut: new Date('2024-11-12'),
|
|
106
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
checkIn: new Date('2024-11-12'),
|
|
110
|
-
firstCheckOut: new Date('2024-11-13'),
|
|
111
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
checkIn: new Date('2024-11-13'),
|
|
115
|
-
firstCheckOut: new Date('2024-11-14'),
|
|
116
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
checkIn: new Date('2024-11-14'),
|
|
120
|
-
firstCheckOut: new Date('2024-11-15'),
|
|
121
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
checkIn: new Date('2024-11-15'),
|
|
125
|
-
firstCheckOut: new Date('2024-11-16'),
|
|
126
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
checkIn: new Date('2024-11-16'),
|
|
130
|
-
firstCheckOut: new Date('2024-11-17'),
|
|
131
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
checkIn: new Date('2024-11-17'),
|
|
135
|
-
firstCheckOut: new Date('2024-11-18'),
|
|
136
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
checkIn: new Date('2024-11-18'),
|
|
140
|
-
firstCheckOut: new Date('2024-11-19'),
|
|
141
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
checkIn: new Date('2024-11-23'),
|
|
145
|
-
firstCheckOut: new Date('2024-11-24'),
|
|
146
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
checkIn: new Date('2024-11-24'),
|
|
150
|
-
firstCheckOut: new Date('2024-11-25'),
|
|
151
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
checkIn: new Date('2024-11-25'),
|
|
155
|
-
firstCheckOut: new Date('2024-11-26'),
|
|
156
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
checkIn: new Date('2024-11-26'),
|
|
160
|
-
firstCheckOut: new Date('2024-11-27'),
|
|
161
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
checkIn: new Date('2024-11-27'),
|
|
165
|
-
firstCheckOut: new Date('2024-11-28'),
|
|
166
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
checkIn: new Date('2024-11-28'),
|
|
170
|
-
firstCheckOut: new Date('2024-11-29'),
|
|
171
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
checkIn: new Date('2024-11-29'),
|
|
175
|
-
firstCheckOut: new Date('2024-11-30'),
|
|
176
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
checkIn: new Date('2024-11-30'),
|
|
180
|
-
firstCheckOut: new Date('2024-12-01'),
|
|
181
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
checkIn: new Date('2024-12-01'),
|
|
185
|
-
firstCheckOut: new Date('2024-12-02'),
|
|
186
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
checkIn: new Date('2024-12-02'),
|
|
190
|
-
firstCheckOut: new Date('2024-12-03'),
|
|
191
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
checkIn: new Date('2024-12-03'),
|
|
195
|
-
firstCheckOut: new Date('2024-12-04'),
|
|
196
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
checkIn: new Date('2024-12-04'),
|
|
200
|
-
firstCheckOut: new Date('2024-12-05'),
|
|
201
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
checkIn: new Date('2024-12-05'),
|
|
205
|
-
firstCheckOut: new Date('2024-12-06'),
|
|
206
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
checkIn: new Date('2024-12-06'),
|
|
210
|
-
firstCheckOut: new Date('2024-12-07'),
|
|
211
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
checkIn: new Date('2024-12-07'),
|
|
215
|
-
firstCheckOut: new Date('2024-12-08'),
|
|
216
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
checkIn: new Date('2024-12-08'),
|
|
220
|
-
firstCheckOut: new Date('2024-12-09'),
|
|
221
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
checkIn: new Date('2024-12-09'),
|
|
225
|
-
firstCheckOut: new Date('2024-12-10'),
|
|
226
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
checkIn: new Date('2024-12-10'),
|
|
230
|
-
firstCheckOut: new Date('2024-12-11'),
|
|
231
|
-
lastCheckOut: new Date('2024-12-11'),
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
checkIn: new Date('2024-12-14'),
|
|
235
|
-
firstCheckOut: new Date('2024-12-15'),
|
|
236
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
checkIn: new Date('2024-12-15'),
|
|
240
|
-
firstCheckOut: new Date('2024-12-16'),
|
|
241
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
checkIn: new Date('2024-12-16'),
|
|
245
|
-
firstCheckOut: new Date('2024-12-17'),
|
|
246
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
checkIn: new Date('2024-12-17'),
|
|
250
|
-
firstCheckOut: new Date('2024-12-18'),
|
|
251
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
checkIn: new Date('2024-12-18'),
|
|
255
|
-
firstCheckOut: new Date('2024-12-19'),
|
|
256
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
checkIn: new Date('2024-12-19'),
|
|
260
|
-
firstCheckOut: new Date('2024-12-20'),
|
|
261
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
checkIn: new Date('2024-12-20'),
|
|
265
|
-
firstCheckOut: new Date('2024-12-21'),
|
|
266
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
checkIn: new Date('2024-12-21'),
|
|
270
|
-
firstCheckOut: new Date('2024-12-22'),
|
|
271
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
checkIn: new Date('2024-12-22'),
|
|
275
|
-
firstCheckOut: new Date('2024-12-23'),
|
|
276
|
-
lastCheckOut: new Date('2024-12-23'),
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
checkIn: new Date('2024-10-15'),
|
|
280
|
-
firstCheckOut: new Date('2024-10-16'),
|
|
281
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
checkIn: new Date('2024-10-16'),
|
|
285
|
-
firstCheckOut: new Date('2024-10-17'),
|
|
286
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
checkIn: new Date('2024-10-17'),
|
|
290
|
-
firstCheckOut: new Date('2024-10-18'),
|
|
291
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
checkIn: new Date('2024-10-18'),
|
|
295
|
-
firstCheckOut: new Date('2024-10-19'),
|
|
296
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
checkIn: new Date('2024-10-19'),
|
|
300
|
-
firstCheckOut: new Date('2024-10-20'),
|
|
301
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
checkIn: new Date('2024-10-20'),
|
|
305
|
-
firstCheckOut: new Date('2024-10-21'),
|
|
306
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
checkIn: new Date('2024-10-21'),
|
|
310
|
-
firstCheckOut: new Date('2024-10-22'),
|
|
311
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
checkIn: new Date('2024-10-22'),
|
|
315
|
-
firstCheckOut: new Date('2024-10-23'),
|
|
316
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
checkIn: new Date('2024-10-23'),
|
|
320
|
-
firstCheckOut: new Date('2024-10-24'),
|
|
321
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
checkIn: new Date('2024-10-24'),
|
|
325
|
-
firstCheckOut: new Date('2024-10-25'),
|
|
326
|
-
lastCheckOut: new Date('2024-11-19'),
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
checkIn: new Date('2024-12-26'),
|
|
330
|
-
firstCheckOut: new Date('2024-12-27'),
|
|
331
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
checkIn: new Date('2024-12-27'),
|
|
335
|
-
firstCheckOut: new Date('2024-12-28'),
|
|
336
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
checkIn: new Date('2024-12-28'),
|
|
340
|
-
firstCheckOut: new Date('2024-12-29'),
|
|
341
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
checkIn: new Date('2024-12-29'),
|
|
345
|
-
firstCheckOut: new Date('2024-12-30'),
|
|
346
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
checkIn: new Date('2024-12-30'),
|
|
350
|
-
firstCheckOut: new Date('2024-12-31'),
|
|
351
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
checkIn: new Date('2024-12-31'),
|
|
355
|
-
firstCheckOut: new Date('2025-01-01'),
|
|
356
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
19
|
+
checkIn: new Date('2025-01-01'),
|
|
20
|
+
firstCheckOut: new Date('2025-01-02'),
|
|
21
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
357
22
|
},
|
|
358
23
|
{
|
|
359
24
|
checkIn: new Date('2025-01-02'),
|
|
360
25
|
firstCheckOut: new Date('2025-01-03'),
|
|
361
|
-
lastCheckOut: new Date('2025-
|
|
26
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
362
27
|
},
|
|
363
28
|
{
|
|
364
29
|
checkIn: new Date('2025-01-03'),
|
|
365
30
|
firstCheckOut: new Date('2025-01-04'),
|
|
366
|
-
lastCheckOut: new Date('2025-
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
checkIn: new Date('2025-01-04'),
|
|
370
|
-
firstCheckOut: new Date('2025-01-05'),
|
|
371
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
checkIn: new Date('2025-01-05'),
|
|
375
|
-
firstCheckOut: new Date('2025-01-06'),
|
|
376
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
checkIn: new Date('2025-01-06'),
|
|
380
|
-
firstCheckOut: new Date('2025-01-07'),
|
|
381
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
checkIn: new Date('2025-01-07'),
|
|
385
|
-
firstCheckOut: new Date('2025-01-08'),
|
|
386
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
31
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
387
32
|
},
|
|
388
33
|
{
|
|
389
34
|
checkIn: new Date('2025-01-08'),
|
|
390
35
|
firstCheckOut: new Date('2025-01-09'),
|
|
391
|
-
lastCheckOut: new Date('2025-
|
|
36
|
+
lastCheckOut: new Date('2025-01-14'),
|
|
392
37
|
},
|
|
393
38
|
{
|
|
394
39
|
checkIn: new Date('2025-01-09'),
|
|
395
40
|
firstCheckOut: new Date('2025-01-10'),
|
|
396
|
-
lastCheckOut: new Date('2025-
|
|
41
|
+
lastCheckOut: new Date('2025-01-14'),
|
|
397
42
|
},
|
|
398
43
|
{
|
|
399
44
|
checkIn: new Date('2025-01-10'),
|
|
400
45
|
firstCheckOut: new Date('2025-01-11'),
|
|
401
|
-
lastCheckOut: new Date('2025-
|
|
46
|
+
lastCheckOut: new Date('2025-01-14'),
|
|
402
47
|
},
|
|
403
48
|
{
|
|
404
49
|
checkIn: new Date('2025-01-11'),
|
|
405
50
|
firstCheckOut: new Date('2025-01-12'),
|
|
406
|
-
lastCheckOut: new Date('2025-
|
|
51
|
+
lastCheckOut: new Date('2025-01-14'),
|
|
407
52
|
},
|
|
408
53
|
{
|
|
409
54
|
checkIn: new Date('2025-01-12'),
|
|
410
55
|
firstCheckOut: new Date('2025-01-13'),
|
|
411
|
-
lastCheckOut: new Date('2025-
|
|
56
|
+
lastCheckOut: new Date('2025-01-14'),
|
|
412
57
|
},
|
|
413
58
|
{
|
|
414
59
|
checkIn: new Date('2025-01-13'),
|
|
415
60
|
firstCheckOut: new Date('2025-01-14'),
|
|
416
|
-
lastCheckOut: new Date('2025-
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
checkIn: new Date('2025-01-14'),
|
|
420
|
-
firstCheckOut: new Date('2025-01-15'),
|
|
421
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
checkIn: new Date('2025-01-15'),
|
|
425
|
-
firstCheckOut: new Date('2025-01-16'),
|
|
426
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
checkIn: new Date('2025-01-16'),
|
|
430
|
-
firstCheckOut: new Date('2025-01-17'),
|
|
431
|
-
lastCheckOut: new Date('2025-03-12'),
|
|
61
|
+
lastCheckOut: new Date('2025-01-14'),
|
|
432
62
|
},
|
|
433
63
|
{
|
|
434
64
|
checkIn: new Date('2025-01-17'),
|
|
435
65
|
firstCheckOut: new Date('2025-01-18'),
|
|
436
|
-
lastCheckOut: new Date('2025-
|
|
66
|
+
lastCheckOut: new Date('2025-02-05'),
|
|
437
67
|
},
|
|
438
68
|
{
|
|
439
69
|
checkIn: new Date('2025-01-18'),
|
|
440
70
|
firstCheckOut: new Date('2025-01-19'),
|
|
441
|
-
lastCheckOut: new Date('2025-
|
|
71
|
+
lastCheckOut: new Date('2025-02-05'),
|
|
442
72
|
},
|
|
443
73
|
{
|
|
444
74
|
checkIn: new Date('2025-01-19'),
|
|
445
75
|
firstCheckOut: new Date('2025-01-20'),
|
|
446
|
-
lastCheckOut: new Date('2025-
|
|
76
|
+
lastCheckOut: new Date('2025-02-05'),
|
|
447
77
|
},
|
|
448
78
|
{
|
|
449
79
|
checkIn: new Date('2025-01-20'),
|
|
450
80
|
firstCheckOut: new Date('2025-01-21'),
|
|
451
|
-
lastCheckOut: new Date('2025-
|
|
81
|
+
lastCheckOut: new Date('2025-02-05'),
|
|
452
82
|
},
|
|
453
83
|
{
|
|
454
84
|
checkIn: new Date('2025-01-21'),
|
|
455
85
|
firstCheckOut: new Date('2025-01-22'),
|
|
456
|
-
lastCheckOut: new Date('2025-
|
|
86
|
+
lastCheckOut: new Date('2025-02-05'),
|
|
457
87
|
},
|
|
458
88
|
{
|
|
459
89
|
checkIn: new Date('2025-01-22'),
|
|
460
90
|
firstCheckOut: new Date('2025-01-23'),
|
|
461
|
-
lastCheckOut: new Date('2025-
|
|
91
|
+
lastCheckOut: new Date('2025-02-05'),
|
|
462
92
|
},
|
|
463
93
|
{
|
|
464
94
|
checkIn: new Date('2025-01-23'),
|
|
465
95
|
firstCheckOut: new Date('2025-01-24'),
|
|
466
|
-
lastCheckOut: new Date('2025-
|
|
96
|
+
lastCheckOut: new Date('2025-02-05'),
|
|
467
97
|
},
|
|
468
98
|
{
|
|
469
99
|
checkIn: new Date('2025-01-24'),
|
|
470
100
|
firstCheckOut: new Date('2025-01-25'),
|
|
471
|
-
lastCheckOut: new Date('2025-
|
|
101
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
472
102
|
},
|
|
473
103
|
{
|
|
474
104
|
checkIn: new Date('2025-01-25'),
|
|
475
105
|
firstCheckOut: new Date('2025-01-26'),
|
|
476
|
-
lastCheckOut: new Date('2025-
|
|
106
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
477
107
|
},
|
|
478
108
|
{
|
|
479
109
|
checkIn: new Date('2025-01-26'),
|
|
480
110
|
firstCheckOut: new Date('2025-01-27'),
|
|
481
|
-
lastCheckOut: new Date('2025-
|
|
111
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
482
112
|
},
|
|
483
113
|
{
|
|
484
114
|
checkIn: new Date('2025-01-27'),
|
|
485
115
|
firstCheckOut: new Date('2025-01-28'),
|
|
486
|
-
lastCheckOut: new Date('2025-
|
|
116
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
487
117
|
},
|
|
488
118
|
{
|
|
489
119
|
checkIn: new Date('2025-01-28'),
|
|
490
120
|
firstCheckOut: new Date('2025-01-29'),
|
|
491
|
-
lastCheckOut: new Date('2025-
|
|
121
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
492
122
|
},
|
|
493
123
|
{
|
|
494
124
|
checkIn: new Date('2025-01-29'),
|
|
495
125
|
firstCheckOut: new Date('2025-01-30'),
|
|
496
|
-
lastCheckOut: new Date('2025-
|
|
126
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
497
127
|
},
|
|
498
128
|
{
|
|
499
129
|
checkIn: new Date('2025-01-30'),
|
|
500
130
|
firstCheckOut: new Date('2025-01-31'),
|
|
501
|
-
lastCheckOut: new Date('2025-
|
|
131
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
502
132
|
},
|
|
503
133
|
{
|
|
504
134
|
checkIn: new Date('2025-01-31'),
|
|
505
135
|
firstCheckOut: new Date('2025-02-01'),
|
|
506
|
-
lastCheckOut: new Date('2025-
|
|
136
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
507
137
|
},
|
|
508
138
|
{
|
|
509
139
|
checkIn: new Date('2025-02-01'),
|
|
510
140
|
firstCheckOut: new Date('2025-02-02'),
|
|
511
|
-
lastCheckOut: new Date('2025-
|
|
141
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
512
142
|
},
|
|
513
143
|
{
|
|
514
144
|
checkIn: new Date('2025-02-02'),
|
|
515
145
|
firstCheckOut: new Date('2025-02-03'),
|
|
516
|
-
lastCheckOut: new Date('2025-
|
|
146
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
517
147
|
},
|
|
518
148
|
{
|
|
519
149
|
checkIn: new Date('2025-02-03'),
|
|
520
150
|
firstCheckOut: new Date('2025-02-04'),
|
|
521
|
-
lastCheckOut: new Date('2025-
|
|
151
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
522
152
|
},
|
|
523
153
|
{
|
|
524
154
|
checkIn: new Date('2025-02-04'),
|
|
525
155
|
firstCheckOut: new Date('2025-02-05'),
|
|
526
|
-
lastCheckOut: new Date('2025-
|
|
156
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
527
157
|
},
|
|
528
158
|
{
|
|
529
159
|
checkIn: new Date('2025-02-05'),
|
|
530
160
|
firstCheckOut: new Date('2025-02-06'),
|
|
531
|
-
lastCheckOut: new Date('2025-
|
|
161
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
532
162
|
},
|
|
533
163
|
{
|
|
534
164
|
checkIn: new Date('2025-02-06'),
|
|
535
165
|
firstCheckOut: new Date('2025-02-07'),
|
|
536
|
-
lastCheckOut: new Date('2025-
|
|
166
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
537
167
|
},
|
|
538
168
|
{
|
|
539
169
|
checkIn: new Date('2025-02-07'),
|
|
540
170
|
firstCheckOut: new Date('2025-02-08'),
|
|
541
|
-
lastCheckOut: new Date('2025-
|
|
171
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
542
172
|
},
|
|
543
173
|
{
|
|
544
174
|
checkIn: new Date('2025-02-08'),
|
|
545
175
|
firstCheckOut: new Date('2025-02-09'),
|
|
546
|
-
lastCheckOut: new Date('2025-
|
|
176
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
547
177
|
},
|
|
548
178
|
{
|
|
549
179
|
checkIn: new Date('2025-02-09'),
|
|
550
180
|
firstCheckOut: new Date('2025-02-10'),
|
|
551
|
-
lastCheckOut: new Date('2025-
|
|
181
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
552
182
|
},
|
|
553
183
|
{
|
|
554
184
|
checkIn: new Date('2025-02-10'),
|
|
555
185
|
firstCheckOut: new Date('2025-02-11'),
|
|
556
|
-
lastCheckOut: new Date('2025-
|
|
186
|
+
lastCheckOut: new Date('2025-02-11'),
|
|
557
187
|
},
|
|
558
188
|
{
|
|
559
189
|
checkIn: new Date('2025-02-11'),
|
|
560
190
|
firstCheckOut: new Date('2025-02-12'),
|
|
561
|
-
lastCheckOut: new Date('2025-03-
|
|
191
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
562
192
|
},
|
|
563
193
|
{
|
|
564
194
|
checkIn: new Date('2025-02-12'),
|
|
565
195
|
firstCheckOut: new Date('2025-02-13'),
|
|
566
|
-
lastCheckOut: new Date('2025-03-
|
|
196
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
567
197
|
},
|
|
568
198
|
{
|
|
569
199
|
checkIn: new Date('2025-02-13'),
|
|
570
200
|
firstCheckOut: new Date('2025-02-14'),
|
|
571
|
-
lastCheckOut: new Date('2025-03-
|
|
201
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
572
202
|
},
|
|
573
203
|
{
|
|
574
204
|
checkIn: new Date('2025-02-14'),
|
|
575
205
|
firstCheckOut: new Date('2025-02-15'),
|
|
576
|
-
lastCheckOut: new Date('2025-03-
|
|
206
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
577
207
|
},
|
|
578
208
|
{
|
|
579
209
|
checkIn: new Date('2025-02-15'),
|
|
580
210
|
firstCheckOut: new Date('2025-02-16'),
|
|
581
|
-
lastCheckOut: new Date('2025-03-
|
|
211
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
582
212
|
},
|
|
583
213
|
{
|
|
584
214
|
checkIn: new Date('2025-02-16'),
|
|
585
215
|
firstCheckOut: new Date('2025-02-17'),
|
|
586
|
-
lastCheckOut: new Date('2025-03-
|
|
216
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
587
217
|
},
|
|
588
218
|
{
|
|
589
219
|
checkIn: new Date('2025-02-17'),
|
|
590
220
|
firstCheckOut: new Date('2025-02-18'),
|
|
591
|
-
lastCheckOut: new Date('2025-03-
|
|
221
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
592
222
|
},
|
|
593
223
|
{
|
|
594
224
|
checkIn: new Date('2025-02-18'),
|
|
595
225
|
firstCheckOut: new Date('2025-02-19'),
|
|
596
|
-
lastCheckOut: new Date('2025-03-
|
|
226
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
597
227
|
},
|
|
598
228
|
{
|
|
599
229
|
checkIn: new Date('2025-02-19'),
|
|
600
230
|
firstCheckOut: new Date('2025-02-20'),
|
|
601
|
-
lastCheckOut: new Date('2025-03-
|
|
231
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
602
232
|
},
|
|
603
233
|
{
|
|
604
234
|
checkIn: new Date('2025-02-20'),
|
|
605
235
|
firstCheckOut: new Date('2025-02-21'),
|
|
606
|
-
lastCheckOut: new Date('2025-03-
|
|
236
|
+
lastCheckOut: new Date('2025-03-01'),
|
|
607
237
|
},
|
|
608
238
|
{
|
|
609
239
|
checkIn: new Date('2025-02-21'),
|
|
@@ -645,6 +275,126 @@ const baseData = {
|
|
|
645
275
|
firstCheckOut: new Date('2025-03-01'),
|
|
646
276
|
lastCheckOut: new Date('2025-03-12'),
|
|
647
277
|
},
|
|
278
|
+
{
|
|
279
|
+
checkIn: new Date('2024-12-01'),
|
|
280
|
+
firstCheckOut: new Date('2024-12-02'),
|
|
281
|
+
lastCheckOut: new Date('2024-12-03'),
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
checkIn: new Date('2024-12-02'),
|
|
285
|
+
firstCheckOut: new Date('2024-12-03'),
|
|
286
|
+
lastCheckOut: new Date('2024-12-03'),
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
checkIn: new Date('2024-12-07'),
|
|
290
|
+
firstCheckOut: new Date('2024-12-08'),
|
|
291
|
+
lastCheckOut: new Date('2024-12-11'),
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
checkIn: new Date('2024-12-08'),
|
|
295
|
+
firstCheckOut: new Date('2024-12-09'),
|
|
296
|
+
lastCheckOut: new Date('2024-12-11'),
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
checkIn: new Date('2024-12-09'),
|
|
300
|
+
firstCheckOut: new Date('2024-12-10'),
|
|
301
|
+
lastCheckOut: new Date('2024-12-11'),
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
checkIn: new Date('2024-12-10'),
|
|
305
|
+
firstCheckOut: new Date('2024-12-11'),
|
|
306
|
+
lastCheckOut: new Date('2024-12-11'),
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
checkIn: new Date('2024-12-14'),
|
|
310
|
+
firstCheckOut: new Date('2024-12-15'),
|
|
311
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
checkIn: new Date('2024-12-15'),
|
|
315
|
+
firstCheckOut: new Date('2024-12-16'),
|
|
316
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
checkIn: new Date('2024-12-16'),
|
|
320
|
+
firstCheckOut: new Date('2024-12-17'),
|
|
321
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
checkIn: new Date('2024-12-17'),
|
|
325
|
+
firstCheckOut: new Date('2024-12-18'),
|
|
326
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
checkIn: new Date('2024-12-18'),
|
|
330
|
+
firstCheckOut: new Date('2024-12-19'),
|
|
331
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
checkIn: new Date('2024-12-19'),
|
|
335
|
+
firstCheckOut: new Date('2024-12-20'),
|
|
336
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
checkIn: new Date('2024-12-20'),
|
|
340
|
+
firstCheckOut: new Date('2024-12-21'),
|
|
341
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
checkIn: new Date('2024-12-21'),
|
|
345
|
+
firstCheckOut: new Date('2024-12-22'),
|
|
346
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
checkIn: new Date('2024-12-22'),
|
|
350
|
+
firstCheckOut: new Date('2024-12-23'),
|
|
351
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
checkIn: new Date('2024-12-23'),
|
|
355
|
+
firstCheckOut: new Date('2024-12-24'),
|
|
356
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
checkIn: new Date('2024-12-24'),
|
|
360
|
+
firstCheckOut: new Date('2024-12-25'),
|
|
361
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
checkIn: new Date('2024-12-25'),
|
|
365
|
+
firstCheckOut: new Date('2024-12-26'),
|
|
366
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
checkIn: new Date('2024-12-26'),
|
|
370
|
+
firstCheckOut: new Date('2024-12-27'),
|
|
371
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
checkIn: new Date('2024-12-27'),
|
|
375
|
+
firstCheckOut: new Date('2024-12-28'),
|
|
376
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
checkIn: new Date('2024-12-28'),
|
|
380
|
+
firstCheckOut: new Date('2024-12-29'),
|
|
381
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
checkIn: new Date('2024-12-29'),
|
|
385
|
+
firstCheckOut: new Date('2024-12-30'),
|
|
386
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
checkIn: new Date('2024-12-30'),
|
|
390
|
+
firstCheckOut: new Date('2024-12-31'),
|
|
391
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
checkIn: new Date('2024-12-31'),
|
|
395
|
+
firstCheckOut: new Date('2025-01-01'),
|
|
396
|
+
lastCheckOut: new Date('2025-01-04'),
|
|
397
|
+
},
|
|
648
398
|
{
|
|
649
399
|
checkIn: new Date('2025-03-01'),
|
|
650
400
|
firstCheckOut: new Date('2025-03-02'),
|
|
@@ -703,20 +453,20 @@ const baseData = {
|
|
|
703
453
|
],
|
|
704
454
|
disabledDates: [
|
|
705
455
|
{
|
|
706
|
-
to: new Date('
|
|
707
|
-
from: new Date('
|
|
456
|
+
to: new Date('2025-01-07'),
|
|
457
|
+
from: new Date('2025-01-04'),
|
|
708
458
|
},
|
|
709
459
|
{
|
|
710
|
-
to: new Date('
|
|
711
|
-
from: new Date('
|
|
460
|
+
to: new Date('2025-01-16'),
|
|
461
|
+
from: new Date('2025-01-14'),
|
|
712
462
|
},
|
|
713
463
|
{
|
|
714
|
-
to: new Date('2024-12-
|
|
715
|
-
from: new Date('2024-12-
|
|
464
|
+
to: new Date('2024-12-06'),
|
|
465
|
+
from: new Date('2024-12-03'),
|
|
716
466
|
},
|
|
717
467
|
{
|
|
718
|
-
to: new Date('2024-12-
|
|
719
|
-
from: new Date('2024-12-
|
|
468
|
+
to: new Date('2024-12-13'),
|
|
469
|
+
from: new Date('2024-12-11'),
|
|
720
470
|
},
|
|
721
471
|
{
|
|
722
472
|
to: new Date('2025-03-31'),
|
|
@@ -724,6 +474,7 @@ const baseData = {
|
|
|
724
474
|
},
|
|
725
475
|
],
|
|
726
476
|
},
|
|
477
|
+
|
|
727
478
|
language: 'en',
|
|
728
479
|
palette: {
|
|
729
480
|
primary: '#0095d9',
|
|
@@ -783,8 +534,8 @@ export const DisabledRangeContextDates: Story = {
|
|
|
783
534
|
args: {
|
|
784
535
|
...baseData,
|
|
785
536
|
rangeContext: {
|
|
786
|
-
from: new Date('2025-01-
|
|
787
|
-
to: new Date('2025-01-
|
|
537
|
+
from: new Date('2025-01-04'),
|
|
538
|
+
to: new Date('2025-01-24'),
|
|
788
539
|
},
|
|
789
540
|
},
|
|
790
541
|
render: (args) => {
|