@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,22 +2,22 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  var _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
  var round = function round(value) {
17
17
  return Math.round(value * 1e5) / 1e5;
18
18
  };
19
- export var PickersInputRoot = styled(Box, {
20
- name: 'MuiPickersInput',
19
+ export var PickersInputBaseRoot = styled('div', {
20
+ name: 'MuiPickersInputBase',
21
21
  slot: 'Root',
22
22
  overridesResolver: function overridesResolver(props, styles) {
23
23
  return styles.root;
@@ -40,8 +40,8 @@ export var PickersInputRoot = styled(Box, {
40
40
  width: '100%'
41
41
  });
42
42
  });
43
- export var PickersInputSectionsContainer = styled(PickersSectionListRoot, {
44
- name: 'MuiPickersInput',
43
+ export var PickersInputBaseSectionsContainer = styled(PickersSectionListRoot, {
44
+ name: 'MuiPickersInputBase',
45
45
  slot: 'SectionsContainer',
46
46
  overridesResolver: function overridesResolver(props, styles) {
47
47
  return styles.sectionsContainer;
@@ -77,8 +77,8 @@ export var PickersInputSectionsContainer = styled(PickersSectionListRoot, {
77
77
  opacity: 0
78
78
  }));
79
79
  });
80
- var PickersInputSection = styled(PickersSectionListSection, {
81
- name: 'MuiPickersInput',
80
+ var PickersInputBaseSection = styled(PickersSectionListSection, {
81
+ name: 'MuiPickersInputBase',
82
82
  slot: 'Section',
83
83
  overridesResolver: function overridesResolver(props, styles) {
84
84
  return styles.section;
@@ -94,8 +94,8 @@ var PickersInputSection = styled(PickersSectionListSection, {
94
94
  display: 'flex'
95
95
  };
96
96
  });
97
- var PickersInputSectionContent = styled(PickersSectionListSectionContent, {
98
- name: 'MuiPickersInput',
97
+ var PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {
98
+ name: 'MuiPickersInputBase',
99
99
  slot: 'SectionContent',
100
100
  overridesResolver: function overridesResolver(props, styles) {
101
101
  return styles.content;
@@ -111,8 +111,8 @@ var PickersInputSectionContent = styled(PickersSectionListSectionContent, {
111
111
  outline: 'none'
112
112
  };
113
113
  });
114
- var PickersInputSeparator = styled(PickersSectionListSectionSeparator, {
115
- name: 'MuiPickersInput',
114
+ var PickersInputBaseSectionSeparator = styled(PickersSectionListSectionSeparator, {
115
+ name: 'MuiPickersInputBase',
116
116
  slot: 'Separator',
117
117
  overridesResolver: function overridesResolver(props, styles) {
118
118
  return styles.separator;
@@ -123,8 +123,8 @@ var PickersInputSeparator = styled(PickersSectionListSectionSeparator, {
123
123
  letterSpacing: 'inherit'
124
124
  };
125
125
  });
126
- var PickersInputInput = styled('input', {
127
- name: 'MuiPickersInput',
126
+ var PickersInputBaseInput = styled('input', {
127
+ name: 'MuiPickersInputBase',
128
128
  slot: 'Input',
129
129
  overridesResolver: function overridesResolver(props, styles) {
130
130
  return styles.hiddenInput;
@@ -150,9 +150,16 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
150
150
  sectionBefore: ['sectionBefore'],
151
151
  sectionAfter: ['sectionAfter']
152
152
  };
153
- return composeClasses(slots, getPickersInputUtilityClass, classes);
153
+ return composeClasses(slots, getPickersInputBaseUtilityClass, classes);
154
154
  };
155
- export var PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(props, ref) {
155
+ /**
156
+ * @ignore - internal component.
157
+ */
158
+ var PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase(inProps, ref) {
159
+ var props = useThemeProps({
160
+ props: inProps,
161
+ name: 'MuiPickersInputBase'
162
+ });
156
163
  var elements = props.elements,
157
164
  areAllSectionsEmpty = props.areAllSectionsEmpty,
158
165
  defaultValue = props.defaultValue,
@@ -180,7 +187,7 @@ export var PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(pr
180
187
  var handleInputRef = useForkRef(inputProps == null ? void 0 : inputProps.ref, inputRef);
181
188
  var muiFormControl = useFormControl();
182
189
  if (!muiFormControl) {
183
- throw new Error('MUI: PickersInput should always be used inside a PickersTextField component');
190
+ throw new Error('MUI X: PickersInputBase should always be used inside a PickersTextField component');
184
191
  }
185
192
  var handleInputFocus = function handleInputFocus(event) {
186
193
  var _muiFormControl$onFoc;
@@ -209,8 +216,8 @@ export var PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(pr
209
216
  }, [muiFormControl, areAllSectionsEmpty]);
210
217
  var ownerState = _extends({}, props, muiFormControl);
211
218
  var classes = useUtilityClasses(ownerState);
212
- var InputRoot = (slots == null ? void 0 : slots.root) || PickersInputRoot;
213
- var InputSectionsContainer = (slots == null ? void 0 : slots.input) || PickersInputSectionsContainer;
219
+ var InputRoot = (slots == null ? void 0 : slots.root) || PickersInputBaseRoot;
220
+ var InputSectionsContainer = (slots == null ? void 0 : slots.input) || PickersInputBaseSectionsContainer;
214
221
  return /*#__PURE__*/_jsxs(InputRoot, _extends({}, other, {
215
222
  className: classes.root,
216
223
  ownerState: ownerState,
@@ -229,25 +236,25 @@ export var PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(pr
229
236
  onKeyDown: onKeyDown,
230
237
  slots: {
231
238
  root: InputSectionsContainer,
232
- section: PickersInputSection,
233
- sectionContent: PickersInputSectionContent,
234
- sectionSeparator: PickersInputSeparator
239
+ section: PickersInputBaseSection,
240
+ sectionContent: PickersInputBaseSectionContent,
241
+ sectionSeparator: PickersInputBaseSectionSeparator
235
242
  },
236
243
  slotProps: {
237
244
  root: {
238
245
  ownerState: ownerState
239
246
  },
240
247
  sectionContent: {
241
- className: pickersInputClasses.sectionContent
248
+ className: pickersInputBaseClasses.sectionContent
242
249
  },
243
250
  sectionSeparator: function sectionSeparator(_ref5) {
244
251
  var position = _ref5.position;
245
252
  return {
246
- className: position === 'before' ? pickersInputClasses.sectionBefore : pickersInputClasses.sectionAfter
253
+ className: position === 'before' ? pickersInputBaseClasses.sectionBefore : pickersInputBaseClasses.sectionAfter
247
254
  };
248
255
  }
249
256
  }
250
- }), endAdornment, renderSuffix ? renderSuffix(_extends({}, muiFormControl)) : null, /*#__PURE__*/_jsx(PickersInputInput, _extends({
257
+ }), endAdornment, renderSuffix ? renderSuffix(_extends({}, muiFormControl)) : null, /*#__PURE__*/_jsx(PickersInputBaseInput, _extends({
251
258
  className: classes.input,
252
259
  value: value,
253
260
  onChange: onChange,
@@ -259,4 +266,75 @@ export var PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(pr
259
266
  }))]
260
267
  }));
261
268
  });
262
- PickersInput.muiName = 'Input';
269
+ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
270
+ // ----------------------------- Warning --------------------------------
271
+ // | These PropTypes are generated from the TypeScript type definitions |
272
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
273
+ // ----------------------------------------------------------------------
274
+ /**
275
+ * Is `true` if the current values equals the empty value.
276
+ * For a single item value, it means that `value === null`
277
+ * For a range value, it means that `value === [null, null]`
278
+ */
279
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
280
+ className: PropTypes.string,
281
+ /**
282
+ * The component used for the root node.
283
+ * Either a string to use a HTML element or a component.
284
+ */
285
+ component: PropTypes.elementType,
286
+ /**
287
+ * If true, the whole element is editable.
288
+ * Useful when all the sections are selected.
289
+ */
290
+ contentEditable: PropTypes.bool.isRequired,
291
+ /**
292
+ * The elements to render.
293
+ * Each element contains the prop to edit a section of the value.
294
+ */
295
+ elements: PropTypes.arrayOf(PropTypes.shape({
296
+ after: PropTypes.object.isRequired,
297
+ before: PropTypes.object.isRequired,
298
+ container: PropTypes.object.isRequired,
299
+ content: PropTypes.object.isRequired
300
+ })).isRequired,
301
+ endAdornment: PropTypes.node,
302
+ fullWidth: PropTypes.bool,
303
+ id: PropTypes.string,
304
+ inputProps: PropTypes.object,
305
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
306
+ current: PropTypes.object
307
+ })]),
308
+ label: PropTypes.node,
309
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
310
+ onChange: PropTypes.func.isRequired,
311
+ onClick: PropTypes.func.isRequired,
312
+ onInput: PropTypes.func.isRequired,
313
+ onKeyDown: PropTypes.func.isRequired,
314
+ onPaste: PropTypes.func.isRequired,
315
+ ownerState: PropTypes.any,
316
+ readOnly: PropTypes.bool,
317
+ renderSuffix: PropTypes.func,
318
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
319
+ current: PropTypes.shape({
320
+ getRoot: PropTypes.func.isRequired,
321
+ getSectionContainer: PropTypes.func.isRequired,
322
+ getSectionContent: PropTypes.func.isRequired,
323
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
324
+ })
325
+ })]),
326
+ /**
327
+ * The components used for each slot inside.
328
+ *
329
+ * @default {}
330
+ */
331
+ slots: PropTypes.object,
332
+ startAdornment: PropTypes.node,
333
+ style: PropTypes.object,
334
+ /**
335
+ * The system prop that allows defining system overrides as well as additional CSS styles.
336
+ */
337
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
338
+ value: PropTypes.string.isRequired
339
+ } : void 0;
340
+ 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 var pickersInputBaseClasses = generateUtilityClasses('MuiPickersInputBase', ['root', 'focused', 'disabled', 'error', 'notchedOutline', 'sectionContent', 'sectionBefore', 'sectionAfter', 'adornedStart', 'adornedEnd', 'input']);
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- var _excluded = ["children", "className", "label"];
3
+ var _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";
@@ -85,10 +85,16 @@ var OutlineLegend = styled('legend')(function (_ref3) {
85
85
  })
86
86
  }));
87
87
  });
88
+
89
+ /**
90
+ * @ignore - internal component.
91
+ */
88
92
  export default function Outline(props) {
89
93
  var children = props.children,
90
94
  className = props.className,
91
95
  label = props.label,
96
+ notched = props.notched,
97
+ shrink = props.shrink,
92
98
  other = _objectWithoutProperties(props, _excluded);
93
99
  var withLabel = label != null && label !== '';
94
100
  var ownerState = _extends({}, props, {
@@ -0,0 +1,183 @@
1
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
+ var _excluded = ["label", "autoFocus", "ownerState", "notched"];
5
+ import * as React from 'react';
6
+ import PropTypes from 'prop-types';
7
+ import { useFormControl } from '@mui/material/FormControl';
8
+ import { styled, useThemeProps } from '@mui/material/styles';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from './pickersOutlinedInputClasses';
11
+ import Outline from './Outline';
12
+ import { PickersInputBase } from '../PickersInputBase';
13
+ import { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from '../PickersInputBase/PickersInputBase';
14
+ import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ var PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
17
+ name: 'MuiPickersOutlinedInput',
18
+ slot: 'Root',
19
+ overridesResolver: function overridesResolver(props, styles) {
20
+ return styles.root;
21
+ }
22
+ })(function (_ref) {
23
+ var theme = _ref.theme,
24
+ ownerState = _ref.ownerState;
25
+ var borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
26
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
27
+ padding: '0 14px',
28
+ borderRadius: (theme.vars || theme).shape.borderRadius
29
+ }, "&:hover .".concat(pickersOutlinedInputClasses.notchedOutline), {
30
+ borderColor: (theme.vars || theme).palette.text.primary
31
+ }), '@media (hover: none)', _defineProperty({}, "&:hover .".concat(pickersOutlinedInputClasses.notchedOutline), {
32
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : borderColor
33
+ })), "&.".concat(pickersOutlinedInputClasses.focused, " .").concat(pickersOutlinedInputClasses.notchedOutline), {
34
+ borderStyle: 'solid',
35
+ // @ts-ignore
36
+ borderColor: (theme.vars || theme).palette[ownerState.color].main,
37
+ borderWidth: 2
38
+ }), "&.".concat(pickersOutlinedInputClasses.disabled), _defineProperty(_defineProperty({}, "& .".concat(pickersOutlinedInputClasses.notchedOutline), {
39
+ borderColor: (theme.vars || theme).palette.action.disabled
40
+ }), '*', {
41
+ color: (theme.vars || theme).palette.action.disabled
42
+ })), "&.".concat(pickersOutlinedInputClasses.error, " .").concat(pickersOutlinedInputClasses.notchedOutline), {
43
+ borderColor: (theme.vars || theme).palette.error.main
44
+ });
45
+ });
46
+ var PickersOutlinedInputSectionsContainer = styled(PickersInputBaseSectionsContainer, {
47
+ name: 'MuiPickersOutlinedInput',
48
+ slot: 'SectionsContainer',
49
+ overridesResolver: function overridesResolver(props, styles) {
50
+ return styles.sectionsContainer;
51
+ }
52
+ })(function (_ref3) {
53
+ var ownerState = _ref3.ownerState;
54
+ return _extends({
55
+ padding: '16.5px 0'
56
+ }, ownerState.size === 'small' && {
57
+ padding: '8.5px 0'
58
+ });
59
+ });
60
+ var useUtilityClasses = function useUtilityClasses(ownerState) {
61
+ var classes = ownerState.classes;
62
+ var slots = {
63
+ root: ['root'],
64
+ notchedOutline: ['notchedOutline'],
65
+ input: ['input']
66
+ };
67
+ var composedClasses = composeClasses(slots, getPickersOutlinedInputUtilityClass, classes);
68
+ return _extends({}, classes, composedClasses);
69
+ };
70
+ /**
71
+ * @ignore - internal component.
72
+ */
73
+ var PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutlinedInput(inProps, ref) {
74
+ var props = useThemeProps({
75
+ props: inProps,
76
+ name: 'MuiPickersOutlinedInput'
77
+ });
78
+ var label = props.label,
79
+ autoFocus = props.autoFocus,
80
+ ownerStateProp = props.ownerState,
81
+ notched = props.notched,
82
+ other = _objectWithoutProperties(props, _excluded);
83
+ var muiFormControl = useFormControl();
84
+ var ownerState = _extends({}, props, ownerStateProp, muiFormControl, {
85
+ color: (muiFormControl == null ? void 0 : muiFormControl.color) || 'primary'
86
+ });
87
+ var classes = useUtilityClasses(ownerState);
88
+ return /*#__PURE__*/_jsx(PickersInputBase, _extends({
89
+ slots: {
90
+ root: PickersOutlinedInputRoot,
91
+ input: PickersOutlinedInputSectionsContainer
92
+ },
93
+ renderSuffix: function renderSuffix(state) {
94
+ return /*#__PURE__*/_jsx(Outline, {
95
+ shrink: Boolean(notched || state.adornedStart || state.focused || state.filled),
96
+ notched: Boolean(notched || state.adornedStart || state.focused || state.filled),
97
+ className: classes.notchedOutline,
98
+ label: label != null && label !== '' && muiFormControl != null && muiFormControl.required ? /*#__PURE__*/_jsxs(React.Fragment, {
99
+ children: [label, "\u2009", '*']
100
+ }) : label,
101
+ ownerState: ownerState
102
+ });
103
+ }
104
+ }, other, {
105
+ label: label,
106
+ classes: classes,
107
+ ref: ref
108
+ }));
109
+ });
110
+ process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
111
+ // ----------------------------- Warning --------------------------------
112
+ // | These PropTypes are generated from the TypeScript type definitions |
113
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
114
+ // ----------------------------------------------------------------------
115
+ /**
116
+ * Is `true` if the current values equals the empty value.
117
+ * For a single item value, it means that `value === null`
118
+ * For a range value, it means that `value === [null, null]`
119
+ */
120
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
121
+ className: PropTypes.string,
122
+ /**
123
+ * The component used for the root node.
124
+ * Either a string to use a HTML element or a component.
125
+ */
126
+ component: PropTypes.elementType,
127
+ /**
128
+ * If true, the whole element is editable.
129
+ * Useful when all the sections are selected.
130
+ */
131
+ contentEditable: PropTypes.bool.isRequired,
132
+ /**
133
+ * The elements to render.
134
+ * Each element contains the prop to edit a section of the value.
135
+ */
136
+ elements: PropTypes.arrayOf(PropTypes.shape({
137
+ after: PropTypes.object.isRequired,
138
+ before: PropTypes.object.isRequired,
139
+ container: PropTypes.object.isRequired,
140
+ content: PropTypes.object.isRequired
141
+ })).isRequired,
142
+ endAdornment: PropTypes.node,
143
+ fullWidth: PropTypes.bool,
144
+ id: PropTypes.string,
145
+ inputProps: PropTypes.object,
146
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
147
+ current: PropTypes.object
148
+ })]),
149
+ label: PropTypes.node,
150
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
151
+ notched: PropTypes.bool,
152
+ onChange: PropTypes.func.isRequired,
153
+ onClick: PropTypes.func.isRequired,
154
+ onInput: PropTypes.func.isRequired,
155
+ onKeyDown: PropTypes.func.isRequired,
156
+ onPaste: PropTypes.func.isRequired,
157
+ ownerState: PropTypes.any,
158
+ readOnly: PropTypes.bool,
159
+ renderSuffix: PropTypes.func,
160
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
161
+ current: PropTypes.shape({
162
+ getRoot: PropTypes.func.isRequired,
163
+ getSectionContainer: PropTypes.func.isRequired,
164
+ getSectionContent: PropTypes.func.isRequired,
165
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
166
+ })
167
+ })]),
168
+ /**
169
+ * The components used for each slot inside.
170
+ *
171
+ * @default {}
172
+ */
173
+ slots: PropTypes.object,
174
+ startAdornment: PropTypes.node,
175
+ style: PropTypes.object,
176
+ /**
177
+ * The system prop that allows defining system overrides as well as additional CSS styles.
178
+ */
179
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
180
+ value: PropTypes.string.isRequired
181
+ } : void 0;
182
+ export { PickersOutlinedInput };
183
+ PickersOutlinedInput.muiName = 'Input';
@@ -0,0 +1,2 @@
1
+ export { PickersOutlinedInput } from './PickersOutlinedInput';
2
+ export { getPickersOutlinedInputUtilityClass, pickersOutlinedInputClasses } from './pickersOutlinedInputClasses';
@@ -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 getPickersOutlinedInputUtilityClass(slot) {
6
+ return generateUtilityClass('MuiPickersOutlinedInput', slot);
7
+ }
8
+ export var pickersOutlinedInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersOutlinedInput', ['root', 'notchedOutline', 'input']));
@@ -2,21 +2,23 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  var _excluded = ["onFocus", "onBlur", "className", "color", "disabled", "error", "variant", "required", "InputProps", "inputProps", "inputRef", "sectionListRef", "elements", "areAllSectionsEmpty", "onClick", "onKeyDown", "onKeyUp", "onPaste", "onInput", "endAdornment", "startAdornment", "tabIndex", "contentEditable", "focused", "value", "onChange", "fullWidth", "id", "helperText", "FormHelperTextProps", "label", "InputLabelProps"];
4
4
  import * as React from 'react';
5
+ import PropTypes from 'prop-types';
5
6
  import clsx from 'clsx';
6
- import { styled } from '@mui/material/styles';
7
+ import { styled, useThemeProps } from '@mui/material/styles';
7
8
  import useForkRef from '@mui/utils/useForkRef';
8
- import { unstable_composeClasses as composeClasses, unstable_useId as useId } from '@mui/utils';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import useId from '@mui/utils/useId';
9
11
  import InputLabel from '@mui/material/InputLabel';
10
12
  import FormHelperText from '@mui/material/FormHelperText';
11
13
  import FormControl from '@mui/material/FormControl';
12
14
  import { getPickersTextFieldUtilityClass } from './pickersTextFieldClasses';
13
- import { PickersOutlinedInput } from '../PickersInput/PickersOutlinedInput';
14
- import { PickersFilledInput } from '../PickersInput/PickersFilledInput';
15
- import { PickersStandardInput } from '../PickersInput/PickersStandardInput';
15
+ import { PickersOutlinedInput } from './PickersOutlinedInput';
16
+ import { PickersFilledInput } from './PickersFilledInput';
17
+ import { PickersInput } from './PickersInput';
16
18
  import { jsx as _jsx } from "react/jsx-runtime";
17
19
  import { jsxs as _jsxs } from "react/jsx-runtime";
18
20
  var VARIANT_COMPONENT = {
19
- standard: PickersStandardInput,
21
+ standard: PickersInput,
20
22
  filled: PickersFilledInput,
21
23
  outlined: PickersOutlinedInput
22
24
  };
@@ -37,7 +39,11 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
37
39
  };
38
40
  return composeClasses(slots, getPickersTextFieldUtilityClass, classes);
39
41
  };
40
- export var PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField(props, ref) {
42
+ var PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField(inProps, ref) {
43
+ var props = useThemeProps({
44
+ props: inProps,
45
+ name: 'MuiPickersTextField'
46
+ });
41
47
  var onFocus = props.onFocus,
42
48
  onBlur = props.onBlur,
43
49
  className = props.className,
@@ -135,4 +141,118 @@ export var PickersTextField = /*#__PURE__*/React.forwardRef(function PickersText
135
141
  children: helperText
136
142
  }))]
137
143
  }));
138
- });
144
+ });
145
+ process.env.NODE_ENV !== "production" ? PickersTextField.propTypes = {
146
+ // ----------------------------- Warning --------------------------------
147
+ // | These PropTypes are generated from the TypeScript type definitions |
148
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
149
+ // ----------------------------------------------------------------------
150
+ /**
151
+ * Is `true` if the current values equals the empty value.
152
+ * For a single item value, it means that `value === null`
153
+ * For a range value, it means that `value === [null, null]`
154
+ */
155
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
156
+ className: PropTypes.string,
157
+ /**
158
+ * The color of the component.
159
+ * It supports both default and custom theme colors, which can be added as shown in the
160
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
161
+ * @default 'primary'
162
+ */
163
+ color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
164
+ component: PropTypes.elementType,
165
+ /**
166
+ * If true, the whole element is editable.
167
+ * Useful when all the sections are selected.
168
+ */
169
+ contentEditable: PropTypes.bool.isRequired,
170
+ disabled: PropTypes.bool.isRequired,
171
+ /**
172
+ * The elements to render.
173
+ * Each element contains the prop to edit a section of the value.
174
+ */
175
+ elements: PropTypes.arrayOf(PropTypes.shape({
176
+ after: PropTypes.object.isRequired,
177
+ before: PropTypes.object.isRequired,
178
+ container: PropTypes.object.isRequired,
179
+ content: PropTypes.object.isRequired
180
+ })).isRequired,
181
+ endAdornment: PropTypes.node,
182
+ error: PropTypes.bool.isRequired,
183
+ /**
184
+ * If `true`, the component is displayed in focused state.
185
+ */
186
+ focused: PropTypes.bool,
187
+ FormHelperTextProps: PropTypes.object,
188
+ fullWidth: PropTypes.bool,
189
+ /**
190
+ * The helper text content.
191
+ */
192
+ helperText: PropTypes.node,
193
+ /**
194
+ * If `true`, the label is hidden.
195
+ * This is used to increase density for a `FilledInput`.
196
+ * Be sure to add `aria-label` to the `input` element.
197
+ * @default false
198
+ */
199
+ hiddenLabel: PropTypes.bool,
200
+ id: PropTypes.string,
201
+ InputLabelProps: PropTypes.object,
202
+ inputProps: PropTypes.object,
203
+ /**
204
+ * Props applied to the Input element.
205
+ * It will be a [`FilledInput`](/material-ui/api/filled-input/),
206
+ * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
207
+ * component depending on the `variant` prop value.
208
+ */
209
+ InputProps: PropTypes.object,
210
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
211
+ current: PropTypes.object
212
+ })]),
213
+ label: PropTypes.node,
214
+ /**
215
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
216
+ * @default 'none'
217
+ */
218
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
219
+ onBlur: PropTypes.func.isRequired,
220
+ onChange: PropTypes.func.isRequired,
221
+ onClick: PropTypes.func.isRequired,
222
+ onFocus: PropTypes.func.isRequired,
223
+ onInput: PropTypes.func.isRequired,
224
+ onKeyDown: PropTypes.func.isRequired,
225
+ onPaste: PropTypes.func.isRequired,
226
+ readOnly: PropTypes.bool,
227
+ /**
228
+ * If `true`, the label will indicate that the `input` is required.
229
+ * @default false
230
+ */
231
+ required: PropTypes.bool,
232
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
233
+ current: PropTypes.shape({
234
+ getRoot: PropTypes.func.isRequired,
235
+ getSectionContainer: PropTypes.func.isRequired,
236
+ getSectionContent: PropTypes.func.isRequired,
237
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
238
+ })
239
+ })]),
240
+ /**
241
+ * The size of the component.
242
+ * @default 'medium'
243
+ */
244
+ size: PropTypes.oneOf(['medium', 'small']),
245
+ startAdornment: PropTypes.node,
246
+ style: PropTypes.object,
247
+ /**
248
+ * The system prop that allows defining system overrides as well as additional CSS styles.
249
+ */
250
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
251
+ value: PropTypes.string.isRequired,
252
+ /**
253
+ * The variant to use.
254
+ * @default 'outlined'
255
+ */
256
+ variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
257
+ } : void 0;
258
+ export { PickersTextField };
@@ -0,0 +1,6 @@
1
+ export { PickersTextField } from './PickersTextField';
2
+ export { pickersTextFieldClasses, getPickersTextFieldUtilityClass } from './pickersTextFieldClasses';
3
+ export * from './PickersInput';
4
+ export * from './PickersFilledInput';
5
+ export * from './PickersOutlinedInput';
6
+ export * from './PickersInputBase';
@@ -59,9 +59,6 @@ StaticDatePicker.propTypes = {
59
59
  * - the `input` element if there is a field rendered.
60
60
  */
61
61
  autoFocus: PropTypes.bool,
62
- /**
63
- * Class name applied to the root element.
64
- */
65
62
  className: PropTypes.string,
66
63
  /**
67
64
  * Formats the day of week displayed in the calendar header.
@@ -79,9 +79,6 @@ StaticDateTimePicker.propTypes = {
79
79
  * - the `input` element if there is a field rendered.
80
80
  */
81
81
  autoFocus: PropTypes.bool,
82
- /**
83
- * Class name applied to the root element.
84
- */
85
82
  className: PropTypes.string,
86
83
  /**
87
84
  * Formats the day of week displayed in the calendar header.
@@ -71,9 +71,6 @@ StaticTimePicker.propTypes = {
71
71
  * - the `input` element if there is a field rendered.
72
72
  */
73
73
  autoFocus: PropTypes.bool,
74
- /**
75
- * Class name applied to the root element.
76
- */
77
74
  className: PropTypes.string,
78
75
  /**
79
76
  * The default value.