urfu-ui-kit-react 2.1.3 → 2.1.5

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 (412) hide show
  1. package/README.md +4 -25
  2. package/dist/components/Accordion/Accordion.js +18 -0
  3. package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -1
  4. package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
  5. package/dist/components/BreadCrumbs/BreadCrumbs.js +32 -0
  6. package/dist/components/Button/Button.d.ts +1 -0
  7. package/dist/components/Button/Button.d.ts.map +1 -1
  8. package/dist/components/Button/Button.js +88 -0
  9. package/dist/components/Button/Button.types.d.ts +9 -3
  10. package/dist/components/Button/Button.types.d.ts.map +1 -1
  11. package/dist/components/Button/ButtonRefreshIcon.js +35 -0
  12. package/dist/components/Calendar/Calendar.d.ts +1 -5
  13. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  14. package/dist/components/Calendar/Calendar.js +355 -0
  15. package/dist/components/Calendar/CalendarSelect.js +149 -0
  16. package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
  17. package/dist/components/Calendar/MaskedDateInput.js +191 -0
  18. package/dist/components/Calendar/dateMask.d.ts +0 -1
  19. package/dist/components/Calendar/dateMask.d.ts.map +1 -1
  20. package/dist/components/Card/Card.d.ts +1 -1
  21. package/dist/components/Card/Card.d.ts.map +1 -1
  22. package/dist/components/Card/Card.js +75 -0
  23. package/dist/components/Checkbox/Checkbox.js +30 -0
  24. package/dist/components/ColumnSettings/ColumnSettings.js +216 -0
  25. package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -0
  26. package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
  27. package/dist/components/ConfirmModal/ConfirmModal.js +40 -0
  28. package/dist/components/ErrorScreen/ErrorScreen.d.ts +1 -1
  29. package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
  30. package/dist/components/ErrorScreen/ErrorScreen.js +221 -0
  31. package/dist/components/ErrorScreen/ErrorScreenIllustration.js +57 -0
  32. package/dist/components/FormField/FormField.d.ts +1 -1
  33. package/dist/components/FormField/FormField.d.ts.map +1 -1
  34. package/dist/components/FormField/FormField.js +40 -0
  35. package/dist/components/Icon/Icon.d.ts +1 -1
  36. package/dist/components/Icon/Icon.d.ts.map +1 -1
  37. package/dist/components/Icon/Icon.js +32 -0
  38. package/dist/components/Icon/Icon.types.d.ts +3 -1
  39. package/dist/components/Icon/Icon.types.d.ts.map +1 -1
  40. package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts +1 -1
  41. package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
  42. package/dist/components/InputExpandTextarea/InputExpandTextarea.js +144 -0
  43. package/dist/components/InputFile/InputFile.d.ts +1 -1
  44. package/dist/components/InputFile/InputFile.d.ts.map +1 -1
  45. package/dist/components/InputFile/InputFile.js +203 -0
  46. package/dist/components/InputFile/InputFile.types.d.ts +0 -6
  47. package/dist/components/InputFile/InputFile.types.d.ts.map +1 -1
  48. package/dist/components/InputNumber/InputNumber.d.ts +1 -1
  49. package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
  50. package/dist/components/InputNumber/InputNumber.js +220 -0
  51. package/dist/components/InputText/InputAffix.d.ts +1 -1
  52. package/dist/components/InputText/InputAffix.js +109 -0
  53. package/dist/components/InputText/InputText.d.ts +2 -1
  54. package/dist/components/InputText/InputText.d.ts.map +1 -1
  55. package/dist/components/InputText/InputText.js +137 -0
  56. package/dist/components/InputTime/InputTime.d.ts +1 -1
  57. package/dist/components/InputTime/InputTime.d.ts.map +1 -1
  58. package/dist/components/InputTime/InputTime.js +335 -0
  59. package/dist/components/InputTime/InputTimeDropdown.js +31 -0
  60. package/dist/components/InputTime/inputTimeKeyDown.js +63 -0
  61. package/dist/components/InputTime/useInputTimeWheel.js +45 -0
  62. package/dist/components/Menu/Menu.d.ts +1 -1
  63. package/dist/components/Menu/Menu.d.ts.map +1 -1
  64. package/dist/components/Menu/Menu.js +113 -0
  65. package/dist/components/Message/Message.js +29 -0
  66. package/dist/components/Modal/Modal.d.ts +1 -0
  67. package/dist/components/Modal/Modal.d.ts.map +1 -1
  68. package/dist/components/Modal/Modal.js +102 -0
  69. package/dist/components/Modal/editorFocus.js +15 -0
  70. package/dist/components/Modal/useModalFocus.js +112 -0
  71. package/dist/components/Modal/useModalTitleClearance.js +48 -0
  72. package/dist/components/Multiselect/Multiselect.d.ts +1 -0
  73. package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
  74. package/dist/components/Multiselect/Multiselect.js +408 -0
  75. package/dist/components/Notification/Notification.d.ts +1 -1
  76. package/dist/components/Notification/Notification.d.ts.map +1 -1
  77. package/dist/components/Notification/Notification.js +156 -0
  78. package/dist/components/OfflineBanner/OfflineBanner.d.ts +1 -1
  79. package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
  80. package/dist/components/OfflineBanner/OfflineBanner.js +40 -0
  81. package/dist/components/Pagination/Pagination.d.ts +1 -1
  82. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  83. package/dist/components/Pagination/Pagination.js +126 -0
  84. package/dist/components/Preloader/Preloader.d.ts.map +1 -1
  85. package/dist/components/Preloader/Preloader.js +60 -0
  86. package/dist/components/Radio/Radio.js +34 -0
  87. package/dist/components/Search/Search.d.ts +1 -1
  88. package/dist/components/Search/Search.d.ts.map +1 -1
  89. package/dist/components/Search/Search.js +47 -0
  90. package/dist/components/SearchSelect/SearchSelect.js +295 -0
  91. package/dist/components/SearchSelect/SearchSelectOption.js +41 -0
  92. package/dist/components/SearchSelect/useFlippedPlacement.js +25 -0
  93. package/dist/components/Select/MobileOptionSheet.d.ts +1 -1
  94. package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
  95. package/dist/components/Select/MobileOptionSheet.js +116 -0
  96. package/dist/components/Select/Select.js +319 -0
  97. package/dist/components/Skeleton/Skeleton.js +38 -0
  98. package/dist/components/Skeleton/Skeleton.types.d.ts +4 -2
  99. package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -1
  100. package/dist/components/Status/Status.js +43 -0
  101. package/dist/components/StickyActionBar/StickyActionBar.d.ts +1 -1
  102. package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
  103. package/dist/components/StickyActionBar/StickyActionBar.js +73 -0
  104. package/dist/components/Switch/Switch.d.ts +1 -1
  105. package/dist/components/Switch/Switch.d.ts.map +1 -1
  106. package/dist/components/Switch/Switch.js +29 -0
  107. package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
  108. package/dist/components/Table/Filter/DefaultInput.js +22 -0
  109. package/dist/components/Table/Filter/Filter.js +233 -0
  110. package/dist/components/Table/Filter/Filter.types.d.ts +17 -13
  111. package/dist/components/Table/Filter/Filter.types.d.ts.map +1 -1
  112. package/dist/components/Table/Filter/FilterBooleanBox.d.ts +1 -0
  113. package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
  114. package/dist/components/Table/Filter/FilterBooleanBox.js +40 -0
  115. package/dist/components/Table/Filter/FilterBoxShell.js +89 -0
  116. package/dist/components/Table/Filter/FilterConditionSelect.js +14 -0
  117. package/dist/components/Table/Filter/FilterDateBox.d.ts +1 -0
  118. package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
  119. package/dist/components/Table/Filter/FilterDateBox.js +173 -0
  120. package/dist/components/Table/Filter/FilterPanel.js +25 -0
  121. package/dist/components/Table/Filter/FilterSortIndicator.js +24 -0
  122. package/dist/components/Table/Filter/FilterStringBox.js +115 -0
  123. package/dist/components/Table/Filter/Functions.d.ts +0 -6
  124. package/dist/components/Table/Filter/Functions.d.ts.map +1 -1
  125. package/dist/components/Table/Filter/Functions.js +76 -0
  126. package/dist/components/Table/Filter/SelectFilter.js +114 -0
  127. package/dist/components/Table/Filter/SelectOptions.js +21 -0
  128. package/dist/components/Table/Filter/TableFilterOptions.d.ts +1 -0
  129. package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
  130. package/dist/components/Table/Filter/TableFilterOptions.js +268 -0
  131. package/dist/components/Table/Filter/TableFilterSortButton.js +17 -0
  132. package/dist/components/Table/Filter/filterBoxHelpers.js +2 -0
  133. package/dist/components/Table/Filter/filterExpression.js +48 -0
  134. package/dist/components/Table/Filter/filterLoading.js +2 -0
  135. package/dist/components/Table/Filter/useFilterDates.js +33 -0
  136. package/dist/components/Table/Filter/useFilterOptionsPreload.js +22 -0
  137. package/dist/components/Table/Filter/useLocalFilterSearch.js +32 -0
  138. package/dist/components/Table/Filter/usePagedFilterOptions.js +71 -0
  139. package/dist/components/Table/Filter/useServerFilterOptions.js +35 -0
  140. package/dist/components/Table/Filter/useVirtualOptionWindow.js +80 -0
  141. package/dist/components/Table/Functions.js +54 -0
  142. package/dist/components/Table/Skeleton/TableSkeleton.js +28 -0
  143. package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -0
  144. package/dist/components/Table/Table.d.ts +1 -0
  145. package/dist/components/Table/Table.d.ts.map +1 -1
  146. package/dist/components/Table/Table.dataPipeline.d.ts.map +1 -1
  147. package/dist/components/Table/Table.dataPipeline.js +75 -0
  148. package/dist/components/Table/Table.helpers.d.ts +2 -2
  149. package/dist/components/Table/Table.helpers.d.ts.map +1 -1
  150. package/dist/components/Table/Table.helpers.js +72 -0
  151. package/dist/components/Table/Table.js +419 -0
  152. package/dist/components/Table/Table.types.d.ts +6 -2
  153. package/dist/components/Table/Table.types.d.ts.map +1 -1
  154. package/dist/components/Table/TableHead.d.ts.map +1 -1
  155. package/dist/components/Table/TableHead.js +189 -0
  156. package/dist/components/Table/TableMobileCard.js +215 -0
  157. package/dist/components/Table/TableMobileFilters.js +56 -0
  158. package/dist/components/Table/TableMobileView.js +316 -0
  159. package/dist/components/Table/TableRow.js +136 -0
  160. package/dist/components/Table/useColumnResize.d.ts +3 -2
  161. package/dist/components/Table/useColumnResize.d.ts.map +1 -1
  162. package/dist/components/Table/useColumnResize.js +44 -0
  163. package/dist/components/Table/useDelayedSkeleton.d.ts +0 -2
  164. package/dist/components/Table/useDelayedSkeleton.d.ts.map +1 -1
  165. package/dist/components/Table/useDelayedSkeleton.js +32 -0
  166. package/dist/components/Table/useMobileFilterColumns.d.ts +1 -1
  167. package/dist/components/Table/useMobileFilterColumns.d.ts.map +1 -1
  168. package/dist/components/Table/useMobileFilterColumns.js +52 -0
  169. package/dist/components/Table/useStableColumnWidths.js +22 -0
  170. package/dist/components/Table/useTableColumnPinning.d.ts +2 -57
  171. package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
  172. package/dist/components/Table/useTableColumnPinning.js +52 -0
  173. package/dist/components/Table/useTableFilters.js +39 -0
  174. package/dist/components/Table/useTableSortState.js +38 -0
  175. package/dist/components/Table/useTableVirtualization.js +145 -0
  176. package/dist/components/Tabs/Tabs.d.ts +1 -0
  177. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  178. package/dist/components/Tabs/Tabs.js +141 -0
  179. package/dist/components/Tabs/tabsIndicator.d.ts +14 -0
  180. package/dist/components/Tabs/tabsIndicator.d.ts.map +1 -0
  181. package/dist/components/Tabs/useTabsIndicator.d.ts +6 -0
  182. package/dist/components/Tabs/useTabsIndicator.d.ts.map +1 -0
  183. package/dist/components/Tabs/useTabsIndicator.js +14 -0
  184. package/dist/components/Tabs/useTabsOverflow.js +49 -0
  185. package/dist/components/Textarea/Textarea.js +102 -0
  186. package/dist/components/Tooltip/Tooltip.d.ts +1 -0
  187. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  188. package/dist/components/Tooltip/Tooltip.js +218 -0
  189. package/dist/components/TreeView/TreeView.d.ts +1 -0
  190. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  191. package/dist/components/TreeView/TreeView.js +323 -0
  192. package/dist/components/TreeView/TreeView.types.d.ts +0 -4
  193. package/dist/components/TreeView/TreeView.types.d.ts.map +1 -1
  194. package/dist/dev/index.js +2 -2
  195. package/dist/dev/types/vanilla/src/dev/shown.d.ts +0 -2
  196. package/dist/dev/types/vanilla/src/dev/store.d.ts +0 -4
  197. package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
  198. package/dist/fonts/icons/urfu-ui-icon-font.svg +4 -1
  199. package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
  200. package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
  201. package/dist/fonts/icons/urfu-ui-icon-font.woff2 +0 -0
  202. package/dist/hooks/useActiveOptionScroll.js +20 -0
  203. package/dist/hooks/useAnchoredPosition.js +37 -0
  204. package/dist/hooks/useAutoId.d.ts +0 -1
  205. package/dist/hooks/useAutoId.d.ts.map +1 -1
  206. package/dist/hooks/useAutoId.js +7 -0
  207. package/dist/hooks/useAutoPortal.js +11 -0
  208. package/dist/hooks/useDebounce.js +11 -0
  209. package/dist/hooks/useDismiss.d.ts +1 -1
  210. package/dist/hooks/useDismiss.d.ts.map +1 -1
  211. package/dist/hooks/useDismiss.js +20 -0
  212. package/dist/hooks/useInputOverflow.d.ts +9 -0
  213. package/dist/hooks/useInputOverflow.d.ts.map +1 -0
  214. package/dist/hooks/useInputOverflow.js +16 -0
  215. package/dist/hooks/useMediaQuery.js +21 -0
  216. package/dist/hooks/useMobilePicker.js +7 -0
  217. package/dist/hooks/useMountTransition.d.ts +1 -1
  218. package/dist/hooks/useMountTransition.d.ts.map +1 -1
  219. package/dist/hooks/useMountTransition.js +21 -0
  220. package/dist/hooks/useOnlineStatus.js +11 -0
  221. package/dist/hooks/useOptionKeyboardNavigation.js +63 -0
  222. package/dist/hooks/usePagination.js +31 -0
  223. package/dist/hooks/useSelectEngine.d.ts +3 -3
  224. package/dist/hooks/useSelectEngine.d.ts.map +1 -1
  225. package/dist/hooks/useSelectEngine.js +96 -0
  226. package/dist/hooks/useTableSort.js +13 -0
  227. package/dist/index.d.ts +16 -0
  228. package/dist/index.d.ts.map +1 -1
  229. package/dist/responsive/uiKitResponsive.js +44 -0
  230. package/dist/shared/fieldAccessibility.js +8 -0
  231. package/dist/shared/iconNames.d.ts +5 -0
  232. package/dist/shared/iconNames.d.ts.map +1 -0
  233. package/dist/shared/inputOverflow.d.ts +10 -0
  234. package/dist/shared/inputOverflow.d.ts.map +1 -0
  235. package/dist/shared/kitCopy.js +9 -0
  236. package/dist/shared/optionStateColors.js +5 -0
  237. package/dist/shared/optionValue.d.ts +1 -1
  238. package/dist/shared/optionValue.d.ts.map +1 -1
  239. package/dist/shared/optionValue.js +11 -0
  240. package/dist/shared/popupTransition.js +11 -0
  241. package/dist/shared/size.d.ts +0 -1
  242. package/dist/shared/size.d.ts.map +1 -1
  243. package/dist/shared/size.js +4 -0
  244. package/dist/shared/sortRows.js +24 -0
  245. package/dist/shared/uiKitDefaults.js +25 -0
  246. package/dist/style-no-fonts.css +1 -1
  247. package/dist/style.css +1 -1
  248. package/dist/style.layer.css +8 -8
  249. package/dist/style.shell.css +15 -11
  250. package/dist/urfu-ui-kit-react.js +57 -17543
  251. package/dist/vanilla/core/BoundedOptionPageCache.js +41 -0
  252. package/dist/vanilla/core/dateMask.js +28 -0
  253. package/dist/vanilla/core/describeError.js +243 -0
  254. package/dist/vanilla/core/devLauncherOffset.js +20 -0
  255. package/dist/vanilla/core/distributeTabs.js +25 -0
  256. package/dist/vanilla/core/hasPreviousPage.js +6 -0
  257. package/dist/vanilla/core/inputMode.js +17 -0
  258. package/dist/vanilla/core/inputOverflow.js +34 -0
  259. package/dist/vanilla/core/kitRegistry.js +160 -0
  260. package/dist/vanilla/core/reconcileColumnOrder.js +5 -0
  261. package/dist/vanilla/core/sheetTitle.js +11 -0
  262. package/dist/vanilla/core/tabsIndicator.js +38 -0
  263. package/dist/vanilla/core/validation.js +21 -0
  264. package/dist/vendor/@floating-ui/core/dist/floating-ui.core.js +323 -0
  265. package/dist/vendor/@floating-ui/dom/dist/floating-ui.dom.js +383 -0
  266. package/dist/vendor/@floating-ui/react/dist/floating-ui.react.js +255 -0
  267. package/dist/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +183 -0
  268. package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +110 -0
  269. package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
  270. package/dist/vendor/clsx/dist/clsx.js +14 -0
  271. package/dist/vendor/date-fns/_lib/addLeadingZeros.js +5 -0
  272. package/dist/vendor/date-fns/_lib/defaultOptions.js +5 -0
  273. package/dist/vendor/date-fns/_lib/format/formatters.js +547 -0
  274. package/dist/vendor/date-fns/_lib/format/lightFormatters.js +56 -0
  275. package/dist/vendor/date-fns/_lib/format/longFormatters.js +47 -0
  276. package/dist/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +16 -0
  277. package/dist/vendor/date-fns/_lib/protectedTokens.js +16 -0
  278. package/dist/vendor/date-fns/addDays.js +7 -0
  279. package/dist/vendor/date-fns/addHours.js +6 -0
  280. package/dist/vendor/date-fns/addMilliseconds.js +7 -0
  281. package/dist/vendor/date-fns/addMinutes.js +6 -0
  282. package/dist/vendor/date-fns/addMonths.js +17 -0
  283. package/dist/vendor/date-fns/addQuarters.js +6 -0
  284. package/dist/vendor/date-fns/addSeconds.js +5 -0
  285. package/dist/vendor/date-fns/addWeeks.js +6 -0
  286. package/dist/vendor/date-fns/addYears.js +5 -0
  287. package/dist/vendor/date-fns/constants.js +2 -0
  288. package/dist/vendor/date-fns/constructFrom.js +4 -0
  289. package/dist/vendor/date-fns/differenceInCalendarDays.js +8 -0
  290. package/dist/vendor/date-fns/differenceInCalendarMonths.js +6 -0
  291. package/dist/vendor/date-fns/differenceInCalendarQuarters.js +7 -0
  292. package/dist/vendor/date-fns/differenceInCalendarYears.js +6 -0
  293. package/dist/vendor/date-fns/differenceInDays.js +13 -0
  294. package/dist/vendor/date-fns/endOfDay.js +6 -0
  295. package/dist/vendor/date-fns/endOfMonth.js +6 -0
  296. package/dist/vendor/date-fns/endOfWeek.js +8 -0
  297. package/dist/vendor/date-fns/endOfYear.js +6 -0
  298. package/dist/vendor/date-fns/format.js +53 -0
  299. package/dist/vendor/date-fns/getDate.js +5 -0
  300. package/dist/vendor/date-fns/getDay.js +5 -0
  301. package/dist/vendor/date-fns/getDayOfYear.js +8 -0
  302. package/dist/vendor/date-fns/getDaysInMonth.js +7 -0
  303. package/dist/vendor/date-fns/getDefaultOptions.js +5 -0
  304. package/dist/vendor/date-fns/getHours.js +5 -0
  305. package/dist/vendor/date-fns/getISODay.js +6 -0
  306. package/dist/vendor/date-fns/getISOWeek.js +9 -0
  307. package/dist/vendor/date-fns/getISOWeekYear.js +12 -0
  308. package/dist/vendor/date-fns/getMinutes.js +5 -0
  309. package/dist/vendor/date-fns/getMonth.js +5 -0
  310. package/dist/vendor/date-fns/getQuarter.js +6 -0
  311. package/dist/vendor/date-fns/getSeconds.js +5 -0
  312. package/dist/vendor/date-fns/getTime.js +5 -0
  313. package/dist/vendor/date-fns/getWeek.js +9 -0
  314. package/dist/vendor/date-fns/getWeekYear.js +14 -0
  315. package/dist/vendor/date-fns/getYear.js +5 -0
  316. package/dist/vendor/date-fns/isAfter.js +6 -0
  317. package/dist/vendor/date-fns/isBefore.js +6 -0
  318. package/dist/vendor/date-fns/isDate.js +4 -0
  319. package/dist/vendor/date-fns/isEqual.js +6 -0
  320. package/dist/vendor/date-fns/isSameDay.js +6 -0
  321. package/dist/vendor/date-fns/isSameMonth.js +6 -0
  322. package/dist/vendor/date-fns/isSameQuarter.js +6 -0
  323. package/dist/vendor/date-fns/isSameWeek.js +6 -0
  324. package/dist/vendor/date-fns/isSameYear.js +6 -0
  325. package/dist/vendor/date-fns/isValid.js +9 -0
  326. package/dist/vendor/date-fns/isWithinInterval.js +9 -0
  327. package/dist/vendor/date-fns/locale/_lib/buildFormatLongFn.js +7 -0
  328. package/dist/vendor/date-fns/locale/_lib/buildLocalizeFn.js +16 -0
  329. package/dist/vendor/date-fns/locale/_lib/buildMatchFn.js +29 -0
  330. package/dist/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +13 -0
  331. package/dist/vendor/date-fns/locale/en-US/_lib/formatDistance.js +68 -0
  332. package/dist/vendor/date-fns/locale/en-US/_lib/formatLong.js +31 -0
  333. package/dist/vendor/date-fns/locale/en-US/_lib/formatRelative.js +9 -0
  334. package/dist/vendor/date-fns/locale/en-US/_lib/localize.js +153 -0
  335. package/dist/vendor/date-fns/locale/en-US/_lib/match.js +108 -0
  336. package/dist/vendor/date-fns/locale/en-US.js +18 -0
  337. package/dist/vendor/date-fns/locale/ru/_lib/formatDistance.js +182 -0
  338. package/dist/vendor/date-fns/locale/ru/_lib/formatLong.js +28 -0
  339. package/dist/vendor/date-fns/locale/ru/_lib/formatRelative.js +62 -0
  340. package/dist/vendor/date-fns/locale/ru/_lib/localize.js +177 -0
  341. package/dist/vendor/date-fns/locale/ru/_lib/match.js +109 -0
  342. package/dist/vendor/date-fns/locale/ru.js +18 -0
  343. package/dist/vendor/date-fns/max.js +9 -0
  344. package/dist/vendor/date-fns/min.js +9 -0
  345. package/dist/vendor/date-fns/parse/_lib/Parser.js +20 -0
  346. package/dist/vendor/date-fns/parse/_lib/Setter.js +36 -0
  347. package/dist/vendor/date-fns/parse/_lib/constants.js +46 -0
  348. package/dist/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +46 -0
  349. package/dist/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +46 -0
  350. package/dist/vendor/date-fns/parse/_lib/parsers/DateParser.js +59 -0
  351. package/dist/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +49 -0
  352. package/dist/vendor/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  353. package/dist/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +46 -0
  354. package/dist/vendor/date-fns/parse/_lib/parsers/EraParser.js +29 -0
  355. package/dist/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +19 -0
  356. package/dist/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +20 -0
  357. package/dist/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +30 -0
  358. package/dist/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -0
  359. package/dist/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -0
  360. package/dist/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +31 -0
  361. package/dist/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +101 -0
  362. package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +45 -0
  363. package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +45 -0
  364. package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +47 -0
  365. package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +38 -0
  366. package/dist/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
  367. package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +46 -0
  368. package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
  369. package/dist/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +30 -0
  370. package/dist/vendor/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
  371. package/dist/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
  372. package/dist/vendor/date-fns/parse/_lib/parsers/SecondParser.js +30 -0
  373. package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
  374. package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
  375. package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
  376. package/dist/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +20 -0
  377. package/dist/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +20 -0
  378. package/dist/vendor/date-fns/parse/_lib/parsers/YearParser.js +47 -0
  379. package/dist/vendor/date-fns/parse/_lib/parsers.js +65 -0
  380. package/dist/vendor/date-fns/parse/_lib/utils.js +90 -0
  381. package/dist/vendor/date-fns/parse.js +85 -0
  382. package/dist/vendor/date-fns/parseISO.js +119 -0
  383. package/dist/vendor/date-fns/set.js +8 -0
  384. package/dist/vendor/date-fns/setDay.js +9 -0
  385. package/dist/vendor/date-fns/setHours.js +6 -0
  386. package/dist/vendor/date-fns/setISODay.js +8 -0
  387. package/dist/vendor/date-fns/setISOWeek.js +7 -0
  388. package/dist/vendor/date-fns/setMinutes.js +6 -0
  389. package/dist/vendor/date-fns/setMonth.js +10 -0
  390. package/dist/vendor/date-fns/setQuarter.js +7 -0
  391. package/dist/vendor/date-fns/setSeconds.js +6 -0
  392. package/dist/vendor/date-fns/setWeek.js +7 -0
  393. package/dist/vendor/date-fns/setYear.js +7 -0
  394. package/dist/vendor/date-fns/startOfDay.js +6 -0
  395. package/dist/vendor/date-fns/startOfISOWeek.js +5 -0
  396. package/dist/vendor/date-fns/startOfISOWeekYear.js +8 -0
  397. package/dist/vendor/date-fns/startOfMonth.js +6 -0
  398. package/dist/vendor/date-fns/startOfQuarter.js +6 -0
  399. package/dist/vendor/date-fns/startOfWeek.js +8 -0
  400. package/dist/vendor/date-fns/startOfWeekYear.js +10 -0
  401. package/dist/vendor/date-fns/startOfYear.js +7 -0
  402. package/dist/vendor/date-fns/subDays.js +5 -0
  403. package/dist/vendor/date-fns/subMonths.js +5 -0
  404. package/dist/vendor/date-fns/subQuarters.js +5 -0
  405. package/dist/vendor/date-fns/subWeeks.js +5 -0
  406. package/dist/vendor/date-fns/subYears.js +5 -0
  407. package/dist/vendor/date-fns/toDate.js +5 -0
  408. package/dist/vendor/date-fns/transpose.js +15 -0
  409. package/dist/vendor/react-datepicker/dist/es/index.js +2696 -0
  410. package/package.json +37 -35
  411. package/dist/hooks/useOutsideAlerter.d.ts +0 -3
  412. package/dist/hooks/useOutsideAlerter.d.ts.map +0 -1
@@ -0,0 +1,6 @@
1
+ import { addMilliseconds$u as o } from "./addMilliseconds.js";
2
+ import { millisecondsInMinute$u as r } from "./constants.js";
3
+ function e(i, n) {
4
+ return o(i, n * r);
5
+ }
6
+ export { e as addMinutes$u };
@@ -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,6 @@
1
+ import { addMonths$u as n } from "./addMonths.js";
2
+ function s(t, o) {
3
+ const r = o * 3;
4
+ return n(t, r);
5
+ }
6
+ export { s as addQuarters$u };
@@ -0,0 +1,5 @@
1
+ import { addMilliseconds$u as n } from "./addMilliseconds.js";
2
+ function e(d, o) {
3
+ return n(d, o * 1e3);
4
+ }
5
+ export { e as addSeconds$u };
@@ -0,0 +1,6 @@
1
+ import { addDays$u as t } from "./addDays.js";
2
+ function e(d, o) {
3
+ const r = o * 7;
4
+ return t(d, r);
5
+ }
6
+ export { e as addWeeks$u };
@@ -0,0 +1,5 @@
1
+ import { addMonths$u as t } from "./addMonths.js";
2
+ function n(r, o) {
3
+ return t(r, o * 12);
4
+ }
5
+ export { n as addYears$u };
@@ -0,0 +1,2 @@
1
+ const n = 6048e5, s = 864e5, o = 6e4, c = 36e5, i = 1e3;
2
+ export { s as millisecondsInDay$u, c as millisecondsInHour$u, o as millisecondsInMinute$u, i as millisecondsInSecond$u, n as millisecondsInWeek$u };
@@ -0,0 +1,4 @@
1
+ function r(n, t) {
2
+ return n instanceof Date ? new n.constructor(t) : new Date(t);
3
+ }
4
+ export { r as constructFrom$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,6 @@
1
+ import { toDate$u as n } from "./toDate.js";
2
+ function i(o, r) {
3
+ const t = n(o), e = n(r), f = t.getFullYear() - e.getFullYear(), a = t.getMonth() - e.getMonth();
4
+ return f * 12 + a;
5
+ }
6
+ export { i as differenceInCalendarMonths$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,6 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function f(t, r) {
3
+ const a = e(t), n = e(r);
4
+ return a.getFullYear() - n.getFullYear();
5
+ }
6
+ export { f as differenceInCalendarYears$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,6 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function n(o) {
3
+ const t = e(o);
4
+ return t.setHours(23, 59, 59, 999), t;
5
+ }
6
+ export { n as endOfDay$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as n } from "./toDate.js";
2
+ function s(e) {
3
+ const t = n(e), o = t.getMonth();
4
+ return t.setFullYear(t.getFullYear(), o + 1, 0), t.setHours(23, 59, 59, 999), t;
5
+ }
6
+ export { s as endOfMonth$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,6 @@
1
+ import { toDate$u as o } from "./toDate.js";
2
+ function n(t) {
3
+ const e = o(t), r = e.getFullYear();
4
+ return e.setFullYear(r + 1, 0, 0), e.setHours(23, 59, 59, 999), e;
5
+ }
6
+ export { n as endOfYear$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,5 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function r(t) {
3
+ return e(t).getDate();
4
+ }
5
+ export { r as getDate$u };
@@ -0,0 +1,5 @@
1
+ import { toDate$u as a } from "./toDate.js";
2
+ function r(t) {
3
+ return a(t).getDay();
4
+ }
5
+ export { r as getDay$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,5 @@
1
+ import { getDefaultOptions$u as t } from "./_lib/defaultOptions.js";
2
+ function n() {
3
+ return Object.assign({}, t());
4
+ }
5
+ export { n as getDefaultOptions$u };
@@ -0,0 +1,5 @@
1
+ import { toDate$u as o } from "./toDate.js";
2
+ function u(t) {
3
+ return o(t).getHours();
4
+ }
5
+ export { u as getHours$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as a } from "./toDate.js";
2
+ function n(e) {
3
+ let t = a(e).getDay();
4
+ return t === 0 && (t = 7), t;
5
+ }
6
+ export { n as getISODay$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,5 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function s(t) {
3
+ return e(t).getMinutes();
4
+ }
5
+ export { s as getMinutes$u };
@@ -0,0 +1,5 @@
1
+ import { toDate$u as o } from "./toDate.js";
2
+ function h(t) {
3
+ return o(t).getMonth();
4
+ }
5
+ export { h as getMonth$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function a(t) {
3
+ const r = e(t);
4
+ return Math.trunc(r.getMonth() / 3) + 1;
5
+ }
6
+ export { a as getQuarter$u };
@@ -0,0 +1,5 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function c(t) {
3
+ return e(t).getSeconds();
4
+ }
5
+ export { c as getSeconds$u };
@@ -0,0 +1,5 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function a(t) {
3
+ return e(t).getTime();
4
+ }
5
+ export { a as getTime$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,5 @@
1
+ import { toDate$u as e } from "./toDate.js";
2
+ function o(t) {
3
+ return e(t).getFullYear();
4
+ }
5
+ export { o as getYear$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as t } from "./toDate.js";
2
+ function n(e, o) {
3
+ const r = t(e), i = t(o);
4
+ return r.getTime() > i.getTime();
5
+ }
6
+ export { n as isAfter$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as o } from "./toDate.js";
2
+ function c(t, e) {
3
+ const r = o(t), n = o(e);
4
+ return +r < +n;
5
+ }
6
+ export { c as isBefore$u };
@@ -0,0 +1,4 @@
1
+ function e(t) {
2
+ return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
3
+ }
4
+ export { e as isDate$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as t } from "./toDate.js";
2
+ function i(o, e) {
3
+ const n = t(o), r = t(e);
4
+ return +n == +r;
5
+ }
6
+ export { i as isEqual$u };
@@ -0,0 +1,6 @@
1
+ import { startOfDay$u as t } from "./startOfDay.js";
2
+ function n(a, r) {
3
+ const e = t(a), f = t(r);
4
+ return +e == +f;
5
+ }
6
+ export { n as isSameDay$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as o } from "./toDate.js";
2
+ function g(n, r) {
3
+ const t = o(n), e = o(r);
4
+ return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
5
+ }
6
+ export { g as isSameMonth$u };
@@ -0,0 +1,6 @@
1
+ import { startOfQuarter$u as t } from "./startOfQuarter.js";
2
+ function u(r, a) {
3
+ const e = t(r), f = t(a);
4
+ return +e == +f;
5
+ }
6
+ export { u as isSameQuarter$u };
@@ -0,0 +1,6 @@
1
+ import { startOfWeek$u as e } from "./startOfWeek.js";
2
+ function o(r, a, t) {
3
+ const f = e(r, t), k = e(a, t);
4
+ return +f == +k;
5
+ }
6
+ export { o as isSameWeek$u };
@@ -0,0 +1,6 @@
1
+ import { toDate$u as t } from "./toDate.js";
2
+ function i(e, r) {
3
+ const a = t(e), o = t(r);
4
+ return a.getFullYear() === o.getFullYear();
5
+ }
6
+ export { i as isSameYear$u };
@@ -0,0 +1,9 @@
1
+ import { isDate$u as o } from "./isDate.js";
2
+ import { toDate$u as e } from "./toDate.js";
3
+ function m(r) {
4
+ if (!o(r) && typeof r != "number")
5
+ return !1;
6
+ const t = e(r);
7
+ return !isNaN(Number(t));
8
+ }
9
+ export { m as isValid$u };
@@ -0,0 +1,9 @@
1
+ import { toDate$u as t } from "./toDate.js";
2
+ function c(o, e) {
3
+ const n = +t(o), [r, i] = [
4
+ +t(e.start),
5
+ +t(e.end)
6
+ ].sort((s, m) => s - m);
7
+ return n >= r && n <= i;
8
+ }
9
+ export { c as isWithinInterval$u };
@@ -0,0 +1,7 @@
1
+ function r(t) {
2
+ return (d = {}) => {
3
+ const n = d.width ? String(d.width) : t.defaultWidth;
4
+ return t.formats[n] || t.formats[t.defaultWidth];
5
+ };
6
+ }
7
+ export { r as buildFormatLongFn$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 };
@@ -0,0 +1,9 @@
1
+ const t = {
2
+ lastWeek: "'last' eeee 'at' p",
3
+ yesterday: "'yesterday at' p",
4
+ today: "'today at' p",
5
+ tomorrow: "'tomorrow at' p",
6
+ nextWeek: "eeee 'at' p",
7
+ other: "P"
8
+ }, s = (e, a, o, r) => t[e];
9
+ export { s as formatRelative$u };