urfu-ui-kit-react 2.1.2 → 2.1.4
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/README.md +4 -25
- package/dist/components/Accordion/Accordion.js +18 -0
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.js +32 -0
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +88 -0
- package/dist/components/Button/Button.types.d.ts +9 -3
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/ButtonRefreshIcon.js +35 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -5
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +355 -0
- package/dist/components/Calendar/CalendarSelect.js +149 -0
- package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
- package/dist/components/Calendar/MaskedDateInput.js +191 -0
- package/dist/components/Calendar/dateMask.d.ts +0 -1
- package/dist/components/Calendar/dateMask.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +75 -0
- package/dist/components/Checkbox/Checkbox.js +30 -0
- package/dist/components/ColumnSettings/ColumnSettings.js +216 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
- package/dist/components/ConfirmModal/ConfirmModal.js +40 -0
- package/dist/components/ErrorScreen/ErrorScreen.d.ts +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.js +221 -0
- package/dist/components/ErrorScreen/ErrorScreenIllustration.js +57 -0
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +40 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +32 -0
- package/dist/components/Icon/Icon.types.d.ts +3 -1
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.js +144 -0
- package/dist/components/InputFile/InputFile.d.ts +1 -1
- package/dist/components/InputFile/InputFile.d.ts.map +1 -1
- package/dist/components/InputFile/InputFile.js +203 -0
- package/dist/components/InputFile/InputFile.types.d.ts +0 -6
- package/dist/components/InputFile/InputFile.types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.js +220 -0
- package/dist/components/InputText/InputAffix.d.ts +1 -1
- package/dist/components/InputText/InputAffix.js +109 -0
- package/dist/components/InputText/InputText.d.ts +2 -1
- package/dist/components/InputText/InputText.d.ts.map +1 -1
- package/dist/components/InputText/InputText.js +137 -0
- package/dist/components/InputTime/InputTime.d.ts +1 -1
- package/dist/components/InputTime/InputTime.d.ts.map +1 -1
- package/dist/components/InputTime/InputTime.js +335 -0
- package/dist/components/InputTime/InputTimeDropdown.js +31 -0
- package/dist/components/InputTime/inputTimeKeyDown.js +63 -0
- package/dist/components/InputTime/useInputTimeWheel.js +45 -0
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +113 -0
- package/dist/components/Message/Message.js +29 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +102 -0
- package/dist/components/Modal/editorFocus.js +15 -0
- package/dist/components/Modal/useModalFocus.js +112 -0
- package/dist/components/Modal/useModalTitleClearance.js +48 -0
- package/dist/components/Multiselect/Multiselect.d.ts +1 -0
- package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/components/Multiselect/Multiselect.js +408 -0
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +156 -0
- package/dist/components/OfflineBanner/OfflineBanner.d.ts +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.js +40 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +126 -0
- package/dist/components/Preloader/Preloader.d.ts.map +1 -1
- package/dist/components/Preloader/Preloader.js +60 -0
- package/dist/components/Radio/Radio.js +34 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js +47 -0
- package/dist/components/SearchSelect/SearchSelect.js +295 -0
- package/dist/components/SearchSelect/SearchSelectOption.js +41 -0
- package/dist/components/SearchSelect/useFlippedPlacement.js +25 -0
- package/dist/components/Select/MobileOptionSheet.d.ts +1 -1
- package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
- package/dist/components/Select/MobileOptionSheet.js +116 -0
- package/dist/components/Select/Select.js +319 -0
- package/dist/components/Skeleton/Skeleton.js +38 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +4 -2
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/components/Status/Status.js +43 -0
- package/dist/components/StickyActionBar/StickyActionBar.d.ts +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.js +73 -0
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +29 -0
- package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
- package/dist/components/Table/Filter/DefaultInput.js +22 -0
- package/dist/components/Table/Filter/Filter.js +233 -0
- package/dist/components/Table/Filter/Filter.types.d.ts +17 -13
- package/dist/components/Table/Filter/Filter.types.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.js +40 -0
- package/dist/components/Table/Filter/FilterBoxShell.js +89 -0
- package/dist/components/Table/Filter/FilterConditionSelect.js +14 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterDateBox.js +173 -0
- package/dist/components/Table/Filter/FilterPanel.js +25 -0
- package/dist/components/Table/Filter/FilterSortIndicator.js +24 -0
- package/dist/components/Table/Filter/FilterStringBox.js +115 -0
- package/dist/components/Table/Filter/Functions.d.ts +0 -6
- package/dist/components/Table/Filter/Functions.d.ts.map +1 -1
- package/dist/components/Table/Filter/Functions.js +76 -0
- package/dist/components/Table/Filter/SelectFilter.js +114 -0
- package/dist/components/Table/Filter/SelectOptions.js +21 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts +1 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterOptions.js +268 -0
- package/dist/components/Table/Filter/TableFilterSortButton.js +17 -0
- package/dist/components/Table/Filter/filterBoxHelpers.js +2 -0
- package/dist/components/Table/Filter/filterExpression.js +48 -0
- package/dist/components/Table/Filter/filterLoading.js +2 -0
- package/dist/components/Table/Filter/useFilterDates.js +33 -0
- package/dist/components/Table/Filter/useFilterOptionsPreload.js +22 -0
- package/dist/components/Table/Filter/useLocalFilterSearch.js +32 -0
- package/dist/components/Table/Filter/usePagedFilterOptions.js +71 -0
- package/dist/components/Table/Filter/useServerFilterOptions.js +35 -0
- package/dist/components/Table/Filter/useVirtualOptionWindow.js +80 -0
- package/dist/components/Table/Functions.js +54 -0
- package/dist/components/Table/Skeleton/TableSkeleton.js +28 -0
- package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.js +75 -0
- package/dist/components/Table/Table.helpers.d.ts +2 -2
- package/dist/components/Table/Table.helpers.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.js +72 -0
- package/dist/components/Table/Table.js +419 -0
- package/dist/components/Table/Table.types.d.ts +6 -2
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +189 -0
- package/dist/components/Table/TableMobileCard.js +215 -0
- package/dist/components/Table/TableMobileFilters.js +56 -0
- package/dist/components/Table/TableMobileView.js +316 -0
- package/dist/components/Table/TableRow.js +136 -0
- package/dist/components/Table/useColumnResize.d.ts +3 -2
- package/dist/components/Table/useColumnResize.d.ts.map +1 -1
- package/dist/components/Table/useColumnResize.js +44 -0
- package/dist/components/Table/useDelayedSkeleton.d.ts +0 -2
- package/dist/components/Table/useDelayedSkeleton.d.ts.map +1 -1
- package/dist/components/Table/useDelayedSkeleton.js +32 -0
- package/dist/components/Table/useMobileFilterColumns.d.ts +1 -1
- package/dist/components/Table/useMobileFilterColumns.d.ts.map +1 -1
- package/dist/components/Table/useMobileFilterColumns.js +52 -0
- package/dist/components/Table/useStableColumnWidths.js +22 -0
- package/dist/components/Table/useTableColumnPinning.d.ts +2 -57
- package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
- package/dist/components/Table/useTableColumnPinning.js +52 -0
- package/dist/components/Table/useTableFilters.js +39 -0
- package/dist/components/Table/useTableSortState.js +38 -0
- package/dist/components/Table/useTableVirtualization.js +145 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +135 -0
- package/dist/components/Tabs/useTabsOverflow.js +49 -0
- package/dist/components/Textarea/Textarea.js +102 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +218 -0
- package/dist/components/TreeView/TreeView.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.js +323 -0
- package/dist/components/TreeView/TreeView.types.d.ts +0 -4
- package/dist/components/TreeView/TreeView.types.d.ts.map +1 -1
- package/dist/dev/index.js +336 -336
- package/dist/dev/types/vanilla/src/dev/shown.d.ts +0 -2
- package/dist/dev/types/vanilla/src/dev/store.d.ts +0 -4
- package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.svg +3 -0
- package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff2 +0 -0
- package/dist/hooks/useActiveOptionScroll.js +20 -0
- package/dist/hooks/useAnchoredPosition.d.ts +12 -0
- package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.js +37 -0
- package/dist/hooks/useAutoId.d.ts +0 -1
- package/dist/hooks/useAutoId.d.ts.map +1 -1
- package/dist/hooks/useAutoId.js +7 -0
- package/dist/hooks/useAutoPortal.js +11 -0
- package/dist/hooks/useDebounce.js +11 -0
- package/dist/hooks/useDismiss.d.ts +1 -1
- package/dist/hooks/useDismiss.d.ts.map +1 -1
- package/dist/hooks/useDismiss.js +20 -0
- package/dist/hooks/useInputOverflow.d.ts +9 -0
- package/dist/hooks/useInputOverflow.d.ts.map +1 -0
- package/dist/hooks/useInputOverflow.js +16 -0
- package/dist/hooks/useMediaQuery.js +21 -0
- package/dist/hooks/useMobilePicker.js +7 -0
- package/dist/hooks/useMountTransition.d.ts +1 -1
- package/dist/hooks/useMountTransition.d.ts.map +1 -1
- package/dist/hooks/useMountTransition.js +21 -0
- package/dist/hooks/useOnlineStatus.js +11 -0
- package/dist/hooks/useOptionKeyboardNavigation.js +63 -0
- package/dist/hooks/usePagination.js +31 -0
- package/dist/hooks/useSelectEngine.d.ts +3 -3
- package/dist/hooks/useSelectEngine.d.ts.map +1 -1
- package/dist/hooks/useSelectEngine.js +96 -0
- package/dist/hooks/useTableSort.js +13 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.js +44 -0
- package/dist/shared/fieldAccessibility.js +8 -0
- package/dist/shared/iconNames.d.ts +5 -0
- package/dist/shared/iconNames.d.ts.map +1 -0
- package/dist/shared/inputOverflow.d.ts +10 -0
- package/dist/shared/inputOverflow.d.ts.map +1 -0
- package/dist/shared/kitCopy.js +9 -0
- package/dist/shared/optionStateColors.js +5 -0
- package/dist/shared/optionValue.d.ts +1 -1
- package/dist/shared/optionValue.d.ts.map +1 -1
- package/dist/shared/optionValue.js +11 -0
- package/dist/shared/popupTransition.js +11 -0
- package/dist/shared/size.d.ts +0 -1
- package/dist/shared/size.d.ts.map +1 -1
- package/dist/shared/size.js +4 -0
- package/dist/shared/sortRows.js +24 -0
- package/dist/shared/uiKitDefaults.js +25 -0
- package/dist/style-no-fonts.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layer.css +9 -9
- package/dist/style.shell.css +15 -11
- package/dist/urfu-ui-kit-react.js +57 -17502
- package/dist/vanilla/core/BoundedOptionPageCache.js +41 -0
- package/dist/vanilla/core/dateMask.js +28 -0
- package/dist/vanilla/core/describeError.js +243 -0
- package/dist/vanilla/core/devLauncherOffset.js +20 -0
- package/dist/vanilla/core/distributeTabs.js +25 -0
- package/dist/vanilla/core/hasPreviousPage.js +6 -0
- package/dist/vanilla/core/inputMode.js +17 -0
- package/dist/vanilla/core/inputOverflow.js +34 -0
- package/dist/vanilla/core/kitRegistry.js +160 -0
- package/dist/vanilla/core/reconcileColumnOrder.js +5 -0
- package/dist/vanilla/core/sheetTitle.js +11 -0
- package/dist/vanilla/core/validation.js +21 -0
- package/dist/vendor/@floating-ui/core/dist/floating-ui.core.js +323 -0
- package/dist/vendor/@floating-ui/dom/dist/floating-ui.dom.js +383 -0
- package/dist/vendor/@floating-ui/react/dist/floating-ui.react.js +255 -0
- package/dist/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +183 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +110 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/vendor/clsx/dist/clsx.js +14 -0
- package/dist/vendor/date-fns/_lib/addLeadingZeros.js +5 -0
- package/dist/vendor/date-fns/_lib/defaultOptions.js +5 -0
- package/dist/vendor/date-fns/_lib/format/formatters.js +547 -0
- package/dist/vendor/date-fns/_lib/format/lightFormatters.js +56 -0
- package/dist/vendor/date-fns/_lib/format/longFormatters.js +47 -0
- package/dist/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +16 -0
- package/dist/vendor/date-fns/_lib/protectedTokens.js +16 -0
- package/dist/vendor/date-fns/addDays.js +7 -0
- package/dist/vendor/date-fns/addHours.js +6 -0
- package/dist/vendor/date-fns/addMilliseconds.js +7 -0
- package/dist/vendor/date-fns/addMinutes.js +6 -0
- package/dist/vendor/date-fns/addMonths.js +17 -0
- package/dist/vendor/date-fns/addQuarters.js +6 -0
- package/dist/vendor/date-fns/addSeconds.js +5 -0
- package/dist/vendor/date-fns/addWeeks.js +6 -0
- package/dist/vendor/date-fns/addYears.js +5 -0
- package/dist/vendor/date-fns/constants.js +2 -0
- package/dist/vendor/date-fns/constructFrom.js +4 -0
- package/dist/vendor/date-fns/differenceInCalendarDays.js +8 -0
- package/dist/vendor/date-fns/differenceInCalendarMonths.js +6 -0
- package/dist/vendor/date-fns/differenceInCalendarQuarters.js +7 -0
- package/dist/vendor/date-fns/differenceInCalendarYears.js +6 -0
- package/dist/vendor/date-fns/differenceInDays.js +13 -0
- package/dist/vendor/date-fns/endOfDay.js +6 -0
- package/dist/vendor/date-fns/endOfMonth.js +6 -0
- package/dist/vendor/date-fns/endOfWeek.js +8 -0
- package/dist/vendor/date-fns/endOfYear.js +6 -0
- package/dist/vendor/date-fns/format.js +53 -0
- package/dist/vendor/date-fns/getDate.js +5 -0
- package/dist/vendor/date-fns/getDay.js +5 -0
- package/dist/vendor/date-fns/getDayOfYear.js +8 -0
- package/dist/vendor/date-fns/getDaysInMonth.js +7 -0
- package/dist/vendor/date-fns/getDefaultOptions.js +5 -0
- package/dist/vendor/date-fns/getHours.js +5 -0
- package/dist/vendor/date-fns/getISODay.js +6 -0
- package/dist/vendor/date-fns/getISOWeek.js +9 -0
- package/dist/vendor/date-fns/getISOWeekYear.js +12 -0
- package/dist/vendor/date-fns/getMinutes.js +5 -0
- package/dist/vendor/date-fns/getMonth.js +5 -0
- package/dist/vendor/date-fns/getQuarter.js +6 -0
- package/dist/vendor/date-fns/getSeconds.js +5 -0
- package/dist/vendor/date-fns/getTime.js +5 -0
- package/dist/vendor/date-fns/getWeek.js +9 -0
- package/dist/vendor/date-fns/getWeekYear.js +14 -0
- package/dist/vendor/date-fns/getYear.js +5 -0
- package/dist/vendor/date-fns/isAfter.js +6 -0
- package/dist/vendor/date-fns/isBefore.js +6 -0
- package/dist/vendor/date-fns/isDate.js +4 -0
- package/dist/vendor/date-fns/isEqual.js +6 -0
- package/dist/vendor/date-fns/isSameDay.js +6 -0
- package/dist/vendor/date-fns/isSameMonth.js +6 -0
- package/dist/vendor/date-fns/isSameQuarter.js +6 -0
- package/dist/vendor/date-fns/isSameWeek.js +6 -0
- package/dist/vendor/date-fns/isSameYear.js +6 -0
- package/dist/vendor/date-fns/isValid.js +9 -0
- package/dist/vendor/date-fns/isWithinInterval.js +9 -0
- package/dist/vendor/date-fns/locale/_lib/buildFormatLongFn.js +7 -0
- package/dist/vendor/date-fns/locale/_lib/buildLocalizeFn.js +16 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchFn.js +29 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +13 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatDistance.js +68 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatLong.js +31 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatRelative.js +9 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/localize.js +153 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/match.js +108 -0
- package/dist/vendor/date-fns/locale/en-US.js +18 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatDistance.js +182 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatLong.js +28 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatRelative.js +62 -0
- package/dist/vendor/date-fns/locale/ru/_lib/localize.js +177 -0
- package/dist/vendor/date-fns/locale/ru/_lib/match.js +109 -0
- package/dist/vendor/date-fns/locale/ru.js +18 -0
- package/dist/vendor/date-fns/max.js +9 -0
- package/dist/vendor/date-fns/min.js +9 -0
- package/dist/vendor/date-fns/parse/_lib/Parser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/Setter.js +36 -0
- package/dist/vendor/date-fns/parse/_lib/constants.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DateParser.js +59 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +49 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/EraParser.js +29 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +19 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +101 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +38 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/SecondParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers.js +65 -0
- package/dist/vendor/date-fns/parse/_lib/utils.js +90 -0
- package/dist/vendor/date-fns/parse.js +85 -0
- package/dist/vendor/date-fns/parseISO.js +119 -0
- package/dist/vendor/date-fns/set.js +8 -0
- package/dist/vendor/date-fns/setDay.js +9 -0
- package/dist/vendor/date-fns/setHours.js +6 -0
- package/dist/vendor/date-fns/setISODay.js +8 -0
- package/dist/vendor/date-fns/setISOWeek.js +7 -0
- package/dist/vendor/date-fns/setMinutes.js +6 -0
- package/dist/vendor/date-fns/setMonth.js +10 -0
- package/dist/vendor/date-fns/setQuarter.js +7 -0
- package/dist/vendor/date-fns/setSeconds.js +6 -0
- package/dist/vendor/date-fns/setWeek.js +7 -0
- package/dist/vendor/date-fns/setYear.js +7 -0
- package/dist/vendor/date-fns/startOfDay.js +6 -0
- package/dist/vendor/date-fns/startOfISOWeek.js +5 -0
- package/dist/vendor/date-fns/startOfISOWeekYear.js +8 -0
- package/dist/vendor/date-fns/startOfMonth.js +6 -0
- package/dist/vendor/date-fns/startOfQuarter.js +6 -0
- package/dist/vendor/date-fns/startOfWeek.js +8 -0
- package/dist/vendor/date-fns/startOfWeekYear.js +10 -0
- package/dist/vendor/date-fns/startOfYear.js +7 -0
- package/dist/vendor/date-fns/subDays.js +5 -0
- package/dist/vendor/date-fns/subMonths.js +5 -0
- package/dist/vendor/date-fns/subQuarters.js +5 -0
- package/dist/vendor/date-fns/subWeeks.js +5 -0
- package/dist/vendor/date-fns/subYears.js +5 -0
- package/dist/vendor/date-fns/toDate.js +5 -0
- package/dist/vendor/date-fns/transpose.js +15 -0
- package/dist/vendor/react-datepicker/dist/es/index.js +2696 -0
- package/package.json +37 -35
- package/dist/hooks/useOutsideAlerter.d.ts +0 -3
- package/dist/hooks/useOutsideAlerter.d.ts.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { toDate$u as f } from "./toDate.js";
|
|
2
|
+
import { constructFrom$u as s } from "./constructFrom.js";
|
|
3
|
+
function h(n, o) {
|
|
4
|
+
const t = f(n);
|
|
5
|
+
if (isNaN(o)) return s(n, NaN);
|
|
6
|
+
if (!o)
|
|
7
|
+
return t;
|
|
8
|
+
const r = t.getDate(), e = s(n, t.getTime());
|
|
9
|
+
e.setMonth(t.getMonth() + o + 1, 0);
|
|
10
|
+
const i = e.getDate();
|
|
11
|
+
return r >= i ? e : (t.setFullYear(
|
|
12
|
+
e.getFullYear(),
|
|
13
|
+
e.getMonth(),
|
|
14
|
+
r
|
|
15
|
+
), t);
|
|
16
|
+
}
|
|
17
|
+
export { h as addMonths$u };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { millisecondsInDay$u as f } from "./constants.js";
|
|
2
|
+
import { startOfDay$u as n } from "./startOfDay.js";
|
|
3
|
+
import { getTimezoneOffsetInMilliseconds$u as o } from "./_lib/getTimezoneOffsetInMilliseconds.js";
|
|
4
|
+
function d(r, s) {
|
|
5
|
+
const t = n(r), e = n(s), i = +t - o(t), a = +e - o(e);
|
|
6
|
+
return Math.round((i - a) / f);
|
|
7
|
+
}
|
|
8
|
+
export { d as differenceInCalendarDays$u };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getQuarter$u as r } from "./getQuarter.js";
|
|
2
|
+
import { toDate$u as a } from "./toDate.js";
|
|
3
|
+
function l(o, f) {
|
|
4
|
+
const t = a(o), e = a(f), n = t.getFullYear() - e.getFullYear(), i = r(t) - r(e);
|
|
5
|
+
return n * 4 + i;
|
|
6
|
+
}
|
|
7
|
+
export { l as differenceInCalendarQuarters$u };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { differenceInCalendarDays$u as g } from "./differenceInCalendarDays.js";
|
|
2
|
+
import { toDate$u as l } from "./toDate.js";
|
|
3
|
+
function a(e, n) {
|
|
4
|
+
const s = l(e), o = l(n), t = u(s, o), r = Math.abs(g(s, o));
|
|
5
|
+
s.setDate(s.getDate() - t * r);
|
|
6
|
+
const i = +(u(s, o) === -t), c = t * (r - i);
|
|
7
|
+
return c === 0 ? 0 : c;
|
|
8
|
+
}
|
|
9
|
+
function u(e, n) {
|
|
10
|
+
const s = e.getFullYear() - n.getFullYear() || e.getMonth() - n.getMonth() || e.getDate() - n.getDate() || e.getHours() - n.getHours() || e.getMinutes() - n.getMinutes() || e.getSeconds() - n.getSeconds() || e.getMilliseconds() - n.getMilliseconds();
|
|
11
|
+
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
12
|
+
}
|
|
13
|
+
export { a as differenceInDays$u };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { toDate$u as i } from "./toDate.js";
|
|
2
|
+
import { getDefaultOptions$u as c } from "./_lib/defaultOptions.js";
|
|
3
|
+
function u(r, p) {
|
|
4
|
+
var s, a;
|
|
5
|
+
const e = c(), o = e.weekStartsOn ?? ((a = (s = e.locale) == null ? void 0 : s.options) == null ? void 0 : a.weekStartsOn) ?? 0, t = i(r), n = t.getDay(), f = (n < o ? -7 : 0) + 6 - (n - o);
|
|
6
|
+
return t.setDate(t.getDate() + f), t.setHours(23, 59, 59, 999), t;
|
|
7
|
+
}
|
|
8
|
+
export { u as endOfWeek$u };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { getDefaultOptions$u as v } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { formatters$u as D } from "./_lib/format/formatters.js";
|
|
3
|
+
import { longFormatters$u as C } from "./_lib/format/longFormatters.js";
|
|
4
|
+
import { isProtectedWeekYearToken$u as S, isProtectedDayOfYearToken$u as R, warnOrThrowProtectedError$u as W } from "./_lib/protectedTokens.js";
|
|
5
|
+
import { isValid$u as x } from "./isValid.js";
|
|
6
|
+
import { toDate$u as P } from "./toDate.js";
|
|
7
|
+
import { enUS$u as Y } from "./locale/en-US.js";
|
|
8
|
+
const z = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, F = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, y = /^'([^]*?)'?$/, A = /''/g, L = /[a-zA-Z]/;
|
|
9
|
+
function U(t, n, e) {
|
|
10
|
+
var i, s, k, u, d, g, h, w;
|
|
11
|
+
const c = v(), l = (e == null ? void 0 : e.locale) ?? c.locale ?? Y, T = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? c.firstWeekContainsDate ?? ((u = (k = c.locale) == null ? void 0 : k.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, O = (e == null ? void 0 : e.weekStartsOn) ?? ((g = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : g.weekStartsOn) ?? c.weekStartsOn ?? ((w = (h = c.locale) == null ? void 0 : h.options) == null ? void 0 : w.weekStartsOn) ?? 0, o = P(t);
|
|
12
|
+
if (!x(o))
|
|
13
|
+
throw new RangeError("Invalid time value");
|
|
14
|
+
let f = n.match(F).map((a) => {
|
|
15
|
+
const r = a[0];
|
|
16
|
+
if (r === "p" || r === "P") {
|
|
17
|
+
const m = C[r];
|
|
18
|
+
return m(a, l.formatLong);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
}).join("").match(z).map((a) => {
|
|
22
|
+
if (a === "''")
|
|
23
|
+
return { isToken: !1, value: "'" };
|
|
24
|
+
const r = a[0];
|
|
25
|
+
if (r === "'")
|
|
26
|
+
return { isToken: !1, value: $(a) };
|
|
27
|
+
if (D[r])
|
|
28
|
+
return { isToken: !0, value: a };
|
|
29
|
+
if (r.match(L))
|
|
30
|
+
throw new RangeError(
|
|
31
|
+
"Format string contains an unescaped latin alphabet character `" + r + "`"
|
|
32
|
+
);
|
|
33
|
+
return { isToken: !1, value: a };
|
|
34
|
+
});
|
|
35
|
+
l.localize.preprocessor && (f = l.localize.preprocessor(o, f));
|
|
36
|
+
const E = {
|
|
37
|
+
firstWeekContainsDate: T,
|
|
38
|
+
weekStartsOn: O,
|
|
39
|
+
locale: l
|
|
40
|
+
};
|
|
41
|
+
return f.map((a) => {
|
|
42
|
+
if (!a.isToken) return a.value;
|
|
43
|
+
const r = a.value;
|
|
44
|
+
(!(e != null && e.useAdditionalWeekYearTokens) && S(r) || !(e != null && e.useAdditionalDayOfYearTokens) && R(r)) && W(r, n, String(t));
|
|
45
|
+
const m = D[r[0]];
|
|
46
|
+
return m(o, r, l.localize, E);
|
|
47
|
+
}).join("");
|
|
48
|
+
}
|
|
49
|
+
function $(t) {
|
|
50
|
+
const n = t.match(y);
|
|
51
|
+
return n ? n[1].replace(A, "'") : t;
|
|
52
|
+
}
|
|
53
|
+
export { U as format$u, U as formatDate$u, D as formatters$u, C as longFormatters$u };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { differenceInCalendarDays$u as f } from "./differenceInCalendarDays.js";
|
|
2
|
+
import { startOfYear$u as a } from "./startOfYear.js";
|
|
3
|
+
import { toDate$u as e } from "./toDate.js";
|
|
4
|
+
function c(t) {
|
|
5
|
+
const r = e(t);
|
|
6
|
+
return f(r, a(r)) + 1;
|
|
7
|
+
}
|
|
8
|
+
export { c as getDayOfYear$u };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { toDate$u as s } from "./toDate.js";
|
|
2
|
+
import { constructFrom$u as a } from "./constructFrom.js";
|
|
3
|
+
function u(o) {
|
|
4
|
+
const e = s(o), n = e.getFullYear(), r = e.getMonth(), t = a(o, 0);
|
|
5
|
+
return t.setFullYear(n, r + 1, 0), t.setHours(0, 0, 0, 0), t.getDate();
|
|
6
|
+
}
|
|
7
|
+
export { u as getDaysInMonth$u };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { millisecondsInWeek$u as r } from "./constants.js";
|
|
2
|
+
import { startOfISOWeek$u as f } from "./startOfISOWeek.js";
|
|
3
|
+
import { startOfISOWeekYear$u as m } from "./startOfISOWeekYear.js";
|
|
4
|
+
import { toDate$u as i } from "./toDate.js";
|
|
5
|
+
function O(e) {
|
|
6
|
+
const t = i(e), o = +f(t) - +m(t);
|
|
7
|
+
return Math.round(o / r) + 1;
|
|
8
|
+
}
|
|
9
|
+
export { O as getISOWeek$u };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { constructFrom$u as a } from "./constructFrom.js";
|
|
2
|
+
import { startOfISOWeek$u as f } from "./startOfISOWeek.js";
|
|
3
|
+
import { toDate$u as i } from "./toDate.js";
|
|
4
|
+
function l(t) {
|
|
5
|
+
const r = i(t), e = r.getFullYear(), o = a(t, 0);
|
|
6
|
+
o.setFullYear(e + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
7
|
+
const n = f(o), s = a(t, 0);
|
|
8
|
+
s.setFullYear(e, 0, 4), s.setHours(0, 0, 0, 0);
|
|
9
|
+
const u = f(s);
|
|
10
|
+
return r.getTime() >= n.getTime() ? e + 1 : r.getTime() >= u.getTime() ? e : e - 1;
|
|
11
|
+
}
|
|
12
|
+
export { l as getISOWeekYear$u };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { millisecondsInWeek$u as f } from "./constants.js";
|
|
2
|
+
import { startOfWeek$u as m } from "./startOfWeek.js";
|
|
3
|
+
import { startOfWeekYear$u as i } from "./startOfWeekYear.js";
|
|
4
|
+
import { toDate$u as n } from "./toDate.js";
|
|
5
|
+
function k(r, t) {
|
|
6
|
+
const e = n(r), o = +m(e, t) - +i(e, t);
|
|
7
|
+
return Math.round(o / f) + 1;
|
|
8
|
+
}
|
|
9
|
+
export { k as getWeek$u };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { constructFrom$u as u } from "./constructFrom.js";
|
|
2
|
+
import { startOfWeek$u as k } from "./startOfWeek.js";
|
|
3
|
+
import { toDate$u as g } from "./toDate.js";
|
|
4
|
+
import { getDefaultOptions$u as D } from "./_lib/defaultOptions.js";
|
|
5
|
+
function x(r, e) {
|
|
6
|
+
var l, o, c, m;
|
|
7
|
+
const s = g(r), t = s.getFullYear(), i = D(), n = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : o.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((m = (c = i.locale) == null ? void 0 : c.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = u(r, 0);
|
|
8
|
+
a.setFullYear(t + 1, 0, n), a.setHours(0, 0, 0, 0);
|
|
9
|
+
const W = k(a, e), f = u(r, 0);
|
|
10
|
+
f.setFullYear(t, 0, n), f.setHours(0, 0, 0, 0);
|
|
11
|
+
const Y = k(f, e);
|
|
12
|
+
return s.getTime() >= W.getTime() ? t + 1 : s.getTime() >= Y.getTime() ? t : t - 1;
|
|
13
|
+
}
|
|
14
|
+
export { x as getWeekYear$u };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function h(e) {
|
|
2
|
+
return (a, t) => {
|
|
3
|
+
const c = t != null && t.context ? String(t.context) : "standalone";
|
|
4
|
+
let l;
|
|
5
|
+
if (c === "formatting" && e.formattingValues) {
|
|
6
|
+
const d = e.defaultFormattingWidth || e.defaultWidth, u = t != null && t.width ? String(t.width) : d;
|
|
7
|
+
l = e.formattingValues[u] || e.formattingValues[d];
|
|
8
|
+
} else {
|
|
9
|
+
const d = e.defaultWidth, u = t != null && t.width ? String(t.width) : e.defaultWidth;
|
|
10
|
+
l = e.values[u] || e.values[d];
|
|
11
|
+
}
|
|
12
|
+
const f = e.argumentCallback ? e.argumentCallback(a) : a;
|
|
13
|
+
return l[f];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export { h as buildLocalizeFn$u };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function P(t) {
|
|
2
|
+
return (n, e = {}) => {
|
|
3
|
+
const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
|
|
4
|
+
if (!i)
|
|
5
|
+
return null;
|
|
6
|
+
const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
8
|
+
s(c, (u) => u.test(r))
|
|
9
|
+
);
|
|
10
|
+
let a;
|
|
11
|
+
a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
13
|
+
e.valueCallback(a)
|
|
14
|
+
) : a;
|
|
15
|
+
const f = n.slice(r.length);
|
|
16
|
+
return { value: a, rest: f };
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function s(t, n) {
|
|
20
|
+
for (const e in t)
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function o(t, n) {
|
|
25
|
+
for (let e = 0; e < t.length; e++)
|
|
26
|
+
if (n(t[e]))
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
29
|
+
export { P as buildMatchFn$u };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function h(t) {
|
|
2
|
+
return (e, c = {}) => {
|
|
3
|
+
const n = e.match(t.matchPattern);
|
|
4
|
+
if (!n) return null;
|
|
5
|
+
const u = n[0], a = e.match(t.parsePattern);
|
|
6
|
+
if (!a) return null;
|
|
7
|
+
let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
8
|
+
l = c.valueCallback ? c.valueCallback(l) : l;
|
|
9
|
+
const r = e.slice(u.length);
|
|
10
|
+
return { value: l, rest: r };
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export { h as buildMatchPatternFn$u };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
lessThanXSeconds: {
|
|
3
|
+
one: "less than a second",
|
|
4
|
+
other: "less than {{count}} seconds"
|
|
5
|
+
},
|
|
6
|
+
xSeconds: {
|
|
7
|
+
one: "1 second",
|
|
8
|
+
other: "{{count}} seconds"
|
|
9
|
+
},
|
|
10
|
+
halfAMinute: "half a minute",
|
|
11
|
+
lessThanXMinutes: {
|
|
12
|
+
one: "less than a minute",
|
|
13
|
+
other: "less than {{count}} minutes"
|
|
14
|
+
},
|
|
15
|
+
xMinutes: {
|
|
16
|
+
one: "1 minute",
|
|
17
|
+
other: "{{count}} minutes"
|
|
18
|
+
},
|
|
19
|
+
aboutXHours: {
|
|
20
|
+
one: "about 1 hour",
|
|
21
|
+
other: "about {{count}} hours"
|
|
22
|
+
},
|
|
23
|
+
xHours: {
|
|
24
|
+
one: "1 hour",
|
|
25
|
+
other: "{{count}} hours"
|
|
26
|
+
},
|
|
27
|
+
xDays: {
|
|
28
|
+
one: "1 day",
|
|
29
|
+
other: "{{count}} days"
|
|
30
|
+
},
|
|
31
|
+
aboutXWeeks: {
|
|
32
|
+
one: "about 1 week",
|
|
33
|
+
other: "about {{count}} weeks"
|
|
34
|
+
},
|
|
35
|
+
xWeeks: {
|
|
36
|
+
one: "1 week",
|
|
37
|
+
other: "{{count}} weeks"
|
|
38
|
+
},
|
|
39
|
+
aboutXMonths: {
|
|
40
|
+
one: "about 1 month",
|
|
41
|
+
other: "about {{count}} months"
|
|
42
|
+
},
|
|
43
|
+
xMonths: {
|
|
44
|
+
one: "1 month",
|
|
45
|
+
other: "{{count}} months"
|
|
46
|
+
},
|
|
47
|
+
aboutXYears: {
|
|
48
|
+
one: "about 1 year",
|
|
49
|
+
other: "about {{count}} years"
|
|
50
|
+
},
|
|
51
|
+
xYears: {
|
|
52
|
+
one: "1 year",
|
|
53
|
+
other: "{{count}} years"
|
|
54
|
+
},
|
|
55
|
+
overXYears: {
|
|
56
|
+
one: "over 1 year",
|
|
57
|
+
other: "over {{count}} years"
|
|
58
|
+
},
|
|
59
|
+
almostXYears: {
|
|
60
|
+
one: "almost 1 year",
|
|
61
|
+
other: "almost {{count}} years"
|
|
62
|
+
}
|
|
63
|
+
}, r = (s, n, o) => {
|
|
64
|
+
let e;
|
|
65
|
+
const t = a[s];
|
|
66
|
+
return typeof t == "string" ? e = t : n === 1 ? e = t.one : e = t.other.replace("{{count}}", n.toString()), o != null && o.addSuffix ? o.comparison && o.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
67
|
+
};
|
|
68
|
+
export { r as formatDistance$u };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { buildFormatLongFn$u as t } from "../../_lib/buildFormatLongFn.js";
|
|
2
|
+
const m = {
|
|
3
|
+
full: "EEEE, MMMM do, y",
|
|
4
|
+
long: "MMMM do, y",
|
|
5
|
+
medium: "MMM d, y",
|
|
6
|
+
short: "MM/dd/yyyy"
|
|
7
|
+
}, a = {
|
|
8
|
+
full: "h:mm:ss a zzzz",
|
|
9
|
+
long: "h:mm:ss a z",
|
|
10
|
+
medium: "h:mm:ss a",
|
|
11
|
+
short: "h:mm a"
|
|
12
|
+
}, o = {
|
|
13
|
+
full: "{{date}} 'at' {{time}}",
|
|
14
|
+
long: "{{date}} 'at' {{time}}",
|
|
15
|
+
medium: "{{date}}, {{time}}",
|
|
16
|
+
short: "{{date}}, {{time}}"
|
|
17
|
+
}, e = {
|
|
18
|
+
date: t({
|
|
19
|
+
formats: m,
|
|
20
|
+
defaultWidth: "full"
|
|
21
|
+
}),
|
|
22
|
+
time: t({
|
|
23
|
+
formats: a,
|
|
24
|
+
defaultWidth: "full"
|
|
25
|
+
}),
|
|
26
|
+
dateTime: t({
|
|
27
|
+
formats: o,
|
|
28
|
+
defaultWidth: "full"
|
|
29
|
+
})
|
|
30
|
+
};
|
|
31
|
+
export { e as formatLong$u };
|