Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mx-react-components

Package Overview
Dependencies
Maintainers
16
Versions
489
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mx-react-components - npm Package Compare versions

Comparing version 8.6.4-alpha.5 to 8.6.4-alpha.6

18

dist/components/Calendar.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc