@cloudtower/eagle 0.33.18 → 0.33.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +2 -2
- package/dist/cjs/coreX/DateRangePicker/utils.js +5 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2227 -2223
- package/dist/esm/coreX/DateRangePicker/Calendar.js +2 -2
- package/dist/esm/coreX/DateRangePicker/utils.js +3 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +2512 -2508
- package/dist/src/coreX/DateRangePicker/__tests__/utils.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/utils.d.ts +7 -0
- package/dist/style.css +1901 -1898
- package/package.json +4 -4
|
@@ -11,6 +11,7 @@ import dayjs from 'dayjs';
|
|
|
11
11
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
12
12
|
import { getDiffMonthAndDate, getTime, checkDateNotInRange, getClassNameForDateBlock } from './common.js';
|
|
13
13
|
import { CalendarStyle } from './DateRangePicker.style.js';
|
|
14
|
+
import { getFirstDateOfMonth } from './utils.js';
|
|
14
15
|
import { getCalendarTitle } from '../common/getCalendarTitle.js';
|
|
15
16
|
|
|
16
17
|
const Year = (props) => {
|
|
@@ -203,11 +204,10 @@ const Month = (props) => {
|
|
|
203
204
|
const time = dayjs(`${year}-${month2}`, "YYYY-M");
|
|
204
205
|
const allDateInMonth = time.daysInMonth();
|
|
205
206
|
const dates = new Array(allDateInMonth).fill(1).map((value, index) => index + 1);
|
|
206
|
-
const firstDateOfDay = time.set("date", dates[0]).day();
|
|
207
207
|
monthAndDate.push({
|
|
208
208
|
month: month2,
|
|
209
209
|
dates,
|
|
210
|
-
firstDateOfDay:
|
|
210
|
+
firstDateOfDay: getFirstDateOfMonth(time)
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
setMonth(monthAndDate);
|