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

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 (326) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +4 -21
  2. package/AdapterDateFns/AdapterDateFns.js +11 -255
  3. package/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +62 -0
  4. package/AdapterDateFnsBase/AdapterDateFnsBase.js +291 -0
  5. package/AdapterDateFnsBase/index.d.ts +1 -0
  6. package/AdapterDateFnsBase/index.js +1 -0
  7. package/AdapterDateFnsBase/package.json +6 -0
  8. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +1 -0
  9. package/AdapterDateFnsV3/AdapterDateFnsV3.d.ts +80 -0
  10. package/AdapterDateFnsV3/AdapterDateFnsV3.js +287 -0
  11. package/AdapterDateFnsV3/index.d.ts +1 -0
  12. package/AdapterDateFnsV3/index.js +1 -0
  13. package/AdapterDateFnsV3/package.json +6 -0
  14. package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
  15. package/AdapterLuxon/AdapterLuxon.js +4 -12
  16. package/CHANGELOG.md +554 -51
  17. package/DatePicker/DatePicker.js +0 -3
  18. package/DatePicker/DatePickerToolbar.d.ts +2 -2
  19. package/DatePicker/DatePickerToolbar.js +2 -10
  20. package/DateTimePicker/DateTimePicker.js +0 -3
  21. package/DateTimePicker/DateTimePickerToolbar.js +0 -3
  22. package/DesktopDatePicker/DesktopDatePicker.js +0 -3
  23. package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  24. package/DesktopTimePicker/DesktopTimePicker.js +0 -3
  25. package/DigitalClock/DigitalClock.js +1 -0
  26. package/DigitalClock/DigitalClock.types.d.ts +5 -0
  27. package/LocalizationProvider/LocalizationProvider.js +1 -1
  28. package/MobileDatePicker/MobileDatePicker.js +0 -3
  29. package/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  30. package/MobileTimePicker/MobileTimePicker.js +0 -3
  31. package/MonthCalendar/MonthCalendar.js +0 -3
  32. package/MonthCalendar/MonthCalendar.types.d.ts +0 -3
  33. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  34. package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +5 -0
  35. package/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  36. package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +0 -3
  37. package/PickersSectionList/PickersSectionList.js +7 -2
  38. package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +11 -0
  39. package/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
  40. package/PickersTextField/PickersFilledInput/index.d.ts +4 -0
  41. package/PickersTextField/PickersFilledInput/index.js +2 -0
  42. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +23 -0
  43. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
  44. package/PickersTextField/PickersInput/PickersInput.d.ts +10 -0
  45. package/PickersTextField/PickersInput/PickersInput.js +196 -0
  46. package/{internals/components → PickersTextField}/PickersInput/index.d.ts +2 -2
  47. package/PickersTextField/PickersInput/index.js +2 -0
  48. package/PickersTextField/PickersInput/pickersInputClasses.d.ts +22 -0
  49. package/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
  50. package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +16 -0
  51. package/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -28
  52. package/{internals/components/PickersInput/PickersInput.types.d.ts → PickersTextField/PickersInputBase/PickersInputBase.types.d.ts} +3 -13
  53. package/PickersTextField/PickersInputBase/index.d.ts +4 -0
  54. package/PickersTextField/PickersInputBase/index.js +2 -0
  55. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +31 -0
  56. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
  57. package/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.d.ts +3 -0
  58. package/{modern/internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
  59. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +10 -0
  60. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
  61. package/PickersTextField/PickersOutlinedInput/index.d.ts +4 -0
  62. package/PickersTextField/PickersOutlinedInput/index.js +2 -0
  63. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +22 -0
  64. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
  65. package/PickersTextField/PickersTextField.d.ts +3 -0
  66. package/PickersTextField/PickersTextField.js +258 -0
  67. package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.d.ts +5 -2
  68. package/PickersTextField/index.d.ts +8 -0
  69. package/PickersTextField/index.js +6 -0
  70. package/PickersTextField/package.json +6 -0
  71. package/README.md +1 -1
  72. package/StaticDatePicker/StaticDatePicker.js +0 -3
  73. package/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  74. package/StaticTimePicker/StaticTimePicker.js +0 -3
  75. package/TimeClock/TimeClock.js +1 -0
  76. package/TimeClock/TimeClock.types.d.ts +5 -0
  77. package/TimePicker/TimePicker.js +0 -3
  78. package/TimePicker/TimePickerToolbar.js +0 -3
  79. package/YearCalendar/YearCalendar.js +0 -3
  80. package/YearCalendar/YearCalendar.types.d.ts +0 -3
  81. package/hooks/useClearableField.js +3 -3
  82. package/index.d.ts +2 -1
  83. package/index.js +3 -2
  84. package/internals/hooks/useField/useField.js +6 -4
  85. package/internals/hooks/useField/useField.types.d.ts +4 -2
  86. package/internals/hooks/useField/useField.utils.d.ts +19 -9
  87. package/internals/hooks/useField/useField.utils.js +73 -26
  88. package/internals/hooks/useField/useFieldCharacterEditing.d.ts +2 -1
  89. package/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
  90. package/internals/hooks/useField/useFieldState.d.ts +1 -0
  91. package/internals/hooks/useField/useFieldState.js +9 -7
  92. package/internals/hooks/usePicker/index.d.ts +1 -1
  93. package/internals/hooks/usePicker/usePickerValue.js +2 -2
  94. package/internals/hooks/useUtils.js +2 -2
  95. package/internals/hooks/useViews.js +2 -2
  96. package/internals/index.d.ts +9 -3
  97. package/internals/index.js +6 -2
  98. package/internals/models/common.d.ts +1 -1
  99. package/internals/models/helpers.d.ts +1 -0
  100. package/internals/models/props/basePickerProps.d.ts +0 -3
  101. package/internals/models/props/toolbar.d.ts +0 -3
  102. package/internals/utils/valueManagers.js +2 -2
  103. package/internals/utils/views.js +1 -1
  104. package/legacy/AdapterDateFns/AdapterDateFns.js +222 -458
  105. package/legacy/AdapterDateFnsBase/AdapterDateFnsBase.js +293 -0
  106. package/legacy/AdapterDateFnsBase/index.js +1 -0
  107. package/legacy/AdapterDateFnsV3/AdapterDateFnsV3.js +306 -0
  108. package/legacy/AdapterDateFnsV3/index.js +1 -0
  109. package/legacy/AdapterLuxon/AdapterLuxon.js +4 -12
  110. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +5 -6
  111. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +5 -6
  112. package/legacy/DatePicker/DatePicker.js +0 -3
  113. package/legacy/DatePicker/DatePickerToolbar.js +2 -10
  114. package/legacy/DateTimePicker/DateTimePicker.js +0 -3
  115. package/legacy/DateTimePicker/DateTimePickerToolbar.js +0 -3
  116. package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -3
  117. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  118. package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -3
  119. package/legacy/DigitalClock/DigitalClock.js +1 -0
  120. package/legacy/LocalizationProvider/LocalizationProvider.js +1 -1
  121. package/legacy/MobileDatePicker/MobileDatePicker.js +0 -3
  122. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  123. package/legacy/MobileTimePicker/MobileTimePicker.js +0 -3
  124. package/legacy/MonthCalendar/MonthCalendar.js +0 -3
  125. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  126. package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  127. package/legacy/PickersSectionList/PickersSectionList.js +7 -2
  128. package/legacy/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +99 -26
  129. package/legacy/PickersTextField/PickersFilledInput/index.js +2 -0
  130. package/legacy/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
  131. package/legacy/PickersTextField/PickersInput/PickersInput.js +190 -0
  132. package/legacy/PickersTextField/PickersInput/index.js +2 -0
  133. package/legacy/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
  134. package/legacy/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -28
  135. package/legacy/PickersTextField/PickersInputBase/index.js +2 -0
  136. package/legacy/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
  137. package/legacy/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +7 -1
  138. package/legacy/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +183 -0
  139. package/legacy/PickersTextField/PickersOutlinedInput/index.js +2 -0
  140. package/legacy/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
  141. package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -8
  142. package/legacy/PickersTextField/index.js +6 -0
  143. package/legacy/StaticDatePicker/StaticDatePicker.js +0 -3
  144. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  145. package/legacy/StaticTimePicker/StaticTimePicker.js +0 -3
  146. package/legacy/TimeClock/TimeClock.js +1 -0
  147. package/legacy/TimePicker/TimePicker.js +0 -3
  148. package/legacy/TimePicker/TimePickerToolbar.js +0 -3
  149. package/legacy/YearCalendar/YearCalendar.js +0 -3
  150. package/legacy/hooks/useClearableField.js +3 -3
  151. package/legacy/index.js +3 -2
  152. package/legacy/internals/hooks/useField/useField.js +6 -4
  153. package/legacy/internals/hooks/useField/useField.utils.js +76 -25
  154. package/legacy/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
  155. package/legacy/internals/hooks/useField/useFieldState.js +15 -11
  156. package/legacy/internals/hooks/usePicker/usePickerValue.js +2 -2
  157. package/legacy/internals/hooks/useUtils.js +2 -2
  158. package/legacy/internals/hooks/useViews.js +2 -2
  159. package/legacy/internals/index.js +6 -2
  160. package/legacy/internals/utils/valueManagers.js +2 -2
  161. package/legacy/internals/utils/views.js +1 -1
  162. package/legacy/locales/index.js +1 -0
  163. package/locales/enUS.d.ts +1 -1
  164. package/locales/index.d.ts +1 -0
  165. package/locales/index.js +1 -0
  166. package/locales/mk.d.ts +1 -1
  167. package/locales/utils/getPickersLocalization.d.ts +1 -1
  168. package/modern/AdapterDateFns/AdapterDateFns.js +11 -254
  169. package/modern/AdapterDateFnsBase/AdapterDateFnsBase.js +290 -0
  170. package/modern/AdapterDateFnsBase/index.js +1 -0
  171. package/modern/AdapterDateFnsV3/AdapterDateFnsV3.js +287 -0
  172. package/modern/AdapterDateFnsV3/index.js +1 -0
  173. package/modern/AdapterLuxon/AdapterLuxon.js +3 -11
  174. package/modern/DatePicker/DatePicker.js +0 -3
  175. package/modern/DatePicker/DatePickerToolbar.js +2 -10
  176. package/modern/DateTimePicker/DateTimePicker.js +0 -3
  177. package/modern/DateTimePicker/DateTimePickerToolbar.js +0 -3
  178. package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -3
  179. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  180. package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -3
  181. package/modern/DigitalClock/DigitalClock.js +1 -0
  182. package/modern/LocalizationProvider/LocalizationProvider.js +1 -1
  183. package/modern/MobileDatePicker/MobileDatePicker.js +0 -3
  184. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  185. package/modern/MobileTimePicker/MobileTimePicker.js +0 -3
  186. package/modern/MonthCalendar/MonthCalendar.js +0 -3
  187. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  188. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  189. package/modern/PickersSectionList/PickersSectionList.js +7 -2
  190. package/modern/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
  191. package/modern/PickersTextField/PickersFilledInput/index.js +2 -0
  192. package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
  193. package/modern/PickersTextField/PickersInput/PickersInput.js +196 -0
  194. package/modern/PickersTextField/PickersInput/index.js +2 -0
  195. package/modern/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
  196. package/modern/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -28
  197. package/modern/PickersTextField/PickersInputBase/index.js +2 -0
  198. package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
  199. package/{internals/components/PickersInput → modern/PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
  200. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
  201. package/modern/PickersTextField/PickersOutlinedInput/index.js +2 -0
  202. package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
  203. package/modern/PickersTextField/PickersTextField.js +258 -0
  204. package/modern/PickersTextField/index.js +6 -0
  205. package/modern/StaticDatePicker/StaticDatePicker.js +0 -3
  206. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  207. package/modern/StaticTimePicker/StaticTimePicker.js +0 -3
  208. package/modern/TimeClock/TimeClock.js +1 -0
  209. package/modern/TimePicker/TimePicker.js +0 -3
  210. package/modern/TimePicker/TimePickerToolbar.js +0 -3
  211. package/modern/YearCalendar/YearCalendar.js +0 -3
  212. package/modern/hooks/useClearableField.js +3 -3
  213. package/modern/index.js +3 -2
  214. package/modern/internals/hooks/useField/useField.js +5 -3
  215. package/modern/internals/hooks/useField/useField.utils.js +73 -26
  216. package/modern/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
  217. package/modern/internals/hooks/useField/useFieldState.js +9 -7
  218. package/modern/internals/hooks/usePicker/usePickerValue.js +2 -2
  219. package/modern/internals/hooks/useUtils.js +2 -2
  220. package/modern/internals/hooks/useViews.js +2 -2
  221. package/modern/internals/index.js +6 -2
  222. package/modern/internals/utils/valueManagers.js +2 -2
  223. package/modern/internals/utils/views.js +1 -1
  224. package/modern/locales/index.js +1 -0
  225. package/node/AdapterDateFns/AdapterDateFns.js +11 -254
  226. package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +298 -0
  227. package/node/AdapterDateFnsBase/index.js +12 -0
  228. package/node/AdapterDateFnsV3/AdapterDateFnsV3.js +295 -0
  229. package/node/AdapterDateFnsV3/index.js +12 -0
  230. package/node/AdapterLuxon/AdapterLuxon.js +3 -11
  231. package/node/DatePicker/DatePicker.js +0 -3
  232. package/node/DatePicker/DatePickerToolbar.js +0 -7
  233. package/node/DateTimePicker/DateTimePicker.js +0 -3
  234. package/node/DateTimePicker/DateTimePickerToolbar.js +0 -3
  235. package/node/DesktopDatePicker/DesktopDatePicker.js +0 -3
  236. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  237. package/node/DesktopTimePicker/DesktopTimePicker.js +0 -3
  238. package/node/DigitalClock/DigitalClock.js +1 -0
  239. package/node/LocalizationProvider/LocalizationProvider.js +1 -1
  240. package/node/MobileDatePicker/MobileDatePicker.js +0 -3
  241. package/node/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  242. package/node/MobileTimePicker/MobileTimePicker.js +0 -3
  243. package/node/MonthCalendar/MonthCalendar.js +0 -3
  244. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  245. package/node/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  246. package/node/PickersSectionList/PickersSectionList.js +7 -2
  247. package/node/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +102 -30
  248. package/node/PickersTextField/PickersFilledInput/index.js +25 -0
  249. package/node/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +16 -0
  250. package/node/PickersTextField/PickersInput/PickersInput.js +204 -0
  251. package/node/{internals/components → PickersTextField}/PickersInput/index.js +0 -7
  252. package/node/PickersTextField/PickersInput/pickersInputClasses.js +16 -0
  253. package/node/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +105 -28
  254. package/node/PickersTextField/PickersInputBase/index.js +25 -0
  255. package/node/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +14 -0
  256. package/node/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
  257. package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +197 -0
  258. package/node/PickersTextField/PickersOutlinedInput/index.js +25 -0
  259. package/node/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +16 -0
  260. package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -9
  261. package/node/PickersTextField/index.js +78 -0
  262. package/node/StaticDatePicker/StaticDatePicker.js +0 -3
  263. package/node/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  264. package/node/StaticTimePicker/StaticTimePicker.js +0 -3
  265. package/node/TimeClock/TimeClock.js +1 -0
  266. package/node/TimePicker/TimePicker.js +0 -3
  267. package/node/TimePicker/TimePickerToolbar.js +0 -3
  268. package/node/YearCalendar/YearCalendar.js +0 -3
  269. package/node/hooks/useClearableField.js +3 -3
  270. package/node/index.js +17 -5
  271. package/node/internals/hooks/useField/useField.js +5 -3
  272. package/node/internals/hooks/useField/useField.utils.js +78 -27
  273. package/node/internals/hooks/useField/useFieldCharacterEditing.js +11 -7
  274. package/node/internals/hooks/useField/useFieldState.js +8 -6
  275. package/node/internals/hooks/usePicker/usePickerValue.js +2 -2
  276. package/node/internals/hooks/useUtils.js +2 -2
  277. package/node/internals/hooks/useViews.js +2 -2
  278. package/node/internals/index.js +47 -1
  279. package/node/internals/utils/valueManagers.js +2 -2
  280. package/node/internals/utils/views.js +1 -1
  281. package/node/locales/index.js +11 -0
  282. package/package.json +8 -8
  283. package/themeAugmentation/components.d.ts +26 -0
  284. package/themeAugmentation/overrides.d.ts +16 -0
  285. package/themeAugmentation/props.d.ts +16 -0
  286. package/internals/components/PickersInput/PickersFilledInput.d.ts +0 -3
  287. package/internals/components/PickersInput/PickersInput.d.ts +0 -15
  288. package/internals/components/PickersInput/PickersOutlinedInput.d.ts +0 -3
  289. package/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
  290. package/internals/components/PickersInput/PickersStandardInput.d.ts +0 -3
  291. package/internals/components/PickersInput/PickersStandardInput.js +0 -123
  292. package/internals/components/PickersInput/index.js +0 -3
  293. package/internals/components/PickersInput/pickersInputClasses.d.ts +0 -84
  294. package/internals/components/PickersInput/pickersInputClasses.js +0 -18
  295. package/internals/components/PickersTextField/PickersTextField.d.ts +0 -2
  296. package/internals/components/PickersTextField/PickersTextField.js +0 -138
  297. package/internals/components/PickersTextField/index.d.ts +0 -1
  298. package/internals/components/PickersTextField/index.js +0 -1
  299. package/legacy/internals/components/PickersInput/PickersOutlinedInput.js +0 -110
  300. package/legacy/internals/components/PickersInput/PickersStandardInput.js +0 -117
  301. package/legacy/internals/components/PickersInput/index.js +0 -3
  302. package/legacy/internals/components/PickersInput/pickersInputClasses.js +0 -18
  303. package/legacy/internals/components/PickersTextField/index.js +0 -1
  304. package/modern/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
  305. package/modern/internals/components/PickersInput/PickersStandardInput.js +0 -123
  306. package/modern/internals/components/PickersInput/index.js +0 -3
  307. package/modern/internals/components/PickersInput/pickersInputClasses.js +0 -18
  308. package/modern/internals/components/PickersTextField/PickersTextField.js +0 -138
  309. package/modern/internals/components/PickersTextField/index.js +0 -1
  310. package/node/internals/components/PickersInput/PickersOutlinedInput.js +0 -125
  311. package/node/internals/components/PickersInput/PickersStandardInput.js +0 -132
  312. package/node/internals/components/PickersInput/pickersInputClasses.js +0 -29
  313. package/node/internals/components/PickersTextField/index.js +0 -12
  314. /package/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  315. /package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  316. /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.d.ts +0 -0
  317. /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
  318. /package/legacy/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  319. /package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  320. /package/legacy/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
  321. /package/modern/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  322. /package/modern/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  323. /package/modern/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
  324. /package/node/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  325. /package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  326. /package/node/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
@@ -2,13 +2,15 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["label", "autoFocus", "ownerState"];
4
4
  import * as React from 'react';
5
+ import PropTypes from 'prop-types';
5
6
  import { useFormControl } from '@mui/material/FormControl';
6
- import { styled } from '@mui/material/styles';
7
- import { unstable_composeClasses as composeClasses, unstable_capitalize as capitalize } from '@mui/utils';
8
- import { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from './pickersInputClasses';
9
- import { PickersInputRoot, PickersInput, PickersInputSectionsContainer } from './PickersInput';
7
+ import { styled, useThemeProps } from '@mui/material/styles';
8
+ import composeClasses from '@mui/utils/composeClasses';
9
+ import { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from './pickersFilledInputClasses';
10
+ import { PickersInputBase } from '../PickersInputBase';
11
+ import { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from '../PickersInputBase/PickersInputBase';
10
12
  import { jsx as _jsx } from "react/jsx-runtime";
11
- const FilledInputRoot = styled(PickersInputRoot, {
13
+ const PickersFilledInputRoot = styled(PickersInputBaseRoot, {
12
14
  name: 'MuiPickersFilledInput',
13
15
  slot: 'Root',
14
16
  overridesResolver: (props, styles) => styles.root
@@ -93,7 +95,7 @@ const FilledInputRoot = styled(PickersInputRoot, {
93
95
  paddingRight: 12
94
96
  });
95
97
  });
96
- const FilledSectionsContainer = styled(PickersInputSectionsContainer, {
98
+ const PickersFilledSectionsContainer = styled(PickersInputBaseSectionsContainer, {
97
99
  name: 'MuiPickersFilledInput',
98
100
  slot: 'sectionsContainer',
99
101
  overridesResolver: (props, styles) => styles.sectionsContainer
@@ -120,27 +122,24 @@ const FilledSectionsContainer = styled(PickersInputSectionsContainer, {
120
122
  }));
121
123
  const useUtilityClasses = ownerState => {
122
124
  const {
123
- focused,
124
- disabled,
125
- error,
126
125
  classes,
127
- fullWidth,
128
- color,
129
- size,
130
- endAdornment,
131
- startAdornment
126
+ disableUnderline
132
127
  } = ownerState;
133
128
  const slots = {
134
- root: ['root', focused && !disabled && 'focused', disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', `color${capitalize(color)}`, size === 'small' && 'inputSizeSmall', Boolean(startAdornment) && 'adornedStart', Boolean(endAdornment) && 'adornedEnd'],
135
- notchedOutline: ['notchedOutline'],
136
- before: ['before'],
137
- after: ['after'],
138
- content: ['content'],
129
+ root: ['root', !disableUnderline && 'underline'],
139
130
  input: ['input']
140
131
  };
141
- return composeClasses(slots, getPickersFilledInputUtilityClass, classes);
132
+ const composedClasses = composeClasses(slots, getPickersFilledInputUtilityClass, classes);
133
+ return _extends({}, classes, composedClasses);
142
134
  };
143
- export const PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledInput(props, ref) {
135
+ /**
136
+ * @ignore - internal component.
137
+ */
138
+ const PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledInput(inProps, ref) {
139
+ const props = useThemeProps({
140
+ props: inProps,
141
+ name: 'MuiPickersFilledInput'
142
+ });
144
143
  const {
145
144
  label,
146
145
  ownerState: ownerStateProp
@@ -151,10 +150,10 @@ export const PickersFilledInput = /*#__PURE__*/React.forwardRef(function Pickers
151
150
  color: muiFormControl?.color || 'primary'
152
151
  });
153
152
  const classes = useUtilityClasses(ownerState);
154
- return /*#__PURE__*/_jsx(PickersInput, _extends({
153
+ return /*#__PURE__*/_jsx(PickersInputBase, _extends({
155
154
  slots: {
156
- root: FilledInputRoot,
157
- input: FilledSectionsContainer
155
+ root: PickersFilledInputRoot,
156
+ input: PickersFilledSectionsContainer
158
157
  }
159
158
  }, other, {
160
159
  label: label,
@@ -162,4 +161,78 @@ export const PickersFilledInput = /*#__PURE__*/React.forwardRef(function Pickers
162
161
  ref: ref
163
162
  }));
164
163
  });
165
- PickersInput.muiName = 'Input';
164
+ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
165
+ // ----------------------------- Warning --------------------------------
166
+ // | These PropTypes are generated from the TypeScript type definitions |
167
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
168
+ // ----------------------------------------------------------------------
169
+ /**
170
+ * Is `true` if the current values equals the empty value.
171
+ * For a single item value, it means that `value === null`
172
+ * For a range value, it means that `value === [null, null]`
173
+ */
174
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
175
+ className: PropTypes.string,
176
+ /**
177
+ * The component used for the root node.
178
+ * Either a string to use a HTML element or a component.
179
+ */
180
+ component: PropTypes.elementType,
181
+ /**
182
+ * If true, the whole element is editable.
183
+ * Useful when all the sections are selected.
184
+ */
185
+ contentEditable: PropTypes.bool.isRequired,
186
+ disableUnderline: PropTypes.bool,
187
+ /**
188
+ * The elements to render.
189
+ * Each element contains the prop to edit a section of the value.
190
+ */
191
+ elements: PropTypes.arrayOf(PropTypes.shape({
192
+ after: PropTypes.object.isRequired,
193
+ before: PropTypes.object.isRequired,
194
+ container: PropTypes.object.isRequired,
195
+ content: PropTypes.object.isRequired
196
+ })).isRequired,
197
+ endAdornment: PropTypes.node,
198
+ fullWidth: PropTypes.bool,
199
+ hiddenLabel: PropTypes.bool,
200
+ id: PropTypes.string,
201
+ inputProps: PropTypes.object,
202
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
203
+ current: PropTypes.object
204
+ })]),
205
+ label: PropTypes.node,
206
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
207
+ onChange: PropTypes.func.isRequired,
208
+ onClick: PropTypes.func.isRequired,
209
+ onInput: PropTypes.func.isRequired,
210
+ onKeyDown: PropTypes.func.isRequired,
211
+ onPaste: PropTypes.func.isRequired,
212
+ ownerState: PropTypes.any,
213
+ readOnly: PropTypes.bool,
214
+ renderSuffix: PropTypes.func,
215
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
216
+ current: PropTypes.shape({
217
+ getRoot: PropTypes.func.isRequired,
218
+ getSectionContainer: PropTypes.func.isRequired,
219
+ getSectionContent: PropTypes.func.isRequired,
220
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
221
+ })
222
+ })]),
223
+ /**
224
+ * The components used for each slot inside.
225
+ *
226
+ * @default {}
227
+ */
228
+ slots: PropTypes.object,
229
+ startAdornment: PropTypes.node,
230
+ style: PropTypes.object,
231
+ /**
232
+ * The system prop that allows defining system overrides as well as additional CSS styles.
233
+ */
234
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
235
+ value: PropTypes.string.isRequired
236
+ } : void 0;
237
+ export { PickersFilledInput };
238
+ PickersFilledInput.muiName = 'Input';
@@ -0,0 +1,2 @@
1
+ export { PickersFilledInput } from './PickersFilledInput';
2
+ export { getPickersFilledInputUtilityClass, pickersFilledInputClasses } from './pickersFilledInputClasses';
@@ -0,0 +1,8 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
4
+ import { pickersInputBaseClasses } from '../PickersInputBase';
5
+ export function getPickersFilledInputUtilityClass(slot) {
6
+ return generateUtilityClass('MuiPickersFilledInput', slot);
7
+ }
8
+ export const pickersFilledInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersFilledInput', ['root', 'underline', 'input']));
@@ -0,0 +1,196 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ const _excluded = ["label", "autoFocus", "ownerState"];
4
+ import * as React from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import { useFormControl } from '@mui/material/FormControl';
7
+ import { styled, useThemeProps } from '@mui/material/styles';
8
+ import composeClasses from '@mui/utils/composeClasses';
9
+ import { pickersInputClasses, getPickersInputUtilityClass } from './pickersInputClasses';
10
+ import { PickersInputBase } from '../PickersInputBase';
11
+ import { PickersInputBaseRoot } from '../PickersInputBase/PickersInputBase';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ const PickersInputRoot = styled(PickersInputBaseRoot, {
14
+ name: 'MuiPickersInput',
15
+ slot: 'Root',
16
+ overridesResolver: (props, styles) => styles.root
17
+ })(({
18
+ theme,
19
+ ownerState
20
+ }) => {
21
+ const light = theme.palette.mode === 'light';
22
+ let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
23
+ if (theme.vars) {
24
+ bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;
25
+ }
26
+ return _extends({
27
+ 'label + &': {
28
+ marginTop: 16
29
+ }
30
+ }, !ownerState.disableUnderline && {
31
+ '&::after': {
32
+ background: 'red',
33
+ // @ts-ignore
34
+ borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
35
+ left: 0,
36
+ bottom: 0,
37
+ // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
38
+ content: '""',
39
+ position: 'absolute',
40
+ right: 0,
41
+ transform: 'scaleX(0)',
42
+ transition: theme.transitions.create('transform', {
43
+ duration: theme.transitions.duration.shorter,
44
+ easing: theme.transitions.easing.easeOut
45
+ }),
46
+ pointerEvents: 'none' // Transparent to the hover style.
47
+ },
48
+ [`&.${pickersInputClasses.focused}:after`]: {
49
+ // translateX(0) is a workaround for Safari transform scale bug
50
+ // See https://github.com/mui/material-ui/issues/31766
51
+ transform: 'scaleX(1) translateX(0)'
52
+ },
53
+ [`&.${pickersInputClasses.error}`]: {
54
+ '&:before, &:after': {
55
+ borderBottomColor: (theme.vars || theme).palette.error.main
56
+ }
57
+ },
58
+ '&::before': {
59
+ borderBottom: `1px solid ${bottomLineColor}`,
60
+ left: 0,
61
+ bottom: 0,
62
+ // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
63
+ content: '"\\00a0"',
64
+ position: 'absolute',
65
+ right: 0,
66
+ transition: theme.transitions.create('border-bottom-color', {
67
+ duration: theme.transitions.duration.shorter
68
+ }),
69
+ pointerEvents: 'none' // Transparent to the hover style.
70
+ },
71
+ [`&:hover:not(.${pickersInputClasses.disabled}, .${pickersInputClasses.error}):before`]: {
72
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
73
+ // Reset on touch devices, it doesn't add specificity
74
+ '@media (hover: none)': {
75
+ borderBottom: `1px solid ${bottomLineColor}`
76
+ }
77
+ },
78
+ [`&.${pickersInputClasses.disabled}:before`]: {
79
+ borderBottomStyle: 'dotted'
80
+ }
81
+ });
82
+ });
83
+ const useUtilityClasses = ownerState => {
84
+ const {
85
+ classes,
86
+ disableUnderline
87
+ } = ownerState;
88
+ const slots = {
89
+ root: ['root', !disableUnderline && 'underline'],
90
+ input: ['input']
91
+ };
92
+ const composedClasses = composeClasses(slots, getPickersInputUtilityClass, classes);
93
+ return _extends({}, classes, composedClasses);
94
+ };
95
+ /**
96
+ * @ignore - internal component.
97
+ */
98
+ const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps, ref) {
99
+ const props = useThemeProps({
100
+ props: inProps,
101
+ name: 'MuiPickersInput'
102
+ });
103
+ const {
104
+ label,
105
+ ownerState: ownerStateProp
106
+ } = props,
107
+ other = _objectWithoutPropertiesLoose(props, _excluded);
108
+ const muiFormControl = useFormControl();
109
+ const ownerState = _extends({}, props, ownerStateProp, muiFormControl, {
110
+ color: muiFormControl?.color || 'primary'
111
+ });
112
+ const classes = useUtilityClasses(ownerState);
113
+ return /*#__PURE__*/_jsx(PickersInputBase, _extends({
114
+ slots: {
115
+ root: PickersInputRoot
116
+ }
117
+ }, other, {
118
+ label: label,
119
+ classes: classes,
120
+ ref: ref
121
+ }));
122
+ });
123
+ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
124
+ // ----------------------------- Warning --------------------------------
125
+ // | These PropTypes are generated from the TypeScript type definitions |
126
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
127
+ // ----------------------------------------------------------------------
128
+ /**
129
+ * Is `true` if the current values equals the empty value.
130
+ * For a single item value, it means that `value === null`
131
+ * For a range value, it means that `value === [null, null]`
132
+ */
133
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
134
+ className: PropTypes.string,
135
+ /**
136
+ * The component used for the root node.
137
+ * Either a string to use a HTML element or a component.
138
+ */
139
+ component: PropTypes.elementType,
140
+ /**
141
+ * If true, the whole element is editable.
142
+ * Useful when all the sections are selected.
143
+ */
144
+ contentEditable: PropTypes.bool.isRequired,
145
+ disableUnderline: PropTypes.bool,
146
+ /**
147
+ * The elements to render.
148
+ * Each element contains the prop to edit a section of the value.
149
+ */
150
+ elements: PropTypes.arrayOf(PropTypes.shape({
151
+ after: PropTypes.object.isRequired,
152
+ before: PropTypes.object.isRequired,
153
+ container: PropTypes.object.isRequired,
154
+ content: PropTypes.object.isRequired
155
+ })).isRequired,
156
+ endAdornment: PropTypes.node,
157
+ fullWidth: PropTypes.bool,
158
+ id: PropTypes.string,
159
+ inputProps: PropTypes.object,
160
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
161
+ current: PropTypes.object
162
+ })]),
163
+ label: PropTypes.node,
164
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
165
+ onChange: PropTypes.func.isRequired,
166
+ onClick: PropTypes.func.isRequired,
167
+ onInput: PropTypes.func.isRequired,
168
+ onKeyDown: PropTypes.func.isRequired,
169
+ onPaste: PropTypes.func.isRequired,
170
+ ownerState: PropTypes.any,
171
+ readOnly: PropTypes.bool,
172
+ renderSuffix: PropTypes.func,
173
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
174
+ current: PropTypes.shape({
175
+ getRoot: PropTypes.func.isRequired,
176
+ getSectionContainer: PropTypes.func.isRequired,
177
+ getSectionContent: PropTypes.func.isRequired,
178
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
179
+ })
180
+ })]),
181
+ /**
182
+ * The components used for each slot inside.
183
+ *
184
+ * @default {}
185
+ */
186
+ slots: PropTypes.object,
187
+ startAdornment: PropTypes.node,
188
+ style: PropTypes.object,
189
+ /**
190
+ * The system prop that allows defining system overrides as well as additional CSS styles.
191
+ */
192
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
193
+ value: PropTypes.string.isRequired
194
+ } : void 0;
195
+ export { PickersInput };
196
+ PickersInput.muiName = 'Input';
@@ -0,0 +1,2 @@
1
+ export { PickersInput } from './PickersInput';
2
+ export { getPickersInputUtilityClass, pickersInputClasses } from './pickersInputClasses';
@@ -0,0 +1,8 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
4
+ import { pickersInputBaseClasses } from '../PickersInputBase';
5
+ export function getPickersInputUtilityClass(slot) {
6
+ return generateUtilityClass('MuiPickersFilledInput', slot);
7
+ }
8
+ export const pickersInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersInput', ['root', 'input']));
@@ -2,20 +2,20 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "value", "onChange", "id", "autoFocus", "endAdornment", "startAdornment", "renderSuffix", "slots", "contentEditable", "tabIndex", "onInput", "onPaste", "onKeyDown", "fullWidth", "inputProps", "inputRef", "sectionListRef"];
4
4
  import * as React from 'react';
5
- import Box from '@mui/material/Box';
5
+ import PropTypes from 'prop-types';
6
6
  import { useFormControl } from '@mui/material/FormControl';
7
- import { styled } from '@mui/material/styles';
7
+ import { styled, useThemeProps } from '@mui/material/styles';
8
8
  import useForkRef from '@mui/utils/useForkRef';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import capitalize from '@mui/utils/capitalize';
11
11
  import visuallyHidden from '@mui/utils/visuallyHidden';
12
- import { pickersInputClasses, getPickersInputUtilityClass } from './pickersInputClasses';
13
- import { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from '../../../PickersSectionList';
12
+ import { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from './pickersInputBaseClasses';
13
+ import { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from '../../PickersSectionList';
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
16
16
  const round = value => Math.round(value * 1e5) / 1e5;
17
- export const PickersInputRoot = styled(Box, {
18
- name: 'MuiPickersInput',
17
+ export const PickersInputBaseRoot = styled('div', {
18
+ name: 'MuiPickersInputBase',
19
19
  slot: 'Root',
20
20
  overridesResolver: (props, styles) => styles.root
21
21
  })(({
@@ -35,8 +35,8 @@ export const PickersInputRoot = styled(Box, {
35
35
  }, ownerState.fullWidth && {
36
36
  width: '100%'
37
37
  }));
38
- export const PickersInputSectionsContainer = styled(PickersSectionListRoot, {
39
- name: 'MuiPickersInput',
38
+ export const PickersInputBaseSectionsContainer = styled(PickersSectionListRoot, {
39
+ name: 'MuiPickersInputBase',
40
40
  slot: 'SectionsContainer',
41
41
  overridesResolver: (props, styles) => styles.sectionsContainer
42
42
  })(({
@@ -69,8 +69,8 @@ export const PickersInputSectionsContainer = styled(PickersSectionListRoot, {
69
69
  }), ownerState.label != null && {
70
70
  opacity: 0
71
71
  })));
72
- const PickersInputSection = styled(PickersSectionListSection, {
73
- name: 'MuiPickersInput',
72
+ const PickersInputBaseSection = styled(PickersSectionListSection, {
73
+ name: 'MuiPickersInputBase',
74
74
  slot: 'Section',
75
75
  overridesResolver: (props, styles) => styles.section
76
76
  })(({
@@ -83,8 +83,8 @@ const PickersInputSection = styled(PickersSectionListSection, {
83
83
  // 23px
84
84
  display: 'flex'
85
85
  }));
86
- const PickersInputSectionContent = styled(PickersSectionListSectionContent, {
87
- name: 'MuiPickersInput',
86
+ const PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {
87
+ name: 'MuiPickersInputBase',
88
88
  slot: 'SectionContent',
89
89
  overridesResolver: (props, styles) => styles.content
90
90
  })(({
@@ -97,16 +97,16 @@ const PickersInputSectionContent = styled(PickersSectionListSectionContent, {
97
97
  width: 'fit-content',
98
98
  outline: 'none'
99
99
  }));
100
- const PickersInputSeparator = styled(PickersSectionListSectionSeparator, {
101
- name: 'MuiPickersInput',
100
+ const PickersInputBaseSectionSeparator = styled(PickersSectionListSectionSeparator, {
101
+ name: 'MuiPickersInputBase',
102
102
  slot: 'Separator',
103
103
  overridesResolver: (props, styles) => styles.separator
104
104
  })(() => ({
105
105
  whiteSpace: 'pre',
106
106
  letterSpacing: 'inherit'
107
107
  }));
108
- const PickersInputInput = styled('input', {
109
- name: 'MuiPickersInput',
108
+ const PickersInputBaseInput = styled('input', {
109
+ name: 'MuiPickersInputBase',
110
110
  slot: 'Input',
111
111
  overridesResolver: (props, styles) => styles.hiddenInput
112
112
  })(_extends({}, visuallyHidden));
@@ -132,9 +132,16 @@ const useUtilityClasses = ownerState => {
132
132
  sectionBefore: ['sectionBefore'],
133
133
  sectionAfter: ['sectionAfter']
134
134
  };
135
- return composeClasses(slots, getPickersInputUtilityClass, classes);
135
+ return composeClasses(slots, getPickersInputBaseUtilityClass, classes);
136
136
  };
137
- export const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(props, ref) {
137
+ /**
138
+ * @ignore - internal component.
139
+ */
140
+ const PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase(inProps, ref) {
141
+ const props = useThemeProps({
142
+ props: inProps,
143
+ name: 'MuiPickersInputBase'
144
+ });
138
145
  const {
139
146
  elements,
140
147
  areAllSectionsEmpty,
@@ -160,7 +167,7 @@ export const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(
160
167
  const handleInputRef = useForkRef(inputProps?.ref, inputRef);
161
168
  const muiFormControl = useFormControl();
162
169
  if (!muiFormControl) {
163
- throw new Error('MUI: PickersInput should always be used inside a PickersTextField component');
170
+ throw new Error('MUI X: PickersInputBase should always be used inside a PickersTextField component');
164
171
  }
165
172
  const handleInputFocus = event => {
166
173
  // Fix a bug with IE11 where the focus/blur events are triggered
@@ -188,8 +195,8 @@ export const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(
188
195
  }, [muiFormControl, areAllSectionsEmpty]);
189
196
  const ownerState = _extends({}, props, muiFormControl);
190
197
  const classes = useUtilityClasses(ownerState);
191
- const InputRoot = slots?.root || PickersInputRoot;
192
- const InputSectionsContainer = slots?.input || PickersInputSectionsContainer;
198
+ const InputRoot = slots?.root || PickersInputBaseRoot;
199
+ const InputSectionsContainer = slots?.input || PickersInputBaseSectionsContainer;
193
200
  return /*#__PURE__*/_jsxs(InputRoot, _extends({}, other, {
194
201
  className: classes.root,
195
202
  ownerState: ownerState,
@@ -208,24 +215,24 @@ export const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(
208
215
  onKeyDown: onKeyDown,
209
216
  slots: {
210
217
  root: InputSectionsContainer,
211
- section: PickersInputSection,
212
- sectionContent: PickersInputSectionContent,
213
- sectionSeparator: PickersInputSeparator
218
+ section: PickersInputBaseSection,
219
+ sectionContent: PickersInputBaseSectionContent,
220
+ sectionSeparator: PickersInputBaseSectionSeparator
214
221
  },
215
222
  slotProps: {
216
223
  root: {
217
224
  ownerState
218
225
  },
219
226
  sectionContent: {
220
- className: pickersInputClasses.sectionContent
227
+ className: pickersInputBaseClasses.sectionContent
221
228
  },
222
229
  sectionSeparator: ({
223
230
  position
224
231
  }) => ({
225
- className: position === 'before' ? pickersInputClasses.sectionBefore : pickersInputClasses.sectionAfter
232
+ className: position === 'before' ? pickersInputBaseClasses.sectionBefore : pickersInputBaseClasses.sectionAfter
226
233
  })
227
234
  }
228
- }), endAdornment, renderSuffix ? renderSuffix(_extends({}, muiFormControl)) : null, /*#__PURE__*/_jsx(PickersInputInput, _extends({
235
+ }), endAdornment, renderSuffix ? renderSuffix(_extends({}, muiFormControl)) : null, /*#__PURE__*/_jsx(PickersInputBaseInput, _extends({
229
236
  className: classes.input,
230
237
  value: value,
231
238
  onChange: onChange,
@@ -237,4 +244,75 @@ export const PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(
237
244
  }))]
238
245
  }));
239
246
  });
240
- PickersInput.muiName = 'Input';
247
+ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
248
+ // ----------------------------- Warning --------------------------------
249
+ // | These PropTypes are generated from the TypeScript type definitions |
250
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
251
+ // ----------------------------------------------------------------------
252
+ /**
253
+ * Is `true` if the current values equals the empty value.
254
+ * For a single item value, it means that `value === null`
255
+ * For a range value, it means that `value === [null, null]`
256
+ */
257
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
258
+ className: PropTypes.string,
259
+ /**
260
+ * The component used for the root node.
261
+ * Either a string to use a HTML element or a component.
262
+ */
263
+ component: PropTypes.elementType,
264
+ /**
265
+ * If true, the whole element is editable.
266
+ * Useful when all the sections are selected.
267
+ */
268
+ contentEditable: PropTypes.bool.isRequired,
269
+ /**
270
+ * The elements to render.
271
+ * Each element contains the prop to edit a section of the value.
272
+ */
273
+ elements: PropTypes.arrayOf(PropTypes.shape({
274
+ after: PropTypes.object.isRequired,
275
+ before: PropTypes.object.isRequired,
276
+ container: PropTypes.object.isRequired,
277
+ content: PropTypes.object.isRequired
278
+ })).isRequired,
279
+ endAdornment: PropTypes.node,
280
+ fullWidth: PropTypes.bool,
281
+ id: PropTypes.string,
282
+ inputProps: PropTypes.object,
283
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
284
+ current: PropTypes.object
285
+ })]),
286
+ label: PropTypes.node,
287
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
288
+ onChange: PropTypes.func.isRequired,
289
+ onClick: PropTypes.func.isRequired,
290
+ onInput: PropTypes.func.isRequired,
291
+ onKeyDown: PropTypes.func.isRequired,
292
+ onPaste: PropTypes.func.isRequired,
293
+ ownerState: PropTypes.any,
294
+ readOnly: PropTypes.bool,
295
+ renderSuffix: PropTypes.func,
296
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
297
+ current: PropTypes.shape({
298
+ getRoot: PropTypes.func.isRequired,
299
+ getSectionContainer: PropTypes.func.isRequired,
300
+ getSectionContent: PropTypes.func.isRequired,
301
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
302
+ })
303
+ })]),
304
+ /**
305
+ * The components used for each slot inside.
306
+ *
307
+ * @default {}
308
+ */
309
+ slots: PropTypes.object,
310
+ startAdornment: PropTypes.node,
311
+ style: PropTypes.object,
312
+ /**
313
+ * The system prop that allows defining system overrides as well as additional CSS styles.
314
+ */
315
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
316
+ value: PropTypes.string.isRequired
317
+ } : void 0;
318
+ export { PickersInputBase };
@@ -0,0 +1,2 @@
1
+ export { PickersInputBase } from './PickersInputBase';
2
+ export { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from './pickersInputBaseClasses';
@@ -0,0 +1,6 @@
1
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
+ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
+ export function getPickersInputBaseUtilityClass(slot) {
4
+ return generateUtilityClass('MuiPickersInputBase', slot);
5
+ }
6
+ export const pickersInputBaseClasses = generateUtilityClasses('MuiPickersInputBase', ['root', 'focused', 'disabled', 'error', 'notchedOutline', 'sectionContent', 'sectionBefore', 'sectionAfter', 'adornedStart', 'adornedEnd', 'input']);
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["children", "className", "label"];
3
+ const _excluded = ["children", "className", "label", "notched", "shrink"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -82,6 +82,10 @@ const OutlineLegend = styled('legend')(({
82
82
  delay: 50
83
83
  })
84
84
  })));
85
+
86
+ /**
87
+ * @ignore - internal component.
88
+ */
85
89
  export default function Outline(props) {
86
90
  const {
87
91
  className,