@coreui/react-pro 4.2.0-beta.0 → 4.2.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 (163) hide show
  1. package/README.md +1 -1
  2. package/dist/components/accordion/index.d.ts +7 -0
  3. package/dist/components/alert/index.d.ts +4 -0
  4. package/dist/components/avatar/index.d.ts +2 -0
  5. package/dist/components/backdrop/index.d.ts +2 -0
  6. package/dist/components/badge/index.d.ts +2 -0
  7. package/dist/components/breadcrumb/index.d.ts +3 -0
  8. package/dist/components/button/index.d.ts +2 -0
  9. package/dist/components/button-group/index.d.ts +3 -0
  10. package/dist/components/calendar/CCalendar.d.ts +36 -12
  11. package/dist/components/callout/index.d.ts +2 -0
  12. package/dist/components/card/index.d.ts +12 -0
  13. package/dist/components/carousel/index.d.ts +4 -0
  14. package/dist/components/close-button/index.d.ts +2 -0
  15. package/dist/components/collapse/index.d.ts +2 -0
  16. package/dist/components/date-picker/CDatePicker.d.ts +13 -0
  17. package/dist/components/date-picker/index.d.ts +2 -0
  18. package/dist/components/date-range-picker/CDateRangePicker.d.ts +93 -0
  19. package/dist/components/date-range-picker/index.d.ts +2 -0
  20. package/dist/components/datepicker/index.d.ts +2 -0
  21. package/dist/components/daterangepicker/CDateRangePicker.d.ts +26 -11
  22. package/dist/components/daterangepicker/index.d.ts +2 -0
  23. package/dist/components/dropdown/index.d.ts +8 -0
  24. package/dist/components/footer/index.d.ts +2 -0
  25. package/dist/components/form/CForm.d.ts +2 -2
  26. package/dist/components/form/CFormCheck.d.ts +2 -1
  27. package/dist/components/form/CFormControlValidation.d.ts +46 -0
  28. package/dist/components/form/CFormControlWrapper.d.ts +31 -0
  29. package/dist/components/form/CFormInput.d.ts +6 -9
  30. package/dist/components/form/CFormRange.d.ts +7 -1
  31. package/dist/components/form/CFormSelect.d.ts +3 -10
  32. package/dist/components/form/CFormTextarea.d.ts +2 -9
  33. package/dist/components/form/index.d.ts +14 -0
  34. package/dist/components/grid/index.d.ts +4 -0
  35. package/dist/components/header/index.d.ts +7 -0
  36. package/dist/components/image/index.d.ts +2 -0
  37. package/dist/components/index.d.ts +41 -0
  38. package/dist/components/link/index.d.ts +2 -0
  39. package/dist/components/list-group/index.d.ts +3 -0
  40. package/dist/components/loading-button/index.d.ts +2 -0
  41. package/dist/components/modal/CModal.d.ts +3 -0
  42. package/dist/components/modal/index.d.ts +8 -0
  43. package/dist/components/multi-select/index.d.ts +2 -0
  44. package/dist/components/nav/index.d.ts +7 -0
  45. package/dist/components/navbar/index.d.ts +6 -0
  46. package/dist/components/offcanvas/index.d.ts +5 -0
  47. package/dist/components/pagination/index.d.ts +4 -0
  48. package/dist/components/picker/CPicker.d.ts +52 -7
  49. package/dist/components/placeholder/index.d.ts +2 -0
  50. package/dist/components/popover/CPopover.d.ts +2 -2
  51. package/dist/components/popover/index.d.ts +2 -0
  52. package/dist/components/progress/index.d.ts +3 -0
  53. package/dist/components/sidebar/index.d.ts +7 -0
  54. package/dist/components/smart-table/index.d.ts +2 -0
  55. package/dist/components/spinner/index.d.ts +2 -0
  56. package/dist/components/table/index.d.ts +9 -0
  57. package/dist/components/tabs/index.d.ts +3 -0
  58. package/dist/components/time-picker/CTimePicker.d.ts +45 -0
  59. package/dist/components/time-picker/CTimePickerRollCol.d.ts +11 -0
  60. package/dist/components/time-picker/index.d.ts +2 -0
  61. package/dist/components/timepicker/CTimePicker.d.ts +9 -13
  62. package/dist/components/timepicker/index.d.ts +2 -0
  63. package/dist/components/toast/index.d.ts +6 -0
  64. package/dist/components/tooltip/CTooltip.d.ts +6 -2
  65. package/dist/components/tooltip/index.d.ts +2 -0
  66. package/dist/index.d.ts +0 -128
  67. package/dist/index.es.js +8368 -5764
  68. package/dist/index.es.js.map +1 -1
  69. package/dist/index.js +8367 -5764
  70. package/dist/index.js.map +1 -1
  71. package/dist/{components/calendar/CCalendar.utils.d.ts → utils/calendar.d.ts} +5 -2
  72. package/dist/utils/hooks/useStateWithCallback.d.ts +2 -1
  73. package/dist/utils/time.d.ts +21 -0
  74. package/package.json +14 -11
  75. package/src/components/accordion/__tests__/__snapshots__/CAccordionButton.spec.tsx.snap +2 -0
  76. package/src/components/accordion/__tests__/__snapshots__/CAccordionHeader.spec.tsx.snap +2 -0
  77. package/src/components/accordion/index.ts +15 -0
  78. package/src/components/alert/CAlert.tsx +14 -3
  79. package/src/components/alert/index.ts +5 -0
  80. package/src/components/avatar/index.ts +3 -0
  81. package/src/components/backdrop/CBackdrop.tsx +10 -3
  82. package/src/components/backdrop/index.ts +3 -0
  83. package/src/components/badge/index.ts +3 -0
  84. package/src/components/breadcrumb/index.ts +4 -0
  85. package/src/components/button/index.ts +3 -0
  86. package/src/components/button-group/index.ts +4 -0
  87. package/src/components/calendar/CCalendar.tsx +221 -131
  88. package/src/components/calendar/__tests__/CCalendar.spec.tsx +9 -0
  89. package/src/components/calendar/__tests__/__snapshots__/CCalendar.spec.tsx.snap +573 -0
  90. package/src/components/callout/index.ts +3 -0
  91. package/src/components/card/index.ts +25 -0
  92. package/src/components/carousel/index.ts +5 -0
  93. package/src/components/close-button/index.ts +3 -0
  94. package/src/components/collapse/CCollapse.tsx +1 -0
  95. package/src/components/collapse/index.ts +3 -0
  96. package/src/components/{datepicker → date-picker}/CDatePicker.tsx +3 -2
  97. package/src/components/date-picker/__tests__/CDatePicker.spec.tsx +9 -0
  98. package/src/components/date-picker/__tests__/__snapshots__/CDatePicker.spec.tsx.snap +617 -0
  99. package/src/components/date-picker/index.ts +3 -0
  100. package/src/components/date-range-picker/CDateRangePicker.tsx +495 -0
  101. package/src/components/date-range-picker/__tests__/CDateRangePicker.spec.tsx +9 -0
  102. package/src/components/date-range-picker/__tests__/__snapshots__/CDateRangePicker.spec.tsx.snap +1201 -0
  103. package/src/components/date-range-picker/index.ts +3 -0
  104. package/src/components/dropdown/CDropdownItem.tsx +1 -1
  105. package/src/components/dropdown/CDropdownMenu.tsx +14 -14
  106. package/src/components/dropdown/index.ts +17 -0
  107. package/src/components/footer/index.ts +3 -0
  108. package/src/components/form/CForm.tsx +2 -2
  109. package/src/components/form/CFormCheck.tsx +32 -7
  110. package/src/components/form/CFormControlValidation.tsx +97 -0
  111. package/src/components/form/CFormControlWrapper.tsx +85 -0
  112. package/src/components/form/CFormInput.tsx +75 -19
  113. package/src/components/form/CFormRange.tsx +18 -4
  114. package/src/components/form/CFormSelect.tsx +60 -32
  115. package/src/components/form/CFormTextarea.tsx +45 -17
  116. package/src/components/form/index.ts +29 -0
  117. package/src/components/grid/index.ts +5 -0
  118. package/src/components/header/index.ts +8 -0
  119. package/src/components/image/index.ts +3 -0
  120. package/src/components/index.ts +41 -0
  121. package/src/components/link/index.ts +3 -0
  122. package/src/components/list-group/index.ts +4 -0
  123. package/src/components/loading-button/index.ts +3 -0
  124. package/src/components/modal/CModal.tsx +3 -2
  125. package/src/components/modal/index.ts +9 -0
  126. package/src/components/multi-select/CMultiSelect.tsx +46 -38
  127. package/src/components/multi-select/index.ts +3 -0
  128. package/src/components/nav/CNavGroup.tsx +1 -0
  129. package/src/components/nav/index.ts +8 -0
  130. package/src/components/navbar/index.ts +7 -0
  131. package/src/components/offcanvas/COffcanvas.tsx +1 -0
  132. package/src/components/offcanvas/index.ts +6 -0
  133. package/src/components/pagination/index.ts +5 -0
  134. package/src/components/picker/CPicker.tsx +104 -32
  135. package/src/components/picker/__tests__/CPicker.spec.tsx +9 -0
  136. package/src/components/picker/__tests__/__snapshots__/CPicker.spec.tsx.snap +23 -0
  137. package/src/components/placeholder/index.ts +3 -0
  138. package/src/components/popover/CPopover.tsx +59 -57
  139. package/src/components/popover/index.ts +3 -0
  140. package/src/components/progress/index.ts +4 -0
  141. package/src/components/sidebar/index.ts +8 -0
  142. package/src/components/smart-table/CSmartTable.tsx +2 -2
  143. package/src/components/smart-table/index.ts +3 -0
  144. package/src/components/spinner/index.ts +3 -0
  145. package/src/components/table/index.ts +19 -0
  146. package/src/components/tabs/CTabPane.tsx +7 -3
  147. package/src/components/tabs/index.ts +4 -0
  148. package/src/components/{timepicker → time-picker}/CTimePicker.tsx +71 -98
  149. package/src/components/{timepicker → time-picker}/CTimePickerRollCol.tsx +7 -1
  150. package/src/components/time-picker/__tests__/CTimePicker.spec.tsx +9 -0
  151. package/src/components/time-picker/index.ts +3 -0
  152. package/src/components/toast/CToast.tsx +6 -1
  153. package/src/components/toast/index.ts +7 -0
  154. package/src/components/tooltip/CTooltip.tsx +63 -45
  155. package/src/components/tooltip/index.ts +3 -0
  156. package/src/index.ts +0 -258
  157. package/src/{components/calendar/CCalendar.utils.ts → utils/calendar.ts} +97 -10
  158. package/src/utils/hooks/useStateWithCallback.ts +6 -3
  159. package/src/utils/time.ts +84 -0
  160. package/dist/components/dropdown/CDropdownToggleCustom.d.ts +0 -15
  161. package/dist/components/timepicker/CTimePicker.utils.d.ts +0 -4
  162. package/src/components/daterangepicker/CDateRangePicker.tsx +0 -366
  163. package/src/components/timepicker/CTimePicker.utils.ts +0 -27
@@ -0,0 +1,573 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`loads and displays CCalendar component 1`] = `
4
+ <div>
5
+ <div
6
+ class="calendar"
7
+ >
8
+ <div
9
+ class="calendar-nav"
10
+ >
11
+ <div
12
+ class="calendar-nav-prev"
13
+ >
14
+ <button
15
+ class="btn btn-transparent btn-sm"
16
+ type="button"
17
+ >
18
+ <span
19
+ class="calendar-nav-icon calendar-nav-icon-double-prev"
20
+ />
21
+ </button>
22
+ <button
23
+ class="btn btn-transparent btn-sm"
24
+ type="button"
25
+ >
26
+ <span
27
+ class="calendar-nav-icon calendar-nav-icon-prev"
28
+ />
29
+ </button>
30
+ </div>
31
+ <div
32
+ class="calendar-nav-date"
33
+ >
34
+ <button
35
+ class="btn btn-transparent btn-sm"
36
+ type="button"
37
+ >
38
+ March
39
+ </button>
40
+ <button
41
+ class="btn btn-transparent btn-sm"
42
+ type="button"
43
+ >
44
+ 2022
45
+ </button>
46
+ </div>
47
+ <div
48
+ class="calendar-nav-next"
49
+ >
50
+ <button
51
+ class="btn btn-transparent btn-sm"
52
+ type="button"
53
+ >
54
+ <span
55
+ class="calendar-nav-icon calendar-nav-icon-next"
56
+ />
57
+ </button>
58
+ <button
59
+ class="btn btn-transparent btn-sm"
60
+ type="button"
61
+ >
62
+ <span
63
+ class="calendar-nav-icon calendar-nav-icon-double-next"
64
+ />
65
+ </button>
66
+ </div>
67
+ </div>
68
+ <table>
69
+ <thead>
70
+ <tr>
71
+ <th
72
+ class="calendar-cell"
73
+ >
74
+ <div
75
+ class="calendar-header-cell-inner"
76
+ >
77
+ Mo
78
+ </div>
79
+ </th>
80
+ <th
81
+ class="calendar-cell"
82
+ >
83
+ <div
84
+ class="calendar-header-cell-inner"
85
+ >
86
+ Tu
87
+ </div>
88
+ </th>
89
+ <th
90
+ class="calendar-cell"
91
+ >
92
+ <div
93
+ class="calendar-header-cell-inner"
94
+ >
95
+ We
96
+ </div>
97
+ </th>
98
+ <th
99
+ class="calendar-cell"
100
+ >
101
+ <div
102
+ class="calendar-header-cell-inner"
103
+ >
104
+ Th
105
+ </div>
106
+ </th>
107
+ <th
108
+ class="calendar-cell"
109
+ >
110
+ <div
111
+ class="calendar-header-cell-inner"
112
+ >
113
+ Fr
114
+ </div>
115
+ </th>
116
+ <th
117
+ class="calendar-cell"
118
+ >
119
+ <div
120
+ class="calendar-header-cell-inner"
121
+ >
122
+ Sa
123
+ </div>
124
+ </th>
125
+ <th
126
+ class="calendar-cell"
127
+ >
128
+ <div
129
+ class="calendar-header-cell-inner"
130
+ >
131
+ Su
132
+ </div>
133
+ </th>
134
+ </tr>
135
+ </thead>
136
+ <tbody>
137
+ <tr>
138
+ <td
139
+ class="calendar-cell previous last"
140
+ title="2/28/2022"
141
+ >
142
+ <div
143
+ class="calendar-cell-inner"
144
+ >
145
+ 28
146
+ </div>
147
+ </td>
148
+ <td
149
+ class="calendar-cell"
150
+ title="3/1/2022"
151
+ >
152
+ <div
153
+ class="calendar-cell-inner"
154
+ >
155
+ 1
156
+ </div>
157
+ </td>
158
+ <td
159
+ class="calendar-cell"
160
+ title="3/2/2022"
161
+ >
162
+ <div
163
+ class="calendar-cell-inner"
164
+ >
165
+ 2
166
+ </div>
167
+ </td>
168
+ <td
169
+ class="calendar-cell"
170
+ title="3/3/2022"
171
+ >
172
+ <div
173
+ class="calendar-cell-inner"
174
+ >
175
+ 3
176
+ </div>
177
+ </td>
178
+ <td
179
+ class="calendar-cell"
180
+ title="3/4/2022"
181
+ >
182
+ <div
183
+ class="calendar-cell-inner"
184
+ >
185
+ 4
186
+ </div>
187
+ </td>
188
+ <td
189
+ class="calendar-cell"
190
+ title="3/5/2022"
191
+ >
192
+ <div
193
+ class="calendar-cell-inner"
194
+ >
195
+ 5
196
+ </div>
197
+ </td>
198
+ <td
199
+ class="calendar-cell"
200
+ title="3/6/2022"
201
+ >
202
+ <div
203
+ class="calendar-cell-inner"
204
+ >
205
+ 6
206
+ </div>
207
+ </td>
208
+ </tr>
209
+ <tr>
210
+ <td
211
+ class="calendar-cell"
212
+ title="3/7/2022"
213
+ >
214
+ <div
215
+ class="calendar-cell-inner"
216
+ >
217
+ 7
218
+ </div>
219
+ </td>
220
+ <td
221
+ class="calendar-cell"
222
+ title="3/8/2022"
223
+ >
224
+ <div
225
+ class="calendar-cell-inner"
226
+ >
227
+ 8
228
+ </div>
229
+ </td>
230
+ <td
231
+ class="calendar-cell"
232
+ title="3/9/2022"
233
+ >
234
+ <div
235
+ class="calendar-cell-inner"
236
+ >
237
+ 9
238
+ </div>
239
+ </td>
240
+ <td
241
+ class="calendar-cell"
242
+ title="3/10/2022"
243
+ >
244
+ <div
245
+ class="calendar-cell-inner"
246
+ >
247
+ 10
248
+ </div>
249
+ </td>
250
+ <td
251
+ class="calendar-cell"
252
+ title="3/11/2022"
253
+ >
254
+ <div
255
+ class="calendar-cell-inner"
256
+ >
257
+ 11
258
+ </div>
259
+ </td>
260
+ <td
261
+ class="calendar-cell"
262
+ title="3/12/2022"
263
+ >
264
+ <div
265
+ class="calendar-cell-inner"
266
+ >
267
+ 12
268
+ </div>
269
+ </td>
270
+ <td
271
+ class="calendar-cell"
272
+ title="3/13/2022"
273
+ >
274
+ <div
275
+ class="calendar-cell-inner"
276
+ >
277
+ 13
278
+ </div>
279
+ </td>
280
+ </tr>
281
+ <tr>
282
+ <td
283
+ class="calendar-cell"
284
+ title="3/14/2022"
285
+ >
286
+ <div
287
+ class="calendar-cell-inner"
288
+ >
289
+ 14
290
+ </div>
291
+ </td>
292
+ <td
293
+ class="calendar-cell"
294
+ title="3/15/2022"
295
+ >
296
+ <div
297
+ class="calendar-cell-inner"
298
+ >
299
+ 15
300
+ </div>
301
+ </td>
302
+ <td
303
+ class="calendar-cell"
304
+ title="3/16/2022"
305
+ >
306
+ <div
307
+ class="calendar-cell-inner"
308
+ >
309
+ 16
310
+ </div>
311
+ </td>
312
+ <td
313
+ class="calendar-cell"
314
+ title="3/17/2022"
315
+ >
316
+ <div
317
+ class="calendar-cell-inner"
318
+ >
319
+ 17
320
+ </div>
321
+ </td>
322
+ <td
323
+ class="calendar-cell"
324
+ title="3/18/2022"
325
+ >
326
+ <div
327
+ class="calendar-cell-inner"
328
+ >
329
+ 18
330
+ </div>
331
+ </td>
332
+ <td
333
+ class="calendar-cell"
334
+ title="3/19/2022"
335
+ >
336
+ <div
337
+ class="calendar-cell-inner"
338
+ >
339
+ 19
340
+ </div>
341
+ </td>
342
+ <td
343
+ class="calendar-cell"
344
+ title="3/20/2022"
345
+ >
346
+ <div
347
+ class="calendar-cell-inner"
348
+ >
349
+ 20
350
+ </div>
351
+ </td>
352
+ </tr>
353
+ <tr>
354
+ <td
355
+ class="calendar-cell"
356
+ title="3/21/2022"
357
+ >
358
+ <div
359
+ class="calendar-cell-inner"
360
+ >
361
+ 21
362
+ </div>
363
+ </td>
364
+ <td
365
+ class="calendar-cell"
366
+ title="3/22/2022"
367
+ >
368
+ <div
369
+ class="calendar-cell-inner"
370
+ >
371
+ 22
372
+ </div>
373
+ </td>
374
+ <td
375
+ class="calendar-cell today"
376
+ title="3/23/2022"
377
+ >
378
+ <div
379
+ class="calendar-cell-inner"
380
+ >
381
+ 23
382
+ </div>
383
+ </td>
384
+ <td
385
+ class="calendar-cell"
386
+ title="3/24/2022"
387
+ >
388
+ <div
389
+ class="calendar-cell-inner"
390
+ >
391
+ 24
392
+ </div>
393
+ </td>
394
+ <td
395
+ class="calendar-cell"
396
+ title="3/25/2022"
397
+ >
398
+ <div
399
+ class="calendar-cell-inner"
400
+ >
401
+ 25
402
+ </div>
403
+ </td>
404
+ <td
405
+ class="calendar-cell"
406
+ title="3/26/2022"
407
+ >
408
+ <div
409
+ class="calendar-cell-inner"
410
+ >
411
+ 26
412
+ </div>
413
+ </td>
414
+ <td
415
+ class="calendar-cell"
416
+ title="3/27/2022"
417
+ >
418
+ <div
419
+ class="calendar-cell-inner"
420
+ >
421
+ 27
422
+ </div>
423
+ </td>
424
+ </tr>
425
+ <tr>
426
+ <td
427
+ class="calendar-cell"
428
+ title="3/28/2022"
429
+ >
430
+ <div
431
+ class="calendar-cell-inner"
432
+ >
433
+ 28
434
+ </div>
435
+ </td>
436
+ <td
437
+ class="calendar-cell"
438
+ title="3/29/2022"
439
+ >
440
+ <div
441
+ class="calendar-cell-inner"
442
+ >
443
+ 29
444
+ </div>
445
+ </td>
446
+ <td
447
+ class="calendar-cell"
448
+ title="3/30/2022"
449
+ >
450
+ <div
451
+ class="calendar-cell-inner"
452
+ >
453
+ 30
454
+ </div>
455
+ </td>
456
+ <td
457
+ class="calendar-cell last"
458
+ title="3/31/2022"
459
+ >
460
+ <div
461
+ class="calendar-cell-inner"
462
+ >
463
+ 31
464
+ </div>
465
+ </td>
466
+ <td
467
+ class="calendar-cell next"
468
+ title="4/1/2022"
469
+ >
470
+ <div
471
+ class="calendar-cell-inner"
472
+ >
473
+ 1
474
+ </div>
475
+ </td>
476
+ <td
477
+ class="calendar-cell next"
478
+ title="4/2/2022"
479
+ >
480
+ <div
481
+ class="calendar-cell-inner"
482
+ >
483
+ 2
484
+ </div>
485
+ </td>
486
+ <td
487
+ class="calendar-cell next"
488
+ title="4/3/2022"
489
+ >
490
+ <div
491
+ class="calendar-cell-inner"
492
+ >
493
+ 3
494
+ </div>
495
+ </td>
496
+ </tr>
497
+ <tr>
498
+ <td
499
+ class="calendar-cell next"
500
+ title="4/4/2022"
501
+ >
502
+ <div
503
+ class="calendar-cell-inner"
504
+ >
505
+ 4
506
+ </div>
507
+ </td>
508
+ <td
509
+ class="calendar-cell next"
510
+ title="4/5/2022"
511
+ >
512
+ <div
513
+ class="calendar-cell-inner"
514
+ >
515
+ 5
516
+ </div>
517
+ </td>
518
+ <td
519
+ class="calendar-cell next"
520
+ title="4/6/2022"
521
+ >
522
+ <div
523
+ class="calendar-cell-inner"
524
+ >
525
+ 6
526
+ </div>
527
+ </td>
528
+ <td
529
+ class="calendar-cell next"
530
+ title="4/7/2022"
531
+ >
532
+ <div
533
+ class="calendar-cell-inner"
534
+ >
535
+ 7
536
+ </div>
537
+ </td>
538
+ <td
539
+ class="calendar-cell next"
540
+ title="4/8/2022"
541
+ >
542
+ <div
543
+ class="calendar-cell-inner"
544
+ >
545
+ 8
546
+ </div>
547
+ </td>
548
+ <td
549
+ class="calendar-cell next"
550
+ title="4/9/2022"
551
+ >
552
+ <div
553
+ class="calendar-cell-inner"
554
+ >
555
+ 9
556
+ </div>
557
+ </td>
558
+ <td
559
+ class="calendar-cell next"
560
+ title="4/10/2022"
561
+ >
562
+ <div
563
+ class="calendar-cell-inner"
564
+ >
565
+ 10
566
+ </div>
567
+ </td>
568
+ </tr>
569
+ </tbody>
570
+ </table>
571
+ </div>
572
+ </div>
573
+ `;
@@ -0,0 +1,3 @@
1
+ import { CCallout } from './CCallout'
2
+
3
+ export { CCallout }
@@ -0,0 +1,25 @@
1
+ import { CCard } from './CCard'
2
+ import { CCardBody } from './CCardBody'
3
+ import { CCardFooter } from './CCardFooter'
4
+ import { CCardGroup } from './CCardGroup'
5
+ import { CCardHeader } from './CCardHeader'
6
+ import { CCardImage } from './CCardImage'
7
+ import { CCardImageOverlay } from './CCardImageOverlay'
8
+ import { CCardLink } from './CCardLink'
9
+ import { CCardSubtitle } from './CCardSubtitle'
10
+ import { CCardText } from './CCardText'
11
+ import { CCardTitle } from './CCardTitle'
12
+
13
+ export {
14
+ CCard,
15
+ CCardBody,
16
+ CCardFooter,
17
+ CCardGroup,
18
+ CCardHeader,
19
+ CCardImage,
20
+ CCardImageOverlay,
21
+ CCardLink,
22
+ CCardSubtitle,
23
+ CCardText,
24
+ CCardTitle,
25
+ }
@@ -0,0 +1,5 @@
1
+ import { CCarousel } from './CCarousel'
2
+ import { CCarouselCaption } from './CCarouselCaption'
3
+ import { CCarouselItem } from './CCarouselItem'
4
+
5
+ export { CCarousel, CCarouselCaption, CCarouselItem }
@@ -0,0 +1,3 @@
1
+ import { CCloseButton } from './CCloseButton'
2
+
3
+ export { CCloseButton }
@@ -98,6 +98,7 @@ export const CCollapse = forwardRef<HTMLDivElement, CCollapseProps>(
98
98
  return (
99
99
  <CSSTransition
100
100
  in={visible}
101
+ nodeRef={collapseRef}
101
102
  onEntering={onEntering}
102
103
  onEntered={onEntered}
103
104
  onExit={onExit}
@@ -0,0 +1,3 @@
1
+ import { CCollapse } from './CCollapse'
2
+
3
+ export { CCollapse }
@@ -1,6 +1,7 @@
1
1
  import React, { forwardRef } from 'react'
2
2
  import PropTypes from 'prop-types'
3
- import { CDateRangePicker, CDateRangePickerProps } from '../daterangepicker/CDateRangePicker'
3
+
4
+ import { CDateRangePicker, CDateRangePickerProps } from '../date-range-picker/CDateRangePicker'
4
5
 
5
6
  export interface CDatePickerProps
6
7
  extends Omit<
@@ -21,7 +22,7 @@ export interface CDatePickerProps
21
22
  /**
22
23
  * Callback fired when the date changed.
23
24
  */
24
- onDateChange?: (date: Date | null) => void
25
+ onDateChange?: (date: Date | null, formatedDate?: string | undefined) => void
25
26
  }
26
27
 
27
28
  export const CDatePicker = forwardRef<HTMLDivElement | HTMLLIElement, CDatePickerProps>(
@@ -0,0 +1,9 @@
1
+ import * as React from 'react'
2
+ import { render } from '@testing-library/react'
3
+ import '@testing-library/jest-dom/extend-expect'
4
+ import { CDatePicker } from '../CDatePicker'
5
+
6
+ test('loads and displays CDatePicker component', async () => {
7
+ const { container } = render(<CDatePicker />)
8
+ expect(container).toMatchSnapshot()
9
+ })