@telus-uds/components-web 1.2.0 → 1.4.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 (140) hide show
  1. package/CHANGELOG.md +34 -2
  2. package/lib/Breadcrumbs/Breadcrumbs.js +247 -0
  3. package/lib/Breadcrumbs/Item/Item.js +165 -0
  4. package/lib/Breadcrumbs/index.js +15 -0
  5. package/lib/Callout/Callout.js +121 -0
  6. package/lib/Callout/index.js +13 -0
  7. package/lib/DatePicker/CalendarContainer.js +221 -0
  8. package/lib/DatePicker/DatePicker.js +329 -0
  9. package/lib/DatePicker/dictionary.js +134 -0
  10. package/lib/DatePicker/index.js +13 -0
  11. package/lib/DatePicker/reactDatesCss.js +12 -0
  12. package/lib/ExpandCollapseMini/ExpandCollapseMini.js +75 -0
  13. package/lib/ExpandCollapseMini/ExpandCollapseMiniControl.js +95 -0
  14. package/lib/ExpandCollapseMini/index.js +13 -0
  15. package/lib/Footnote/Footnote.js +571 -0
  16. package/lib/Footnote/FootnoteLink.js +149 -0
  17. package/lib/Footnote/dictionary.js +19 -0
  18. package/lib/Footnote/index.js +16 -0
  19. package/lib/OrderedList/Item.js +162 -0
  20. package/lib/OrderedList/ItemBase.js +42 -0
  21. package/lib/OrderedList/OrderedList.js +94 -0
  22. package/lib/OrderedList/OrderedListBase.js +68 -0
  23. package/lib/OrderedList/constants.js +9 -0
  24. package/lib/OrderedList/index.js +16 -0
  25. package/lib/PreviewCard/AuthorDate.js +64 -0
  26. package/lib/PreviewCard/PreviewCard.js +236 -0
  27. package/lib/PreviewCard/index.js +13 -0
  28. package/lib/PriceLockup/PriceLockup.js +237 -0
  29. package/lib/PriceLockup/index.js +13 -0
  30. package/lib/PriceLockup/tokens.js +131 -0
  31. package/lib/ResponsiveImage/ResponsiveImage.js +115 -0
  32. package/lib/ResponsiveImage/index.js +13 -0
  33. package/lib/Ribbon/Ribbon.js +0 -1
  34. package/lib/Span/Span.js +88 -0
  35. package/lib/Span/index.js +13 -0
  36. package/lib/index.js +91 -1
  37. package/lib/shared/FullBleedContent/FullBleedContent.js +121 -0
  38. package/lib/shared/FullBleedContent/getFullBleedBorderRadius.js +73 -0
  39. package/lib/shared/FullBleedContent/index.js +29 -0
  40. package/lib/shared/FullBleedContent/useFullBleedContentProps.js +73 -0
  41. package/lib/utils/index.js +32 -0
  42. package/lib/utils/logger.js +31 -0
  43. package/lib/utils/media.js +54 -0
  44. package/lib/utils/renderStructuredContent.js +89 -0
  45. package/lib/utils/useTypographyTheme.js +32 -0
  46. package/lib-module/Breadcrumbs/Breadcrumbs.js +228 -0
  47. package/lib-module/Breadcrumbs/Item/Item.js +141 -0
  48. package/lib-module/Breadcrumbs/index.js +1 -0
  49. package/lib-module/Callout/Callout.js +106 -0
  50. package/lib-module/Callout/index.js +2 -0
  51. package/lib-module/DatePicker/CalendarContainer.js +208 -0
  52. package/lib-module/DatePicker/DatePicker.js +302 -0
  53. package/lib-module/DatePicker/dictionary.js +127 -0
  54. package/lib-module/DatePicker/index.js +2 -0
  55. package/lib-module/DatePicker/reactDatesCss.js +3 -0
  56. package/lib-module/ExpandCollapseMini/ExpandCollapseMini.js +56 -0
  57. package/lib-module/ExpandCollapseMini/ExpandCollapseMiniControl.js +80 -0
  58. package/lib-module/ExpandCollapseMini/index.js +2 -0
  59. package/lib-module/Footnote/Footnote.js +541 -0
  60. package/lib-module/Footnote/FootnoteLink.js +130 -0
  61. package/lib-module/Footnote/dictionary.js +12 -0
  62. package/lib-module/Footnote/index.js +4 -0
  63. package/lib-module/OrderedList/Item.js +139 -0
  64. package/lib-module/OrderedList/ItemBase.js +28 -0
  65. package/lib-module/OrderedList/OrderedList.js +71 -0
  66. package/lib-module/OrderedList/OrderedListBase.js +48 -0
  67. package/lib-module/OrderedList/constants.js +2 -0
  68. package/lib-module/OrderedList/index.js +4 -0
  69. package/lib-module/PreviewCard/AuthorDate.js +53 -0
  70. package/lib-module/PreviewCard/PreviewCard.js +211 -0
  71. package/lib-module/PreviewCard/index.js +2 -0
  72. package/lib-module/PriceLockup/PriceLockup.js +213 -0
  73. package/lib-module/PriceLockup/index.js +2 -0
  74. package/lib-module/PriceLockup/tokens.js +120 -0
  75. package/lib-module/ResponsiveImage/ResponsiveImage.js +100 -0
  76. package/lib-module/ResponsiveImage/index.js +2 -0
  77. package/lib-module/Ribbon/Ribbon.js +1 -2
  78. package/lib-module/Span/Span.js +70 -0
  79. package/lib-module/Span/index.js +2 -0
  80. package/lib-module/index.js +10 -0
  81. package/lib-module/shared/FullBleedContent/FullBleedContent.js +106 -0
  82. package/lib-module/shared/FullBleedContent/getFullBleedBorderRadius.js +65 -0
  83. package/lib-module/shared/FullBleedContent/index.js +4 -0
  84. package/lib-module/shared/FullBleedContent/useFullBleedContentProps.js +65 -0
  85. package/lib-module/utils/index.js +5 -1
  86. package/lib-module/utils/logger.js +18 -0
  87. package/lib-module/utils/media.js +46 -0
  88. package/lib-module/utils/renderStructuredContent.js +77 -0
  89. package/lib-module/utils/useTypographyTheme.js +24 -0
  90. package/package.json +9 -4
  91. package/src/Breadcrumbs/Breadcrumbs.jsx +222 -0
  92. package/src/Breadcrumbs/Item/Item.jsx +127 -0
  93. package/src/Breadcrumbs/index.js +1 -0
  94. package/src/Callout/Callout.jsx +76 -0
  95. package/src/Callout/index.js +3 -0
  96. package/src/DatePicker/CalendarContainer.jsx +210 -0
  97. package/src/DatePicker/DatePicker.jsx +303 -0
  98. package/src/DatePicker/dictionary.js +92 -0
  99. package/src/DatePicker/index.js +3 -0
  100. package/src/DatePicker/reactDatesCss.js +892 -0
  101. package/src/ExpandCollapseMini/ExpandCollapseMini.jsx +48 -0
  102. package/src/ExpandCollapseMini/ExpandCollapseMiniControl.jsx +67 -0
  103. package/src/ExpandCollapseMini/index.js +3 -0
  104. package/src/Footnote/Footnote.jsx +468 -0
  105. package/src/Footnote/FootnoteLink.jsx +120 -0
  106. package/src/Footnote/dictionary.js +12 -0
  107. package/src/Footnote/index.js +6 -0
  108. package/src/OrderedList/Item.jsx +121 -0
  109. package/src/OrderedList/ItemBase.jsx +18 -0
  110. package/src/OrderedList/OrderedList.jsx +61 -0
  111. package/src/OrderedList/OrderedListBase.jsx +38 -0
  112. package/src/OrderedList/constants.js +2 -0
  113. package/src/OrderedList/index.js +6 -0
  114. package/src/PreviewCard/AuthorDate.jsx +31 -0
  115. package/src/PreviewCard/PreviewCard.jsx +201 -0
  116. package/src/PreviewCard/index.js +3 -0
  117. package/src/PriceLockup/PriceLockup.jsx +210 -0
  118. package/src/PriceLockup/index.js +3 -0
  119. package/src/PriceLockup/tokens.js +58 -0
  120. package/src/ResponsiveImage/ResponsiveImage.jsx +77 -0
  121. package/src/ResponsiveImage/index.js +3 -0
  122. package/src/Ribbon/Ribbon.jsx +0 -1
  123. package/src/Span/Span.jsx +66 -0
  124. package/src/Span/index.js +3 -0
  125. package/src/index.js +10 -0
  126. package/src/shared/FullBleedContent/FullBleedContent.jsx +90 -0
  127. package/src/shared/FullBleedContent/getFullBleedBorderRadius.js +55 -0
  128. package/src/shared/FullBleedContent/index.js +6 -0
  129. package/src/shared/FullBleedContent/useFullBleedContentProps.js +63 -0
  130. package/src/utils/index.js +5 -1
  131. package/src/utils/logger.js +20 -0
  132. package/src/utils/media.js +40 -0
  133. package/src/utils/renderStructuredContent.jsx +73 -0
  134. package/src/utils/useTypographyTheme.js +14 -0
  135. package/types/Callout.d.ts +13 -0
  136. package/types/DatePicker.d.ts +21 -0
  137. package/types/Footnote.d.ts +21 -0
  138. package/types/FootnoteLink.d.ts +20 -0
  139. package/types/PriceLockup.d.ts +22 -0
  140. package/types/common.d.ts +14 -0
@@ -0,0 +1,892 @@
1
+ import { css } from 'styled-components'
2
+
3
+ const defaultReactDatesCss = css`
4
+ .PresetDateRangePicker_panel {
5
+ padding: 0 22px 11px;
6
+ }
7
+ .PresetDateRangePicker_button {
8
+ position: relative;
9
+ height: 100%;
10
+ text-align: center;
11
+ background: 0 0;
12
+ border: 2px solid #00a699;
13
+ color: #00a699;
14
+ padding: 4px 12px;
15
+ margin-right: 8px;
16
+ font: inherit;
17
+ font-weight: 700;
18
+ line-height: normal;
19
+ overflow: visible;
20
+ -moz-box-sizing: border-box;
21
+ box-sizing: border-box;
22
+ cursor: pointer;
23
+ }
24
+ .PresetDateRangePicker_button:active {
25
+ outline: 0;
26
+ }
27
+ .PresetDateRangePicker_button__selected {
28
+ color: #fff;
29
+ background: #00a699;
30
+ }
31
+ .SingleDatePickerInput {
32
+ display: inline-block;
33
+ background-color: #fff;
34
+ }
35
+ .SingleDatePickerInput__withBorder {
36
+ border-radius: 2px;
37
+ border: 1px solid #dbdbdb;
38
+ }
39
+ .SingleDatePickerInput__rtl {
40
+ direction: rtl;
41
+ }
42
+ .SingleDatePickerInput__disabled {
43
+ background-color: #f2f2f2;
44
+ }
45
+ .SingleDatePickerInput__block {
46
+ display: block;
47
+ }
48
+ .SingleDatePickerInput__showClearDate {
49
+ padding-right: 30px;
50
+ }
51
+ .SingleDatePickerInput_clearDate {
52
+ background: 0 0;
53
+ border: 0;
54
+ color: inherit;
55
+ font: inherit;
56
+ line-height: normal;
57
+ overflow: visible;
58
+ cursor: pointer;
59
+ padding: 10px;
60
+ margin: 0 10px 0 5px;
61
+ position: absolute;
62
+ right: 0;
63
+ top: 50%;
64
+ -webkit-transform: translateY(-50%);
65
+ -ms-transform: translateY(-50%);
66
+ transform: translateY(-50%);
67
+ }
68
+ .SingleDatePickerInput_clearDate__default:focus,
69
+ .SingleDatePickerInput_clearDate__default:hover {
70
+ background: #dbdbdb;
71
+ border-radius: 50%;
72
+ }
73
+ .SingleDatePickerInput_clearDate__small {
74
+ padding: 6px;
75
+ }
76
+ .SingleDatePickerInput_clearDate__hide {
77
+ visibility: hidden;
78
+ }
79
+ .SingleDatePickerInput_clearDate_svg {
80
+ fill: #82888a;
81
+ height: 12px;
82
+ width: 15px;
83
+ vertical-align: middle;
84
+ }
85
+ .SingleDatePickerInput_clearDate_svg__small {
86
+ height: 9px;
87
+ }
88
+ .SingleDatePickerInput_calendarIcon {
89
+ background: 0 0;
90
+ border: 0;
91
+ color: inherit;
92
+ font: inherit;
93
+ line-height: normal;
94
+ overflow: visible;
95
+ cursor: pointer;
96
+ display: inline-block;
97
+ vertical-align: middle;
98
+ padding: 10px;
99
+ margin: 0 5px 0 10px;
100
+ }
101
+ .SingleDatePickerInput_calendarIcon_svg {
102
+ fill: #82888a;
103
+ height: 15px;
104
+ width: 14px;
105
+ vertical-align: middle;
106
+ }
107
+ .SingleDatePicker {
108
+ position: relative;
109
+ display: inline-block;
110
+ }
111
+ .SingleDatePicker__block {
112
+ display: block;
113
+ }
114
+ .SingleDatePicker_picker {
115
+ z-index: 1;
116
+ background-color: #fff;
117
+ position: absolute;
118
+ }
119
+ .SingleDatePicker_picker__rtl {
120
+ direction: rtl;
121
+ }
122
+ .SingleDatePicker_picker__directionLeft {
123
+ left: 0;
124
+ }
125
+ .SingleDatePicker_picker__directionRight {
126
+ right: 0;
127
+ }
128
+ .SingleDatePicker_picker__portal {
129
+ background-color: rgba(0, 0, 0, 0.3);
130
+ position: fixed;
131
+ top: 0;
132
+ left: 0;
133
+ height: 100%;
134
+ width: 100%;
135
+ }
136
+ .SingleDatePicker_picker__fullScreenPortal {
137
+ background-color: #fff;
138
+ }
139
+ .SingleDatePicker_closeButton {
140
+ background: 0 0;
141
+ border: 0;
142
+ color: inherit;
143
+ font: inherit;
144
+ line-height: normal;
145
+ overflow: visible;
146
+ cursor: pointer;
147
+ position: absolute;
148
+ top: 0;
149
+ right: 0;
150
+ padding: 15px;
151
+ z-index: 2;
152
+ }
153
+ .SingleDatePicker_closeButton:focus,
154
+ .SingleDatePicker_closeButton:hover {
155
+ color: darken(#cacccd, 10%);
156
+ text-decoration: none;
157
+ }
158
+ .SingleDatePicker_closeButton_svg {
159
+ height: 15px;
160
+ width: 15px;
161
+ fill: #cacccd;
162
+ }
163
+ .DayPickerKeyboardShortcuts_buttonReset {
164
+ background: 0 0;
165
+ border: 0;
166
+ border-radius: 0;
167
+ color: inherit;
168
+ font: inherit;
169
+ line-height: normal;
170
+ overflow: visible;
171
+ padding: 0;
172
+ cursor: pointer;
173
+ font-size: 14px;
174
+ }
175
+ .DayPickerKeyboardShortcuts_buttonReset:active {
176
+ outline: 0;
177
+ }
178
+ .DayPickerKeyboardShortcuts_show {
179
+ width: 33px;
180
+ height: 26px;
181
+ position: absolute;
182
+ z-index: 2;
183
+ }
184
+ .DayPickerKeyboardShortcuts_show::before {
185
+ content: '';
186
+ display: block;
187
+ position: absolute;
188
+ }
189
+ .DayPickerKeyboardShortcuts_show__bottomRight {
190
+ bottom: 0;
191
+ right: 0;
192
+ }
193
+ .DayPickerKeyboardShortcuts_show__bottomRight::before {
194
+ border-top: 26px solid transparent;
195
+ border-right: 33px solid #00a699;
196
+ bottom: 0;
197
+ right: 0;
198
+ }
199
+ .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {
200
+ border-right: 33px solid #008489;
201
+ }
202
+ .DayPickerKeyboardShortcuts_show__topRight {
203
+ top: 0;
204
+ right: 0;
205
+ }
206
+ .DayPickerKeyboardShortcuts_show__topRight::before {
207
+ border-bottom: 26px solid transparent;
208
+ border-right: 33px solid #00a699;
209
+ top: 0;
210
+ right: 0;
211
+ }
212
+ .DayPickerKeyboardShortcuts_show__topRight:hover::before {
213
+ border-right: 33px solid #008489;
214
+ }
215
+ .DayPickerKeyboardShortcuts_show__topLeft {
216
+ top: 0;
217
+ left: 0;
218
+ }
219
+ .DayPickerKeyboardShortcuts_show__topLeft::before {
220
+ border-bottom: 26px solid transparent;
221
+ border-left: 33px solid #00a699;
222
+ top: 0;
223
+ left: 0;
224
+ }
225
+ .DayPickerKeyboardShortcuts_show__topLeft:hover::before {
226
+ border-left: 33px solid #008489;
227
+ }
228
+ .DayPickerKeyboardShortcuts_showSpan {
229
+ color: #fff;
230
+ position: absolute;
231
+ }
232
+ .DayPickerKeyboardShortcuts_showSpan__bottomRight {
233
+ bottom: 0;
234
+ right: 5px;
235
+ }
236
+ .DayPickerKeyboardShortcuts_showSpan__topRight {
237
+ top: 1px;
238
+ right: 5px;
239
+ }
240
+ .DayPickerKeyboardShortcuts_showSpan__topLeft {
241
+ top: 1px;
242
+ left: 5px;
243
+ }
244
+ .DayPickerKeyboardShortcuts_panel {
245
+ overflow: auto;
246
+ background: #fff;
247
+ border: 1px solid #dbdbdb;
248
+ border-radius: 2px;
249
+ position: absolute;
250
+ top: 0;
251
+ bottom: 0;
252
+ right: 0;
253
+ left: 0;
254
+ z-index: 2;
255
+ padding: 22px;
256
+ margin: 33px;
257
+ text-align: left;
258
+ }
259
+ .DayPickerKeyboardShortcuts_title {
260
+ font-size: 16px;
261
+ font-weight: 700;
262
+ margin: 0;
263
+ }
264
+ .DayPickerKeyboardShortcuts_list {
265
+ list-style: none;
266
+ padding: 0;
267
+ font-size: 14px;
268
+ }
269
+ .DayPickerKeyboardShortcuts_close {
270
+ position: absolute;
271
+ right: 22px;
272
+ top: 22px;
273
+ z-index: 2;
274
+ }
275
+ .DayPickerKeyboardShortcuts_close:active {
276
+ outline: 0;
277
+ }
278
+ .DayPickerKeyboardShortcuts_closeSvg {
279
+ height: 15px;
280
+ width: 15px;
281
+ fill: #cacccd;
282
+ }
283
+ .DayPickerKeyboardShortcuts_closeSvg:focus,
284
+ .DayPickerKeyboardShortcuts_closeSvg:hover {
285
+ fill: #82888a;
286
+ }
287
+ .CalendarDay {
288
+ -moz-box-sizing: border-box;
289
+ box-sizing: border-box;
290
+ cursor: pointer;
291
+ font-size: 14px;
292
+ text-align: center;
293
+ }
294
+ .CalendarDay:active {
295
+ outline: 0;
296
+ }
297
+ .CalendarDay__defaultCursor {
298
+ cursor: default;
299
+ }
300
+ .CalendarDay__default {
301
+ border: 1px solid #e4e7e7;
302
+ color: #484848;
303
+ background: #fff;
304
+ }
305
+ .CalendarDay__default:hover {
306
+ background: #e4e7e7;
307
+ border: 1px solid #e4e7e7;
308
+ color: inherit;
309
+ }
310
+ .CalendarDay__hovered_offset {
311
+ background: #f4f5f5;
312
+ border: 1px double #e4e7e7;
313
+ color: inherit;
314
+ }
315
+ .CalendarDay__outside {
316
+ border: 0;
317
+ background: #fff;
318
+ color: #484848;
319
+ }
320
+ .CalendarDay__outside:hover {
321
+ border: 0;
322
+ }
323
+ .CalendarDay__blocked_minimum_nights {
324
+ background: #fff;
325
+ border: 1px solid #eceeee;
326
+ color: #cacccd;
327
+ }
328
+ .CalendarDay__blocked_minimum_nights:active,
329
+ .CalendarDay__blocked_minimum_nights:hover {
330
+ background: #fff;
331
+ color: #cacccd;
332
+ }
333
+ .CalendarDay__highlighted_calendar {
334
+ background: #ffe8bc;
335
+ color: #484848;
336
+ }
337
+ .CalendarDay__highlighted_calendar:active,
338
+ .CalendarDay__highlighted_calendar:hover {
339
+ background: #ffce71;
340
+ color: #484848;
341
+ }
342
+ .CalendarDay__selected_span {
343
+ background: #66e2da;
344
+ border: 1px double #33dacd;
345
+ color: #fff;
346
+ }
347
+ .CalendarDay__selected_span:active,
348
+ .CalendarDay__selected_span:hover {
349
+ background: #33dacd;
350
+ border: 1px double #33dacd;
351
+ color: #fff;
352
+ }
353
+ .CalendarDay__selected,
354
+ .CalendarDay__selected:active,
355
+ .CalendarDay__selected:hover {
356
+ background: #00a699;
357
+ border: 1px double #00a699;
358
+ color: #fff;
359
+ }
360
+ .CalendarDay__hovered_span,
361
+ .CalendarDay__hovered_span:hover {
362
+ background: #b2f1ec;
363
+ border: 1px double #80e8e0;
364
+ color: #007a87;
365
+ }
366
+ .CalendarDay__hovered_span:active {
367
+ background: #80e8e0;
368
+ border: 1px double #80e8e0;
369
+ color: #007a87;
370
+ }
371
+ .CalendarDay__blocked_calendar,
372
+ .CalendarDay__blocked_calendar:active,
373
+ .CalendarDay__blocked_calendar:hover {
374
+ background: #cacccd;
375
+ border: 1px solid #cacccd;
376
+ color: #82888a;
377
+ }
378
+ .CalendarDay__blocked_out_of_range,
379
+ .CalendarDay__blocked_out_of_range:active,
380
+ .CalendarDay__blocked_out_of_range:hover {
381
+ background: #fff;
382
+ border: 1px solid #e4e7e7;
383
+ color: #cacccd;
384
+ }
385
+ .CalendarDay__hovered_start_first_possible_end {
386
+ background: #eceeee;
387
+ border: 1px double #eceeee;
388
+ }
389
+ .CalendarDay__hovered_start_blocked_min_nights {
390
+ background: #eceeee;
391
+ border: 1px double #e4e7e7;
392
+ }
393
+ .CalendarMonth {
394
+ background: #fff;
395
+ text-align: center;
396
+ vertical-align: top;
397
+ -webkit-user-select: none;
398
+ -moz-user-select: none;
399
+ -ms-user-select: none;
400
+ user-select: none;
401
+ }
402
+ .CalendarMonth_table {
403
+ border-collapse: collapse;
404
+ border-spacing: 0;
405
+ }
406
+ .CalendarMonth_verticalSpacing {
407
+ border-collapse: separate;
408
+ }
409
+ .CalendarMonth_caption {
410
+ color: #484848;
411
+ font-size: 18px;
412
+ text-align: center;
413
+ padding-top: 22px;
414
+ padding-bottom: 37px;
415
+ caption-side: initial;
416
+ }
417
+ .CalendarMonth_caption__verticalScrollable {
418
+ padding-top: 12px;
419
+ padding-bottom: 7px;
420
+ }
421
+ .CalendarMonthGrid {
422
+ background: #fff;
423
+ text-align: left;
424
+ z-index: 0;
425
+ }
426
+ .CalendarMonthGrid__animating {
427
+ z-index: 1;
428
+ }
429
+ .CalendarMonthGrid__horizontal {
430
+ position: absolute;
431
+ left: 9px;
432
+ }
433
+ .CalendarMonthGrid__vertical,
434
+ .CalendarMonthGrid__vertical_scrollable {
435
+ margin: 0 auto;
436
+ }
437
+ .CalendarMonthGrid_month__horizontal {
438
+ display: inline-block;
439
+ vertical-align: top;
440
+ min-height: 100%;
441
+ }
442
+ .CalendarMonthGrid_month__hideForAnimation {
443
+ position: absolute;
444
+ z-index: -1;
445
+ opacity: 0;
446
+ pointer-events: none;
447
+ }
448
+ .CalendarMonthGrid_month__hidden {
449
+ visibility: hidden;
450
+ }
451
+ .DayPickerNavigation {
452
+ position: relative;
453
+ z-index: 2;
454
+ }
455
+ .DayPickerNavigation__horizontal {
456
+ height: 0;
457
+ }
458
+ .DayPickerNavigation__verticalScrollable_prevNav {
459
+ z-index: 1;
460
+ }
461
+ .DayPickerNavigation__verticalDefault {
462
+ position: absolute;
463
+ width: 100%;
464
+ height: 52px;
465
+ bottom: 0;
466
+ left: 0;
467
+ }
468
+ .DayPickerNavigation__verticalScrollableDefault {
469
+ position: relative;
470
+ }
471
+ .DayPickerNavigation__bottom {
472
+ height: auto;
473
+ }
474
+ .DayPickerNavigation__bottomDefault {
475
+ -webkit-box-pack: justify;
476
+ -ms-flex-pack: justify;
477
+ display: -webkit-box;
478
+ display: -moz-box;
479
+ display: -ms-flexbox;
480
+ display: -webkit-flex;
481
+ display: flex;
482
+ -webkit-justify-content: space-between;
483
+ justify-content: space-between;
484
+ }
485
+ .DayPickerNavigation_button {
486
+ cursor: pointer;
487
+ -webkit-user-select: none;
488
+ -moz-user-select: none;
489
+ -ms-user-select: none;
490
+ user-select: none;
491
+ border: 0;
492
+ padding: 0;
493
+ margin: 0;
494
+ }
495
+ .DayPickerNavigation_button__default {
496
+ border: 1px solid #e4e7e7;
497
+ background-color: #fff;
498
+ color: #757575;
499
+ }
500
+ .DayPickerNavigation_button__default:focus,
501
+ .DayPickerNavigation_button__default:hover {
502
+ border: 1px solid #c4c4c4;
503
+ }
504
+ .DayPickerNavigation_button__default:active {
505
+ background: #f2f2f2;
506
+ }
507
+ .DayPickerNavigation_button__disabled {
508
+ cursor: default;
509
+ border: 1px solid #f2f2f2;
510
+ }
511
+ .DayPickerNavigation_button__disabled:focus,
512
+ .DayPickerNavigation_button__disabled:hover {
513
+ border: 1px solid #f2f2f2;
514
+ }
515
+ .DayPickerNavigation_button__disabled:active {
516
+ background: 0 0;
517
+ }
518
+ .DayPickerNavigation_button__horizontalDefault {
519
+ position: absolute;
520
+ top: 18px;
521
+ line-height: 0.78;
522
+ border-radius: 3px;
523
+ padding: 6px 9px;
524
+ }
525
+ .DayPickerNavigation_bottomButton__horizontalDefault {
526
+ position: static;
527
+ margin: -10px 22px 30px;
528
+ }
529
+ .DayPickerNavigation_leftButton__horizontalDefault {
530
+ left: 22px;
531
+ }
532
+ .DayPickerNavigation_rightButton__horizontalDefault {
533
+ right: 22px;
534
+ }
535
+ .DayPickerNavigation_button__verticalDefault {
536
+ padding: 5px;
537
+ background: #fff;
538
+ box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);
539
+ position: relative;
540
+ display: inline-block;
541
+ text-align: center;
542
+ height: 100%;
543
+ width: 50%;
544
+ }
545
+ .DayPickerNavigation_nextButton__verticalDefault {
546
+ border-left: 0;
547
+ }
548
+ .DayPickerNavigation_nextButton__verticalScrollableDefault,
549
+ .DayPickerNavigation_prevButton__verticalScrollableDefault {
550
+ width: 100%;
551
+ }
552
+ .DayPickerNavigation_svg__horizontal {
553
+ height: 19px;
554
+ width: 19px;
555
+ fill: #82888a;
556
+ display: block;
557
+ }
558
+ .DayPickerNavigation_svg__vertical {
559
+ height: 42px;
560
+ width: 42px;
561
+ fill: #484848;
562
+ }
563
+ .DayPickerNavigation_svg__disabled {
564
+ fill: #f2f2f2;
565
+ }
566
+ .DayPicker {
567
+ background: #fff;
568
+ position: relative;
569
+ text-align: left;
570
+ }
571
+ .DayPicker__horizontal {
572
+ background: #fff;
573
+ }
574
+ .DayPicker__verticalScrollable {
575
+ height: 100%;
576
+ }
577
+ .DayPicker__hidden {
578
+ visibility: hidden;
579
+ }
580
+ .DayPicker__withBorder {
581
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.07);
582
+ border-radius: 3px;
583
+ }
584
+ .DayPicker_portal__horizontal {
585
+ box-shadow: none;
586
+ position: absolute;
587
+ left: 50%;
588
+ top: 50%;
589
+ }
590
+ .DayPicker_portal__vertical {
591
+ position: initial;
592
+ }
593
+ .DayPicker_focusRegion {
594
+ outline: 0;
595
+ }
596
+ .DayPicker_calendarInfo__horizontal,
597
+ .DayPicker_wrapper__horizontal {
598
+ display: inline-block;
599
+ vertical-align: top;
600
+ }
601
+ .DayPicker_weekHeaders {
602
+ position: relative;
603
+ }
604
+ .DayPicker_weekHeaders__horizontal {
605
+ margin-left: 9px;
606
+ }
607
+ .DayPicker_weekHeader {
608
+ color: #757575;
609
+ position: absolute;
610
+ top: 62px;
611
+ z-index: 2;
612
+ text-align: left;
613
+ }
614
+ .DayPicker_weekHeader__vertical {
615
+ left: 50%;
616
+ }
617
+ .DayPicker_weekHeader__verticalScrollable {
618
+ top: 0;
619
+ display: table-row;
620
+ border-bottom: 1px solid #dbdbdb;
621
+ background: #fff;
622
+ margin-left: 0;
623
+ left: 0;
624
+ width: 100%;
625
+ text-align: center;
626
+ }
627
+ .DayPicker_weekHeader_ul {
628
+ list-style: none;
629
+ margin: 1px 0;
630
+ padding-left: 0;
631
+ padding-right: 0;
632
+ font-size: 14px;
633
+ }
634
+ .DayPicker_weekHeader_li {
635
+ display: inline-block;
636
+ text-align: center;
637
+ }
638
+ .DayPicker_transitionContainer {
639
+ position: relative;
640
+ overflow: hidden;
641
+ border-radius: 3px;
642
+ }
643
+ .DayPicker_transitionContainer__horizontal {
644
+ -webkit-transition: height 0.2s ease-in-out;
645
+ -moz-transition: height 0.2s ease-in-out;
646
+ transition: height 0.2s ease-in-out;
647
+ }
648
+ .DayPicker_transitionContainer__vertical {
649
+ width: 100%;
650
+ }
651
+ .DayPicker_transitionContainer__verticalScrollable {
652
+ padding-top: 20px;
653
+ height: 100%;
654
+ position: absolute;
655
+ top: 0;
656
+ bottom: 0;
657
+ right: 0;
658
+ left: 0;
659
+ overflow-y: scroll;
660
+ }
661
+ .DateInput {
662
+ margin: 0;
663
+ padding: 0;
664
+ background: #fff;
665
+ position: relative;
666
+ display: inline-block;
667
+ width: 130px;
668
+ vertical-align: middle;
669
+ }
670
+ .DateInput__small {
671
+ width: 97px;
672
+ }
673
+ .DateInput__block {
674
+ width: 100%;
675
+ }
676
+ .DateInput__disabled {
677
+ background: #f2f2f2;
678
+ color: #dbdbdb;
679
+ }
680
+ .DateInput_input {
681
+ font-weight: 200;
682
+ font-size: 19px;
683
+ line-height: 24px;
684
+ color: #484848;
685
+ background-color: #fff;
686
+ width: 100%;
687
+ padding: 11px 11px 9px;
688
+ border: 0;
689
+ border-top: 0;
690
+ border-right: 0;
691
+ border-bottom: 2px solid transparent;
692
+ border-left: 0;
693
+ border-radius: 0;
694
+ }
695
+ .DateInput_input__small {
696
+ font-size: 15px;
697
+ line-height: 18px;
698
+ letter-spacing: 0.2px;
699
+ padding: 7px 7px 5px;
700
+ }
701
+ .DateInput_input__regular {
702
+ font-weight: auto;
703
+ }
704
+ .DateInput_input__readOnly {
705
+ -webkit-user-select: none;
706
+ -moz-user-select: none;
707
+ -ms-user-select: none;
708
+ user-select: none;
709
+ }
710
+ .DateInput_input__focused {
711
+ outline: 0;
712
+ background: #fff;
713
+ border: 0;
714
+ border-top: 0;
715
+ border-right: 0;
716
+ border-bottom: 2px solid #008489;
717
+ border-left: 0;
718
+ }
719
+ .DateInput_input__disabled {
720
+ background: #f2f2f2;
721
+ font-style: italic;
722
+ }
723
+ .DateInput_screenReaderMessage {
724
+ border: 0;
725
+ clip: rect(0, 0, 0, 0);
726
+ height: 1px;
727
+ margin: -1px;
728
+ overflow: hidden;
729
+ padding: 0;
730
+ position: absolute;
731
+ width: 1px;
732
+ }
733
+ .DateInput_fang {
734
+ position: absolute;
735
+ width: 20px;
736
+ height: 10px;
737
+ left: 22px;
738
+ z-index: 2;
739
+ }
740
+ .DateInput_fangShape {
741
+ fill: #fff;
742
+ }
743
+ .DateInput_fangStroke {
744
+ stroke: #dbdbdb;
745
+ fill: transparent;
746
+ }
747
+ .DateRangePickerInput {
748
+ background-color: #fff;
749
+ display: inline-block;
750
+ }
751
+ .DateRangePickerInput__disabled {
752
+ background: #f2f2f2;
753
+ }
754
+ .DateRangePickerInput__withBorder {
755
+ border-radius: 2px;
756
+ border: 1px solid #dbdbdb;
757
+ }
758
+ .DateRangePickerInput__rtl {
759
+ direction: rtl;
760
+ }
761
+ .DateRangePickerInput__block {
762
+ display: block;
763
+ }
764
+ .DateRangePickerInput__showClearDates {
765
+ padding-right: 30px;
766
+ }
767
+ .DateRangePickerInput_arrow {
768
+ display: inline-block;
769
+ vertical-align: middle;
770
+ color: #484848;
771
+ }
772
+ .DateRangePickerInput_arrow_svg {
773
+ vertical-align: middle;
774
+ fill: #484848;
775
+ height: 24px;
776
+ width: 24px;
777
+ }
778
+ .DateRangePickerInput_clearDates {
779
+ background: 0 0;
780
+ border: 0;
781
+ color: inherit;
782
+ font: inherit;
783
+ line-height: normal;
784
+ overflow: visible;
785
+ cursor: pointer;
786
+ padding: 10px;
787
+ margin: 0 10px 0 5px;
788
+ position: absolute;
789
+ right: 0;
790
+ top: 50%;
791
+ -webkit-transform: translateY(-50%);
792
+ -ms-transform: translateY(-50%);
793
+ transform: translateY(-50%);
794
+ }
795
+ .DateRangePickerInput_clearDates__small {
796
+ padding: 6px;
797
+ }
798
+ .DateRangePickerInput_clearDates_default:focus,
799
+ .DateRangePickerInput_clearDates_default:hover {
800
+ background: #dbdbdb;
801
+ border-radius: 50%;
802
+ }
803
+ .DateRangePickerInput_clearDates__hide {
804
+ visibility: hidden;
805
+ }
806
+ .DateRangePickerInput_clearDates_svg {
807
+ fill: #82888a;
808
+ height: 12px;
809
+ width: 15px;
810
+ vertical-align: middle;
811
+ }
812
+ .DateRangePickerInput_clearDates_svg__small {
813
+ height: 9px;
814
+ }
815
+ .DateRangePickerInput_calendarIcon {
816
+ background: 0 0;
817
+ border: 0;
818
+ color: inherit;
819
+ font: inherit;
820
+ line-height: normal;
821
+ overflow: visible;
822
+ cursor: pointer;
823
+ display: inline-block;
824
+ vertical-align: middle;
825
+ padding: 10px;
826
+ margin: 0 5px 0 10px;
827
+ }
828
+ .DateRangePickerInput_calendarIcon_svg {
829
+ fill: #82888a;
830
+ height: 15px;
831
+ width: 14px;
832
+ vertical-align: middle;
833
+ }
834
+ .DateRangePicker {
835
+ position: relative;
836
+ display: inline-block;
837
+ }
838
+ .DateRangePicker__block {
839
+ display: block;
840
+ }
841
+ .DateRangePicker_picker {
842
+ z-index: 1;
843
+ background-color: #fff;
844
+ position: absolute;
845
+ }
846
+ .DateRangePicker_picker__rtl {
847
+ direction: rtl;
848
+ }
849
+ .DateRangePicker_picker__directionLeft {
850
+ left: 0;
851
+ }
852
+ .DateRangePicker_picker__directionRight {
853
+ right: 0;
854
+ }
855
+ .DateRangePicker_picker__portal {
856
+ background-color: rgba(0, 0, 0, 0.3);
857
+ position: fixed;
858
+ top: 0;
859
+ left: 0;
860
+ height: 100%;
861
+ width: 100%;
862
+ }
863
+ .DateRangePicker_picker__fullScreenPortal {
864
+ background-color: #fff;
865
+ }
866
+ .DateRangePicker_closeButton {
867
+ background: 0 0;
868
+ border: 0;
869
+ color: inherit;
870
+ font: inherit;
871
+ line-height: normal;
872
+ overflow: visible;
873
+ cursor: pointer;
874
+ position: absolute;
875
+ top: 0;
876
+ right: 0;
877
+ padding: 15px;
878
+ z-index: 2;
879
+ }
880
+ .DateRangePicker_closeButton:focus,
881
+ .DateRangePicker_closeButton:hover {
882
+ color: darken(#cacccd, 10%);
883
+ text-decoration: none;
884
+ }
885
+ .DateRangePicker_closeButton_svg {
886
+ height: 15px;
887
+ width: 15px;
888
+ fill: #cacccd;
889
+ }
890
+ `
891
+
892
+ export default defaultReactDatesCss