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

@mui/x-date-pickers-pro

Package Overview
Dependencies
Maintainers
14
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/x-date-pickers-pro - npm Package Compare versions

Comparing version 7.9.0 to 7.10.0

4

DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js

@@ -6,3 +6,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import PropTypes from 'prop-types';
import { extractValidationProps, isDatePickerView, isInternalTimeView } from '@mui/x-date-pickers/internals';
import { extractValidationProps, isDatePickerView, isInternalTimeView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
import { resolveComponentProps } from '@mui/base/utils';

@@ -78,2 +78,3 @@ import { refType } from '@mui/utils';

const DesktopDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDateTimeRangePicker(inProps, ref) {
const utils = useUtils();
// Props with the default values common to all date time range pickers

@@ -97,2 +98,3 @@ const defaultizedProps = useDateTimeRangePickerDefaultizedProps(inProps, 'MuiDesktopDateTimeRangePicker');

viewRenderers,
format: resolveDateTimeFormat(utils, defaultizedProps),
// force true to correctly handle `renderTimeViewClock` as a renderer

@@ -99,0 +101,0 @@ ampmInClock: true,

/**
* @mui/x-date-pickers-pro v7.9.0
* @mui/x-date-pickers-pro v7.10.0
*

@@ -4,0 +4,0 @@ * @license MUI X Commercial

import { ponyfillGlobal } from '@mui/utils';
export const getReleaseInfo = () => {
const releaseInfo = "MTcyMDEyNjgwMDAwMA==";
const releaseInfo = "MTcyMDY0ODgwMDAwMA==";
if (process.env.NODE_ENV !== 'production') {

@@ -5,0 +5,0 @@ // A simple hack to set the value in the test environment (has no build step).

@@ -7,3 +7,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import { refType } from '@mui/utils';
import { DIALOG_WIDTH, VIEW_HEIGHT, extractValidationProps, isInternalTimeView, isDatePickerView } from '@mui/x-date-pickers/internals';
import { DIALOG_WIDTH, VIEW_HEIGHT, extractValidationProps, isInternalTimeView, isDatePickerView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
import { resolveComponentProps } from '@mui/base/utils';

@@ -86,2 +86,3 @@ import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';

const MobileDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateTimeRangePicker(inProps, ref) {
const utils = useUtils();
// Props with the default values common to all date time range pickers

@@ -99,2 +100,3 @@ const defaultizedProps = useDateTimeRangePickerDefaultizedProps(inProps, 'MuiMobileDateTimeRangePicker');

viewRenderers,
format: resolveDateTimeFormat(utils, defaultizedProps),
// Force one calendar on mobile to avoid layout issues

@@ -101,0 +103,0 @@ calendars: 1,

@@ -6,3 +6,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import PropTypes from 'prop-types';
import { extractValidationProps, isDatePickerView, isInternalTimeView } from '@mui/x-date-pickers/internals';
import { extractValidationProps, isDatePickerView, isInternalTimeView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
import { resolveComponentProps } from '@mui/base/utils';

@@ -78,2 +78,3 @@ import { refType } from '@mui/utils';

const DesktopDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDateTimeRangePicker(inProps, ref) {
const utils = useUtils();
// Props with the default values common to all date time range pickers

@@ -97,2 +98,3 @@ const defaultizedProps = useDateTimeRangePickerDefaultizedProps(inProps, 'MuiDesktopDateTimeRangePicker');

viewRenderers,
format: resolveDateTimeFormat(utils, defaultizedProps),
// force true to correctly handle `renderTimeViewClock` as a renderer

@@ -99,0 +101,0 @@ ampmInClock: true,

/**
* @mui/x-date-pickers-pro v7.9.0
* @mui/x-date-pickers-pro v7.10.0
*

@@ -4,0 +4,0 @@ * @license MUI X Commercial

import { ponyfillGlobal } from '@mui/utils';
export const getReleaseInfo = () => {
const releaseInfo = "MTcyMDEyNjgwMDAwMA==";
const releaseInfo = "MTcyMDY0ODgwMDAwMA==";
if (process.env.NODE_ENV !== 'production') {

@@ -5,0 +5,0 @@ // A simple hack to set the value in the test environment (has no build step).

@@ -7,3 +7,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import { refType } from '@mui/utils';
import { DIALOG_WIDTH, VIEW_HEIGHT, extractValidationProps, isInternalTimeView, isDatePickerView } from '@mui/x-date-pickers/internals';
import { DIALOG_WIDTH, VIEW_HEIGHT, extractValidationProps, isInternalTimeView, isDatePickerView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
import { resolveComponentProps } from '@mui/base/utils';

@@ -86,2 +86,3 @@ import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';

const MobileDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateTimeRangePicker(inProps, ref) {
const utils = useUtils();
// Props with the default values common to all date time range pickers

@@ -99,2 +100,3 @@ const defaultizedProps = useDateTimeRangePickerDefaultizedProps(inProps, 'MuiMobileDateTimeRangePicker');

viewRenderers,
format: resolveDateTimeFormat(utils, defaultizedProps),
// Force one calendar on mobile to avoid layout issues

@@ -101,0 +103,0 @@ calendars: 1,

import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["calendars", "month", "monthIndex", "labelId"];
const _excluded = ["calendars", "month", "monthIndex", "labelId"],
_excluded2 = ["format", "slots", "slotProps", "currentMonth", "onMonthChange", "disableFuture", "disablePast", "minDate", "maxDate", "timezone", "reduceAnimations", "views", "view"];
import * as React from 'react';

@@ -28,13 +29,15 @@ import PropTypes from 'prop-types';

const {
format,
slots,
slotProps,
currentMonth,
onMonthChange,
disableFuture,
disablePast,
minDate,
maxDate,
timezone
} = props;
format,
slots,
slotProps,
currentMonth,
onMonthChange,
disableFuture,
disablePast,
minDate,
maxDate,
timezone
// omit props that are not used in the PickersArrowSwitcher
} = other,
otherRangeProps = _objectWithoutPropertiesLoose(other, _excluded2);
const isNextMonthDisabled = useNextMonthDisabled(currentMonth, {

@@ -58,3 +61,3 @@ disableFuture,

const selectPreviousMonth = () => onMonthChange(utils.addMonths(currentMonth, -1), 'right');
return /*#__PURE__*/_jsx(PickersRangeCalendarHeaderContentMultipleCalendars, {
return /*#__PURE__*/_jsx(PickersRangeCalendarHeaderContentMultipleCalendars, _extends({}, otherRangeProps, {
ref: ref,

@@ -73,3 +76,3 @@ onGoToPrevious: selectPreviousMonth,

children: utils.formatByString(month, format ?? `${utils.formats.month} ${utils.formats.year}`)
});
}));
});

@@ -76,0 +79,0 @@ process.env.NODE_ENV !== "production" ? PickersRangeCalendarHeader.propTypes = {

@@ -86,2 +86,3 @@ "use strict";

const DesktopDateTimeRangePicker = exports.DesktopDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDateTimeRangePicker(inProps, ref) {
const utils = (0, _internals.useUtils)();
// Props with the default values common to all date time range pickers

@@ -105,2 +106,3 @@ const defaultizedProps = (0, _shared.useDateTimeRangePickerDefaultizedProps)(inProps, 'MuiDesktopDateTimeRangePicker');

viewRenderers,
format: (0, _internals.resolveDateTimeFormat)(utils, defaultizedProps),
// force true to correctly handle `renderTimeViewClock` as a renderer

@@ -107,0 +109,0 @@ ampmInClock: true,

/**
* @mui/x-date-pickers-pro v7.9.0
* @mui/x-date-pickers-pro v7.10.0
*

@@ -4,0 +4,0 @@ * @license MUI X Commercial

@@ -9,3 +9,3 @@ "use strict";

const getReleaseInfo = () => {
const releaseInfo = "MTcyMDEyNjgwMDAwMA==";
const releaseInfo = "MTcyMDY0ODgwMDAwMA==";
if (process.env.NODE_ENV !== 'production') {

@@ -12,0 +12,0 @@ // A simple hack to set the value in the test environment (has no build step).

@@ -94,2 +94,3 @@ "use strict";

const MobileDateTimeRangePicker = exports.MobileDateTimeRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateTimeRangePicker(inProps, ref) {
const utils = (0, _internals.useUtils)();
// Props with the default values common to all date time range pickers

@@ -107,2 +108,3 @@ const defaultizedProps = (0, _shared.useDateTimeRangePickerDefaultizedProps)(inProps, 'MuiMobileDateTimeRangePicker');

viewRenderers,
format: (0, _internals.resolveDateTimeFormat)(utils, defaultizedProps),
// Force one calendar on mobile to avoid layout issues

@@ -109,0 +111,0 @@ calendars: 1,

@@ -17,3 +17,4 @@ "use strict";

var _jsxRuntime = require("react/jsx-runtime");
const _excluded = ["calendars", "month", "monthIndex", "labelId"];
const _excluded = ["calendars", "month", "monthIndex", "labelId"],
_excluded2 = ["format", "slots", "slotProps", "currentMonth", "onMonthChange", "disableFuture", "disablePast", "minDate", "maxDate", "timezone", "reduceAnimations", "views", "view"];
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }

@@ -38,13 +39,15 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

const {
format,
slots,
slotProps,
currentMonth,
onMonthChange,
disableFuture,
disablePast,
minDate,
maxDate,
timezone
} = props;
format,
slots,
slotProps,
currentMonth,
onMonthChange,
disableFuture,
disablePast,
minDate,
maxDate,
timezone
// omit props that are not used in the PickersArrowSwitcher
} = other,
otherRangeProps = (0, _objectWithoutPropertiesLoose2.default)(other, _excluded2);
const isNextMonthDisabled = (0, _internals.useNextMonthDisabled)(currentMonth, {

@@ -68,3 +71,3 @@ disableFuture,

const selectPreviousMonth = () => onMonthChange(utils.addMonths(currentMonth, -1), 'right');
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersRangeCalendarHeaderContentMultipleCalendars, {
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PickersRangeCalendarHeaderContentMultipleCalendars, (0, _extends2.default)({}, otherRangeProps, {
ref: ref,

@@ -83,3 +86,3 @@ onGoToPrevious: selectPreviousMonth,

children: utils.formatByString(month, format ?? `${utils.formats.month} ${utils.formats.year}`)
});
}));
});

@@ -86,0 +89,0 @@ process.env.NODE_ENV !== "production" ? PickersRangeCalendarHeader.propTypes = {

{
"name": "@mui/x-date-pickers-pro",
"version": "7.9.0",
"version": "7.10.0",
"description": "The Pro plan edition of the Date and Time Picker components (MUI X).",

@@ -42,4 +42,4 @@ "author": "MUI Team",

"react-transition-group": "^4.4.5",
"@mui/x-date-pickers": "7.9.0",
"@mui/x-license": "7.9.0"
"@mui/x-date-pickers": "7.10.0",
"@mui/x-license": "7.10.0"
},

@@ -46,0 +46,0 @@ "peerDependencies": {

import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["calendars", "month", "monthIndex", "labelId"];
const _excluded = ["calendars", "month", "monthIndex", "labelId"],
_excluded2 = ["format", "slots", "slotProps", "currentMonth", "onMonthChange", "disableFuture", "disablePast", "minDate", "maxDate", "timezone", "reduceAnimations", "views", "view"];
import * as React from 'react';

@@ -28,13 +29,15 @@ import PropTypes from 'prop-types';

const {
format,
slots,
slotProps,
currentMonth,
onMonthChange,
disableFuture,
disablePast,
minDate,
maxDate,
timezone
} = props;
format,
slots,
slotProps,
currentMonth,
onMonthChange,
disableFuture,
disablePast,
minDate,
maxDate,
timezone
// omit props that are not used in the PickersArrowSwitcher
} = other,
otherRangeProps = _objectWithoutPropertiesLoose(other, _excluded2);
const isNextMonthDisabled = useNextMonthDisabled(currentMonth, {

@@ -58,3 +61,3 @@ disableFuture,

const selectPreviousMonth = () => onMonthChange(utils.addMonths(currentMonth, -1), 'right');
return /*#__PURE__*/_jsx(PickersRangeCalendarHeaderContentMultipleCalendars, {
return /*#__PURE__*/_jsx(PickersRangeCalendarHeaderContentMultipleCalendars, _extends({}, otherRangeProps, {
ref: ref,

@@ -73,3 +76,3 @@ onGoToPrevious: selectPreviousMonth,

children: utils.formatByString(month, format ?? `${utils.formats.month} ${utils.formats.year}`)
});
}));
});

@@ -76,0 +79,0 @@ process.env.NODE_ENV !== "production" ? PickersRangeCalendarHeader.propTypes = {

Sorry, the diff of this file is too big to display

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