prometeo-design-system 2.8.7 → 2.8.9

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 (307) hide show
  1. package/dist/{components/Avatar/Avatar.js → Avatar.es.js} +24 -24
  2. package/dist/{components/Button/Button.js → Button.es.js} +55 -55
  3. package/dist/{components/CardProfile/CardProfile.js → CardProfile-CsytJlKZ.js} +94 -68
  4. package/dist/CardProfile.es.js +5 -0
  5. package/dist/{components/CheckBox/CheckBox.js → CheckBox.es.js} +25 -25
  6. package/dist/DatePicker.es.js +3441 -0
  7. package/dist/DialogModal.es.js +75 -0
  8. package/dist/DrawerDesktop.es.js +192 -0
  9. package/dist/DrawerMobile.es.js +242 -0
  10. package/dist/DropZone.es.js +87 -0
  11. package/dist/{components/FAB/FAButton.js → FAButton.es.js} +5 -5
  12. package/dist/Header.es.js +32 -0
  13. package/dist/HelperComponent-g_xuKWzK.js +24 -0
  14. package/dist/Icons-DtFC5DJ7.js +1079 -0
  15. package/dist/Icons.es.js +5 -0
  16. package/dist/{components/Image/Image.js → Image.es.js} +32 -32
  17. package/dist/ImageGallery-Ckxg9OIC.js +317 -0
  18. package/dist/{components/Image/useImageGallery.js → ImageGallery.es.js} +2 -0
  19. package/dist/Input-Cck37DpG.js +240 -0
  20. package/dist/Input.es.js +4 -0
  21. package/dist/InputMultiple.es.js +263 -0
  22. package/dist/LayoutGeneric-CbaoatQB.js +26 -0
  23. package/dist/LayoutGeneric.es.js +4 -0
  24. package/dist/Logo.es.js +9 -0
  25. package/dist/{components/Menu/MenuComposable.js → Menu.es.js} +13 -12
  26. package/dist/OtpInput.es.js +301 -0
  27. package/dist/{components/Pagination/Pagination.js → Pagination.es.js} +32 -32
  28. package/dist/{components/ProfilePictureUpload/ProfilePictureUpload.js → ProfilePictureUpload.es.js} +57 -56
  29. package/dist/ProgressBar.es.js +70 -0
  30. package/dist/{components/RadioButton/RadioButton.js → RadioButton.es.js} +36 -35
  31. package/dist/{components/SegmentedButton/SegmentedButton.js → SegmentedButton.es.js} +38 -37
  32. package/dist/Select-BD5FTxVw.js +1100 -0
  33. package/dist/Select.es.js +4 -0
  34. package/dist/SelectSearch.es.js +237 -0
  35. package/dist/{components/Skeleton/Skeleton.js → Skeleton.es.js} +18 -16
  36. package/dist/Spinner.es.js +52 -0
  37. package/dist/{components/Steps/Steps.js → Steps.es.js} +62 -61
  38. package/dist/{components/SwipeContainer/SwipeContainer.js → SwipeContainer.es.js} +68 -68
  39. package/dist/{components/Switch/Switch.js → Switch.es.js} +18 -17
  40. package/dist/{components/TabLinks/TabLinks.js → TabLinks.es.js} +11 -11
  41. package/dist/{components/Table/Table.js → Table.es.js} +41 -38
  42. package/dist/{components/TextArea/TextArea.js → TextArea.es.js} +26 -24
  43. package/dist/{components/Toaster/Toaster.js → Toast.es.js} +48 -48
  44. package/dist/ToastProvider.es.js +6 -0
  45. package/dist/Tooltip.es.js +62 -0
  46. package/dist/{lib/cn.js → cn-B6yFEsav.js} +2 -2
  47. package/dist/{node_modules/class-variance-authority/dist/index.js → index-BOQuZ0gG.js} +9 -10
  48. package/dist/jsx-runtime-DKDX3adD.js +281 -0
  49. package/dist/prometeo-design-system.css +1 -1
  50. package/dist/prometeo-design-system.es.js +1002 -0
  51. package/dist/{hooks/useDragScroll.js → useDragScroll-CHN9OMwn.js} +1 -1
  52. package/package.json +120 -116
  53. package/dist/Avatar.js +0 -4
  54. package/dist/Button.js +0 -4
  55. package/dist/CardProfile.js +0 -5
  56. package/dist/CheckBox.js +0 -4
  57. package/dist/DatePicker.js +0 -5
  58. package/dist/DialogModal.js +0 -6
  59. package/dist/DrawerDesktop.js +0 -6
  60. package/dist/DrawerMobile.js +0 -6
  61. package/dist/DropZone.js +0 -5
  62. package/dist/FAButton.js +0 -4
  63. package/dist/Header.js +0 -4
  64. package/dist/Icons/Icons.js +0 -1055
  65. package/dist/Icons.js +0 -5
  66. package/dist/Image.js +0 -4
  67. package/dist/ImageGallery.js +0 -6
  68. package/dist/Input.js +0 -4
  69. package/dist/InputMultiple.js +0 -5
  70. package/dist/LayoutGeneric.js +0 -4
  71. package/dist/Logo.js +0 -4
  72. package/dist/Menu.js +0 -5
  73. package/dist/OtpInput.js +0 -4
  74. package/dist/Pagination.js +0 -4
  75. package/dist/ProfilePictureUpload.js +0 -5
  76. package/dist/ProgressBar.js +0 -4
  77. package/dist/RadioButton.js +0 -5
  78. package/dist/SegmentedButton.js +0 -5
  79. package/dist/Select.js +0 -4
  80. package/dist/SelectSearch.js +0 -4
  81. package/dist/Skeleton.js +0 -5
  82. package/dist/Spinner.js +0 -4
  83. package/dist/Steps.js +0 -5
  84. package/dist/SwipeContainer.js +0 -4
  85. package/dist/Switch.js +0 -5
  86. package/dist/TabLinks.js +0 -4
  87. package/dist/Table.js +0 -11
  88. package/dist/TextArea.js +0 -4
  89. package/dist/Toast.js +0 -5
  90. package/dist/ToastProvider.js +0 -4
  91. package/dist/Tooltip.js +0 -4
  92. package/dist/components/Autocomplete/useAutocomplete.js +0 -143
  93. package/dist/components/DatePicker/DatePicker.js +0 -396
  94. package/dist/components/Dialog/Dialog.js +0 -60
  95. package/dist/components/Dialog/useDialogControl.js +0 -18
  96. package/dist/components/Drawer/DrawerDesktop.js +0 -179
  97. package/dist/components/Drawer/DrawerMobile.js +0 -219
  98. package/dist/components/Drawer/useDrawerDesktop.js +0 -18
  99. package/dist/components/Drawer/useDrawerMobile.js +0 -27
  100. package/dist/components/DropZone/DropZone.js +0 -86
  101. package/dist/components/DropZone/useFileDropzone.js +0 -24
  102. package/dist/components/Header/Header.js +0 -32
  103. package/dist/components/Image/GalleryPreview.js +0 -40
  104. package/dist/components/Image/ImageGallery.js +0 -68
  105. package/dist/components/Image/LightBox.js +0 -223
  106. package/dist/components/Input/Input.js +0 -219
  107. package/dist/components/InputMultiple/InputMultiple.js +0 -262
  108. package/dist/components/Layout/LayoutGeneric.js +0 -13
  109. package/dist/components/Logo/Logo.js +0 -9
  110. package/dist/components/OtpInput/OtpInput.js +0 -112
  111. package/dist/components/ProgressBar/ProgressBar.js +0 -70
  112. package/dist/components/Select/Select.js +0 -1005
  113. package/dist/components/SelectSearch/SelectSearch.js +0 -101
  114. package/dist/components/Shared/Chip.js +0 -55
  115. package/dist/components/Shared/HelperComponent.js +0 -24
  116. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +0 -62
  117. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +0 -59
  118. package/dist/components/Sidebar/SidebarComposable.js +0 -84
  119. package/dist/components/Sidebar/components/NavigationLink.js +0 -34
  120. package/dist/components/Sidebar/components/badge.js +0 -33
  121. package/dist/components/Sidebar/components/changue-account.js +0 -31
  122. package/dist/components/Sidebar/components/collapse-button.js +0 -18
  123. package/dist/components/Sidebar/components/company-logo.js +0 -12
  124. package/dist/components/Sidebar/components/nav-actions.js +0 -98
  125. package/dist/components/Sidebar/components/nav-links.js +0 -100
  126. package/dist/components/Sidebar/context/SidebarContext.js +0 -19
  127. package/dist/components/Sidebar/hooks/SidebarProvider.js +0 -33
  128. package/dist/components/Sidebar/hooks/useNavBarActions.js +0 -9
  129. package/dist/components/Sidebar/hooks/useNavBarCollapse.js +0 -11
  130. package/dist/components/Sidebar/hooks/useSidebarHook.js +0 -13
  131. package/dist/components/Sidebar/ui/useNavbarAnimation.js +0 -326
  132. package/dist/components/Spinner/Spinner.js +0 -52
  133. package/dist/components/TabSwitch/TabSwitch.js +0 -57
  134. package/dist/components/Toaster/ToastProvider.js +0 -6
  135. package/dist/components/Tooltip/Tootip.js +0 -62
  136. package/dist/hooks/useClickOutside.js +0 -24
  137. package/dist/hooks/useLabelBackground.js +0 -25
  138. package/dist/index.js +0 -119
  139. package/dist/lib/utils.js +0 -54
  140. package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
  141. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
  142. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
  143. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
  144. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  145. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  146. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -583
  147. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -59
  148. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -52
  149. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -18
  150. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  151. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  152. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -20
  153. package/dist/node_modules/date-fns/addDays.js +0 -10
  154. package/dist/node_modules/date-fns/addMonths.js +0 -20
  155. package/dist/node_modules/date-fns/addWeeks.js +0 -8
  156. package/dist/node_modules/date-fns/addYears.js +0 -8
  157. package/dist/node_modules/date-fns/constants.js +0 -6
  158. package/dist/node_modules/date-fns/constructFrom.js +0 -8
  159. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -16
  160. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -13
  161. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -17
  162. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -17
  163. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -8
  164. package/dist/node_modules/date-fns/endOfMonth.js +0 -9
  165. package/dist/node_modules/date-fns/endOfWeek.js +0 -10
  166. package/dist/node_modules/date-fns/endOfYear.js +0 -9
  167. package/dist/node_modules/date-fns/format.js +0 -58
  168. package/dist/node_modules/date-fns/getDayOfYear.js +0 -11
  169. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -10
  170. package/dist/node_modules/date-fns/getISOWeek.js +0 -12
  171. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -15
  172. package/dist/node_modules/date-fns/getMonth.js +0 -8
  173. package/dist/node_modules/date-fns/getWeek.js +0 -12
  174. package/dist/node_modules/date-fns/getWeekYear.js +0 -16
  175. package/dist/node_modules/date-fns/getYear.js +0 -8
  176. package/dist/node_modules/date-fns/isAfter.js +0 -8
  177. package/dist/node_modules/date-fns/isBefore.js +0 -8
  178. package/dist/node_modules/date-fns/isDate.js +0 -7
  179. package/dist/node_modules/date-fns/isSameDay.js +0 -14
  180. package/dist/node_modules/date-fns/isSameMonth.js +0 -13
  181. package/dist/node_modules/date-fns/isSameYear.js +0 -13
  182. package/dist/node_modules/date-fns/isValid.js +0 -9
  183. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
  184. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
  185. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
  186. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
  187. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
  188. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
  189. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
  190. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
  191. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
  192. package/dist/node_modules/date-fns/locale/en-US.js +0 -21
  193. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +0 -70
  194. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +0 -33
  195. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +0 -18
  196. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +0 -143
  197. package/dist/node_modules/date-fns/locale/es/_lib/match.js +0 -116
  198. package/dist/node_modules/date-fns/locale/es.js +0 -21
  199. package/dist/node_modules/date-fns/max.js +0 -14
  200. package/dist/node_modules/date-fns/min.js +0 -14
  201. package/dist/node_modules/date-fns/setMonth.js +0 -13
  202. package/dist/node_modules/date-fns/setYear.js +0 -10
  203. package/dist/node_modules/date-fns/startOfDay.js +0 -9
  204. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -8
  205. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -11
  206. package/dist/node_modules/date-fns/startOfMonth.js +0 -9
  207. package/dist/node_modules/date-fns/startOfWeek.js +0 -10
  208. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -12
  209. package/dist/node_modules/date-fns/startOfYear.js +0 -9
  210. package/dist/node_modules/date-fns/toDate.js +0 -8
  211. package/dist/node_modules/input-otp/dist/index.js +0 -194
  212. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -227
  213. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
  214. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
  215. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
  216. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
  217. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -147
  218. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
  219. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
  220. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
  222. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -10
  223. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
  224. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
  225. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
  227. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
  228. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
  229. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
  230. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
  231. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
  232. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
  233. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
  234. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
  235. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
  236. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
  237. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
  238. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
  239. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
  240. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
  241. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
  242. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
  243. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
  244. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
  245. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
  250. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
  251. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
  252. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
  253. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
  255. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -21
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
  277. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
  278. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
  279. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
  280. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
  281. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
  282. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
  283. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
  284. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
  285. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -6
  286. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
  287. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
  288. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
  289. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
  290. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
  291. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
  292. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
  293. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
  294. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
  295. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -44
  296. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
  297. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
  298. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
  299. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
  300. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
  301. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
  302. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
  303. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
  304. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
  305. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
  306. package/dist/useDevice.js +0 -4
  307. /package/dist/{hooks/useDevice.js → useDevice.es.js} +0 -0
@@ -1,147 +0,0 @@
1
- import { enUS as f } from "../../../../date-fns/locale/en-US.js";
2
- import { endOfBroadcastWeek as d } from "../helpers/endOfBroadcastWeek.js";
3
- import { startOfBroadcastWeek as m } from "../helpers/startOfBroadcastWeek.js";
4
- import { TZDate as a } from "../../../../@date-fns/tz/date/index.js";
5
- import { addDays as v } from "../../../../date-fns/addDays.js";
6
- import { addMonths as p } from "../../../../date-fns/addMonths.js";
7
- import { addWeeks as O } from "../../../../date-fns/addWeeks.js";
8
- import { addYears as c } from "../../../../date-fns/addYears.js";
9
- import { differenceInCalendarDays as u } from "../../../../date-fns/differenceInCalendarDays.js";
10
- import { differenceInCalendarMonths as l } from "../../../../date-fns/differenceInCalendarMonths.js";
11
- import { eachMonthOfInterval as M } from "../../../../date-fns/eachMonthOfInterval.js";
12
- import { eachYearOfInterval as k } from "../../../../date-fns/eachYearOfInterval.js";
13
- import { endOfISOWeek as W } from "../../../../date-fns/endOfISOWeek.js";
14
- import { endOfMonth as D } from "../../../../date-fns/endOfMonth.js";
15
- import { endOfWeek as Y } from "../../../../date-fns/endOfWeek.js";
16
- import { endOfYear as S } from "../../../../date-fns/endOfYear.js";
17
- import { formatDate as y } from "../../../../date-fns/format.js";
18
- import { getISOWeek as g } from "../../../../date-fns/getISOWeek.js";
19
- import { getMonth as I } from "../../../../date-fns/getMonth.js";
20
- import { getYear as w } from "../../../../date-fns/getYear.js";
21
- import { getWeek as B } from "../../../../date-fns/getWeek.js";
22
- import { isAfter as L } from "../../../../date-fns/isAfter.js";
23
- import { isBefore as C } from "../../../../date-fns/isBefore.js";
24
- import { isDate as z } from "../../../../date-fns/isDate.js";
25
- import { isSameDay as Z } from "../../../../date-fns/isSameDay.js";
26
- import { isSameMonth as b } from "../../../../date-fns/isSameMonth.js";
27
- import { isSameYear as A } from "../../../../date-fns/isSameYear.js";
28
- import { max as F } from "../../../../date-fns/max.js";
29
- import { min as N } from "../../../../date-fns/min.js";
30
- import { setMonth as _ } from "../../../../date-fns/setMonth.js";
31
- import { setYear as j } from "../../../../date-fns/setYear.js";
32
- import { startOfDay as x } from "../../../../date-fns/startOfDay.js";
33
- import { startOfISOWeek as H } from "../../../../date-fns/startOfISOWeek.js";
34
- import { startOfMonth as K } from "../../../../date-fns/startOfMonth.js";
35
- import { startOfWeek as T } from "../../../../date-fns/startOfWeek.js";
36
- import { startOfYear as U } from "../../../../date-fns/startOfYear.js";
37
- class n {
38
- /**
39
- * Creates an instance of `DateLib`.
40
- *
41
- * @param options Configuration options for the date library.
42
- * @param overrides Custom overrides for the date library functions.
43
- */
44
- constructor(t, i) {
45
- this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? a.tz(this.options.timeZone) : new this.Date(), this.newDate = (r, e, s) => this.overrides?.newDate ? this.overrides.newDate(r, e, s) : this.options.timeZone ? new a(r, e, s, this.options.timeZone) : new Date(r, e, s), this.addDays = (r, e) => this.overrides?.addDays ? this.overrides.addDays(r, e) : v(r, e), this.addMonths = (r, e) => this.overrides?.addMonths ? this.overrides.addMonths(r, e) : p(r, e), this.addWeeks = (r, e) => this.overrides?.addWeeks ? this.overrides.addWeeks(r, e) : O(r, e), this.addYears = (r, e) => this.overrides?.addYears ? this.overrides.addYears(r, e) : c(r, e), this.differenceInCalendarDays = (r, e) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, e) : u(r, e), this.differenceInCalendarMonths = (r, e) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, e) : l(r, e), this.eachMonthOfInterval = (r) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : M(r), this.eachYearOfInterval = (r) => {
46
- const e = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : k(r), s = new Set(e.map((h) => this.getYear(h)));
47
- if (s.size === e.length)
48
- return e;
49
- const o = [];
50
- return s.forEach((h) => {
51
- o.push(new Date(h, 0, 1));
52
- }), o;
53
- }, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : d(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : W(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : D(r), this.endOfWeek = (r, e) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, e) : Y(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : S(r), this.format = (r, e, s) => {
54
- const o = this.overrides?.format ? this.overrides.format(r, e, this.options) : y(r, e, this.options);
55
- return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(o) : o;
56
- }, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : g(r), this.getMonth = (r, e) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : I(r, this.options), this.getYear = (r, e) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : w(r, this.options), this.getWeek = (r, e) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : B(r, this.options), this.isAfter = (r, e) => this.overrides?.isAfter ? this.overrides.isAfter(r, e) : L(r, e), this.isBefore = (r, e) => this.overrides?.isBefore ? this.overrides.isBefore(r, e) : C(r, e), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : z(r), this.isSameDay = (r, e) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, e) : Z(r, e), this.isSameMonth = (r, e) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, e) : b(r, e), this.isSameYear = (r, e) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, e) : A(r, e), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : F(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : N(r), this.setMonth = (r, e) => this.overrides?.setMonth ? this.overrides.setMonth(r, e) : _(r, e), this.setYear = (r, e) => this.overrides?.setYear ? this.overrides.setYear(r, e) : j(r, e), this.startOfBroadcastWeek = (r, e) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : m(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : x(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : H(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : K(r), this.startOfWeek = (r, e) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : T(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : U(r), this.options = { locale: f, ...t }, this.overrides = i;
57
- }
58
- /**
59
- * Generates a mapping of Arabic digits (0-9) to the target numbering system
60
- * digits.
61
- *
62
- * @since 9.5.0
63
- * @returns A record mapping Arabic digits to the target numerals.
64
- */
65
- getDigitMap() {
66
- const { numerals: t = "latn" } = this.options, i = new Intl.NumberFormat("en-US", {
67
- numberingSystem: t
68
- }), r = {};
69
- for (let e = 0; e < 10; e++)
70
- r[e.toString()] = i.format(e);
71
- return r;
72
- }
73
- /**
74
- * Replaces Arabic digits in a string with the target numbering system digits.
75
- *
76
- * @since 9.5.0
77
- * @param input The string containing Arabic digits.
78
- * @returns The string with digits replaced.
79
- */
80
- replaceDigits(t) {
81
- const i = this.getDigitMap();
82
- return t.replace(/\d/g, (r) => i[r] || r);
83
- }
84
- /**
85
- * Formats a number using the configured numbering system.
86
- *
87
- * @since 9.5.0
88
- * @param value The number to format.
89
- * @returns The formatted number as a string.
90
- */
91
- formatNumber(t) {
92
- return this.replaceDigits(t.toString());
93
- }
94
- /**
95
- * Returns the preferred ordering for month and year labels for the current
96
- * locale.
97
- */
98
- getMonthYearOrder() {
99
- const t = this.options.locale?.code;
100
- return t && n.yearFirstLocales.has(t) ? "year-first" : "month-first";
101
- }
102
- /**
103
- * Formats the month/year pair respecting locale conventions.
104
- *
105
- * @since 9.11.0
106
- */
107
- formatMonthYear(t) {
108
- const { locale: i, timeZone: r, numerals: e } = this.options, s = i?.code;
109
- if (s && n.yearFirstLocales.has(s))
110
- try {
111
- return new Intl.DateTimeFormat(s, {
112
- month: "long",
113
- year: "numeric",
114
- timeZone: r,
115
- numberingSystem: e
116
- }).format(t);
117
- } catch {
118
- }
119
- const o = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
120
- return this.format(t, o);
121
- }
122
- }
123
- n.yearFirstLocales = /* @__PURE__ */ new Set([
124
- "eu",
125
- "hu",
126
- "ja",
127
- "ja-Hira",
128
- "ja-JP",
129
- "ko",
130
- "ko-KR",
131
- "lt",
132
- "lt-LT",
133
- "lv",
134
- "lv-LV",
135
- "mn",
136
- "mn-MN",
137
- "zh",
138
- "zh-CN",
139
- "zh-HK",
140
- "zh-TW"
141
- ]);
142
- const wr = new n();
143
- export {
144
- n as DateLib,
145
- wr as defaultDateLib,
146
- f as defaultLocale
147
- };
@@ -1,7 +0,0 @@
1
- import e from "react";
2
- function o(t) {
3
- return e.createElement("button", { ...t });
4
- }
5
- export {
6
- o as Button
7
- };
@@ -1,7 +0,0 @@
1
- import t from "react";
2
- function n(e) {
3
- return t.createElement("span", { ...e });
4
- }
5
- export {
6
- n as CaptionLabel
7
- };
@@ -1,18 +0,0 @@
1
- import e from "react";
2
- function r(n) {
3
- const { size: o = 24, orientation: t = "left", className: l } = n;
4
- return (
5
- // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
6
- e.createElement(
7
- "svg",
8
- { className: l, width: o, height: o, viewBox: "0 0 24 24" },
9
- t === "up" && e.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
10
- t === "down" && e.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
11
- t === "left" && e.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
12
- t === "right" && e.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
13
- )
14
- );
15
- }
16
- export {
17
- r as Chevron
18
- };
@@ -1,8 +0,0 @@
1
- import r from "react";
2
- function n(t) {
3
- const { day: o, modifiers: a, ...e } = t;
4
- return r.createElement("td", { ...e });
5
- }
6
- export {
7
- n as Day
8
- };
@@ -1,10 +0,0 @@
1
- import e from "react";
2
- function c(f) {
3
- const { day: r, modifiers: t, ...u } = f, o = e.useRef(null);
4
- return e.useEffect(() => {
5
- t.focused && o.current?.focus();
6
- }, [t.focused]), e.createElement("button", { ref: o, ...u });
7
- }
8
- export {
9
- c as DayButton
10
- };
@@ -1,19 +0,0 @@
1
- import e from "react";
2
- import { UI as o } from "../UI.js";
3
- function f(c) {
4
- const { options: l, className: r, components: s, classNames: a, ...n } = c, i = [a[o.Dropdown], r].join(" "), m = l?.find(({ value: t }) => t === n.value);
5
- return e.createElement(
6
- "span",
7
- { "data-disabled": n.disabled, className: a[o.DropdownRoot] },
8
- e.createElement(s.Select, { className: i, ...n }, l?.map(({ value: t, label: d, disabled: p }) => e.createElement(s.Option, { key: t, value: t, disabled: p }, d))),
9
- e.createElement(
10
- "span",
11
- { className: a[o.CaptionLabel], "aria-hidden": !0 },
12
- m?.label,
13
- e.createElement(s.Chevron, { orientation: "down", size: 18, className: a[o.Chevron] })
14
- )
15
- );
16
- }
17
- export {
18
- f as Dropdown
19
- };
@@ -1,7 +0,0 @@
1
- import t from "react";
2
- function o(e) {
3
- return t.createElement("div", { ...e });
4
- }
5
- export {
6
- o as DropdownNav
7
- };
@@ -1,7 +0,0 @@
1
- import t from "react";
2
- function o(e) {
3
- return t.createElement("div", { ...e });
4
- }
5
- export {
6
- o as Footer
7
- };
@@ -1,8 +0,0 @@
1
- import n from "react";
2
- function a(e) {
3
- const { calendarMonth: r, displayIndex: d, ...t } = e;
4
- return n.createElement("div", { ...t }, e.children);
5
- }
6
- export {
7
- a as Month
8
- };
@@ -1,8 +0,0 @@
1
- import n from "react";
2
- function d(t) {
3
- const { calendarMonth: o, displayIndex: r, ...e } = t;
4
- return n.createElement("div", { ...e });
5
- }
6
- export {
7
- d as MonthCaption
8
- };
@@ -1,7 +0,0 @@
1
- import e from "react";
2
- function n(t) {
3
- return e.createElement("table", { ...t });
4
- }
5
- export {
6
- n as MonthGrid
7
- };
@@ -1,7 +0,0 @@
1
- import e from "react";
2
- function n(t) {
3
- return e.createElement("div", { ...t });
4
- }
5
- export {
6
- n as Months
7
- };
@@ -1,9 +0,0 @@
1
- import e from "react";
2
- import { useDayPicker as r } from "../useDayPicker.js";
3
- function m(o) {
4
- const { components: t } = r();
5
- return e.createElement(t.Dropdown, { ...o });
6
- }
7
- export {
8
- m as MonthsDropdown
9
- };
@@ -1,27 +0,0 @@
1
- import n, { useCallback as u } from "react";
2
- import { UI as i } from "../UI.js";
3
- import { useDayPicker as v } from "../useDayPicker.js";
4
- function x(c) {
5
- const { onPreviousClick: l, onNextClick: s, previousMonth: e, nextMonth: t, ...d } = c, { components: a, classNames: o, labels: { labelPrevious: m, labelNext: b } } = v(), f = u((r) => {
6
- t && s?.(r);
7
- }, [t, s]), h = u((r) => {
8
- e && l?.(r);
9
- }, [e, l]);
10
- return n.createElement(
11
- "nav",
12
- { ...d },
13
- n.createElement(
14
- a.PreviousMonthButton,
15
- { type: "button", className: o[i.PreviousMonthButton], tabIndex: e ? void 0 : -1, "aria-disabled": e ? void 0 : !0, "aria-label": m(e), onClick: h },
16
- n.createElement(a.Chevron, { disabled: e ? void 0 : !0, className: o[i.Chevron], orientation: "left" })
17
- ),
18
- n.createElement(
19
- a.NextMonthButton,
20
- { type: "button", className: o[i.NextMonthButton], tabIndex: t ? void 0 : -1, "aria-disabled": t ? void 0 : !0, "aria-label": b(t), onClick: f },
21
- n.createElement(a.Chevron, { disabled: t ? void 0 : !0, orientation: "right", className: o[i.Chevron] })
22
- )
23
- );
24
- }
25
- export {
26
- x as Nav
27
- };
@@ -1,9 +0,0 @@
1
- import o from "react";
2
- import { useDayPicker as n } from "../useDayPicker.js";
3
- function m(t) {
4
- const { components: e } = n();
5
- return o.createElement(e.Button, { ...t });
6
- }
7
- export {
8
- m as NextMonthButton
9
- };
@@ -1,7 +0,0 @@
1
- import e from "react";
2
- function n(t) {
3
- return e.createElement("option", { ...t });
4
- }
5
- export {
6
- n as Option
7
- };
@@ -1,9 +0,0 @@
1
- import e from "react";
2
- import { useDayPicker as n } from "../useDayPicker.js";
3
- function c(t) {
4
- const { components: o } = n();
5
- return e.createElement(o.Button, { ...t });
6
- }
7
- export {
8
- c as PreviousMonthButton
9
- };
@@ -1,8 +0,0 @@
1
- import r from "react";
2
- function n(t) {
3
- const { rootRef: e, ...o } = t;
4
- return r.createElement("div", { ...o, ref: e });
5
- }
6
- export {
7
- n as Root
8
- };
@@ -1,7 +0,0 @@
1
- import t from "react";
2
- function c(e) {
3
- return t.createElement("select", { ...e });
4
- }
5
- export {
6
- c as Select
7
- };
@@ -1,8 +0,0 @@
1
- import r from "react";
2
- function c(e) {
3
- const { week: o, ...t } = e;
4
- return r.createElement("tr", { ...t });
5
- }
6
- export {
7
- c as Week
8
- };
@@ -1,8 +0,0 @@
1
- import r from "react";
2
- function c(e) {
3
- const { week: o, ...t } = e;
4
- return r.createElement("th", { ...t });
5
- }
6
- export {
7
- c as WeekNumber
8
- };
@@ -1,7 +0,0 @@
1
- import t from "react";
2
- function a(e) {
3
- return t.createElement("th", { ...e });
4
- }
5
- export {
6
- a as WeekNumberHeader
7
- };
@@ -1,7 +0,0 @@
1
- import t from "react";
2
- function a(e) {
3
- return t.createElement("th", { ...e });
4
- }
5
- export {
6
- a as Weekday
7
- };
@@ -1,11 +0,0 @@
1
- import e from "react";
2
- function a(t) {
3
- return e.createElement(
4
- "thead",
5
- { "aria-hidden": !0 },
6
- e.createElement("tr", { ...t })
7
- );
8
- }
9
- export {
10
- a as Weekdays
11
- };
@@ -1,7 +0,0 @@
1
- import t from "react";
2
- function o(e) {
3
- return t.createElement("tbody", { ...e });
4
- }
5
- export {
6
- o as Weeks
7
- };
@@ -1,9 +0,0 @@
1
- import r from "react";
2
- import { useDayPicker as t } from "../useDayPicker.js";
3
- function m(o) {
4
- const { components: e } = t();
5
- return r.createElement(e.Dropdown, { ...o });
6
- }
7
- export {
8
- m as YearsDropdown
9
- };
@@ -1,54 +0,0 @@
1
- import { Button as e } from "./Button.js";
2
- import { CaptionLabel as p } from "./CaptionLabel.js";
3
- import { Chevron as x } from "./Chevron.js";
4
- import { Day as n } from "./Day.js";
5
- import { DayButton as d } from "./DayButton.js";
6
- import { Dropdown as u } from "./Dropdown.js";
7
- import { DropdownNav as k } from "./DropdownNav.js";
8
- import { Footer as D } from "./Footer.js";
9
- import { Month as i } from "./Month.js";
10
- import { MonthCaption as v } from "./MonthCaption.js";
11
- import { MonthGrid as y } from "./MonthGrid.js";
12
- import { Months as b } from "./Months.js";
13
- import { MonthsDropdown as l } from "./MonthsDropdown.js";
14
- import { Nav as F } from "./Nav.js";
15
- import { NextMonthButton as H } from "./NextMonthButton.js";
16
- import { Option as O } from "./Option.js";
17
- import { PreviousMonthButton as R } from "./PreviousMonthButton.js";
18
- import { Root as Y } from "./Root.js";
19
- import { Select as j } from "./Select.js";
20
- import { Week as z } from "./Week.js";
21
- import { Weekday as E } from "./Weekday.js";
22
- import { Weekdays as J } from "./Weekdays.js";
23
- import { WeekNumber as Q } from "./WeekNumber.js";
24
- import { WeekNumberHeader as U } from "./WeekNumberHeader.js";
25
- import { Weeks as X } from "./Weeks.js";
26
- import { YearsDropdown as _ } from "./YearsDropdown.js";
27
- export {
28
- e as Button,
29
- p as CaptionLabel,
30
- x as Chevron,
31
- n as Day,
32
- d as DayButton,
33
- u as Dropdown,
34
- k as DropdownNav,
35
- D as Footer,
36
- i as Month,
37
- v as MonthCaption,
38
- y as MonthGrid,
39
- b as Months,
40
- l as MonthsDropdown,
41
- F as Nav,
42
- H as NextMonthButton,
43
- O as Option,
44
- R as PreviousMonthButton,
45
- Y as Root,
46
- j as Select,
47
- z as Week,
48
- Q as WeekNumber,
49
- U as WeekNumberHeader,
50
- E as Weekday,
51
- J as Weekdays,
52
- X as Weeks,
53
- _ as YearsDropdown
54
- };
@@ -1,9 +0,0 @@
1
- import { DateLib as r } from "../classes/DateLib.js";
2
- function a(t, o, n) {
3
- return (n ?? new r(o)).formatMonthYear(t);
4
- }
5
- const f = a;
6
- export {
7
- a as formatCaption,
8
- f as formatMonthCaption
9
- };
@@ -1,7 +0,0 @@
1
- import { DateLib as a } from "../classes/DateLib.js";
2
- function f(r, t, o) {
3
- return (o ?? new a(t)).format(r, "d");
4
- }
5
- export {
6
- f as formatDay
7
- };
@@ -1,7 +0,0 @@
1
- import { defaultDateLib as r } from "../classes/DateLib.js";
2
- function n(o, t = r) {
3
- return t.format(o, "LLLL");
4
- }
5
- export {
6
- n as formatMonthDropdown
7
- };
@@ -1,7 +0,0 @@
1
- import { defaultDateLib as o } from "../classes/DateLib.js";
2
- function a(r, t = o) {
3
- return r < 10 ? t.formatNumber(`0${r.toLocaleString()}`) : t.formatNumber(`${r.toLocaleString()}`);
4
- }
5
- export {
6
- a as formatWeekNumber
7
- };
@@ -1,6 +0,0 @@
1
- function e() {
2
- return "";
3
- }
4
- export {
5
- e as formatWeekNumberHeader
6
- };
@@ -1,7 +0,0 @@
1
- import { DateLib as t } from "../classes/DateLib.js";
2
- function a(c, e, r) {
3
- return (r ?? new t(e)).format(c, "cccccc");
4
- }
5
- export {
6
- a as formatWeekdayName
7
- };
@@ -1,9 +0,0 @@
1
- import { defaultDateLib as t } from "../classes/DateLib.js";
2
- function a(o, r = t) {
3
- return r.format(o, "yyyy");
4
- }
5
- const f = a;
6
- export {
7
- f as formatYearCaption,
8
- a as formatYearDropdown
9
- };
@@ -1,18 +0,0 @@
1
- import { formatCaption as t, formatMonthCaption as e } from "./formatCaption.js";
2
- import { formatDay as a } from "./formatDay.js";
3
- import { formatMonthDropdown as p } from "./formatMonthDropdown.js";
4
- import { formatWeekdayName as x } from "./formatWeekdayName.js";
5
- import { formatWeekNumber as i } from "./formatWeekNumber.js";
6
- import { formatWeekNumberHeader as C } from "./formatWeekNumberHeader.js";
7
- import { formatYearCaption as N, formatYearDropdown as W } from "./formatYearDropdown.js";
8
- export {
9
- t as formatCaption,
10
- a as formatDay,
11
- e as formatMonthCaption,
12
- p as formatMonthDropdown,
13
- i as formatWeekNumber,
14
- C as formatWeekNumberHeader,
15
- x as formatWeekdayName,
16
- N as formatYearCaption,
17
- W as formatYearDropdown
18
- };
@@ -1,19 +0,0 @@
1
- import { DayFlag as s } from "../UI.js";
2
- var d;
3
- (function(e) {
4
- e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
5
- })(d || (d = {}));
6
- function l(e) {
7
- return !e[s.disabled] && !e[s.hidden] && !e[s.outside];
8
- }
9
- function F(e, u, t, n) {
10
- let f, c = -1;
11
- for (const o of e) {
12
- const a = u(o);
13
- l(a) && (a[s.focused] && c < d.FocusedModifier ? (f = o, c = d.FocusedModifier) : n?.isEqualTo(o) && c < d.LastFocused ? (f = o, c = d.LastFocused) : t(o.date) && c < d.Selected ? (f = o, c = d.Selected) : a[s.today] && c < d.Today && (f = o, c = d.Today));
14
- }
15
- return f || (f = e.find((o) => l(u(o)))), f;
16
- }
17
- export {
18
- F as calculateFocusTarget
19
- };
@@ -1,42 +0,0 @@
1
- import { DayFlag as e } from "../UI.js";
2
- import { dateMatchModifiers as u } from "../utils/dateMatchModifiers.js";
3
- function V(b, S, h, M, a) {
4
- const { disabled: m, hidden: p, modifiers: r, showOutsideDays: y, broadcastCalendar: B, today: g } = S, { isSameDay: v, isSameMonth: A, startOfMonth: E, isBefore: F, endOfMonth: j, isAfter: k } = a, O = h && E(h), D = M && j(M), i = {
5
- [e.focused]: [],
6
- [e.outside]: [],
7
- [e.disabled]: [],
8
- [e.hidden]: [],
9
- [e.today]: []
10
- }, d = {};
11
- for (const s of b) {
12
- const { date: o, displayMonth: n } = s, t = !!(n && !A(o, n)), f = !!(O && F(o, O)), l = !!(D && k(o, D)), w = !!(m && u(o, m, a)), x = !!(p && u(o, p, a)) || f || l || // Broadcast calendar will show outside days as default
13
- !B && !y && t || B && y === !1 && t, C = v(o, g ?? a.today());
14
- t && i.outside.push(s), w && i.disabled.push(s), x && i.hidden.push(s), C && i.today.push(s), r && Object.keys(r).forEach((c) => {
15
- const N = r?.[c];
16
- N && u(o, N, a) && (d[c] ? d[c].push(s) : d[c] = [s]);
17
- });
18
- }
19
- return (s) => {
20
- const o = {
21
- [e.focused]: !1,
22
- [e.disabled]: !1,
23
- [e.hidden]: !1,
24
- [e.outside]: !1,
25
- [e.today]: !1
26
- }, n = {};
27
- for (const t in i) {
28
- const f = i[t];
29
- o[t] = f.some((l) => l === s);
30
- }
31
- for (const t in d)
32
- n[t] = d[t].some((f) => f === s);
33
- return {
34
- ...o,
35
- // custom modifiers should override all the previous ones
36
- ...n
37
- };
38
- };
39
- }
40
- export {
41
- V as createGetModifiers
42
- };