indicator-ui 1.0.51 → 1.1.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 (277) hide show
  1. package/dist/index.cjs +20 -20
  2. package/dist/index.js +15897 -12626
  3. package/dist/indicator-ui.css +1 -1
  4. package/dist/types/src/hooks/feed/infinityFeed/hooks/index.d.ts +1 -0
  5. package/dist/types/src/hooks/feed/infinityFeed/hooks/state/useFeed.d.ts +5 -5
  6. package/dist/types/src/hooks/feed/infinityFeed/hooks/state/useFeedManager.d.ts +13 -11
  7. package/dist/types/src/hooks/feed/infinityFeed/hooks/useInfinityFeed.d.ts +5 -15
  8. package/dist/types/src/hooks/feed/infinityFeed/hooks/useScrollManager.d.ts +4 -14
  9. package/dist/types/src/hooks/feed/wheel/classes/index.d.ts +2 -2
  10. package/dist/types/src/hooks/feed/wheel/classes/wheelBaseFunction.d.ts +5 -0
  11. package/dist/types/src/hooks/feed/wheel/classes/wheelLyingParabola.d.ts +10 -0
  12. package/dist/types/src/hooks/feed/wheel/hooks/useParabolicVerticalFeed.d.ts +4 -3
  13. package/dist/types/src/hooks/index.d.ts +0 -2
  14. package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/hooks/index.d.ts +1 -0
  15. package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/hooks/useElementScrollPosition.d.ts +18 -0
  16. package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/index.d.ts +1 -0
  17. package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/utils/index.d.ts +8 -0
  18. package/dist/types/src/hooks/scroll/hooks/index.d.ts +5 -1
  19. package/dist/types/src/hooks/scroll/hooks/scrollHandler/useScrollHandler.d.ts +3 -3
  20. package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/index.d.ts +4 -0
  21. package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useKeyboardScroll.d.ts +7 -0
  22. package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useTouchScroll.d.ts +3 -0
  23. package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useUserScrollMaster.d.ts +5 -0
  24. package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useWheelScroll.d.ts +3 -0
  25. package/dist/types/src/hooks/scroll/hooks/scrollMaster/index.d.ts +2 -0
  26. package/dist/types/src/hooks/scroll/hooks/scrollMaster/types/index.d.ts +20 -0
  27. package/dist/types/src/hooks/scroll/hooks/scrollSync/classes/index.d.ts +1 -0
  28. package/dist/types/src/hooks/scroll/hooks/scrollSync/classes/scrollRatio.d.ts +6 -0
  29. package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/index.d.ts +1 -0
  30. package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/useScrollChannel.d.ts +9 -0
  31. package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/useScrollListener.d.ts +5 -0
  32. package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/useScrollSync.d.ts +9 -0
  33. package/dist/types/src/hooks/scroll/hooks/scrollSync/index.d.ts +1 -0
  34. package/dist/types/src/hooks/scroll/hooks/scrollSync/utils/index.d.ts +1 -0
  35. package/dist/types/src/hooks/scroll/hooks/scrollToAsync/index.d.ts +2 -0
  36. package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useAsyncScrollTo.d.ts +1 -0
  37. package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useAsyncScrollToRef.d.ts +2 -0
  38. package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useRejectTimeouts.d.ts +6 -0
  39. package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useScrollPromises.d.ts +10 -0
  40. package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useScrollTargetInfo.d.ts +6 -0
  41. package/dist/types/src/hooks/scroll/hooks/useScrollOffsetState.d.ts +7 -0
  42. package/dist/types/src/hooks/ui-animations/useModalAnim.d.ts +1 -1
  43. package/dist/types/src/hooks/utils/index.d.ts +6 -0
  44. package/dist/types/src/hooks/utils/useElementsRefs.d.ts +12 -0
  45. package/dist/types/src/hooks/utils/useIntersectionObserver.d.ts +6 -1
  46. package/dist/types/src/hooks/utils/useMostVisibleElement.d.ts +15 -0
  47. package/dist/types/src/hooks/utils/useMutex.d.ts +5 -0
  48. package/dist/types/src/hooks/utils/useRequestAnimationFrameAsync.d.ts +1 -0
  49. package/dist/types/src/lib/asserts/html.d.ts +1 -0
  50. package/dist/types/src/lib/asserts/index.d.ts +1 -0
  51. package/dist/types/src/lib/index.d.ts +1 -0
  52. package/dist/types/src/lib/tsAsserts/index.d.ts +2 -0
  53. package/dist/types/src/ui/DateTimePicker/ui/DateTimePicker.d.ts +1 -0
  54. package/dist/types/src/ui/InputFields/DateTimeField/ui/DateField.d.ts +1 -1
  55. package/dist/types/src/ui/InputFields/DateTimeField/ui/DateTimeField.d.ts +1 -1
  56. package/dist/types/src/ui/InputFields/DateTimeRangeField/ui/DateRangeField.d.ts +1 -1
  57. package/dist/types/src/ui/datePickersV2/hooks/components/index.d.ts +0 -0
  58. package/dist/types/src/ui/datePickersV2/hooks/components/time/index.d.ts +1 -0
  59. package/dist/types/src/ui/datePickersV2/hooks/components/time/useTimePickerTagList.d.ts +12 -0
  60. package/dist/types/src/ui/datePickersV2/hooks/dateManagers/index.d.ts +3 -0
  61. package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateInputManager.d.ts +13 -0
  62. package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateManager.d.ts +19 -0
  63. package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateManagerUtils.d.ts +8 -0
  64. package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateRangeManager.d.ts +15 -0
  65. package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateTimeManager.d.ts +21 -0
  66. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/index.d.ts +1 -0
  67. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeed.d.ts +19 -0
  68. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeedManager.d.ts +12 -0
  69. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeedProvider.d.ts +16 -0
  70. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeedRef.d.ts +14 -0
  71. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysGrid.d.ts +14 -0
  72. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysGridDisplay.d.ts +11 -0
  73. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysGridManager.d.ts +12 -0
  74. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysInfoRequests.d.ts +17 -0
  75. package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useIntersectionViewMonth.d.ts +7 -0
  76. package/dist/types/src/ui/datePickersV2/hooks/feeds/index.d.ts +0 -0
  77. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/index.d.ts +1 -0
  78. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthGrid.d.ts +14 -0
  79. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthGridDisplay.d.ts +10 -0
  80. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeed.d.ts +23 -0
  81. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeedManager.d.ts +12 -0
  82. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeedProvider.d.ts +15 -0
  83. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeedRef.d.ts +14 -0
  84. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsGridManager.d.ts +10 -0
  85. package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useViewMonth.d.ts +7 -0
  86. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/index.d.ts +3 -0
  87. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/useBaseFeed.d.ts +17 -0
  88. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/useFeedTracks.d.ts +22 -0
  89. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/usePreviewFeed.d.ts +16 -0
  90. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/index.d.ts +4 -0
  91. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useElementsPositionStyle.d.ts +8 -0
  92. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useFeedElementView.d.ts +4 -0
  93. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useFeedList.d.ts +8 -0
  94. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useMostViewedElement.d.ts +9 -0
  95. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/index.d.ts +1 -0
  96. package/dist/types/src/ui/datePickersV2/hooks/feeds/time/useTimeFeed.d.ts +28 -0
  97. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/index.d.ts +1 -0
  98. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useIntersectionViewYear.d.ts +7 -0
  99. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearFeedRef.d.ts +14 -0
  100. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearGridDisplay.d.ts +10 -0
  101. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsFeed.d.ts +22 -0
  102. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsFeedManager.d.ts +12 -0
  103. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsFeedProvider.d.ts +13 -0
  104. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsGrid.d.ts +14 -0
  105. package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsGridManager.d.ts +10 -0
  106. package/dist/types/src/ui/datePickersV2/hooks/index.d.ts +0 -0
  107. package/dist/types/src/ui/datePickersV2/hooks/pickers/date/index.d.ts +1 -0
  108. package/dist/types/src/ui/datePickersV2/hooks/pickers/date/useDatePickerV2Provider.d.ts +41 -0
  109. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/index.d.ts +1 -0
  110. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/useDateBaseProvider.d.ts +33 -0
  111. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/useDateBaseRef.d.ts +28 -0
  112. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/useDateDataManager.d.ts +16 -0
  113. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/usePickerState.d.ts +8 -0
  114. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/usePickersManager.d.ts +13 -0
  115. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateRange/index.d.ts +1 -0
  116. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateRange/useDateRangePickerV2Provider.d.ts +46 -0
  117. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateTime/index.d.ts +1 -0
  118. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateTime/useDateTimePickerV2Provider.d.ts +61 -0
  119. package/dist/types/src/ui/datePickersV2/hooks/pickers/dateTime/usePickerState.d.ts +8 -0
  120. package/dist/types/src/ui/datePickersV2/hooks/pickers/index.d.ts +0 -0
  121. package/dist/types/src/ui/datePickersV2/styles/components/CalendarDay/index.d.ts +4 -0
  122. package/dist/types/src/ui/datePickersV2/styles/components/index.d.ts +3 -0
  123. package/dist/types/src/ui/datePickersV2/styles/components/time/index.d.ts +3 -0
  124. package/dist/types/src/ui/datePickersV2/styles/feed/days/components/index.d.ts +4 -0
  125. package/dist/types/src/ui/datePickersV2/styles/feed/days/index.d.ts +1 -0
  126. package/dist/types/src/ui/datePickersV2/styles/feed/index.d.ts +0 -0
  127. package/dist/types/src/ui/datePickersV2/styles/feed/month/components/index.d.ts +3 -0
  128. package/dist/types/src/ui/datePickersV2/styles/feed/month/index.d.ts +1 -0
  129. package/dist/types/src/ui/datePickersV2/styles/feed/time/components/index.d.ts +6 -0
  130. package/dist/types/src/ui/datePickersV2/styles/feed/time/feed/index.d.ts +3 -0
  131. package/dist/types/src/ui/datePickersV2/styles/feed/time/index.d.ts +1 -0
  132. package/dist/types/src/ui/datePickersV2/styles/feed/year/components/index.d.ts +3 -0
  133. package/dist/types/src/ui/datePickersV2/styles/feed/year/index.d.ts +1 -0
  134. package/dist/types/src/ui/datePickersV2/styles/index.d.ts +0 -0
  135. package/dist/types/src/ui/datePickersV2/styles/pickers/components/index.d.ts +5 -0
  136. package/dist/types/src/ui/datePickersV2/styles/pickers/index.d.ts +0 -0
  137. package/dist/types/src/ui/datePickersV2/ui/components/CalendarButton.d.ts +8 -0
  138. package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/CalendarDay.d.ts +9 -0
  139. package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Footer.d.ts +8 -0
  140. package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Header.d.ts +7 -0
  141. package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Main.d.ts +9 -0
  142. package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Wrapper.d.ts +12 -0
  143. package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/index.d.ts +1 -0
  144. package/dist/types/src/ui/datePickersV2/ui/components/CalendarMonth.d.ts +9 -0
  145. package/dist/types/src/ui/datePickersV2/ui/components/CalendarYear.d.ts +9 -0
  146. package/dist/types/src/ui/datePickersV2/ui/components/index.d.ts +5 -0
  147. package/dist/types/src/ui/datePickersV2/ui/components/time/TimePickerTag.d.ts +6 -0
  148. package/dist/types/src/ui/datePickersV2/ui/components/time/TimePickerTagList.d.ts +4 -0
  149. package/dist/types/src/ui/datePickersV2/ui/components/time/TimeWrapper.d.ts +4 -0
  150. package/dist/types/src/ui/datePickersV2/ui/components/time/index.d.ts +2 -0
  151. package/dist/types/src/ui/datePickersV2/ui/feeds/days/DaysFeed.d.ts +4 -0
  152. package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/FeedWrapper.d.ts +6 -0
  153. package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/GridWrapper.d.ts +6 -0
  154. package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/Header.d.ts +12 -0
  155. package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/WeekDays.d.ts +1 -0
  156. package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/index.d.ts +3 -0
  157. package/dist/types/src/ui/datePickersV2/ui/feeds/days/index.d.ts +1 -0
  158. package/dist/types/src/ui/datePickersV2/ui/feeds/index.d.ts +4 -0
  159. package/dist/types/src/ui/datePickersV2/ui/feeds/month/MonthsFeed.d.ts +4 -0
  160. package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/FeedWrapper.d.ts +6 -0
  161. package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/GridWrapper.d.ts +6 -0
  162. package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/Header.d.ts +11 -0
  163. package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/index.d.ts +3 -0
  164. package/dist/types/src/ui/datePickersV2/ui/feeds/month/index.d.ts +1 -0
  165. package/dist/types/src/ui/datePickersV2/ui/feeds/time/TimeFeed.d.ts +4 -0
  166. package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/Divider.d.ts +1 -0
  167. package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/Line.d.ts +1 -0
  168. package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/TimeCell.d.ts +7 -0
  169. package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/TimeFeedWrapper.d.ts +3 -0
  170. package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/ViewZonePlatform.d.ts +3 -0
  171. package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/ViewZoneWrapper.d.ts +4 -0
  172. package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/index.d.ts +4 -0
  173. package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/BaseFeed.d.ts +4 -0
  174. package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/FeedTracks.d.ts +4 -0
  175. package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/PreviewFeed.d.ts +4 -0
  176. package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/index.d.ts +1 -0
  177. package/dist/types/src/ui/datePickersV2/ui/feeds/time/index.d.ts +1 -0
  178. package/dist/types/src/ui/datePickersV2/ui/feeds/year/YearsFeed.d.ts +4 -0
  179. package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/FeedWrapper.d.ts +6 -0
  180. package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/GridWrapper.d.ts +6 -0
  181. package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/Header.d.ts +8 -0
  182. package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/index.d.ts +3 -0
  183. package/dist/types/src/ui/datePickersV2/ui/feeds/year/index.d.ts +1 -0
  184. package/dist/types/src/ui/datePickersV2/ui/index.d.ts +1 -0
  185. package/dist/types/src/ui/datePickersV2/ui/pickers/DateBase.d.ts +4 -0
  186. package/dist/types/src/ui/datePickersV2/ui/pickers/DatePickerV2.d.ts +4 -0
  187. package/dist/types/src/ui/datePickersV2/ui/pickers/DateRangePickerV2.d.ts +4 -0
  188. package/dist/types/src/ui/datePickersV2/ui/pickers/DateTimePickerV2.d.ts +4 -0
  189. package/dist/types/src/ui/datePickersV2/ui/pickers/components/Footer.d.ts +10 -0
  190. package/dist/types/src/ui/datePickersV2/ui/pickers/components/Header.d.ts +7 -0
  191. package/dist/types/src/ui/datePickersV2/ui/pickers/components/MainWrapper.d.ts +4 -0
  192. package/dist/types/src/ui/datePickersV2/ui/pickers/components/Switcher.d.ts +13 -0
  193. package/dist/types/src/ui/datePickersV2/ui/pickers/components/Wrapper.d.ts +6 -0
  194. package/dist/types/src/ui/datePickersV2/ui/pickers/components/index.d.ts +5 -0
  195. package/dist/types/src/ui/datePickersV2/ui/pickers/index.d.ts +3 -0
  196. package/dist/types/src/ui/datePickersV2/utils/index.d.ts +1 -0
  197. package/dist/types/src/ui/datePickersV2/utils/months.d.ts +2 -0
  198. package/dist/types/src/ui/formFields/FormFieldWrapper/ui/FormFieldWrapper.d.ts +1 -0
  199. package/dist/types/src/ui/formFields/FormPaginatedSelectField/lib/index.d.ts +0 -1
  200. package/dist/types/src/ui/formFields/components/DoubleInput/styles/components/index.d.ts +3 -0
  201. package/dist/types/src/ui/formFields/components/DoubleInput/styles/index.d.ts +2 -0
  202. package/dist/types/src/ui/formFields/components/DoubleInput/ui/DoubleInput.d.ts +8 -0
  203. package/dist/types/src/ui/formFields/components/DoubleInput/ui/DoubleInputItem.d.ts +8 -0
  204. package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/DismissButton.d.ts +8 -0
  205. package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/InputBase.d.ts +8 -0
  206. package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/InputHint.d.ts +7 -0
  207. package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/InputIcon.d.ts +7 -0
  208. package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/index.d.ts +4 -0
  209. package/dist/types/src/ui/formFields/components/DoubleInput/ui/index.d.ts +2 -0
  210. package/dist/types/src/ui/formFields/components/InputInnerButton/index.d.ts +1 -0
  211. package/dist/types/src/ui/formFields/components/InputInnerButton/styles/index.d.ts +1 -0
  212. package/dist/types/src/ui/formFields/components/InputInnerButton/ui/InputInnerButton.d.ts +6 -0
  213. package/dist/types/src/ui/formFields/components/InputInnerButton/ui/index.d.ts +1 -0
  214. package/dist/types/src/ui/formFields/components/index.d.ts +3 -0
  215. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/index.d.ts +1 -0
  216. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDateDraft.d.ts +12 -0
  217. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDateFormats.d.ts +15 -0
  218. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDatePickerController.d.ts +47 -0
  219. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDatePickerProps.d.ts +10 -0
  220. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useFormDateFieldProvider.d.ts +124 -0
  221. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useInputFieldController.d.ts +5 -0
  222. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useInputFieldProps.d.ts +64 -0
  223. package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useSyncDateValues.d.ts +6 -0
  224. package/dist/types/src/ui/formFields/dates/FormDateField/index.d.ts +1 -0
  225. package/dist/types/src/ui/formFields/dates/FormDateField/ui/FormDateField.d.ts +6 -0
  226. package/dist/types/src/ui/formFields/dates/FormDateField/ui/FormDateFieldBase.d.ts +4 -0
  227. package/dist/types/src/ui/formFields/dates/FormDateField/ui/index.d.ts +2 -0
  228. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/index.d.ts +1 -0
  229. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateRangeDraft.d.ts +17 -0
  230. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateRangeFormats.d.ts +10 -0
  231. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateRangePickerProps.d.ts +11 -0
  232. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateTimePickerController.d.ts +43 -0
  233. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useFormDateRangeFieldProvider.d.ts +176 -0
  234. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useInputFieldController.d.ts +9 -0
  235. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useInputFieldProps.d.ts +115 -0
  236. package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useSyncDateTimeValues.d.ts +6 -0
  237. package/dist/types/src/ui/formFields/dates/FormDateRangeField/index.d.ts +1 -0
  238. package/dist/types/src/ui/formFields/dates/FormDateRangeField/ui/FormDateRangeField.d.ts +6 -0
  239. package/dist/types/src/ui/formFields/dates/FormDateRangeField/ui/FormDateRangeFieldBase.d.ts +4 -0
  240. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/index.d.ts +1 -0
  241. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimeDraft.d.ts +15 -0
  242. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimeFormats.d.ts +18 -0
  243. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimePickerController.d.ts +62 -0
  244. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimePickerProps.d.ts +11 -0
  245. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useFormDateTimeFieldProvider.d.ts +199 -0
  246. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useInputFieldController.d.ts +9 -0
  247. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useInputFieldProps.d.ts +114 -0
  248. package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useSyncDateTimeValues.d.ts +6 -0
  249. package/dist/types/src/ui/formFields/dates/FormDateTimeField/index.d.ts +1 -0
  250. package/dist/types/src/ui/formFields/dates/FormDateTimeField/ui/FormDateTimeField.d.ts +6 -0
  251. package/dist/types/src/ui/formFields/dates/FormDateTimeField/ui/FormDateTimeFieldBase.d.ts +4 -0
  252. package/dist/types/src/ui/formFields/dates/FormDateTimeField/ui/index.d.ts +2 -0
  253. package/dist/types/src/ui/formFields/dates/index.d.ts +3 -0
  254. package/dist/types/src/ui/formFields/index.d.ts +1 -2
  255. package/dist/types/src/ui/index.d.ts +3 -2
  256. package/package.json +5 -5
  257. package/dist/types/src/hooks/feed/infinityFeed/utils/index.d.ts +0 -1
  258. package/dist/types/src/hooks/feed/wheel/classes/baseFunction.d.ts +0 -7
  259. package/dist/types/src/hooks/feed/wheel/classes/parabola.d.ts +0 -10
  260. package/dist/types/src/hooks/scroll/hooks/useScrollSync.d.ts +0 -2
  261. package/dist/types/src/hooks/scroll/utils/index.d.ts +0 -2
  262. package/dist/types/src/ui/formFields/FormDateField/ui/FormDateField.d.ts +0 -22
  263. package/dist/types/src/ui/formFields/FormDateField/ui/index.d.ts +0 -1
  264. package/dist/types/src/ui/formFields/FormDateRangeField/styles/index.d.ts +0 -3
  265. package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateRangeField.d.ts +0 -6
  266. package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateRangeFieldBase.d.ts +0 -26
  267. package/dist/types/src/ui/formFields/FormDateRangeField/ui/InputInnerButton.d.ts +0 -5
  268. package/dist/types/src/ui/formFields/FormDateRangeField/ui/Mask.d.ts +0 -14
  269. /package/dist/types/src/hooks/{useAsyncState.d.ts → utils/useAsyncState.d.ts} +0 -0
  270. /package/dist/types/src/hooks/{useSyncedStateRef.d.ts → utils/useSyncedStateRef.d.ts} +0 -0
  271. /package/dist/types/src/ui/{formFields/FormDateField → datePickersV2}/index.d.ts +0 -0
  272. /package/dist/types/src/ui/formFields/{FormDateRangeField → components/DoubleInput}/index.d.ts +0 -0
  273. /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/index.d.ts +0 -0
  274. /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/style/index.d.ts +0 -0
  275. /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/ui/DropdownArrow.d.ts +0 -0
  276. /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/ui/index.d.ts +0 -0
  277. /package/dist/types/src/ui/formFields/{FormDateRangeField → dates/FormDateRangeField}/ui/index.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ import { useDateRangeDraft } from './useDateRangeDraft';
2
+ import { useFormDateRangeFieldProvider } from './useFormDateRangeFieldProvider';
3
+ import { useDateTimePickerController } from './useDateTimePickerController';
4
+ import { useDateRangeFormats } from './useDateRangeFormats';
5
+ type PropsType = Pick<Parameters<typeof useFormDateRangeFieldProvider>[number], 'value'> & Pick<ReturnType<typeof useDateTimePickerController>, 'closePicker'> & Pick<ReturnType<typeof useDateRangeDraft>, 'setFromDateValue' | 'setToDateValue'> & Pick<ReturnType<typeof useDateRangeFormats>, 'formatValueItemToDateInput' | 'formatValueToDatePickerValue'>;
6
+ export declare function useDateRangePickerProps(props: PropsType): {
7
+ dateRange: string[] | undefined;
8
+ onChooseDateRange: (dateRange: string[]) => void;
9
+ onChangeDateRange: (dateRange: string[]) => void;
10
+ };
11
+ export {};
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { InputDateValue } from './useDateRangeDraft';
3
+ import { useInputFieldController } from './useInputFieldController';
4
+ import { useDateRangeFormats } from './useDateRangeFormats';
5
+ type PropsType = Pick<ReturnType<typeof useDateRangeFormats>, 'parseInputDate'> & Pick<ReturnType<typeof useInputFieldController>, 'doubleInputRef'>;
6
+ export declare function useDateTimePickerController(props: PropsType): {
7
+ dateTimePickerRef: React.RefObject<Pick<{
8
+ setInput: <K extends "year" | "monthYear" | "dayMonthYear">(key: K, instance: Partial<Partial<{
9
+ year: number;
10
+ monthYear: string;
11
+ dayMonthYear: string;
12
+ }>>[K]) => void;
13
+ createCommitDateRange: (prev: string[] | undefined) => NonNullable<string[] | undefined>;
14
+ clearDateInput: () => void;
15
+ initViewYear: number | undefined;
16
+ initViewMonthYear: string | undefined;
17
+ initViewDayMonthYear: string | undefined;
18
+ }, "clearDateInput" | "setInput" | "createCommitDateRange"> & {
19
+ dateBaseRef: React.RefObject<{
20
+ daysFeedRef: React.RefObject<{
21
+ scrollToDayMonth: (instance: import('../../../../datePickersV2/hooks/feeds/days/useDaysFeed').Day) => Promise<void>;
22
+ element: HTMLDivElement;
23
+ }>;
24
+ monthsFeedRef: React.RefObject<{
25
+ scrollToMonth: (instance: import('../../../../datePickersV2/hooks/feeds/month/useMonthsFeed').Month) => void;
26
+ element: HTMLDivElement;
27
+ }>;
28
+ yearsFeedRef: React.RefObject<{
29
+ scrollToYear: (instance: import('../../../../datePickersV2/hooks/feeds/year/useYearsFeed').Year) => void;
30
+ element: HTMLDivElement;
31
+ }>;
32
+ }>;
33
+ }>;
34
+ dateTimePickerWrapperRef: React.RefObject<never>;
35
+ moveToInputtedDateInPicker: (instance: InputDateValue) => Promise<(void | undefined)[]>;
36
+ clearDateRangeInputInPicker: () => void;
37
+ closePicker: () => void;
38
+ openPicker: () => void;
39
+ switchingPicker: () => void;
40
+ getIsShowPicker: () => boolean;
41
+ getPickerInitStyle: () => React.CSSProperties;
42
+ };
43
+ export {};
@@ -0,0 +1,176 @@
1
+ import { default as React } from 'react';
2
+ import { FieldPropsType } from '../../../../../hooks';
3
+ import { DateRangePickerV2 } from '../../../..';
4
+ import { DoubleInputItemProps } from './useInputFieldProps';
5
+ type DateRangePickerV2Props = React.ComponentProps<typeof DateRangePickerV2>;
6
+ export type ValueItemType = string;
7
+ export type ValueBaseType = Array<ValueItemType>;
8
+ type FieldProps = FieldPropsType<ValueBaseType>;
9
+ export type ValueType = FieldProps['value'];
10
+ type PropsType = FieldProps & Pick<DateRangePickerV2Props, 'requestedDaysData' | 'requestDaysData'> & {
11
+ /**
12
+ * Формат даты ввода пользователя.
13
+ *
14
+ * ---
15
+ * Для ознакомления с обозначениями {@link DATE_IMASK_BLOCKS}
16
+ * */
17
+ inputDateFormat?: string;
18
+ /**
19
+ * Формат даты (понимаемый `date-fns`), которая будет хранится в `value`.
20
+ *
21
+ * Пример: `"yyyy-MM-dd'T'HH:mm:ssXXX"`.
22
+ * */
23
+ outFormat?: string | 'iso';
24
+ fromPlaceholder?: DoubleInputItemProps['placeholder'];
25
+ toPlaceholder?: DoubleInputItemProps['placeholder'];
26
+ fromHintText?: DoubleInputItemProps['hintText'];
27
+ toHintText?: DoubleInputItemProps['hintText'];
28
+ fromIcon?: DoubleInputItemProps['icon'];
29
+ toIcon?: DoubleInputItemProps['icon'];
30
+ disabled?: DoubleInputItemProps['disabled'];
31
+ pickerSubtitle?: DateRangePickerV2Props['subtitle'];
32
+ };
33
+ export declare function useFormDateRangeFieldProvider(props: PropsType): {
34
+ fromDateValue: string | undefined;
35
+ toDateValue: string | undefined;
36
+ onCompleteDateTo: NonNullable<((value: string, maskRef: import('imask').InputMask<{
37
+ [x: string]: unknown;
38
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
39
+ [x: string]: unknown;
40
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
41
+ [x: string]: unknown;
42
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
43
+ [x: string]: unknown;
44
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
45
+ [x: string]: unknown;
46
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
47
+ [x: string]: unknown;
48
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
49
+ [x: string]: unknown;
50
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
51
+ [x: string]: unknown;
52
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
53
+ [x: string]: unknown;
54
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
55
+ [x: string]: unknown;
56
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
57
+ [x: string]: unknown;
58
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
59
+ [x: string]: unknown;
60
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
61
+ [x: string]: unknown;
62
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
63
+ [x: string]: unknown;
64
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
65
+ [x: string]: unknown;
66
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
67
+ [x: string]: unknown;
68
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
69
+ [x: string]: unknown;
70
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
71
+ [x: string]: unknown;
72
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
73
+ [x: string]: unknown;
74
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
75
+ [x: string]: unknown;
76
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
77
+ [x: string]: unknown;
78
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
79
+ [x: string]: unknown;
80
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
81
+ [x: string]: unknown;
82
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
83
+ [x: string]: unknown;
84
+ }>, e?: InputEvent) => void) | undefined>;
85
+ onCompleteDateFrom: NonNullable<((value: string, maskRef: import('imask').InputMask<{
86
+ [x: string]: unknown;
87
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
88
+ [x: string]: unknown;
89
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
90
+ [x: string]: unknown;
91
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
92
+ [x: string]: unknown;
93
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
94
+ [x: string]: unknown;
95
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
96
+ [x: string]: unknown;
97
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
98
+ [x: string]: unknown;
99
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
100
+ [x: string]: unknown;
101
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
102
+ [x: string]: unknown;
103
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
104
+ [x: string]: unknown;
105
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
106
+ [x: string]: unknown;
107
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
108
+ [x: string]: unknown;
109
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
110
+ [x: string]: unknown;
111
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
112
+ [x: string]: unknown;
113
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
114
+ [x: string]: unknown;
115
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
116
+ [x: string]: unknown;
117
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
118
+ [x: string]: unknown;
119
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
120
+ [x: string]: unknown;
121
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
122
+ [x: string]: unknown;
123
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
124
+ [x: string]: unknown;
125
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
126
+ [x: string]: unknown;
127
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
128
+ [x: string]: unknown;
129
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
130
+ [x: string]: unknown;
131
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
132
+ [x: string]: unknown;
133
+ }>, e?: InputEvent) => void) | undefined>;
134
+ dateTimePickerRef: React.RefObject<Pick<{
135
+ setInput: <K extends "year" | "monthYear" | "dayMonthYear">(key: K, instance: Partial<Partial<{
136
+ year: number;
137
+ monthYear: string;
138
+ dayMonthYear: string;
139
+ }>>[K]) => void;
140
+ createCommitDateRange: (prev: string[] | undefined) => NonNullable<string[] | undefined>;
141
+ clearDateInput: () => void;
142
+ initViewYear: number | undefined;
143
+ initViewMonthYear: string | undefined;
144
+ initViewDayMonthYear: string | undefined;
145
+ }, "clearDateInput" | "setInput" | "createCommitDateRange"> & {
146
+ dateBaseRef: React.RefObject<{
147
+ daysFeedRef: React.RefObject<{
148
+ scrollToDayMonth: (instance: import('../../../../datePickersV2/hooks/feeds/days/useDaysFeed').Day) => Promise<void>;
149
+ element: HTMLDivElement;
150
+ }>;
151
+ monthsFeedRef: React.RefObject<{
152
+ scrollToMonth: (instance: import('../../../../datePickersV2/hooks/feeds/month/useMonthsFeed').Month) => void;
153
+ element: HTMLDivElement;
154
+ }>;
155
+ yearsFeedRef: React.RefObject<{
156
+ scrollToYear: (instance: import('../../../../datePickersV2/hooks/feeds/year/useYearsFeed').Year) => void;
157
+ element: HTMLDivElement;
158
+ }>;
159
+ }>;
160
+ }>;
161
+ dateTimePickerWrapperRef: React.RefObject<never>;
162
+ doubleInputRef: React.RefObject<HTMLDivElement>;
163
+ fromDateInputRef: React.RefObject<HTMLInputElement>;
164
+ toDateInputRef: React.RefObject<HTMLInputElement>;
165
+ inputDateFormat: string;
166
+ dateRange: string[] | undefined;
167
+ onChangeDateRange: (dateRange: string[]) => void;
168
+ onChooseDateRange: (dateRange: string[]) => void;
169
+ onClickToDateField: React.MouseEventHandler<HTMLInputElement>;
170
+ onClickFromDateField: React.MouseEventHandler<HTMLInputElement>;
171
+ clearDateRange: () => void;
172
+ isErrorInputFields: boolean | undefined;
173
+ isDisabledInputFields: boolean | undefined;
174
+ getPickerInitStyle: () => React.CSSProperties;
175
+ };
176
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare function useInputFieldController(): {
2
+ doubleInputRef: import('react').RefObject<HTMLDivElement>;
3
+ toDateInputRef: import('react').RefObject<HTMLInputElement>;
4
+ fromDateInputRef: import('react').RefObject<HTMLInputElement>;
5
+ focusOnFromDateField: () => void;
6
+ focusOnToDateField: () => void;
7
+ checkFocusedFromDateInput: () => boolean;
8
+ checkFocusedToDateInput: () => boolean;
9
+ };
@@ -0,0 +1,115 @@
1
+ import { default as React } from 'react';
2
+ import { DoubleInputItem } from '../../../components';
3
+ import { useDateTimePickerController } from './useDateTimePickerController';
4
+ import { useDateRangeDraft } from './useDateRangeDraft';
5
+ import { useFormDateRangeFieldProvider } from './useFormDateRangeFieldProvider';
6
+ import { useInputFieldController } from './useInputFieldController';
7
+ import { useDateRangeFormats } from './useDateRangeFormats';
8
+ export type DoubleInputItemProps = React.ComponentProps<typeof DoubleInputItem>;
9
+ type PropsType = Pick<Parameters<typeof useFormDateRangeFieldProvider>[number], 'error' | 'disabled'> & Pick<ReturnType<typeof useDateTimePickerController>, 'moveToInputtedDateInPicker' | 'clearDateRangeInputInPicker' | 'openPicker' | 'switchingPicker' | 'getIsShowPicker' | 'closePicker'> & Pick<ReturnType<typeof useInputFieldController>, 'focusOnFromDateField' | 'focusOnToDateField' | 'checkFocusedFromDateInput' | 'checkFocusedToDateInput'> & Pick<ReturnType<typeof useDateRangeFormats>, 'parseInputDate'> & Pick<ReturnType<typeof useDateRangeDraft>, 'setToDateValue' | 'setFromDateValue' | 'clearDateRangeValue' | 'isFullDateInput' | 'isFullCurrentDateInput' | 'getFromDateValue' | 'getToDateValue'>;
10
+ export declare function useInputFieldProps(props: PropsType): {
11
+ onCompleteDateFrom: NonNullable<((value: string, maskRef: import('imask').InputMask<{
12
+ [x: string]: unknown;
13
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
14
+ [x: string]: unknown;
15
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
16
+ [x: string]: unknown;
17
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
18
+ [x: string]: unknown;
19
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
20
+ [x: string]: unknown;
21
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
22
+ [x: string]: unknown;
23
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
24
+ [x: string]: unknown;
25
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
26
+ [x: string]: unknown;
27
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
28
+ [x: string]: unknown;
29
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
30
+ [x: string]: unknown;
31
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
32
+ [x: string]: unknown;
33
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
34
+ [x: string]: unknown;
35
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
36
+ [x: string]: unknown;
37
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
38
+ [x: string]: unknown;
39
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
40
+ [x: string]: unknown;
41
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
42
+ [x: string]: unknown;
43
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
44
+ [x: string]: unknown;
45
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
46
+ [x: string]: unknown;
47
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
48
+ [x: string]: unknown;
49
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
50
+ [x: string]: unknown;
51
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
52
+ [x: string]: unknown;
53
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
54
+ [x: string]: unknown;
55
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
56
+ [x: string]: unknown;
57
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
58
+ [x: string]: unknown;
59
+ }>, e?: InputEvent) => void) | undefined>;
60
+ onCompleteDateTo: NonNullable<((value: string, maskRef: import('imask').InputMask<{
61
+ [x: string]: unknown;
62
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
63
+ [x: string]: unknown;
64
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
65
+ [x: string]: unknown;
66
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
67
+ [x: string]: unknown;
68
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
69
+ [x: string]: unknown;
70
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
71
+ [x: string]: unknown;
72
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
73
+ [x: string]: unknown;
74
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
75
+ [x: string]: unknown;
76
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
77
+ [x: string]: unknown;
78
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
79
+ [x: string]: unknown;
80
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
81
+ [x: string]: unknown;
82
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
83
+ [x: string]: unknown;
84
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
85
+ [x: string]: unknown;
86
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
87
+ [x: string]: unknown;
88
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
89
+ [x: string]: unknown;
90
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
91
+ [x: string]: unknown;
92
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
93
+ [x: string]: unknown;
94
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
95
+ [x: string]: unknown;
96
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
97
+ [x: string]: unknown;
98
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
99
+ [x: string]: unknown;
100
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
101
+ [x: string]: unknown;
102
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
103
+ [x: string]: unknown;
104
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
105
+ [x: string]: unknown;
106
+ }>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
107
+ [x: string]: unknown;
108
+ }>, e?: InputEvent) => void) | undefined>;
109
+ onClickFromDateField: React.MouseEventHandler<HTMLInputElement>;
110
+ onClickToDateField: React.MouseEventHandler<HTMLInputElement>;
111
+ clearDateRange: () => void;
112
+ isErrorInputFields: boolean | undefined;
113
+ isDisabledInputFields: boolean | undefined;
114
+ };
115
+ export {};
@@ -0,0 +1,6 @@
1
+ import { useDateRangeDraft } from './useDateRangeDraft';
2
+ import { useDateRangeFormats } from './useDateRangeFormats';
3
+ import { useFormDateRangeFieldProvider } from './useFormDateRangeFieldProvider';
4
+ type PropsType = Pick<Parameters<typeof useFormDateRangeFieldProvider>[number], 'onChange' | 'value'> & Pick<ReturnType<typeof useDateRangeDraft>, 'setFromDateValue' | 'setToDateValue' | 'fromDateValue' | 'toDateValue'> & Pick<ReturnType<typeof useDateRangeFormats>, 'formatDateInputToValue' | 'formatValueItemToDateInput'>;
5
+ export declare function useSyncDateTimeValues(props: PropsType): void;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ui';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { FormFieldWrapper } from '../../../FormFieldWrapper';
3
+ import { FormDateRangeFieldBase } from './FormDateRangeFieldBase';
4
+ type PropsType = Omit<React.ComponentProps<typeof FormDateRangeFieldBase>, 'pickerSubtitle'> & Pick<React.ComponentProps<typeof FormFieldWrapper>, 'error' | 'hint' | 'helperLink' | 'label' | 'required' | 'typeDisplay'>;
5
+ export declare function FormDateRangeField(props: PropsType): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ import { useFormDateRangeFieldProvider } from '../hooks';
2
+ type PropsType = Parameters<typeof useFormDateRangeFieldProvider>[number];
3
+ export declare function FormDateRangeFieldBase(props: PropsType): import("react/jsx-runtime").JSX.Element;
4
+ export {};
@@ -0,0 +1 @@
1
+ export * from './useFormDateTimeFieldProvider';
@@ -0,0 +1,15 @@
1
+ import { useFormDateTimeFieldProvider } from './useFormDateTimeFieldProvider';
2
+ import { useDateTimeFormats } from './useDateTimeFormats';
3
+ type UseFormDateTimeFieldProps = Parameters<typeof useFormDateTimeFieldProvider>[number];
4
+ export type DateValue = string;
5
+ export type TimeValue = string;
6
+ type PropsType = Pick<UseFormDateTimeFieldProps, 'value'> & Pick<ReturnType<typeof useDateTimeFormats>, 'formatValueToDateInput' | 'formatValueToTimeInput'>;
7
+ export declare function useDateTimeDraft(props: PropsType): {
8
+ dateInputValue: string | undefined;
9
+ timeInputValue: string | undefined;
10
+ setDateInputValue: import('react').Dispatch<import('react').SetStateAction<string | undefined>>;
11
+ setTimeInputValue: import('react').Dispatch<import('react').SetStateAction<string | undefined>>;
12
+ clearDateTimeValue: () => void;
13
+ isFullDateInput: () => boolean;
14
+ };
15
+ export {};
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { DateTimePickerV2 } from '../../../..';
3
+ import { useFormDateTimeFieldProvider, ValueType } from './useFormDateTimeFieldProvider';
4
+ import { DateValue, TimeValue } from './useDateTimeDraft';
5
+ type DateTimePickerV2Props = React.ComponentProps<typeof DateTimePickerV2>;
6
+ type DateTimePickerValue = Parameters<NonNullable<DateTimePickerV2Props['onSubmitDateTime']>>[0] | Parameters<NonNullable<DateTimePickerV2Props['onSubmitDate']>>[0];
7
+ type PropsType = Required<Pick<Parameters<typeof useFormDateTimeFieldProvider>[number], 'outFormat' | 'inputDateFormat' | 'inputTimeFormat'>>;
8
+ export declare function useDateTimeFormats(props: PropsType): {
9
+ formatDateTimeInputToValue: (dateValue: DateValue, timeValue: TimeValue) => ValueType;
10
+ parseDateInput: (instance: DateValue) => Date;
11
+ parseTimeInput: (instance: TimeValue) => Date;
12
+ formatValueToDatePickerValue: (instance: ValueType) => DateTimePickerValue | undefined;
13
+ formatPickerValueToDateInput: (instance: DateTimePickerValue) => DateValue | undefined;
14
+ formatPickerValueToTimeInput: (instance: DateTimePickerValue) => TimeValue | undefined;
15
+ formatValueToDateInput: (instance: ValueType) => DateValue | undefined;
16
+ formatValueToTimeInput: (instance: ValueType) => TimeValue | undefined;
17
+ };
18
+ export {};
@@ -0,0 +1,62 @@
1
+ import { default as React } from 'react';
2
+ import { DateValue, TimeValue } from './useDateTimeDraft';
3
+ import { useInputFieldController } from './useInputFieldController';
4
+ import { useDateTimeFormats } from './useDateTimeFormats';
5
+ type PropsType = Pick<ReturnType<typeof useDateTimeFormats>, 'parseTimeInput' | 'parseDateInput'> & Pick<ReturnType<typeof useInputFieldController>, 'doubleInputRef'>;
6
+ export declare function useDateTimePickerController(props: PropsType): {
7
+ dateTimePickerRef: React.RefObject<Pick<{
8
+ pickerState: "time" | "date-main";
9
+ switchToDateMainPicker: () => void;
10
+ switchToTimePicker: () => void;
11
+ getPickerState: () => "time" | "date-main";
12
+ }, "switchToDateMainPicker" | "switchToTimePicker" | "getPickerState"> & Pick<{
13
+ createCommitDateTime: (prev: string | undefined) => NonNullable<string | undefined>;
14
+ createCommitDateTimeWithoutClearing: (prev: string | undefined) => NonNullable<string | undefined>;
15
+ setInput: <K extends "year" | "monthYear" | "dayMonthYear" | "hours" | "minutes">(key: K, instance: Partial<Partial<{
16
+ year: number;
17
+ monthYear: string;
18
+ dayMonthYear: string;
19
+ hours: number;
20
+ minutes: number;
21
+ }>>[K]) => void;
22
+ clearDateInput: () => void;
23
+ initViewYear: number | undefined;
24
+ initViewMonthYear: string | undefined;
25
+ initViewDayMonthYear: string | undefined;
26
+ initViewHours: number | undefined;
27
+ initViewMinutes: number | undefined;
28
+ getPreviewDate: (instance: string | undefined) => string | undefined;
29
+ getPreviewTime: (instance: string | undefined) => string | undefined;
30
+ }, "clearDateInput" | "setInput" | "createCommitDateTimeWithoutClearing" | "createCommitDateTime"> & {
31
+ timeFeedRef: React.RefObject<{
32
+ scrollToHour: (item: import('../../../../datePickersV2/hooks/feeds/time/feed/utils').ElementItem, behavior?: ScrollBehavior) => Promise<void>;
33
+ scrollToMinute: (item: import('../../../../datePickersV2/hooks/feeds/time/feed/utils').ElementItem, behavior?: ScrollBehavior) => Promise<void>;
34
+ }>;
35
+ dateBaseRef: React.RefObject<{
36
+ daysFeedRef: React.RefObject<{
37
+ scrollToDayMonth: (instance: import('../../../../datePickersV2/hooks/feeds/days/useDaysFeed').Day) => Promise<void>;
38
+ element: HTMLDivElement;
39
+ }>;
40
+ monthsFeedRef: React.RefObject<{
41
+ scrollToMonth: (instance: import('../../../../datePickersV2/hooks/feeds/month/useMonthsFeed').Month) => void;
42
+ element: HTMLDivElement;
43
+ }>;
44
+ yearsFeedRef: React.RefObject<{
45
+ scrollToYear: (instance: import('../../../../datePickersV2/hooks/feeds/year/useYearsFeed').Year) => void;
46
+ element: HTMLDivElement;
47
+ }>;
48
+ }>;
49
+ }>;
50
+ dateTimePickerWrapperRef: React.RefObject<never>;
51
+ moveToInputtedDateInPicker: (instance: DateValue) => Promise<(void | undefined)[]>;
52
+ moveToInputtedTimeInPicker: (instance: TimeValue) => Promise<(void | undefined)[]>;
53
+ showTimePicker: () => void;
54
+ showDatePicker: () => void;
55
+ clearDateTimeInputInPicker: () => void;
56
+ closePicker: () => void;
57
+ switchingPicker: () => void;
58
+ openPicker: () => void;
59
+ getIsShowPicker: () => boolean;
60
+ getPickerInitStyle: () => React.CSSProperties;
61
+ };
62
+ export {};
@@ -0,0 +1,11 @@
1
+ import { useDateTimeDraft } from './useDateTimeDraft';
2
+ import { useFormDateTimeFieldProvider } from './useFormDateTimeFieldProvider';
3
+ import { useDateTimePickerController } from './useDateTimePickerController';
4
+ import { useDateTimeFormats } from './useDateTimeFormats';
5
+ type PropsType = Pick<Parameters<typeof useFormDateTimeFieldProvider>[number], 'value'> & Pick<ReturnType<typeof useDateTimePickerController>, 'closePicker'> & Pick<ReturnType<typeof useDateTimeDraft>, 'setDateInputValue' | 'setTimeInputValue'> & Pick<ReturnType<typeof useDateTimeFormats>, 'formatPickerValueToTimeInput' | 'formatPickerValueToDateInput'>;
6
+ export declare function useDateTimePickerProps(props: PropsType): {
7
+ dateTime: string | undefined;
8
+ onSubmitDateTime: (dateTime: string) => void;
9
+ onSubmitDate: (dateTime: string) => void;
10
+ };
11
+ export {};