@mui/x-date-pickers 8.3.1 → 8.4.0

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 (122) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/DateCalendar/DateCalendar.js +1 -0
  3. package/DateField/DateField.js +1 -0
  4. package/DatePicker/DatePicker.js +1 -0
  5. package/DatePicker/DatePickerToolbar.js +1 -0
  6. package/DateTimeField/DateTimeField.js +1 -0
  7. package/DateTimePicker/DateTimePicker.js +1 -0
  8. package/DateTimePicker/DateTimePickerTabs.js +1 -0
  9. package/DateTimePicker/DateTimePickerToolbar.js +1 -0
  10. package/DesktopDatePicker/DesktopDatePicker.js +1 -0
  11. package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  12. package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -0
  13. package/DesktopTimePicker/DesktopTimePicker.js +1 -0
  14. package/DigitalClock/DigitalClock.js +1 -0
  15. package/LocalizationProvider/LocalizationProvider.js +2 -3
  16. package/MobileDatePicker/MobileDatePicker.js +1 -0
  17. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
  18. package/MobileTimePicker/MobileTimePicker.js +1 -0
  19. package/MonthCalendar/MonthCalendar.js +1 -0
  20. package/MonthCalendar/MonthCalendarButton.js +2 -1
  21. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -4
  22. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
  23. package/PickersActionBar/PickersActionBar.js +2 -1
  24. package/PickersCalendarHeader/PickersCalendarHeader.js +1 -0
  25. package/PickersDay/PickersDay.js +3 -1
  26. package/PickersLayout/PickersLayout.js +1 -0
  27. package/PickersSectionList/PickersSectionList.js +1 -0
  28. package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
  29. package/PickersTextField/PickersInput/PickersInput.js +1 -0
  30. package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -0
  31. package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
  32. package/PickersTextField/PickersTextField.js +4 -1
  33. package/PickersTextField/usePickerTextFieldOwnerState.js +1 -0
  34. package/StaticDatePicker/StaticDatePicker.js +1 -0
  35. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
  36. package/StaticTimePicker/StaticTimePicker.js +1 -0
  37. package/TimeClock/TimeClock.js +1 -0
  38. package/TimeField/TimeField.js +1 -0
  39. package/TimePicker/TimePicker.js +1 -0
  40. package/YearCalendar/YearCalendar.js +1 -0
  41. package/YearCalendar/YearCalendarButton.js +2 -1
  42. package/dateViewRenderers/dateViewRenderers.js +2 -1
  43. package/esm/DateCalendar/DateCalendar.js +1 -0
  44. package/esm/DateField/DateField.js +1 -0
  45. package/esm/DatePicker/DatePicker.js +1 -0
  46. package/esm/DatePicker/DatePickerToolbar.js +1 -0
  47. package/esm/DateTimeField/DateTimeField.js +1 -0
  48. package/esm/DateTimePicker/DateTimePicker.js +1 -0
  49. package/esm/DateTimePicker/DateTimePickerTabs.js +1 -0
  50. package/esm/DateTimePicker/DateTimePickerToolbar.js +1 -0
  51. package/esm/DesktopDatePicker/DesktopDatePicker.js +1 -0
  52. package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  53. package/esm/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -0
  54. package/esm/DesktopTimePicker/DesktopTimePicker.js +1 -0
  55. package/esm/DigitalClock/DigitalClock.js +1 -0
  56. package/esm/LocalizationProvider/LocalizationProvider.js +2 -3
  57. package/esm/MobileDatePicker/MobileDatePicker.js +1 -0
  58. package/esm/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
  59. package/esm/MobileTimePicker/MobileTimePicker.js +1 -0
  60. package/esm/MonthCalendar/MonthCalendar.js +1 -0
  61. package/esm/MonthCalendar/MonthCalendarButton.js +2 -1
  62. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
  63. package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
  64. package/esm/PickersActionBar/PickersActionBar.js +1 -0
  65. package/esm/PickersCalendarHeader/PickersCalendarHeader.js +1 -0
  66. package/esm/PickersDay/PickersDay.js +3 -1
  67. package/esm/PickersLayout/PickersLayout.js +1 -0
  68. package/esm/PickersSectionList/PickersSectionList.js +1 -0
  69. package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
  70. package/esm/PickersTextField/PickersInput/PickersInput.js +1 -0
  71. package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +1 -0
  72. package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
  73. package/esm/PickersTextField/PickersTextField.js +4 -1
  74. package/esm/PickersTextField/usePickerTextFieldOwnerState.js +1 -0
  75. package/esm/StaticDatePicker/StaticDatePicker.js +1 -0
  76. package/esm/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
  77. package/esm/StaticTimePicker/StaticTimePicker.js +1 -0
  78. package/esm/TimeClock/TimeClock.js +1 -0
  79. package/esm/TimeField/TimeField.js +1 -0
  80. package/esm/TimePicker/TimePicker.js +1 -0
  81. package/esm/YearCalendar/YearCalendar.js +1 -0
  82. package/esm/YearCalendar/YearCalendarButton.js +2 -1
  83. package/esm/dateViewRenderers/dateViewRenderers.js +2 -1
  84. package/esm/hooks/useIsValidValue.js +1 -0
  85. package/esm/hooks/usePickerContext.js +1 -0
  86. package/esm/index.js +1 -1
  87. package/esm/internals/components/PickerFieldUI.js +1 -0
  88. package/esm/internals/components/PickerPopper/PickerPopper.js +1 -0
  89. package/esm/internals/components/PickerProvider.js +2 -0
  90. package/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -1
  91. package/esm/internals/components/PickersToolbar.js +2 -1
  92. package/esm/internals/components/PickersToolbarButton.js +2 -1
  93. package/esm/internals/components/PickersToolbarText.js +2 -1
  94. package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -0
  95. package/esm/internals/hooks/useField/useFieldCharacterEditing.js +27 -11
  96. package/esm/internals/hooks/useField/useFieldSectionContainerProps.js +2 -3
  97. package/esm/internals/hooks/useField/useFieldSectionContentProps.js +2 -2
  98. package/esm/internals/hooks/useField/useFieldState.js +2 -2
  99. package/esm/internals/hooks/useMobilePicker/useMobilePicker.js +1 -0
  100. package/esm/internals/hooks/useNullableFieldPrivateContext.js +1 -0
  101. package/esm/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
  102. package/esm/timeViewRenderers/timeViewRenderers.js +4 -1
  103. package/hooks/useIsValidValue.js +1 -0
  104. package/hooks/usePickerContext.js +1 -0
  105. package/index.js +1 -1
  106. package/internals/components/PickerFieldUI.js +1 -0
  107. package/internals/components/PickerPopper/PickerPopper.js +1 -0
  108. package/internals/components/PickerProvider.js +2 -0
  109. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -1
  110. package/internals/components/PickersToolbar.js +2 -1
  111. package/internals/components/PickersToolbarButton.js +2 -1
  112. package/internals/components/PickersToolbarText.js +2 -1
  113. package/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -0
  114. package/internals/hooks/useField/useFieldCharacterEditing.js +27 -11
  115. package/internals/hooks/useField/useFieldSectionContainerProps.js +2 -4
  116. package/internals/hooks/useField/useFieldSectionContentProps.js +2 -2
  117. package/internals/hooks/useField/useFieldState.js +2 -2
  118. package/internals/hooks/useMobilePicker/useMobilePicker.js +1 -0
  119. package/internals/hooks/useNullableFieldPrivateContext.js +1 -0
  120. package/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
  121. package/package.json +2 -2
  122. package/timeViewRenderers/timeViewRenderers.js +4 -1
@@ -63,6 +63,7 @@ export const renderTimeViewClock = ({
63
63
  disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,
64
64
  timezone: timezone
65
65
  });
66
+ if (process.env.NODE_ENV !== "production") renderTimeViewClock.displayName = "renderTimeViewClock";
66
67
  export const renderDigitalClockTimeView = ({
67
68
  view,
68
69
  onViewChange,
@@ -122,6 +123,7 @@ export const renderDigitalClockTimeView = ({
122
123
  skipDisabled: skipDisabled,
123
124
  timezone: timezone
124
125
  });
126
+ if (process.env.NODE_ENV !== "production") renderDigitalClockTimeView.displayName = "renderDigitalClockTimeView";
125
127
  export const renderMultiSectionDigitalClockTimeView = ({
126
128
  view,
127
129
  onViewChange,
@@ -180,4 +182,5 @@ export const renderMultiSectionDigitalClockTimeView = ({
180
182
  timeSteps: timeSteps,
181
183
  skipDisabled: skipDisabled,
182
184
  timezone: timezone
183
- });
185
+ });
186
+ if (process.env.NODE_ENV !== "production") renderMultiSectionDigitalClockTimeView.displayName = "renderMultiSectionDigitalClockTimeView";
@@ -13,6 +13,7 @@ const IsValidValueContext = exports.IsValidValueContext = /*#__PURE__*/React.cre
13
13
  /**
14
14
  * Returns a function to check if a value is valid according to the validation props passed to the parent Picker.
15
15
  */
16
+ if (process.env.NODE_ENV !== "production") IsValidValueContext.displayName = "IsValidValueContext";
16
17
  function useIsValidValue() {
17
18
  return React.useContext(IsValidValueContext);
18
19
  }
@@ -12,6 +12,7 @@ const PickerContext = exports.PickerContext = /*#__PURE__*/React.createContext(n
12
12
  /**
13
13
  * Returns the context passed by the Picker wrapping the current component.
14
14
  */
15
+ if (process.env.NODE_ENV !== "production") PickerContext.displayName = "PickerContext";
15
16
  const usePickerContext = () => {
16
17
  const value = React.useContext(PickerContext);
17
18
  if (value == null) {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.3.1
2
+ * @mui/x-date-pickers v8.4.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -109,6 +109,7 @@ const PickerFieldUIContext = exports.PickerFieldUIContext = /*#__PURE__*/React.c
109
109
  * Adds the button to open the Picker and the button to clear the value of the field.
110
110
  * @ignore - internal component.
111
111
  */
112
+ if (process.env.NODE_ENV !== "production") PickerFieldUIContext.displayName = "PickerFieldUIContext";
112
113
  function PickerFieldUI(props) {
113
114
  const {
114
115
  slots,
@@ -205,6 +205,7 @@ const PickerPopperPaperWrapper = /*#__PURE__*/React.forwardRef((props, ref) => {
205
205
  children: children
206
206
  }));
207
207
  });
208
+ if (process.env.NODE_ENV !== "production") PickerPopperPaperWrapper.displayName = "PickerPopperPaperWrapper";
208
209
  function PickerPopper(inProps) {
209
210
  const props = (0, _styles.useThemeProps)({
210
211
  props: inProps,
@@ -13,6 +13,7 @@ var _useNullableFieldPrivateContext = require("../hooks/useNullableFieldPrivateC
13
13
  var _usePickerContext = require("../../hooks/usePickerContext");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  const PickerActionsContext = exports.PickerActionsContext = /*#__PURE__*/React.createContext(null);
16
+ if (process.env.NODE_ENV !== "production") PickerActionsContext.displayName = "PickerActionsContext";
16
17
  const PickerPrivateContext = exports.PickerPrivateContext = /*#__PURE__*/React.createContext({
17
18
  ownerState: {
18
19
  isPickerDisabled: false,
@@ -42,6 +43,7 @@ const PickerPrivateContext = exports.PickerPrivateContext = /*#__PURE__*/React.c
42
43
  *
43
44
  * @ignore - do not document.
44
45
  */
46
+ if (process.env.NODE_ENV !== "production") PickerPrivateContext.displayName = "PickerPrivateContext";
45
47
  function PickerProvider(props) {
46
48
  const {
47
49
  contextValue,
@@ -178,4 +178,5 @@ const PickersArrowSwitcher = exports.PickersArrowSwitcher = /*#__PURE__*/React.f
178
178
  children: isRtl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LeftArrowIcon, (0, _extends2.default)({}, leftArrowIconProps)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(RightArrowIcon, (0, _extends2.default)({}, rightArrowIconProps))
179
179
  }))]
180
180
  }));
181
- });
181
+ });
182
+ if (process.env.NODE_ENV !== "production") PickersArrowSwitcher.displayName = "PickersArrowSwitcher";
@@ -119,4 +119,5 @@ const PickersToolbar = exports.PickersToolbar = /*#__PURE__*/React.forwardRef(fu
119
119
  children: children
120
120
  })]
121
121
  }));
122
- });
122
+ });
123
+ if (process.env.NODE_ENV !== "production") PickersToolbar.displayName = "PickersToolbar";
@@ -66,4 +66,5 @@ const PickersToolbarButton = exports.PickersToolbarButton = /*#__PURE__*/React.f
66
66
  selected: selected
67
67
  })
68
68
  }));
69
- });
69
+ });
70
+ if (process.env.NODE_ENV !== "production") PickersToolbarButton.displayName = "PickersToolbarButton";
@@ -57,4 +57,5 @@ const PickersToolbarText = exports.PickersToolbarText = /*#__PURE__*/React.forwa
57
57
  }, other, {
58
58
  children: value
59
59
  }));
60
- });
60
+ });
61
+ if (process.env.NODE_ENV !== "production") PickersToolbarText.displayName = "PickersToolbarText";
@@ -98,6 +98,7 @@ const useDesktopPicker = _ref => {
98
98
  })]
99
99
  })
100
100
  }));
101
+ if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
101
102
  return {
102
103
  renderPicker
103
104
  };
@@ -133,7 +133,11 @@ const useFieldCharacterEditing = ({
133
133
  return applyQuery(params, getFirstSectionValueMatchingWithQuery);
134
134
  };
135
135
  const applyNumericEditing = params => {
136
- const getNewSectionValue = (queryValue, section) => {
136
+ const getNewSectionValue = ({
137
+ queryValue,
138
+ skipIfBelowMinimum,
139
+ section
140
+ }) => {
137
141
  const cleanQueryValue = (0, _useField.removeLocalizedDigits)(queryValue, localizedDigits);
138
142
  const queryValueNumber = Number(cleanQueryValue);
139
143
  const sectionBoundaries = sectionsValueBoundaries[section.type]({
@@ -150,7 +154,7 @@ const useFieldCharacterEditing = ({
150
154
  // If the user types `0` on a month section,
151
155
  // It is below the minimum, but we want to store the `0` in the query,
152
156
  // So that when he pressed `1`, it will store `01` and move to the next section.
153
- if (queryValueNumber < sectionBoundaries.minimum) {
157
+ if (skipIfBelowMinimum && queryValueNumber < sectionBoundaries.minimum) {
154
158
  return {
155
159
  saveQuery: true
156
160
  };
@@ -164,20 +168,28 @@ const useFieldCharacterEditing = ({
164
168
  };
165
169
  const getFirstSectionValueMatchingWithQuery = (queryValue, activeSection) => {
166
170
  if (activeSection.contentType === 'digit' || activeSection.contentType === 'digit-with-letter') {
167
- return getNewSectionValue(queryValue, activeSection);
171
+ return getNewSectionValue({
172
+ queryValue,
173
+ skipIfBelowMinimum: false,
174
+ section: activeSection
175
+ });
168
176
  }
169
177
 
170
178
  // When editing a letter-format month and the user presses a digit,
171
179
  // We can support the numeric editing by using the digit-format month and re-formatting the result.
172
180
  if (activeSection.type === 'month') {
173
181
  const hasLeadingZerosInFormat = (0, _useField.doesSectionFormatHaveLeadingZeros)(utils, 'digit', 'month', 'MM');
174
- const response = getNewSectionValue(queryValue, {
175
- type: activeSection.type,
176
- format: 'MM',
177
- hasLeadingZerosInFormat,
178
- hasLeadingZerosInInput: true,
179
- contentType: 'digit',
180
- maxLength: 2
182
+ const response = getNewSectionValue({
183
+ queryValue,
184
+ skipIfBelowMinimum: true,
185
+ section: {
186
+ type: activeSection.type,
187
+ format: 'MM',
188
+ hasLeadingZerosInFormat,
189
+ hasLeadingZerosInInput: true,
190
+ contentType: 'digit',
191
+ maxLength: 2
192
+ }
181
193
  });
182
194
  if (isQueryResponseWithoutValue(response)) {
183
195
  return response;
@@ -191,7 +203,11 @@ const useFieldCharacterEditing = ({
191
203
  // When editing a letter-format weekDay and the user presses a digit,
192
204
  // We can support the numeric editing by returning the nth day in the week day array.
193
205
  if (activeSection.type === 'weekDay') {
194
- const response = getNewSectionValue(queryValue, activeSection);
206
+ const response = getNewSectionValue({
207
+ queryValue,
208
+ skipIfBelowMinimum: true,
209
+ section: activeSection
210
+ });
195
211
  if (isQueryResponseWithoutValue(response)) {
196
212
  return response;
197
213
  }
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.useFieldSectionContainerProps = useFieldSectionContainerProps;
9
8
  var React = _interopRequireWildcard(require("react"));
10
- var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
11
9
  /**
12
10
  * Generate the props to pass to the container element of each section of the field.
13
11
  * It is not used by the non-accessible DOM structure (with an <input /> element for editing).
@@ -25,14 +23,14 @@ function useFieldSectionContainerProps(parameters) {
25
23
  disabled = false
26
24
  }
27
25
  } = parameters;
28
- const createHandleClick = (0, _useEventCallback.default)(sectionIndex => event => {
26
+ const createHandleClick = React.useCallback(sectionIndex => event => {
29
27
  // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.
30
28
  // We avoid this by checking if the call to this function is actually intended, or a side effect.
31
29
  if (disabled || event.isDefaultPrevented()) {
32
30
  return;
33
31
  }
34
32
  setSelectedSections(sectionIndex);
35
- });
33
+ }, [disabled, setSelectedSections]);
36
34
  return React.useCallback(sectionIndex => ({
37
35
  'data-sectionindex': sectionIndex,
38
36
  onClick: createHandleClick(sectionIndex)
@@ -136,12 +136,12 @@ function useFieldSectionContentProps(parameters) {
136
136
  event.preventDefault();
137
137
  event.dataTransfer.dropEffect = 'none';
138
138
  });
139
- const createFocusHandler = (0, _useEventCallback.default)(sectionIndex => () => {
139
+ const createFocusHandler = React.useCallback(sectionIndex => () => {
140
140
  if (disabled) {
141
141
  return;
142
142
  }
143
143
  setSelectedSections(sectionIndex);
144
- });
144
+ }, [disabled, setSelectedSections]);
145
145
  return React.useCallback((section, sectionIndex) => {
146
146
  const sectionBoundaries = sectionsValueBoundaries[section.type]({
147
147
  currentDate: fieldValueManager.getDateFromSection(value, section),
@@ -276,10 +276,10 @@ const useFieldState = parameters => {
276
276
  }
277
277
 
278
278
  /**
279
- * If all the sections are filled but the date is invalid,
279
+ * If all the sections are filled but the date is invalid and the previous date is valid or null,
280
280
  * Then we publish an invalid date.
281
281
  */
282
- if (newActiveDateSections.every(sectionBis => sectionBis.value !== '')) {
282
+ if (newActiveDateSections.every(sectionBis => sectionBis.value !== '') && (activeDate == null || utils.isValid(activeDate))) {
283
283
  setSectionUpdateToApplyOnNextInvalidDate(newSectionValue);
284
284
  return publishValue(fieldValueManager.updateDateInValue(value, section, newActiveDate));
285
285
  }
@@ -98,6 +98,7 @@ const useMobilePicker = _ref => {
98
98
  })]
99
99
  })
100
100
  }));
101
+ if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
101
102
  return {
102
103
  renderPicker
103
104
  };
@@ -8,6 +8,7 @@ exports.PickerFieldPrivateContext = void 0;
8
8
  exports.useNullableFieldPrivateContext = useNullableFieldPrivateContext;
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  const PickerFieldPrivateContext = exports.PickerFieldPrivateContext = /*#__PURE__*/React.createContext(null);
11
+ if (process.env.NODE_ENV !== "production") PickerFieldPrivateContext.displayName = "PickerFieldPrivateContext";
11
12
  function useNullableFieldPrivateContext() {
12
13
  return React.useContext(PickerFieldPrivateContext);
13
14
  }
@@ -71,6 +71,7 @@ const useStaticPicker = _ref => {
71
71
  children: renderCurrentView()
72
72
  }))
73
73
  }));
74
+ if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
74
75
  return {
75
76
  renderPicker
76
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "8.3.1",
3
+ "version": "8.4.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The community edition of the MUI X Date and Time Picker components.",
6
6
  "main": "./index.js",
@@ -41,7 +41,7 @@
41
41
  "clsx": "^2.1.1",
42
42
  "prop-types": "^15.8.1",
43
43
  "react-transition-group": "^4.4.5",
44
- "@mui/x-internals": "8.3.1"
44
+ "@mui/x-internals": "8.4.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@emotion/react": "^11.9.0",
@@ -71,6 +71,7 @@ const renderTimeViewClock = ({
71
71
  timezone: timezone
72
72
  });
73
73
  exports.renderTimeViewClock = renderTimeViewClock;
74
+ if (process.env.NODE_ENV !== "production") renderTimeViewClock.displayName = "renderTimeViewClock";
74
75
  const renderDigitalClockTimeView = ({
75
76
  view,
76
77
  onViewChange,
@@ -131,6 +132,7 @@ const renderDigitalClockTimeView = ({
131
132
  timezone: timezone
132
133
  });
133
134
  exports.renderDigitalClockTimeView = renderDigitalClockTimeView;
135
+ if (process.env.NODE_ENV !== "production") renderDigitalClockTimeView.displayName = "renderDigitalClockTimeView";
134
136
  const renderMultiSectionDigitalClockTimeView = ({
135
137
  view,
136
138
  onViewChange,
@@ -190,4 +192,5 @@ const renderMultiSectionDigitalClockTimeView = ({
190
192
  skipDisabled: skipDisabled,
191
193
  timezone: timezone
192
194
  });
193
- exports.renderMultiSectionDigitalClockTimeView = renderMultiSectionDigitalClockTimeView;
195
+ exports.renderMultiSectionDigitalClockTimeView = renderMultiSectionDigitalClockTimeView;
196
+ if (process.env.NODE_ENV !== "production") renderMultiSectionDigitalClockTimeView.displayName = "renderMultiSectionDigitalClockTimeView";