@mui/x-date-pickers 7.0.0-alpha.7 → 7.0.0-alpha.8

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.
Files changed (109) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +4 -21
  2. package/AdapterDateFns/AdapterDateFns.js +11 -255
  3. package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +62 -0
  4. package/AdapterDateFnsBase/AdapterDateFnsBase.js +291 -0
  5. package/AdapterDateFnsBase/index.d.ts +1 -0
  6. package/AdapterDateFnsBase/index.js +1 -0
  7. package/AdapterDateFnsBase/package.json +6 -0
  8. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +1 -0
  9. package/AdapterDateFnsV3/AdapterDateFnsV3.d.ts +80 -0
  10. package/AdapterDateFnsV3/AdapterDateFnsV3.js +287 -0
  11. package/AdapterDateFnsV3/index.d.ts +1 -0
  12. package/AdapterDateFnsV3/index.js +1 -0
  13. package/AdapterDateFnsV3/package.json +6 -0
  14. package/CHANGELOG.md +175 -49
  15. package/DatePicker/DatePickerToolbar.d.ts +2 -2
  16. package/DatePicker/DatePickerToolbar.js +2 -7
  17. package/DigitalClock/DigitalClock.js +1 -0
  18. package/DigitalClock/DigitalClock.types.d.ts +5 -0
  19. package/LocalizationProvider/LocalizationProvider.js +1 -1
  20. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  21. package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +5 -0
  22. package/PickersSectionList/PickersSectionList.js +1 -1
  23. package/TimeClock/TimeClock.js +1 -0
  24. package/TimeClock/TimeClock.types.d.ts +5 -0
  25. package/hooks/useClearableField.js +3 -3
  26. package/index.js +1 -1
  27. package/internals/components/PickersInput/PickersInput.d.ts +2 -4
  28. package/internals/components/PickersInput/PickersInput.js +2 -3
  29. package/internals/hooks/useField/useField.utils.js +5 -5
  30. package/internals/hooks/usePicker/index.d.ts +1 -1
  31. package/internals/hooks/usePicker/usePickerValue.js +2 -2
  32. package/internals/hooks/useUtils.js +2 -2
  33. package/internals/hooks/useViews.js +2 -2
  34. package/internals/index.d.ts +9 -3
  35. package/internals/index.js +6 -2
  36. package/internals/models/common.d.ts +1 -1
  37. package/internals/models/helpers.d.ts +1 -0
  38. package/internals/utils/views.js +1 -1
  39. package/legacy/AdapterDateFns/AdapterDateFns.js +222 -458
  40. package/legacy/AdapterDateFnsBase/AdapterDateFnsBase.js +293 -0
  41. package/legacy/AdapterDateFnsBase/index.js +1 -0
  42. package/legacy/AdapterDateFnsV3/AdapterDateFnsV3.js +306 -0
  43. package/legacy/AdapterDateFnsV3/index.js +1 -0
  44. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +5 -6
  45. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +5 -6
  46. package/legacy/DatePicker/DatePickerToolbar.js +2 -7
  47. package/legacy/DigitalClock/DigitalClock.js +1 -0
  48. package/legacy/LocalizationProvider/LocalizationProvider.js +1 -1
  49. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  50. package/legacy/PickersSectionList/PickersSectionList.js +1 -1
  51. package/legacy/TimeClock/TimeClock.js +1 -0
  52. package/legacy/hooks/useClearableField.js +3 -3
  53. package/legacy/index.js +1 -1
  54. package/legacy/internals/components/PickersInput/PickersInput.js +2 -3
  55. package/legacy/internals/hooks/useField/useField.utils.js +5 -5
  56. package/legacy/internals/hooks/usePicker/usePickerValue.js +2 -2
  57. package/legacy/internals/hooks/useUtils.js +2 -2
  58. package/legacy/internals/hooks/useViews.js +2 -2
  59. package/legacy/internals/index.js +6 -2
  60. package/legacy/internals/utils/views.js +1 -1
  61. package/legacy/locales/index.js +1 -0
  62. package/locales/enUS.d.ts +1 -1
  63. package/locales/index.d.ts +1 -0
  64. package/locales/index.js +1 -0
  65. package/locales/mk.d.ts +1 -1
  66. package/locales/utils/getPickersLocalization.d.ts +1 -1
  67. package/modern/AdapterDateFns/AdapterDateFns.js +11 -254
  68. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +290 -0
  69. package/modern/AdapterDateFnsBase/index.js +1 -0
  70. package/modern/AdapterDateFnsV3/AdapterDateFnsV3.js +287 -0
  71. package/modern/AdapterDateFnsV3/index.js +1 -0
  72. package/modern/DatePicker/DatePickerToolbar.js +2 -7
  73. package/modern/DigitalClock/DigitalClock.js +1 -0
  74. package/modern/LocalizationProvider/LocalizationProvider.js +1 -1
  75. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  76. package/modern/PickersSectionList/PickersSectionList.js +1 -1
  77. package/modern/TimeClock/TimeClock.js +1 -0
  78. package/modern/hooks/useClearableField.js +3 -3
  79. package/modern/index.js +1 -1
  80. package/modern/internals/components/PickersInput/PickersInput.js +2 -3
  81. package/modern/internals/hooks/useField/useField.utils.js +5 -5
  82. package/modern/internals/hooks/usePicker/usePickerValue.js +2 -2
  83. package/modern/internals/hooks/useUtils.js +2 -2
  84. package/modern/internals/hooks/useViews.js +2 -2
  85. package/modern/internals/index.js +6 -2
  86. package/modern/internals/utils/views.js +1 -1
  87. package/modern/locales/index.js +1 -0
  88. package/node/AdapterDateFns/AdapterDateFns.js +11 -254
  89. package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +298 -0
  90. package/node/AdapterDateFnsBase/index.js +12 -0
  91. package/node/AdapterDateFnsV3/AdapterDateFnsV3.js +295 -0
  92. package/node/AdapterDateFnsV3/index.js +12 -0
  93. package/node/DatePicker/DatePickerToolbar.js +0 -4
  94. package/node/DigitalClock/DigitalClock.js +1 -0
  95. package/node/LocalizationProvider/LocalizationProvider.js +1 -1
  96. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  97. package/node/PickersSectionList/PickersSectionList.js +1 -1
  98. package/node/TimeClock/TimeClock.js +1 -0
  99. package/node/hooks/useClearableField.js +3 -3
  100. package/node/index.js +1 -1
  101. package/node/internals/components/PickersInput/PickersInput.js +2 -3
  102. package/node/internals/hooks/useField/useField.utils.js +5 -5
  103. package/node/internals/hooks/usePicker/usePickerValue.js +2 -2
  104. package/node/internals/hooks/useUtils.js +2 -2
  105. package/node/internals/hooks/useViews.js +2 -2
  106. package/node/internals/index.js +47 -1
  107. package/node/internals/utils/views.js +1 -1
  108. package/node/locales/index.js +11 -0
  109. package/package.json +2 -2
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.0.0-alpha.7
2
+ * @mui/x-date-pickers v7.0.0-alpha.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,7 +8,6 @@ exports.PickersInputSectionsContainer = exports.PickersInputRoot = exports.Picke
8
8
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
- var _Box = _interopRequireDefault(require("@mui/material/Box"));
12
11
  var _FormControl = require("@mui/material/FormControl");
13
12
  var _styles = require("@mui/material/styles");
14
13
  var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
@@ -22,7 +21,7 @@ const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "
22
21
  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); }
23
22
  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 && Object.prototype.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; }
24
23
  const round = value => Math.round(value * 1e5) / 1e5;
25
- const PickersInputRoot = exports.PickersInputRoot = (0, _styles.styled)(_Box.default, {
24
+ const PickersInputRoot = exports.PickersInputRoot = (0, _styles.styled)('div', {
26
25
  name: 'MuiPickersInput',
27
26
  slot: 'Root',
28
27
  overridesResolver: (props, styles) => styles.root
@@ -168,7 +167,7 @@ const PickersInput = exports.PickersInput = /*#__PURE__*/React.forwardRef(functi
168
167
  const handleInputRef = (0, _useForkRef.default)(inputProps?.ref, inputRef);
169
168
  const muiFormControl = (0, _FormControl.useFormControl)();
170
169
  if (!muiFormControl) {
171
- throw new Error('MUI: PickersInput should always be used inside a PickersTextField component');
170
+ throw new Error('MUI X: PickersInput should always be used inside a PickersTextField component');
172
171
  }
173
172
  const handleInputFocus = event => {
174
173
  // Fix a bug with IE11 where the focus/blur events are triggered
@@ -10,7 +10,7 @@ var _dateUtils = require("../../utils/date-utils");
10
10
  const getDateSectionConfigFromFormatToken = (utils, formatToken) => {
11
11
  const config = utils.formatTokenMap[formatToken];
12
12
  if (config == null) {
13
- throw new Error([`MUI: The token "${formatToken}" is not supported by the Date and Time Pickers.`, 'Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported.'].join('\n'));
13
+ throw new Error([`MUI X: The token "${formatToken}" is not supported by the Date and Time Pickers.`, 'Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported.'].join('\n'));
14
14
  }
15
15
  if (typeof config === 'string') {
16
16
  return {
@@ -91,7 +91,7 @@ exports.cleanLeadingZeros = cleanLeadingZeros;
91
91
  const cleanDigitSectionValue = (utils, timezone, value, sectionBoundaries, section) => {
92
92
  if (process.env.NODE_ENV !== 'production') {
93
93
  if (section.type !== 'day' && section.contentType === 'digit-with-letter') {
94
- throw new Error([`MUI: The token "${section.format}" is a digit format with letter in it.'
94
+ throw new Error([`MUI X: The token "${section.format}" is a digit format with letter in it.'
95
95
  This type of format is only supported for 'day' sections`].join('\n'));
96
96
  }
97
97
  }
@@ -374,7 +374,7 @@ const splitFormatIntoSections = (utils, timezone, localeText, format, date, form
374
374
  maxLength = sectionValue === '' ? utils.formatByString(now, token).length : sectionValue.length;
375
375
  } else {
376
376
  if (sectionConfig.maxLength == null) {
377
- throw new Error(`MUI: The token ${token} should have a 'maxDigitNumber' property on it's adapter`);
377
+ throw new Error(`MUI X: The token ${token} should have a 'maxDigitNumber' property on it's adapter`);
378
378
  }
379
379
  maxLength = sectionConfig.maxLength;
380
380
  if (isValidDate) {
@@ -405,7 +405,7 @@ const splitFormatIntoSections = (utils, timezone, localeText, format, date, form
405
405
  nextFormat = utils.expandFormat(prevFormat);
406
406
  formatExpansionOverflow -= 1;
407
407
  if (formatExpansionOverflow < 0) {
408
- throw new Error('MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component');
408
+ throw new Error('MUI X: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component.');
409
409
  }
410
410
  }
411
411
  const expandedFormat = nextFormat;
@@ -623,7 +623,7 @@ const validateSections = (sections, valueType) => {
623
623
  }
624
624
  const invalidSection = sections.find(section => !supportedSections.includes(section.type));
625
625
  if (invalidSection) {
626
- console.warn(`MUI: The field component you are using is not compatible with the "${invalidSection.type}" date section.`, `The supported date sections are ["${supportedSections.join('", "')}"]\`.`);
626
+ console.warn(`MUI X: The field component you are using is not compatible with the "${invalidSection.type}" date section.`, `The supported date sections are ["${supportedSections.join('", "')}"]\`.`);
627
627
  warnedOnceInvalidSection = true;
628
628
  }
629
629
  }
@@ -146,12 +146,12 @@ const usePickerValue = ({
146
146
  if (process.env.NODE_ENV !== 'production') {
147
147
  React.useEffect(() => {
148
148
  if (isControlled !== (inValue !== undefined)) {
149
- console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled value of a picker to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled value` + 'for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
149
+ console.error([`MUI X: A component is changing the ${isControlled ? '' : 'un'}controlled value of a picker to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled value` + 'for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
150
150
  }
151
151
  }, [inValue]);
152
152
  React.useEffect(() => {
153
153
  if (!isControlled && defaultValue !== inDefaultValue) {
154
- console.error([`MUI: A component is changing the defaultValue of an uncontrolled picker after being initialized. ` + `To suppress this warning opt to use a controlled value.`].join('\n'));
154
+ console.error([`MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. ` + `To suppress this warning opt to use a controlled value.`].join('\n'));
155
155
  }
156
156
  }, [JSON.stringify(defaultValue)]);
157
157
  }
@@ -14,10 +14,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
14
14
  const useLocalizationContext = () => {
15
15
  const localization = React.useContext(_LocalizationProvider.MuiPickersAdapterContext);
16
16
  if (localization === null) {
17
- throw new Error(['MUI: Can not find the date and time pickers localization context.', 'It looks like you forgot to wrap your component in LocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package'].join('\n'));
17
+ throw new Error(['MUI X: Can not find the date and time pickers localization context.', 'It looks like you forgot to wrap your component in LocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package'].join('\n'));
18
18
  }
19
19
  if (localization.utils === null) {
20
- throw new Error(['MUI: Can not find the date and time pickers adapter from its localization context.', 'It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.'].join('\n'));
20
+ throw new Error(['MUI X: Can not find the date and time pickers adapter from its localization context.', 'It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.'].join('\n'));
21
21
  }
22
22
  const localeText = React.useMemo(() => (0, _extends2.default)({}, _enUS.DEFAULT_LOCALE, localization.localeText), [localization.localeText]);
23
23
  return React.useMemo(() => (0, _extends2.default)({}, localization, {
@@ -24,11 +24,11 @@ function useViews({
24
24
  if (process.env.NODE_ENV !== 'production') {
25
25
  if (!warnedOnceNotValidView) {
26
26
  if (inView != null && !views.includes(inView)) {
27
- console.warn(`MUI: \`view="${inView}"\` is not a valid prop.`, `It must be an element of \`views=["${views.join('", "')}"]\`.`);
27
+ console.warn(`MUI X: \`view="${inView}"\` is not a valid prop.`, `It must be an element of \`views=["${views.join('", "')}"]\`.`);
28
28
  warnedOnceNotValidView = true;
29
29
  }
30
30
  if (inView == null && openTo != null && !views.includes(openTo)) {
31
- console.warn(`MUI: \`openTo="${openTo}"\` is not a valid prop.`, `It must be an element of \`views=["${views.join('", "')}"]\`.`);
31
+ console.warn(`MUI X: \`openTo="${openTo}"\` is not a valid prop.`, `It must be an element of \`views=["${views.join('", "')}"]\`.`);
32
32
  warnedOnceNotValidView = true;
33
33
  }
34
34
  }
@@ -69,6 +69,12 @@ Object.defineProperty(exports, "applyDefaultDate", {
69
69
  return _dateUtils.applyDefaultDate;
70
70
  }
71
71
  });
72
+ Object.defineProperty(exports, "applyDefaultViewProps", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _views.applyDefaultViewProps;
76
+ }
77
+ });
72
78
  Object.defineProperty(exports, "areDatesEqual", {
73
79
  enumerable: true,
74
80
  get: function () {
@@ -111,6 +117,12 @@ Object.defineProperty(exports, "extractValidationProps", {
111
117
  return _extractValidationProps.extractValidationProps;
112
118
  }
113
119
  });
120
+ Object.defineProperty(exports, "formatMeridiem", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _dateUtils.formatMeridiem;
124
+ }
125
+ });
114
126
  Object.defineProperty(exports, "getActiveElement", {
115
127
  enumerable: true,
116
128
  get: function () {
@@ -129,6 +141,24 @@ Object.defineProperty(exports, "getTodayDate", {
129
141
  return _dateUtils.getTodayDate;
130
142
  }
131
143
  });
144
+ Object.defineProperty(exports, "isDatePickerView", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _dateUtils.isDatePickerView;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "isTimeView", {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _timeUtils.isTimeView;
154
+ }
155
+ });
156
+ Object.defineProperty(exports, "mergeDateAndTime", {
157
+ enumerable: true,
158
+ get: function () {
159
+ return _dateUtils.mergeDateAndTime;
160
+ }
161
+ });
132
162
  Object.defineProperty(exports, "onSpaceOrEnter", {
133
163
  enumerable: true,
134
164
  get: function () {
@@ -171,6 +201,12 @@ Object.defineProperty(exports, "replaceInvalidDateByNull", {
171
201
  return _dateUtils.replaceInvalidDateByNull;
172
202
  }
173
203
  });
204
+ Object.defineProperty(exports, "resolveTimeViewsResponse", {
205
+ enumerable: true,
206
+ get: function () {
207
+ return _dateTimeUtils.resolveTimeViewsResponse;
208
+ }
209
+ });
174
210
  Object.defineProperty(exports, "splitFieldInternalAndForwardedProps", {
175
211
  enumerable: true,
176
212
  get: function () {
@@ -261,6 +297,12 @@ Object.defineProperty(exports, "useValidation", {
261
297
  return _useValidation.useValidation;
262
298
  }
263
299
  });
300
+ Object.defineProperty(exports, "useViews", {
301
+ enumerable: true,
302
+ get: function () {
303
+ return _useViews.useViews;
304
+ }
305
+ });
264
306
  Object.defineProperty(exports, "validateDate", {
265
307
  enumerable: true,
266
308
  get: function () {
@@ -295,10 +337,12 @@ var _useField = require("./hooks/useField");
295
337
  var _usePicker = require("./hooks/usePicker");
296
338
  var _useStaticPicker = require("./hooks/useStaticPicker");
297
339
  var _useUtils = require("./hooks/useUtils");
340
+ var _useViews = require("./hooks/useViews");
298
341
  var _useValidation = require("./hooks/useValidation");
299
342
  var _dateHelpersHooks = require("./hooks/date-helpers-hooks");
300
343
  var _convertFieldResponseIntoMuiTextFieldProps = require("./utils/convertFieldResponseIntoMuiTextFieldProps");
301
344
  var _dateUtils = require("./utils/date-utils");
345
+ var _dateTimeUtils = require("./utils/date-time-utils");
302
346
  var _fields = require("./utils/fields");
303
347
  var _getDefaultReferenceDate = require("./utils/getDefaultReferenceDate");
304
348
  var _utils = require("./utils/utils");
@@ -307,6 +351,8 @@ var _extractValidationProps = require("./utils/validation/extractValidationProps
307
351
  var _validateDate = require("./utils/validation/validateDate");
308
352
  var _validateDateTime = require("./utils/validation/validateDateTime");
309
353
  var _validateTime = require("./utils/validation/validateTime");
354
+ var _views = require("./utils/views");
310
355
  var _warning = require("./utils/warning");
311
356
  var _DayCalendar = require("../DateCalendar/DayCalendar");
312
- var _useCalendarState = require("../DateCalendar/useCalendarState");
357
+ var _useCalendarState = require("../DateCalendar/useCalendarState");
358
+ var _timeUtils = require("./utils/time-utils");
@@ -26,7 +26,7 @@ const applyDefaultViewProps = ({
26
26
  } else if (viewsWithDefault.length > 0) {
27
27
  openToWithDefault = viewsWithDefault[0];
28
28
  } else {
29
- throw new Error('MUI: The `views` prop must contain at least one view');
29
+ throw new Error('MUI X: The `views` prop must contain at least one view.');
30
30
  }
31
31
  return {
32
32
  views: viewsWithDefault,
@@ -36,6 +36,17 @@ Object.keys(_csCZ).forEach(function (key) {
36
36
  }
37
37
  });
38
38
  });
39
+ var _daDK = require("./daDK");
40
+ Object.keys(_daDK).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _daDK[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _daDK[key];
47
+ }
48
+ });
49
+ });
39
50
  var _deDE = require("./deDE");
40
51
  Object.keys(_deDE).forEach(function (key) {
41
52
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "7.0.0-alpha.7",
3
+ "version": "7.0.0-alpha.8",
4
4
  "description": "The community edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -47,7 +47,7 @@
47
47
  "@emotion/react": "^11.9.0",
48
48
  "@emotion/styled": "^11.8.1",
49
49
  "@mui/material": "^5.8.6",
50
- "date-fns": "^2.25.0",
50
+ "date-fns": "^2.25.0 || ^3.2.0",
51
51
  "date-fns-jalali": "^2.13.0-0",
52
52
  "dayjs": "^1.10.7",
53
53
  "luxon": "^3.0.2",