@pisell/date-picker 1.0.143 → 1.0.145

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 (275) hide show
  1. package/README.md +2 -2
  2. package/es/ActionBar/index.d.ts +19 -20
  3. package/es/ActionBar/index.less +70 -70
  4. package/es/AdapterDateFns/index.d.ts +1 -1
  5. package/es/AdapterDateFnsJalali/index.d.ts +1 -1
  6. package/es/AdapterDayjs/index.d.ts +1 -1
  7. package/es/AdapterLuxon/index.d.ts +1 -1
  8. package/es/AdapterMoment/index.d.ts +1 -1
  9. package/es/AdapterMomentHijri/index.d.ts +1 -1
  10. package/es/AdapterMomentJalaali/index.d.ts +1 -1
  11. package/es/CustomCalendarHeader/index.d.ts +2 -3
  12. package/es/DatePickerLocales/index.d.ts +1 -1
  13. package/es/DateRangeCalendar/DateRangeCalendar.d.ts +7 -7
  14. package/es/DateRangeCalendar/DateRangeCalendar.js +122 -122
  15. package/es/DateRangeCalendar/DateRangeCalendar.types.d.ts +123 -123
  16. package/es/DateRangeCalendar/dateRangeCalendarClasses.d.ts +11 -11
  17. package/es/DateRangeCalendar/index.d.ts +4 -4
  18. package/es/DateRangeCalendar/useDragRange.d.ts +33 -33
  19. package/es/DateRangePicker/DateRangePicker.d.ts +7 -7
  20. package/es/DateRangePicker/DateRangePicker.js +184 -184
  21. package/es/DateRangePicker/DateRangePicker.types.d.ts +37 -37
  22. package/es/DateRangePicker/DateRangePickerToolbar.d.ts +12 -12
  23. package/es/DateRangePicker/DateRangePickerToolbar.js +10 -10
  24. package/es/DateRangePicker/dateRangePickerToolbarClasses.d.ts +9 -9
  25. package/es/DateRangePicker/index.d.ts +6 -6
  26. package/es/DateRangePicker/shared.d.ts +51 -51
  27. package/es/DateRangePickerDay/DateRangePickerDay.js +96 -96
  28. package/es/DateRangePickerDay/dateRangePickerDayClasses.d.ts +41 -41
  29. package/es/DateRangePickerDay/index.d.ts +4 -4
  30. package/es/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +7 -7
  31. package/es/DesktopDateRangePicker/DesktopDateRangePicker.js +180 -180
  32. package/es/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +36 -36
  33. package/es/DesktopDateRangePicker/index.d.ts +2 -2
  34. package/es/Dialog/index.d.ts +2 -3
  35. package/es/Drawer/index.d.ts +11 -11
  36. package/es/Drawer/index.less +39 -39
  37. package/es/MobileDateRangePicker/MobileDateRangePicker.d.ts +7 -7
  38. package/es/MobileDateRangePicker/MobileDateRangePicker.js +180 -180
  39. package/es/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +36 -36
  40. package/es/MobileDateRangePicker/index.d.ts +2 -2
  41. package/es/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +7 -7
  42. package/es/MultiInputDateRangeField/MultiInputDateRangeField.js +113 -113
  43. package/es/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +69 -69
  44. package/es/MultiInputDateRangeField/index.d.ts +3 -3
  45. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +7 -7
  46. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +144 -144
  47. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +70 -70
  48. package/es/MultiInputDateTimeRangeField/index.d.ts +3 -3
  49. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +7 -7
  50. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.js +130 -130
  51. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +70 -70
  52. package/es/MultiInputTimeRangeField/index.d.ts +3 -3
  53. package/es/OldActionBar/index.d.ts +18 -19
  54. package/es/OldActionBar/index.less +17 -17
  55. package/es/OldPisellDateRangePicker/index.d.ts +79 -79
  56. package/es/OldPisellDateRangePicker/index.less +102 -102
  57. package/es/PisellDateRangePicker/LocaleContext.d.ts +7 -7
  58. package/es/PisellDateRangePicker/index.less +183 -183
  59. package/es/PisellDateRangePicker/useCssVariables.d.ts +8 -8
  60. package/es/Shortcuts/index.d.ts +15 -16
  61. package/es/Shortcuts/index.less +17 -17
  62. package/es/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +8 -8
  63. package/es/SingleInputDateRangeField/SingleInputDateRangeField.js +152 -152
  64. package/es/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +49 -49
  65. package/es/SingleInputDateRangeField/index.d.ts +3 -3
  66. package/es/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -3
  67. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +8 -8
  68. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +183 -183
  69. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +50 -50
  70. package/es/SingleInputDateTimeRangeField/index.d.ts +3 -3
  71. package/es/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -3
  72. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +8 -8
  73. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.js +169 -169
  74. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +50 -50
  75. package/es/SingleInputTimeRangeField/index.d.ts +3 -3
  76. package/es/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -3
  77. package/es/StaticDateRangePicker/StaticDateRangePicker.d.ts +7 -7
  78. package/es/StaticDateRangePicker/StaticDateRangePicker.js +148 -148
  79. package/es/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +31 -31
  80. package/es/StaticDateRangePicker/index.d.ts +2 -2
  81. package/es/Toolbar/index.d.ts +3 -4
  82. package/es/Toolbar/index.less +34 -34
  83. package/es/browserSelect/index.d.ts +15 -15
  84. package/es/browserSelect/index.js +7 -7
  85. package/es/browserSelect/index.less +17 -17
  86. package/es/constants.d.ts +58 -58
  87. package/es/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +12 -13
  88. package/es/dateRangeViewRenderers/dateRangeViewRenderers.js +3 -3
  89. package/es/dateRangeViewRenderers/index.d.ts +2 -2
  90. package/es/hooks/useDocumentVisibility.d.ts +2 -2
  91. package/es/hooks/useNextDay.d.ts +2 -2
  92. package/es/hooks/useUpdateEffect.d.ts +2 -2
  93. package/es/icon/ChevronLeft.d.ts +5 -6
  94. package/es/icon/ChevronLeftDouble.d.ts +5 -6
  95. package/es/icon/ChevronRight.d.ts +5 -6
  96. package/es/icon/ChevronRightDouble.d.ts +5 -6
  97. package/es/icon/CloseCircle.d.ts +5 -6
  98. package/es/index.d.ts +26 -26
  99. package/es/internals/hooks/useDesktopRangePicker/index.d.ts +2 -2
  100. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +34 -34
  101. package/es/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +54 -54
  102. package/es/internals/hooks/useMobileRangePicker/index.d.ts +2 -2
  103. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +30 -30
  104. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +3 -3
  105. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +4 -4
  106. package/es/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +17 -17
  107. package/es/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +4 -4
  108. package/es/internals/hooks/useRangePosition.d.ts +28 -28
  109. package/es/internals/hooks/useStaticRangePicker/index.d.ts +2 -2
  110. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +9 -10
  111. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +3 -3
  112. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +33 -33
  113. package/es/internals/models/dateRange.d.ts +30 -30
  114. package/es/internals/models/dateTimeRange.d.ts +13 -13
  115. package/es/internals/models/fields.d.ts +43 -43
  116. package/es/internals/models/index.d.ts +6 -6
  117. package/es/internals/models/range.d.ts +3 -3
  118. package/es/internals/models/rangePickerProps.d.ts +17 -17
  119. package/es/internals/models/timeRange.d.ts +13 -13
  120. package/es/internals/utils/date-fields-utils.d.ts +25 -25
  121. package/es/internals/utils/date-range-manager.d.ts +21 -21
  122. package/es/internals/utils/date-utils.d.ts +6 -6
  123. package/es/internals/utils/releaseInfo.d.ts +1 -1
  124. package/es/internals/utils/validation/validateDateRange.d.ts +7 -7
  125. package/es/internals/utils/validation/validateDateTimeRange.d.ts +8 -8
  126. package/es/internals/utils/validation/validateTimeRange.d.ts +7 -7
  127. package/es/internals/utils/valueManagers.d.ts +7 -7
  128. package/es/locales/en-US.d.ts +26 -26
  129. package/es/locales/index.d.ts +2 -2
  130. package/es/locales/ja.d.ts +26 -26
  131. package/es/locales/pt.d.ts +26 -26
  132. package/es/locales/zh-CN.d.ts +26 -26
  133. package/es/locales/zh-TW.d.ts +26 -26
  134. package/es/models/index.d.ts +1 -1
  135. package/es/models/validation.d.ts +9 -9
  136. package/es/themeAugmentation/components.d.ts +66 -66
  137. package/es/themeAugmentation/overrides.d.ts +33 -33
  138. package/es/themeAugmentation/props.d.ts +42 -42
  139. package/es/typings.d.ts +4 -4
  140. package/es/utils/index.d.ts +42 -42
  141. package/es/utils/index.js +19 -19
  142. package/lib/ActionBar/index.d.ts +19 -20
  143. package/lib/ActionBar/index.less +70 -70
  144. package/lib/AdapterDateFns/index.d.ts +1 -1
  145. package/lib/AdapterDateFnsJalali/index.d.ts +1 -1
  146. package/lib/AdapterDayjs/index.d.ts +1 -1
  147. package/lib/AdapterLuxon/index.d.ts +1 -1
  148. package/lib/AdapterMoment/index.d.ts +1 -1
  149. package/lib/AdapterMomentHijri/index.d.ts +1 -1
  150. package/lib/AdapterMomentJalaali/index.d.ts +1 -1
  151. package/lib/CustomCalendarHeader/index.d.ts +2 -3
  152. package/lib/DatePickerLocales/index.d.ts +1 -1
  153. package/lib/DateRangeCalendar/DateRangeCalendar.d.ts +7 -7
  154. package/lib/DateRangeCalendar/DateRangeCalendar.types.d.ts +123 -123
  155. package/lib/DateRangeCalendar/dateRangeCalendarClasses.d.ts +11 -11
  156. package/lib/DateRangeCalendar/index.d.ts +4 -4
  157. package/lib/DateRangeCalendar/useDragRange.d.ts +33 -33
  158. package/lib/DateRangePicker/DateRangePicker.d.ts +7 -7
  159. package/lib/DateRangePicker/DateRangePicker.types.d.ts +37 -37
  160. package/lib/DateRangePicker/DateRangePickerToolbar.d.ts +12 -12
  161. package/lib/DateRangePicker/dateRangePickerToolbarClasses.d.ts +9 -9
  162. package/lib/DateRangePicker/index.d.ts +6 -6
  163. package/lib/DateRangePicker/shared.d.ts +51 -51
  164. package/lib/DateRangePickerDay/dateRangePickerDayClasses.d.ts +41 -41
  165. package/lib/DateRangePickerDay/index.d.ts +4 -4
  166. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +7 -7
  167. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +36 -36
  168. package/lib/DesktopDateRangePicker/index.d.ts +2 -2
  169. package/lib/Dialog/index.d.ts +2 -3
  170. package/lib/Drawer/index.d.ts +11 -11
  171. package/lib/Drawer/index.less +39 -39
  172. package/lib/MobileDateRangePicker/MobileDateRangePicker.d.ts +7 -7
  173. package/lib/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +36 -36
  174. package/lib/MobileDateRangePicker/index.d.ts +2 -2
  175. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +7 -7
  176. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +69 -69
  177. package/lib/MultiInputDateRangeField/index.d.ts +3 -3
  178. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +7 -7
  179. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +70 -70
  180. package/lib/MultiInputDateTimeRangeField/index.d.ts +3 -3
  181. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +7 -7
  182. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +70 -70
  183. package/lib/MultiInputTimeRangeField/index.d.ts +3 -3
  184. package/lib/OldActionBar/index.d.ts +18 -19
  185. package/lib/OldActionBar/index.less +17 -17
  186. package/lib/OldPisellDateRangePicker/index.d.ts +79 -79
  187. package/lib/OldPisellDateRangePicker/index.less +102 -102
  188. package/lib/PisellDateRangePicker/LocaleContext.d.ts +7 -7
  189. package/lib/PisellDateRangePicker/index.less +183 -183
  190. package/lib/PisellDateRangePicker/useCssVariables.d.ts +8 -8
  191. package/lib/Shortcuts/index.d.ts +15 -16
  192. package/lib/Shortcuts/index.less +17 -17
  193. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +8 -8
  194. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +49 -49
  195. package/lib/SingleInputDateRangeField/index.d.ts +3 -3
  196. package/lib/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -3
  197. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +8 -8
  198. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +50 -50
  199. package/lib/SingleInputDateTimeRangeField/index.d.ts +3 -3
  200. package/lib/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -3
  201. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +8 -8
  202. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +50 -50
  203. package/lib/SingleInputTimeRangeField/index.d.ts +3 -3
  204. package/lib/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -3
  205. package/lib/StaticDateRangePicker/StaticDateRangePicker.d.ts +7 -7
  206. package/lib/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +31 -31
  207. package/lib/StaticDateRangePicker/index.d.ts +2 -2
  208. package/lib/Toolbar/index.d.ts +3 -4
  209. package/lib/Toolbar/index.less +34 -34
  210. package/lib/browserSelect/index.d.ts +15 -15
  211. package/lib/browserSelect/index.less +17 -17
  212. package/lib/constants.d.ts +58 -58
  213. package/lib/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +12 -13
  214. package/lib/dateRangeViewRenderers/index.d.ts +2 -2
  215. package/lib/hooks/useDocumentVisibility.d.ts +2 -2
  216. package/lib/hooks/useNextDay.d.ts +2 -2
  217. package/lib/hooks/useUpdateEffect.d.ts +2 -2
  218. package/lib/icon/ChevronLeft.d.ts +5 -6
  219. package/lib/icon/ChevronLeftDouble.d.ts +5 -6
  220. package/lib/icon/ChevronRight.d.ts +5 -6
  221. package/lib/icon/ChevronRightDouble.d.ts +5 -6
  222. package/lib/icon/CloseCircle.d.ts +5 -6
  223. package/lib/index.d.ts +26 -26
  224. package/lib/internals/hooks/useDesktopRangePicker/index.d.ts +2 -2
  225. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +34 -34
  226. package/lib/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +54 -54
  227. package/lib/internals/hooks/useMobileRangePicker/index.d.ts +2 -2
  228. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +30 -30
  229. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +3 -3
  230. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +4 -4
  231. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +17 -17
  232. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +4 -4
  233. package/lib/internals/hooks/useRangePosition.d.ts +28 -28
  234. package/lib/internals/hooks/useStaticRangePicker/index.d.ts +2 -2
  235. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +9 -10
  236. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +33 -33
  237. package/lib/internals/models/dateRange.d.ts +30 -30
  238. package/lib/internals/models/dateTimeRange.d.ts +13 -13
  239. package/lib/internals/models/fields.d.ts +43 -43
  240. package/lib/internals/models/index.d.ts +6 -6
  241. package/lib/internals/models/range.d.ts +3 -3
  242. package/lib/internals/models/rangePickerProps.d.ts +17 -17
  243. package/lib/internals/models/timeRange.d.ts +13 -13
  244. package/lib/internals/utils/date-fields-utils.d.ts +25 -25
  245. package/lib/internals/utils/date-range-manager.d.ts +21 -21
  246. package/lib/internals/utils/date-utils.d.ts +6 -6
  247. package/lib/internals/utils/releaseInfo.d.ts +1 -1
  248. package/lib/internals/utils/validation/validateDateRange.d.ts +7 -7
  249. package/lib/internals/utils/validation/validateDateTimeRange.d.ts +8 -8
  250. package/lib/internals/utils/validation/validateTimeRange.d.ts +7 -7
  251. package/lib/internals/utils/valueManagers.d.ts +7 -7
  252. package/lib/locales/en-US.d.ts +26 -26
  253. package/lib/locales/index.d.ts +2 -2
  254. package/lib/locales/ja.d.ts +26 -26
  255. package/lib/locales/pt.d.ts +26 -26
  256. package/lib/locales/zh-CN.d.ts +26 -26
  257. package/lib/locales/zh-TW.d.ts +26 -26
  258. package/lib/models/index.d.ts +1 -1
  259. package/lib/models/validation.d.ts +9 -9
  260. package/lib/themeAugmentation/components.d.ts +66 -66
  261. package/lib/themeAugmentation/overrides.d.ts +33 -33
  262. package/lib/themeAugmentation/props.d.ts +42 -42
  263. package/lib/typings.d.ts +4 -4
  264. package/lib/utils/index.d.ts +42 -42
  265. package/package.json +2 -2
  266. package/es/DateRangePickerDay/DateRangePickerDay.d.ts +0 -50
  267. package/es/PisellDateRangePicker/index.d.ts +0 -83
  268. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +0 -6
  269. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +0 -6
  270. package/es/themeAugmentation/index.d.ts +0 -3
  271. package/lib/DateRangePickerDay/DateRangePickerDay.d.ts +0 -50
  272. package/lib/PisellDateRangePicker/index.d.ts +0 -83
  273. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +0 -6
  274. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +0 -6
  275. package/lib/themeAugmentation/index.d.ts +0 -3
@@ -73,300 +73,300 @@ SingleInputDateTimeRangeField.propTypes = {
73
73
  // | These PropTypes are generated from the TypeScript type definitions |
74
74
  // | To update them edit the TypeScript types and run "yarn proptypes" |
75
75
  // ----------------------------------------------------------------------
76
- /**
77
- * 12h/24h view for hour selection clock.
78
- * @default `utils.is12HourCycleInCurrentLocale()`
76
+ /**
77
+ * 12h/24h view for hour selection clock.
78
+ * @default `utils.is12HourCycleInCurrentLocale()`
79
79
  */
80
80
  ampm: PropTypes.bool,
81
- /**
82
- * If `true`, the `input` element is focused during the first mount.
83
- * @default false
81
+ /**
82
+ * If `true`, the `input` element is focused during the first mount.
83
+ * @default false
84
84
  */
85
85
  autoFocus: PropTypes.bool,
86
86
  className: PropTypes.string,
87
- /**
88
- * The color of the component.
89
- * It supports both default and custom theme colors, which can be added as shown in the
90
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
91
- * @default 'primary'
87
+ /**
88
+ * The color of the component.
89
+ * It supports both default and custom theme colors, which can be added as shown in the
90
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
91
+ * @default 'primary'
92
92
  */
93
93
  color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
94
- /**
95
- * Overridable components.
96
- * @default {}
97
- * @deprecated Please use `slots`.
94
+ /**
95
+ * Overridable components.
96
+ * @default {}
97
+ * @deprecated Please use `slots`.
98
98
  */
99
99
  components: PropTypes.object,
100
- /**
101
- * The props used for each component slot.
102
- * @default {}
103
- * @deprecated Please use `slotProps`.
100
+ /**
101
+ * The props used for each component slot.
102
+ * @default {}
103
+ * @deprecated Please use `slotProps`.
104
104
  */
105
105
  componentsProps: PropTypes.object,
106
- /**
107
- * The default value. Use when the component is not controlled.
106
+ /**
107
+ * The default value. Use when the component is not controlled.
108
108
  */
109
109
  defaultValue: PropTypes.arrayOf(PropTypes.any),
110
- /**
111
- * If `true`, the component is disabled.
112
- * @default false
110
+ /**
111
+ * If `true`, the component is disabled.
112
+ * @default false
113
113
  */
114
114
  disabled: PropTypes.bool,
115
- /**
116
- * If `true`, disable values after the current date for date components, time for time components and both for date time components.
117
- * @default false
115
+ /**
116
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
117
+ * @default false
118
118
  */
119
119
  disableFuture: PropTypes.bool,
120
- /**
121
- * Do not ignore date part when validating min/max time.
122
- * @default false
120
+ /**
121
+ * Do not ignore date part when validating min/max time.
122
+ * @default false
123
123
  */
124
124
  disableIgnoringDatePartForTimeValidation: PropTypes.bool,
125
- /**
126
- * If `true`, disable values before the current date for date components, time for time components and both for date time components.
127
- * @default false
125
+ /**
126
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
127
+ * @default false
128
128
  */
129
129
  disablePast: PropTypes.bool,
130
- /**
131
- * If `true`, the component is displayed in focused state.
130
+ /**
131
+ * If `true`, the component is displayed in focused state.
132
132
  */
133
133
  focused: PropTypes.bool,
134
- /**
135
- * Format of the date when rendered in the input(s).
134
+ /**
135
+ * Format of the date when rendered in the input(s).
136
136
  */
137
137
  format: PropTypes.string,
138
- /**
139
- * Density of the format when rendered in the input.
140
- * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
141
- * @default "dense"
138
+ /**
139
+ * Density of the format when rendered in the input.
140
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
141
+ * @default "dense"
142
142
  */
143
143
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
144
- /**
145
- * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
144
+ /**
145
+ * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
146
146
  */
147
147
  FormHelperTextProps: PropTypes.object,
148
- /**
149
- * If `true`, the input will take up the full width of its container.
150
- * @default false
148
+ /**
149
+ * If `true`, the input will take up the full width of its container.
150
+ * @default false
151
151
  */
152
152
  fullWidth: PropTypes.bool,
153
- /**
154
- * The helper text content.
153
+ /**
154
+ * The helper text content.
155
155
  */
156
156
  helperText: PropTypes.node,
157
- /**
158
- * If `true`, the label is hidden.
159
- * This is used to increase density for a `FilledInput`.
160
- * Be sure to add `aria-label` to the `input` element.
161
- * @default false
157
+ /**
158
+ * If `true`, the label is hidden.
159
+ * This is used to increase density for a `FilledInput`.
160
+ * Be sure to add `aria-label` to the `input` element.
161
+ * @default false
162
162
  */
163
163
  hiddenLabel: PropTypes.bool,
164
- /**
165
- * The id of the `input` element.
166
- * Use this prop to make `label` and `helperText` accessible for screen readers.
164
+ /**
165
+ * The id of the `input` element.
166
+ * Use this prop to make `label` and `helperText` accessible for screen readers.
167
167
  */
168
168
  id: PropTypes.string,
169
- /**
170
- * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
171
- * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
169
+ /**
170
+ * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
171
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
172
172
  */
173
173
  InputLabelProps: PropTypes.object,
174
- /**
175
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
174
+ /**
175
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
176
176
  */
177
177
  inputProps: PropTypes.object,
178
- /**
179
- * Props applied to the Input element.
180
- * It will be a [`FilledInput`](/material-ui/api/filled-input/),
181
- * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
182
- * component depending on the `variant` prop value.
178
+ /**
179
+ * Props applied to the Input element.
180
+ * It will be a [`FilledInput`](/material-ui/api/filled-input/),
181
+ * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
182
+ * component depending on the `variant` prop value.
183
183
  */
184
184
  InputProps: PropTypes.object,
185
- /**
186
- * Pass a ref to the `input` element.
185
+ /**
186
+ * Pass a ref to the `input` element.
187
187
  */
188
188
  inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
189
189
  current: PropTypes.any.isRequired
190
190
  })]),
191
- /**
192
- * The label content.
191
+ /**
192
+ * The label content.
193
193
  */
194
194
  label: PropTypes.node,
195
- /**
196
- * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
197
- * @default 'none'
195
+ /**
196
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
197
+ * @default 'none'
198
198
  */
199
199
  margin: PropTypes.oneOf(['dense', 'none', 'normal']),
200
- /**
201
- * Maximal selectable date.
200
+ /**
201
+ * Maximal selectable date.
202
202
  */
203
203
  maxDate: PropTypes.any,
204
- /**
205
- * Maximal selectable moment of time with binding to date, to set max time in each day use `maxTime`.
204
+ /**
205
+ * Maximal selectable moment of time with binding to date, to set max time in each day use `maxTime`.
206
206
  */
207
207
  maxDateTime: PropTypes.any,
208
- /**
209
- * Maximal selectable time.
210
- * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
208
+ /**
209
+ * Maximal selectable time.
210
+ * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
211
211
  */
212
212
  maxTime: PropTypes.any,
213
- /**
214
- * Minimal selectable date.
213
+ /**
214
+ * Minimal selectable date.
215
215
  */
216
216
  minDate: PropTypes.any,
217
- /**
218
- * Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.
217
+ /**
218
+ * Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.
219
219
  */
220
220
  minDateTime: PropTypes.any,
221
- /**
222
- * Minimal selectable time.
223
- * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
221
+ /**
222
+ * Minimal selectable time.
223
+ * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.
224
224
  */
225
225
  minTime: PropTypes.any,
226
- /**
227
- * Step over minutes.
228
- * @default 1
226
+ /**
227
+ * Step over minutes.
228
+ * @default 1
229
229
  */
230
230
  minutesStep: PropTypes.number,
231
- /**
232
- * Name attribute of the `input` element.
231
+ /**
232
+ * Name attribute of the `input` element.
233
233
  */
234
234
  name: PropTypes.string,
235
235
  onBlur: PropTypes.func,
236
- /**
237
- * Callback fired when the value changes.
238
- * @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.
239
- * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
240
- * @param {TValue} value The new value.
241
- * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
236
+ /**
237
+ * Callback fired when the value changes.
238
+ * @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.
239
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
240
+ * @param {TValue} value The new value.
241
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
242
242
  */
243
243
  onChange: PropTypes.func,
244
- /**
245
- * @ignore
244
+ /**
245
+ * @ignore
246
246
  */
247
247
  onClick: PropTypes.func,
248
- /**
249
- * Callback fired when the error associated to the current value changes.
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.
253
- * @param {TValue} value The value associated to the error.
248
+ /**
249
+ * Callback fired when the error associated to the current value changes.
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.
253
+ * @param {TValue} value The value associated to the error.
254
254
  */
255
255
  onError: PropTypes.func,
256
256
  onFocus: PropTypes.func,
257
- /**
258
- * Callback fired when the selected sections change.
259
- * @param {FieldSelectedSections} newValue The new selected sections.
257
+ /**
258
+ * Callback fired when the selected sections change.
259
+ * @param {FieldSelectedSections} newValue The new selected sections.
260
260
  */
261
261
  onSelectedSectionsChange: PropTypes.func,
262
- /**
263
- * It prevents the user from changing the value of the field
264
- * (not from interacting with the field).
265
- * @default false
262
+ /**
263
+ * It prevents the user from changing the value of the field
264
+ * (not from interacting with the field).
265
+ * @default false
266
266
  */
267
267
  readOnly: PropTypes.bool,
268
- /**
269
- * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.
270
- * For example, on time fields it will be used to determine the date to set.
271
- * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.
268
+ /**
269
+ * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.
270
+ * For example, on time fields it will be used to determine the date to set.
271
+ * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.
272
272
  */
273
273
  referenceDate: PropTypes.any,
274
- /**
275
- * If `true`, the label is displayed as required and the `input` element is required.
276
- * @default false
274
+ /**
275
+ * If `true`, the label is displayed as required and the `input` element is required.
276
+ * @default false
277
277
  */
278
278
  required: PropTypes.bool,
279
- /**
280
- * The currently selected sections.
281
- * This prop accept four formats:
282
- * 1. If a number is provided, the section at this index will be selected.
283
- * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
284
- * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
285
- * 4. If `null` is provided, no section will be selected
286
- * If not provided, the selected sections will be handled internally.
279
+ /**
280
+ * The currently selected sections.
281
+ * This prop accept four formats:
282
+ * 1. If a number is provided, the section at this index will be selected.
283
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
284
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
285
+ * 4. If `null` is provided, no section will be selected
286
+ * If not provided, the selected sections will be handled internally.
287
287
  */
288
288
  selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number, PropTypes.shape({
289
289
  endIndex: PropTypes.number.isRequired,
290
290
  startIndex: PropTypes.number.isRequired
291
291
  })]),
292
- /**
293
- * Disable specific clock time.
294
- * @param {number} clockValue The value to check.
295
- * @param {TimeView} view The clock type of the timeValue.
296
- * @returns {boolean} If `true` the time will be disabled.
297
- * @deprecated Consider using `shouldDisableTime`.
292
+ /**
293
+ * Disable specific clock time.
294
+ * @param {number} clockValue The value to check.
295
+ * @param {TimeView} view The clock type of the timeValue.
296
+ * @returns {boolean} If `true` the time will be disabled.
297
+ * @deprecated Consider using `shouldDisableTime`.
298
298
  */
299
299
  shouldDisableClock: PropTypes.func,
300
- /**
301
- * Disable specific date.
302
- * @template TDate
303
- * @param {TDate} day The date to test.
304
- * @param {string} position The date to test, 'start' or 'end'.
305
- * @returns {boolean} Returns `true` if the date should be disabled.
300
+ /**
301
+ * Disable specific date.
302
+ * @template TDate
303
+ * @param {TDate} day The date to test.
304
+ * @param {string} position The date to test, 'start' or 'end'.
305
+ * @returns {boolean} Returns `true` if the date should be disabled.
306
306
  */
307
307
  shouldDisableDate: PropTypes.func,
308
- /**
309
- * Disable specific time.
310
- * @template TDate
311
- * @param {TDate} value The value to check.
312
- * @param {TimeView} view The clock type of the timeValue.
313
- * @returns {boolean} If `true` the time will be disabled.
308
+ /**
309
+ * Disable specific time.
310
+ * @template TDate
311
+ * @param {TDate} value The value to check.
312
+ * @param {TimeView} view The clock type of the timeValue.
313
+ * @returns {boolean} If `true` the time will be disabled.
314
314
  */
315
315
  shouldDisableTime: PropTypes.func,
316
- /**
317
- * If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
318
- * If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
319
- *
320
- * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
321
- *
322
- * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.
323
- * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
324
- *
325
- * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
326
- * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
327
- *
328
- * @default `false`
316
+ /**
317
+ * If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
318
+ * If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
319
+ *
320
+ * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
321
+ *
322
+ * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.
323
+ * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
324
+ *
325
+ * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
326
+ * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
327
+ *
328
+ * @default `false`
329
329
  */
330
330
  shouldRespectLeadingZeros: PropTypes.bool,
331
- /**
332
- * The size of the component.
331
+ /**
332
+ * The size of the component.
333
333
  */
334
334
  size: PropTypes.oneOf(['medium', 'small']),
335
- /**
336
- * The props used for each component slot.
337
- * @default {}
335
+ /**
336
+ * The props used for each component slot.
337
+ * @default {}
338
338
  */
339
339
  slotProps: PropTypes.object,
340
- /**
341
- * Overridable component slots.
342
- * @default {}
340
+ /**
341
+ * Overridable component slots.
342
+ * @default {}
343
343
  */
344
344
  slots: PropTypes.object,
345
345
  style: PropTypes.object,
346
- /**
347
- * The system prop that allows defining system overrides as well as additional CSS styles.
346
+ /**
347
+ * The system prop that allows defining system overrides as well as additional CSS styles.
348
348
  */
349
349
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
350
- /**
351
- * Choose which timezone to use for the value.
352
- * Example: "default", "system", "UTC", "America/New_York".
353
- * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
354
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
355
- * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
350
+ /**
351
+ * Choose which timezone to use for the value.
352
+ * Example: "default", "system", "UTC", "America/New_York".
353
+ * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
354
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
355
+ * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
356
356
  */
357
357
  timezone: PropTypes.string,
358
- /**
359
- * The ref object used to imperatively interact with the field.
358
+ /**
359
+ * The ref object used to imperatively interact with the field.
360
360
  */
361
361
  unstableFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
362
- /**
363
- * The selected value.
364
- * Used when the component is controlled.
362
+ /**
363
+ * The selected value.
364
+ * Used when the component is controlled.
365
365
  */
366
366
  value: PropTypes.arrayOf(PropTypes.any),
367
- /**
368
- * The variant to use.
369
- * @default 'outlined'
367
+ /**
368
+ * The variant to use.
369
+ * @default 'outlined'
370
370
  */
371
371
  variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
372
372
  };
@@ -1,50 +1,50 @@
1
- import * as React from 'react';
2
- import { SlotComponentProps } from '@mui/base/utils';
3
- import TextField from '@mui/material/TextField';
4
- import { FieldsTextFieldProps } from '@mui/x-date-pickers/internals/models/fields';
5
- import { UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
6
- import { UseDateTimeRangeFieldDefaultizedProps, UseDateTimeRangeFieldProps } from '../internals/models';
7
- export interface UseSingleInputDateTimeRangeFieldParams<TDate, TChildProps extends {}> {
8
- props: UseSingleInputDateTimeRangeFieldComponentProps<TDate, TChildProps>;
9
- inputRef?: React.Ref<HTMLInputElement>;
10
- }
11
- export interface UseSingleInputDateTimeRangeFieldProps<TDate> extends UseDateTimeRangeFieldProps<TDate> {
12
- }
13
- export declare type UseSingleInputDateTimeRangeFieldDefaultizedProps<TDate, AdditionalProps extends {}> = UseDateTimeRangeFieldDefaultizedProps<TDate> & AdditionalProps;
14
- export declare type UseSingleInputDateTimeRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseSingleInputDateTimeRangeFieldProps<TDate>> & UseSingleInputDateTimeRangeFieldProps<TDate>;
15
- export interface SingleInputDateTimeRangeFieldProps<TDate> extends UseSingleInputDateTimeRangeFieldComponentProps<TDate, FieldsTextFieldProps> {
16
- /**
17
- * Overridable components.
18
- * @default {}
19
- * @deprecated Please use `slots`.
20
- */
21
- components?: SingleInputDateTimeRangeFieldSlotsComponent;
22
- /**
23
- * The props used for each component slot.
24
- * @default {}
25
- * @deprecated Please use `slotProps`.
26
- */
27
- componentsProps?: SingleInputDateTimeRangeFieldSlotsComponentsProps<TDate>;
28
- /**
29
- * Overridable component slots.
30
- * @default {}
31
- */
32
- slots?: UncapitalizeObjectKeys<SingleInputDateTimeRangeFieldSlotsComponent>;
33
- /**
34
- * The props used for each component slot.
35
- * @default {}
36
- */
37
- slotProps?: SingleInputDateTimeRangeFieldSlotsComponentsProps<TDate>;
38
- }
39
- export declare type SingleInputDateTimeRangeFieldOwnerState<TDate> = SingleInputDateTimeRangeFieldProps<TDate>;
40
- export interface SingleInputDateTimeRangeFieldSlotsComponent {
41
- /**
42
- * Form control with an input to render the value.
43
- * Receives the same props as `@mui/material/TextField`.
44
- * @default TextField from '@mui/material'
45
- */
46
- TextField?: React.ElementType;
47
- }
48
- export interface SingleInputDateTimeRangeFieldSlotsComponentsProps<TDate> {
49
- textField?: SlotComponentProps<typeof TextField, {}, SingleInputDateTimeRangeFieldOwnerState<TDate>>;
50
- }
1
+ import * as React from 'react';
2
+ import { SlotComponentProps } from '@mui/base/utils';
3
+ import TextField from '@mui/material/TextField';
4
+ import { FieldsTextFieldProps } from '@mui/x-date-pickers/internals/models/fields';
5
+ import { UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
6
+ import { UseDateTimeRangeFieldDefaultizedProps, UseDateTimeRangeFieldProps } from '../internals/models';
7
+ export interface UseSingleInputDateTimeRangeFieldParams<TDate, TChildProps extends {}> {
8
+ props: UseSingleInputDateTimeRangeFieldComponentProps<TDate, TChildProps>;
9
+ inputRef?: React.Ref<HTMLInputElement>;
10
+ }
11
+ export interface UseSingleInputDateTimeRangeFieldProps<TDate> extends UseDateTimeRangeFieldProps<TDate> {
12
+ }
13
+ export declare type UseSingleInputDateTimeRangeFieldDefaultizedProps<TDate, AdditionalProps extends {}> = UseDateTimeRangeFieldDefaultizedProps<TDate> & AdditionalProps;
14
+ export declare type UseSingleInputDateTimeRangeFieldComponentProps<TDate, TChildProps extends {}> = Omit<TChildProps, keyof UseSingleInputDateTimeRangeFieldProps<TDate>> & UseSingleInputDateTimeRangeFieldProps<TDate>;
15
+ export interface SingleInputDateTimeRangeFieldProps<TDate> extends UseSingleInputDateTimeRangeFieldComponentProps<TDate, FieldsTextFieldProps> {
16
+ /**
17
+ * Overridable components.
18
+ * @default {}
19
+ * @deprecated Please use `slots`.
20
+ */
21
+ components?: SingleInputDateTimeRangeFieldSlotsComponent;
22
+ /**
23
+ * The props used for each component slot.
24
+ * @default {}
25
+ * @deprecated Please use `slotProps`.
26
+ */
27
+ componentsProps?: SingleInputDateTimeRangeFieldSlotsComponentsProps<TDate>;
28
+ /**
29
+ * Overridable component slots.
30
+ * @default {}
31
+ */
32
+ slots?: UncapitalizeObjectKeys<SingleInputDateTimeRangeFieldSlotsComponent>;
33
+ /**
34
+ * The props used for each component slot.
35
+ * @default {}
36
+ */
37
+ slotProps?: SingleInputDateTimeRangeFieldSlotsComponentsProps<TDate>;
38
+ }
39
+ export declare type SingleInputDateTimeRangeFieldOwnerState<TDate> = SingleInputDateTimeRangeFieldProps<TDate>;
40
+ export interface SingleInputDateTimeRangeFieldSlotsComponent {
41
+ /**
42
+ * Form control with an input to render the value.
43
+ * Receives the same props as `@mui/material/TextField`.
44
+ * @default TextField from '@mui/material'
45
+ */
46
+ TextField?: React.ElementType;
47
+ }
48
+ export interface SingleInputDateTimeRangeFieldSlotsComponentsProps<TDate> {
49
+ textField?: SlotComponentProps<typeof TextField, {}, SingleInputDateTimeRangeFieldOwnerState<TDate>>;
50
+ }
@@ -1,3 +1,3 @@
1
- export { SingleInputDateTimeRangeField } from './SingleInputDateTimeRangeField';
2
- export { useSingleInputDateTimeRangeField as unstable_useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
3
- export type { UseSingleInputDateTimeRangeFieldProps, UseSingleInputDateTimeRangeFieldComponentProps, SingleInputDateTimeRangeFieldProps, } from './SingleInputDateTimeRangeField.types';
1
+ export { SingleInputDateTimeRangeField } from './SingleInputDateTimeRangeField';
2
+ export { useSingleInputDateTimeRangeField as unstable_useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
3
+ export type { UseSingleInputDateTimeRangeFieldProps, UseSingleInputDateTimeRangeFieldComponentProps, SingleInputDateTimeRangeFieldProps, } from './SingleInputDateTimeRangeField.types';
@@ -1,3 +1,3 @@
1
- import { UseSingleInputDateTimeRangeFieldDefaultizedProps, UseSingleInputDateTimeRangeFieldParams, UseSingleInputDateTimeRangeFieldProps } from './SingleInputDateTimeRangeField.types';
2
- export declare const useDefaultizedTimeRangeFieldProps: <TDate, AdditionalProps extends {}>(props: UseSingleInputDateTimeRangeFieldProps<TDate>) => UseSingleInputDateTimeRangeFieldDefaultizedProps<TDate, AdditionalProps>;
3
- export declare const useSingleInputDateTimeRangeField: <TDate, TChildProps extends {}>({ props: inProps, inputRef, }: UseSingleInputDateTimeRangeFieldParams<TDate, TChildProps>) => import("@mui/x-date-pickers/internals").UseFieldResponse<Omit<UseSingleInputDateTimeRangeFieldDefaultizedProps<TDate, TChildProps>, keyof UseSingleInputDateTimeRangeFieldProps<any>>>;
1
+ import { UseSingleInputDateTimeRangeFieldDefaultizedProps, UseSingleInputDateTimeRangeFieldParams, UseSingleInputDateTimeRangeFieldProps } from './SingleInputDateTimeRangeField.types';
2
+ export declare const useDefaultizedTimeRangeFieldProps: <TDate, AdditionalProps extends {}>(props: UseSingleInputDateTimeRangeFieldProps<TDate>) => UseSingleInputDateTimeRangeFieldDefaultizedProps<TDate, AdditionalProps>;
3
+ export declare const useSingleInputDateTimeRangeField: <TDate, TChildProps extends {}>({ props: inProps, inputRef, }: UseSingleInputDateTimeRangeFieldParams<TDate, TChildProps>) => import("@mui/x-date-pickers/internals").UseFieldResponse<Omit<UseSingleInputDateTimeRangeFieldDefaultizedProps<TDate, TChildProps>, keyof UseSingleInputDateTimeRangeFieldProps<any>>>;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { SingleInputTimeRangeFieldProps } from './SingleInputTimeRangeField.types';
3
- declare type DateRangeFieldComponent = (<TDate>(props: SingleInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
4
- propTypes?: any;
5
- fieldType?: string;
6
- };
7
- declare const SingleInputTimeRangeField: DateRangeFieldComponent;
8
- export { SingleInputTimeRangeField };
1
+ import * as React from 'react';
2
+ import { SingleInputTimeRangeFieldProps } from './SingleInputTimeRangeField.types';
3
+ declare type DateRangeFieldComponent = (<TDate>(props: SingleInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
4
+ propTypes?: any;
5
+ fieldType?: string;
6
+ };
7
+ declare const SingleInputTimeRangeField: DateRangeFieldComponent;
8
+ export { SingleInputTimeRangeField };