@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
@@ -1,11 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
- import _inherits from "@babel/runtime/helpers/esm/inherits";
5
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
5
  import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
6
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  /* eslint-disable class-methods-use-this */
10
10
  import defaultJMoment from 'moment-jalaali';
11
11
  import { AdapterMoment } from '../AdapterMoment';
@@ -135,17 +135,16 @@ var NUMBER_SYMBOL_MAP = {
135
135
  */
136
136
  export var AdapterMomentJalaali = /*#__PURE__*/function (_AdapterMoment) {
137
137
  _inherits(AdapterMomentJalaali, _AdapterMoment);
138
- var _super = _createSuper(AdapterMomentJalaali);
139
138
  function AdapterMomentJalaali() {
140
139
  var _this;
141
140
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
142
141
  formats = _ref.formats,
143
142
  instance = _ref.instance;
144
143
  _classCallCheck(this, AdapterMomentJalaali);
145
- _this = _super.call(this, {
144
+ _this = _callSuper(this, AdapterMomentJalaali, [{
146
145
  locale: 'fa',
147
146
  instance: instance
148
- });
147
+ }]);
149
148
  _this.isTimezoneCompatible = false;
150
149
  _this.lib = 'moment-jalaali';
151
150
  _this.moment = void 0;
@@ -54,9 +54,6 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
54
54
  * - the `input` element if there is a field rendered.
55
55
  */
56
56
  autoFocus: PropTypes.bool,
57
- /**
58
- * Class name applied to the root element.
59
- */
60
57
  className: PropTypes.string,
61
58
  /**
62
59
  * If `true`, the popover or modal will close after submitting the full date.
@@ -26,10 +26,6 @@ var DatePickerToolbarRoot = styled(PickersToolbar, {
26
26
  return styles.root;
27
27
  }
28
28
  })({});
29
-
30
- /**
31
- * @ignore - do not document.
32
- */
33
29
  var DatePickerToolbarTitle = styled(Typography, {
34
30
  name: 'MuiDatePickerToolbar',
35
31
  slot: 'Title',
@@ -52,7 +48,7 @@ var DatePickerToolbarTitle = styled(Typography, {
52
48
  *
53
49
  * - [DatePickerToolbar API](https://mui.com/x/api/date-pickers/date-picker-toolbar/)
54
50
  */
55
- var DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePickerToolbar(inProps, ref) {
51
+ export var DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePickerToolbar(inProps, ref) {
56
52
  var props = useThemeProps({
57
53
  props: inProps,
58
54
  name: 'MuiDatePickerToolbar'
@@ -100,9 +96,6 @@ process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
100
96
  // | To update them edit the TypeScript types and run "yarn proptypes" |
101
97
  // ----------------------------------------------------------------------
102
98
  classes: PropTypes.object,
103
- /**
104
- * className applied to the root component.
105
- */
106
99
  className: PropTypes.string,
107
100
  disabled: PropTypes.bool,
108
101
  /**
@@ -136,5 +129,4 @@ process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
136
129
  */
137
130
  view: PropTypes.oneOf(['day', 'month', 'year']).isRequired,
138
131
  views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired).isRequired
139
- } : void 0;
140
- export { DatePickerToolbar };
132
+ } : void 0;
@@ -64,9 +64,6 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
64
64
  * - the `input` element if there is a field rendered.
65
65
  */
66
66
  autoFocus: PropTypes.bool,
67
- /**
68
- * Class name applied to the root element.
69
- */
70
67
  className: PropTypes.string,
71
68
  /**
72
69
  * If `true`, the popover or modal will close after submitting the full date.
@@ -333,9 +333,6 @@ process.env.NODE_ENV !== "production" ? DateTimePickerToolbar.propTypes = {
333
333
  * Override or extend the styles applied to the component.
334
334
  */
335
335
  classes: PropTypes.object,
336
- /**
337
- * className applied to the root component.
338
- */
339
336
  className: PropTypes.string,
340
337
  disabled: PropTypes.bool,
341
338
  /**
@@ -79,9 +79,6 @@ DesktopDatePicker.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
  * If `true`, the popover or modal will close after submitting the full date.
@@ -126,9 +126,6 @@ DesktopDateTimePicker.propTypes = {
126
126
  * - the `input` element if there is a field rendered.
127
127
  */
128
128
  autoFocus: PropTypes.bool,
129
- /**
130
- * Class name applied to the root element.
131
- */
132
129
  className: PropTypes.string,
133
130
  /**
134
131
  * If `true`, the popover or modal will close after submitting the full date.
@@ -111,9 +111,6 @@ DesktopTimePicker.propTypes = {
111
111
  * - the `input` element if there is a field rendered.
112
112
  */
113
113
  autoFocus: PropTypes.bool,
114
- /**
115
- * Class name applied to the root element.
116
- */
117
114
  className: PropTypes.string,
118
115
  /**
119
116
  * If `true`, the popover or modal will close after submitting the full date.
@@ -437,6 +437,7 @@ process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
437
437
  view: PropTypes.oneOf(['hours']),
438
438
  /**
439
439
  * Available views.
440
+ * @default ['hours']
440
441
  */
441
442
  views: PropTypes.arrayOf(PropTypes.oneOf(['hours']))
442
443
  } : void 0;
@@ -59,7 +59,7 @@ export var LocalizationProvider = function LocalizationProvider(inProps) {
59
59
  instance: dateLibInstance
60
60
  });
61
61
  if (!adapter.isMUIAdapter) {
62
- throw new Error(['MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation'].join("\n"));
62
+ throw new Error(['MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation'].join("\n"));
63
63
  }
64
64
  return adapter;
65
65
  }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentUtils]);
@@ -76,9 +76,6 @@ MobileDatePicker.propTypes = {
76
76
  * - the `input` element if there is a field rendered.
77
77
  */
78
78
  autoFocus: PropTypes.bool,
79
- /**
80
- * Class name applied to the root element.
81
- */
82
79
  className: PropTypes.string,
83
80
  /**
84
81
  * If `true`, the popover or modal will close after submitting the full date.
@@ -96,9 +96,6 @@ MobileDateTimePicker.propTypes = {
96
96
  * - the `input` element if there is a field rendered.
97
97
  */
98
98
  autoFocus: PropTypes.bool,
99
- /**
100
- * Class name applied to the root element.
101
- */
102
99
  className: PropTypes.string,
103
100
  /**
104
101
  * If `true`, the popover or modal will close after submitting the full date.
@@ -89,9 +89,6 @@ MobileTimePicker.propTypes = {
89
89
  * - the `input` element if there is a field rendered.
90
90
  */
91
91
  autoFocus: PropTypes.bool,
92
- /**
93
- * Class name applied to the root element.
94
- */
95
92
  className: PropTypes.string,
96
93
  /**
97
94
  * If `true`, the popover or modal will close after submitting the full date.
@@ -254,9 +254,6 @@ process.env.NODE_ENV !== "production" ? MonthCalendar.propTypes = {
254
254
  * Override or extend the styles applied to the component.
255
255
  */
256
256
  classes: PropTypes.object,
257
- /**
258
- * className applied to the root element.
259
- */
260
257
  className: PropTypes.string,
261
258
  /**
262
259
  * The default selected value.
@@ -515,6 +515,7 @@ process.env.NODE_ENV !== "production" ? MultiSectionDigitalClock.propTypes = {
515
515
  view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),
516
516
  /**
517
517
  * Available views.
518
+ * @default ['hours', 'minutes']
518
519
  */
519
520
  views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']).isRequired)
520
521
  } : void 0;
@@ -247,9 +247,6 @@ process.env.NODE_ENV !== "production" ? PickersCalendarHeader.propTypes = {
247
247
  * Override or extend the styles applied to the component.
248
248
  */
249
249
  classes: PropTypes.object,
250
- /**
251
- * className applied to the root element.
252
- */
253
250
  className: PropTypes.string,
254
251
  currentMonth: PropTypes.any.isRequired,
255
252
  disabled: PropTypes.bool,
@@ -7,6 +7,7 @@ import PropTypes from 'prop-types';
7
7
  import { useSlotProps } from '@mui/base/utils';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
9
  import useForkRef from '@mui/utils/useForkRef';
10
+ import { useThemeProps } from '@mui/material/styles';
10
11
  import { getPickersSectionListUtilityClass, pickersSectionListClasses } from './pickersSectionListClasses';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -109,8 +110,12 @@ function PickersSection(props) {
109
110
  children: [/*#__PURE__*/_jsx(SectionSeparator, _extends({}, sectionSeparatorBeforeProps)), /*#__PURE__*/_jsx(SectionContent, _extends({}, sectionContentProps)), /*#__PURE__*/_jsx(SectionSeparator, _extends({}, sectionSeparatorAfterProps))]
110
111
  }));
111
112
  }
112
- var PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSectionList(props, ref) {
113
+ var PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSectionList(inProps, ref) {
113
114
  var _slots$root;
115
+ var props = useThemeProps({
116
+ props: inProps,
117
+ name: 'MuiPickersSectionList'
118
+ });
114
119
  var slots = props.slots,
115
120
  slotProps = props.slotProps,
116
121
  elements = props.elements,
@@ -121,7 +126,7 @@ var PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSectionLi
121
126
  var handleRootRef = useForkRef(ref, rootRef);
122
127
  var _getRoot = function getRoot(methodName) {
123
128
  if (!rootRef.current) {
124
- throw new Error("MUI: Cannot call sectionListRef.".concat(methodName, " before the mount of the component"));
129
+ throw new Error("MUI X: Cannot call sectionListRef.".concat(methodName, " before the mount of the component."));
125
130
  }
126
131
  return rootRef.current;
127
132
  };
@@ -3,13 +3,15 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  var _excluded = ["label", "autoFocus", "ownerState"];
5
5
  import * as React from 'react';
6
+ import PropTypes from 'prop-types';
6
7
  import { useFormControl } from '@mui/material/FormControl';
7
- import { styled } from '@mui/material/styles';
8
- import { unstable_composeClasses as composeClasses, unstable_capitalize as capitalize } from '@mui/utils';
9
- import { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from './pickersInputClasses';
10
- import { PickersInputRoot, PickersInput, PickersInputSectionsContainer } from './PickersInput';
8
+ import { styled, useThemeProps } from '@mui/material/styles';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from './pickersFilledInputClasses';
11
+ import { PickersInputBase } from '../PickersInputBase';
12
+ import { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from '../PickersInputBase/PickersInputBase';
11
13
  import { jsx as _jsx } from "react/jsx-runtime";
12
- var FilledInputRoot = styled(PickersInputRoot, {
14
+ var PickersFilledInputRoot = styled(PickersInputBaseRoot, {
13
15
  name: 'MuiPickersFilledInput',
14
16
  slot: 'Root',
15
17
  overridesResolver: function overridesResolver(props, styles) {
@@ -89,7 +91,7 @@ var FilledInputRoot = styled(PickersInputRoot, {
89
91
  paddingRight: 12
90
92
  });
91
93
  });
92
- var FilledSectionsContainer = styled(PickersInputSectionsContainer, {
94
+ var PickersFilledSectionsContainer = styled(PickersInputBaseSectionsContainer, {
93
95
  name: 'MuiPickersFilledInput',
94
96
  slot: 'sectionsContainer',
95
97
  overridesResolver: function overridesResolver(props, styles) {
@@ -118,26 +120,23 @@ var FilledSectionsContainer = styled(PickersInputSectionsContainer, {
118
120
  });
119
121
  });
120
122
  var useUtilityClasses = function useUtilityClasses(ownerState) {
121
- var focused = ownerState.focused,
122
- disabled = ownerState.disabled,
123
- error = ownerState.error,
124
- classes = ownerState.classes,
125
- fullWidth = ownerState.fullWidth,
126
- color = ownerState.color,
127
- size = ownerState.size,
128
- endAdornment = ownerState.endAdornment,
129
- startAdornment = ownerState.startAdornment;
123
+ var classes = ownerState.classes,
124
+ disableUnderline = ownerState.disableUnderline;
130
125
  var slots = {
131
- root: ['root', focused && !disabled && 'focused', disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', "color".concat(capitalize(color)), size === 'small' && 'inputSizeSmall', Boolean(startAdornment) && 'adornedStart', Boolean(endAdornment) && 'adornedEnd'],
132
- notchedOutline: ['notchedOutline'],
133
- before: ['before'],
134
- after: ['after'],
135
- content: ['content'],
126
+ root: ['root', !disableUnderline && 'underline'],
136
127
  input: ['input']
137
128
  };
138
- return composeClasses(slots, getPickersFilledInputUtilityClass, classes);
129
+ var composedClasses = composeClasses(slots, getPickersFilledInputUtilityClass, classes);
130
+ return _extends({}, classes, composedClasses);
139
131
  };
140
- export var PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledInput(props, ref) {
132
+ /**
133
+ * @ignore - internal component.
134
+ */
135
+ var PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledInput(inProps, ref) {
136
+ var props = useThemeProps({
137
+ props: inProps,
138
+ name: 'MuiPickersFilledInput'
139
+ });
141
140
  var label = props.label,
142
141
  autoFocus = props.autoFocus,
143
142
  ownerStateProp = props.ownerState,
@@ -147,10 +146,10 @@ export var PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFi
147
146
  color: (muiFormControl == null ? void 0 : muiFormControl.color) || 'primary'
148
147
  });
149
148
  var classes = useUtilityClasses(ownerState);
150
- return /*#__PURE__*/_jsx(PickersInput, _extends({
149
+ return /*#__PURE__*/_jsx(PickersInputBase, _extends({
151
150
  slots: {
152
- root: FilledInputRoot,
153
- input: FilledSectionsContainer
151
+ root: PickersFilledInputRoot,
152
+ input: PickersFilledSectionsContainer
154
153
  }
155
154
  }, other, {
156
155
  label: label,
@@ -158,4 +157,78 @@ export var PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFi
158
157
  ref: ref
159
158
  }));
160
159
  });
161
- PickersInput.muiName = 'Input';
160
+ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
161
+ // ----------------------------- Warning --------------------------------
162
+ // | These PropTypes are generated from the TypeScript type definitions |
163
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
164
+ // ----------------------------------------------------------------------
165
+ /**
166
+ * Is `true` if the current values equals the empty value.
167
+ * For a single item value, it means that `value === null`
168
+ * For a range value, it means that `value === [null, null]`
169
+ */
170
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
171
+ className: PropTypes.string,
172
+ /**
173
+ * The component used for the root node.
174
+ * Either a string to use a HTML element or a component.
175
+ */
176
+ component: PropTypes.elementType,
177
+ /**
178
+ * If true, the whole element is editable.
179
+ * Useful when all the sections are selected.
180
+ */
181
+ contentEditable: PropTypes.bool.isRequired,
182
+ disableUnderline: PropTypes.bool,
183
+ /**
184
+ * The elements to render.
185
+ * Each element contains the prop to edit a section of the value.
186
+ */
187
+ elements: PropTypes.arrayOf(PropTypes.shape({
188
+ after: PropTypes.object.isRequired,
189
+ before: PropTypes.object.isRequired,
190
+ container: PropTypes.object.isRequired,
191
+ content: PropTypes.object.isRequired
192
+ })).isRequired,
193
+ endAdornment: PropTypes.node,
194
+ fullWidth: PropTypes.bool,
195
+ hiddenLabel: PropTypes.bool,
196
+ id: PropTypes.string,
197
+ inputProps: PropTypes.object,
198
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
199
+ current: PropTypes.object
200
+ })]),
201
+ label: PropTypes.node,
202
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
203
+ onChange: PropTypes.func.isRequired,
204
+ onClick: PropTypes.func.isRequired,
205
+ onInput: PropTypes.func.isRequired,
206
+ onKeyDown: PropTypes.func.isRequired,
207
+ onPaste: PropTypes.func.isRequired,
208
+ ownerState: PropTypes.any,
209
+ readOnly: PropTypes.bool,
210
+ renderSuffix: PropTypes.func,
211
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
212
+ current: PropTypes.shape({
213
+ getRoot: PropTypes.func.isRequired,
214
+ getSectionContainer: PropTypes.func.isRequired,
215
+ getSectionContent: PropTypes.func.isRequired,
216
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
217
+ })
218
+ })]),
219
+ /**
220
+ * The components used for each slot inside.
221
+ *
222
+ * @default {}
223
+ */
224
+ slots: PropTypes.object,
225
+ startAdornment: PropTypes.node,
226
+ style: PropTypes.object,
227
+ /**
228
+ * The system prop that allows defining system overrides as well as additional CSS styles.
229
+ */
230
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
231
+ value: PropTypes.string.isRequired
232
+ } : void 0;
233
+ export { PickersFilledInput };
234
+ 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 var pickersFilledInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersFilledInput', ['root', 'underline', 'input']));
@@ -0,0 +1,190 @@
1
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ var _excluded = ["label", "autoFocus", "ownerState"];
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 { pickersInputClasses, getPickersInputUtilityClass } from './pickersInputClasses';
11
+ import { PickersInputBase } from '../PickersInputBase';
12
+ import { PickersInputBaseRoot } from '../PickersInputBase/PickersInputBase';
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ var PickersInputRoot = styled(PickersInputBaseRoot, {
15
+ name: 'MuiPickersInput',
16
+ slot: 'Root',
17
+ overridesResolver: function overridesResolver(props, styles) {
18
+ return styles.root;
19
+ }
20
+ })(function (_ref) {
21
+ var theme = _ref.theme,
22
+ ownerState = _ref.ownerState;
23
+ var light = theme.palette.mode === 'light';
24
+ var bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
25
+ if (theme.vars) {
26
+ bottomLineColor = "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")");
27
+ }
28
+ return _extends({
29
+ 'label + &': {
30
+ marginTop: 16
31
+ }
32
+ }, !ownerState.disableUnderline && _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
33
+ '&::after': {
34
+ background: 'red',
35
+ // @ts-ignore
36
+ borderBottom: "2px solid ".concat((theme.vars || theme).palette[ownerState.color].main),
37
+ left: 0,
38
+ bottom: 0,
39
+ // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
40
+ content: '""',
41
+ position: 'absolute',
42
+ right: 0,
43
+ transform: 'scaleX(0)',
44
+ transition: theme.transitions.create('transform', {
45
+ duration: theme.transitions.duration.shorter,
46
+ easing: theme.transitions.easing.easeOut
47
+ }),
48
+ pointerEvents: 'none' // Transparent to the hover style.
49
+ }
50
+ }, "&.".concat(pickersInputClasses.focused, ":after"), {
51
+ // translateX(0) is a workaround for Safari transform scale bug
52
+ // See https://github.com/mui/material-ui/issues/31766
53
+ transform: 'scaleX(1) translateX(0)'
54
+ }), "&.".concat(pickersInputClasses.error), {
55
+ '&:before, &:after': {
56
+ borderBottomColor: (theme.vars || theme).palette.error.main
57
+ }
58
+ }), '&::before', {
59
+ borderBottom: "1px solid ".concat(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
+ }), "&:hover:not(.".concat(pickersInputClasses.disabled, ", .").concat(pickersInputClasses.error, "):before"), {
71
+ borderBottom: "2px solid ".concat((theme.vars || theme).palette.text.primary),
72
+ // Reset on touch devices, it doesn't add specificity
73
+ '@media (hover: none)': {
74
+ borderBottom: "1px solid ".concat(bottomLineColor)
75
+ }
76
+ }), "&.".concat(pickersInputClasses.disabled, ":before"), {
77
+ borderBottomStyle: 'dotted'
78
+ }));
79
+ });
80
+ var useUtilityClasses = function useUtilityClasses(ownerState) {
81
+ var classes = ownerState.classes,
82
+ disableUnderline = ownerState.disableUnderline;
83
+ var slots = {
84
+ root: ['root', !disableUnderline && 'underline'],
85
+ input: ['input']
86
+ };
87
+ var composedClasses = composeClasses(slots, getPickersInputUtilityClass, classes);
88
+ return _extends({}, classes, composedClasses);
89
+ };
90
+ /**
91
+ * @ignore - internal component.
92
+ */
93
+ var PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps, ref) {
94
+ var props = useThemeProps({
95
+ props: inProps,
96
+ name: 'MuiPickersInput'
97
+ });
98
+ var label = props.label,
99
+ autoFocus = props.autoFocus,
100
+ ownerStateProp = props.ownerState,
101
+ other = _objectWithoutProperties(props, _excluded);
102
+ var muiFormControl = useFormControl();
103
+ var ownerState = _extends({}, props, ownerStateProp, muiFormControl, {
104
+ color: (muiFormControl == null ? void 0 : muiFormControl.color) || 'primary'
105
+ });
106
+ var classes = useUtilityClasses(ownerState);
107
+ return /*#__PURE__*/_jsx(PickersInputBase, _extends({
108
+ slots: {
109
+ root: PickersInputRoot
110
+ }
111
+ }, other, {
112
+ label: label,
113
+ classes: classes,
114
+ ref: ref
115
+ }));
116
+ });
117
+ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
118
+ // ----------------------------- Warning --------------------------------
119
+ // | These PropTypes are generated from the TypeScript type definitions |
120
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
121
+ // ----------------------------------------------------------------------
122
+ /**
123
+ * Is `true` if the current values equals the empty value.
124
+ * For a single item value, it means that `value === null`
125
+ * For a range value, it means that `value === [null, null]`
126
+ */
127
+ areAllSectionsEmpty: PropTypes.bool.isRequired,
128
+ className: PropTypes.string,
129
+ /**
130
+ * The component used for the root node.
131
+ * Either a string to use a HTML element or a component.
132
+ */
133
+ component: PropTypes.elementType,
134
+ /**
135
+ * If true, the whole element is editable.
136
+ * Useful when all the sections are selected.
137
+ */
138
+ contentEditable: PropTypes.bool.isRequired,
139
+ disableUnderline: PropTypes.bool,
140
+ /**
141
+ * The elements to render.
142
+ * Each element contains the prop to edit a section of the value.
143
+ */
144
+ elements: PropTypes.arrayOf(PropTypes.shape({
145
+ after: PropTypes.object.isRequired,
146
+ before: PropTypes.object.isRequired,
147
+ container: PropTypes.object.isRequired,
148
+ content: PropTypes.object.isRequired
149
+ })).isRequired,
150
+ endAdornment: PropTypes.node,
151
+ fullWidth: PropTypes.bool,
152
+ id: PropTypes.string,
153
+ inputProps: PropTypes.object,
154
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
155
+ current: PropTypes.object
156
+ })]),
157
+ label: PropTypes.node,
158
+ margin: PropTypes.oneOf(['dense', 'none', 'normal']),
159
+ onChange: PropTypes.func.isRequired,
160
+ onClick: PropTypes.func.isRequired,
161
+ onInput: PropTypes.func.isRequired,
162
+ onKeyDown: PropTypes.func.isRequired,
163
+ onPaste: PropTypes.func.isRequired,
164
+ ownerState: PropTypes.any,
165
+ readOnly: PropTypes.bool,
166
+ renderSuffix: PropTypes.func,
167
+ sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
168
+ current: PropTypes.shape({
169
+ getRoot: PropTypes.func.isRequired,
170
+ getSectionContainer: PropTypes.func.isRequired,
171
+ getSectionContent: PropTypes.func.isRequired,
172
+ getSectionIndexFromDOMElement: PropTypes.func.isRequired
173
+ })
174
+ })]),
175
+ /**
176
+ * The components used for each slot inside.
177
+ *
178
+ * @default {}
179
+ */
180
+ slots: PropTypes.object,
181
+ startAdornment: PropTypes.node,
182
+ style: PropTypes.object,
183
+ /**
184
+ * The system prop that allows defining system overrides as well as additional CSS styles.
185
+ */
186
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
187
+ value: PropTypes.string.isRequired
188
+ } : void 0;
189
+ export { PickersInput };
190
+ 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 var pickersInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersInput', ['root', 'input']));