@cloudtower/eagle 0.30.11 → 0.30.14
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 +4 -3
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3008 -3007
- package/dist/esm/coreX/DateRangePicker/Calendar.js +4 -3
- package/dist/esm/stats1.html +1 -1
- package/dist/style.css +2674 -2674
- package/package.json +4 -4
|
@@ -10,6 +10,8 @@ import dayjs from 'dayjs';
|
|
|
10
10
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
11
11
|
import { getDiffMonthAndDate, getTime, checkDateNotInRange, getClassNameForDateBlock } from './common.js';
|
|
12
12
|
import { CalendarStyle } from './DateRangePicker.style.js';
|
|
13
|
+
import { parrotI18n } from '@cloudtower/parrot';
|
|
14
|
+
import { getCalendarTitle } from '../common/getCalendarTitle.js';
|
|
13
15
|
|
|
14
16
|
const Year = (props) => {
|
|
15
17
|
const { year, onChange } = props;
|
|
@@ -78,7 +80,7 @@ const MonthItem = (props) => {
|
|
|
78
80
|
onRangeChange,
|
|
79
81
|
onMouseEnter
|
|
80
82
|
} = props;
|
|
81
|
-
|
|
83
|
+
useParrotTranslation();
|
|
82
84
|
const containerRef = useRef(null);
|
|
83
85
|
const datesContainerRef = useRef(null);
|
|
84
86
|
const headerRef = useRef(null);
|
|
@@ -129,8 +131,7 @@ const MonthItem = (props) => {
|
|
|
129
131
|
className: cx(Typo.Label.l1_bold, isPinned && "pinned"),
|
|
130
132
|
ref: headerRef
|
|
131
133
|
},
|
|
132
|
-
initMonth.month,
|
|
133
|
-
t("common.month")
|
|
134
|
+
getCalendarTitle(initMonth.month.toString(), parrotI18n.t, parrotI18n)
|
|
134
135
|
), /* @__PURE__ */ React__default.createElement("div", { className: "dates-in-month", ref: datesContainerRef }, new Array(initMonth.firstDateOfDay).fill(null).map((value, index) => /* @__PURE__ */ React__default.createElement("span", { key: `blank-date-${index}`, className: "blank" })), initMonth.dates.map((date) => {
|
|
135
136
|
const _date = getTime(initYear, initMonth.month, date);
|
|
136
137
|
const dateNotIncludeInRange = checkDateNotInRange(
|