@mui/x-date-pickers 7.0.0-alpha.8 → 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 (240) hide show
  1. package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
  2. package/AdapterLuxon/AdapterLuxon.js +4 -12
  3. package/CHANGELOG.md +379 -2
  4. package/DatePicker/DatePicker.js +0 -3
  5. package/DatePicker/DatePickerToolbar.js +0 -3
  6. package/DateTimePicker/DateTimePicker.js +0 -3
  7. package/DateTimePicker/DateTimePickerToolbar.js +0 -3
  8. package/DesktopDatePicker/DesktopDatePicker.js +0 -3
  9. package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  10. package/DesktopTimePicker/DesktopTimePicker.js +0 -3
  11. package/MobileDatePicker/MobileDatePicker.js +0 -3
  12. package/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  13. package/MobileTimePicker/MobileTimePicker.js +0 -3
  14. package/MonthCalendar/MonthCalendar.js +0 -3
  15. package/MonthCalendar/MonthCalendar.types.d.ts +0 -3
  16. package/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  17. package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +0 -3
  18. package/PickersSectionList/PickersSectionList.js +6 -1
  19. package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +11 -0
  20. package/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
  21. package/PickersTextField/PickersFilledInput/index.d.ts +4 -0
  22. package/PickersTextField/PickersFilledInput/index.js +2 -0
  23. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +23 -0
  24. package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
  25. package/PickersTextField/PickersInput/PickersInput.d.ts +10 -0
  26. package/PickersTextField/PickersInput/PickersInput.js +196 -0
  27. package/{internals/components → PickersTextField}/PickersInput/index.d.ts +2 -2
  28. package/PickersTextField/PickersInput/index.js +2 -0
  29. package/PickersTextField/PickersInput/pickersInputClasses.d.ts +22 -0
  30. package/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
  31. package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +16 -0
  32. package/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -27
  33. package/{internals/components/PickersInput/PickersInput.types.d.ts → PickersTextField/PickersInputBase/PickersInputBase.types.d.ts} +3 -13
  34. package/PickersTextField/PickersInputBase/index.d.ts +4 -0
  35. package/PickersTextField/PickersInputBase/index.js +2 -0
  36. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.d.ts +31 -0
  37. package/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
  38. package/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.d.ts +3 -0
  39. package/{modern/internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
  40. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.d.ts +10 -0
  41. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
  42. package/PickersTextField/PickersOutlinedInput/index.d.ts +4 -0
  43. package/PickersTextField/PickersOutlinedInput/index.js +2 -0
  44. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +22 -0
  45. package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
  46. package/PickersTextField/PickersTextField.d.ts +3 -0
  47. package/PickersTextField/PickersTextField.js +258 -0
  48. package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.d.ts +5 -2
  49. package/PickersTextField/index.d.ts +8 -0
  50. package/PickersTextField/index.js +6 -0
  51. package/PickersTextField/package.json +6 -0
  52. package/README.md +1 -1
  53. package/StaticDatePicker/StaticDatePicker.js +0 -3
  54. package/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  55. package/StaticTimePicker/StaticTimePicker.js +0 -3
  56. package/TimePicker/TimePicker.js +0 -3
  57. package/TimePicker/TimePickerToolbar.js +0 -3
  58. package/YearCalendar/YearCalendar.js +0 -3
  59. package/YearCalendar/YearCalendar.types.d.ts +0 -3
  60. package/index.d.ts +2 -1
  61. package/index.js +3 -2
  62. package/internals/hooks/useField/useField.js +6 -4
  63. package/internals/hooks/useField/useField.types.d.ts +4 -2
  64. package/internals/hooks/useField/useField.utils.d.ts +19 -9
  65. package/internals/hooks/useField/useField.utils.js +68 -21
  66. package/internals/hooks/useField/useFieldCharacterEditing.d.ts +2 -1
  67. package/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
  68. package/internals/hooks/useField/useFieldState.d.ts +1 -0
  69. package/internals/hooks/useField/useFieldState.js +9 -7
  70. package/internals/models/props/basePickerProps.d.ts +0 -3
  71. package/internals/models/props/toolbar.d.ts +0 -3
  72. package/internals/utils/valueManagers.js +2 -2
  73. package/legacy/AdapterLuxon/AdapterLuxon.js +4 -12
  74. package/legacy/DatePicker/DatePicker.js +0 -3
  75. package/legacy/DatePicker/DatePickerToolbar.js +0 -3
  76. package/legacy/DateTimePicker/DateTimePicker.js +0 -3
  77. package/legacy/DateTimePicker/DateTimePickerToolbar.js +0 -3
  78. package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -3
  79. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  80. package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -3
  81. package/legacy/MobileDatePicker/MobileDatePicker.js +0 -3
  82. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  83. package/legacy/MobileTimePicker/MobileTimePicker.js +0 -3
  84. package/legacy/MonthCalendar/MonthCalendar.js +0 -3
  85. package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  86. package/legacy/PickersSectionList/PickersSectionList.js +6 -1
  87. package/legacy/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +99 -26
  88. package/legacy/PickersTextField/PickersFilledInput/index.js +2 -0
  89. package/legacy/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
  90. package/legacy/PickersTextField/PickersInput/PickersInput.js +190 -0
  91. package/legacy/PickersTextField/PickersInput/index.js +2 -0
  92. package/legacy/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
  93. package/legacy/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -27
  94. package/legacy/PickersTextField/PickersInputBase/index.js +2 -0
  95. package/legacy/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
  96. package/legacy/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +7 -1
  97. package/legacy/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +183 -0
  98. package/legacy/PickersTextField/PickersOutlinedInput/index.js +2 -0
  99. package/legacy/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
  100. package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -8
  101. package/legacy/PickersTextField/index.js +6 -0
  102. package/legacy/StaticDatePicker/StaticDatePicker.js +0 -3
  103. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  104. package/legacy/StaticTimePicker/StaticTimePicker.js +0 -3
  105. package/legacy/TimePicker/TimePicker.js +0 -3
  106. package/legacy/TimePicker/TimePickerToolbar.js +0 -3
  107. package/legacy/YearCalendar/YearCalendar.js +0 -3
  108. package/legacy/index.js +3 -2
  109. package/legacy/internals/hooks/useField/useField.js +6 -4
  110. package/legacy/internals/hooks/useField/useField.utils.js +71 -20
  111. package/legacy/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
  112. package/legacy/internals/hooks/useField/useFieldState.js +15 -11
  113. package/legacy/internals/utils/valueManagers.js +2 -2
  114. package/modern/AdapterLuxon/AdapterLuxon.js +3 -11
  115. package/modern/DatePicker/DatePicker.js +0 -3
  116. package/modern/DatePicker/DatePickerToolbar.js +0 -3
  117. package/modern/DateTimePicker/DateTimePicker.js +0 -3
  118. package/modern/DateTimePicker/DateTimePickerToolbar.js +0 -3
  119. package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -3
  120. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  121. package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -3
  122. package/modern/MobileDatePicker/MobileDatePicker.js +0 -3
  123. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  124. package/modern/MobileTimePicker/MobileTimePicker.js +0 -3
  125. package/modern/MonthCalendar/MonthCalendar.js +0 -3
  126. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  127. package/modern/PickersSectionList/PickersSectionList.js +6 -1
  128. package/modern/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +98 -25
  129. package/modern/PickersTextField/PickersFilledInput/index.js +2 -0
  130. package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +8 -0
  131. package/modern/PickersTextField/PickersInput/PickersInput.js +196 -0
  132. package/modern/PickersTextField/PickersInput/index.js +2 -0
  133. package/modern/PickersTextField/PickersInput/pickersInputClasses.js +8 -0
  134. package/modern/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +106 -27
  135. package/modern/PickersTextField/PickersInputBase/index.js +2 -0
  136. package/modern/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +6 -0
  137. package/{internals/components/PickersInput → modern/PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
  138. package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +190 -0
  139. package/modern/PickersTextField/PickersOutlinedInput/index.js +2 -0
  140. package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +8 -0
  141. package/modern/PickersTextField/PickersTextField.js +258 -0
  142. package/modern/PickersTextField/index.js +6 -0
  143. package/modern/StaticDatePicker/StaticDatePicker.js +0 -3
  144. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  145. package/modern/StaticTimePicker/StaticTimePicker.js +0 -3
  146. package/modern/TimePicker/TimePicker.js +0 -3
  147. package/modern/TimePicker/TimePickerToolbar.js +0 -3
  148. package/modern/YearCalendar/YearCalendar.js +0 -3
  149. package/modern/index.js +3 -2
  150. package/modern/internals/hooks/useField/useField.js +5 -3
  151. package/modern/internals/hooks/useField/useField.utils.js +68 -21
  152. package/modern/internals/hooks/useField/useFieldCharacterEditing.js +12 -8
  153. package/modern/internals/hooks/useField/useFieldState.js +9 -7
  154. package/modern/internals/utils/valueManagers.js +2 -2
  155. package/node/AdapterLuxon/AdapterLuxon.js +3 -11
  156. package/node/DatePicker/DatePicker.js +0 -3
  157. package/node/DatePicker/DatePickerToolbar.js +0 -3
  158. package/node/DateTimePicker/DateTimePicker.js +0 -3
  159. package/node/DateTimePicker/DateTimePickerToolbar.js +0 -3
  160. package/node/DesktopDatePicker/DesktopDatePicker.js +0 -3
  161. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -3
  162. package/node/DesktopTimePicker/DesktopTimePicker.js +0 -3
  163. package/node/MobileDatePicker/MobileDatePicker.js +0 -3
  164. package/node/MobileDateTimePicker/MobileDateTimePicker.js +0 -3
  165. package/node/MobileTimePicker/MobileTimePicker.js +0 -3
  166. package/node/MonthCalendar/MonthCalendar.js +0 -3
  167. package/node/PickersCalendarHeader/PickersCalendarHeader.js +0 -3
  168. package/node/PickersSectionList/PickersSectionList.js +6 -1
  169. package/node/{internals/components/PickersInput → PickersTextField/PickersFilledInput}/PickersFilledInput.js +102 -30
  170. package/node/PickersTextField/PickersFilledInput/index.js +25 -0
  171. package/node/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +16 -0
  172. package/node/PickersTextField/PickersInput/PickersInput.js +204 -0
  173. package/node/{internals/components → PickersTextField}/PickersInput/index.js +0 -7
  174. package/node/PickersTextField/PickersInput/pickersInputClasses.js +16 -0
  175. package/node/{internals/components/PickersInput/PickersInput.js → PickersTextField/PickersInputBase/PickersInputBase.js} +105 -27
  176. package/node/PickersTextField/PickersInputBase/index.js +25 -0
  177. package/node/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +14 -0
  178. package/node/{internals/components/PickersInput → PickersTextField/PickersOutlinedInput}/Outline.js +5 -1
  179. package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +197 -0
  180. package/node/PickersTextField/PickersOutlinedInput/index.js +25 -0
  181. package/node/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +16 -0
  182. package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.js +128 -9
  183. package/node/PickersTextField/index.js +78 -0
  184. package/node/StaticDatePicker/StaticDatePicker.js +0 -3
  185. package/node/StaticDateTimePicker/StaticDateTimePicker.js +0 -3
  186. package/node/StaticTimePicker/StaticTimePicker.js +0 -3
  187. package/node/TimePicker/TimePicker.js +0 -3
  188. package/node/TimePicker/TimePickerToolbar.js +0 -3
  189. package/node/YearCalendar/YearCalendar.js +0 -3
  190. package/node/index.js +17 -5
  191. package/node/internals/hooks/useField/useField.js +5 -3
  192. package/node/internals/hooks/useField/useField.utils.js +73 -22
  193. package/node/internals/hooks/useField/useFieldCharacterEditing.js +11 -7
  194. package/node/internals/hooks/useField/useFieldState.js +8 -6
  195. package/node/internals/utils/valueManagers.js +2 -2
  196. package/package.json +7 -7
  197. package/themeAugmentation/components.d.ts +26 -0
  198. package/themeAugmentation/overrides.d.ts +16 -0
  199. package/themeAugmentation/props.d.ts +16 -0
  200. package/internals/components/PickersInput/PickersFilledInput.d.ts +0 -3
  201. package/internals/components/PickersInput/PickersInput.d.ts +0 -13
  202. package/internals/components/PickersInput/PickersOutlinedInput.d.ts +0 -3
  203. package/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
  204. package/internals/components/PickersInput/PickersStandardInput.d.ts +0 -3
  205. package/internals/components/PickersInput/PickersStandardInput.js +0 -123
  206. package/internals/components/PickersInput/index.js +0 -3
  207. package/internals/components/PickersInput/pickersInputClasses.d.ts +0 -84
  208. package/internals/components/PickersInput/pickersInputClasses.js +0 -18
  209. package/internals/components/PickersTextField/PickersTextField.d.ts +0 -2
  210. package/internals/components/PickersTextField/PickersTextField.js +0 -138
  211. package/internals/components/PickersTextField/index.d.ts +0 -1
  212. package/internals/components/PickersTextField/index.js +0 -1
  213. package/legacy/internals/components/PickersInput/PickersOutlinedInput.js +0 -110
  214. package/legacy/internals/components/PickersInput/PickersStandardInput.js +0 -117
  215. package/legacy/internals/components/PickersInput/index.js +0 -3
  216. package/legacy/internals/components/PickersInput/pickersInputClasses.js +0 -18
  217. package/legacy/internals/components/PickersTextField/index.js +0 -1
  218. package/modern/internals/components/PickersInput/PickersOutlinedInput.js +0 -117
  219. package/modern/internals/components/PickersInput/PickersStandardInput.js +0 -123
  220. package/modern/internals/components/PickersInput/index.js +0 -3
  221. package/modern/internals/components/PickersInput/pickersInputClasses.js +0 -18
  222. package/modern/internals/components/PickersTextField/PickersTextField.js +0 -138
  223. package/modern/internals/components/PickersTextField/index.js +0 -1
  224. package/node/internals/components/PickersInput/PickersOutlinedInput.js +0 -125
  225. package/node/internals/components/PickersInput/PickersStandardInput.js +0 -132
  226. package/node/internals/components/PickersInput/pickersInputClasses.js +0 -29
  227. package/node/internals/components/PickersTextField/index.js +0 -12
  228. /package/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  229. /package/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  230. /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.d.ts +0 -0
  231. /package/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
  232. /package/legacy/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  233. /package/legacy/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  234. /package/legacy/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
  235. /package/modern/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  236. /package/modern/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  237. /package/modern/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
  238. /package/node/{internals/components/PickersInput/PickersInput.types.js → PickersTextField/PickersInputBase/PickersInputBase.types.js} +0 -0
  239. /package/node/{internals/components/PickersTextField → PickersTextField}/PickersTextField.types.js +0 -0
  240. /package/node/{internals/components/PickersTextField → PickersTextField}/pickersTextFieldClasses.js +0 -0
@@ -0,0 +1,258 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _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
+ import * as React from 'react';
5
+ import PropTypes from 'prop-types';
6
+ import clsx from 'clsx';
7
+ import { styled, useThemeProps } from '@mui/material/styles';
8
+ import useForkRef from '@mui/utils/useForkRef';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import useId from '@mui/utils/useId';
11
+ import InputLabel from '@mui/material/InputLabel';
12
+ import FormHelperText from '@mui/material/FormHelperText';
13
+ import FormControl from '@mui/material/FormControl';
14
+ import { getPickersTextFieldUtilityClass } from './pickersTextFieldClasses';
15
+ import { PickersOutlinedInput } from './PickersOutlinedInput';
16
+ import { PickersFilledInput } from './PickersFilledInput';
17
+ import { PickersInput } from './PickersInput';
18
+ import { jsx as _jsx } from "react/jsx-runtime";
19
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ const VARIANT_COMPONENT = {
21
+ standard: PickersInput,
22
+ filled: PickersFilledInput,
23
+ outlined: PickersOutlinedInput
24
+ };
25
+ const PickersTextFieldRoot = styled(FormControl, {
26
+ name: 'MuiPickersTextField',
27
+ slot: 'Root',
28
+ overridesResolver: (props, styles) => styles.root
29
+ })({});
30
+ const useUtilityClasses = ownerState => {
31
+ const {
32
+ focused,
33
+ disabled,
34
+ classes,
35
+ required
36
+ } = ownerState;
37
+ const slots = {
38
+ root: ['root', focused && !disabled && 'focused', disabled && 'disabled', required && 'required']
39
+ };
40
+ return composeClasses(slots, getPickersTextFieldUtilityClass, classes);
41
+ };
42
+ const PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField(inProps, ref) {
43
+ const props = useThemeProps({
44
+ props: inProps,
45
+ name: 'MuiPickersTextField'
46
+ });
47
+ const {
48
+ // Props used by FormControl
49
+ onFocus,
50
+ onBlur,
51
+ className,
52
+ color = 'primary',
53
+ disabled = false,
54
+ error = false,
55
+ variant = 'outlined',
56
+ required = false,
57
+ // Props used by PickersInput
58
+ InputProps,
59
+ inputProps,
60
+ inputRef,
61
+ sectionListRef,
62
+ elements,
63
+ areAllSectionsEmpty,
64
+ onClick,
65
+ onKeyDown,
66
+ onPaste,
67
+ onInput,
68
+ endAdornment,
69
+ startAdornment,
70
+ tabIndex,
71
+ contentEditable,
72
+ focused,
73
+ value,
74
+ onChange,
75
+ fullWidth,
76
+ id: idProp,
77
+ // Props used by FormHelperText
78
+ helperText,
79
+ FormHelperTextProps,
80
+ // Props used by InputLabel
81
+ label,
82
+ InputLabelProps
83
+ } = props,
84
+ other = _objectWithoutPropertiesLoose(props, _excluded);
85
+ const rootRef = React.useRef(null);
86
+ const handleRootRef = useForkRef(ref, rootRef);
87
+ const id = useId(idProp);
88
+ const helperTextId = helperText && id ? `${id}-helper-text` : undefined;
89
+ const inputLabelId = label && id ? `${id}-label` : undefined;
90
+ const ownerState = _extends({}, props, {
91
+ color,
92
+ disabled,
93
+ error,
94
+ focused,
95
+ required,
96
+ variant
97
+ });
98
+ const classes = useUtilityClasses(ownerState);
99
+ const PickersInputComponent = VARIANT_COMPONENT[variant];
100
+ return /*#__PURE__*/_jsxs(PickersTextFieldRoot, _extends({
101
+ className: clsx(classes.root, className),
102
+ ref: handleRootRef,
103
+ focused: focused,
104
+ onFocus: onFocus,
105
+ onBlur: onBlur,
106
+ disabled: disabled,
107
+ variant: variant,
108
+ error: error,
109
+ color: color,
110
+ fullWidth: fullWidth,
111
+ required: required,
112
+ ownerState: ownerState
113
+ }, other, {
114
+ children: [/*#__PURE__*/_jsx(InputLabel, _extends({
115
+ htmlFor: id,
116
+ id: inputLabelId
117
+ }, InputLabelProps, {
118
+ children: label
119
+ })), /*#__PURE__*/_jsx(PickersInputComponent, _extends({
120
+ elements: elements,
121
+ areAllSectionsEmpty: areAllSectionsEmpty,
122
+ onClick: onClick,
123
+ onKeyDown: onKeyDown,
124
+ onInput: onInput,
125
+ onPaste: onPaste,
126
+ endAdornment: endAdornment,
127
+ startAdornment: startAdornment,
128
+ tabIndex: tabIndex,
129
+ contentEditable: contentEditable,
130
+ value: value,
131
+ onChange: onChange,
132
+ id: id,
133
+ fullWidth: fullWidth,
134
+ inputProps: inputProps,
135
+ inputRef: inputRef,
136
+ sectionListRef: sectionListRef,
137
+ label: label
138
+ }, InputProps)), helperText && /*#__PURE__*/_jsx(FormHelperText, _extends({
139
+ id: helperTextId
140
+ }, FormHelperTextProps, {
141
+ children: helperText
142
+ }))]
143
+ }));
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 };
@@ -3,7 +3,10 @@ import { FormControlProps } from '@mui/material/FormControl';
3
3
  import { FormHelperTextProps } from '@mui/material/FormHelperText';
4
4
  import { InputLabelProps } from '@mui/material/InputLabel';
5
5
  import { TextFieldVariants } from '@mui/material/TextField';
6
- import { PickersFilledInputProps, PickersInputPropsUsedByField, PickersOutlinedInputProps, PickersStandardInputProps } from '../PickersInput/PickersInput.types';
6
+ import { PickersInputPropsUsedByField } from './PickersInputBase/PickersInputBase.types';
7
+ import { PickersInputProps } from './PickersInput';
8
+ import { PickersOutlinedInputProps } from './PickersOutlinedInput';
9
+ import { PickersFilledInputProps } from './PickersFilledInput';
7
10
  interface PickersTextFieldPropsUsedByField {
8
11
  onFocus: React.FocusEventHandler<HTMLDivElement>;
9
12
  onBlur: React.FocusEventHandler<HTMLDivElement>;
@@ -30,7 +33,7 @@ export interface PickersStandardTextFieldProps extends PickersBaseTextFieldProps
30
33
  * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
31
34
  * component depending on the `variant` prop value.
32
35
  */
33
- InputProps?: Partial<PickersStandardInputProps>;
36
+ InputProps?: Partial<PickersInputProps>;
34
37
  }
35
38
  export interface PickersOutlinedTextFieldProps extends PickersBaseTextFieldProps {
36
39
  /**
@@ -0,0 +1,8 @@
1
+ export { PickersTextField } from './PickersTextField';
2
+ export type { PickersTextFieldProps } from './PickersTextField.types';
3
+ export { pickersTextFieldClasses, getPickersTextFieldUtilityClass, } from './pickersTextFieldClasses';
4
+ export type { PickersTextFieldClasses, PickersTextFieldClassKey } from './pickersTextFieldClasses';
5
+ export * from './PickersInput';
6
+ export * from './PickersFilledInput';
7
+ export * from './PickersOutlinedInput';
8
+ export * from './PickersInputBase';
@@ -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';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/PickersTextField/index.js",
5
+ "types": "./index.d.ts"
6
+ }
package/README.md CHANGED
@@ -34,7 +34,7 @@ This component has the following peer dependencies that you will need to install
34
34
 
35
35
  ```json
36
36
  "peerDependencies": {
37
- "@mui/material": "^5.8.6",
37
+ "@mui/material": "^5.15.0",
38
38
  "react": "^17.0.0 || ^18.0.0",
39
39
  "react-dom": "^17.0.0 || ^18.0.0"
40
40
  },
@@ -60,9 +60,6 @@ StaticDatePicker.propTypes = {
60
60
  * - the `input` element if there is a field rendered.
61
61
  */
62
62
  autoFocus: PropTypes.bool,
63
- /**
64
- * Class name applied to the root element.
65
- */
66
63
  className: PropTypes.string,
67
64
  /**
68
65
  * Formats the day of week displayed in the calendar header.
@@ -80,9 +80,6 @@ StaticDateTimePicker.propTypes = {
80
80
  * - the `input` element if there is a field rendered.
81
81
  */
82
82
  autoFocus: PropTypes.bool,
83
- /**
84
- * Class name applied to the root element.
85
- */
86
83
  className: PropTypes.string,
87
84
  /**
88
85
  * Formats the day of week displayed in the calendar header.
@@ -72,9 +72,6 @@ StaticTimePicker.propTypes = {
72
72
  * - the `input` element if there is a field rendered.
73
73
  */
74
74
  autoFocus: PropTypes.bool,
75
- /**
76
- * Class name applied to the root element.
77
- */
78
75
  className: PropTypes.string,
79
76
  /**
80
77
  * The default value.
@@ -65,9 +65,6 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
65
65
  * - the `input` element if there is a field rendered.
66
66
  */
67
67
  autoFocus: PropTypes.bool,
68
- /**
69
- * Class name applied to the root element.
70
- */
71
68
  className: PropTypes.string,
72
69
  /**
73
70
  * If `true`, the popover or modal will close after submitting the full date.
@@ -214,9 +214,6 @@ process.env.NODE_ENV !== "production" ? TimePickerToolbar.propTypes = {
214
214
  ampm: PropTypes.bool,
215
215
  ampmInClock: PropTypes.bool,
216
216
  classes: PropTypes.object,
217
- /**
218
- * className applied to the root component.
219
- */
220
217
  className: PropTypes.string,
221
218
  disabled: PropTypes.bool,
222
219
  /**
@@ -265,9 +265,6 @@ process.env.NODE_ENV !== "production" ? YearCalendar.propTypes = {
265
265
  * Override or extend the styles applied to the component.
266
266
  */
267
267
  classes: PropTypes.object,
268
- /**
269
- * className applied to the root element.
270
- */
271
268
  className: PropTypes.string,
272
269
  /**
273
270
  * The default selected value.
@@ -12,9 +12,6 @@ export interface ExportedYearCalendarProps {
12
12
  }
13
13
  export interface YearCalendarProps<TDate> extends ExportedYearCalendarProps, YearValidationProps<TDate>, BaseDateValidationProps<TDate>, TimezoneProps {
14
14
  autoFocus?: boolean;
15
- /**
16
- * className applied to the root element.
17
- */
18
15
  className?: string;
19
16
  /**
20
17
  * Override or extend the styles applied to the component.
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export * from './DigitalClock';
3
3
  export * from './MultiSectionDigitalClock';
4
4
  export * from './LocalizationProvider';
5
5
  export * from './PickersDay';
6
- export * from './locales';
6
+ export * from './locales/utils/pickersLocaleTextApi';
7
7
  export * from './DateField';
8
8
  export * from './TimeField';
9
9
  export * from './DateTimeField';
@@ -29,6 +29,7 @@ export * from './PickersLayout';
29
29
  export * from './PickersActionBar';
30
30
  export * from './PickersShortcuts';
31
31
  export * from './PickersCalendarHeader';
32
+ export * from './PickersTextField';
32
33
  export * from './PickersSectionList';
33
34
  export { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from './internals/utils/utils';
34
35
  export * from './models';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.0.0-alpha.8
2
+ * @mui/x-date-pickers v7.0.0-alpha.9
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -11,7 +11,7 @@ export * from './DigitalClock';
11
11
  export * from './MultiSectionDigitalClock';
12
12
  export * from './LocalizationProvider';
13
13
  export * from './PickersDay';
14
- export * from './locales';
14
+ export * from './locales/utils/pickersLocaleTextApi';
15
15
 
16
16
  // Fields
17
17
  export * from './DateField';
@@ -51,6 +51,7 @@ export * from './PickersShortcuts';
51
51
  export * from './PickersCalendarHeader';
52
52
 
53
53
  // Field utilities
54
+ export * from './PickersTextField';
54
55
  export * from './PickersSectionList';
55
56
  export { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from './internals/utils/utils';
56
57
  export * from './models';
@@ -24,6 +24,7 @@ export const useField = params => {
24
24
  updateValueFromValueStr,
25
25
  setTempAndroidValueStr,
26
26
  sectionsValueBoundaries,
27
+ localizedDigits,
27
28
  placeholder,
28
29
  timezone
29
30
  } = useFieldState(params);
@@ -59,6 +60,7 @@ export const useField = params => {
59
60
  sections: state.sections,
60
61
  updateSectionValue,
61
62
  sectionsValueBoundaries,
63
+ localizedDigits,
62
64
  setTempAndroidValueStr,
63
65
  timezone
64
66
  });
@@ -191,7 +193,7 @@ export const useField = params => {
191
193
  if (selectedSectionIndexes.startIndex === 0 && selectedSectionIndexes.endIndex === state.sections.length - 1 && cleanValueStr.length === 1) {
192
194
  keyPressed = cleanValueStr;
193
195
  } else {
194
- const prevValueStr = cleanString(fieldValueManager.getValueStrFromSections(state.sections, isRTL));
196
+ const prevValueStr = cleanString(fieldValueManager.getValueStrFromSections(state.sections, localizedDigits, isRTL));
195
197
  let startOfDiffIndex = -1;
196
198
  let endOfDiffIndex = -1;
197
199
  for (let i = 0; i < prevValueStr.length; i += 1) {
@@ -301,7 +303,7 @@ export const useField = params => {
301
303
  }
302
304
  const activeSection = state.sections[selectedSectionIndexes.startIndex];
303
305
  const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);
304
- const newSectionValue = adjustSectionValue(utils, timezone, activeSection, event.key, sectionsValueBoundaries, activeDateManager.date, {
306
+ const newSectionValue = adjustSectionValue(utils, timezone, activeSection, event.key, sectionsValueBoundaries, localizedDigits, activeDateManager.date, {
305
307
  minutesStep
306
308
  });
307
309
  updateSectionValue({
@@ -386,8 +388,8 @@ export const useField = params => {
386
388
 
387
389
  const valueStr = React.useMemo(() => {
388
390
  var _state$tempValueStrAn;
389
- return (_state$tempValueStrAn = state.tempValueStrAndroid) != null ? _state$tempValueStrAn : fieldValueManager.getValueStrFromSections(state.sections, isRTL);
390
- }, [state.sections, fieldValueManager, state.tempValueStrAndroid, isRTL]);
391
+ return (_state$tempValueStrAn = state.tempValueStrAndroid) != null ? _state$tempValueStrAn : fieldValueManager.getValueStrFromSections(state.sections, localizedDigits, isRTL);
392
+ }, [state.sections, fieldValueManager, state.tempValueStrAndroid, localizedDigits, isRTL]);
391
393
  const inputMode = React.useMemo(() => {
392
394
  if (selectedSectionIndexes == null) {
393
395
  return 'text';
@@ -208,19 +208,21 @@ export interface FieldValueManager<TValue, TDate, TSection extends FieldSection>
208
208
  * @param {MuiPickersAdapter<TDate>} utils The utils to manipulate the date.
209
209
  * @param {TValue} value The current value to generate sections from.
210
210
  * @param {TSection[] | null} fallbackSections The sections to use as a fallback if a date is null or invalid.
211
+ * @param {string} localizedDigits The conversion table from localized to 0-9 digits.
211
212
  * @param {boolean} isRTL `true` if the direction is "right to left".
212
213
  * @param {(date: TDate) => FieldSectionWithoutPosition[]} getSectionsFromDate Returns the sections of the given date.
213
214
  * @returns {TSection[]} The new section list.
214
215
  */
215
- getSectionsFromValue: (utils: MuiPickersAdapter<TDate>, value: TValue, fallbackSections: TSection[] | null, isRTL: boolean, getSectionsFromDate: (date: TDate) => FieldSectionWithoutPosition[]) => TSection[];
216
+ getSectionsFromValue: (utils: MuiPickersAdapter<TDate>, value: TValue, fallbackSections: TSection[] | null, localizedDigits: string[], isRTL: boolean, getSectionsFromDate: (date: TDate) => FieldSectionWithoutPosition[]) => TSection[];
216
217
  /**
217
218
  * Creates the string value to render in the input based on the current section list.
218
219
  * @template TSection
219
220
  * @param {TSection[]} sections The current section list.
221
+ * @param {string} localizedDigits The conversion table from localized to 0-9 digits.
220
222
  * @param {boolean} isRTL `true` if the current orientation is "right to left"
221
223
  * @returns {string} The string value to render in the input.
222
224
  */
223
- getValueStrFromSections: (sections: TSection[], isRTL: boolean) => string;
225
+ getValueStrFromSections: (sections: TSection[], localizedDigits: string[], isRTL: boolean) => string;
224
226
  /**
225
227
  * Returns the manager of the active date.
226
228
  * @template TValue, TDate, TSection
@@ -6,24 +6,34 @@ export declare const getDateSectionConfigFromFormatToken: <TDate>(utils: MuiPick
6
6
  };
7
7
  export declare const getDaysInWeekStr: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, format: string) => string[];
8
8
  export declare const getLetterEditingOptions: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, sectionType: FieldSectionType, format: string) => string[];
9
- export declare const cleanLeadingZeros: <TDate>(utils: MuiPickersAdapter<TDate, any>, valueStr: string, size: number) => string;
10
- export declare const cleanDigitSectionValue: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, value: number, sectionBoundaries: FieldSectionValueBoundaries<TDate, any>, section: Pick<FieldSection, 'format' | 'type' | 'contentType' | 'hasLeadingZerosInFormat' | 'hasLeadingZerosInInput' | 'maxLength'>) => string;
11
- export declare const adjustSectionValue: <TDate, TSection extends FieldSection>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, section: TSection, keyCode: AvailableAdjustKeyCode, sectionsValueBoundaries: FieldSectionsValueBoundaries<TDate>, activeDate: TDate | null, stepsAttributes?: {
9
+ export declare const FORMAT_SECONDS_NO_LEADING_ZEROS = "s";
10
+ export declare const getLocalizedDigits: <TDate>(utils: MuiPickersAdapter<TDate, any>) => string[];
11
+ export declare const removeLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string;
12
+ export declare const applyLocalizedDigits: (valueStr: string, localizedDigits: string[]) => string;
13
+ export declare const isStringNumber: (valueStr: string, localizedDigits: string[]) => boolean;
14
+ /**
15
+ * Remove the leading zeroes to a digit section value.
16
+ * E.g.: `03` => `3`
17
+ * Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed.
18
+ */
19
+ export declare const cleanLeadingZeros: (valueStr: string, size: number) => string;
20
+ export declare const cleanDigitSectionValue: <TDate>(utils: MuiPickersAdapter<TDate, any>, value: number, sectionBoundaries: FieldSectionValueBoundaries<TDate, any>, localizedDigits: string[], section: Pick<FieldSection, 'format' | 'type' | 'contentType' | 'hasLeadingZerosInFormat' | 'hasLeadingZerosInInput' | 'maxLength'>) => string;
21
+ export declare const adjustSectionValue: <TDate, TSection extends FieldSection>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, section: TSection, keyCode: AvailableAdjustKeyCode, sectionsValueBoundaries: FieldSectionsValueBoundaries<TDate>, localizedDigits: string[], activeDate: TDate | null, stepsAttributes?: {
12
22
  minutesStep?: number;
13
23
  }) => string;
14
- export declare const getSectionVisibleValue: (section: FieldSectionWithoutPosition, target: 'input-rtl' | 'input-ltr' | 'non-input') => string;
24
+ export declare const getSectionVisibleValue: (section: FieldSectionWithoutPosition, target: 'input-rtl' | 'input-ltr' | 'non-input', localizedDigits: string[]) => string;
15
25
  export declare const cleanString: (dirtyString: string) => string;
16
- export declare const addPositionPropertiesToSections: <TSection extends FieldSection>(sections: FieldSectionWithoutPosition<TSection>[], isRTL: boolean) => TSection[];
26
+ export declare const addPositionPropertiesToSections: <TSection extends FieldSection>(sections: FieldSectionWithoutPosition<TSection>[], localizedDigits: string[], isRTL: boolean) => TSection[];
17
27
  export declare const changeSectionValueFormat: <TDate>(utils: MuiPickersAdapter<TDate, any>, valueStr: string, currentFormat: string, newFormat: string) => string;
18
28
  export declare const doesSectionFormatHaveLeadingZeros: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, contentType: FieldSectionContentType, sectionType: FieldSectionType, format: string) => boolean;
19
- export declare const splitFormatIntoSections: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, localeText: PickersLocaleText<TDate>, format: string, date: TDate | null, formatDensity: 'dense' | 'spacious', shouldRespectLeadingZeros: boolean, isRTL: boolean) => FieldSectionWithoutPosition[];
29
+ export declare const splitFormatIntoSections: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, localeText: PickersLocaleText<TDate>, localizedDigits: string[], format: string, date: TDate | null, formatDensity: 'dense' | 'spacious', shouldRespectLeadingZeros: boolean, isRTL: boolean) => FieldSectionWithoutPosition[];
20
30
  /**
21
31
  * Some date libraries like `dayjs` don't support parsing from date with escaped characters.
22
32
  * To make sure that the parsing works, we are building a format and a date without any separator.
23
33
  */
24
- export declare const getDateFromDateSections: <TDate>(utils: MuiPickersAdapter<TDate, any>, sections: FieldSection[]) => NonNullable<TDate>;
25
- export declare const createDateStrForInputFromSections: (sections: FieldSection[], isRTL: boolean) => string;
26
- export declare const getSectionsBoundaries: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone) => FieldSectionsValueBoundaries<TDate>;
34
+ export declare const getDateFromDateSections: <TDate>(utils: MuiPickersAdapter<TDate, any>, sections: FieldSection[], localizedDigits: string[]) => NonNullable<TDate>;
35
+ export declare const createDateStrForInputFromSections: (sections: FieldSection[], localizedDigits: string[], isRTL: boolean) => string;
36
+ export declare const getSectionsBoundaries: <TDate>(utils: MuiPickersAdapter<TDate, any>, localizedDigits: string[], timezone: PickersTimezone) => FieldSectionsValueBoundaries<TDate>;
27
37
  export declare const validateSections: <TSection extends FieldSection>(sections: TSection[], valueType: FieldValueType) => void;
28
38
  export declare const mergeDateIntoReferenceDate: <TDate>(utils: MuiPickersAdapter<TDate, any>, timezone: PickersTimezone, dateToTransferFrom: TDate, sections: FieldSectionWithoutPosition[], referenceDate: TDate, shouldLimitToEditedSections: boolean) => TDate;
29
39
  export declare const isAndroid: () => boolean;