@cloudtower/eagle 0.30.11 → 0.30.15
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 +3360 -3360
- package/dist/esm/coreX/DateRangePicker/Calendar.js +4 -3
- package/dist/esm/stats1.html +1 -1
- package/dist/style.css +3498 -3498
- package/package.json +4 -4
|
@@ -12,6 +12,8 @@ var dayjs = require('dayjs');
|
|
|
12
12
|
var React = require('react');
|
|
13
13
|
var common = require('./common.js');
|
|
14
14
|
var DateRangePicker_style = require('./DateRangePicker.style.js');
|
|
15
|
+
var parrot = require('@cloudtower/parrot');
|
|
16
|
+
var getCalendarTitle = require('../common/getCalendarTitle.js');
|
|
15
17
|
|
|
16
18
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
19
|
|
|
@@ -85,7 +87,7 @@ const MonthItem = (props) => {
|
|
|
85
87
|
onRangeChange,
|
|
86
88
|
onMouseEnter
|
|
87
89
|
} = props;
|
|
88
|
-
|
|
90
|
+
useParrotTranslation();
|
|
89
91
|
const containerRef = React.useRef(null);
|
|
90
92
|
const datesContainerRef = React.useRef(null);
|
|
91
93
|
const headerRef = React.useRef(null);
|
|
@@ -136,8 +138,7 @@ const MonthItem = (props) => {
|
|
|
136
138
|
className: core.cx(index.Typo.Label.l1_bold, isPinned && "pinned"),
|
|
137
139
|
ref: headerRef
|
|
138
140
|
},
|
|
139
|
-
initMonth.month,
|
|
140
|
-
t("common.month")
|
|
141
|
+
getCalendarTitle.getCalendarTitle(initMonth.month.toString(), parrot.parrotI18n.t, parrot.parrotI18n)
|
|
141
142
|
), /* @__PURE__ */ React__default.default.createElement("div", { className: "dates-in-month", ref: datesContainerRef }, new Array(initMonth.firstDateOfDay).fill(null).map((value, index) => /* @__PURE__ */ React__default.default.createElement("span", { key: `blank-date-${index}`, className: "blank" })), initMonth.dates.map((date) => {
|
|
142
143
|
const _date = common.getTime(initYear, initMonth.month, date);
|
|
143
144
|
const dateNotIncludeInRange = common.checkDateNotInRange(
|