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.
- package/dist/index.cjs +20 -20
- package/dist/index.js +15897 -12626
- package/dist/indicator-ui.css +1 -1
- package/dist/types/src/hooks/feed/infinityFeed/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/feed/infinityFeed/hooks/state/useFeed.d.ts +5 -5
- package/dist/types/src/hooks/feed/infinityFeed/hooks/state/useFeedManager.d.ts +13 -11
- package/dist/types/src/hooks/feed/infinityFeed/hooks/useInfinityFeed.d.ts +5 -15
- package/dist/types/src/hooks/feed/infinityFeed/hooks/useScrollManager.d.ts +4 -14
- package/dist/types/src/hooks/feed/wheel/classes/index.d.ts +2 -2
- package/dist/types/src/hooks/feed/wheel/classes/wheelBaseFunction.d.ts +5 -0
- package/dist/types/src/hooks/feed/wheel/classes/wheelLyingParabola.d.ts +10 -0
- package/dist/types/src/hooks/feed/wheel/hooks/useParabolicVerticalFeed.d.ts +4 -3
- package/dist/types/src/hooks/index.d.ts +0 -2
- package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/hooks/useElementScrollPosition.d.ts +18 -0
- package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/index.d.ts +1 -0
- package/dist/types/src/hooks/scroll/hooks/elementScrollPosition/utils/index.d.ts +8 -0
- package/dist/types/src/hooks/scroll/hooks/index.d.ts +5 -1
- package/dist/types/src/hooks/scroll/hooks/scrollHandler/useScrollHandler.d.ts +3 -3
- package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/index.d.ts +4 -0
- package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useKeyboardScroll.d.ts +7 -0
- package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useTouchScroll.d.ts +3 -0
- package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useUserScrollMaster.d.ts +5 -0
- package/dist/types/src/hooks/scroll/hooks/scrollMaster/hooks/useWheelScroll.d.ts +3 -0
- package/dist/types/src/hooks/scroll/hooks/scrollMaster/index.d.ts +2 -0
- package/dist/types/src/hooks/scroll/hooks/scrollMaster/types/index.d.ts +20 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/classes/index.d.ts +1 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/classes/scrollRatio.d.ts +6 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/useScrollChannel.d.ts +9 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/useScrollListener.d.ts +5 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/hooks/useScrollSync.d.ts +9 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/index.d.ts +1 -0
- package/dist/types/src/hooks/scroll/hooks/scrollSync/utils/index.d.ts +1 -0
- package/dist/types/src/hooks/scroll/hooks/scrollToAsync/index.d.ts +2 -0
- package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useAsyncScrollTo.d.ts +1 -0
- package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useAsyncScrollToRef.d.ts +2 -0
- package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useRejectTimeouts.d.ts +6 -0
- package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useScrollPromises.d.ts +10 -0
- package/dist/types/src/hooks/scroll/hooks/scrollToAsync/useScrollTargetInfo.d.ts +6 -0
- package/dist/types/src/hooks/scroll/hooks/useScrollOffsetState.d.ts +7 -0
- package/dist/types/src/hooks/ui-animations/useModalAnim.d.ts +1 -1
- package/dist/types/src/hooks/utils/index.d.ts +6 -0
- package/dist/types/src/hooks/utils/useElementsRefs.d.ts +12 -0
- package/dist/types/src/hooks/utils/useIntersectionObserver.d.ts +6 -1
- package/dist/types/src/hooks/utils/useMostVisibleElement.d.ts +15 -0
- package/dist/types/src/hooks/utils/useMutex.d.ts +5 -0
- package/dist/types/src/hooks/utils/useRequestAnimationFrameAsync.d.ts +1 -0
- package/dist/types/src/lib/asserts/html.d.ts +1 -0
- package/dist/types/src/lib/asserts/index.d.ts +1 -0
- package/dist/types/src/lib/index.d.ts +1 -0
- package/dist/types/src/lib/tsAsserts/index.d.ts +2 -0
- package/dist/types/src/ui/DateTimePicker/ui/DateTimePicker.d.ts +1 -0
- package/dist/types/src/ui/InputFields/DateTimeField/ui/DateField.d.ts +1 -1
- package/dist/types/src/ui/InputFields/DateTimeField/ui/DateTimeField.d.ts +1 -1
- package/dist/types/src/ui/InputFields/DateTimeRangeField/ui/DateRangeField.d.ts +1 -1
- package/dist/types/src/ui/datePickersV2/hooks/components/index.d.ts +0 -0
- package/dist/types/src/ui/datePickersV2/hooks/components/time/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/components/time/useTimePickerTagList.d.ts +12 -0
- package/dist/types/src/ui/datePickersV2/hooks/dateManagers/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateInputManager.d.ts +13 -0
- package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateManager.d.ts +19 -0
- package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateManagerUtils.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateRangeManager.d.ts +15 -0
- package/dist/types/src/ui/datePickersV2/hooks/dateManagers/useDateTimeManager.d.ts +21 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeed.d.ts +19 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeedManager.d.ts +12 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeedProvider.d.ts +16 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysFeedRef.d.ts +14 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysGrid.d.ts +14 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysGridDisplay.d.ts +11 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysGridManager.d.ts +12 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useDaysInfoRequests.d.ts +17 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/days/useIntersectionViewMonth.d.ts +7 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/index.d.ts +0 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthGrid.d.ts +14 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthGridDisplay.d.ts +10 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeed.d.ts +23 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeedManager.d.ts +12 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeedProvider.d.ts +15 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsFeedRef.d.ts +14 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useMonthsGridManager.d.ts +10 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/month/useViewMonth.d.ts +7 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/useBaseFeed.d.ts +17 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/useFeedTracks.d.ts +22 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/usePreviewFeed.d.ts +16 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/index.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useElementsPositionStyle.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useFeedElementView.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useFeedList.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/feed/utils/useMostViewedElement.d.ts +9 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/time/useTimeFeed.d.ts +28 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useIntersectionViewYear.d.ts +7 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearFeedRef.d.ts +14 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearGridDisplay.d.ts +10 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsFeed.d.ts +22 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsFeedManager.d.ts +12 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsFeedProvider.d.ts +13 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsGrid.d.ts +14 -0
- package/dist/types/src/ui/datePickersV2/hooks/feeds/year/useYearsGridManager.d.ts +10 -0
- package/dist/types/src/ui/datePickersV2/hooks/index.d.ts +0 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/date/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/date/useDatePickerV2Provider.d.ts +41 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/useDateBaseProvider.d.ts +33 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/useDateBaseRef.d.ts +28 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/useDateDataManager.d.ts +16 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/usePickerState.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateBase/usePickersManager.d.ts +13 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateRange/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateRange/useDateRangePickerV2Provider.d.ts +46 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateTime/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateTime/useDateTimePickerV2Provider.d.ts +61 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/dateTime/usePickerState.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/hooks/pickers/index.d.ts +0 -0
- package/dist/types/src/ui/datePickersV2/styles/components/CalendarDay/index.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/styles/components/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/styles/components/time/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/days/components/index.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/days/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/index.d.ts +0 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/month/components/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/month/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/time/components/index.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/time/feed/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/time/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/year/components/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/styles/feed/year/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/styles/index.d.ts +0 -0
- package/dist/types/src/ui/datePickersV2/styles/pickers/components/index.d.ts +5 -0
- package/dist/types/src/ui/datePickersV2/styles/pickers/index.d.ts +0 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarButton.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/CalendarDay.d.ts +9 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Footer.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Header.d.ts +7 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Main.d.ts +9 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/Wrapper.d.ts +12 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarDay/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarMonth.d.ts +9 -0
- package/dist/types/src/ui/datePickersV2/ui/components/CalendarYear.d.ts +9 -0
- package/dist/types/src/ui/datePickersV2/ui/components/index.d.ts +5 -0
- package/dist/types/src/ui/datePickersV2/ui/components/time/TimePickerTag.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/components/time/TimePickerTagList.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/components/time/TimeWrapper.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/components/time/index.d.ts +2 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/days/DaysFeed.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/FeedWrapper.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/GridWrapper.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/Header.d.ts +12 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/WeekDays.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/days/components/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/days/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/index.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/month/MonthsFeed.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/FeedWrapper.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/GridWrapper.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/Header.d.ts +11 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/month/components/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/month/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/TimeFeed.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/Divider.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/Line.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/TimeCell.d.ts +7 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/TimeFeedWrapper.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/ViewZonePlatform.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/ViewZoneWrapper.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/components/index.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/BaseFeed.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/FeedTracks.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/PreviewFeed.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/feed/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/time/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/year/YearsFeed.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/FeedWrapper.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/GridWrapper.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/Header.d.ts +8 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/year/components/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/ui/feeds/year/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/DateBase.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/DatePickerV2.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/DateRangePickerV2.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/DateTimePickerV2.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/components/Footer.d.ts +10 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/components/Header.d.ts +7 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/components/MainWrapper.d.ts +4 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/components/Switcher.d.ts +13 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/components/Wrapper.d.ts +6 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/components/index.d.ts +5 -0
- package/dist/types/src/ui/datePickersV2/ui/pickers/index.d.ts +3 -0
- package/dist/types/src/ui/datePickersV2/utils/index.d.ts +1 -0
- package/dist/types/src/ui/datePickersV2/utils/months.d.ts +2 -0
- package/dist/types/src/ui/formFields/FormFieldWrapper/ui/FormFieldWrapper.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormPaginatedSelectField/lib/index.d.ts +0 -1
- package/dist/types/src/ui/formFields/components/DoubleInput/styles/components/index.d.ts +3 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/styles/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/DoubleInput.d.ts +8 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/DoubleInputItem.d.ts +8 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/DismissButton.d.ts +8 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/InputBase.d.ts +8 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/InputHint.d.ts +7 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/InputIcon.d.ts +7 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/components/index.d.ts +4 -0
- package/dist/types/src/ui/formFields/components/DoubleInput/ui/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/components/InputInnerButton/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/components/InputInnerButton/styles/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/components/InputInnerButton/ui/InputInnerButton.d.ts +6 -0
- package/dist/types/src/ui/formFields/components/InputInnerButton/ui/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/components/index.d.ts +3 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDateDraft.d.ts +12 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDateFormats.d.ts +15 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDatePickerController.d.ts +47 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useDatePickerProps.d.ts +10 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useFormDateFieldProvider.d.ts +124 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useInputFieldController.d.ts +5 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useInputFieldProps.d.ts +64 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/hooks/useSyncDateValues.d.ts +6 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/ui/FormDateField.d.ts +6 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/ui/FormDateFieldBase.d.ts +4 -0
- package/dist/types/src/ui/formFields/dates/FormDateField/ui/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateRangeDraft.d.ts +17 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateRangeFormats.d.ts +10 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateRangePickerProps.d.ts +11 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useDateTimePickerController.d.ts +43 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useFormDateRangeFieldProvider.d.ts +176 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useInputFieldController.d.ts +9 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useInputFieldProps.d.ts +115 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/hooks/useSyncDateTimeValues.d.ts +6 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/ui/FormDateRangeField.d.ts +6 -0
- package/dist/types/src/ui/formFields/dates/FormDateRangeField/ui/FormDateRangeFieldBase.d.ts +4 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimeDraft.d.ts +15 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimeFormats.d.ts +18 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimePickerController.d.ts +62 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useDateTimePickerProps.d.ts +11 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useFormDateTimeFieldProvider.d.ts +199 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useInputFieldController.d.ts +9 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useInputFieldProps.d.ts +114 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useSyncDateTimeValues.d.ts +6 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/ui/FormDateTimeField.d.ts +6 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/ui/FormDateTimeFieldBase.d.ts +4 -0
- package/dist/types/src/ui/formFields/dates/FormDateTimeField/ui/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/dates/index.d.ts +3 -0
- package/dist/types/src/ui/formFields/index.d.ts +1 -2
- package/dist/types/src/ui/index.d.ts +3 -2
- package/package.json +5 -5
- package/dist/types/src/hooks/feed/infinityFeed/utils/index.d.ts +0 -1
- package/dist/types/src/hooks/feed/wheel/classes/baseFunction.d.ts +0 -7
- package/dist/types/src/hooks/feed/wheel/classes/parabola.d.ts +0 -10
- package/dist/types/src/hooks/scroll/hooks/useScrollSync.d.ts +0 -2
- package/dist/types/src/hooks/scroll/utils/index.d.ts +0 -2
- package/dist/types/src/ui/formFields/FormDateField/ui/FormDateField.d.ts +0 -22
- package/dist/types/src/ui/formFields/FormDateField/ui/index.d.ts +0 -1
- package/dist/types/src/ui/formFields/FormDateRangeField/styles/index.d.ts +0 -3
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateRangeField.d.ts +0 -6
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateRangeFieldBase.d.ts +0 -26
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/InputInnerButton.d.ts +0 -5
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/Mask.d.ts +0 -14
- /package/dist/types/src/hooks/{useAsyncState.d.ts → utils/useAsyncState.d.ts} +0 -0
- /package/dist/types/src/hooks/{useSyncedStateRef.d.ts → utils/useSyncedStateRef.d.ts} +0 -0
- /package/dist/types/src/ui/{formFields/FormDateField → datePickersV2}/index.d.ts +0 -0
- /package/dist/types/src/ui/formFields/{FormDateRangeField → components/DoubleInput}/index.d.ts +0 -0
- /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/index.d.ts +0 -0
- /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/style/index.d.ts +0 -0
- /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/ui/DropdownArrow.d.ts +0 -0
- /package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/ui/index.d.ts +0 -0
- /package/dist/types/src/ui/formFields/{FormDateRangeField → dates/FormDateRangeField}/ui/index.d.ts +0 -0
package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useFormDateTimeFieldProvider.d.ts
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldPropsType } from '../../../../../hooks';
|
|
3
|
+
import { DateTimePickerV2 } from '../../../..';
|
|
4
|
+
import { DoubleInputItemProps } from './useInputFieldProps';
|
|
5
|
+
type DateTimePickerV2Props = React.ComponentProps<typeof DateTimePickerV2>;
|
|
6
|
+
type ValueBaseType = string;
|
|
7
|
+
type FieldProps = FieldPropsType<ValueBaseType>;
|
|
8
|
+
export type ValueType = FieldProps['value'];
|
|
9
|
+
type PropsType = FieldProps & Pick<DateTimePickerV2Props, 'requestDaysData' | 'requestedDaysData'> & {
|
|
10
|
+
/**
|
|
11
|
+
* Формат даты ввода пользователя.
|
|
12
|
+
*
|
|
13
|
+
* ---
|
|
14
|
+
* Для ознакомления с обозначениями {@link DATE_IMASK_BLOCKS}
|
|
15
|
+
* */
|
|
16
|
+
inputDateFormat?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Формат даты ввода пользователя.
|
|
19
|
+
*
|
|
20
|
+
* ---
|
|
21
|
+
* Для ознакомления с обозначениями {@link DATE_IMASK_BLOCKS}
|
|
22
|
+
* */
|
|
23
|
+
inputTimeFormat?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Формат даты (понимаемый `date-fns`), которая будет хранится в `value`.
|
|
26
|
+
*
|
|
27
|
+
* Пример: `"yyyy-MM-dd'T'HH:mm:ssXXX"`.
|
|
28
|
+
* */
|
|
29
|
+
outFormat?: string | 'iso';
|
|
30
|
+
datePlaceholder?: DoubleInputItemProps['placeholder'];
|
|
31
|
+
timePlaceholder?: DoubleInputItemProps['placeholder'];
|
|
32
|
+
dateHintText?: DoubleInputItemProps['hintText'];
|
|
33
|
+
timeHintText?: DoubleInputItemProps['hintText'];
|
|
34
|
+
dateIcon?: DoubleInputItemProps['icon'];
|
|
35
|
+
timeIcon?: DoubleInputItemProps['icon'];
|
|
36
|
+
disabled?: DoubleInputItemProps['disabled'];
|
|
37
|
+
pickerSubtitle?: DateTimePickerV2Props['subtitle'];
|
|
38
|
+
};
|
|
39
|
+
export declare function useFormDateTimeFieldProvider(props: PropsType): {
|
|
40
|
+
dateValue: string | undefined;
|
|
41
|
+
timeValue: string | undefined;
|
|
42
|
+
onCompleteDate: NonNullable<((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) | ((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) | undefined>;
|
|
91
|
+
onCompleteTime: NonNullable<((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) | ((value: string, maskRef: import('imask').InputMask<{
|
|
134
|
+
[x: string]: unknown;
|
|
135
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
138
|
+
[x: string]: unknown;
|
|
139
|
+
}>, e?: InputEvent) => void) | undefined>;
|
|
140
|
+
dateTimePickerRef: React.RefObject<Pick<{
|
|
141
|
+
pickerState: "time" | "date-main";
|
|
142
|
+
switchToDateMainPicker: () => void;
|
|
143
|
+
switchToTimePicker: () => void;
|
|
144
|
+
getPickerState: () => "time" | "date-main";
|
|
145
|
+
}, "switchToDateMainPicker" | "switchToTimePicker" | "getPickerState"> & Pick<{
|
|
146
|
+
createCommitDateTime: (prev: string | undefined) => NonNullable<string | undefined>;
|
|
147
|
+
createCommitDateTimeWithoutClearing: (prev: string | undefined) => NonNullable<string | undefined>;
|
|
148
|
+
setInput: <K extends "year" | "monthYear" | "dayMonthYear" | "hours" | "minutes">(key: K, instance: Partial<Partial<{
|
|
149
|
+
year: number;
|
|
150
|
+
monthYear: string;
|
|
151
|
+
dayMonthYear: string;
|
|
152
|
+
hours: number;
|
|
153
|
+
minutes: number;
|
|
154
|
+
}>>[K]) => void;
|
|
155
|
+
clearDateInput: () => void;
|
|
156
|
+
initViewYear: number | undefined;
|
|
157
|
+
initViewMonthYear: string | undefined;
|
|
158
|
+
initViewDayMonthYear: string | undefined;
|
|
159
|
+
initViewHours: number | undefined;
|
|
160
|
+
initViewMinutes: number | undefined;
|
|
161
|
+
getPreviewDate: (instance: string | undefined) => string | undefined;
|
|
162
|
+
getPreviewTime: (instance: string | undefined) => string | undefined;
|
|
163
|
+
}, "clearDateInput" | "setInput" | "createCommitDateTimeWithoutClearing" | "createCommitDateTime"> & {
|
|
164
|
+
timeFeedRef: React.RefObject<{
|
|
165
|
+
scrollToHour: (item: import('../../../../datePickersV2/hooks/feeds/time/feed/utils').ElementItem, behavior?: ScrollBehavior) => Promise<void>;
|
|
166
|
+
scrollToMinute: (item: import('../../../../datePickersV2/hooks/feeds/time/feed/utils').ElementItem, behavior?: ScrollBehavior) => Promise<void>;
|
|
167
|
+
}>;
|
|
168
|
+
dateBaseRef: React.RefObject<{
|
|
169
|
+
daysFeedRef: React.RefObject<{
|
|
170
|
+
scrollToDayMonth: (instance: import('../../../../datePickersV2/hooks/feeds/days/useDaysFeed').Day) => Promise<void>;
|
|
171
|
+
element: HTMLDivElement;
|
|
172
|
+
}>;
|
|
173
|
+
monthsFeedRef: React.RefObject<{
|
|
174
|
+
scrollToMonth: (instance: import('../../../../datePickersV2/hooks/feeds/month/useMonthsFeed').Month) => void;
|
|
175
|
+
element: HTMLDivElement;
|
|
176
|
+
}>;
|
|
177
|
+
yearsFeedRef: React.RefObject<{
|
|
178
|
+
scrollToYear: (instance: import('../../../../datePickersV2/hooks/feeds/year/useYearsFeed').Year) => void;
|
|
179
|
+
element: HTMLDivElement;
|
|
180
|
+
}>;
|
|
181
|
+
}>;
|
|
182
|
+
}>;
|
|
183
|
+
dateTimePickerWrapperRef: React.RefObject<never>;
|
|
184
|
+
doubleInputRef: React.RefObject<HTMLDivElement>;
|
|
185
|
+
dateInputRef: React.RefObject<HTMLInputElement>;
|
|
186
|
+
timeInputRef: React.RefObject<HTMLInputElement>;
|
|
187
|
+
inputDateFormat: string;
|
|
188
|
+
inputTimeFormat: string;
|
|
189
|
+
dateTime: string | undefined;
|
|
190
|
+
onSubmitDateTime: (dateTime: string) => void;
|
|
191
|
+
onSubmitDate: (dateTime: string) => void;
|
|
192
|
+
onClickTimeField: React.MouseEventHandler<HTMLInputElement>;
|
|
193
|
+
onClickDateField: React.MouseEventHandler<HTMLInputElement>;
|
|
194
|
+
clearDateTime: () => void;
|
|
195
|
+
isErrorInputFields: boolean | undefined;
|
|
196
|
+
isDisabledInputFields: boolean | undefined;
|
|
197
|
+
getPickerInitStyle: () => React.CSSProperties;
|
|
198
|
+
};
|
|
199
|
+
export {};
|
package/dist/types/src/ui/formFields/dates/FormDateTimeField/hooks/useInputFieldController.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function useInputFieldController(): {
|
|
2
|
+
doubleInputRef: import('react').RefObject<HTMLDivElement>;
|
|
3
|
+
dateInputRef: import('react').RefObject<HTMLInputElement>;
|
|
4
|
+
timeInputRef: import('react').RefObject<HTMLInputElement>;
|
|
5
|
+
focusOnDateField: () => void;
|
|
6
|
+
focusOnTimeField: () => void;
|
|
7
|
+
checkFocusedDateInput: () => boolean;
|
|
8
|
+
checkFocusedTimeInput: () => boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DoubleInputItem } from '../../../components';
|
|
3
|
+
import { useDateTimePickerController } from './useDateTimePickerController';
|
|
4
|
+
import { useDateTimeDraft } from './useDateTimeDraft';
|
|
5
|
+
import { useFormDateTimeFieldProvider } from './useFormDateTimeFieldProvider';
|
|
6
|
+
import { useInputFieldController } from './useInputFieldController';
|
|
7
|
+
export type DoubleInputItemProps = React.ComponentProps<typeof DoubleInputItem>;
|
|
8
|
+
type PropsType = Pick<Parameters<typeof useFormDateTimeFieldProvider>[number], 'error' | 'disabled'> & Pick<ReturnType<typeof useDateTimePickerController>, 'moveToInputtedDateInPicker' | 'moveToInputtedTimeInPicker' | 'clearDateTimeInputInPicker' | 'openPicker' | 'closePicker' | 'switchingPicker' | 'getIsShowPicker' | 'showTimePicker' | 'showDatePicker'> & Pick<ReturnType<typeof useInputFieldController>, 'focusOnTimeField' | 'focusOnDateField' | 'checkFocusedDateInput' | 'checkFocusedTimeInput'> & Pick<ReturnType<typeof useDateTimeDraft>, 'setTimeInputValue' | 'setDateInputValue' | 'clearDateTimeValue' | 'isFullDateInput'>;
|
|
9
|
+
export declare function useInputFieldProps(props: PropsType): {
|
|
10
|
+
onCompleteDate: NonNullable<((value: string, maskRef: import('imask').InputMask<{
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
21
|
+
[x: string]: unknown;
|
|
22
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
}>, e?: InputEvent) => void) | ((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) | undefined>;
|
|
59
|
+
onCompleteTime: NonNullable<((value: string, maskRef: import('imask').InputMask<{
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
68
|
+
[x: string]: unknown;
|
|
69
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
70
|
+
[x: string]: unknown;
|
|
71
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
74
|
+
[x: string]: unknown;
|
|
75
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
76
|
+
[x: string]: unknown;
|
|
77
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
78
|
+
[x: string]: unknown;
|
|
79
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
}>, e?: InputEvent) => void) | ((value: string, maskRef: import('imask').InputMask<{
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
}>, e?: InputEvent) => void) | ((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) | undefined>;
|
|
108
|
+
onClickDateField: React.MouseEventHandler<HTMLInputElement>;
|
|
109
|
+
onClickTimeField: React.MouseEventHandler<HTMLInputElement>;
|
|
110
|
+
clearDateTime: () => void;
|
|
111
|
+
isErrorInputFields: boolean | undefined;
|
|
112
|
+
isDisabledInputFields: boolean | undefined;
|
|
113
|
+
};
|
|
114
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useDateTimeDraft } from './useDateTimeDraft';
|
|
2
|
+
import { useDateTimeFormats } from './useDateTimeFormats';
|
|
3
|
+
import { useFormDateTimeFieldProvider } from './useFormDateTimeFieldProvider';
|
|
4
|
+
type PropsType = Pick<Parameters<typeof useFormDateTimeFieldProvider>[number], 'onChange' | 'value'> & Pick<ReturnType<typeof useDateTimeDraft>, 'setDateInputValue' | 'setTimeInputValue' | 'timeInputValue' | 'dateInputValue'> & Pick<ReturnType<typeof useDateTimeFormats>, 'formatDateTimeInputToValue' | 'formatValueToDateInput' | 'formatValueToTimeInput'>;
|
|
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 { FormDateTimeFieldBase } from './FormDateTimeFieldBase';
|
|
4
|
+
type PropsType = Omit<React.ComponentProps<typeof FormDateTimeFieldBase>, 'pickerSubtitle'> & Pick<React.ComponentProps<typeof FormFieldWrapper>, 'error' | 'hint' | 'helperLink' | 'label' | 'required' | 'typeDisplay'>;
|
|
5
|
+
export declare function FormDateTimeField(props: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -4,6 +4,5 @@ export * from './FormFieldWrapper';
|
|
|
4
4
|
export * from './FormSwitcherField';
|
|
5
5
|
export * from './FormRadioField';
|
|
6
6
|
export * from './FormTextareaField';
|
|
7
|
-
export * from './FormDateField';
|
|
8
|
-
export * from './FormDateRangeField';
|
|
9
7
|
export * from './FormPaginatedSelectField';
|
|
8
|
+
export * from './dates';
|
|
@@ -25,8 +25,9 @@ export * from './PlayButton';
|
|
|
25
25
|
export * from './DateTimePicker';
|
|
26
26
|
export * from './Tooltip';
|
|
27
27
|
export * from './Dropdown';
|
|
28
|
-
export * from './formFields';
|
|
29
28
|
export * from './Breadcrumbs';
|
|
30
|
-
export * from './DropdownV2';
|
|
31
29
|
export * from './Collapse';
|
|
30
|
+
export * from './formFields';
|
|
31
|
+
export * from './DropdownV2';
|
|
32
|
+
export * from './datePickersV2';
|
|
32
33
|
export * from './visual';
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"react-components",
|
|
12
12
|
"ui-kit"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.0
|
|
14
|
+
"version": "1.1.0",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./dist/types/index.d.ts",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": ">=18.0.0",
|
|
77
|
-
"react-dom": ">=18.0.0"
|
|
77
|
+
"react-dom": ">=18.0.0",
|
|
78
|
+
"gl-matrix": "^3.4.4",
|
|
79
|
+
"uuid": "^13.0.0"
|
|
78
80
|
},
|
|
79
|
-
"dependencies": {
|
|
80
|
-
"gl-matrix": "^3.4.4"
|
|
81
|
-
}
|
|
81
|
+
"dependencies": {}
|
|
82
82
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function assertHTMLElement(el: any): asserts el is HTMLElement;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { vec2 } from 'gl-matrix';
|
|
2
|
-
import { BaseFunction2D } from './baseFunction';
|
|
3
|
-
export declare class Parabola extends BaseFunction2D {
|
|
4
|
-
private a;
|
|
5
|
-
private b;
|
|
6
|
-
private c;
|
|
7
|
-
constructor(a?: number, b?: number, c?: number);
|
|
8
|
-
calcPoint(x: number): vec2;
|
|
9
|
-
derivative(x: number): vec2;
|
|
10
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FieldPropsType } from '../../../../hooks';
|
|
3
|
-
import { FormField } from '../../FormField';
|
|
4
|
-
type ValueType = string;
|
|
5
|
-
type BasePropsType = FieldPropsType<ValueType> & {
|
|
6
|
-
/**
|
|
7
|
-
* Формат даты ввода пользователя.
|
|
8
|
-
*
|
|
9
|
-
* ---
|
|
10
|
-
* Для ознакомления с обозначениями {@link DATE_IMASK_BLOCKS}
|
|
11
|
-
* */
|
|
12
|
-
inputFormat?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Формат даты, которая будет хранится в `value`.
|
|
15
|
-
*
|
|
16
|
-
* Пример: `yyyy-MM-dd`. Для более подробной информации по обозначениям смотрите тип {@link inputFormat}
|
|
17
|
-
* */
|
|
18
|
-
outFormat?: string;
|
|
19
|
-
};
|
|
20
|
-
type PropsType = Omit<React.ComponentProps<typeof FormField>, keyof BasePropsType> & BasePropsType;
|
|
21
|
-
export declare function FormDateField(props: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FormDateField';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FormDateRangeFieldBase } from './FormDateRangeFieldBase';
|
|
3
|
-
import { FormFieldWrapper } from '../../FormFieldWrapper';
|
|
4
|
-
type PropsType = React.ComponentProps<typeof FormDateRangeFieldBase> & React.ComponentProps<typeof FormFieldWrapper>;
|
|
5
|
-
export declare function FormDateRangeField(props: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FieldPropsType } from '../../../../hooks';
|
|
3
|
-
type ValueType = [string | undefined, string | undefined];
|
|
4
|
-
type PropsType = FieldPropsType<ValueType> & {
|
|
5
|
-
text1?: React.ReactNode;
|
|
6
|
-
text2?: React.ReactNode;
|
|
7
|
-
icon1?: React.ReactNode;
|
|
8
|
-
icon2?: React.ReactNode;
|
|
9
|
-
placeholder1?: string;
|
|
10
|
-
placeholder2?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Формат даты ввода пользователя.
|
|
13
|
-
*
|
|
14
|
-
* ---
|
|
15
|
-
* Для ознакомления с обозначениями {@link DATE_IMASK_BLOCKS}
|
|
16
|
-
* */
|
|
17
|
-
inputFormat?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Формат даты, которая будет хранится в `value`.
|
|
20
|
-
*
|
|
21
|
-
* Пример: `yyyy-MM-dd`. Для более подробной информации по обозначениям смотрите тип {@link inputFormat}
|
|
22
|
-
* */
|
|
23
|
-
outFormat?: string;
|
|
24
|
-
};
|
|
25
|
-
export declare function FormDateRangeFieldBase(props: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IMaskInput } from 'react-imask';
|
|
3
|
-
import { ExtendFactoryArgOptions } from 'imask/masked/factory';
|
|
4
|
-
import { BlockExtraOptions } from 'imask/masked/pattern';
|
|
5
|
-
type PropsType = React.ComponentProps<typeof IMaskInput> & {
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
text?: React.ReactNode;
|
|
8
|
-
divider?: boolean;
|
|
9
|
-
blocks?: {
|
|
10
|
-
[key: string]: ExtendFactoryArgOptions<BlockExtraOptions>;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare function Mask(props: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/src/ui/formFields/{FormDateRangeField → components/DoubleInput}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/src/ui/formFields/{extends → components/DropdownArrow}/ui/DropdownArrow.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/types/src/ui/formFields/{FormDateRangeField → dates/FormDateRangeField}/ui/index.d.ts
RENAMED
|
File without changes
|