@mui/x-date-pickers-pro 7.15.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 +98 -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 +19 -19
  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 +19 -19
  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 +19 -19
  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 +19 -19
  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 +13 -14
  137. package/node/MobileDateRangePicker/MobileDateRangePicker.js +13 -14
  138. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +13 -14
  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 +5 -4
  168. package/themeAugmentation/index.d.ts +3 -3
  169. package/themeAugmentation/index.js +1 -4
package/CHANGELOG.md CHANGED
@@ -1,8 +1,105 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.16.0
7
+
8
+ _Sep 5, 2024_
9
+
10
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎨 Update the design of Data Grid column headers (#14293)
13
+ - 🧠 Add the `slots` concept introduction documentation page (#13881)
14
+ - 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.16.0`
23
+
24
+ - [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
25
+ - [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
26
+ - [DataGrid] Column header design updates (#14293) @KenanYusuf
27
+ - [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
28
+ - [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
29
+ - [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
30
+ - [DataGrid] Restore reselect behavior (#14410) @romgrk
31
+ - [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
32
+ - [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
33
+
34
+ #### `@mui/x-data-grid-pro@7.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
35
+
36
+ Same changes as in `@mui/x-data-grid@7.16.0`, plus:
37
+
38
+ - [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
39
+
40
+ #### `@mui/x-data-grid-premium@7.16.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@7.16.0`.
43
+
44
+ ### Date and Time Pickers
45
+
46
+ #### `@mui/x-date-pickers@7.16.0`
47
+
48
+ - [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
49
+ - [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
50
+ - [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
51
+
52
+ #### `@mui/x-date-pickers-pro@7.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-date-pickers@7.16.0`.
55
+
56
+ ### Charts
57
+
58
+ #### `@mui/x-charts@7.16.0`
59
+
60
+ - [charts] Fix JSDoc typos (#14497) @alexfauquette
61
+ - [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
62
+ - [charts] Fix theme augmentation (#14372) @alexfauquette
63
+ - [charts] Pass all props to legend (#14392) @JCQuintas
64
+ - [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
65
+ - [charts] Update `package.json` for vendor package (#14465) @alexfauquette
66
+
67
+ #### `@mui/x-charts-pro@7.0.0-beta.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
68
+
69
+ Same changes as in `@mui/x-charts@7.16.0`, plus:
70
+
71
+ - [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
72
+
73
+ ### Tree View
74
+
75
+ #### `@mui/x-tree-view@7.16.0`
76
+
77
+ - [TreeView] Clean label editing code (#14264) @flaviendelangle
78
+
79
+ ### `@mui/x-codemod@7.16.0`
80
+
81
+ - [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
82
+
83
+ ### Docs
84
+
85
+ - [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
86
+ - [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
87
+ - [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
88
+ - [docs] Remove notion of seats (#14351) @oliviertassinari
89
+ - [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
90
+
91
+ ### Core
92
+
93
+ - [core] Fix changelog spelling @oliviertassinari
94
+ - [core] Fix failing tests on the pickers (#14457) @flaviendelangle
95
+ - [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
96
+ - [code-infra] Add babel runtime version check (#14483) @Janpot
97
+ - [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
98
+ - [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
99
+ - [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
100
+ - [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
101
+ - [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
102
+
6
103
  ## 7.15.0
7
104
 
8
105
  _Aug 29, 2024_
@@ -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";
@@ -11,14 +11,14 @@ import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses
11
11
  import Divider from '@mui/material/Divider';
12
12
  import { digitalClockClasses } from '@mui/x-date-pickers/DigitalClock';
13
13
  import { DesktopDateTimePickerLayout } from '@mui/x-date-pickers/DesktopDateTimePicker';
14
- import { rangeValueManager } from '../internals/utils/valueManagers';
15
- import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
16
- import { useDesktopRangePicker } from '../internals/hooks/useDesktopRangePicker';
17
- import { validateDateTimeRange } from '../internals/utils/validation/validateDateTimeRange';
18
- import { useDateTimeRangePickerDefaultizedProps } from '../DateTimeRangePicker/shared';
19
- import { MultiInputDateTimeRangeField } from '../MultiInputDateTimeRangeField';
20
- import { DateTimeRangePickerTimeWrapper } from '../DateTimeRangePicker/DateTimeRangePickerTimeWrapper';
21
- import { RANGE_VIEW_HEIGHT } from '../internals/constants/dimensions';
14
+ import { rangeValueManager } from "../internals/utils/valueManagers.js";
15
+ import { renderDateRangeViewCalendar } from "../dateRangeViewRenderers/index.js";
16
+ import { useDesktopRangePicker } from "../internals/hooks/useDesktopRangePicker/index.js";
17
+ import { validateDateTimeRange } from "../internals/utils/validation/validateDateTimeRange.js";
18
+ import { useDateTimeRangePickerDefaultizedProps } from "../DateTimeRangePicker/shared.js";
19
+ import { MultiInputDateTimeRangeField } from "../MultiInputDateTimeRangeField/index.js";
20
+ import { DateTimeRangePickerTimeWrapper } from "../DateTimeRangePicker/DateTimeRangePickerTimeWrapper.js";
21
+ import { RANGE_VIEW_HEIGHT } from "../internals/constants/dimensions.js";
22
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  const rendererInterceptor = function rendererInterceptor(inViewRenderers, popperView, rendererProps) {
24
24
  const {
@@ -304,16 +304,16 @@ DesktopDateTimeRangePicker.propTypes = {
304
304
  name: PropTypes.string,
305
305
  /**
306
306
  * Callback fired when the value is accepted.
307
- * @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.
308
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
307
+ * @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.
308
+ * @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.
309
309
  * @param {TValue} value The value that was just accepted.
310
310
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
311
311
  */
312
312
  onAccept: PropTypes.func,
313
313
  /**
314
314
  * Callback fired when the value changes.
315
- * @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.
316
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
315
+ * @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.
316
+ * @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.
317
317
  * @param {TValue} value The new value.
318
318
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
319
319
  */
@@ -324,13 +324,13 @@ DesktopDateTimeRangePicker.propTypes = {
324
324
  */
325
325
  onClose: PropTypes.func,
326
326
  /**
327
- * Callback fired when the error associated to the current value changes.
328
- * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
329
- *
330
- * @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.
331
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
332
- * @param {TError} error The new error describing why the current value is not valid.
333
- * @param {TValue} value The value associated to the error.
327
+ * Callback fired when the error associated with the current value changes.
328
+ * When a validation error is detected, the `error` parameter contains a non-null value.
329
+ * This can be used to render an appropriate form error.
330
+ * @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.
331
+ * @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.
332
+ * @param {TError} error The reason why the current value is not valid.
333
+ * @param {TValue} value The value associated with the error.
334
334
  */
335
335
  onError: PropTypes.func,
336
336
  /**
@@ -1 +1 @@
1
- export { DesktopDateTimeRangePicker } from './DesktopDateTimeRangePicker';
1
+ export { DesktopDateTimeRangePicker } from "./DesktopDateTimeRangePicker.js";
@@ -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 { useMobileRangePicker } from '../internals/hooks/useMobileRangePicker';
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 { useMobileRangePicker } from "../internals/hooks/useMobileRangePicker/index.js";
12
+ import { validateDateRange } from "../internals/utils/validation/validateDateRange.js";
13
13
  /**
14
14
  * Demos:
15
15
  *
@@ -192,16 +192,16 @@ MobileDateRangePicker.propTypes = {
192
192
  name: PropTypes.string,
193
193
  /**
194
194
  * Callback fired when the value is accepted.
195
- * @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.
196
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
195
+ * @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.
196
+ * @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.
197
197
  * @param {TValue} value The value that was just accepted.
198
198
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
199
199
  */
200
200
  onAccept: PropTypes.func,
201
201
  /**
202
202
  * Callback fired when the value changes.
203
- * @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.
204
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
203
+ * @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.
204
+ * @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.
205
205
  * @param {TValue} value The new value.
206
206
  * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
207
207
  */
@@ -212,13 +212,13 @@ MobileDateRangePicker.propTypes = {
212
212
  */
213
213
  onClose: PropTypes.func,
214
214
  /**
215
- * Callback fired when the error associated to the current value changes.
216
- * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
217
- *
218
- * @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.
219
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
220
- * @param {TError} error The new error describing why the current value is not valid.
221
- * @param {TValue} value The value associated to the error.
215
+ * Callback fired when the error associated with the current value changes.
216
+ * When a validation error is detected, the `error` parameter contains a non-null value.
217
+ * This can be used to render an appropriate form error.
218
+ * @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.
219
+ * @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.
220
+ * @param {TError} error The reason why the current value is not valid.
221
+ * @param {TValue} value The value associated with the error.
222
222
  */
223
223
  onError: PropTypes.func,
224
224
  /**
@@ -1 +1 @@
1
- export { MobileDateRangePicker } from './MobileDateRangePicker';
1
+ export { MobileDateRangePicker } from "./MobileDateRangePicker.js";