@newskit-render/shared-components 4.3.0-alpha.1 → 4.4.0-alpha.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 (47) hide show
  1. package/dist/cjs/Calendar/Calendar.d.ts +0 -1
  2. package/dist/cjs/Calendar/Calendar.js +217 -22
  3. package/dist/cjs/Calendar/Calendar.js.map +1 -1
  4. package/dist/cjs/Calendar/CalendarStylesTheme.d.ts +11 -0
  5. package/dist/cjs/Calendar/CalendarStylesTheme.js +48 -65
  6. package/dist/cjs/Calendar/CalendarStylesTheme.js.map +1 -1
  7. package/dist/cjs/Calendar/defaults.js +6 -0
  8. package/dist/cjs/Calendar/defaults.js.map +1 -1
  9. package/dist/cjs/Calendar/style-presets.d.ts +5 -0
  10. package/dist/cjs/Calendar/style-presets.js +5 -0
  11. package/dist/cjs/Calendar/style-presets.js.map +1 -1
  12. package/dist/cjs/Calendar/types.d.ts +15 -2
  13. package/dist/cjs/Calendar/types.js +6 -0
  14. package/dist/cjs/Calendar/types.js.map +1 -1
  15. package/dist/cjs/helpers/setupTests.d.ts +1 -1
  16. package/dist/cjs/helpers/setupTests.js +1 -1
  17. package/dist/cjs/helpers/setupTests.js.map +1 -1
  18. package/dist/cjs/utils/dateUtils.d.ts +3 -0
  19. package/dist/cjs/utils/dateUtils.js +40 -0
  20. package/dist/cjs/utils/dateUtils.js.map +1 -0
  21. package/dist/cjs/utils/index.d.ts +1 -0
  22. package/dist/cjs/utils/index.js +1 -0
  23. package/dist/cjs/utils/index.js.map +1 -1
  24. package/dist/esm/Calendar/Calendar.d.ts +0 -1
  25. package/dist/esm/Calendar/Calendar.js +216 -24
  26. package/dist/esm/Calendar/Calendar.js.map +1 -1
  27. package/dist/esm/Calendar/CalendarStylesTheme.d.ts +11 -0
  28. package/dist/esm/Calendar/CalendarStylesTheme.js +48 -65
  29. package/dist/esm/Calendar/CalendarStylesTheme.js.map +1 -1
  30. package/dist/esm/Calendar/defaults.js +6 -0
  31. package/dist/esm/Calendar/defaults.js.map +1 -1
  32. package/dist/esm/Calendar/style-presets.d.ts +5 -0
  33. package/dist/esm/Calendar/style-presets.js +5 -0
  34. package/dist/esm/Calendar/style-presets.js.map +1 -1
  35. package/dist/esm/Calendar/types.d.ts +15 -2
  36. package/dist/esm/Calendar/types.js +5 -1
  37. package/dist/esm/Calendar/types.js.map +1 -1
  38. package/dist/esm/helpers/setupTests.d.ts +1 -1
  39. package/dist/esm/helpers/setupTests.js +1 -1
  40. package/dist/esm/helpers/setupTests.js.map +1 -1
  41. package/dist/esm/utils/dateUtils.d.ts +3 -0
  42. package/dist/esm/utils/dateUtils.js +34 -0
  43. package/dist/esm/utils/dateUtils.js.map +1 -0
  44. package/dist/esm/utils/index.d.ts +1 -0
  45. package/dist/esm/utils/index.js +1 -0
  46. package/dist/esm/utils/index.js.map +1 -1
  47. package/package.json +5 -4
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
- import 'react-dates/initialize';
3
2
  import { CalendarRangePickerProps } from './types';
4
3
  export declare const Calendar: React.FC<CalendarRangePickerProps>;
@@ -33,36 +33,231 @@ var __importStar = (this && this.__importStar) || function (mod) {
33
33
  __setModuleDefault(result, mod);
34
34
  return result;
35
35
  };
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __generator = (this && this.__generator) || function (thisArg, body) {
46
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
+ function verb(n) { return function (v) { return step([n, v]); }; }
49
+ function step(op) {
50
+ if (f) throw new TypeError("Generator is already executing.");
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
+ if (y = 0, t) op = [op[0] & 2, t.value];
54
+ switch (op[0]) {
55
+ case 0: case 1: t = op; break;
56
+ case 4: _.label++; return { value: op[1], done: false };
57
+ case 5: _.label++; y = op[1]; op = [0]; continue;
58
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
+ default:
60
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
+ if (t[2]) _.ops.pop();
65
+ _.trys.pop(); continue;
66
+ }
67
+ op = body.call(thisArg, _);
68
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
+ }
71
+ };
72
+ var __importDefault = (this && this.__importDefault) || function (mod) {
73
+ return (mod && mod.__esModule) ? mod : { "default": mod };
74
+ };
36
75
  Object.defineProperty(exports, "__esModule", { value: true });
37
76
  exports.Calendar = void 0;
38
77
  var react_1 = __importStar(require("react"));
39
- var react_dates_1 = require("react-dates");
40
- require("react-dates/initialize");
41
- var ChevronRight_1 = require("@emotion-icons/material/ChevronRight");
78
+ var react_datepicker_1 = __importDefault(require("react-datepicker"));
42
79
  var newskit_1 = require("newskit");
80
+ var ChevronRight_1 = require("@emotion-icons/material/ChevronRight");
43
81
  var CalendarStylesTheme_1 = require("./CalendarStylesTheme");
44
82
  var defaults_1 = require("./defaults");
83
+ var types_1 = require("./types");
84
+ var utils_1 = require("../utils");
85
+ // eslint-disable-next-line
86
+ var dateInputValidationPattern = /^[0-9\/]+$/; // Checks for numbers and slashes
45
87
  var IconFilledChevronRight = (0, newskit_1.toNewsKitIcon)(ChevronRight_1.ChevronRight);
46
88
  var Calendar = function (_a) {
47
- var _b = _a.overrides, overrides = _b === void 0 ? defaults_1.calendarDefaults : _b, startDate = _a.startDate, endDate = _a.endDate, numberOfMonths = _a.numberOfMonths, daySize = _a.daySize, setDates = _a.setDates, isFocused = _a.isFocused;
48
- var _c = (0, react_1.useState)(null), focusedInput = _c[0], setFocusedInput = _c[1];
49
- var breakpoint = (0, newskit_1.useBreakpointKey)();
50
- var isMobile = breakpoint === 'xs' || breakpoint === 'sm';
51
- return (react_1.default.createElement(CalendarStylesTheme_1.CalendarStyles, __assign({}, overrides),
52
- react_1.default.createElement(react_dates_1.DateRangePicker, { block: true, noBorder: true, daySize: daySize, numberOfMonths: numberOfMonths, displayFormat: "DD/MM/YYYY", orientation: isMobile ? 'vertical' : 'horizontal', startDateId: "startDate", endDateId: "endDate", startDate: (0, react_dates_1.toMomentObject)(startDate), endDate: (0, react_dates_1.toMomentObject)(endDate), onDatesChange: function (_a) {
53
- var startDate = _a.startDate, endDate = _a.endDate;
54
- var start = startDate ? startDate.toDate() : null;
55
- var end = endDate ? endDate.toDate() : null;
56
- setDates(start, end);
57
- }, focusedInput: focusedInput, onFocusChange: function (focusedInput) {
58
- if (isFocused) {
59
- isFocused(focusedInput);
60
- }
61
- setFocusedInput(focusedInput);
62
- }, customArrowIcon: react_1.default.createElement(IconFilledChevronRight, { overrides: {
63
- size: 'iconSize020',
64
- stylePreset: 'iconCustom',
65
- } }) })));
89
+ var _b = _a.overrides, overrides = _b === void 0 ? defaults_1.calendarDefaults : _b, startDate = _a.startDate, endDate = _a.endDate,
90
+ /* istanbul ignore next */
91
+ _c = _a.numberOfMonths,
92
+ /* istanbul ignore next */
93
+ numberOfMonths = _c === void 0 ? 2 : _c, setDates = _a.setDates;
94
+ var today = new Date();
95
+ today.setHours(0, 0, 0, 0); // For strict date comparison
96
+ var _d = (0, react_1.useState)(false), calendarVisible = _d[0], setCalendarVisible = _d[1];
97
+ var _e = (0, react_1.useState)(''), start = _e[0], setStart = _e[1];
98
+ var _f = (0, react_1.useState)(''), end = _f[0], setEnd = _f[1];
99
+ var _g = (0, react_1.useState)(''), focusedInputName = _g[0], setFocusedInputName = _g[1];
100
+ var _h = (0, react_1.useState)(false), isMonthWithSixRows = _h[0], setIsMonthWithSixRows = _h[1];
101
+ var startDateInputRef = (0, react_1.useRef)(null);
102
+ var endDateInputRef = (0, react_1.useRef)(null);
103
+ var calendarStylesRef = (0, react_1.useRef)(null);
104
+ var datePickerRef = (0, react_1.useRef)(null);
105
+ var handleDatePickerChange = function (dates) {
106
+ var selectedStart = dates[0], selectedEnd = dates[1];
107
+ if (focusedInputName === types_1.DateRangeInputIds.start) {
108
+ if (endDate && selectedStart > endDate) {
109
+ setDates(selectedStart, null);
110
+ }
111
+ else {
112
+ setDates(selectedStart, endDate);
113
+ }
114
+ /* istanbul ignore next */
115
+ if (endDateInputRef === null || endDateInputRef === void 0 ? void 0 : endDateInputRef.current)
116
+ endDateInputRef.current.focus();
117
+ return;
118
+ }
119
+ if (!startDate && !selectedEnd) {
120
+ setDates(today, selectedStart);
121
+ setFocusedInputName('');
122
+ setCalendarVisible(false);
123
+ return;
124
+ }
125
+ var newEndDate = selectedEnd || selectedStart;
126
+ if (startDate && newEndDate < startDate) {
127
+ setDates(today, newEndDate);
128
+ /* istanbul ignore next */
129
+ if (startDateInputRef === null || startDateInputRef === void 0 ? void 0 : startDateInputRef.current)
130
+ startDateInputRef.current.focus();
131
+ return;
132
+ }
133
+ setDates(startDate, newEndDate);
134
+ setCalendarVisible(false);
135
+ setFocusedInputName('');
136
+ };
137
+ var handleDateInputFocus = function (ev) {
138
+ if (ev.target.id === types_1.DateRangeInputIds.start) {
139
+ setFocusedInputName(types_1.DateRangeInputIds.start);
140
+ }
141
+ else {
142
+ setFocusedInputName(types_1.DateRangeInputIds.end);
143
+ }
144
+ if (!calendarVisible) {
145
+ setCalendarVisible(true);
146
+ }
147
+ };
148
+ var handleEndDateInputChange = function (ev) {
149
+ var value = ev.target.value;
150
+ if (!dateInputValidationPattern.test(value))
151
+ return;
152
+ setEnd(value);
153
+ var date = (0, utils_1.compareAndFormatDate)(today, value, startDate);
154
+ if (date) {
155
+ setDates(startDate, date);
156
+ setCalendarVisible(false);
157
+ return;
158
+ }
159
+ setDates(startDate, null);
160
+ };
161
+ var handleStartDateInputChange = function (ev) {
162
+ var value = ev.target.value;
163
+ if (!dateInputValidationPattern.test(value))
164
+ return;
165
+ setStart(value);
166
+ var date = (0, utils_1.compareAndFormatDate)(today, value);
167
+ if (date) {
168
+ setDates(date, endDate);
169
+ setCalendarVisible(false);
170
+ /* istanbul ignore next */
171
+ if (endDateInputRef === null || endDateInputRef === void 0 ? void 0 : endDateInputRef.current)
172
+ endDateInputRef.current.focus();
173
+ return;
174
+ }
175
+ setDates(null, endDate);
176
+ };
177
+ var handleMonthRowsCalculation = function () {
178
+ var _a, _b;
179
+ var monthElements = document.querySelectorAll('.react-datepicker__month');
180
+ /* istanbul ignore next */
181
+ if (monthElements &&
182
+ monthElements.length &&
183
+ (((_a = monthElements[0]) === null || _a === void 0 ? void 0 : _a.clientHeight) > 190 ||
184
+ ((_b = monthElements[1]) === null || _b === void 0 ? void 0 : _b.clientHeight) > 190)) {
185
+ setIsMonthWithSixRows(true);
186
+ return;
187
+ }
188
+ setIsMonthWithSixRows(false);
189
+ };
190
+ var handleOnMonthChange = function () {
191
+ if (!document)
192
+ return;
193
+ handleMonthRowsCalculation();
194
+ };
195
+ var handlePageClick = function (ev) {
196
+ var _a, _b;
197
+ /* istanbul ignore next */
198
+ if (ev.target.nodeName === 'path')
199
+ return;
200
+ if (calendarStylesRef.current &&
201
+ !((_a = ev.target.className) === null || _a === void 0 ? void 0 : _a.includes('react-datepicker')) &&
202
+ !((_b = calendarStylesRef === null || calendarStylesRef === void 0 ? void 0 : calendarStylesRef.current) === null || _b === void 0 ? void 0 : _b.contains(ev.target))) {
203
+ setCalendarVisible(false);
204
+ setFocusedInputName('');
205
+ }
206
+ };
207
+ var handlePageTabKey = function (ev) { return __awaiter(void 0, void 0, void 0, function () {
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ if (!((calendarStylesRef === null || calendarStylesRef === void 0 ? void 0 : calendarStylesRef.current) && ev.key === 'Tab')) return [3 /*break*/, 2];
212
+ // We need this Promise because the document.activeElement is showing the previous focused element otherwise
213
+ // setTimeout without time is moving the execution of this function in the end of the call stack
214
+ // and document.activeElement is updated with the latest focused element
215
+ return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve); })];
216
+ case 1:
217
+ // We need this Promise because the document.activeElement is showing the previous focused element otherwise
218
+ // setTimeout without time is moving the execution of this function in the end of the call stack
219
+ // and document.activeElement is updated with the latest focused element
220
+ _a.sent();
221
+ if (!calendarStylesRef.current.contains(document.activeElement)) {
222
+ setCalendarVisible(false);
223
+ }
224
+ _a.label = 2;
225
+ case 2: return [2 /*return*/];
226
+ }
227
+ });
228
+ }); };
229
+ (0, react_1.useEffect)(function () {
230
+ setStart((0, utils_1.formatDateToDDMMYYYY)(startDate) || '');
231
+ setEnd((0, utils_1.formatDateToDDMMYYYY)(endDate) || '');
232
+ }, [startDate, endDate]);
233
+ (0, react_1.useEffect)(function () {
234
+ if (calendarVisible)
235
+ handleMonthRowsCalculation();
236
+ }, [calendarVisible]);
237
+ (0, react_1.useEffect)(function () {
238
+ document.addEventListener('click', handlePageClick);
239
+ document.addEventListener('keydown', handlePageTabKey);
240
+ return function () {
241
+ document.removeEventListener('click', handlePageClick);
242
+ document.removeEventListener('keydown', handlePageTabKey);
243
+ };
244
+ }, []);
245
+ return (react_1.default.createElement(CalendarStylesTheme_1.CalendarStyles, __assign({}, overrides, { ref: calendarStylesRef, calendarVisible: calendarVisible, isMonthWithSixRows: isMonthWithSixRows }),
246
+ react_1.default.createElement(CalendarStylesTheme_1.InputsWrapper, __assign({}, overrides),
247
+ react_1.default.createElement("div", { className: "input-container" },
248
+ react_1.default.createElement("input", { value: start, onFocus: handleDateInputFocus, onChange: handleStartDateInputChange, id: types_1.DateRangeInputIds.start, name: types_1.DateRangeInputIds.start, ref: startDateInputRef, className: "react-datepicker-input", placeholder: "Start Date", autoComplete: "off", "aria-label": "Start Date", type: "text" }),
249
+ calendarVisible && focusedInputName === types_1.DateRangeInputIds.start && (react_1.default.createElement("div", { className: "chevron" }))),
250
+ react_1.default.createElement("div", { className: "react-datepicker-input-arrow" },
251
+ react_1.default.createElement(IconFilledChevronRight, { overrides: {
252
+ size: 'iconSize020',
253
+ stylePreset: 'iconCustom',
254
+ } })),
255
+ react_1.default.createElement("div", { className: "input-container" },
256
+ react_1.default.createElement("input", { value: end, onFocus: handleDateInputFocus, onChange: handleEndDateInputChange, id: types_1.DateRangeInputIds.end, name: types_1.DateRangeInputIds.end, ref: endDateInputRef, className: "react-datepicker-input", placeholder: "End Date", autoComplete: "off", "aria-label": "End Date", type: "text" }),
257
+ calendarVisible && focusedInputName === types_1.DateRangeInputIds.end && (react_1.default.createElement("div", { className: "chevron" })))),
258
+ react_1.default.createElement(CalendarStylesTheme_1.CalendarWrapper, null,
259
+ react_1.default.createElement(CalendarStylesTheme_1.Container, __assign({ className: "calendar-custom-container", stylePreset: overrides.calendar.calendarCustomContainer.stylePreset }, overrides),
260
+ react_1.default.createElement(react_datepicker_1.default, { selected: startDate, startDate: startDate, endDate: endDate, monthsShown: numberOfMonths, selectsRange: true, inline: true, minDate: today, onChange: handleDatePickerChange, onMonthChange: handleOnMonthChange, disabledKeyboardNavigation: true, showDisabledMonthNavigation: true, ref: datePickerRef })))));
66
261
  };
67
262
  exports.Calendar = Calendar;
68
263
  //# sourceMappingURL=Calendar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.js","sourceRoot":"","sources":["../../../src/Calendar/Calendar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuC;AACvC,2CAAgF;AAChF,kCAA+B;AAC/B,qEAAyF;AACzF,mCAAyD;AACzD,6DAAsD;AACtD,uCAA6C;AAG7C,IAAM,sBAAsB,GAAG,IAAA,uBAAa,EAAC,2BAAkB,CAAC,CAAA;AACzD,IAAM,QAAQ,GAAuC,UAAC,EAQ5D;QAPC,iBAA4B,EAA5B,SAAS,mBAAG,2BAAgB,KAAA,EAC5B,SAAS,eAAA,EACT,OAAO,aAAA,EACP,cAAc,oBAAA,EACd,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,SAAS,eAAA;IAEH,IAAA,KAAkC,IAAA,gBAAQ,EAC9C,IAAI,CACL,EAFM,YAAY,QAAA,EAAE,eAAe,QAEnC,CAAA;IACD,IAAM,UAAU,GAAG,IAAA,0BAAgB,GAAE,CAAA;IACrC,IAAM,QAAQ,GAAG,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,CAAA;IAC3D,OAAO,CACL,8BAAC,oCAAc,eAAK,SAAS;QAC3B,8BAAC,6BAAe,IACd,KAAK,QACL,QAAQ,QACR,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAC,YAAY,EAC1B,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,EACjD,WAAW,EAAC,WAAW,EACvB,SAAS,EAAC,SAAS,EACnB,SAAS,EAAE,IAAA,4BAAc,EAAC,SAAS,CAAC,EACpC,OAAO,EAAE,IAAA,4BAAc,EAAC,OAAO,CAAC,EAChC,aAAa,EAAE,UAAC,EAAsB;oBAApB,SAAS,eAAA,EAAE,OAAO,aAAA;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YAiPpB"}
@@ -1,5 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { CalendarStylesProps } from './types';
3
+ export declare const CalendarWrapper: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const Container: import("@emotion/styled").StyledComponent<import("newskit").BlockProps & import("react").RefAttributes<HTMLDivElement> & {
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ } & CalendarStylesProps, {}, {}>;
10
+ export declare const InputsWrapper: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & CalendarStylesProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
14
  export declare const CalendarStyles: import("@emotion/styled").StyledComponent<{
4
15
  theme?: import("@emotion/react").Theme | undefined;
5
16
  as?: import("react").ElementType<any> | undefined;
@@ -4,125 +4,108 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  return cooked;
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.CalendarStyles = void 0;
7
+ exports.CalendarStyles = exports.InputsWrapper = exports.Container = exports.CalendarWrapper = void 0;
8
8
  var newskit_1 = require("newskit");
9
- exports.CalendarStyles = newskit_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n max-width: 555px;\n ", "\n .PresetDateRangePicker_panel {\n padding: 0 22px 11px;\n }\n .PresetDateRangePicker_button {\n position: relative;\n height: 100%;\n text-align: center;\n background: 0 0;\n border: 2px solid #00a699;\n color: #00a699;\n padding: 4px 12px;\n margin-right: 8px;\n font: inherit;\n font-weight: 700;\n line-height: normal;\n overflow: visible;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n }\n .PresetDateRangePicker_button:active {\n outline: 0;\n }\n .PresetDateRangePicker_button__selected {\n color: #fff;\n background: #00a699;\n }\n .SingleDatePickerInput {\n display: inline-block;\n background-color: #fff;\n }\n .SingleDatePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb;\n }\n .SingleDatePickerInput__rtl {\n direction: rtl;\n }\n .SingleDatePickerInput__disabled {\n background-color: #f2f2f2;\n }\n .SingleDatePickerInput__block {\n display: block;\n }\n .SingleDatePickerInput__showClearDate {\n padding-right: 30px;\n }\n .SingleDatePickerInput_clearDate {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n }\n .SingleDatePickerInput_clearDate__default:focus,\n .SingleDatePickerInput_clearDate__default:hover {\n background: #dbdbdb;\n border-radius: 50%;\n }\n .SingleDatePickerInput_clearDate__small {\n padding: 6px;\n }\n .SingleDatePickerInput_clearDate__hide {\n visibility: hidden;\n }\n .SingleDatePickerInput_clearDate_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle;\n }\n .SingleDatePickerInput_clearDate_svg__small {\n height: 9px;\n }\n .SingleDatePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px;\n }\n .SingleDatePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle;\n }\n .SingleDatePicker {\n position: relative;\n display: inline-block;\n }\n .SingleDatePicker__block {\n display: block;\n }\n .SingleDatePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute;\n }\n .SingleDatePicker_picker__rtl {\n direction: rtl;\n }\n .SingleDatePicker_picker__directionLeft {\n left: 0;\n }\n .SingleDatePicker_picker__directionRight {\n right: 0;\n }\n .SingleDatePicker_picker__portal {\n background-color: rgba(0, 0, 0, 0.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n .SingleDatePicker_picker__fullScreenPortal {\n background-color: #fff;\n }\n .SingleDatePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2;\n }\n .SingleDatePicker_closeButton:focus,\n .SingleDatePicker_closeButton:hover {\n color: darken(#cacccd, 10%);\n text-decoration: none;\n }\n .SingleDatePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n .DayPickerKeyboardShortcuts_buttonReset {\n background: 0 0;\n border: 0;\n border-radius: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0;\n cursor: pointer;\n font-size: 14px;\n display: none;\n }\n .DayPickerKeyboardShortcuts_buttonReset:active {\n outline: 0;\n }\n .DayPickerKeyboardShortcuts_show {\n width: 33px;\n height: 26px;\n position: absolute;\n z-index: 2;\n }\n .DayPickerKeyboardShortcuts_show::before {\n content: '';\n display: block;\n position: absolute;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight {\n bottom: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\n border-top: 26px solid transparent;\n border-right: 33px solid #00a699;\n bottom: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\n border-right: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_show__topRight {\n top: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__topRight::before {\n border-bottom: 26px solid transparent;\n border-right: 33px solid #00a699;\n top: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__topRight:hover::before {\n border-right: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_show__topLeft {\n top: 0;\n left: 0;\n }\n .DayPickerKeyboardShortcuts_show__topLeft::before {\n border-bottom: 26px solid transparent;\n border-left: 33px solid #00a699;\n top: 0;\n left: 0;\n }\n .DayPickerKeyboardShortcuts_show__topLeft:hover::before {\n border-left: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_showSpan {\n color: #fff;\n position: absolute;\n }\n .DayPickerKeyboardShortcuts_showSpan__bottomRight {\n bottom: 0;\n right: 5px;\n }\n .DayPickerKeyboardShortcuts_showSpan__topRight {\n top: 1px;\n right: 5px;\n }\n .DayPickerKeyboardShortcuts_showSpan__topLeft {\n top: 1px;\n left: 5px;\n }\n .DayPickerKeyboardShortcuts_panel {\n overflow: auto;\n background: #fff;\n border: 1px solid #dbdbdb;\n border-radius: 2px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 2;\n padding: 22px;\n margin: 33px;\n text-align: left;\n }\n .DayPickerKeyboardShortcuts_title {\n font-size: 16px;\n font-weight: 700;\n margin: 0;\n }\n .DayPickerKeyboardShortcuts_list {\n list-style: none;\n padding: 0;\n font-size: 14px;\n }\n .DayPickerKeyboardShortcuts_close {\n position: absolute;\n right: 22px;\n top: 22px;\n z-index: 2;\n }\n .DayPickerKeyboardShortcuts_close:active {\n outline: 0;\n }\n .DayPickerKeyboardShortcuts_closeSvg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n .DayPickerKeyboardShortcuts_closeSvg:focus,\n .DayPickerKeyboardShortcuts_closeSvg:hover {\n fill: #82888a;\n }\n .CalendarDay {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 14px;\n text-align: center;\n ", "\n }\n .CalendarDay:active {\n outline: 0;\n }\n .CalendarDay__defaultCursor {\n cursor: default;\n }\n .CalendarDay__default {\n border: 0;\n ", "\n ", "\n }\n .CalendarDay__default:hover {\n ", "\n border: 0;\n color: inherit;\n }\n .CalendarDay__hovered_offset {\n background: #f4f5f5;\n border: 1px double #e4e7e7;\n color: inherit;\n }\n .CalendarDay__outside {\n border: 0;\n background: #fff;\n color: #484848;\n }\n .CalendarDay__outside:hover {\n border: 0;\n }\n .CalendarDay__blocked_minimum_nights {\n background: #fff;\n border: 1px solid #eceeee;\n color: #cacccd;\n }\n .CalendarDay__blocked_minimum_nights:active,\n .CalendarDay__blocked_minimum_nights:hover {\n background: #fff;\n color: #cacccd;\n }\n .CalendarDay__highlighted_calendar {\n background: #ffe8bc;\n color: #484848;\n }\n .CalendarDay__highlighted_calendar:active,\n .CalendarDay__highlighted_calendar:hover {\n background: #ffce71;\n color: #484848;\n }\n .CalendarDay__selected_span {\n ", "\n border: none;\n ", "\n }\n .CalendarDay__selected_span:active,\n .CalendarDay__selected_span:hover {\n ", "\n border: none;\n ", "\n }\n .CalendarDay__selected,\n .CalendarDay__selected:active,\n .CalendarDay__selected:hover {\n ", "\n border: none;\n ", "\n }\n .CalendarDay__hovered_span,\n .CalendarDay__hovered_span:hover {\n ", "\n border: none;\n \n ", "\n }\n .CalendarDay__hovered_span:active {\n background: #80e8e0;\n ", "\n border: none;\n color: #007a87;\n }\n .CalendarDay__blocked_calendar,\n .CalendarDay__blocked_calendar:active,\n .CalendarDay__blocked_calendar:hover {\n border: 0;\n ", "\n }\n .CalendarDay__blocked_out_of_range,\n .CalendarDay__blocked_out_of_range:active,\n .CalendarDay__blocked_out_of_range:hover {\n background: #fff;\n border: 0;\n ", "\n ", "\n }\n .CalendarDay__hovered_start_first_possible_end {\n background: #eceeee;\n border: 1px double #eceeee;\n }\n .CalendarDay__hovered_start_blocked_min_nights {\n background: #eceeee;\n border: 1px double #e4e7e7;\n }\n .CalendarMonth {\n background: #fff;\n text-align: center;\n vertical-align: top;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n padding: 0 !important;\n width; 100%;\n }\n .CalendarMonth_table {\n border-collapse: collapse;\n border-spacing: 0;\n width: 100%;\n max-width: 100%;\n margin-left: 3px;\n }\n .CalendarMonth_verticalSpacing {\n border-collapse: separate;\n }\n .CalendarMonth_caption {\n ", "\n ", "\n width: 100%;\n text-align: center;\n padding-top: 22px;\n padding-bottom: 37px;\n caption-side: initial;\n }\n .CalendarMonth_caption__verticalScrollable {\n padding-top: 12px;\n padding-bottom: 7px;\n }\n .CalendarMonthGrid {\n ", "\n ", "\n text-align: left;\n z-index: 0;\n }\n .CalendarMonthGrid__animating {\n z-index: 1;\n }\n .CalendarMonthGrid__horizontal {\n position: absolute;\n left: 0px;\n margin: 4px;\n }\n .CalendarMonthGrid__vertical,\n .CalendarMonthGrid__vertical_scrollable {\n margin: 0 auto;\n }\n .CalendarMonthGrid_month__horizontal {\n display: inline-block;\n vertical-align: top;\n min-height: 100%;\n }\n .CalendarMonthGrid_month__hideForAnimation {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none;\n }\n .CalendarMonthGrid_month__hidden {\n visibility: hidden;\n }\n .DayPickerNavigation {\n display: flex;\n justify-items: space-between;\n position: relative;\n z-index: 2;\n }\n .DayPickerNavigation__horizontal {\n max-width: 555px;\n height: 0;\n }\n .DayPickerNavigation__verticalScrollable_prevNav {\n z-index: 1;\n }\n .DayPickerNavigation__verticalDefault {\n position: absolute;\n width: 100%;\n height: 52px;\n bottom: -72px;\n left: 0;\n }\n .DayPickerNavigation__verticalScrollableDefault {\n position: relative;\n }\n .DayPickerNavigation__bottom {\n height: auto;\n }\n .DayPickerNavigation__bottomDefault {\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n display: -webkit-box;\n display: -moz-box;\n display: -ms-flexbox;\n display: -webkit-flex;\n display: flex;\n -webkit-justify-content: space-between;\n justify-content: space-between;\n }\n .DayPickerNavigation_button {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n padding: 0;\n margin: 0;\n }\n .DayPickerNavigation_button__default {\n border: 0;\n background-color: #fff;\n ", "\n }\n .DayPickerNavigation_button__default:focus,\n .DayPickerNavigation_button__default:hover {\n border: 0;\n }\n .DayPickerNavigation_button__default:active {\n background: #f2f2f2;\n }\n .DayPickerNavigation_button__disabled {\n cursor: default;\n border: 1px solid #f2f2f2;\n }\n .DayPickerNavigation_button__disabled:focus,\n .DayPickerNavigation_button__disabled:hover {\n border: 1px solid #f2f2f2;\n }\n .DayPickerNavigation_button__disabled:active {\n background: 0 0;\n }\n .DayPickerNavigation_button__horizontalDefault {\n position: absolute;\n top: 18px;\n line-height: 0.78;\n border-radius: 3px;\n padding: 9px;\n }\n .DayPickerNavigation_bottomButton__horizontalDefault {\n position: static;\n margin: -10px 22px 30px;\n }\n .DayPickerNavigation_leftButton__horizontalDefault {\n left: 10px;\n }\n .DayPickerNavigation_rightButton__horizontalDefault {\n right: 18px;\n }\n .DayPickerNavigation_button__verticalDefault {\n background: #fff;\n box-shadow: none;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 45%;\n padding: 8px 12px;\n \n ", "\n }\n .DayPickerNavigation_nextButton__verticalDefault {\n ", "\n ", "\n }\n .DayPickerNavigation_nextButton__verticalScrollableDefault,\n .DayPickerNavigation_prevButton__verticalScrollableDefault {\n width: 100%;\n }\n .DayPickerNavigation_svg__horizontal {\n height: 19px;\n width: 19px;\n display: block;\n ", "\n }\n .DayPickerNavigation_svg__vertical {\n ", "\n ", "\n ", "\n }\n .DayPickerNavigation_svg__disabled {\n fill: #f2f2f2;\n }\n .DayPicker {\n background: #fff;\n position: relative;\n text-align: left;\n }\n .DayPicker__horizontal {\n background: #fff;\n }\n .DayPicker__verticalScrollable {\n height: 100%;\n }\n .DayPicker__hidden {\n visibility: hidden;\n }\n .DayPicker__withBorder {\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.07);\n ", "\n \n }\n .DayPicker_portal__horizontal {\n box-shadow: none;\n position: absolute;\n left: 50%;\n top: 50%;\n }\n .DayPicker_portal__vertical {\n position: initial;\n }\n .DayPicker_focusRegion {\n outline: 0;\n }\n .DayPicker_calendarInfo__horizontal,\n .DayPicker_wrapper__horizontal {\n display: inline-block;\n vertical-align: top;\n }\n .DayPicker_weekHeaders {\n ", "\n position: relative;\n }\n .DayPicker_weekHeaders__horizontal {\n margin-left: 9px;\n }\n .DayPicker_weekHeader {\n color: #757575;\n position: absolute;\n top: 62px;\n z-index: 2;\n text-align: left;\n }\n .DayPicker_weekHeader__vertical {\n display: block;\n }\n .DayPicker_weekHeader__verticalScrollable {\n top: 0;\n display: table-row;\n border-bottom: 1px solid #dbdbdb;\n background: #fff;\n margin-left: 0;\n left: 0;\n width: 100%;\n text-align: center;\n }\n .DayPicker_weekHeader_ul {\n list-style: none;\n margin: 1px 0;\n padding-left: 0;\n padding-right: 0;\n ", "\n }\n .DayPicker_weekHeader_li {\n display: inline-block;\n text-align: center;\n }\n .DayPicker_transitionContainer {\n position: relative;\n overflow: hidden;\n border-radius: 3px;\n ", "\n max-width: 87%;\n }\n .DayPicker_transitionContainer__horizontal {\n -webkit-transition: height 0.2s ease-in-out;\n -moz-transition: height 0.2s ease-in-out;\n transition: height 0.2s ease-in-out;\n }\n .DayPicker_transitionContainer__vertical {\n min-height: 100%;\n }\n .DayPicker_transitionContainer__verticalScrollable {\n padding-top: 20px;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n overflow-y: scroll\n }\n .DateInput {\n margin: 0;\n background: #fff;\n position: relative;\n display: inline-block;\n width: 50%;\n vertical-align: middle;\n }\n .DateInput__small {\n width: 97px;\n }\n .DateInput__block {\n box-sizing: border-box;\n width: 100%;\n }\n .DateInput__disabled {\n background: #f2f2f2;\n color: #dbdbdb;\n }\n .DateInput_input {\n box-sizing: border-box;\n diplay: block;\n width: 100%;\n ", "\n ", "\n ", "\n ", "\n }\n .DateInput_input__small {\n font-size: 15px;\n line-height: 18px;\n letter-spacing: 0.2px;\n padding: 7px 7px 5px;\n }\n .DateInput_input__regular {\n font-weight: auto;\n }\n .DateInput_input__readOnly {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .DateInput_input__focused {\n width: 100%;\n outline: 0;\n background: #fff;\n\n }\n .DateInput_input__disabled {\n background: #f2f2f2;\n font-style: italic;\n }\n .DateInput_screenReaderMessage {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n .DateInput_fang {\n position: absolute;\n width: 20px;\n height: 10px;\n left: 22px;\n z-index: 2;\n top: 57px !important;\n }\n .DateInput_fangShape {\n fill: #fff;\n }\n .DateInput_fangStroke {\n stroke: #919191;\n fill: transparent;\n }\n .DateRangePickerInput {\n ", "\n background-color: #fff;\n display: inline-block;\n }\n .DateRangePickerInput__disabled {\n background: #f2f2f2;\n }\n .DateRangePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb;\n }\n .DateRangePickerInput__rtl {\n direction: rtl;\n }\n .DateRangePickerInput__block {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n }\n .DateRangePickerInput__showClearDates {\n padding-right: 30px;\n }\n .DateRangePickerInput_arrow {\n display: inline-block;\n vertical-align: middle;\n ", "\n ", "\n ", "\n }\n .DateRangePickerInput_arrow_svg {\n vertical-align: middle;\n ", "\n height: 24px;\n width: 24px;\n }\n .DateRangePickerInput_clearDates {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n }\n .DateRangePickerInput_clearDates__small {\n padding: 6px;\n }\n .DateRangePickerInput_clearDates_default:focus,\n .DateRangePickerInput_clearDates_default:hover {\n background: #dbdbdb;\n border-radius: 50%;\n }\n .DateRangePickerInput_clearDates__hide {\n visibility: hidden;\n }\n .DateRangePickerInput_clearDates_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle;\n }\n .DateRangePickerInput_clearDates_svg__small {\n height: 9px;\n }\n .DateRangePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px;\n }\n .DateRangePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle;\n }\n .DateRangePicker {\n position: relative;\n display: inline-block;\n }\n .DateRangePicker__block {\n display: block;\n }\n .DateRangePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute;\n width: 100%;\n }\n .DateRangePicker_picker__rtl {\n direction: rtl;\n }\n .DateRangePicker_picker__directionLeft {\n left: 0;\n }\n .DateRangePicker_picker__directionRight {\n right: 0;\n }\n .DateRangePicker_picker__portal {\n background-color: rgba(0, 0, 0, 0.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n .DateRangePicker_picker__fullScreenPortal {\n background-color: #fff;\n }\n .DateRangePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2;\n }\n .DateRangePicker_closeButton:focus,\n .DateRangePicker_closeButton:hover {\n color: darken(#cacccd, 10%);\n text-decoration: none;\n }\n .DateRangePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n\n div.DateRangePicker_picker > div {\n max-width: 555px !important;\n }\n\n div.DayPicker_focusRegion {\n max-width: 550px !important;\n }\n \n div.DayPicker_focusRegion > div {\n max-width: 550px !important;\n display: flex;\n justify-content: space-between;\n }\n div.DayPicker_transitionContainer > div {\n max-width: 550px !important;\n }\n\n div.DayPicker_weekHeader {\n padding: 0 !important;\n }\n div.DayPicker_weekHeaders.DayPicker_weekHeaders_1 > div {\n margin: 0;\n padding: 0;\n display: block;\n width: 100%;\n }\n div.DayPicker_weekHeaders.DayPicker_weekHeaders_1.DayPicker_weekHeaders__horizontal.DayPicker_weekHeaders__horizontal_2\n > div:nth-of-type {\n left: 270px !important;\n }\n .DayPicker_transitionContainer__vertical_2 > div {\n width: 100% !important;\n }\n @media only screen and (max-width: 770px) {\n .DayPicker_weekHeader_ul {\n list-style: none;\n margin: 1px 0;\n padding-left: 0;\n padding-right: 0;\n display: flex;\n justify-content: space-around;\n }\n\n div.DayPicker_weekHeader__vertical {\n margin: 0 !important;\n left: 0;\n }\n\n div.DayPicker_focusRegion.DayPicker_focusRegion_1 {\n height: 600px;\n }\n\n .DayPicker__withBorder {\n border-radius: 4px;\n }\n }\n"], ["\n width: 100%;\n max-width: 555px;\n ", "\n .PresetDateRangePicker_panel {\n padding: 0 22px 11px;\n }\n .PresetDateRangePicker_button {\n position: relative;\n height: 100%;\n text-align: center;\n background: 0 0;\n border: 2px solid #00a699;\n color: #00a699;\n padding: 4px 12px;\n margin-right: 8px;\n font: inherit;\n font-weight: 700;\n line-height: normal;\n overflow: visible;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n }\n .PresetDateRangePicker_button:active {\n outline: 0;\n }\n .PresetDateRangePicker_button__selected {\n color: #fff;\n background: #00a699;\n }\n .SingleDatePickerInput {\n display: inline-block;\n background-color: #fff;\n }\n .SingleDatePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb;\n }\n .SingleDatePickerInput__rtl {\n direction: rtl;\n }\n .SingleDatePickerInput__disabled {\n background-color: #f2f2f2;\n }\n .SingleDatePickerInput__block {\n display: block;\n }\n .SingleDatePickerInput__showClearDate {\n padding-right: 30px;\n }\n .SingleDatePickerInput_clearDate {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n }\n .SingleDatePickerInput_clearDate__default:focus,\n .SingleDatePickerInput_clearDate__default:hover {\n background: #dbdbdb;\n border-radius: 50%;\n }\n .SingleDatePickerInput_clearDate__small {\n padding: 6px;\n }\n .SingleDatePickerInput_clearDate__hide {\n visibility: hidden;\n }\n .SingleDatePickerInput_clearDate_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle;\n }\n .SingleDatePickerInput_clearDate_svg__small {\n height: 9px;\n }\n .SingleDatePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px;\n }\n .SingleDatePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle;\n }\n .SingleDatePicker {\n position: relative;\n display: inline-block;\n }\n .SingleDatePicker__block {\n display: block;\n }\n .SingleDatePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute;\n }\n .SingleDatePicker_picker__rtl {\n direction: rtl;\n }\n .SingleDatePicker_picker__directionLeft {\n left: 0;\n }\n .SingleDatePicker_picker__directionRight {\n right: 0;\n }\n .SingleDatePicker_picker__portal {\n background-color: rgba(0, 0, 0, 0.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n .SingleDatePicker_picker__fullScreenPortal {\n background-color: #fff;\n }\n .SingleDatePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2;\n }\n .SingleDatePicker_closeButton:focus,\n .SingleDatePicker_closeButton:hover {\n color: darken(#cacccd, 10%);\n text-decoration: none;\n }\n .SingleDatePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n .DayPickerKeyboardShortcuts_buttonReset {\n background: 0 0;\n border: 0;\n border-radius: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0;\n cursor: pointer;\n font-size: 14px;\n display: none;\n }\n .DayPickerKeyboardShortcuts_buttonReset:active {\n outline: 0;\n }\n .DayPickerKeyboardShortcuts_show {\n width: 33px;\n height: 26px;\n position: absolute;\n z-index: 2;\n }\n .DayPickerKeyboardShortcuts_show::before {\n content: '';\n display: block;\n position: absolute;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight {\n bottom: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\n border-top: 26px solid transparent;\n border-right: 33px solid #00a699;\n bottom: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\n border-right: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_show__topRight {\n top: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__topRight::before {\n border-bottom: 26px solid transparent;\n border-right: 33px solid #00a699;\n top: 0;\n right: 0;\n }\n .DayPickerKeyboardShortcuts_show__topRight:hover::before {\n border-right: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_show__topLeft {\n top: 0;\n left: 0;\n }\n .DayPickerKeyboardShortcuts_show__topLeft::before {\n border-bottom: 26px solid transparent;\n border-left: 33px solid #00a699;\n top: 0;\n left: 0;\n }\n .DayPickerKeyboardShortcuts_show__topLeft:hover::before {\n border-left: 33px solid #008489;\n }\n .DayPickerKeyboardShortcuts_showSpan {\n color: #fff;\n position: absolute;\n }\n .DayPickerKeyboardShortcuts_showSpan__bottomRight {\n bottom: 0;\n right: 5px;\n }\n .DayPickerKeyboardShortcuts_showSpan__topRight {\n top: 1px;\n right: 5px;\n }\n .DayPickerKeyboardShortcuts_showSpan__topLeft {\n top: 1px;\n left: 5px;\n }\n .DayPickerKeyboardShortcuts_panel {\n overflow: auto;\n background: #fff;\n border: 1px solid #dbdbdb;\n border-radius: 2px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n z-index: 2;\n padding: 22px;\n margin: 33px;\n text-align: left;\n }\n .DayPickerKeyboardShortcuts_title {\n font-size: 16px;\n font-weight: 700;\n margin: 0;\n }\n .DayPickerKeyboardShortcuts_list {\n list-style: none;\n padding: 0;\n font-size: 14px;\n }\n .DayPickerKeyboardShortcuts_close {\n position: absolute;\n right: 22px;\n top: 22px;\n z-index: 2;\n }\n .DayPickerKeyboardShortcuts_close:active {\n outline: 0;\n }\n .DayPickerKeyboardShortcuts_closeSvg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n .DayPickerKeyboardShortcuts_closeSvg:focus,\n .DayPickerKeyboardShortcuts_closeSvg:hover {\n fill: #82888a;\n }\n .CalendarDay {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n font-size: 14px;\n text-align: center;\n ", "\n }\n .CalendarDay:active {\n outline: 0;\n }\n .CalendarDay__defaultCursor {\n cursor: default;\n }\n .CalendarDay__default {\n border: 0;\n ", "\n ", "\n }\n .CalendarDay__default:hover {\n ", "\n border: 0;\n color: inherit;\n }\n .CalendarDay__hovered_offset {\n background: #f4f5f5;\n border: 1px double #e4e7e7;\n color: inherit;\n }\n .CalendarDay__outside {\n border: 0;\n background: #fff;\n color: #484848;\n }\n .CalendarDay__outside:hover {\n border: 0;\n }\n .CalendarDay__blocked_minimum_nights {\n background: #fff;\n border: 1px solid #eceeee;\n color: #cacccd;\n }\n .CalendarDay__blocked_minimum_nights:active,\n .CalendarDay__blocked_minimum_nights:hover {\n background: #fff;\n color: #cacccd;\n }\n .CalendarDay__highlighted_calendar {\n background: #ffe8bc;\n color: #484848;\n }\n .CalendarDay__highlighted_calendar:active,\n .CalendarDay__highlighted_calendar:hover {\n background: #ffce71;\n color: #484848;\n }\n .CalendarDay__selected_span {\n ", "\n border: none;\n ", "\n }\n .CalendarDay__selected_span:active,\n .CalendarDay__selected_span:hover {\n ", "\n border: none;\n ", "\n }\n .CalendarDay__selected,\n .CalendarDay__selected:active,\n .CalendarDay__selected:hover {\n ", "\n border: none;\n ", "\n }\n .CalendarDay__hovered_span,\n .CalendarDay__hovered_span:hover {\n ", "\n border: none;\n \n ", "\n }\n .CalendarDay__hovered_span:active {\n background: #80e8e0;\n ", "\n border: none;\n color: #007a87;\n }\n .CalendarDay__blocked_calendar,\n .CalendarDay__blocked_calendar:active,\n .CalendarDay__blocked_calendar:hover {\n border: 0;\n ", "\n }\n .CalendarDay__blocked_out_of_range,\n .CalendarDay__blocked_out_of_range:active,\n .CalendarDay__blocked_out_of_range:hover {\n background: #fff;\n border: 0;\n ", "\n ", "\n }\n .CalendarDay__hovered_start_first_possible_end {\n background: #eceeee;\n border: 1px double #eceeee;\n }\n .CalendarDay__hovered_start_blocked_min_nights {\n background: #eceeee;\n border: 1px double #e4e7e7;\n }\n .CalendarMonth {\n background: #fff;\n text-align: center;\n vertical-align: top;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n padding: 0 !important;\n width; 100%;\n }\n .CalendarMonth_table {\n border-collapse: collapse;\n border-spacing: 0;\n width: 100%;\n max-width: 100%;\n margin-left: 3px;\n }\n .CalendarMonth_verticalSpacing {\n border-collapse: separate;\n }\n .CalendarMonth_caption {\n ", "\n ", "\n width: 100%;\n text-align: center;\n padding-top: 22px;\n padding-bottom: 37px;\n caption-side: initial;\n }\n .CalendarMonth_caption__verticalScrollable {\n padding-top: 12px;\n padding-bottom: 7px;\n }\n .CalendarMonthGrid {\n ", "\n ", "\n text-align: left;\n z-index: 0;\n }\n .CalendarMonthGrid__animating {\n z-index: 1;\n }\n .CalendarMonthGrid__horizontal {\n position: absolute;\n left: 0px;\n margin: 4px;\n }\n .CalendarMonthGrid__vertical,\n .CalendarMonthGrid__vertical_scrollable {\n margin: 0 auto;\n }\n .CalendarMonthGrid_month__horizontal {\n display: inline-block;\n vertical-align: top;\n min-height: 100%;\n }\n .CalendarMonthGrid_month__hideForAnimation {\n position: absolute;\n z-index: -1;\n opacity: 0;\n pointer-events: none;\n }\n .CalendarMonthGrid_month__hidden {\n visibility: hidden;\n }\n .DayPickerNavigation {\n display: flex;\n justify-items: space-between;\n position: relative;\n z-index: 2;\n }\n .DayPickerNavigation__horizontal {\n max-width: 555px;\n height: 0;\n }\n .DayPickerNavigation__verticalScrollable_prevNav {\n z-index: 1;\n }\n .DayPickerNavigation__verticalDefault {\n position: absolute;\n width: 100%;\n height: 52px;\n bottom: -72px;\n left: 0;\n }\n .DayPickerNavigation__verticalScrollableDefault {\n position: relative;\n }\n .DayPickerNavigation__bottom {\n height: auto;\n }\n .DayPickerNavigation__bottomDefault {\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n display: -webkit-box;\n display: -moz-box;\n display: -ms-flexbox;\n display: -webkit-flex;\n display: flex;\n -webkit-justify-content: space-between;\n justify-content: space-between;\n }\n .DayPickerNavigation_button {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n padding: 0;\n margin: 0;\n }\n .DayPickerNavigation_button__default {\n border: 0;\n background-color: #fff;\n ", "\n }\n .DayPickerNavigation_button__default:focus,\n .DayPickerNavigation_button__default:hover {\n border: 0;\n }\n .DayPickerNavigation_button__default:active {\n background: #f2f2f2;\n }\n .DayPickerNavigation_button__disabled {\n cursor: default;\n border: 1px solid #f2f2f2;\n }\n .DayPickerNavigation_button__disabled:focus,\n .DayPickerNavigation_button__disabled:hover {\n border: 1px solid #f2f2f2;\n }\n .DayPickerNavigation_button__disabled:active {\n background: 0 0;\n }\n .DayPickerNavigation_button__horizontalDefault {\n position: absolute;\n top: 18px;\n line-height: 0.78;\n border-radius: 3px;\n padding: 9px;\n }\n .DayPickerNavigation_bottomButton__horizontalDefault {\n position: static;\n margin: -10px 22px 30px;\n }\n .DayPickerNavigation_leftButton__horizontalDefault {\n left: 10px;\n }\n .DayPickerNavigation_rightButton__horizontalDefault {\n right: 18px;\n }\n .DayPickerNavigation_button__verticalDefault {\n background: #fff;\n box-shadow: none;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 45%;\n padding: 8px 12px;\n \n ", "\n }\n .DayPickerNavigation_nextButton__verticalDefault {\n ", "\n ", "\n }\n .DayPickerNavigation_nextButton__verticalScrollableDefault,\n .DayPickerNavigation_prevButton__verticalScrollableDefault {\n width: 100%;\n }\n .DayPickerNavigation_svg__horizontal {\n height: 19px;\n width: 19px;\n display: block;\n ", "\n }\n .DayPickerNavigation_svg__vertical {\n ", "\n ", "\n ", "\n }\n .DayPickerNavigation_svg__disabled {\n fill: #f2f2f2;\n }\n .DayPicker {\n background: #fff;\n position: relative;\n text-align: left;\n }\n .DayPicker__horizontal {\n background: #fff;\n }\n .DayPicker__verticalScrollable {\n height: 100%;\n }\n .DayPicker__hidden {\n visibility: hidden;\n }\n .DayPicker__withBorder {\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.07);\n ", "\n \n }\n .DayPicker_portal__horizontal {\n box-shadow: none;\n position: absolute;\n left: 50%;\n top: 50%;\n }\n .DayPicker_portal__vertical {\n position: initial;\n }\n .DayPicker_focusRegion {\n outline: 0;\n }\n .DayPicker_calendarInfo__horizontal,\n .DayPicker_wrapper__horizontal {\n display: inline-block;\n vertical-align: top;\n }\n .DayPicker_weekHeaders {\n ", "\n position: relative;\n }\n .DayPicker_weekHeaders__horizontal {\n margin-left: 9px;\n }\n .DayPicker_weekHeader {\n color: #757575;\n position: absolute;\n top: 62px;\n z-index: 2;\n text-align: left;\n }\n .DayPicker_weekHeader__vertical {\n display: block;\n }\n .DayPicker_weekHeader__verticalScrollable {\n top: 0;\n display: table-row;\n border-bottom: 1px solid #dbdbdb;\n background: #fff;\n margin-left: 0;\n left: 0;\n width: 100%;\n text-align: center;\n }\n .DayPicker_weekHeader_ul {\n list-style: none;\n margin: 1px 0;\n padding-left: 0;\n padding-right: 0;\n ", "\n }\n .DayPicker_weekHeader_li {\n display: inline-block;\n text-align: center;\n }\n .DayPicker_transitionContainer {\n position: relative;\n overflow: hidden;\n border-radius: 3px;\n ", "\n max-width: 87%;\n }\n .DayPicker_transitionContainer__horizontal {\n -webkit-transition: height 0.2s ease-in-out;\n -moz-transition: height 0.2s ease-in-out;\n transition: height 0.2s ease-in-out;\n }\n .DayPicker_transitionContainer__vertical {\n min-height: 100%;\n }\n .DayPicker_transitionContainer__verticalScrollable {\n padding-top: 20px;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n overflow-y: scroll\n }\n .DateInput {\n margin: 0;\n background: #fff;\n position: relative;\n display: inline-block;\n width: 50%;\n vertical-align: middle;\n }\n .DateInput__small {\n width: 97px;\n }\n .DateInput__block {\n box-sizing: border-box;\n width: 100%;\n }\n .DateInput__disabled {\n background: #f2f2f2;\n color: #dbdbdb;\n }\n .DateInput_input {\n box-sizing: border-box;\n diplay: block;\n width: 100%;\n ", "\n ", "\n ", "\n ", "\n }\n .DateInput_input__small {\n font-size: 15px;\n line-height: 18px;\n letter-spacing: 0.2px;\n padding: 7px 7px 5px;\n }\n .DateInput_input__regular {\n font-weight: auto;\n }\n .DateInput_input__readOnly {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .DateInput_input__focused {\n width: 100%;\n outline: 0;\n background: #fff;\n\n }\n .DateInput_input__disabled {\n background: #f2f2f2;\n font-style: italic;\n }\n .DateInput_screenReaderMessage {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n .DateInput_fang {\n position: absolute;\n width: 20px;\n height: 10px;\n left: 22px;\n z-index: 2;\n top: 57px !important;\n }\n .DateInput_fangShape {\n fill: #fff;\n }\n .DateInput_fangStroke {\n stroke: #919191;\n fill: transparent;\n }\n .DateRangePickerInput {\n ", "\n background-color: #fff;\n display: inline-block;\n }\n .DateRangePickerInput__disabled {\n background: #f2f2f2;\n }\n .DateRangePickerInput__withBorder {\n border-radius: 2px;\n border: 1px solid #dbdbdb;\n }\n .DateRangePickerInput__rtl {\n direction: rtl;\n }\n .DateRangePickerInput__block {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n }\n .DateRangePickerInput__showClearDates {\n padding-right: 30px;\n }\n .DateRangePickerInput_arrow {\n display: inline-block;\n vertical-align: middle;\n ", "\n ", "\n ", "\n }\n .DateRangePickerInput_arrow_svg {\n vertical-align: middle;\n ", "\n height: 24px;\n width: 24px;\n }\n .DateRangePickerInput_clearDates {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n padding: 10px;\n margin: 0 10px 0 5px;\n position: absolute;\n right: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n }\n .DateRangePickerInput_clearDates__small {\n padding: 6px;\n }\n .DateRangePickerInput_clearDates_default:focus,\n .DateRangePickerInput_clearDates_default:hover {\n background: #dbdbdb;\n border-radius: 50%;\n }\n .DateRangePickerInput_clearDates__hide {\n visibility: hidden;\n }\n .DateRangePickerInput_clearDates_svg {\n fill: #82888a;\n height: 12px;\n width: 15px;\n vertical-align: middle;\n }\n .DateRangePickerInput_clearDates_svg__small {\n height: 9px;\n }\n .DateRangePickerInput_calendarIcon {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n display: inline-block;\n vertical-align: middle;\n padding: 10px;\n margin: 0 5px 0 10px;\n }\n .DateRangePickerInput_calendarIcon_svg {\n fill: #82888a;\n height: 15px;\n width: 14px;\n vertical-align: middle;\n }\n .DateRangePicker {\n position: relative;\n display: inline-block;\n }\n .DateRangePicker__block {\n display: block;\n }\n .DateRangePicker_picker {\n z-index: 1;\n background-color: #fff;\n position: absolute;\n width: 100%;\n }\n .DateRangePicker_picker__rtl {\n direction: rtl;\n }\n .DateRangePicker_picker__directionLeft {\n left: 0;\n }\n .DateRangePicker_picker__directionRight {\n right: 0;\n }\n .DateRangePicker_picker__portal {\n background-color: rgba(0, 0, 0, 0.3);\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n .DateRangePicker_picker__fullScreenPortal {\n background-color: #fff;\n }\n .DateRangePicker_closeButton {\n background: 0 0;\n border: 0;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n cursor: pointer;\n position: absolute;\n top: 0;\n right: 0;\n padding: 15px;\n z-index: 2;\n }\n .DateRangePicker_closeButton:focus,\n .DateRangePicker_closeButton:hover {\n color: darken(#cacccd, 10%);\n text-decoration: none;\n }\n .DateRangePicker_closeButton_svg {\n height: 15px;\n width: 15px;\n fill: #cacccd;\n }\n\n div.DateRangePicker_picker > div {\n max-width: 555px !important;\n }\n\n div.DayPicker_focusRegion {\n max-width: 550px !important;\n }\n \n div.DayPicker_focusRegion > div {\n max-width: 550px !important;\n display: flex;\n justify-content: space-between;\n }\n div.DayPicker_transitionContainer > div {\n max-width: 550px !important;\n }\n\n div.DayPicker_weekHeader {\n padding: 0 !important;\n }\n div.DayPicker_weekHeaders.DayPicker_weekHeaders_1 > div {\n margin: 0;\n padding: 0;\n display: block;\n width: 100%;\n }\n div.DayPicker_weekHeaders.DayPicker_weekHeaders_1.DayPicker_weekHeaders__horizontal.DayPicker_weekHeaders__horizontal_2\n > div:nth-of-type {\n left: 270px !important;\n }\n .DayPicker_transitionContainer__vertical_2 > div {\n width: 100% !important;\n }\n @media only screen and (max-width: 770px) {\n .DayPicker_weekHeader_ul {\n list-style: none;\n margin: 1px 0;\n padding-left: 0;\n padding-right: 0;\n display: flex;\n justify-content: space-around;\n }\n\n div.DayPicker_weekHeader__vertical {\n margin: 0 !important;\n left: 0;\n }\n\n div.DayPicker_focusRegion.DayPicker_focusRegion_1 {\n height: 600px;\n }\n\n .DayPicker__withBorder {\n border-radius: 4px;\n }\n }\n"])), function (_a) {
9
+ exports.CalendarWrapper = newskit_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: 100%;\n"], ["\n position: relative;\n width: 100%;\n height: 100%;\n"
10
+ /* istanbul ignore next */
11
+ ])));
12
+ /* istanbul ignore next */
13
+ exports.Container = (0, newskit_1.styled)(newskit_1.Block)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (_a) {
10
14
  var calendar = _a.calendar;
11
- return (0, newskit_1.getTypographyPresetFromTheme)(calendar.typographyPreset);
12
- }, function (_a) {
13
- var calendar = _a.calendar;
14
- return (0, newskit_1.getTypographyPresetFromTheme)(calendar.day.typographyPreset);
15
- }, function (_a) {
16
- var calendar = _a.calendar;
17
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.color);
18
- }, function (_a) {
19
- var calendar = _a.calendar;
20
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.backgroundColor);
15
+ return (0, newskit_1.getSizingCssFromTheme)('height', calendar.calendarCustomContainer.sizing.height);
21
16
  }, function (_a) {
17
+ var _b, _c;
22
18
  var calendar = _a.calendar;
23
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.hover.backgroundColor);
24
- }, function (_a) {
19
+ return ((_c = (_b = calendar.calendarCustomContainer) === null || _b === void 0 ? void 0 : _b.spacing) === null || _c === void 0 ? void 0 : _c.marginTop)
20
+ ? (0, newskit_1.getSpacingCssFromTheme)('marginTop', calendar.calendarCustomContainer.spacing.marginTop)
21
+ : "\n margin-top: 2px;\n ";
22
+ });
23
+ exports.InputsWrapper = newskit_1.styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n\n .input-container {\n position: relative;\n height: 100%;\n width: 100%;\n }\n\n .chevron {\n position: absolute;\n left: 24px;\n bottom: -36px;\n\n &:before {\n content: '';\n ", ";\n border-bottom: 0;\n border-left: 0;\n content: '';\n display: inline-block;\n height: 14px;\n position: relative;\n transform: rotate(-45deg);\n vertical-align: top;\n width: 14px;\n z-index: 2;\n }\n }\n\n .react-datepicker-input {\n margin: 0;\n background: #fff;\n position: relative;\n display: inline-block;\n width: 50%;\n\n box-sizing: border-box;\n display: block;\n width: 100%;\n ", "\n ", "\n ", "\n ", "\n }\n\n .react-datepicker-input-arrow {\n display: inline-block;\n vertical-align: middle;\n ", "\n ", "\n ", "\n\n svg {\n vertical-align: middle;\n ", "\n height: 24px;\n width: 24px;\n }\n }\n"], ["\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n\n .input-container {\n position: relative;\n height: 100%;\n width: 100%;\n }\n\n .chevron {\n position: absolute;\n left: 24px;\n bottom: -36px;\n\n &:before {\n content: '';\n ", ";\n border-bottom: 0;\n border-left: 0;\n content: '';\n display: inline-block;\n height: 14px;\n position: relative;\n transform: rotate(-45deg);\n vertical-align: top;\n width: 14px;\n z-index: 2;\n }\n }\n\n .react-datepicker-input {\n margin: 0;\n background: #fff;\n position: relative;\n display: inline-block;\n width: 50%;\n\n box-sizing: border-box;\n display: block;\n width: 100%;\n ", "\n ", "\n ", "\n ", "\n }\n\n .react-datepicker-input-arrow {\n display: inline-block;\n vertical-align: middle;\n ", "\n ", "\n ", "\n\n svg {\n vertical-align: middle;\n ", "\n height: 24px;\n width: 24px;\n }\n }\n"
24
+ /* istanbul ignore next */
25
+ ])), function (_a) {
25
26
  var calendar = _a.calendar;
26
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.selected.backgroundColor);
27
+ return (0, newskit_1.getStylePresetFromTheme)(calendar.borders.stylePreset);
27
28
  }, function (_a) {
28
29
  var calendar = _a.calendar;
29
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.selected.color);
30
+ return (0, newskit_1.getTypographyPresetFromTheme)(calendar.inputs.typographyPreset);
30
31
  }, function (_a) {
31
32
  var calendar = _a.calendar;
32
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.span.hover.active.backgroundColor);
33
+ return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.inputs.colors.backgroundColor);
33
34
  }, function (_a) {
34
35
  var calendar = _a.calendar;
35
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.span.selected.active.hover.color);
36
+ return (0, newskit_1.getSizingCssFromTheme)('padding', calendar.inputs.spacing.padding);
36
37
  }, function (_a) {
37
38
  var calendar = _a.calendar;
38
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.selected.active.hover.backgroundColor);
39
- }, (0, newskit_1.getColorCssFromTheme)('color', 'inkInverse'), function (_a) {
40
- var calendar = _a.calendar;
41
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.span.hover.backgroundColor);
39
+ return (0, newskit_1.getStylePresetFromTheme)(calendar.inputs.borders.stylePreset);
42
40
  }, function (_a) {
43
41
  var calendar = _a.calendar;
44
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.span.hover.color);
42
+ return (0, newskit_1.getColorCssFromTheme)('color', calendar.inputs.colors.color);
45
43
  }, function (_a) {
46
44
  var calendar = _a.calendar;
47
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.span.hover.active.backgroundColor);
45
+ return (0, newskit_1.getSpacingCssFromTheme)('marginLeft', calendar.inputs.spacing.marginLeft);
48
46
  }, function (_a) {
49
47
  var calendar = _a.calendar;
50
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.blocked.color);
48
+ return (0, newskit_1.getSpacingCssFromTheme)('marginRight', calendar.inputs.spacing.marginRight);
51
49
  }, function (_a) {
52
50
  var calendar = _a.calendar;
53
- return (0, newskit_1.getTypographyPresetFromTheme)(calendar.day.typographyPreset);
54
- }, function (_a) {
51
+ return (0, newskit_1.getColorCssFromTheme)('fill', calendar.inputs.colors.fill);
52
+ });
53
+ /* istanbul ignore next */
54
+ exports.CalendarStyles = newskit_1.styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 100%;\n max-width: 555px;\n ", "\n ", "\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon::before {\n ", "\n border-style: solid;\n border-width: 2px 2px 0 0;\n content: '';\n display: block;\n height: 7px;\n position: absolute;\n top: 6px;\n width: 7px;\n }\n\n .react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n }\n\n .react-datepicker {\n font-family: inherit;\n background-color: #fff;\n color: #000;\n border-radius: 0.3rem;\n display: inline-block;\n position: absolute;\n top: 17px;\n left: 0px;\n z-index: 1;\n width: 580px;\n max-width: 580px;\n padding: 0;\n border: none;\n display: flex;\n justify-content: space-between;\n ", ";\n ", ";\n ", ";\n overflow: hidden;\n min-height: 0;\n height: 0;\n transition: min-height 0.1s linear, height 0.1s linear, opacity 0.1s linear;\n opacity: 0;\n box-shadow: none;\n\n @media (max-width: 770px) {\n width: 100%;\n flex-direction: column;\n transition: none;\n }\n }\n\n .react-datepicker__header {\n position: relative;\n\n ", "\n width: 100%;\n text-align: center;\n padding-top: 22px;\n caption-side: initial;\n }\n\n .react-datepicker__current-month,\n .react-datepicker-time__header,\n .react-datepicker-year-header {\n ", "\n margin-top: 0;\n margin-bottom: 17px;\n }\n\n .react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 2px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n }\n .react-datepicker__navigation--previous {\n left: 14px;\n top: 20px;\n\n @media (max-width: 770px) {\n height: 52px;\n bottom: -72px;\n top: auto;\n left: 0;\n width: 50%;\n background: #fff;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 45%;\n ", "\n\n span {\n right: 0;\n\n &:before {\n transform: rotate(315deg);\n top: 10px;\n }\n }\n }\n }\n .react-datepicker__navigation--next {\n right: 14px;\n top: 20px;\n\n @media (max-width: 770px) {\n height: 52px;\n bottom: -72px;\n top: auto;\n right: 0;\n width: 50%;\n background: #fff;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 45%;\n ", "\n\n span {\n left: 0;\n\n &:before {\n transform: rotate(134deg);\n top: 5px;\n }\n }\n }\n }\n .react-datepicker__aria-live {\n visibility: hidden;\n width: 0;\n height: 0;\n }\n\n .react-datepicker__navigation-icon {\n position: relative;\n font-size: 20px;\n width: 0;\n }\n .react-datepicker__navigation-icon--next {\n left: -2px;\n }\n .react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -7px;\n }\n .react-datepicker__navigation-icon--previous {\n right: -2px;\n }\n .react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -7px;\n }\n\n .react-datepicker__month-container {\n width: 50%;\n max-width: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n @media (max-width: 770px) {\n width: 100%;\n max-width: 100%;\n max-height: 50%;\n }\n }\n\n .react-datepicker__month {\n @media (max-width: 770px) {\n width: 100%;\n }\n }\n\n .react-datepicker__day-names,\n .react-datepicker__week {\n white-space: nowrap;\n display: flex;\n justify-content: center;\n\n @media (max-width: 770px) {\n justify-content: center;\n }\n }\n\n .react-datepicker__day-names {\n margin: 0;\n padding-left: 0;\n padding-right: 0;\n ", "\n > div {\n color: #757575;\n width: 38px;\n height: auto;\n display: inline-block;\n text-align: center;\n font-size: 0.8rem;\n\n @media (max-width: 770px) {\n width: 100%;\n max-width: 57px;\n }\n }\n }\n\n .react-datepicker__day-name,\n .react-datepicker__day,\n .react-datepicker__time-name {\n ", "\n width: 38px;\n height: 37px;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n @media (max-width: 770px) {\n width: 100%;\n max-width: 57px;\n min-width: 38px;\n flex-grow: 1;\n }\n }\n\n .react-datepicker__day--outside-month {\n color: #fff !important;\n background-color: #fff !important;\n }\n\n .react-datepicker__day {\n cursor: pointer;\n }\n\n .react-datepicker__day--in-selecting-range:hover {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--in-range,\n .react-datepicker__day--in-selecting-range {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--in-range:hover {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--selected,\n .react-datepicker__day--range-start,\n .react-datepicker__day--range-end {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--disabled,\n .react-datepicker__month-text--disabled,\n .react-datepicker__quarter-text--disabled,\n .react-datepicker__year-text--disabled {\n cursor: default;\n ", "\n ", "\n }\n .react-datepicker__day--disabled:hover,\n .react-datepicker__month-text--disabled:hover,\n .react-datepicker__quarter-text--disabled:hover,\n .react-datepicker__year-text--disabled:hover {\n background-color: transparent;\n }\n"], ["\n width: 100%;\n max-width: 555px;\n ", "\n ", "\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon::before {\n ", "\n border-style: solid;\n border-width: 2px 2px 0 0;\n content: '';\n display: block;\n height: 7px;\n position: absolute;\n top: 6px;\n width: 7px;\n }\n\n .react-datepicker-wrapper {\n display: inline-block;\n padding: 0;\n border: 0;\n }\n\n .react-datepicker {\n font-family: inherit;\n background-color: #fff;\n color: #000;\n border-radius: 0.3rem;\n display: inline-block;\n position: absolute;\n top: 17px;\n left: 0px;\n z-index: 1;\n width: 580px;\n max-width: 580px;\n padding: 0;\n border: none;\n display: flex;\n justify-content: space-between;\n ", ";\n ", ";\n ", ";\n overflow: hidden;\n min-height: 0;\n height: 0;\n transition: min-height 0.1s linear, height 0.1s linear, opacity 0.1s linear;\n opacity: 0;\n box-shadow: none;\n\n @media (max-width: 770px) {\n width: 100%;\n flex-direction: column;\n transition: none;\n }\n }\n\n .react-datepicker__header {\n position: relative;\n\n ", "\n width: 100%;\n text-align: center;\n padding-top: 22px;\n caption-side: initial;\n }\n\n .react-datepicker__current-month,\n .react-datepicker-time__header,\n .react-datepicker-year-header {\n ", "\n margin-top: 0;\n margin-bottom: 17px;\n }\n\n .react-datepicker__navigation {\n align-items: center;\n background: none;\n display: flex;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n position: absolute;\n top: 2px;\n padding: 0;\n border: none;\n z-index: 1;\n height: 32px;\n width: 32px;\n text-indent: -999em;\n overflow: hidden;\n }\n .react-datepicker__navigation--previous {\n left: 14px;\n top: 20px;\n\n @media (max-width: 770px) {\n height: 52px;\n bottom: -72px;\n top: auto;\n left: 0;\n width: 50%;\n background: #fff;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 45%;\n ", "\n\n span {\n right: 0;\n\n &:before {\n transform: rotate(315deg);\n top: 10px;\n }\n }\n }\n }\n .react-datepicker__navigation--next {\n right: 14px;\n top: 20px;\n\n @media (max-width: 770px) {\n height: 52px;\n bottom: -72px;\n top: auto;\n right: 0;\n width: 50%;\n background: #fff;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 45%;\n ", "\n\n span {\n left: 0;\n\n &:before {\n transform: rotate(134deg);\n top: 5px;\n }\n }\n }\n }\n .react-datepicker__aria-live {\n visibility: hidden;\n width: 0;\n height: 0;\n }\n\n .react-datepicker__navigation-icon {\n position: relative;\n font-size: 20px;\n width: 0;\n }\n .react-datepicker__navigation-icon--next {\n left: -2px;\n }\n .react-datepicker__navigation-icon--next::before {\n transform: rotate(45deg);\n left: -7px;\n }\n .react-datepicker__navigation-icon--previous {\n right: -2px;\n }\n .react-datepicker__navigation-icon--previous::before {\n transform: rotate(225deg);\n right: -7px;\n }\n\n .react-datepicker__month-container {\n width: 50%;\n max-width: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n @media (max-width: 770px) {\n width: 100%;\n max-width: 100%;\n max-height: 50%;\n }\n }\n\n .react-datepicker__month {\n @media (max-width: 770px) {\n width: 100%;\n }\n }\n\n .react-datepicker__day-names,\n .react-datepicker__week {\n white-space: nowrap;\n display: flex;\n justify-content: center;\n\n @media (max-width: 770px) {\n justify-content: center;\n }\n }\n\n .react-datepicker__day-names {\n margin: 0;\n padding-left: 0;\n padding-right: 0;\n ", "\n > div {\n color: #757575;\n width: 38px;\n height: auto;\n display: inline-block;\n text-align: center;\n font-size: 0.8rem;\n\n @media (max-width: 770px) {\n width: 100%;\n max-width: 57px;\n }\n }\n }\n\n .react-datepicker__day-name,\n .react-datepicker__day,\n .react-datepicker__time-name {\n ", "\n width: 38px;\n height: 37px;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n @media (max-width: 770px) {\n width: 100%;\n max-width: 57px;\n min-width: 38px;\n flex-grow: 1;\n }\n }\n\n .react-datepicker__day--outside-month {\n color: #fff !important;\n background-color: #fff !important;\n }\n\n .react-datepicker__day {\n cursor: pointer;\n }\n\n .react-datepicker__day--in-selecting-range:hover {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--in-range,\n .react-datepicker__day--in-selecting-range {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--in-range:hover {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--selected,\n .react-datepicker__day--range-start,\n .react-datepicker__day--range-end {\n ", "\n border: none;\n ", "\n }\n\n .react-datepicker__day--disabled,\n .react-datepicker__month-text--disabled,\n .react-datepicker__quarter-text--disabled,\n .react-datepicker__year-text--disabled {\n cursor: default;\n ", "\n ", "\n }\n .react-datepicker__day--disabled:hover,\n .react-datepicker__month-text--disabled:hover,\n .react-datepicker__quarter-text--disabled:hover,\n .react-datepicker__year-text--disabled:hover {\n background-color: transparent;\n }\n"])), function (_a) {
55
55
  var calendar = _a.calendar;
56
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.blocked.color);
56
+ return (0, newskit_1.getTypographyPresetFromTheme)(calendar.typographyPreset);
57
57
  }, function (_a) {
58
- var calendar = _a.calendar;
59
- return (0, newskit_1.getTypographyPresetFromTheme)(calendar.month.headers.typographyPreset);
58
+ var calendarVisible = _a.calendarVisible, isMonthWithSixRows = _a.isMonthWithSixRows;
59
+ return calendarVisible &&
60
+ "\n .calendar-custom-container .react-datepicker {\n opacity: 1;\n padding: 4px;\n min-height: ".concat(isMonthWithSixRows ? 315 : 280, "px;\n height: 100%;\n box-shadow: 0px 20px 32px 0px rgba(17, 17, 17, 0.08);\n transition: min-height 0.18s linear, height 0.18s linear,\n opacity 0.22s linear;\n\n @media (max-width: 770px) {\n height: auto;\n padding: 0 0 22px 0;\n overflow: initial;\n min-height: auto;\n }\n }\n ");
60
61
  }, function (_a) {
61
62
  var calendar = _a.calendar;
62
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.month.headers.color);
63
+ return (0, newskit_1.getColorCssFromTheme)('border-color', calendar.month.headers.color);
63
64
  }, (0, newskit_1.getTypographyPresetFromTheme)('utilityBody020'), (0, newskit_1.getColorCssFromTheme)('backgroundColor', 'inkInverse'), function (_a) {
64
65
  var calendar = _a.calendar;
65
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.month.navigation.default.stylePreset);
66
+ return (0, newskit_1.getStylePresetFromTheme)(calendar.borders.stylePreset);
66
67
  }, function (_a) {
67
68
  var calendar = _a.calendar;
68
- return (0, newskit_1.getStylePresetFromTheme)(calendar.month.navigation.default.stylePreset);
69
+ return (0, newskit_1.getColorCssFromTheme)('color', calendar.month.headers.color);
69
70
  }, function (_a) {
70
71
  var calendar = _a.calendar;
71
- return (0, newskit_1.getSpacingCssFromTheme)('marginLeft', calendar.month.navigation.vertical.buttons.next);
72
+ return (0, newskit_1.getTypographyPresetFromTheme)(calendar.month.headers.typographyPreset);
72
73
  }, function (_a) {
73
74
  var calendar = _a.calendar;
74
75
  return (0, newskit_1.getStylePresetFromTheme)(calendar.month.navigation.default.stylePreset);
75
76
  }, function (_a) {
76
77
  var calendar = _a.calendar;
77
- return (0, newskit_1.getColorCssFromTheme)('fill', calendar.month.navigation.icons.svg.left.fill);
78
- }, function (_a) {
79
- var calendar = _a.calendar;
80
- return (0, newskit_1.getSizingCssFromTheme)('height', calendar.month.navigation.icons.svg.vertical.height);
81
- }, function (_a) {
82
- var calendar = _a.calendar;
83
- return (0, newskit_1.getSizingCssFromTheme)('width', calendar.month.navigation.icons.svg.vertical.width);
84
- }, function (_a) {
85
- var calendar = _a.calendar;
86
- return (0, newskit_1.getColorCssFromTheme)('fill', calendar.month.navigation.icons.svg.vertical.fill);
87
- }, function (_a) {
88
- var calendar = _a.calendar;
89
- return (0, newskit_1.getStylePresetFromTheme)(calendar.borders.stylePreset);
90
- }, function (_a) {
91
- var calendar = _a.calendar;
92
- return (0, newskit_1.getTypographyPresetFromTheme)(calendar.week.headers.typographyPreset);
78
+ return (0, newskit_1.getStylePresetFromTheme)(calendar.month.navigation.default.stylePreset);
93
79
  }, function (_a) {
94
80
  var calendar = _a.calendar;
95
81
  return (0, newskit_1.getTypographyPresetFromTheme)(calendar.week.headers.typographyPreset);
96
82
  }, function (_a) {
97
83
  var calendar = _a.calendar;
98
- return (0, newskit_1.getBorderCssFromTheme)('borderRadius', calendar.transitionContainer.borders.stylePreset);
99
- }, function (_a) {
100
- var calendar = _a.calendar;
101
- return (0, newskit_1.getTypographyPresetFromTheme)(calendar.inputs.typographyPreset);
84
+ return (0, newskit_1.getTypographyPresetFromTheme)(calendar.day.typographyPreset);
102
85
  }, function (_a) {
103
86
  var calendar = _a.calendar;
104
- return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.inputs.colors.backgroundColor);
87
+ return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.span.hover.active.backgroundColor);
105
88
  }, function (_a) {
106
89
  var calendar = _a.calendar;
107
- return (0, newskit_1.getSizingCssFromTheme)('padding', calendar.inputs.spacing.padding);
90
+ return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.span.selected.active.hover.color);
108
91
  }, function (_a) {
109
92
  var calendar = _a.calendar;
110
- return (0, newskit_1.getStylePresetFromTheme)(calendar.inputs.borders.stylePreset);
93
+ return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.selected.backgroundColor);
111
94
  }, function (_a) {
112
95
  var calendar = _a.calendar;
113
- return (0, newskit_1.getTypographyPresetFromTheme)(calendar.inputs.typographyPreset);
96
+ return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.selected.color);
114
97
  }, function (_a) {
115
98
  var calendar = _a.calendar;
116
- return (0, newskit_1.getColorCssFromTheme)('color', calendar.inputs.colors.color);
117
- }, function (_a) {
99
+ return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.selected.active.hover.backgroundColor);
100
+ }, (0, newskit_1.getColorCssFromTheme)('color', 'inkInverse'), function (_a) {
118
101
  var calendar = _a.calendar;
119
- return (0, newskit_1.getSpacingCssFromTheme)('marginLeft', calendar.inputs.spacing.marginLeft);
120
- }, function (_a) {
102
+ return (0, newskit_1.getColorCssFromTheme)('backgroundColor', calendar.day.selected.active.hover.backgroundColor);
103
+ }, (0, newskit_1.getColorCssFromTheme)('color', 'inkInverse'), function (_a) {
121
104
  var calendar = _a.calendar;
122
- return (0, newskit_1.getSpacingCssFromTheme)('marginRight', calendar.inputs.spacing.marginRight);
105
+ return (0, newskit_1.getTypographyPresetFromTheme)(calendar.day.typographyPreset);
123
106
  }, function (_a) {
124
107
  var calendar = _a.calendar;
125
- return (0, newskit_1.getColorCssFromTheme)('fill', calendar.inputs.colors.fill);
108
+ return (0, newskit_1.getColorCssFromTheme)('color', calendar.day.blocked.color);
126
109
  });
127
- var templateObject_1;
110
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
128
111
  //# sourceMappingURL=CalendarStylesTheme.js.map