prometeo-design-system 2.8.6 → 2.8.8

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 (308) hide show
  1. package/dist/Avatar.js +4 -0
  2. package/dist/Button.js +4 -0
  3. package/dist/CardProfile.js +5 -0
  4. package/dist/CheckBox.js +4 -0
  5. package/dist/DatePicker.js +5 -0
  6. package/dist/DialogModal.js +6 -0
  7. package/dist/DrawerDesktop.js +6 -0
  8. package/dist/DrawerMobile.js +6 -0
  9. package/dist/DropZone.js +5 -0
  10. package/dist/FAButton.js +4 -0
  11. package/dist/Header.js +4 -0
  12. package/dist/Icons/Icons.js +1055 -0
  13. package/dist/Icons.js +5 -0
  14. package/dist/Image.js +4 -0
  15. package/dist/ImageGallery.js +6 -0
  16. package/dist/Input.js +4 -0
  17. package/dist/InputMultiple.js +5 -0
  18. package/dist/LayoutGeneric.js +4 -0
  19. package/dist/Logo.js +4 -0
  20. package/dist/Menu.js +5 -0
  21. package/dist/OtpInput.js +4 -0
  22. package/dist/Pagination.js +4 -0
  23. package/dist/ProfilePictureUpload.js +5 -0
  24. package/dist/ProgressBar.js +4 -0
  25. package/dist/RadioButton.js +5 -0
  26. package/dist/SegmentedButton.js +5 -0
  27. package/dist/Select.js +4 -0
  28. package/dist/SelectSearch.js +4 -0
  29. package/dist/Skeleton.js +5 -0
  30. package/dist/Spinner.js +4 -0
  31. package/dist/Steps.js +5 -0
  32. package/dist/SwipeContainer.js +4 -0
  33. package/dist/Switch.js +5 -0
  34. package/dist/TabLinks.js +4 -0
  35. package/dist/Table.js +11 -0
  36. package/dist/TextArea.js +4 -0
  37. package/dist/Toast.js +5 -0
  38. package/dist/ToastProvider.js +4 -0
  39. package/dist/Tooltip.js +4 -0
  40. package/dist/components/Autocomplete/useAutocomplete.js +143 -0
  41. package/dist/{Avatar.es.js → components/Avatar/Avatar.js} +24 -24
  42. package/dist/{Button.es.js → components/Button/Button.js} +55 -55
  43. package/dist/{CardProfile-CsytJlKZ.js → components/CardProfile/CardProfile.js} +68 -94
  44. package/dist/{CheckBox.es.js → components/CheckBox/CheckBox.js} +25 -25
  45. package/dist/components/DatePicker/DatePicker.js +396 -0
  46. package/dist/components/Dialog/Dialog.js +60 -0
  47. package/dist/components/Dialog/useDialogControl.js +18 -0
  48. package/dist/components/Drawer/DrawerDesktop.js +179 -0
  49. package/dist/components/Drawer/DrawerMobile.js +219 -0
  50. package/dist/components/Drawer/useDrawerDesktop.js +18 -0
  51. package/dist/components/Drawer/useDrawerMobile.js +27 -0
  52. package/dist/components/DropZone/DropZone.js +86 -0
  53. package/dist/components/DropZone/useFileDropzone.js +24 -0
  54. package/dist/{FAButton.es.js → components/FAB/FAButton.js} +5 -5
  55. package/dist/components/Header/Header.js +32 -0
  56. package/dist/components/Image/GalleryPreview.js +40 -0
  57. package/dist/{Image.es.js → components/Image/Image.js} +32 -32
  58. package/dist/components/Image/ImageGallery.js +68 -0
  59. package/dist/components/Image/LightBox.js +223 -0
  60. package/dist/{ImageGallery.es.js → components/Image/useImageGallery.js} +0 -2
  61. package/dist/components/Input/Input.js +219 -0
  62. package/dist/components/InputMultiple/InputMultiple.js +262 -0
  63. package/dist/components/Layout/LayoutGeneric.js +13 -0
  64. package/dist/components/Logo/Logo.js +9 -0
  65. package/dist/{Menu.es.js → components/Menu/MenuComposable.js} +12 -13
  66. package/dist/components/OtpInput/OtpInput.js +112 -0
  67. package/dist/{Pagination.es.js → components/Pagination/Pagination.js} +32 -32
  68. package/dist/{ProfilePictureUpload.es.js → components/ProfilePictureUpload/ProfilePictureUpload.js} +56 -57
  69. package/dist/components/ProgressBar/ProgressBar.js +70 -0
  70. package/dist/{RadioButton.es.js → components/RadioButton/RadioButton.js} +35 -36
  71. package/dist/{SegmentedButton.es.js → components/SegmentedButton/SegmentedButton.js} +37 -38
  72. package/dist/components/Select/Select.js +1005 -0
  73. package/dist/components/SelectSearch/SelectSearch.js +101 -0
  74. package/dist/components/Shared/Chip.js +55 -0
  75. package/dist/components/Shared/HelperComponent.js +24 -0
  76. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +62 -0
  77. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +59 -0
  78. package/dist/components/Sidebar/SidebarComposable.js +84 -0
  79. package/dist/components/Sidebar/components/NavigationLink.js +34 -0
  80. package/dist/components/Sidebar/components/badge.js +33 -0
  81. package/dist/components/Sidebar/components/changue-account.js +31 -0
  82. package/dist/components/Sidebar/components/collapse-button.js +18 -0
  83. package/dist/components/Sidebar/components/company-logo.js +12 -0
  84. package/dist/components/Sidebar/components/nav-actions.js +98 -0
  85. package/dist/components/Sidebar/components/nav-links.js +100 -0
  86. package/dist/components/Sidebar/context/SidebarContext.js +19 -0
  87. package/dist/components/Sidebar/hooks/SidebarProvider.js +33 -0
  88. package/dist/components/Sidebar/hooks/useNavBarActions.js +9 -0
  89. package/dist/components/Sidebar/hooks/useNavBarCollapse.js +11 -0
  90. package/dist/components/Sidebar/hooks/useSidebarHook.js +13 -0
  91. package/dist/components/Sidebar/ui/useNavbarAnimation.js +326 -0
  92. package/dist/{Skeleton.es.js → components/Skeleton/Skeleton.js} +16 -18
  93. package/dist/components/Spinner/Spinner.js +52 -0
  94. package/dist/{Steps.es.js → components/Steps/Steps.js} +61 -62
  95. package/dist/{SwipeContainer.es.js → components/SwipeContainer/SwipeContainer.js} +68 -68
  96. package/dist/{Switch.es.js → components/Switch/Switch.js} +17 -18
  97. package/dist/{TabLinks.es.js → components/TabLinks/TabLinks.js} +11 -11
  98. package/dist/components/TabSwitch/TabSwitch.js +57 -0
  99. package/dist/{Table.es.js → components/Table/Table.js} +38 -41
  100. package/dist/{TextArea.es.js → components/TextArea/TextArea.js} +24 -26
  101. package/dist/components/Toaster/ToastProvider.js +6 -0
  102. package/dist/{Toast.es.js → components/Toaster/Toaster.js} +48 -48
  103. package/dist/components/Tooltip/Tootip.js +62 -0
  104. package/dist/hooks/useClickOutside.js +24 -0
  105. package/dist/{useDragScroll-CHN9OMwn.js → hooks/useDragScroll.js} +1 -1
  106. package/dist/hooks/useLabelBackground.js +25 -0
  107. package/dist/index.d.ts +16 -12
  108. package/dist/index.js +127 -0
  109. package/dist/{cn-B6yFEsav.js → lib/cn.js} +2 -2
  110. package/dist/lib/utils.js +54 -0
  111. package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
  112. package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
  113. package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
  114. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
  115. package/dist/{index-BOQuZ0gG.js → node_modules/class-variance-authority/dist/index.js} +10 -9
  116. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  117. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  118. package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
  119. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  120. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  121. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  122. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  123. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  124. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  125. package/dist/node_modules/date-fns/addDays.js +10 -0
  126. package/dist/node_modules/date-fns/addMonths.js +20 -0
  127. package/dist/node_modules/date-fns/addWeeks.js +8 -0
  128. package/dist/node_modules/date-fns/addYears.js +8 -0
  129. package/dist/node_modules/date-fns/constants.js +6 -0
  130. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  131. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  132. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +13 -0
  133. package/dist/node_modules/date-fns/eachMonthOfInterval.js +17 -0
  134. package/dist/node_modules/date-fns/eachYearOfInterval.js +17 -0
  135. package/dist/node_modules/date-fns/endOfISOWeek.js +8 -0
  136. package/dist/node_modules/date-fns/endOfMonth.js +9 -0
  137. package/dist/node_modules/date-fns/endOfWeek.js +10 -0
  138. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  139. package/dist/node_modules/date-fns/format.js +58 -0
  140. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  141. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  142. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  143. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  144. package/dist/node_modules/date-fns/getMonth.js +8 -0
  145. package/dist/node_modules/date-fns/getWeek.js +12 -0
  146. package/dist/node_modules/date-fns/getWeekYear.js +16 -0
  147. package/dist/node_modules/date-fns/getYear.js +8 -0
  148. package/dist/node_modules/date-fns/isAfter.js +8 -0
  149. package/dist/node_modules/date-fns/isBefore.js +8 -0
  150. package/dist/node_modules/date-fns/isDate.js +7 -0
  151. package/dist/node_modules/date-fns/isSameDay.js +14 -0
  152. package/dist/node_modules/date-fns/isSameMonth.js +13 -0
  153. package/dist/node_modules/date-fns/isSameYear.js +13 -0
  154. package/dist/node_modules/date-fns/isValid.js +9 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  158. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  159. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  160. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  161. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  162. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  163. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  164. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  165. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
  166. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
  167. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
  168. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
  169. package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
  170. package/dist/node_modules/date-fns/locale/es.js +21 -0
  171. package/dist/node_modules/date-fns/max.js +14 -0
  172. package/dist/node_modules/date-fns/min.js +14 -0
  173. package/dist/node_modules/date-fns/setMonth.js +13 -0
  174. package/dist/node_modules/date-fns/setYear.js +10 -0
  175. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  176. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  177. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  178. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  179. package/dist/node_modules/date-fns/startOfWeek.js +10 -0
  180. package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
  181. package/dist/node_modules/date-fns/startOfYear.js +9 -0
  182. package/dist/node_modules/date-fns/toDate.js +8 -0
  183. package/dist/node_modules/input-otp/dist/index.js +194 -0
  184. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +227 -0
  185. package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
  186. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
  187. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
  188. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
  189. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +147 -0
  190. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
  191. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
  193. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
  194. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
  195. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
  196. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
  198. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
  199. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
  200. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
  201. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +21 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +6 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +44 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
  278. package/dist/prometeo-design-system.css +1 -1
  279. package/dist/useDevice.js +4 -0
  280. package/package.json +114 -115
  281. package/dist/CardProfile.es.js +0 -5
  282. package/dist/DatePicker.es.js +0 -3441
  283. package/dist/DialogModal.es.js +0 -75
  284. package/dist/DrawerDesktop.es.js +0 -192
  285. package/dist/DrawerMobile.es.js +0 -242
  286. package/dist/DropZone.es.js +0 -87
  287. package/dist/Header.es.js +0 -32
  288. package/dist/HelperComponent-g_xuKWzK.js +0 -24
  289. package/dist/Icons-DtFC5DJ7.js +0 -1079
  290. package/dist/Icons.es.js +0 -5
  291. package/dist/ImageGallery-Ckxg9OIC.js +0 -317
  292. package/dist/Input-Cck37DpG.js +0 -240
  293. package/dist/Input.es.js +0 -4
  294. package/dist/InputMultiple.es.js +0 -263
  295. package/dist/LayoutGeneric-CbaoatQB.js +0 -26
  296. package/dist/LayoutGeneric.es.js +0 -4
  297. package/dist/Logo.es.js +0 -9
  298. package/dist/OtpInput.es.js +0 -301
  299. package/dist/ProgressBar.es.js +0 -70
  300. package/dist/Select-BD5FTxVw.js +0 -1100
  301. package/dist/Select.es.js +0 -4
  302. package/dist/SelectSearch.es.js +0 -237
  303. package/dist/Spinner.es.js +0 -52
  304. package/dist/ToastProvider.es.js +0 -6
  305. package/dist/Tooltip.es.js +0 -62
  306. package/dist/jsx-runtime-DKDX3adD.js +0 -281
  307. package/dist/prometeo-design-system.es.js +0 -1002
  308. /package/dist/{useDevice.es.js → hooks/useDevice.js} +0 -0
@@ -0,0 +1,9 @@
1
+ import { getBroadcastWeeksInMonth as n } from "./getBroadcastWeeksInMonth.js";
2
+ import { startOfBroadcastWeek as s } from "./startOfBroadcastWeek.js";
3
+ function d(e, t) {
4
+ const o = s(e, t), r = n(e, t);
5
+ return t.addDays(o, r * 7 - 1);
6
+ }
7
+ export {
8
+ d as endOfBroadcastWeek
9
+ };
@@ -0,0 +1,7 @@
1
+ function r(s, t) {
2
+ const e = t.startOfMonth(s), n = e.getDay() > 0 ? e.getDay() : 7, a = t.addDays(s, -n + 1), o = t.addDays(a, 34);
3
+ return t.getMonth(s) === t.getMonth(o) ? 5 : 4;
4
+ }
5
+ export {
6
+ r as getBroadcastWeeksInMonth
7
+ };
@@ -0,0 +1,7 @@
1
+ import { DayFlag as e, SelectionState as n, UI as d } from "../UI.js";
2
+ function p(o, i, f = {}) {
3
+ return Object.entries(o).filter(([, t]) => t === !0).reduce((t, [r]) => (f[r] ? t.push(f[r]) : i[e[r]] ? t.push(i[e[r]]) : i[n[r]] && t.push(i[n[r]]), t), [i[d.Day]]);
4
+ }
5
+ export {
6
+ p as getClassNamesForModifiers
7
+ };
@@ -0,0 +1,10 @@
1
+ import * as t from "../components/custom-components.js";
2
+ function n(o) {
3
+ return {
4
+ ...t,
5
+ ...o
6
+ };
7
+ }
8
+ export {
9
+ n as getComponents
10
+ };
@@ -0,0 +1,16 @@
1
+ function n(e) {
2
+ const t = {
3
+ "data-mode": e.mode ?? void 0,
4
+ "data-required": "required" in e ? e.required : void 0,
5
+ "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
6
+ "data-week-numbers": e.showWeekNumber || void 0,
7
+ "data-broadcast-calendar": e.broadcastCalendar || void 0,
8
+ "data-nav-layout": e.navLayout || void 0
9
+ };
10
+ return Object.entries(e).forEach(([a, d]) => {
11
+ a.startsWith("data-") && (t[a] = d);
12
+ }), t;
13
+ }
14
+ export {
15
+ n as getDataAttributes
16
+ };
@@ -0,0 +1,21 @@
1
+ function T(o, f, h, d) {
2
+ const s = o[0], a = o[o.length - 1], { ISOWeek: c, fixedWeeks: l, broadcastCalendar: r } = h ?? {}, { addDays: O, differenceInCalendarDays: D, differenceInCalendarMonths: g, endOfBroadcastWeek: I, endOfISOWeek: u, endOfMonth: W, endOfWeek: x, isAfter: y, startOfBroadcastWeek: C, startOfISOWeek: F, startOfWeek: M } = d, k = r ? C(s, d) : c ? F(s) : M(s), S = r ? I(a) : c ? u(W(a)) : x(W(a)), A = D(S, k), B = g(a, s) + 1, e = [];
3
+ for (let t = 0; t <= A; t++) {
4
+ const n = O(k, t);
5
+ if (f && y(n, f))
6
+ break;
7
+ e.push(n);
8
+ }
9
+ const i = (r ? 35 : 42) * B;
10
+ if (l && e.length < i) {
11
+ const t = i - e.length;
12
+ for (let n = 0; n < t; n++) {
13
+ const b = O(e[e.length - 1], 1);
14
+ e.push(b);
15
+ }
16
+ }
17
+ return e;
18
+ }
19
+ export {
20
+ T as getDates
21
+ };
@@ -0,0 +1,10 @@
1
+ function a(c) {
2
+ const e = [];
3
+ return c.reduce((s, t) => {
4
+ const n = t.weeks.reduce((r, i) => r.concat(i.days.slice()), e.slice());
5
+ return s.concat(n.slice());
6
+ }, e.slice());
7
+ }
8
+ export {
9
+ a as getDays
10
+ };
@@ -0,0 +1,16 @@
1
+ import { UI as t, DayFlag as e, SelectionState as r, Animation as s } from "../UI.js";
2
+ function i() {
3
+ const o = {};
4
+ for (const n in t)
5
+ o[t[n]] = `rdp-${t[n]}`;
6
+ for (const n in e)
7
+ o[e[n]] = `rdp-${e[n]}`;
8
+ for (const n in r)
9
+ o[r[n]] = `rdp-${r[n]}`;
10
+ for (const n in s)
11
+ o[s[n]] = `rdp-${s[n]}`;
12
+ return o;
13
+ }
14
+ export {
15
+ i as getDefaultClassNames
16
+ };
@@ -0,0 +1,13 @@
1
+ function i(e, o, h, r) {
2
+ const { numberOfMonths: f = 1 } = h, n = [];
3
+ for (let t = 0; t < f; t++) {
4
+ const s = r.addMonths(e, t);
5
+ if (o && s > o)
6
+ break;
7
+ n.push(s);
8
+ }
9
+ return n;
10
+ }
11
+ export {
12
+ i as getDisplayMonths
13
+ };
@@ -0,0 +1,15 @@
1
+ function g(d, s, k, t, f, O, n) {
2
+ const { ISOWeek: o, broadcastCalendar: r } = O, { addDays: W, addMonths: c, addWeeks: l, addYears: u, endOfBroadcastWeek: b, endOfISOWeek: m, endOfWeek: y, max: F, min: I, startOfBroadcastWeek: h, startOfISOWeek: x, startOfWeek: B } = n;
3
+ let a = {
4
+ day: W,
5
+ week: l,
6
+ month: c,
7
+ year: u,
8
+ startOfWeek: (e) => r ? h(e, n) : o ? x(e) : B(e),
9
+ endOfWeek: (e) => r ? b(e) : o ? m(e) : y(e)
10
+ }[d](k, s === "after" ? 1 : -1);
11
+ return s === "before" && t ? a = F([t, a]) : s === "after" && f && (a = I([f, a])), a;
12
+ }
13
+ export {
14
+ g as getFocusableDate
15
+ };
@@ -0,0 +1,10 @@
1
+ import * as a from "../formatters/index.js";
2
+ function f(n) {
3
+ return n?.formatMonthCaption && !n.formatCaption && (n.formatCaption = n.formatMonthCaption), n?.formatYearCaption && !n.formatYearDropdown && (n.formatYearDropdown = n.formatYearCaption), {
4
+ ...a,
5
+ ...n
6
+ };
7
+ }
8
+ export {
9
+ f as getFormatters
10
+ };
@@ -0,0 +1,13 @@
1
+ function u(i, o, n, e) {
2
+ const { month: s, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = i;
3
+ let t = s || M || c;
4
+ const { differenceInCalendarMonths: h, addMonths: l, startOfMonth: r } = e;
5
+ if (n && h(n, t) < f - 1) {
6
+ const d = -1 * (f - 1);
7
+ t = l(n, d);
8
+ }
9
+ return o && h(t, o) < 0 && (t = o), r(t);
10
+ }
11
+ export {
12
+ u as getInitialMonth
13
+ };
@@ -0,0 +1,13 @@
1
+ function d(o, n, s, a, e) {
2
+ const { startOfMonth: r, startOfYear: c, endOfYear: f, eachMonthOfInterval: l, getMonth: p } = e;
3
+ return l({
4
+ start: c(o),
5
+ end: f(o)
6
+ }).map((t) => {
7
+ const O = a.formatMonthDropdown(t, e), h = p(t), u = n && t < r(n) || s && t > r(s) || !1;
8
+ return { value: h, label: O, disabled: u };
9
+ });
10
+ }
11
+ export {
12
+ d as getMonthOptions
13
+ };
@@ -0,0 +1,24 @@
1
+ import { CalendarDay as F } from "../classes/CalendarDay.js";
2
+ import { CalendarWeek as N } from "../classes/CalendarWeek.js";
3
+ import { CalendarMonth as P } from "../classes/CalendarMonth.js";
4
+ function j(l, f, e, c) {
5
+ const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
6
+ const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
7
+ if (e.fixedWeeks && a.length < O) {
8
+ const r = f.filter((n) => {
9
+ const s = O - a.length;
10
+ return n > d && n <= y(d, s);
11
+ });
12
+ a.push(...r);
13
+ }
14
+ const b = a.reduce((r, n) => {
15
+ const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
16
+ return i ? i.days.push(u) : r.push(new N(s, [u])), r;
17
+ }, []), v = new P(t, b);
18
+ return W.push(v), W;
19
+ }, []);
20
+ return e.reverseMonths ? o.reverse() : o;
21
+ }
22
+ export {
23
+ j as getMonths
24
+ };
@@ -0,0 +1,13 @@
1
+ function O(o, r) {
2
+ let { startMonth: t, endMonth: e } = o;
3
+ const { startOfYear: M, startOfDay: d, startOfMonth: c, endOfMonth: Y, addYears: l, endOfYear: w, newDate: f, today: i } = r, { fromYear: a, toYear: n, fromMonth: s, toMonth: h } = o;
4
+ !t && s && (t = s), !t && a && (t = r.newDate(a, 0, 1)), !e && h && (e = h), !e && n && (e = f(n, 11, 31));
5
+ const y = o.captionLayout === "dropdown" || o.captionLayout === "dropdown-years";
6
+ return t ? t = c(t) : a ? t = f(a, 0, 1) : !t && y && (t = M(l(o.today ?? i(), -100))), e ? e = Y(e) : n ? e = f(n, 11, 31) : !e && y && (e = w(o.today ?? i())), [
7
+ t && d(t),
8
+ e && d(e)
9
+ ];
10
+ }
11
+ export {
12
+ O as getNavMonths
13
+ };
@@ -0,0 +1,12 @@
1
+ import { dateMatchModifiers as u } from "../utils/dateMatchModifiers.js";
2
+ import { getFocusableDate as g } from "./getFocusableDate.js";
3
+ import { CalendarDay as m } from "../classes/CalendarDay.js";
4
+ function h(t, i, a, d, f, e, n, s = 0) {
5
+ if (s > 365)
6
+ return;
7
+ const o = g(t, i, a.date, d, f, e, n), r = !!(e.disabled && u(o, e.disabled, n)), l = !!(e.hidden && u(o, e.hidden, n)), D = o, c = new m(o, D, n);
8
+ return !r && !l ? c : h(t, i, c, d, f, e, n, s + 1);
9
+ }
10
+ export {
11
+ h as getNextFocus
12
+ };
@@ -0,0 +1,12 @@
1
+ function h(n, t, e, s) {
2
+ if (e.disableNavigation)
3
+ return;
4
+ const { pagedNavigation: u, numberOfMonths: f = 1 } = e, { startOfMonth: a, addMonths: o, differenceInCalendarMonths: d } = s, i = u ? f : 1, r = a(n);
5
+ if (!t)
6
+ return o(r, i);
7
+ if (!(d(t, n) < f))
8
+ return o(r, i);
9
+ }
10
+ export {
11
+ h as getNextMonth
12
+ };
@@ -0,0 +1,12 @@
1
+ function c(i, t, e, s) {
2
+ if (e.disableNavigation)
3
+ return;
4
+ const { pagedNavigation: r, numberOfMonths: d } = e, { startOfMonth: u, addMonths: f, differenceInCalendarMonths: a } = s, o = r ? d ?? 1 : 1, n = u(i);
5
+ if (!t)
6
+ return f(n, -o);
7
+ if (!(a(n, t) <= 0))
8
+ return f(n, -o);
9
+ }
10
+ export {
11
+ c as getPreviousMonth
12
+ };
@@ -0,0 +1,13 @@
1
+ import { UI as f } from "../UI.js";
2
+ function n(r, o = {}, i = {}) {
3
+ let e = { ...o?.[f.Day] };
4
+ return Object.entries(r).filter(([, t]) => t === !0).forEach(([t]) => {
5
+ e = {
6
+ ...e,
7
+ ...i?.[t]
8
+ };
9
+ }), e;
10
+ }
11
+ export {
12
+ n as getStyleForModifiers
13
+ };
@@ -0,0 +1,11 @@
1
+ function d(t, r, c) {
2
+ const a = t.today(), e = r ? t.startOfISOWeek(a) : t.startOfWeek(a), o = [];
3
+ for (let s = 0; s < 7; s++) {
4
+ const n = t.addDays(e, s);
5
+ o.push(n);
6
+ }
7
+ return o;
8
+ }
9
+ export {
10
+ d as getWeekdays
11
+ };
@@ -0,0 +1,7 @@
1
+ function i(e) {
2
+ const t = [];
3
+ return e.reduce((c, n) => c.concat(n.weeks.slice()), t.slice());
4
+ }
5
+ export {
6
+ i as getWeeks
7
+ };
@@ -0,0 +1,16 @@
1
+ function p(e, r, s, t, f = !1) {
2
+ if (!e || !r)
3
+ return;
4
+ const { startOfYear: o, endOfYear: i, eachYearOfInterval: l, getYear: u } = t, Y = o(e), c = i(r), a = l({ start: Y, end: c });
5
+ return f && a.reverse(), a.map((n) => {
6
+ const d = s.formatYearDropdown(n, t);
7
+ return {
8
+ value: u(n),
9
+ label: d,
10
+ disabled: !1
11
+ };
12
+ });
13
+ }
14
+ export {
15
+ p as getYearOptions
16
+ };
@@ -0,0 +1,7 @@
1
+ function n(s, e) {
2
+ const t = e.startOfMonth(s), r = t.getDay();
3
+ return r === 1 ? t : r === 0 ? e.addDays(t, -6) : e.addDays(t, -1 * (r - 1));
4
+ }
5
+ export {
6
+ n as startOfBroadcastWeek
7
+ };
@@ -0,0 +1,8 @@
1
+ import { useState as o } from "react";
2
+ function a(t, e) {
3
+ const [u, n] = o(t);
4
+ return [e === void 0 ? u : e, n];
5
+ }
6
+ export {
7
+ a as useControlledValue
8
+ };
@@ -0,0 +1,26 @@
1
+ import { labelDay as o, labelDayButton as l } from "./labelDayButton.js";
2
+ import { labelCaption as t, labelGrid as b } from "./labelGrid.js";
3
+ import { labelGridcell as m } from "./labelGridcell.js";
4
+ import { labelMonthDropdown as f } from "./labelMonthDropdown.js";
5
+ import { labelNav as n } from "./labelNav.js";
6
+ import { labelNext as u } from "./labelNext.js";
7
+ import { labelPrevious as N } from "./labelPrevious.js";
8
+ import { labelWeekday as y } from "./labelWeekday.js";
9
+ import { labelWeekNumber as v } from "./labelWeekNumber.js";
10
+ import { labelWeekNumberHeader as G } from "./labelWeekNumberHeader.js";
11
+ import { labelYearDropdown as h } from "./labelYearDropdown.js";
12
+ export {
13
+ t as labelCaption,
14
+ o as labelDay,
15
+ l as labelDayButton,
16
+ b as labelGrid,
17
+ m as labelGridcell,
18
+ f as labelMonthDropdown,
19
+ n as labelNav,
20
+ u as labelNext,
21
+ N as labelPrevious,
22
+ v as labelWeekNumber,
23
+ G as labelWeekNumberHeader,
24
+ y as labelWeekday,
25
+ h as labelYearDropdown
26
+ };
@@ -0,0 +1,10 @@
1
+ import { DateLib as n } from "../classes/DateLib.js";
2
+ function r(a, t, l, o) {
3
+ let e = (o ?? new n(l)).format(a, "PPPP");
4
+ return t.today && (e = `Today, ${e}`), t.selected && (e = `${e}, selected`), e;
5
+ }
6
+ const c = r;
7
+ export {
8
+ c as labelDay,
9
+ r as labelDayButton
10
+ };
@@ -0,0 +1,9 @@
1
+ import { DateLib as r } from "../classes/DateLib.js";
2
+ function e(t, o, n) {
3
+ return (n ?? new r(o)).formatMonthYear(t);
4
+ }
5
+ const l = e;
6
+ export {
7
+ l as labelCaption,
8
+ e as labelGrid
9
+ };
@@ -0,0 +1,8 @@
1
+ import { DateLib as a } from "../classes/DateLib.js";
2
+ function f(t, l, o, r) {
3
+ let e = (r ?? new a(o)).format(t, "PPPP");
4
+ return l?.today && (e = `Today, ${e}`), e;
5
+ }
6
+ export {
7
+ f as labelGridcell
8
+ };
@@ -0,0 +1,6 @@
1
+ function n(o) {
2
+ return "Choose the Month";
3
+ }
4
+ export {
5
+ n as labelMonthDropdown
6
+ };
@@ -0,0 +1,6 @@
1
+ function e() {
2
+ return "";
3
+ }
4
+ export {
5
+ e as labelNav
6
+ };
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return "Go to the Next Month";
3
+ }
4
+ export {
5
+ e as labelNext
6
+ };
@@ -0,0 +1,6 @@
1
+ function t(o) {
2
+ return "Go to the Previous Month";
3
+ }
4
+ export {
5
+ t as labelPrevious
6
+ };
@@ -0,0 +1,6 @@
1
+ function o(e, n) {
2
+ return `Week ${e}`;
3
+ }
4
+ export {
5
+ o as labelWeekNumber
6
+ };
@@ -0,0 +1,6 @@
1
+ function r(e) {
2
+ return "Week Number";
3
+ }
4
+ export {
5
+ r as labelWeekNumberHeader
6
+ };
@@ -0,0 +1,7 @@
1
+ import { DateLib as c } from "../classes/DateLib.js";
2
+ function a(e, r, t) {
3
+ return (t ?? new c(r)).format(e, "cccc");
4
+ }
5
+ export {
6
+ a as labelWeekday
7
+ };
@@ -0,0 +1,6 @@
1
+ function e(o) {
2
+ return "Choose the Year";
3
+ }
4
+ export {
5
+ e as labelYearDropdown
6
+ };
@@ -0,0 +1,21 @@
1
+ import { useControlledValue as x } from "../helpers/useControlledValue.js";
2
+ function C(i, d) {
3
+ const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
4
+ return {
5
+ selected: e,
6
+ select: (t, c, h) => {
7
+ let n = [...e ?? []];
8
+ if (u(t)) {
9
+ if (e?.length === S || f && e?.length === 1)
10
+ return;
11
+ n = e?.filter((y) => !o(y, t));
12
+ } else
13
+ e?.length === a ? n = [t] : n = [...n, t];
14
+ return l || m(n), l?.(n, t, c, h), n;
15
+ },
16
+ isSelected: u
17
+ };
18
+ }
19
+ export {
20
+ C as useMulti
21
+ };
@@ -0,0 +1,18 @@
1
+ import { useControlledValue as x } from "../helpers/useControlledValue.js";
2
+ import { rangeIncludesDate as R } from "../utils/rangeIncludesDate.js";
3
+ import { addToRange as y } from "../utils/addToRange.js";
4
+ import { rangeContainsModifiers as C } from "../utils/rangeContainsModifiers.js";
5
+ function b(s, l) {
6
+ const { disabled: c, excludeDisabled: i, selected: d, required: f, onSelect: o } = s, [r, m] = x(d, o ? d : void 0), t = o ? d : r;
7
+ return {
8
+ selected: t,
9
+ select: (n, u, a) => {
10
+ const { min: S, max: p } = s, e = n ? y(n, t, S, p, f, l) : void 0;
11
+ return i && c && e?.from && e.to && C({ from: e.from, to: e.to }, c, l) && (e.from = n, e.to = void 0), o || m(e), o?.(e, n, u, a), e;
12
+ },
13
+ isSelected: (n) => t && R(t, n, !1, l)
14
+ };
15
+ }
16
+ export {
17
+ b as useRange
18
+ };
@@ -0,0 +1,15 @@
1
+ import { useControlledValue as a } from "../helpers/useControlledValue.js";
2
+ function q(u, S) {
3
+ const { selected: c, required: s, onSelect: t } = u, [f, r] = a(c, t ? c : void 0), e = t ? c : f, { isSameDay: d } = S;
4
+ return {
5
+ selected: e,
6
+ select: (n, o, i) => {
7
+ let l = n;
8
+ return !s && e && e && d(n, e) && (l = void 0), t || r(l), t?.(l, n, o, i), l;
9
+ },
10
+ isSelected: (n) => e ? d(e, n) : !1
11
+ };
12
+ }
13
+ export {
14
+ q as useSingle
15
+ };
@@ -0,0 +1,56 @@
1
+ import { useRef as k, useLayoutEffect as z } from "react";
2
+ import { Animation as o } from "./UI.js";
3
+ const l = (e) => e instanceof HTMLElement ? e : null, q = (e) => [
4
+ ...e.querySelectorAll("[data-animated-month]") ?? []
5
+ ], I = (e) => l(e.querySelector("[data-animated-month]")), w = (e) => l(e.querySelector("[data-animated-caption]")), h = (e) => l(e.querySelector("[data-animated-weeks]")), B = (e) => l(e.querySelector("[data-animated-nav]")), P = (e) => l(e.querySelector("[data-animated-weekdays]"));
6
+ function D(e, M, { classNames: s, months: a, focused: b, dateLib: S }) {
7
+ const y = k(null), A = k(a), p = k(!1);
8
+ z(() => {
9
+ const f = A.current;
10
+ if (A.current = a, !M || !e.current || // safety check because the ref can be set to anything by consumers
11
+ !(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
12
+ a.length === 0 || f.length === 0 || a.length !== f.length)
13
+ return;
14
+ const g = S.isSameMonth(a[0].date, f[0].date), u = S.isAfter(a[0].date, f[0].date), v = u ? s[o.caption_after_enter] : s[o.caption_before_enter], m = u ? s[o.weeks_after_enter] : s[o.weeks_before_enter], H = y.current, L = e.current.cloneNode(!0);
15
+ if (L instanceof HTMLElement ? (q(L).forEach((t) => {
16
+ if (!(t instanceof HTMLElement))
17
+ return;
18
+ const c = I(t);
19
+ c && t.contains(c) && t.removeChild(c);
20
+ const n = w(t);
21
+ n && n.classList.remove(v);
22
+ const r = h(t);
23
+ r && r.classList.remove(m);
24
+ }), y.current = L) : y.current = null, p.current || g || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
25
+ b)
26
+ return;
27
+ const _ = H instanceof HTMLElement ? q(H) : [], x = q(e.current);
28
+ if (x?.every((i) => i instanceof HTMLElement) && _ && _.every((i) => i instanceof HTMLElement)) {
29
+ p.current = !0, e.current.style.isolation = "isolate";
30
+ const i = B(e.current);
31
+ i && (i.style.zIndex = "1"), x.forEach((t, c) => {
32
+ const n = _[c];
33
+ if (!n)
34
+ return;
35
+ t.style.position = "relative", t.style.overflow = "hidden";
36
+ const r = w(t);
37
+ r && r.classList.add(v);
38
+ const d = h(t);
39
+ d && d.classList.add(m);
40
+ const W = () => {
41
+ p.current = !1, e.current && (e.current.style.isolation = ""), i && (i.style.zIndex = ""), r && r.classList.remove(v), d && d.classList.remove(m), t.style.position = "", t.style.overflow = "", t.contains(n) && t.removeChild(n);
42
+ };
43
+ n.style.pointerEvents = "none", n.style.position = "absolute", n.style.overflow = "hidden", n.setAttribute("aria-hidden", "true");
44
+ const C = P(n);
45
+ C && (C.style.opacity = "0");
46
+ const E = w(n);
47
+ E && (E.classList.add(u ? s[o.caption_before_exit] : s[o.caption_after_exit]), E.addEventListener("animationend", W));
48
+ const T = h(n);
49
+ T && T.classList.add(u ? s[o.weeks_before_exit] : s[o.weeks_after_exit]), t.insertBefore(n, t.firstChild);
50
+ });
51
+ }
52
+ });
53
+ }
54
+ export {
55
+ D as useAnimation
56
+ };
@@ -0,0 +1,44 @@
1
+ import { useEffect as E } from "react";
2
+ import { getDates as I } from "./helpers/getDates.js";
3
+ import { getDays as N } from "./helpers/getDays.js";
4
+ import { getDisplayMonths as k } from "./helpers/getDisplayMonths.js";
5
+ import { getInitialMonth as g } from "./helpers/getInitialMonth.js";
6
+ import { getMonths as O } from "./helpers/getMonths.js";
7
+ import { getNavMonths as q } from "./helpers/getNavMonth.js";
8
+ import { getNextMonth as F } from "./helpers/getNextMonth.js";
9
+ import { getPreviousMonth as P } from "./helpers/getPreviousMonth.js";
10
+ import { getWeeks as S } from "./helpers/getWeeks.js";
11
+ import { useControlledValue as V } from "./helpers/useControlledValue.js";
12
+ function X(t, n) {
13
+ const [i, o] = q(t, n), { startOfMonth: r, endOfMonth: u } = n, f = g(t, i, o, n), [m, h] = V(
14
+ f,
15
+ // initialMonth is always computed from props.month if provided
16
+ t.month ? f : void 0
17
+ );
18
+ E(() => {
19
+ const e = g(t, i, o, n);
20
+ h(e);
21
+ }, [t.timeZone]);
22
+ const c = k(m, o, t, n), d = I(c, t.endMonth ? u(t.endMonth) : void 0, t, n), a = O(c, d, t, n), M = S(a), y = N(a), v = P(m, i, t, n), D = F(m, o, t, n), { disableNavigation: C, onMonthChange: T } = t, w = (e) => M.some((s) => s.days.some((x) => x.isEqualTo(e))), l = (e) => {
23
+ if (C)
24
+ return;
25
+ let s = r(e);
26
+ i && s < r(i) && (s = r(i)), o && s > r(o) && (s = r(o)), h(s), T?.(s);
27
+ };
28
+ return {
29
+ months: a,
30
+ weeks: M,
31
+ days: y,
32
+ navStart: i,
33
+ navEnd: o,
34
+ previousMonth: v,
35
+ nextMonth: D,
36
+ goToMonth: l,
37
+ goToDay: (e) => {
38
+ w(e) || l(e.date);
39
+ }
40
+ };
41
+ }
42
+ export {
43
+ X as useCalendar
44
+ };
@@ -0,0 +1,12 @@
1
+ import { createContext as t, useContext as n } from "react";
2
+ const o = t(void 0);
3
+ function c() {
4
+ const e = n(o);
5
+ if (e === void 0)
6
+ throw new Error("useDayPicker() must be used within a custom component.");
7
+ return e;
8
+ }
9
+ export {
10
+ o as dayPickerContext,
11
+ c as useDayPicker
12
+ };