@mui/x-date-pickers-pro 7.14.0 → 7.16.0

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 (169) hide show
  1. package/CHANGELOG.md +167 -1
  2. package/DateRangeCalendar/DateRangeCalendar.js +11 -11
  3. package/DateRangeCalendar/index.js +2 -2
  4. package/DateRangeCalendar/useDragRange.js +1 -1
  5. package/DateRangePicker/DateRangePicker.js +13 -13
  6. package/DateRangePicker/DateRangePickerToolbar.js +1 -1
  7. package/DateRangePicker/index.js +3 -3
  8. package/DateRangePicker/shared.js +1 -1
  9. package/DateRangePickerDay/DateRangePickerDay.js +2 -2
  10. package/DateRangePickerDay/index.js +2 -2
  11. package/DateTimeRangePicker/DateTimeRangePicker.js +13 -13
  12. package/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -1
  13. package/DateTimeRangePicker/DateTimeRangePickerTimeWrapper.js +2 -2
  14. package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -2
  15. package/DateTimeRangePicker/index.js +5 -5
  16. package/DateTimeRangePicker/shared.js +2 -2
  17. package/DesktopDateRangePicker/DesktopDateRangePicker.js +17 -17
  18. package/DesktopDateRangePicker/index.js +1 -1
  19. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +20 -20
  20. package/DesktopDateTimeRangePicker/index.js +1 -1
  21. package/MobileDateRangePicker/MobileDateRangePicker.js +17 -17
  22. package/MobileDateRangePicker/index.js +1 -1
  23. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +20 -20
  24. package/MobileDateTimeRangePicker/index.js +1 -1
  25. package/MultiInputDateRangeField/MultiInputDateRangeField.js +11 -9
  26. package/MultiInputDateRangeField/index.js +2 -2
  27. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +11 -9
  28. package/MultiInputDateTimeRangeField/index.js +2 -2
  29. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +11 -9
  30. package/MultiInputTimeRangeField/index.js +2 -2
  31. package/PickersRangeCalendarHeader/index.js +1 -1
  32. package/SingleInputDateRangeField/SingleInputDateRangeField.js +10 -8
  33. package/SingleInputDateRangeField/index.js +2 -2
  34. package/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -2
  35. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +10 -8
  36. package/SingleInputDateTimeRangeField/index.js +2 -2
  37. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -2
  38. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +10 -8
  39. package/SingleInputTimeRangeField/index.js +2 -2
  40. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -2
  41. package/StaticDateRangePicker/StaticDateRangePicker.js +16 -16
  42. package/StaticDateRangePicker/index.js +1 -1
  43. package/dateRangeViewRenderers/dateRangeViewRenderers.js +1 -1
  44. package/dateRangeViewRenderers/index.js +1 -1
  45. package/index.js +19 -19
  46. package/internals/hooks/useDesktopRangePicker/index.js +1 -1
  47. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -3
  48. package/internals/hooks/useMobileRangePicker/index.js +1 -1
  49. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -3
  50. package/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +4 -4
  51. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +4 -4
  52. package/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +4 -4
  53. package/internals/hooks/useStaticRangePicker/index.js +1 -1
  54. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -1
  55. package/internals/models/index.js +4 -4
  56. package/internals/utils/releaseInfo.js +1 -1
  57. package/internals/utils/validation/validateDateRange.js +1 -1
  58. package/internals/utils/validation/validateDateTimeRange.js +1 -1
  59. package/internals/utils/validation/validateTimeRange.js +1 -1
  60. package/internals/utils/valueManagers.js +1 -1
  61. package/models/index.js +5 -5
  62. package/modern/DateRangeCalendar/DateRangeCalendar.js +11 -11
  63. package/modern/DateRangeCalendar/index.js +2 -2
  64. package/modern/DateRangeCalendar/useDragRange.js +1 -1
  65. package/modern/DateRangePicker/DateRangePicker.js +13 -13
  66. package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
  67. package/modern/DateRangePicker/index.js +3 -3
  68. package/modern/DateRangePicker/shared.js +1 -1
  69. package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
  70. package/modern/DateRangePickerDay/index.js +2 -2
  71. package/modern/DateTimeRangePicker/DateTimeRangePicker.js +13 -13
  72. package/modern/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -1
  73. package/modern/DateTimeRangePicker/DateTimeRangePickerTimeWrapper.js +2 -2
  74. package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -2
  75. package/modern/DateTimeRangePicker/index.js +5 -5
  76. package/modern/DateTimeRangePicker/shared.js +2 -2
  77. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +17 -17
  78. package/modern/DesktopDateRangePicker/index.js +1 -1
  79. package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +20 -20
  80. package/modern/DesktopDateTimeRangePicker/index.js +1 -1
  81. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +17 -17
  82. package/modern/MobileDateRangePicker/index.js +1 -1
  83. package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +20 -20
  84. package/modern/MobileDateTimeRangePicker/index.js +1 -1
  85. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +11 -9
  86. package/modern/MultiInputDateRangeField/index.js +2 -2
  87. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +11 -9
  88. package/modern/MultiInputDateTimeRangeField/index.js +2 -2
  89. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +11 -9
  90. package/modern/MultiInputTimeRangeField/index.js +2 -2
  91. package/modern/PickersRangeCalendarHeader/index.js +1 -1
  92. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +10 -8
  93. package/modern/SingleInputDateRangeField/index.js +2 -2
  94. package/modern/SingleInputDateRangeField/useSingleInputDateRangeField.js +2 -2
  95. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +10 -8
  96. package/modern/SingleInputDateTimeRangeField/index.js +2 -2
  97. package/modern/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +2 -2
  98. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +10 -8
  99. package/modern/SingleInputTimeRangeField/index.js +2 -2
  100. package/modern/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +2 -2
  101. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +16 -16
  102. package/modern/StaticDateRangePicker/index.js +1 -1
  103. package/modern/dateRangeViewRenderers/dateRangeViewRenderers.js +1 -1
  104. package/modern/dateRangeViewRenderers/index.js +1 -1
  105. package/modern/index.js +19 -19
  106. package/modern/internals/hooks/useDesktopRangePicker/index.js +1 -1
  107. package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -3
  108. package/modern/internals/hooks/useMobileRangePicker/index.js +1 -1
  109. package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -3
  110. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +4 -4
  111. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +4 -4
  112. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +4 -4
  113. package/modern/internals/hooks/useStaticRangePicker/index.js +1 -1
  114. package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -1
  115. package/modern/internals/models/index.js +4 -4
  116. package/modern/internals/utils/releaseInfo.js +1 -1
  117. package/modern/internals/utils/validation/validateDateRange.js +1 -1
  118. package/modern/internals/utils/validation/validateDateTimeRange.js +1 -1
  119. package/modern/internals/utils/validation/validateTimeRange.js +1 -1
  120. package/modern/internals/utils/valueManagers.js +1 -1
  121. package/modern/models/index.js +5 -5
  122. package/modern/themeAugmentation/index.js +1 -4
  123. package/node/DateRangeCalendar/DateRangeCalendar.js +3 -4
  124. package/node/DateRangeCalendar/useDragRange.js +2 -3
  125. package/node/DateRangePicker/DateRangePicker.js +13 -14
  126. package/node/DateRangePicker/DateRangePickerToolbar.js +2 -3
  127. package/node/DateRangePicker/shared.js +2 -3
  128. package/node/DateRangePickerDay/DateRangePickerDay.js +2 -3
  129. package/node/DateTimeRangePicker/DateTimeRangePicker.js +13 -14
  130. package/node/DateTimeRangePicker/DateTimeRangePickerTabs.js +2 -3
  131. package/node/DateTimeRangePicker/DateTimeRangePickerTimeWrapper.js +1 -1
  132. package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -3
  133. package/node/DateTimeRangePicker/dateTimeRangePickerTabsClasses.js +1 -1
  134. package/node/DateTimeRangePicker/shared.js +1 -1
  135. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +13 -14
  136. package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +14 -15
  137. package/node/MobileDateRangePicker/MobileDateRangePicker.js +13 -14
  138. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +14 -15
  139. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +12 -11
  140. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +12 -11
  141. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +12 -11
  142. package/node/PickersRangeCalendarHeader/PickersRangeCalendarHeader.js +2 -3
  143. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +11 -10
  144. package/node/SingleInputDateRangeField/useSingleInputDateRangeField.js +1 -2
  145. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +11 -10
  146. package/node/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +1 -2
  147. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +11 -10
  148. package/node/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +1 -2
  149. package/node/StaticDateRangePicker/StaticDateRangePicker.js +13 -14
  150. package/node/dateRangeViewRenderers/dateRangeViewRenderers.js +1 -2
  151. package/node/index.js +1 -1
  152. package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -3
  153. package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +2 -3
  154. package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -3
  155. package/node/internals/hooks/useMultiInputFieldSelectedSections.js +2 -3
  156. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +1 -1
  157. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +1 -1
  158. package/node/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +1 -1
  159. package/node/internals/hooks/useRangePosition.js +1 -1
  160. package/node/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +2 -3
  161. package/node/internals/utils/date-fields-utils.js +1 -1
  162. package/node/internals/utils/releaseInfo.js +1 -1
  163. package/node/internals/utils/validation/validateDateRange.js +1 -1
  164. package/node/internals/utils/validation/validateDateTimeRange.js +1 -1
  165. package/node/internals/utils/valueManagers.js +1 -1
  166. package/node/themeAugmentation/index.js +0 -33
  167. package/package.json +7 -6
  168. package/themeAugmentation/index.d.ts +3 -3
  169. package/themeAugmentation/index.js +1 -4
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.14.0
2
+ * @mui/x-date-pickers-pro v7.16.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -12,29 +12,29 @@ import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
12
12
  */
13
13
  export class LicenseInfo extends LicenseInfoExport {}
14
14
  export * from '@mui/x-date-pickers';
15
- export * from './DateRangePickerDay';
15
+ export * from "./DateRangePickerDay/index.js";
16
16
 
17
17
  // Fields
18
- export * from './MultiInputDateRangeField';
19
- export * from './MultiInputTimeRangeField';
20
- export * from './MultiInputDateTimeRangeField';
21
- export * from './SingleInputDateRangeField';
22
- export * from './SingleInputTimeRangeField';
23
- export * from './SingleInputDateTimeRangeField';
18
+ export * from "./MultiInputDateRangeField/index.js";
19
+ export * from "./MultiInputTimeRangeField/index.js";
20
+ export * from "./MultiInputDateTimeRangeField/index.js";
21
+ export * from "./SingleInputDateRangeField/index.js";
22
+ export * from "./SingleInputTimeRangeField/index.js";
23
+ export * from "./SingleInputDateTimeRangeField/index.js";
24
24
 
25
25
  // Calendars
26
- export * from './DateRangeCalendar';
27
- export * from './PickersRangeCalendarHeader';
26
+ export * from "./DateRangeCalendar/index.js";
27
+ export * from "./PickersRangeCalendarHeader/index.js";
28
28
 
29
29
  // New pickers
30
- export * from './DateRangePicker';
31
- export * from './DesktopDateRangePicker';
32
- export * from './MobileDateRangePicker';
33
- export * from './StaticDateRangePicker';
34
- export * from './DateTimeRangePicker';
35
- export * from './DesktopDateTimeRangePicker';
36
- export * from './MobileDateTimeRangePicker';
30
+ export * from "./DateRangePicker/index.js";
31
+ export * from "./DesktopDateRangePicker/index.js";
32
+ export * from "./MobileDateRangePicker/index.js";
33
+ export * from "./StaticDateRangePicker/index.js";
34
+ export * from "./DateTimeRangePicker/index.js";
35
+ export * from "./DesktopDateTimeRangePicker/index.js";
36
+ export * from "./MobileDateTimeRangePicker/index.js";
37
37
 
38
38
  // View renderers
39
- export * from './dateRangeViewRenderers';
40
- export * from './models';
39
+ export * from "./dateRangeViewRenderers/index.js";
40
+ export * from "./models/index.js";
@@ -1 +1 @@
1
- export { useDesktopRangePicker } from './useDesktopRangePicker';
1
+ export { useDesktopRangePicker } from "./useDesktopRangePicker.js";
@@ -7,9 +7,9 @@ import { useLicenseVerifier } from '@mui/x-license';
7
7
  import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
8
8
  import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
9
9
  import { executeInTheNextEventLoopTick, getActiveElement, usePicker, PickersPopper } from '@mui/x-date-pickers/internals';
10
- import { useEnrichedRangePickerFieldProps } from '../useEnrichedRangePickerFieldProps';
11
- import { getReleaseInfo } from '../../utils/releaseInfo';
12
- import { useRangePosition } from '../useRangePosition';
10
+ import { useEnrichedRangePickerFieldProps } from "../useEnrichedRangePickerFieldProps.js";
11
+ import { getReleaseInfo } from "../../utils/releaseInfo.js";
12
+ import { useRangePosition } from "../useRangePosition.js";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const releaseInfo = getReleaseInfo();
15
15
  export const useDesktopRangePicker = _ref => {
@@ -1 +1 @@
1
- export { useMobileRangePicker } from './useMobileRangePicker';
1
+ export { useMobileRangePicker } from "./useMobileRangePicker.js";
@@ -9,9 +9,9 @@ import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
9
9
  import { usePicker, PickersModalDialog } from '@mui/x-date-pickers/internals';
10
10
  import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
11
11
  import useId from '@mui/utils/useId';
12
- import { useEnrichedRangePickerFieldProps } from '../useEnrichedRangePickerFieldProps';
13
- import { getReleaseInfo } from '../../utils/releaseInfo';
14
- import { useRangePosition } from '../useRangePosition';
12
+ import { useEnrichedRangePickerFieldProps } from "../useEnrichedRangePickerFieldProps.js";
13
+ import { getReleaseInfo } from "../../utils/releaseInfo.js";
14
+ import { useRangePosition } from "../useRangePosition.js";
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  const releaseInfo = getReleaseInfo();
17
17
  export const useMobileRangePicker = _ref => {
@@ -2,10 +2,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import useEventCallback from '@mui/utils/useEventCallback';
3
3
  import { unstable_useDateField as useDateField } from '@mui/x-date-pickers/DateField';
4
4
  import { useLocalizationContext, useValidation, useControlledValueWithTimezone, useDefaultizedDateField } from '@mui/x-date-pickers/internals';
5
- import { validateDateRange } from '../../utils/validation/validateDateRange';
6
- import { rangeValueManager } from '../../utils/valueManagers';
7
- import { excludeProps } from './shared';
8
- import { useMultiInputFieldSelectedSections } from '../useMultiInputFieldSelectedSections';
5
+ import { validateDateRange } from "../../utils/validation/validateDateRange.js";
6
+ import { rangeValueManager } from "../../utils/valueManagers.js";
7
+ import { excludeProps } from "./shared.js";
8
+ import { useMultiInputFieldSelectedSections } from "../useMultiInputFieldSelectedSections.js";
9
9
  export const useMultiInputDateRangeField = ({
10
10
  sharedProps: inSharedProps,
11
11
  startTextFieldProps,
@@ -2,10 +2,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import useEventCallback from '@mui/utils/useEventCallback';
3
3
  import { unstable_useDateTimeField as useDateTimeField } from '@mui/x-date-pickers/DateTimeField';
4
4
  import { useLocalizationContext, useValidation, useControlledValueWithTimezone, useDefaultizedDateTimeField } from '@mui/x-date-pickers/internals';
5
- import { validateDateTimeRange } from '../../utils/validation/validateDateTimeRange';
6
- import { rangeValueManager } from '../../utils/valueManagers';
7
- import { excludeProps } from './shared';
8
- import { useMultiInputFieldSelectedSections } from '../useMultiInputFieldSelectedSections';
5
+ import { validateDateTimeRange } from "../../utils/validation/validateDateTimeRange.js";
6
+ import { rangeValueManager } from "../../utils/valueManagers.js";
7
+ import { excludeProps } from "./shared.js";
8
+ import { useMultiInputFieldSelectedSections } from "../useMultiInputFieldSelectedSections.js";
9
9
  export const useMultiInputDateTimeRangeField = ({
10
10
  sharedProps: inSharedProps,
11
11
  startTextFieldProps,
@@ -2,10 +2,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import useEventCallback from '@mui/utils/useEventCallback';
3
3
  import { unstable_useTimeField as useTimeField } from '@mui/x-date-pickers/TimeField';
4
4
  import { useLocalizationContext, useValidation, useControlledValueWithTimezone, useDefaultizedTimeField } from '@mui/x-date-pickers/internals';
5
- import { validateTimeRange } from '../../utils/validation/validateTimeRange';
6
- import { rangeValueManager } from '../../utils/valueManagers';
7
- import { excludeProps } from './shared';
8
- import { useMultiInputFieldSelectedSections } from '../useMultiInputFieldSelectedSections';
5
+ import { validateTimeRange } from "../../utils/validation/validateTimeRange.js";
6
+ import { rangeValueManager } from "../../utils/valueManagers.js";
7
+ import { excludeProps } from "./shared.js";
8
+ import { useMultiInputFieldSelectedSections } from "../useMultiInputFieldSelectedSections.js";
9
9
  export const useMultiInputTimeRangeField = ({
10
10
  sharedProps: inSharedProps,
11
11
  startTextFieldProps,
@@ -1 +1 @@
1
- export { useStaticRangePicker } from './useStaticRangePicker';
1
+ export { useStaticRangePicker } from "./useStaticRangePicker.js";
@@ -7,7 +7,7 @@ import { styled } from '@mui/material/styles';
7
7
  import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
8
8
  import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
9
9
  import { usePicker, DIALOG_WIDTH } from '@mui/x-date-pickers/internals';
10
- import { useRangePosition } from '../useRangePosition';
10
+ import { useRangePosition } from "../useRangePosition.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const PickerStaticLayout = styled(PickersLayout)(({
13
13
  theme
@@ -1,4 +1,4 @@
1
- export * from './dateRange';
2
- export * from './dateTimeRange';
3
- export * from './timeRange';
4
- export * from './rangePickerProps';
1
+ export * from "./dateRange.js";
2
+ export * from "./dateTimeRange.js";
3
+ export * from "./timeRange.js";
4
+ export * from "./rangePickerProps.js";
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcyNDM2MDQwMDAwMA==";
3
+ const releaseInfo = "MTcyNTQ4MzYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["shouldDisableDate"];
4
4
  import { validateDate } from '@mui/x-date-pickers/internals';
5
- import { isRangeValid } from '../date-utils';
5
+ import { isRangeValid } from "../date-utils.js";
6
6
  export const validateDateRange = ({
7
7
  props,
8
8
  value,
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["shouldDisableDate"];
4
4
  import { validateDateTime } from '@mui/x-date-pickers/internals';
5
- import { isRangeValid } from '../date-utils';
5
+ import { isRangeValid } from "../date-utils.js";
6
6
  export const validateDateTimeRange = ({
7
7
  props,
8
8
  value,
@@ -1,5 +1,5 @@
1
1
  import { validateTime } from '@mui/x-date-pickers/internals';
2
- import { isRangeValid } from '../date-utils';
2
+ import { isRangeValid } from "../date-utils.js";
3
3
  export const validateTimeRange = ({
4
4
  props,
5
5
  value,
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["value", "referenceDate"];
4
4
  import { replaceInvalidDateByNull, createDateStrForV7HiddenInputFromSections, createDateStrForV6InputFromSections, areDatesEqual, getTodayDate, getDefaultReferenceDate } from '@mui/x-date-pickers/internals';
5
- import { splitDateRangeSections, removeLastSeparator } from './date-fields-utils';
5
+ import { splitDateRangeSections, removeLastSeparator } from "./date-fields-utils.js";
6
6
  export const rangeValueManager = {
7
7
  emptyValue: [null, null],
8
8
  getTodayValue: (utils, timezone, valueType) => [getTodayDate(utils, timezone, valueType), getTodayDate(utils, timezone, valueType)],
package/models/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from './dateRange';
2
- export * from './fields';
3
- export * from './range';
4
- export * from './validation';
5
- export * from './multiInputRangeFieldClasses';
1
+ export * from "./dateRange.js";
2
+ export * from "./fields.js";
3
+ export * from "./range.js";
4
+ export * from "./validation.js";
5
+ export * from "./multiInputRangeFieldClasses.js";
@@ -14,16 +14,16 @@ import composeClasses from '@mui/utils/composeClasses';
14
14
  import useId from '@mui/utils/useId';
15
15
  import { Watermark } from '@mui/x-license';
16
16
  import { applyDefaultDate, DayCalendar, useDefaultReduceAnimations, useCalendarState, useDefaultDates, useUtils, useNow, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, warnOnce, useControlledValueWithTimezone, useViews } from '@mui/x-date-pickers/internals';
17
- import { getReleaseInfo } from '../internals/utils/releaseInfo';
18
- import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from './dateRangeCalendarClasses';
19
- import { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from '../internals/utils/date-utils';
20
- import { calculateRangeChange, calculateRangePreview } from '../internals/utils/date-range-manager';
21
- import { DateRangePickerDay, dateRangePickerDayClasses as dayClasses } from '../DateRangePickerDay';
22
- import { rangeValueManager } from '../internals/utils/valueManagers';
23
- import { useDragRange } from './useDragRange';
24
- import { useRangePosition } from '../internals/hooks/useRangePosition';
25
- import { DAY_RANGE_SIZE, DAY_MARGIN } from '../internals/constants/dimensions';
26
- import { PickersRangeCalendarHeader } from '../PickersRangeCalendarHeader';
17
+ import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
18
+ import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from "./dateRangeCalendarClasses.js";
19
+ import { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from "../internals/utils/date-utils.js";
20
+ import { calculateRangeChange, calculateRangePreview } from "../internals/utils/date-range-manager.js";
21
+ import { DateRangePickerDay, dateRangePickerDayClasses as dayClasses } from "../DateRangePickerDay/index.js";
22
+ import { rangeValueManager } from "../internals/utils/valueManagers.js";
23
+ import { useDragRange } from "./useDragRange.js";
24
+ import { useRangePosition } from "../internals/hooks/useRangePosition.js";
25
+ import { DAY_RANGE_SIZE, DAY_MARGIN } from "../internals/constants/dimensions.js";
26
+ import { PickersRangeCalendarHeader } from "../PickersRangeCalendarHeader/index.js";
27
27
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
28
  const releaseInfo = getReleaseInfo();
29
29
  const DateRangeCalendarRoot = styled('div', {
@@ -587,7 +587,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
587
587
  minDate: PropTypes.object,
588
588
  /**
589
589
  * Callback fired when the value changes.
590
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
590
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
591
591
  * @template TView The view type. Will be one of date or time views.
592
592
  * @param {TValue} value The new value.
593
593
  * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.
@@ -1,2 +1,2 @@
1
- export { DateRangeCalendar } from './DateRangeCalendar';
2
- export { getDateRangeCalendarUtilityClass, dateRangeCalendarClasses } from './dateRangeCalendarClasses';
1
+ export { DateRangeCalendar } from "./DateRangeCalendar.js";
2
+ export { getDateRangeCalendarUtilityClass, dateRangeCalendarClasses } from "./dateRangeCalendarClasses.js";
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import useEventCallback from '@mui/utils/useEventCallback';
4
- import { isEndOfRange, isStartOfRange } from '../internals/utils/date-utils';
4
+ import { isEndOfRange, isStartOfRange } from "../internals/utils/date-utils.js";
5
5
  const resolveDateFromTarget = (target, utils, timezone) => {
6
6
  const timestampString = target.dataset.timestamp;
7
7
  if (!timestampString) {
@@ -6,8 +6,8 @@ import PropTypes from 'prop-types';
6
6
  import useMediaQuery from '@mui/material/useMediaQuery';
7
7
  import { useThemeProps } from '@mui/material/styles';
8
8
  import { refType } from '@mui/utils';
9
- import { DesktopDateRangePicker } from '../DesktopDateRangePicker';
10
- import { MobileDateRangePicker } from '../MobileDateRangePicker';
9
+ import { DesktopDateRangePicker } from "../DesktopDateRangePicker/index.js";
10
+ import { MobileDateRangePicker } from "../MobileDateRangePicker/index.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
13
13
  * Demos:
@@ -191,16 +191,16 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
191
191
  name: PropTypes.string,
192
192
  /**
193
193
  * Callback fired when the value is accepted.
194
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
195
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
194
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
195
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
196
196
  * @param {TValue} value The value that was just accepted.
197
197
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
198
198
  */
199
199
  onAccept: PropTypes.func,
200
200
  /**
201
201
  * Callback fired when the value changes.
202
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
203
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
202
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
203
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
204
204
  * @param {TValue} value The new value.
205
205
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
206
206
  */
@@ -211,13 +211,13 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
211
211
  */
212
212
  onClose: PropTypes.func,
213
213
  /**
214
- * Callback fired when the error associated to the current value changes.
215
- * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
216
- *
217
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
218
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
219
- * @param {TError} error The new error describing why the current value is not valid.
220
- * @param {TValue} value The value associated to the error.
214
+ * Callback fired when the error associated with the current value changes.
215
+ * When a validation error is detected, the `error` parameter contains a non-null value.
216
+ * This can be used to render an appropriate form error.
217
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
218
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
219
+ * @param {TError} error The reason why the current value is not valid.
220
+ * @param {TValue} value The value associated with the error.
221
221
  */
222
222
  onError: PropTypes.func,
223
223
  /**
@@ -9,7 +9,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import { PickersToolbar, PickersToolbarButton, useUtils } from '@mui/x-date-pickers/internals';
11
11
  import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
12
- import { getDateRangePickerToolbarUtilityClass } from './dateRangePickerToolbarClasses';
12
+ import { getDateRangePickerToolbarUtilityClass } from "./dateRangePickerToolbarClasses.js";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const useUtilityClasses = ownerState => {
15
15
  const {
@@ -1,3 +1,3 @@
1
- export { DateRangePicker } from './DateRangePicker';
2
- export { DateRangePickerToolbar } from './DateRangePickerToolbar';
3
- export { getDateRangePickerToolbarUtilityClass, dateRangePickerToolbarClasses } from './dateRangePickerToolbarClasses';
1
+ export { DateRangePicker } from "./DateRangePicker.js";
2
+ export { DateRangePickerToolbar } from "./DateRangePickerToolbar.js";
3
+ export { getDateRangePickerToolbarUtilityClass, dateRangePickerToolbarClasses } from "./dateRangePickerToolbarClasses.js";
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import { useThemeProps } from '@mui/material/styles';
4
4
  import { useDefaultDates, useUtils, applyDefaultDate } from '@mui/x-date-pickers/internals';
5
- import { DateRangePickerToolbar } from './DateRangePickerToolbar';
5
+ import { DateRangePickerToolbar } from "./DateRangePickerToolbar.js";
6
6
  export function useDateRangePickerDefaultizedProps(props, name) {
7
7
  const utils = useUtils();
8
8
  const defaultDates = useDefaultDates();
@@ -9,8 +9,8 @@ import { alpha, styled, useThemeProps } from '@mui/material/styles';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import { useUtils } from '@mui/x-date-pickers/internals';
11
11
  import { PickersDay } from '@mui/x-date-pickers/PickersDay';
12
- import { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from './dateRangePickerDayClasses';
13
- import { getReleaseInfo } from '../internals/utils/releaseInfo';
12
+ import { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from "./dateRangePickerDayClasses.js";
13
+ import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  const releaseInfo = getReleaseInfo();
16
16
  const useUtilityClasses = ownerState => {
@@ -1,2 +1,2 @@
1
- export { DateRangePickerDay } from './DateRangePickerDay';
2
- export { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from './dateRangePickerDayClasses';
1
+ export { DateRangePickerDay } from "./DateRangePickerDay.js";
2
+ export { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from "./dateRangePickerDayClasses.js";
@@ -6,8 +6,8 @@ import PropTypes from 'prop-types';
6
6
  import { refType } from '@mui/utils';
7
7
  import useMediaQuery from '@mui/material/useMediaQuery';
8
8
  import { useThemeProps } from '@mui/material/styles';
9
- import { DesktopDateTimeRangePicker } from '../DesktopDateTimeRangePicker';
10
- import { MobileDateTimeRangePicker } from '../MobileDateTimeRangePicker';
9
+ import { DesktopDateTimeRangePicker } from "../DesktopDateTimeRangePicker/index.js";
10
+ import { MobileDateTimeRangePicker } from "../MobileDateTimeRangePicker/index.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
13
13
  * Demos:
@@ -224,16 +224,16 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
224
224
  name: PropTypes.string,
225
225
  /**
226
226
  * Callback fired when the value is accepted.
227
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
228
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
227
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
228
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
229
229
  * @param {TValue} value The value that was just accepted.
230
230
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
231
231
  */
232
232
  onAccept: PropTypes.func,
233
233
  /**
234
234
  * Callback fired when the value changes.
235
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
236
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
235
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
236
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
237
237
  * @param {TValue} value The new value.
238
238
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
239
239
  */
@@ -244,13 +244,13 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
244
244
  */
245
245
  onClose: PropTypes.func,
246
246
  /**
247
- * Callback fired when the error associated to the current value changes.
248
- * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
249
- *
250
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
251
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
252
- * @param {TError} error The new error describing why the current value is not valid.
253
- * @param {TValue} value The value associated to the error.
247
+ * Callback fired when the error associated with the current value changes.
248
+ * When a validation error is detected, the `error` parameter contains a non-null value.
249
+ * This can be used to render an appropriate form error.
250
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
251
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
252
+ * @param {TError} error The reason why the current value is not valid.
253
+ * @param {TValue} value The value associated with the error.
254
254
  */
255
255
  onError: PropTypes.func,
256
256
  /**
@@ -9,7 +9,7 @@ import { isDatePickerView } from '@mui/x-date-pickers/internals';
9
9
  import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
10
10
  import IconButton from '@mui/material/IconButton';
11
11
  import Button from '@mui/material/Button';
12
- import { getDateTimeRangePickerTabsUtilityClass } from './dateTimeRangePickerTabsClasses';
12
+ import { getDateTimeRangePickerTabsUtilityClass } from "./dateTimeRangePickerTabsClasses.js";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const viewToTab = (view, rangePosition) => {
15
15
  if (isDatePickerView(view)) {
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["rangePosition", "onRangePositionChange", "viewRenderer", "value", "onChange", "defaultValue", "onViewChange", "views", "className"];
4
4
  import { isInternalTimeView, useUtils } from '@mui/x-date-pickers/internals';
5
- import { isRangeValid } from '../internals/utils/date-utils';
6
- import { calculateRangeChange } from '../internals/utils/date-range-manager';
5
+ import { isRangeValid } from "../internals/utils/date-utils.js";
6
+ import { calculateRangeChange } from "../internals/utils/date-range-manager.js";
7
7
  /**
8
8
  * @ignore - internal component.
9
9
  */
@@ -9,8 +9,8 @@ import composeClasses from '@mui/utils/composeClasses';
9
9
  import { useUtils } from '@mui/x-date-pickers/internals';
10
10
  import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
11
11
  import { DateTimePickerToolbar } from '@mui/x-date-pickers/DateTimePicker';
12
- import { getDateTimeRangePickerToolbarUtilityClass } from './dateTimeRangePickerToolbarClasses';
13
- import { calculateRangeChange } from '../internals/utils/date-range-manager';
12
+ import { getDateTimeRangePickerToolbarUtilityClass } from "./dateTimeRangePickerToolbarClasses.js";
13
+ import { calculateRangeChange } from "../internals/utils/date-range-manager.js";
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const useUtilityClasses = ownerState => {
16
16
  const {
@@ -1,5 +1,5 @@
1
- export { DateTimeRangePicker } from './DateTimeRangePicker';
2
- export { DateTimeRangePickerTabs } from './DateTimeRangePickerTabs';
3
- export { getDateTimeRangePickerTabsUtilityClass, dateTimeRangePickerTabsClasses } from './dateTimeRangePickerTabsClasses';
4
- export { DateTimeRangePickerToolbar } from './DateTimeRangePickerToolbar';
5
- export { getDateTimeRangePickerToolbarUtilityClass, dateTimeRangePickerToolbarClasses } from './dateTimeRangePickerToolbarClasses';
1
+ export { DateTimeRangePicker } from "./DateTimeRangePicker.js";
2
+ export { DateTimeRangePickerTabs } from "./DateTimeRangePickerTabs.js";
3
+ export { getDateTimeRangePickerTabsUtilityClass, dateTimeRangePickerTabsClasses } from "./dateTimeRangePickerTabsClasses.js";
4
+ export { DateTimeRangePickerToolbar } from "./DateTimeRangePickerToolbar.js";
5
+ export { getDateTimeRangePickerToolbarUtilityClass, dateTimeRangePickerToolbarClasses } from "./dateTimeRangePickerToolbarClasses.js";
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { useThemeProps } from '@mui/material/styles';
3
3
  import { useDefaultDates, useUtils, applyDefaultDate, applyDefaultViewProps, resolveTimeViewsResponse } from '@mui/x-date-pickers/internals';
4
- import { DateTimeRangePickerToolbar } from './DateTimeRangePickerToolbar';
5
- import { DateTimeRangePickerTabs } from './DateTimeRangePickerTabs';
4
+ import { DateTimeRangePickerToolbar } from "./DateTimeRangePickerToolbar.js";
5
+ import { DateTimeRangePickerTabs } from "./DateTimeRangePickerTabs.js";
6
6
  export function useDateTimeRangePickerDefaultizedProps(props, name) {
7
7
  const utils = useUtils();
8
8
  const defaultDates = useDefaultDates();
@@ -4,12 +4,12 @@ import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
5
  import resolveComponentProps from '@mui/utils/resolveComponentProps';
6
6
  import { refType } from '@mui/utils';
7
- import { rangeValueManager } from '../internals/utils/valueManagers';
8
- import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
9
- import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
10
- import { MultiInputDateRangeField } from '../MultiInputDateRangeField';
11
- import { useDesktopRangePicker } from '../internals/hooks/useDesktopRangePicker';
12
- import { validateDateRange } from '../internals/utils/validation/validateDateRange';
7
+ import { rangeValueManager } from "../internals/utils/valueManagers.js";
8
+ import { useDateRangePickerDefaultizedProps } from "../DateRangePicker/shared.js";
9
+ import { renderDateRangeViewCalendar } from "../dateRangeViewRenderers/index.js";
10
+ import { MultiInputDateRangeField } from "../MultiInputDateRangeField/index.js";
11
+ import { useDesktopRangePicker } from "../internals/hooks/useDesktopRangePicker/index.js";
12
+ import { validateDateRange } from "../internals/utils/validation/validateDateRange.js";
13
13
  /**
14
14
  * Demos:
15
15
  *
@@ -196,16 +196,16 @@ DesktopDateRangePicker.propTypes = {
196
196
  name: PropTypes.string,
197
197
  /**
198
198
  * Callback fired when the value is accepted.
199
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
200
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
199
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
200
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
201
201
  * @param {TValue} value The value that was just accepted.
202
202
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
203
203
  */
204
204
  onAccept: PropTypes.func,
205
205
  /**
206
206
  * Callback fired when the value changes.
207
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
208
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
207
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
208
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
209
209
  * @param {TValue} value The new value.
210
210
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
211
211
  */
@@ -216,13 +216,13 @@ DesktopDateRangePicker.propTypes = {
216
216
  */
217
217
  onClose: PropTypes.func,
218
218
  /**
219
- * Callback fired when the error associated to the current value changes.
220
- * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
221
- *
222
- * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
223
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
224
- * @param {TError} error The new error describing why the current value is not valid.
225
- * @param {TValue} value The value associated to the error.
219
+ * Callback fired when the error associated with the current value changes.
220
+ * When a validation error is detected, the `error` parameter contains a non-null value.
221
+ * This can be used to render an appropriate form error.
222
+ * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
223
+ * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
224
+ * @param {TError} error The reason why the current value is not valid.
225
+ * @param {TValue} value The value associated with the error.
226
226
  */
227
227
  onError: PropTypes.func,
228
228
  /**
@@ -1 +1 @@
1
- export { DesktopDateRangePicker } from './DesktopDateRangePicker';
1
+ export { DesktopDateRangePicker } from "./DesktopDateRangePicker.js";