mx-react-components
Advanced tools
Comparing version 8.6.4-alpha.5 to 8.6.4-alpha.6
@@ -128,2 +128,3 @@ "use strict"; | ||
var weeks = _this._getWeeks(); | ||
console.log('rendermonthtable', weeks); | ||
return weeks.map(function (week) { | ||
@@ -139,3 +140,3 @@ return /*#__PURE__*/React.createElement("div", { | ||
return /*#__PURE__*/React.createElement("a", { | ||
"aria-label": "".concat(day.format('dddd, MMMM Do, YYYY')).concat(isSelectedDay ? ', Currently Selected' : ''), | ||
"aria-label": isSelectedDay ? _this.props.getTranslation('%1, Currently Selected', day.format('dddd, MMMM Do, YYYY')) : day.format('dddd, MMMM Do, YYYY'), | ||
className: "calendar-day", | ||
@@ -247,3 +248,7 @@ id: day.isSame(moment.unix(_this.state.focusedDay), 'day') ? 'focused-day' : null, | ||
key: "UNSAFE_componentWillReceiveProps", | ||
value: function UNSAFE_componentWillReceiveProps(newProps) { | ||
value: | ||
// componentDidMount() { | ||
// moment.locale(this.props.locale) | ||
// } | ||
function UNSAFE_componentWillReceiveProps(newProps) { | ||
if (newProps.selectedDate && newProps.selectedDate !== this.props.selectedDate) { | ||
@@ -301,3 +306,3 @@ this.setState({ | ||
}, /*#__PURE__*/React.createElement("a", { | ||
"aria-label": "Go back a month to ".concat(previousMonthText), | ||
"aria-label": this.props.getTranslation('Go back a month to %1', previousMonthText), | ||
className: "mx-calendar-previous", | ||
@@ -315,7 +320,7 @@ onClick: this._handlePreviousClick, | ||
})), /*#__PURE__*/React.createElement("div", { | ||
"aria-label": "Currently in ".concat(currentMonthText), | ||
"aria-label": this.props.getTranslation('Currently in %1', currentMonthText), | ||
className: "mx-calendar-current-month", | ||
role: "heading" | ||
}, currentMonthText), /*#__PURE__*/React.createElement("a", { | ||
"aria-label": "Go forward a month to ".concat(nextMonthText), | ||
"aria-label": this.props.getTranslation('Go forward a month to %1', nextMonthText), | ||
className: "mx-calendar-next", | ||
@@ -348,3 +353,4 @@ onClick: this._handleNextClick, | ||
_defineProperty(Calendar, "propTypes", { | ||
locale: PropTypes.string, | ||
getTranslation: PropTypes.func, | ||
// locale: PropTypes.string, | ||
minimumDate: PropTypes.number, | ||
@@ -351,0 +357,0 @@ onDateSelect: PropTypes.func, |
{ | ||
"name": "mx-react-components", | ||
"version": "8.6.4-alpha.5", | ||
"version": "8.6.4-alpha.6", | ||
"description": "A collection of generic React UI components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
782540
13529