@elliemae/ds-form-date-time-picker 3.4.3-rc.1 → 3.4.3

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 (322) hide show
  1. package/dist/cjs/ControlledDateTimePicker.js +9 -5
  2. package/dist/cjs/ControlledDateTimePicker.js.map +1 -1
  3. package/dist/cjs/ControlledDateTimePickerCTX.js +4 -1
  4. package/dist/cjs/ControlledDateTimePickerCTX.js.map +1 -1
  5. package/dist/cjs/ControlledDateTimePickerDatatestid.js +4 -1
  6. package/dist/cjs/ControlledDateTimePickerDatatestid.js.map +1 -1
  7. package/dist/cjs/ControlledDateTimePickerTypes.js +4 -1
  8. package/dist/cjs/ControlledDateTimePickerTypes.js.map +1 -1
  9. package/dist/cjs/config/useChangeHandlers.js +261 -219
  10. package/dist/cjs/config/useChangeHandlers.js.map +1 -1
  11. package/dist/cjs/config/useControlledDateTimePicker.js +34 -28
  12. package/dist/cjs/config/useControlledDateTimePicker.js.map +2 -2
  13. package/dist/cjs/config/useFocusTracker.js +130 -124
  14. package/dist/cjs/config/useFocusTracker.js.map +1 -1
  15. package/dist/cjs/config/useGetDestructuredValues.js +50 -38
  16. package/dist/cjs/config/useGetDestructuredValues.js.map +1 -1
  17. package/dist/cjs/config/useGetFlags.js +16 -5
  18. package/dist/cjs/config/useGetFlags.js.map +2 -2
  19. package/dist/cjs/config/useGetPropsBasedOnType.js +60 -54
  20. package/dist/cjs/config/useGetPropsBasedOnType.js.map +1 -1
  21. package/dist/cjs/config/useGetPropsWithDefault.js +4 -1
  22. package/dist/cjs/config/useGetPropsWithDefault.js.map +1 -1
  23. package/dist/cjs/config/useGetReferences.js +35 -29
  24. package/dist/cjs/config/useGetReferences.js.map +1 -1
  25. package/dist/cjs/config/useGlobalKeyHandlers.js +63 -51
  26. package/dist/cjs/config/useGlobalKeyHandlers.js.map +1 -1
  27. package/dist/cjs/config/useRelevantValueFromProps.js +15 -9
  28. package/dist/cjs/config/useRelevantValueFromProps.js.map +1 -1
  29. package/dist/cjs/config/useValidateProps.js +33 -14
  30. package/dist/cjs/config/useValidateProps.js.map +1 -1
  31. package/dist/cjs/exported-related/theming.js +4 -1
  32. package/dist/cjs/exported-related/theming.js.map +1 -1
  33. package/dist/cjs/index.js +4 -1
  34. package/dist/cjs/index.js.map +1 -1
  35. package/dist/cjs/parts/ClearButton/ClearButton.js +12 -7
  36. package/dist/cjs/parts/ClearButton/ClearButton.js.map +1 -1
  37. package/dist/cjs/parts/ClearButton/useClearButton.js +45 -33
  38. package/dist/cjs/parts/ClearButton/useClearButton.js.map +1 -1
  39. package/dist/cjs/parts/ControlledDateTimePickerContent.js +31 -16
  40. package/dist/cjs/parts/ControlledDateTimePickerContent.js.map +1 -1
  41. package/dist/cjs/parts/DateInputs/DDInput.js +42 -33
  42. package/dist/cjs/parts/DateInputs/DDInput.js.map +2 -2
  43. package/dist/cjs/parts/DateInputs/DateInputs.js +63 -42
  44. package/dist/cjs/parts/DateInputs/DateInputs.js.map +2 -2
  45. package/dist/cjs/parts/DateInputs/MMInput.js +56 -35
  46. package/dist/cjs/parts/DateInputs/MMInput.js.map +3 -3
  47. package/dist/cjs/parts/DateInputs/YYYYInput.js +42 -33
  48. package/dist/cjs/parts/DateInputs/YYYYInput.js.map +2 -2
  49. package/dist/cjs/parts/DateInputs/useDateInputs.js +296 -254
  50. package/dist/cjs/parts/DateInputs/useDateInputs.js.map +2 -2
  51. package/dist/cjs/parts/Pickers/Calendar/Calendar.js +24 -9
  52. package/dist/cjs/parts/Pickers/Calendar/Calendar.js.map +1 -1
  53. package/dist/cjs/parts/Pickers/Calendar/CalendarBody.js +14 -4
  54. package/dist/cjs/parts/Pickers/Calendar/CalendarBody.js.map +2 -2
  55. package/dist/cjs/parts/Pickers/Calendar/CalendarContent.js +18 -7
  56. package/dist/cjs/parts/Pickers/Calendar/CalendarContent.js.map +1 -1
  57. package/dist/cjs/parts/Pickers/Calendar/CalendarContext.js +4 -1
  58. package/dist/cjs/parts/Pickers/Calendar/CalendarContext.js.map +1 -1
  59. package/dist/cjs/parts/Pickers/Calendar/CalendarDaysList.js +35 -27
  60. package/dist/cjs/parts/Pickers/Calendar/CalendarDaysList.js.map +2 -2
  61. package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js +10 -5
  62. package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js.map +1 -1
  63. package/dist/cjs/parts/Pickers/Calendar/CalendarHead.js +112 -83
  64. package/dist/cjs/parts/Pickers/Calendar/CalendarHead.js.map +1 -1
  65. package/dist/cjs/parts/Pickers/Calendar/CalendarIconTrigger.js +21 -13
  66. package/dist/cjs/parts/Pickers/Calendar/CalendarIconTrigger.js.map +1 -1
  67. package/dist/cjs/parts/Pickers/Calendar/CalendarMonthDays.js +7 -3
  68. package/dist/cjs/parts/Pickers/Calendar/CalendarMonthDays.js.map +1 -1
  69. package/dist/cjs/parts/Pickers/Calendar/CalendarWeekDays.js +55 -34
  70. package/dist/cjs/parts/Pickers/Calendar/CalendarWeekDays.js.map +2 -2
  71. package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js +11 -6
  72. package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js.map +1 -1
  73. package/dist/cjs/parts/Pickers/Calendar/Day.js +73 -58
  74. package/dist/cjs/parts/Pickers/Calendar/Day.js.map +1 -1
  75. package/dist/cjs/parts/Pickers/Calendar/Styleds.js +4 -1
  76. package/dist/cjs/parts/Pickers/Calendar/Styleds.js.map +1 -1
  77. package/dist/cjs/parts/Pickers/Calendar/useConfigCalendarCTX.js +29 -23
  78. package/dist/cjs/parts/Pickers/Calendar/useConfigCalendarCTX.js.map +1 -1
  79. package/dist/cjs/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js +38 -26
  80. package/dist/cjs/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js.map +1 -1
  81. package/dist/cjs/parts/Pickers/Calendar/useFocusLogic.js +34 -18
  82. package/dist/cjs/parts/Pickers/Calendar/useFocusLogic.js.map +1 -1
  83. package/dist/cjs/parts/Pickers/Calendar/useKeyboardHandlers.js +190 -166
  84. package/dist/cjs/parts/Pickers/Calendar/useKeyboardHandlers.js.map +1 -1
  85. package/dist/cjs/parts/Pickers/Calendar/usePopperTriggerLogic.js +33 -21
  86. package/dist/cjs/parts/Pickers/Calendar/usePopperTriggerLogic.js.map +1 -1
  87. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheel.js +22 -8
  88. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheel.js.map +1 -1
  89. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js +14 -5
  90. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +1 -1
  91. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContext.js +7 -2
  92. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContext.js.map +1 -1
  93. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +10 -5
  94. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +1 -1
  95. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +27 -19
  96. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +1 -1
  97. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +11 -6
  98. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +1 -1
  99. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/Styleds.js +4 -1
  100. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/Styleds.js.map +1 -1
  101. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js +67 -52
  102. package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js.map +1 -1
  103. package/dist/cjs/parts/Pickers/PickersIcons.js +13 -4
  104. package/dist/cjs/parts/Pickers/PickersIcons.js.map +2 -2
  105. package/dist/cjs/parts/Pickers/TimeWheel/HoursList.js +90 -72
  106. package/dist/cjs/parts/Pickers/TimeWheel/HoursList.js.map +1 -1
  107. package/dist/cjs/parts/Pickers/TimeWheel/MeridiemList.js +102 -76
  108. package/dist/cjs/parts/Pickers/TimeWheel/MeridiemList.js.map +1 -1
  109. package/dist/cjs/parts/Pickers/TimeWheel/MinutesList.js +87 -69
  110. package/dist/cjs/parts/Pickers/TimeWheel/MinutesList.js.map +1 -1
  111. package/dist/cjs/parts/Pickers/TimeWheel/Styleds.js +4 -1
  112. package/dist/cjs/parts/Pickers/TimeWheel/Styleds.js.map +1 -1
  113. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheel.js +24 -9
  114. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheel.js.map +1 -1
  115. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContent.js +35 -6
  116. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContent.js.map +2 -2
  117. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContext.js +4 -1
  118. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContext.js.map +1 -1
  119. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelFooter.js +10 -5
  120. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +1 -1
  121. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +21 -13
  122. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +1 -1
  123. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js +11 -6
  124. package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +1 -1
  125. package/dist/cjs/parts/Pickers/TimeWheel/useConfigTimePickerCTX.js +12 -6
  126. package/dist/cjs/parts/Pickers/TimeWheel/useConfigTimePickerCTX.js.map +1 -1
  127. package/dist/cjs/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js +99 -61
  128. package/dist/cjs/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js.map +1 -1
  129. package/dist/cjs/parts/Pickers/TimeWheel/useKeyboardHandlers.js +163 -145
  130. package/dist/cjs/parts/Pickers/TimeWheel/useKeyboardHandlers.js.map +1 -1
  131. package/dist/cjs/parts/Pickers/TimeWheel/usePopperTriggerLogic.js +42 -30
  132. package/dist/cjs/parts/Pickers/TimeWheel/usePopperTriggerLogic.js.map +1 -1
  133. package/dist/cjs/parts/Styleds.js +4 -1
  134. package/dist/cjs/parts/Styleds.js.map +1 -1
  135. package/dist/cjs/parts/TimeInputs/HHInput.js +44 -35
  136. package/dist/cjs/parts/TimeInputs/HHInput.js.map +2 -2
  137. package/dist/cjs/parts/TimeInputs/MeridiemInput.js +42 -33
  138. package/dist/cjs/parts/TimeInputs/MeridiemInput.js.map +2 -2
  139. package/dist/cjs/parts/TimeInputs/MinutesInput.js +42 -33
  140. package/dist/cjs/parts/TimeInputs/MinutesInput.js.map +2 -2
  141. package/dist/cjs/parts/TimeInputs/TimeInputs.js +60 -40
  142. package/dist/cjs/parts/TimeInputs/TimeInputs.js.map +1 -1
  143. package/dist/cjs/parts/TimeInputs/useTimeInputs.js +234 -201
  144. package/dist/cjs/parts/TimeInputs/useTimeInputs.js.map +1 -1
  145. package/dist/cjs/parts/config.js +4 -1
  146. package/dist/cjs/parts/config.js.map +1 -1
  147. package/dist/cjs/propTypes.js +19 -6
  148. package/dist/cjs/propTypes.js.map +2 -2
  149. package/dist/cjs/sharedTypes.js +4 -1
  150. package/dist/cjs/sharedTypes.js.map +2 -2
  151. package/dist/cjs/utils/constants.js +4 -1
  152. package/dist/cjs/utils/constants.js.map +1 -1
  153. package/dist/cjs/utils/dateHelpers.js +15 -10
  154. package/dist/cjs/utils/dateHelpers.js.map +1 -1
  155. package/dist/cjs/utils/dateTimeHelpers.js +4 -1
  156. package/dist/cjs/utils/dateTimeHelpers.js.map +1 -1
  157. package/dist/cjs/utils/hooks/useGetDayFromDateString.js +4 -1
  158. package/dist/cjs/utils/hooks/useGetDayFromDateString.js.map +1 -1
  159. package/dist/cjs/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.js +4 -1
  160. package/dist/cjs/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.js.map +1 -1
  161. package/dist/cjs/utils/hooks/useGetStartingFocusedDay.js +9 -2
  162. package/dist/cjs/utils/hooks/useGetStartingFocusedDay.js.map +1 -1
  163. package/dist/cjs/utils/hooks/useOnClickOutside.js +4 -1
  164. package/dist/cjs/utils/hooks/useOnClickOutside.js.map +1 -1
  165. package/dist/cjs/utils/numberHelpers.js +4 -1
  166. package/dist/cjs/utils/numberHelpers.js.map +1 -1
  167. package/dist/cjs/utils/stringHelpers.js +4 -1
  168. package/dist/cjs/utils/stringHelpers.js.map +1 -1
  169. package/dist/cjs/utils/timeHelpers.js +4 -1
  170. package/dist/cjs/utils/timeHelpers.js.map +1 -1
  171. package/dist/cjs/utils/typeGuards.js +4 -1
  172. package/dist/cjs/utils/typeGuards.js.map +1 -1
  173. package/dist/esm/ControlledDateTimePicker.js +5 -4
  174. package/dist/esm/ControlledDateTimePicker.js.map +1 -1
  175. package/dist/esm/ControlledDateTimePickerCTX.js.map +1 -1
  176. package/dist/esm/ControlledDateTimePickerDatatestid.js.map +1 -1
  177. package/dist/esm/ControlledDateTimePickerTypes.js.map +1 -1
  178. package/dist/esm/config/useChangeHandlers.js +257 -218
  179. package/dist/esm/config/useChangeHandlers.js.map +1 -1
  180. package/dist/esm/config/useControlledDateTimePicker.js +30 -27
  181. package/dist/esm/config/useControlledDateTimePicker.js.map +2 -2
  182. package/dist/esm/config/useFocusTracker.js +126 -123
  183. package/dist/esm/config/useFocusTracker.js.map +1 -1
  184. package/dist/esm/config/useGetDestructuredValues.js +46 -37
  185. package/dist/esm/config/useGetDestructuredValues.js.map +1 -1
  186. package/dist/esm/config/useGetFlags.js +12 -4
  187. package/dist/esm/config/useGetFlags.js.map +2 -2
  188. package/dist/esm/config/useGetPropsBasedOnType.js +56 -53
  189. package/dist/esm/config/useGetPropsBasedOnType.js.map +1 -1
  190. package/dist/esm/config/useGetPropsWithDefault.js.map +1 -1
  191. package/dist/esm/config/useGetReferences.js +31 -28
  192. package/dist/esm/config/useGetReferences.js.map +1 -1
  193. package/dist/esm/config/useGlobalKeyHandlers.js +59 -50
  194. package/dist/esm/config/useGlobalKeyHandlers.js.map +1 -1
  195. package/dist/esm/config/useRelevantValueFromProps.js +11 -8
  196. package/dist/esm/config/useRelevantValueFromProps.js.map +1 -1
  197. package/dist/esm/config/useValidateProps.js +29 -13
  198. package/dist/esm/config/useValidateProps.js.map +1 -1
  199. package/dist/esm/exported-related/theming.js.map +1 -1
  200. package/dist/esm/index.js.map +1 -1
  201. package/dist/esm/parts/ClearButton/ClearButton.js +8 -6
  202. package/dist/esm/parts/ClearButton/ClearButton.js.map +1 -1
  203. package/dist/esm/parts/ClearButton/useClearButton.js +41 -32
  204. package/dist/esm/parts/ClearButton/useClearButton.js.map +1 -1
  205. package/dist/esm/parts/ControlledDateTimePickerContent.js +27 -15
  206. package/dist/esm/parts/ControlledDateTimePickerContent.js.map +1 -1
  207. package/dist/esm/parts/DateInputs/DDInput.js +38 -32
  208. package/dist/esm/parts/DateInputs/DDInput.js.map +2 -2
  209. package/dist/esm/parts/DateInputs/DateInputs.js +59 -41
  210. package/dist/esm/parts/DateInputs/DateInputs.js.map +2 -2
  211. package/dist/esm/parts/DateInputs/MMInput.js +53 -35
  212. package/dist/esm/parts/DateInputs/MMInput.js.map +3 -3
  213. package/dist/esm/parts/DateInputs/YYYYInput.js +38 -32
  214. package/dist/esm/parts/DateInputs/YYYYInput.js.map +2 -2
  215. package/dist/esm/parts/DateInputs/useDateInputs.js +292 -253
  216. package/dist/esm/parts/DateInputs/useDateInputs.js.map +2 -2
  217. package/dist/esm/parts/Pickers/Calendar/Calendar.js +20 -8
  218. package/dist/esm/parts/Pickers/Calendar/Calendar.js.map +1 -1
  219. package/dist/esm/parts/Pickers/Calendar/CalendarBody.js +10 -3
  220. package/dist/esm/parts/Pickers/Calendar/CalendarBody.js.map +2 -2
  221. package/dist/esm/parts/Pickers/Calendar/CalendarContent.js +14 -6
  222. package/dist/esm/parts/Pickers/Calendar/CalendarContent.js.map +1 -1
  223. package/dist/esm/parts/Pickers/Calendar/CalendarContext.js.map +1 -1
  224. package/dist/esm/parts/Pickers/Calendar/CalendarDaysList.js +31 -26
  225. package/dist/esm/parts/Pickers/Calendar/CalendarDaysList.js.map +2 -2
  226. package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js +6 -4
  227. package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js.map +1 -1
  228. package/dist/esm/parts/Pickers/Calendar/CalendarHead.js +108 -82
  229. package/dist/esm/parts/Pickers/Calendar/CalendarHead.js.map +1 -1
  230. package/dist/esm/parts/Pickers/Calendar/CalendarIconTrigger.js +17 -12
  231. package/dist/esm/parts/Pickers/Calendar/CalendarIconTrigger.js.map +1 -1
  232. package/dist/esm/parts/Pickers/Calendar/CalendarMonthDays.js +3 -2
  233. package/dist/esm/parts/Pickers/Calendar/CalendarMonthDays.js.map +1 -1
  234. package/dist/esm/parts/Pickers/Calendar/CalendarWeekDays.js +51 -33
  235. package/dist/esm/parts/Pickers/Calendar/CalendarWeekDays.js.map +2 -2
  236. package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js +7 -5
  237. package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js.map +1 -1
  238. package/dist/esm/parts/Pickers/Calendar/Day.js +69 -57
  239. package/dist/esm/parts/Pickers/Calendar/Day.js.map +1 -1
  240. package/dist/esm/parts/Pickers/Calendar/Styleds.js.map +1 -1
  241. package/dist/esm/parts/Pickers/Calendar/useConfigCalendarCTX.js +25 -22
  242. package/dist/esm/parts/Pickers/Calendar/useConfigCalendarCTX.js.map +1 -1
  243. package/dist/esm/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js +34 -25
  244. package/dist/esm/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js.map +1 -1
  245. package/dist/esm/parts/Pickers/Calendar/useFocusLogic.js +30 -17
  246. package/dist/esm/parts/Pickers/Calendar/useFocusLogic.js.map +1 -1
  247. package/dist/esm/parts/Pickers/Calendar/useKeyboardHandlers.js +186 -165
  248. package/dist/esm/parts/Pickers/Calendar/useKeyboardHandlers.js.map +1 -1
  249. package/dist/esm/parts/Pickers/Calendar/usePopperTriggerLogic.js +29 -20
  250. package/dist/esm/parts/Pickers/Calendar/usePopperTriggerLogic.js.map +1 -1
  251. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheel.js +18 -7
  252. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheel.js.map +1 -1
  253. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js +10 -4
  254. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +1 -1
  255. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContext.js +3 -1
  256. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContext.js.map +1 -1
  257. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +6 -4
  258. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +1 -1
  259. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +23 -18
  260. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +1 -1
  261. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +7 -5
  262. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +1 -1
  263. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/Styleds.js.map +1 -1
  264. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js +63 -51
  265. package/dist/esm/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js.map +1 -1
  266. package/dist/esm/parts/Pickers/PickersIcons.js +9 -3
  267. package/dist/esm/parts/Pickers/PickersIcons.js.map +2 -2
  268. package/dist/esm/parts/Pickers/TimeWheel/HoursList.js +86 -71
  269. package/dist/esm/parts/Pickers/TimeWheel/HoursList.js.map +1 -1
  270. package/dist/esm/parts/Pickers/TimeWheel/MeridiemList.js +98 -75
  271. package/dist/esm/parts/Pickers/TimeWheel/MeridiemList.js.map +1 -1
  272. package/dist/esm/parts/Pickers/TimeWheel/MinutesList.js +83 -68
  273. package/dist/esm/parts/Pickers/TimeWheel/MinutesList.js.map +1 -1
  274. package/dist/esm/parts/Pickers/TimeWheel/Styleds.js.map +1 -1
  275. package/dist/esm/parts/Pickers/TimeWheel/TimeWheel.js +20 -8
  276. package/dist/esm/parts/Pickers/TimeWheel/TimeWheel.js.map +1 -1
  277. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContent.js +31 -5
  278. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContent.js.map +2 -2
  279. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContext.js.map +1 -1
  280. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelFooter.js +6 -4
  281. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +1 -1
  282. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +17 -12
  283. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +1 -1
  284. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js +7 -5
  285. package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +1 -1
  286. package/dist/esm/parts/Pickers/TimeWheel/useConfigTimePickerCTX.js +8 -5
  287. package/dist/esm/parts/Pickers/TimeWheel/useConfigTimePickerCTX.js.map +1 -1
  288. package/dist/esm/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js +95 -60
  289. package/dist/esm/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js.map +1 -1
  290. package/dist/esm/parts/Pickers/TimeWheel/useKeyboardHandlers.js +159 -144
  291. package/dist/esm/parts/Pickers/TimeWheel/useKeyboardHandlers.js.map +1 -1
  292. package/dist/esm/parts/Pickers/TimeWheel/usePopperTriggerLogic.js +38 -29
  293. package/dist/esm/parts/Pickers/TimeWheel/usePopperTriggerLogic.js.map +1 -1
  294. package/dist/esm/parts/Styleds.js.map +1 -1
  295. package/dist/esm/parts/TimeInputs/HHInput.js +40 -34
  296. package/dist/esm/parts/TimeInputs/HHInput.js.map +2 -2
  297. package/dist/esm/parts/TimeInputs/MeridiemInput.js +38 -32
  298. package/dist/esm/parts/TimeInputs/MeridiemInput.js.map +2 -2
  299. package/dist/esm/parts/TimeInputs/MinutesInput.js +38 -32
  300. package/dist/esm/parts/TimeInputs/MinutesInput.js.map +2 -2
  301. package/dist/esm/parts/TimeInputs/TimeInputs.js +56 -39
  302. package/dist/esm/parts/TimeInputs/TimeInputs.js.map +1 -1
  303. package/dist/esm/parts/TimeInputs/useTimeInputs.js +230 -200
  304. package/dist/esm/parts/TimeInputs/useTimeInputs.js.map +1 -1
  305. package/dist/esm/parts/config.js.map +1 -1
  306. package/dist/esm/propTypes.js +15 -5
  307. package/dist/esm/propTypes.js.map +2 -2
  308. package/dist/esm/sharedTypes.js.map +1 -1
  309. package/dist/esm/utils/constants.js.map +1 -1
  310. package/dist/esm/utils/dateHelpers.js +11 -9
  311. package/dist/esm/utils/dateHelpers.js.map +1 -1
  312. package/dist/esm/utils/dateTimeHelpers.js.map +1 -1
  313. package/dist/esm/utils/hooks/useGetDayFromDateString.js.map +1 -1
  314. package/dist/esm/utils/hooks/useGetMonthYearFromDateStringOrEmptyStartingMonth.js.map +1 -1
  315. package/dist/esm/utils/hooks/useGetStartingFocusedDay.js +5 -1
  316. package/dist/esm/utils/hooks/useGetStartingFocusedDay.js.map +1 -1
  317. package/dist/esm/utils/hooks/useOnClickOutside.js.map +1 -1
  318. package/dist/esm/utils/numberHelpers.js.map +1 -1
  319. package/dist/esm/utils/stringHelpers.js.map +1 -1
  320. package/dist/esm/utils/timeHelpers.js.map +1 -1
  321. package/dist/esm/utils/typeGuards.js.map +1 -1
  322. package/package.json +8 -8
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- import React2, { useContext } from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { useContext } from "react";
3
4
  import { CloseMedium } from "@elliemae/ds-icons";
4
5
  import { DSIconColors } from "@elliemae/ds-icon";
5
6
  import { BUTTON_SIZES } from "@elliemae/ds-button";
@@ -13,7 +14,7 @@ const ClearButton = () => {
13
14
  shouldDisplay: withClearBtn
14
15
  };
15
16
  const { latestInteractionRegion, currFocusDescriber } = useContext(ControlledDateTimePickerContext);
16
- return /* @__PURE__ */ React2.createElement(StyledClearButton, {
17
+ return /* @__PURE__ */ jsx(StyledClearButton, {
17
18
  "aria-label": "clear selected date",
18
19
  buttonType: "icon",
19
20
  size: BUTTON_SIZES.M,
@@ -26,10 +27,11 @@ const ClearButton = () => {
26
27
  onClick: onClearClick,
27
28
  onKeyDown: onClearButtonKeyDown,
28
29
  type: "button",
29
- ...styledsAttrs
30
- }, /* @__PURE__ */ React2.createElement(CloseMedium, {
31
- color: DSIconColors.PRIMARY
32
- }));
30
+ ...styledsAttrs,
31
+ children: /* @__PURE__ */ jsx(CloseMedium, {
32
+ color: DSIconColors.PRIMARY
33
+ })
34
+ });
33
35
  };
34
36
  export {
35
37
  ClearButton
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/ClearButton/ClearButton.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment */\nimport React, { useContext } from 'react';\nimport { CloseMedium } from '@elliemae/ds-icons';\nimport { DSIconColors } from '@elliemae/ds-icon';\nimport { BUTTON_SIZES } from '@elliemae/ds-button';\nimport { StyledClearButton } from '../Styleds';\nimport { ControlledDateTimePickerDatatestid } from '../../ControlledDateTimePickerDatatestid';\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX';\nimport { useClearButton } from './useClearButton';\n\nexport const ClearButton = (): JSX.Element => {\n const { onClearClick, onClearButtonKeyDown, clearButtonRef, withClearBtn } = useClearButton();\n const styledsAttrs = {\n shouldDisplay: withClearBtn,\n };\n const { latestInteractionRegion, currFocusDescriber } = useContext(ControlledDateTimePickerContext);\n\n return (\n <StyledClearButton\n aria-label=\"clear selected date\"\n buttonType=\"icon\"\n size={BUTTON_SIZES.M}\n data-testid={ControlledDateTimePickerDatatestid.CLEAR_BUTTON}\n innerRef={(DomElem: HTMLButtonElement) => {\n clearButtonRef.current = DomElem;\n if (latestInteractionRegion === 'clear-btn' && currFocusDescriber === 'clear-btn') DomElem?.focus?.();\n }}\n onClick={onClearClick}\n onKeyDown={onClearButtonKeyDown}\n type=\"button\"\n {...styledsAttrs}\n >\n <CloseMedium color={DSIconColors.PRIMARY} />\n </StyledClearButton>\n );\n};\n"],
5
- "mappings": "AAAA;ACCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,cAAc,MAAmB;AAC5C,QAAM,EAAE,cAAc,sBAAsB,gBAAgB,iBAAiB,eAAe;AAC5F,QAAM,eAAe;AAAA,IACnB,eAAe;AAAA,EACjB;AACA,QAAM,EAAE,yBAAyB,uBAAuB,WAAW,+BAA+B;AAElG,SACE,qCAAC;AAAA,IACC,cAAW;AAAA,IACX,YAAW;AAAA,IACX,MAAM,aAAa;AAAA,IACnB,eAAa,mCAAmC;AAAA,IAChD,UAAU,CAAC,YAA+B;AACxC,qBAAe,UAAU;AACzB,UAAI,4BAA4B,eAAe,uBAAuB;AAAa,iBAAS,QAAQ;AAAA,IACtG;AAAA,IACA,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAK;AAAA,IACJ,GAAG;AAAA,KAEJ,qCAAC;AAAA,IAAY,OAAO,aAAa;AAAA,GAAS,CAC5C;AAEJ;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,SAAgB,kBAAkB;AAClC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,yBAAyB;AAClC,SAAS,0CAA0C;AACnD,SAAS,uCAAuC;AAChD,SAAS,sBAAsB;AAExB,MAAM,cAAc,MAAmB;AAC5C,QAAM,EAAE,cAAc,sBAAsB,gBAAgB,aAAa,IAAI,eAAe;AAC5F,QAAM,eAAe;AAAA,IACnB,eAAe;AAAA,EACjB;AACA,QAAM,EAAE,yBAAyB,mBAAmB,IAAI,WAAW,+BAA+B;AAElG,SACE,oBAAC;AAAA,IACC,cAAW;AAAA,IACX,YAAW;AAAA,IACX,MAAM,aAAa;AAAA,IACnB,eAAa,mCAAmC;AAAA,IAChD,UAAU,CAAC,YAA+B;AACxC,qBAAe,UAAU;AACzB,UAAI,4BAA4B,eAAe,uBAAuB;AAAa,iBAAS,QAAQ;AAAA,IACtG;AAAA,IACA,SAAS;AAAA,IACT,WAAW;AAAA,IACX,MAAK;AAAA,IACJ,GAAG;AAAA,IAEJ,8BAAC;AAAA,MAAY,OAAO,aAAa;AAAA,KAAS;AAAA,GAC5C;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -15,10 +15,13 @@ const useClearButton = () => {
15
15
  trackFocusYearInput,
16
16
  trackFocusPicker
17
17
  } = useContext(ControlledDateTimePickerContext);
18
- const onClearClick = useCallback((e) => {
19
- handleClearAll(e);
20
- trackFocusFirstSegment();
21
- }, [handleClearAll, trackFocusFirstSegment]);
18
+ const onClearClick = useCallback(
19
+ (e) => {
20
+ handleClearAll(e);
21
+ trackFocusFirstSegment();
22
+ },
23
+ [handleClearAll, trackFocusFirstSegment]
24
+ );
22
25
  const onHomeKeyDown = useCallback(() => {
23
26
  trackFocusFirstSegment();
24
27
  }, [trackFocusFirstSegment]);
@@ -26,34 +29,40 @@ const useClearButton = () => {
26
29
  if (withAnyPicker)
27
30
  trackFocusPicker();
28
31
  }, [withAnyPicker, trackFocusPicker]);
29
- const onClearButtonKeyDown = useCallback((e) => {
30
- const { key } = e;
31
- const preventDefaultKeys = ["Home", "End"];
32
- const stopPropagationKeys = ["Home", "End"];
33
- if (preventDefaultKeys.includes(key))
34
- e.preventDefault();
35
- if (stopPropagationKeys.includes(key))
36
- e.stopPropagation();
37
- if (key === "Home")
38
- onHomeKeyDown();
39
- if (key === "End")
40
- onEndKeyDown();
41
- if (key === "Backspace" && withAnyInputs) {
42
- if (isWithTimeInputs)
43
- trackFocusMeridiemInput();
44
- else if (isWithDateInputs)
45
- trackFocusYearInput();
46
- }
47
- }, [
48
- isWithDateInputs,
49
- isWithTimeInputs,
50
- onEndKeyDown,
51
- onHomeKeyDown,
52
- trackFocusMeridiemInput,
53
- trackFocusYearInput,
54
- withAnyInputs
55
- ]);
56
- return useMemo(() => ({ onClearClick, onClearButtonKeyDown, clearButtonRef, withAnyPicker, withClearBtn }), [onClearClick, onClearButtonKeyDown, clearButtonRef, withAnyPicker, withClearBtn]);
32
+ const onClearButtonKeyDown = useCallback(
33
+ (e) => {
34
+ const { key } = e;
35
+ const preventDefaultKeys = ["Home", "End"];
36
+ const stopPropagationKeys = ["Home", "End"];
37
+ if (preventDefaultKeys.includes(key))
38
+ e.preventDefault();
39
+ if (stopPropagationKeys.includes(key))
40
+ e.stopPropagation();
41
+ if (key === "Home")
42
+ onHomeKeyDown();
43
+ if (key === "End")
44
+ onEndKeyDown();
45
+ if (key === "Backspace" && withAnyInputs) {
46
+ if (isWithTimeInputs)
47
+ trackFocusMeridiemInput();
48
+ else if (isWithDateInputs)
49
+ trackFocusYearInput();
50
+ }
51
+ },
52
+ [
53
+ isWithDateInputs,
54
+ isWithTimeInputs,
55
+ onEndKeyDown,
56
+ onHomeKeyDown,
57
+ trackFocusMeridiemInput,
58
+ trackFocusYearInput,
59
+ withAnyInputs
60
+ ]
61
+ );
62
+ return useMemo(
63
+ () => ({ onClearClick, onClearButtonKeyDown, clearButtonRef, withAnyPicker, withClearBtn }),
64
+ [onClearClick, onClearButtonKeyDown, clearButtonRef, withAnyPicker, withClearBtn]
65
+ );
57
66
  };
58
67
  export {
59
68
  useClearButton
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/ClearButton/useClearButton.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-statements */\n/* eslint-disable max-lines */\nimport { useCallback, useMemo, useContext } from 'react';\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX';\nimport type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes';\n\ninterface UseOnClearClickR {\n onClearClick: DSControlledDateTimePickerInternalsT.OnDSBtnClick;\n onClearButtonKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown<HTMLButtonElement>;\n clearButtonRef: React.MutableRefObject<HTMLButtonElement | null>;\n withAnyPicker: boolean;\n withClearBtn: boolean;\n}\nexport const useClearButton = (): UseOnClearClickR => {\n const {\n handleClearAll,\n clearButtonRef,\n withAnyPicker,\n withClearBtn,\n withAnyInputs,\n isWithTimeInputs,\n isWithDateInputs,\n trackFocusFirstSegment,\n trackFocusMeridiemInput,\n trackFocusYearInput,\n trackFocusPicker,\n } = useContext(ControlledDateTimePickerContext);\n\n const onClearClick: DSControlledDateTimePickerInternalsT.OnDSBtnClick = useCallback(\n (e) => {\n handleClearAll(e);\n trackFocusFirstSegment();\n },\n [handleClearAll, trackFocusFirstSegment],\n );\n const onHomeKeyDown = useCallback(() => {\n trackFocusFirstSegment();\n }, [trackFocusFirstSegment]);\n const onEndKeyDown = useCallback(() => {\n if (withAnyPicker) trackFocusPicker();\n }, [withAnyPicker, trackFocusPicker]);\n\n const onClearButtonKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown<HTMLButtonElement> = useCallback(\n (e) => {\n const { key } = e;\n const preventDefaultKeys = ['Home', 'End'];\n const stopPropagationKeys = ['Home', 'End'];\n if (preventDefaultKeys.includes(key)) e.preventDefault();\n if (stopPropagationKeys.includes(key)) e.stopPropagation();\n if (key === 'Home') onHomeKeyDown();\n if (key === 'End') onEndKeyDown();\n if (key === 'Backspace' && withAnyInputs) {\n if (isWithTimeInputs) trackFocusMeridiemInput();\n else if (isWithDateInputs) trackFocusYearInput();\n }\n },\n [\n isWithDateInputs,\n isWithTimeInputs,\n onEndKeyDown,\n onHomeKeyDown,\n trackFocusMeridiemInput,\n trackFocusYearInput,\n withAnyInputs,\n ],\n );\n\n return useMemo(\n () => ({ onClearClick, onClearButtonKeyDown, clearButtonRef, withAnyPicker, withClearBtn }),\n [onClearClick, onClearButtonKeyDown, clearButtonRef, withAnyPicker, withClearBtn],\n );\n};\n"],
5
- "mappings": "AAAA;ACEA;AACA;AAUO,MAAM,iBAAiB,MAAwB;AACpD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,WAAW,+BAA+B;AAE9C,QAAM,eAAkE,YACtE,CAAC,MAAM;AACL,mBAAe,CAAC;AAChB,2BAAuB;AAAA,EACzB,GACA,CAAC,gBAAgB,sBAAsB,CACzC;AACA,QAAM,gBAAgB,YAAY,MAAM;AACtC,2BAAuB;AAAA,EACzB,GAAG,CAAC,sBAAsB,CAAC;AAC3B,QAAM,eAAe,YAAY,MAAM;AACrC,QAAI;AAAe,uBAAiB;AAAA,EACtC,GAAG,CAAC,eAAe,gBAAgB,CAAC;AAEpC,QAAM,uBAA0F,YAC9F,CAAC,MAAM;AACL,UAAM,EAAE,QAAQ;AAChB,UAAM,qBAAqB,CAAC,QAAQ,KAAK;AACzC,UAAM,sBAAsB,CAAC,QAAQ,KAAK;AAC1C,QAAI,mBAAmB,SAAS,GAAG;AAAG,QAAE,eAAe;AACvD,QAAI,oBAAoB,SAAS,GAAG;AAAG,QAAE,gBAAgB;AACzD,QAAI,QAAQ;AAAQ,oBAAc;AAClC,QAAI,QAAQ;AAAO,mBAAa;AAChC,QAAI,QAAQ,eAAe,eAAe;AACxC,UAAI;AAAkB,gCAAwB;AAAA,eACrC;AAAkB,4BAAoB;AAAA,IACjD;AAAA,EACF,GACA;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CACF;AAEA,SAAO,QACL,MAAO,GAAE,cAAc,sBAAsB,gBAAgB,eAAe,aAAa,IACzF,CAAC,cAAc,sBAAsB,gBAAgB,eAAe,YAAY,CAClF;AACF;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,aAAa,SAAS,kBAAkB;AACjD,SAAS,uCAAuC;AAUzC,MAAM,iBAAiB,MAAwB;AACpD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,WAAW,+BAA+B;AAE9C,QAAM,eAAkE;AAAA,IACtE,CAAC,MAAM;AACL,qBAAe,CAAC;AAChB,6BAAuB;AAAA,IACzB;AAAA,IACA,CAAC,gBAAgB,sBAAsB;AAAA,EACzC;AACA,QAAM,gBAAgB,YAAY,MAAM;AACtC,2BAAuB;AAAA,EACzB,GAAG,CAAC,sBAAsB,CAAC;AAC3B,QAAM,eAAe,YAAY,MAAM;AACrC,QAAI;AAAe,uBAAiB;AAAA,EACtC,GAAG,CAAC,eAAe,gBAAgB,CAAC;AAEpC,QAAM,uBAA0F;AAAA,IAC9F,CAAC,MAAM;AACL,YAAM,EAAE,IAAI,IAAI;AAChB,YAAM,qBAAqB,CAAC,QAAQ,KAAK;AACzC,YAAM,sBAAsB,CAAC,QAAQ,KAAK;AAC1C,UAAI,mBAAmB,SAAS,GAAG;AAAG,UAAE,eAAe;AACvD,UAAI,oBAAoB,SAAS,GAAG;AAAG,UAAE,gBAAgB;AACzD,UAAI,QAAQ;AAAQ,sBAAc;AAClC,UAAI,QAAQ;AAAO,qBAAa;AAChC,UAAI,QAAQ,eAAe,eAAe;AACxC,YAAI;AAAkB,kCAAwB;AAAA,iBACrC;AAAkB,8BAAoB;AAAA,MACjD;AAAA,IACF;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL,OAAO,EAAE,cAAc,sBAAsB,gBAAgB,eAAe,aAAa;AAAA,IACzF,CAAC,cAAc,sBAAsB,gBAAgB,eAAe,YAAY;AAAA,EAClF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- import React2, { useContext } from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useContext } from "react";
3
4
  import { Grid } from "@elliemae/ds-grid";
4
5
  import { ControlledDateTimePickerContext } from "../ControlledDateTimePickerCTX";
5
6
  import { StyledInputsWrapperGrid } from "./Styleds";
@@ -43,20 +44,31 @@ const ControlledDateTimePickerContent = () => {
43
44
  rightControlCols.push("28px");
44
45
  if (withAnyPicker)
45
46
  rightControlCols.push("auto");
46
- return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(StyledInputsWrapperGrid, {
47
- cols: mainCols,
48
- gutter: "xxs",
49
- pr: hideDatePicker && hideTimePicker && hideDateTimePicker ? "2px" : void 0,
50
- onKeyDown: onGlobalKeyDown,
51
- disabled,
52
- onBlur: trackFocusResetter,
53
- "data-testid": ControlledDateTimePickerDatatestid.CONTAINER,
54
- ...styledsAttrs,
55
- ...globalAttrs,
56
- ...xstyledAttrs
57
- }, hideDate ? null : /* @__PURE__ */ React2.createElement(DateInputs, null), hideTime ? null : /* @__PURE__ */ React2.createElement(TimeInputs, null), withAnyRightController ? /* @__PURE__ */ React2.createElement(Grid, {
58
- cols: rightControlCols
59
- }, shouldPreserveClearableSpace ? /* @__PURE__ */ React2.createElement(ClearButton, null) : null, withAnyPicker ? /* @__PURE__ */ React2.createElement(PickersIcons, null) : null) : null));
47
+ return /* @__PURE__ */ jsx(Fragment, {
48
+ children: /* @__PURE__ */ jsxs(StyledInputsWrapperGrid, {
49
+ cols: mainCols,
50
+ gutter: "xxs",
51
+ pr: hideDatePicker && hideTimePicker && hideDateTimePicker ? "2px" : void 0,
52
+ onKeyDown: onGlobalKeyDown,
53
+ disabled,
54
+ onBlur: trackFocusResetter,
55
+ "data-testid": ControlledDateTimePickerDatatestid.CONTAINER,
56
+ ...styledsAttrs,
57
+ ...globalAttrs,
58
+ ...xstyledAttrs,
59
+ children: [
60
+ hideDate ? null : /* @__PURE__ */ jsx(DateInputs, {}),
61
+ hideTime ? null : /* @__PURE__ */ jsx(TimeInputs, {}),
62
+ withAnyRightController ? /* @__PURE__ */ jsxs(Grid, {
63
+ cols: rightControlCols,
64
+ children: [
65
+ shouldPreserveClearableSpace ? /* @__PURE__ */ jsx(ClearButton, {}) : null,
66
+ withAnyPicker ? /* @__PURE__ */ jsx(PickersIcons, {}) : null
67
+ ]
68
+ }) : null
69
+ ]
70
+ })
71
+ });
60
72
  };
61
73
  export {
62
74
  ControlledDateTimePickerContent
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/ControlledDateTimePickerContent.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\nimport React, { useContext } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { ControlledDateTimePickerContext } from '../ControlledDateTimePickerCTX';\nimport { StyledInputsWrapperGrid } from './Styleds';\nimport { DateInputs } from './DateInputs/DateInputs';\nimport { TimeInputs } from './TimeInputs/TimeInputs';\nimport { PickersIcons } from './Pickers/PickersIcons';\nimport { ClearButton } from './ClearButton/ClearButton';\nimport { ControlledDateTimePickerDatatestid } from '../ControlledDateTimePickerDatatestid';\n\nexport const ControlledDateTimePickerContent = (): JSX.Element => {\n const {\n props: { hasError, disabled },\n hideDate,\n hideDatePicker,\n hideTime,\n hideTimePicker,\n hideDateTimePicker,\n withAnyPicker,\n withAnyRightController,\n shouldPreserveClearableSpace,\n isControllerOnly,\n globalAttrs,\n xstyledAttrs,\n onGlobalKeyDown,\n trackFocusResetter,\n } = useContext(ControlledDateTimePickerContext);\n\n const styledsAttrs = {\n justPicker: hideDate && hideTime,\n withAnyPicker,\n hasError,\n isControllerOnly,\n };\n\n const mainCols = [];\n if (!hideDate) mainCols.push('auto');\n if (!hideTime) mainCols.push('auto');\n if (withAnyRightController) mainCols.push('auto');\n\n const rightControlCols = [];\n if (shouldPreserveClearableSpace) rightControlCols.push('28px');\n if (withAnyPicker) rightControlCols.push('auto');\n\n return (\n <>\n {/* The <div> element is catching the component-wise global hotkeys, there is no valid aria role for this */}\n {/* eslint-disable-next-line max-len */}\n {/* https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md#case-the-event-handler-is-only-being-used-to-capture-bubbled-events */}\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}\n <StyledInputsWrapperGrid\n cols={mainCols}\n gutter=\"xxs\"\n pr={hideDatePicker && hideTimePicker && hideDateTimePicker ? '2px' : undefined}\n onKeyDown={onGlobalKeyDown}\n disabled={disabled}\n onBlur={trackFocusResetter}\n data-testid={ControlledDateTimePickerDatatestid.CONTAINER}\n {...styledsAttrs}\n {...globalAttrs}\n {...xstyledAttrs}\n >\n {hideDate ? null : <DateInputs />}\n {hideTime ? null : <TimeInputs />}\n {withAnyRightController ? (\n <Grid cols={rightControlCols}>\n {shouldPreserveClearableSpace ? <ClearButton /> : null}\n {withAnyPicker ? <PickersIcons /> : null}\n </Grid>\n ) : null}\n </StyledInputsWrapperGrid>\n </>\n );\n};\n"],
5
- "mappings": "AAAA;ACCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,kCAAkC,MAAmB;AAChE,QAAM;AAAA,IACJ,OAAO,EAAE,UAAU;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,WAAW,+BAA+B;AAE9C,QAAM,eAAe;AAAA,IACnB,YAAY,YAAY;AAAA,IACxB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,WAAW,CAAC;AAClB,MAAI,CAAC;AAAU,aAAS,KAAK,MAAM;AACnC,MAAI,CAAC;AAAU,aAAS,KAAK,MAAM;AACnC,MAAI;AAAwB,aAAS,KAAK,MAAM;AAEhD,QAAM,mBAAmB,CAAC;AAC1B,MAAI;AAA8B,qBAAiB,KAAK,MAAM;AAC9D,MAAI;AAAe,qBAAiB,KAAK,MAAM;AAE/C,SACE,4DAKE,qCAAC;AAAA,IACC,MAAM;AAAA,IACN,QAAO;AAAA,IACP,IAAI,kBAAkB,kBAAkB,qBAAqB,QAAQ;AAAA,IACrE,WAAW;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,IACR,eAAa,mCAAmC;AAAA,IAC/C,GAAG;AAAA,IACH,GAAG;AAAA,IACH,GAAG;AAAA,KAEH,WAAW,OAAO,qCAAC,gBAAW,GAC9B,WAAW,OAAO,qCAAC,gBAAW,GAC9B,yBACC,qCAAC;AAAA,IAAK,MAAM;AAAA,KACT,+BAA+B,qCAAC,iBAAY,IAAK,MACjD,gBAAgB,qCAAC,kBAAa,IAAK,IACtC,IACE,IACN,CACF;AAEJ;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AACA,SAAgB,kBAAkB;AAClC,SAAS,YAAY;AACrB,SAAS,uCAAuC;AAChD,SAAS,+BAA+B;AACxC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,mBAAmB;AAC5B,SAAS,0CAA0C;AAE5C,MAAM,kCAAkC,MAAmB;AAChE,QAAM;AAAA,IACJ,OAAO,EAAE,UAAU,SAAS;AAAA,IAC5B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,WAAW,+BAA+B;AAE9C,QAAM,eAAe;AAAA,IACnB,YAAY,YAAY;AAAA,IACxB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,QAAM,WAAW,CAAC;AAClB,MAAI,CAAC;AAAU,aAAS,KAAK,MAAM;AACnC,MAAI,CAAC;AAAU,aAAS,KAAK,MAAM;AACnC,MAAI;AAAwB,aAAS,KAAK,MAAM;AAEhD,QAAM,mBAAmB,CAAC;AAC1B,MAAI;AAA8B,qBAAiB,KAAK,MAAM;AAC9D,MAAI;AAAe,qBAAiB,KAAK,MAAM;AAE/C,SACE;AAAA,IAKE,+BAAC;AAAA,MACC,MAAM;AAAA,MACN,QAAO;AAAA,MACP,IAAI,kBAAkB,kBAAkB,qBAAqB,QAAQ;AAAA,MACrE,WAAW;AAAA,MACX;AAAA,MACA,QAAQ;AAAA,MACR,eAAa,mCAAmC;AAAA,MAC/C,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MAEH;AAAA,mBAAW,OAAO,oBAAC,cAAW;AAAA,QAC9B,WAAW,OAAO,oBAAC,cAAW;AAAA,QAC9B,yBACC,qBAAC;AAAA,UAAK,MAAM;AAAA,UACT;AAAA,2CAA+B,oBAAC,eAAY,IAAK;AAAA,YACjD,gBAAgB,oBAAC,gBAAa,IAAK;AAAA;AAAA,SACtC,IACE;AAAA;AAAA,KACN;AAAA,GACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { jsx } from "react/jsx-runtime";
2
3
  import React2, { useCallback } from "react";
3
4
  import { ControlledDateTimePickerDatatestid } from "../../ControlledDateTimePickerDatatestid";
4
5
  import { Styled2DigitsInput } from "../Styleds";
@@ -9,43 +10,48 @@ const isInvalidDay = (day) => {
9
10
  const numberOnly = regExpNumbers.test(day);
10
11
  return day.length > 2 || day === "00" || !numberOnly || Number.parseInt(day, 10) > 31;
11
12
  };
12
- const DDInput = React2.memo(({
13
- onChange,
14
- onBlur,
15
- onFocus,
16
- onKeyDown,
17
- value,
18
- disabled,
19
- contextRef,
20
- placeholder,
21
- ariaCurrentValueForInputs,
22
- isFocused
23
- }) => {
24
- const validateOnChange = useCallback((e) => {
25
- if (isInvalidDay(e?.target?.value)) {
26
- e.preventDefault();
27
- return;
28
- }
29
- onChange(e);
30
- }, [onChange]);
31
- return /* @__PURE__ */ React2.createElement(Styled2DigitsInput, {
32
- onChange: validateOnChange,
13
+ const DDInput = React2.memo(
14
+ ({
15
+ onChange,
33
16
  onBlur,
34
17
  onFocus,
35
18
  onKeyDown,
36
19
  value,
37
- ref: (DomElem) => {
38
- contextRef.current = DomElem;
39
- if (isFocused)
40
- DomElem?.focus?.();
41
- },
42
- placeholder,
43
- "aria-label": `day input field, ${ariaCurrentValueForInputs}`,
44
- "data-testid": ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY,
45
20
  disabled,
46
- "aria-disabled": disabled
47
- });
48
- });
21
+ contextRef,
22
+ placeholder,
23
+ ariaCurrentValueForInputs,
24
+ isFocused
25
+ }) => {
26
+ const validateOnChange = useCallback(
27
+ (e) => {
28
+ if (isInvalidDay(e?.target?.value)) {
29
+ e.preventDefault();
30
+ return;
31
+ }
32
+ onChange(e);
33
+ },
34
+ [onChange]
35
+ );
36
+ return /* @__PURE__ */ jsx(Styled2DigitsInput, {
37
+ onChange: validateOnChange,
38
+ onBlur,
39
+ onFocus,
40
+ onKeyDown,
41
+ value,
42
+ ref: (DomElem) => {
43
+ contextRef.current = DomElem;
44
+ if (isFocused)
45
+ DomElem?.focus?.();
46
+ },
47
+ placeholder,
48
+ "aria-label": `day input field, ${ariaCurrentValueForInputs}`,
49
+ "data-testid": ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY,
50
+ disabled,
51
+ "aria-disabled": disabled
52
+ });
53
+ }
54
+ );
49
55
  export {
50
56
  DDInput
51
57
  };
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DateInputs/DDInput.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\nimport { ControlledDateTimePickerDatatestid } from '../../ControlledDateTimePickerDatatestid';\nimport { Styled2DigitsInput } from '../Styleds';\nimport type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes';\n\nconst regExpNumbers = /^[0-9]+$/;\nconst isInvalidDay = (day: string) => {\n if (day === '') return false;\n const numberOnly = regExpNumbers.test(day);\n return day.length > 2 || day === '00' || !numberOnly || Number.parseInt(day, 10) > 31;\n};\n\ninterface DDInputsPropsT {\n onChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;\n onBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;\n onFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;\n onKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;\n value: string;\n disabled: boolean;\n placeholder: string;\n ariaCurrentValueForInputs: string;\n contextRef: React.MutableRefObject<HTMLInputElement | null>;\n isFocused: boolean;\n}\nexport const DDInput = React.memo(\n ({\n onChange,\n onBlur,\n onFocus,\n onKeyDown,\n value,\n disabled,\n contextRef,\n placeholder,\n ariaCurrentValueForInputs,\n isFocused,\n }: DDInputsPropsT): JSX.Element => {\n const validateOnChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (isInvalidDay(e?.target?.value)) {\n e.preventDefault();\n return;\n }\n onChange(e);\n },\n [onChange],\n );\n return (\n <Styled2DigitsInput\n onChange={validateOnChange}\n onBlur={onBlur}\n onFocus={onFocus}\n onKeyDown={onKeyDown}\n value={value}\n ref={(DomElem: HTMLInputElement) => {\n (contextRef as React.MutableRefObject<HTMLInputElement>).current = DomElem;\n if (isFocused) DomElem?.focus?.();\n }}\n placeholder={placeholder}\n aria-label={`day input field, ${ariaCurrentValueForInputs}`}\n data-testid={ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY}\n disabled={disabled}\n aria-disabled={disabled}\n />\n );\n },\n);\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AAGA,MAAM,gBAAgB;AACtB,MAAM,eAAe,CAAC,QAAgB;AACpC,MAAI,QAAQ;AAAI,WAAO;AACvB,QAAM,aAAa,cAAc,KAAK,GAAG;AACzC,SAAO,IAAI,SAAS,KAAK,QAAQ,QAAQ,CAAC,cAAc,OAAO,SAAS,KAAK,EAAE,IAAI;AACrF;AAcO,MAAM,UAAU,OAAM,KAC3B,CAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MACiC;AACjC,QAAM,mBAAmB,YACvB,CAAC,MAA2C;AAC1C,QAAI,aAAa,GAAG,QAAQ,KAAK,GAAG;AAClC,QAAE,eAAe;AACjB;AAAA,IACF;AACA,aAAS,CAAC;AAAA,EACZ,GACA,CAAC,QAAQ,CACX;AACA,SACE,qCAAC;AAAA,IACC,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,KAAK,CAAC,YAA8B;AAClC,MAAC,WAAwD,UAAU;AACnE,UAAI;AAAW,iBAAS,QAAQ;AAAA,IAClC;AAAA,IACA;AAAA,IACA,cAAY,oBAAoB;AAAA,IAChC,eAAa,mCAAmC,YAAY;AAAA,IAC5D;AAAA,IACA,iBAAe;AAAA,GACjB;AAEJ,CACF;",
6
- "names": []
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,OAAOA,UAAS,mBAAmB;AACnC,SAAS,0CAA0C;AACnD,SAAS,0BAA0B;AAGnC,MAAM,gBAAgB;AACtB,MAAM,eAAe,CAAC,QAAgB;AACpC,MAAI,QAAQ;AAAI,WAAO;AACvB,QAAM,aAAa,cAAc,KAAK,GAAG;AACzC,SAAO,IAAI,SAAS,KAAK,QAAQ,QAAQ,CAAC,cAAc,OAAO,SAAS,KAAK,EAAE,IAAI;AACrF;AAcO,MAAM,UAAUA,OAAM;AAAA,EAC3B,CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,MAAmC;AACjC,UAAM,mBAAmB;AAAA,MACvB,CAAC,MAA2C;AAC1C,YAAI,aAAa,GAAG,QAAQ,KAAK,GAAG;AAClC,YAAE,eAAe;AACjB;AAAA,QACF;AACA,iBAAS,CAAC;AAAA,MACZ;AAAA,MACA,CAAC,QAAQ;AAAA,IACX;AACA,WACE,oBAAC;AAAA,MACC,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,KAAK,CAAC,YAA8B;AAClC,QAAC,WAAwD,UAAU;AACnE,YAAI;AAAW,mBAAS,QAAQ;AAAA,MAClC;AAAA,MACA;AAAA,MACA,cAAY,oBAAoB;AAAA,MAChC,eAAa,mCAAmC,YAAY;AAAA,MAC5D;AAAA,MACA,iBAAe;AAAA,KACjB;AAAA,EAEJ;AACF;",
6
+ "names": ["React"]
7
7
  }
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- import React2, { useContext } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useContext } from "react";
3
4
  import { Grid } from "@elliemae/ds-grid";
4
5
  import { ControlledDateTimePickerContext } from "../../ControlledDateTimePickerCTX";
5
6
  import { MMInput } from "./MMInput";
@@ -14,6 +15,7 @@ const DateInputs = () => {
14
15
  day,
15
16
  year,
16
17
  autoFocusMonthInput,
18
+ innerRefMonthInput,
17
19
  onMonthChange,
18
20
  onDayChange,
19
21
  onYearChange,
@@ -36,53 +38,69 @@ const DateInputs = () => {
36
38
  latestInteractionRegion,
37
39
  currFocusDescriber
38
40
  } = useContext(ControlledDateTimePickerContext);
39
- return /* @__PURE__ */ React2.createElement(Grid, {
41
+ return /* @__PURE__ */ jsxs(Grid, {
40
42
  cols: [
41
43
  fixedValues.smallInputWidth,
42
44
  fixedValues.separatorWidth,
43
45
  fixedValues.smallInputWidth,
44
46
  fixedValues.separatorWidth,
45
47
  fixedValues.largeInputWidth
48
+ ],
49
+ children: [
50
+ /* @__PURE__ */ jsx(StyledFocusWithIn, {
51
+ children: /* @__PURE__ */ jsx(MMInput, {
52
+ onChange: onMonthChange,
53
+ onBlur: onMonthBlur,
54
+ onFocus: onMonthFocus,
55
+ onKeyDown: onMonthKeyDown,
56
+ value: month,
57
+ contextRef: monthInputRef,
58
+ innerRef: innerRefMonthInput,
59
+ autoFocusMonthInput,
60
+ placeholder: "MM",
61
+ ariaCurrentValueForInputs,
62
+ disabled,
63
+ isFocused: latestInteractionRegion === "date-inputs" && currFocusDescriber === "month-input"
64
+ })
65
+ }),
66
+ /* @__PURE__ */ jsx(StyledSeparator, {
67
+ alignItems: "center",
68
+ children: "/"
69
+ }),
70
+ /* @__PURE__ */ jsx(StyledFocusWithIn, {
71
+ children: /* @__PURE__ */ jsx(DDInput, {
72
+ onChange: onDayChange,
73
+ onBlur: onDayBlur,
74
+ onFocus: onDayFocus,
75
+ onKeyDown: onDayKeyDown,
76
+ value: day,
77
+ contextRef: dayInputRef,
78
+ placeholder: "DD",
79
+ ariaCurrentValueForInputs,
80
+ disabled,
81
+ isFocused: latestInteractionRegion === "date-inputs" && currFocusDescriber === "day-input"
82
+ })
83
+ }),
84
+ /* @__PURE__ */ jsx(StyledSeparator, {
85
+ alignItems: "center",
86
+ children: "/"
87
+ }),
88
+ /* @__PURE__ */ jsx(StyledFocusWithIn, {
89
+ children: /* @__PURE__ */ jsx(YYYYInput, {
90
+ onChange: onYearChange,
91
+ onBlur: onYearBlur,
92
+ onFocus: onYearFocus,
93
+ onKeyDown: onYearKeyDown,
94
+ value: year,
95
+ contextRef: yearInputRef,
96
+ placeholder: "YYYY",
97
+ ariaCurrentValueForInputs,
98
+ disabled,
99
+ isFocused: latestInteractionRegion === "date-inputs" && currFocusDescriber === "year-input"
100
+ })
101
+ })
46
102
  ]
47
- }, /* @__PURE__ */ React2.createElement(StyledFocusWithIn, null, /* @__PURE__ */ React2.createElement(MMInput, {
48
- onChange: onMonthChange,
49
- onBlur: onMonthBlur,
50
- onFocus: onMonthFocus,
51
- onKeyDown: onMonthKeyDown,
52
- value: month,
53
- contextRef: monthInputRef,
54
- autoFocusMonthInput,
55
- placeholder: "MM",
56
- ariaCurrentValueForInputs,
57
- disabled,
58
- isFocused: latestInteractionRegion === "date-inputs" && currFocusDescriber === "month-input"
59
- })), /* @__PURE__ */ React2.createElement(StyledSeparator, {
60
- alignItems: "center"
61
- }, "/"), /* @__PURE__ */ React2.createElement(StyledFocusWithIn, null, /* @__PURE__ */ React2.createElement(DDInput, {
62
- onChange: onDayChange,
63
- onBlur: onDayBlur,
64
- onFocus: onDayFocus,
65
- onKeyDown: onDayKeyDown,
66
- value: day,
67
- contextRef: dayInputRef,
68
- placeholder: "DD",
69
- ariaCurrentValueForInputs,
70
- disabled,
71
- isFocused: latestInteractionRegion === "date-inputs" && currFocusDescriber === "day-input"
72
- })), /* @__PURE__ */ React2.createElement(StyledSeparator, {
73
- alignItems: "center"
74
- }, "/"), /* @__PURE__ */ React2.createElement(StyledFocusWithIn, null, /* @__PURE__ */ React2.createElement(YYYYInput, {
75
- onChange: onYearChange,
76
- onBlur: onYearBlur,
77
- onFocus: onYearFocus,
78
- onKeyDown: onYearKeyDown,
79
- value: year,
80
- contextRef: yearInputRef,
81
- placeholder: "YYYY",
82
- ariaCurrentValueForInputs,
83
- disabled,
84
- isFocused: latestInteractionRegion === "date-inputs" && currFocusDescriber === "year-input"
85
- })));
103
+ });
86
104
  };
87
105
  export {
88
106
  DateInputs
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DateInputs/DateInputs.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX';\nimport { MMInput } from './MMInput';\nimport { DDInput } from './DDInput';\nimport { YYYYInput } from './YYYYInput';\nimport { StyledFocusWithIn, StyledSeparator } from '../Styleds';\nimport { useDateInputs } from './useDateInputs';\nimport { fixedValues } from '../config';\n\nexport const DateInputs = (): JSX.Element => {\n const {\n month,\n day,\n year,\n autoFocusMonthInput,\n onMonthChange,\n onDayChange,\n onYearChange,\n onMonthBlur,\n onDayBlur,\n onYearBlur,\n onMonthFocus,\n onDayFocus,\n onYearFocus,\n onMonthKeyDown,\n onDayKeyDown,\n onYearKeyDown,\n disabled,\n } = useDateInputs();\n // we do this here so MMInput,DDInput,YYYYInput can be pure component memoized via React.memo\n const {\n monthInputRef,\n dayInputRef,\n yearInputRef,\n ariaCurrentValueForInputs,\n latestInteractionRegion,\n currFocusDescriber,\n } = useContext(ControlledDateTimePickerContext);\n\n return (\n <Grid\n cols={[\n fixedValues.smallInputWidth,\n fixedValues.separatorWidth,\n fixedValues.smallInputWidth,\n fixedValues.separatorWidth,\n fixedValues.largeInputWidth,\n ]}\n >\n <StyledFocusWithIn>\n <MMInput\n onChange={onMonthChange}\n onBlur={onMonthBlur}\n onFocus={onMonthFocus}\n onKeyDown={onMonthKeyDown}\n value={month}\n contextRef={monthInputRef}\n autoFocusMonthInput={autoFocusMonthInput}\n placeholder=\"MM\"\n ariaCurrentValueForInputs={ariaCurrentValueForInputs}\n disabled={disabled}\n isFocused={latestInteractionRegion === 'date-inputs' && currFocusDescriber === 'month-input'}\n />\n </StyledFocusWithIn>\n <StyledSeparator alignItems=\"center\">/</StyledSeparator>\n <StyledFocusWithIn>\n <DDInput\n onChange={onDayChange}\n onBlur={onDayBlur}\n onFocus={onDayFocus}\n onKeyDown={onDayKeyDown}\n value={day}\n contextRef={dayInputRef}\n placeholder=\"DD\"\n ariaCurrentValueForInputs={ariaCurrentValueForInputs}\n disabled={disabled}\n isFocused={latestInteractionRegion === 'date-inputs' && currFocusDescriber === 'day-input'}\n />\n </StyledFocusWithIn>\n <StyledSeparator alignItems=\"center\">/</StyledSeparator>\n <StyledFocusWithIn>\n <YYYYInput\n onChange={onYearChange}\n onBlur={onYearBlur}\n onFocus={onYearFocus}\n onKeyDown={onYearKeyDown}\n value={year}\n contextRef={yearInputRef}\n placeholder=\"YYYY\"\n ariaCurrentValueForInputs={ariaCurrentValueForInputs}\n disabled={disabled}\n isFocused={latestInteractionRegion === 'date-inputs' && currFocusDescriber === 'year-input'}\n />\n </StyledFocusWithIn>\n </Grid>\n );\n};\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,aAAa,MAAmB;AAC3C,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,cAAc;AAElB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,WAAW,+BAA+B;AAE9C,SACE,qCAAC;AAAA,IACC,MAAM;AAAA,MACJ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,IACd;AAAA,KAEA,qCAAC,yBACC,qCAAC;AAAA,IACC,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,WAAW;AAAA,IACX,OAAO;AAAA,IACP,YAAY;AAAA,IACZ;AAAA,IACA,aAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,WAAW,4BAA4B,iBAAiB,uBAAuB;AAAA,GACjF,CACF,GACA,qCAAC;AAAA,IAAgB,YAAW;AAAA,KAAS,GAAC,GACtC,qCAAC,yBACC,qCAAC;AAAA,IACC,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,WAAW;AAAA,IACX,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,aAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,WAAW,4BAA4B,iBAAiB,uBAAuB;AAAA,GACjF,CACF,GACA,qCAAC;AAAA,IAAgB,YAAW;AAAA,KAAS,GAAC,GACtC,qCAAC,yBACC,qCAAC;AAAA,IACC,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,WAAW;AAAA,IACX,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,aAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,WAAW,4BAA4B,iBAAiB,uBAAuB;AAAA,GACjF,CACF,CACF;AAEJ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useContext } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\n\nimport { ControlledDateTimePickerContext } from '../../ControlledDateTimePickerCTX';\nimport { MMInput } from './MMInput';\nimport { DDInput } from './DDInput';\nimport { YYYYInput } from './YYYYInput';\nimport { StyledFocusWithIn, StyledSeparator } from '../Styleds';\nimport { useDateInputs } from './useDateInputs';\nimport { fixedValues } from '../config';\n\nexport const DateInputs = (): JSX.Element => {\n const {\n month,\n day,\n year,\n autoFocusMonthInput,\n innerRefMonthInput,\n onMonthChange,\n onDayChange,\n onYearChange,\n onMonthBlur,\n onDayBlur,\n onYearBlur,\n onMonthFocus,\n onDayFocus,\n onYearFocus,\n onMonthKeyDown,\n onDayKeyDown,\n onYearKeyDown,\n disabled,\n } = useDateInputs();\n // we do this here so MMInput,DDInput,YYYYInput can be pure component memoized via React.memo\n const {\n monthInputRef,\n dayInputRef,\n yearInputRef,\n ariaCurrentValueForInputs,\n latestInteractionRegion,\n currFocusDescriber,\n } = useContext(ControlledDateTimePickerContext);\n\n return (\n <Grid\n cols={[\n fixedValues.smallInputWidth,\n fixedValues.separatorWidth,\n fixedValues.smallInputWidth,\n fixedValues.separatorWidth,\n fixedValues.largeInputWidth,\n ]}\n >\n <StyledFocusWithIn>\n <MMInput\n onChange={onMonthChange}\n onBlur={onMonthBlur}\n onFocus={onMonthFocus}\n onKeyDown={onMonthKeyDown}\n value={month}\n contextRef={monthInputRef}\n innerRef={innerRefMonthInput}\n autoFocusMonthInput={autoFocusMonthInput}\n placeholder=\"MM\"\n ariaCurrentValueForInputs={ariaCurrentValueForInputs}\n disabled={disabled}\n isFocused={latestInteractionRegion === 'date-inputs' && currFocusDescriber === 'month-input'}\n />\n </StyledFocusWithIn>\n <StyledSeparator alignItems=\"center\">/</StyledSeparator>\n <StyledFocusWithIn>\n <DDInput\n onChange={onDayChange}\n onBlur={onDayBlur}\n onFocus={onDayFocus}\n onKeyDown={onDayKeyDown}\n value={day}\n contextRef={dayInputRef}\n placeholder=\"DD\"\n ariaCurrentValueForInputs={ariaCurrentValueForInputs}\n disabled={disabled}\n isFocused={latestInteractionRegion === 'date-inputs' && currFocusDescriber === 'day-input'}\n />\n </StyledFocusWithIn>\n <StyledSeparator alignItems=\"center\">/</StyledSeparator>\n <StyledFocusWithIn>\n <YYYYInput\n onChange={onYearChange}\n onBlur={onYearBlur}\n onFocus={onYearFocus}\n onKeyDown={onYearKeyDown}\n value={year}\n contextRef={yearInputRef}\n placeholder=\"YYYY\"\n ariaCurrentValueForInputs={ariaCurrentValueForInputs}\n disabled={disabled}\n isFocused={latestInteractionRegion === 'date-inputs' && currFocusDescriber === 'year-input'}\n />\n </StyledFocusWithIn>\n </Grid>\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,SAAgB,kBAAkB;AAClC,SAAS,YAAY;AAErB,SAAS,uCAAuC;AAChD,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,mBAAmB,uBAAuB;AACnD,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;AAErB,MAAM,aAAa,MAAmB;AAC3C,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,cAAc;AAElB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,WAAW,+BAA+B;AAE9C,SACE,qBAAC;AAAA,IACC,MAAM;AAAA,MACJ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,YAAY;AAAA,IACd;AAAA,IAEA;AAAA,0BAAC;AAAA,QACC,8BAAC;AAAA,UACC,UAAU;AAAA,UACV,QAAQ;AAAA,UACR,SAAS;AAAA,UACT,WAAW;AAAA,UACX,OAAO;AAAA,UACP,YAAY;AAAA,UACZ,UAAU;AAAA,UACV;AAAA,UACA,aAAY;AAAA,UACZ;AAAA,UACA;AAAA,UACA,WAAW,4BAA4B,iBAAiB,uBAAuB;AAAA,SACjF;AAAA,OACF;AAAA,MACA,oBAAC;AAAA,QAAgB,YAAW;AAAA,QAAS;AAAA,OAAC;AAAA,MACtC,oBAAC;AAAA,QACC,8BAAC;AAAA,UACC,UAAU;AAAA,UACV,QAAQ;AAAA,UACR,SAAS;AAAA,UACT,WAAW;AAAA,UACX,OAAO;AAAA,UACP,YAAY;AAAA,UACZ,aAAY;AAAA,UACZ;AAAA,UACA;AAAA,UACA,WAAW,4BAA4B,iBAAiB,uBAAuB;AAAA,SACjF;AAAA,OACF;AAAA,MACA,oBAAC;AAAA,QAAgB,YAAW;AAAA,QAAS;AAAA,OAAC;AAAA,MACtC,oBAAC;AAAA,QACC,8BAAC;AAAA,UACC,UAAU;AAAA,UACV,QAAQ;AAAA,UACR,SAAS;AAAA,UACT,WAAW;AAAA,UACX,OAAO;AAAA,UACP,YAAY;AAAA,UACZ,aAAY;AAAA,UACZ;AAAA,UACA;AAAA,UACA,WAAW,4BAA4B,iBAAiB,uBAAuB;AAAA,SACjF;AAAA,OACF;AAAA;AAAA,GACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,7 @@
1
1
  import * as React from "react";
2
- import React2, { useCallback } from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import React2, { useCallback, useMemo } from "react";
4
+ import { setMultipleRefs } from "@elliemae/ds-utilities";
3
5
  import { Styled2DigitsInput } from "../Styleds";
4
6
  import { ControlledDateTimePickerDatatestid } from "../../ControlledDateTimePickerDatatestid";
5
7
  const regExpNumbers = /^[0-9]+$/;
@@ -9,45 +11,61 @@ const isInvalidMonth = (month) => {
9
11
  const numberOnly = regExpNumbers.test(month);
10
12
  return month.length > 2 || month === "00" || !numberOnly || Number.parseInt(month, 10) > 12;
11
13
  };
12
- const MMInput = React2.memo(({
13
- onChange,
14
- onBlur,
15
- onFocus,
16
- onKeyDown,
17
- value,
18
- disabled,
19
- placeholder,
20
- contextRef,
21
- autoFocusMonthInput,
22
- ariaCurrentValueForInputs,
23
- isFocused
24
- }) => {
25
- const validateOnChange = useCallback((e) => {
26
- if (isInvalidMonth(e?.target?.value)) {
27
- e.preventDefault();
28
- return;
29
- }
30
- onChange(e);
31
- }, [onChange]);
32
- return /* @__PURE__ */ React2.createElement(Styled2DigitsInput, {
33
- autoFocus: autoFocusMonthInput,
34
- onChange: validateOnChange,
14
+ const MMInput = React2.memo(
15
+ ({
16
+ onChange,
35
17
  onBlur,
36
18
  onFocus,
37
19
  onKeyDown,
38
20
  value,
39
- ref: (DomElem) => {
40
- contextRef.current = DomElem;
41
- if (isFocused)
42
- DomElem?.focus?.();
43
- },
44
- placeholder,
45
- "aria-label": `month input field, ${ariaCurrentValueForInputs}`,
46
- "data-testid": ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH,
47
21
  disabled,
48
- "aria-disabled": disabled
49
- });
50
- });
22
+ placeholder,
23
+ contextRef,
24
+ innerRef,
25
+ autoFocusMonthInput,
26
+ ariaCurrentValueForInputs,
27
+ isFocused
28
+ }) => {
29
+ const validateOnChange = useCallback(
30
+ (e) => {
31
+ if (isInvalidMonth(e?.target?.value)) {
32
+ e.preventDefault();
33
+ return;
34
+ }
35
+ onChange(e);
36
+ },
37
+ [onChange]
38
+ );
39
+ const handleRef = useCallback(
40
+ (DomElem) => {
41
+ contextRef.current = DomElem;
42
+ if (isFocused)
43
+ DomElem?.focus?.();
44
+ },
45
+ [contextRef, isFocused]
46
+ );
47
+ const currentRef = useMemo(() => {
48
+ if (innerRef) {
49
+ return setMultipleRefs([handleRef, innerRef]);
50
+ }
51
+ return handleRef;
52
+ }, [handleRef, innerRef]);
53
+ return /* @__PURE__ */ jsx(Styled2DigitsInput, {
54
+ autoFocus: autoFocusMonthInput,
55
+ onChange: validateOnChange,
56
+ onBlur,
57
+ onFocus,
58
+ onKeyDown,
59
+ value,
60
+ ref: currentRef,
61
+ placeholder,
62
+ "aria-label": `month input field, ${ariaCurrentValueForInputs}`,
63
+ "data-testid": ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH,
64
+ disabled,
65
+ "aria-disabled": disabled
66
+ });
67
+ }
68
+ );
51
69
  export {
52
70
  MMInput
53
71
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/parts/DateInputs/MMInput.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\nimport { Styled2DigitsInput } from '../Styleds';\nimport { ControlledDateTimePickerDatatestid } from '../../ControlledDateTimePickerDatatestid';\nimport type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes';\n\nconst regExpNumbers = /^[0-9]+$/;\nconst isInvalidMonth = (month: string) => {\n if (month === '') return false;\n const numberOnly = regExpNumbers.test(month);\n return month.length > 2 || month === '00' || !numberOnly || Number.parseInt(month, 10) > 12;\n};\ninterface MMInputsPropsT {\n onChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;\n onBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;\n onFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;\n onKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;\n autoFocusMonthInput: boolean;\n value: string;\n disabled: boolean;\n contextRef: React.MutableRefObject<HTMLInputElement | null>;\n placeholder: string;\n ariaCurrentValueForInputs: string;\n isFocused: boolean;\n}\nexport const MMInput = React.memo(\n ({\n onChange,\n onBlur,\n onFocus,\n onKeyDown,\n value,\n disabled,\n placeholder,\n contextRef,\n autoFocusMonthInput,\n ariaCurrentValueForInputs,\n isFocused,\n }: MMInputsPropsT): JSX.Element => {\n const validateOnChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (isInvalidMonth(e?.target?.value)) {\n e.preventDefault();\n return;\n }\n onChange(e);\n },\n [onChange],\n );\n return (\n <Styled2DigitsInput\n autoFocus={autoFocusMonthInput}\n onChange={validateOnChange}\n onBlur={onBlur}\n onFocus={onFocus}\n onKeyDown={onKeyDown}\n value={value}\n ref={(DomElem: HTMLInputElement) => {\n (contextRef as React.MutableRefObject<HTMLInputElement>).current = DomElem;\n if (isFocused) DomElem?.focus?.();\n }}\n placeholder={placeholder}\n aria-label={`month input field, ${ariaCurrentValueForInputs}`}\n data-testid={ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH}\n disabled={disabled}\n aria-disabled={disabled}\n />\n );\n },\n);\n"],
5
- "mappings": "AAAA;ACAA;AACA;AACA;AAGA,MAAM,gBAAgB;AACtB,MAAM,iBAAiB,CAAC,UAAkB;AACxC,MAAI,UAAU;AAAI,WAAO;AACzB,QAAM,aAAa,cAAc,KAAK,KAAK;AAC3C,SAAO,MAAM,SAAS,KAAK,UAAU,QAAQ,CAAC,cAAc,OAAO,SAAS,OAAO,EAAE,IAAI;AAC3F;AAcO,MAAM,UAAU,OAAM,KAC3B,CAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MACiC;AACjC,QAAM,mBAAmB,YACvB,CAAC,MAA2C;AAC1C,QAAI,eAAe,GAAG,QAAQ,KAAK,GAAG;AACpC,QAAE,eAAe;AACjB;AAAA,IACF;AACA,aAAS,CAAC;AAAA,EACZ,GACA,CAAC,QAAQ,CACX;AACA,SACE,qCAAC;AAAA,IACC,WAAW;AAAA,IACX,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,KAAK,CAAC,YAA8B;AAClC,MAAC,WAAwD,UAAU;AACnE,UAAI;AAAW,iBAAS,QAAQ;AAAA,IAClC;AAAA,IACA;AAAA,IACA,cAAY,sBAAsB;AAAA,IAClC,eAAa,mCAAmC,YAAY;AAAA,IAC5D;AAAA,IACA,iBAAe;AAAA,GACjB;AAEJ,CACF;",
6
- "names": []
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback, useMemo } from 'react';\nimport { setMultipleRefs } from '@elliemae/ds-utilities';\nimport { Styled2DigitsInput } from '../Styleds';\nimport { ControlledDateTimePickerDatatestid } from '../../ControlledDateTimePickerDatatestid';\nimport type { DSControlledDateTimePickerInternalsT } from '../../sharedTypes';\n\nconst regExpNumbers = /^[0-9]+$/;\nconst isInvalidMonth = (month: string) => {\n if (month === '') return false;\n const numberOnly = regExpNumbers.test(month);\n return month.length > 2 || month === '00' || !numberOnly || Number.parseInt(month, 10) > 12;\n};\ninterface MMInputsPropsT {\n onChange: DSControlledDateTimePickerInternalsT.OnChangeFunc;\n onBlur: DSControlledDateTimePickerInternalsT.OnBlurFunc;\n onFocus: DSControlledDateTimePickerInternalsT.OnFocusFunc;\n onKeyDown: DSControlledDateTimePickerInternalsT.OnKeyDown;\n autoFocusMonthInput: boolean;\n value: string;\n disabled: boolean;\n contextRef: React.MutableRefObject<HTMLInputElement | null>;\n placeholder: string;\n ariaCurrentValueForInputs: string;\n isFocused: boolean;\n innerRef: React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>;\n}\nexport const MMInput = React.memo(\n ({\n onChange,\n onBlur,\n onFocus,\n onKeyDown,\n value,\n disabled,\n placeholder,\n contextRef,\n innerRef,\n autoFocusMonthInput,\n ariaCurrentValueForInputs,\n isFocused,\n }: MMInputsPropsT): JSX.Element => {\n const validateOnChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n if (isInvalidMonth(e?.target?.value)) {\n e.preventDefault();\n return;\n }\n onChange(e);\n },\n [onChange],\n );\n\n const handleRef = useCallback(\n (DomElem: HTMLInputElement) => {\n (contextRef as React.MutableRefObject<HTMLInputElement>).current = DomElem;\n if (isFocused) DomElem?.focus?.();\n },\n [contextRef, isFocused],\n );\n\n const currentRef = useMemo(() => {\n if (innerRef) {\n return setMultipleRefs([handleRef, innerRef]);\n }\n return handleRef;\n }, [handleRef, innerRef]);\n\n return (\n <Styled2DigitsInput\n autoFocus={autoFocusMonthInput}\n onChange={validateOnChange}\n onBlur={onBlur}\n onFocus={onFocus}\n onKeyDown={onKeyDown}\n value={value}\n ref={currentRef}\n placeholder={placeholder}\n aria-label={`month input field, ${ariaCurrentValueForInputs}`}\n data-testid={ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH}\n disabled={disabled}\n aria-disabled={disabled}\n />\n );\n },\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB;AAAA,OAAOA,UAAS,aAAa,eAAe;AAC5C,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,0CAA0C;AAGnD,MAAM,gBAAgB;AACtB,MAAM,iBAAiB,CAAC,UAAkB;AACxC,MAAI,UAAU;AAAI,WAAO;AACzB,QAAM,aAAa,cAAc,KAAK,KAAK;AAC3C,SAAO,MAAM,SAAS,KAAK,UAAU,QAAQ,CAAC,cAAc,OAAO,SAAS,OAAO,EAAE,IAAI;AAC3F;AAeO,MAAM,UAAUA,OAAM;AAAA,EAC3B,CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,MAAmC;AACjC,UAAM,mBAAmB;AAAA,MACvB,CAAC,MAA2C;AAC1C,YAAI,eAAe,GAAG,QAAQ,KAAK,GAAG;AACpC,YAAE,eAAe;AACjB;AAAA,QACF;AACA,iBAAS,CAAC;AAAA,MACZ;AAAA,MACA,CAAC,QAAQ;AAAA,IACX;AAEA,UAAM,YAAY;AAAA,MAChB,CAAC,YAA8B;AAC7B,QAAC,WAAwD,UAAU;AACnE,YAAI;AAAW,mBAAS,QAAQ;AAAA,MAClC;AAAA,MACA,CAAC,YAAY,SAAS;AAAA,IACxB;AAEA,UAAM,aAAa,QAAQ,MAAM;AAC/B,UAAI,UAAU;AACZ,eAAO,gBAAgB,CAAC,WAAW,QAAQ,CAAC;AAAA,MAC9C;AACA,aAAO;AAAA,IACT,GAAG,CAAC,WAAW,QAAQ,CAAC;AAExB,WACE,oBAAC;AAAA,MACC,WAAW;AAAA,MACX,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,KAAK;AAAA,MACL;AAAA,MACA,cAAY,sBAAsB;AAAA,MAClC,eAAa,mCAAmC,YAAY;AAAA,MAC5D;AAAA,MACA,iBAAe;AAAA,KACjB;AAAA,EAEJ;AACF;",
6
+ "names": ["React"]
7
7
  }