prometeo-design-system 2.8.8 → 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 (308) 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/index.d.ts +12 -16
  49. package/dist/jsx-runtime-DKDX3adD.js +281 -0
  50. package/dist/prometeo-design-system.css +1 -1
  51. package/dist/prometeo-design-system.es.js +1002 -0
  52. package/dist/{hooks/useDragScroll.js → useDragScroll-CHN9OMwn.js} +1 -1
  53. package/package.json +120 -116
  54. package/dist/Avatar.js +0 -4
  55. package/dist/Button.js +0 -4
  56. package/dist/CardProfile.js +0 -5
  57. package/dist/CheckBox.js +0 -4
  58. package/dist/DatePicker.js +0 -5
  59. package/dist/DialogModal.js +0 -6
  60. package/dist/DrawerDesktop.js +0 -6
  61. package/dist/DrawerMobile.js +0 -6
  62. package/dist/DropZone.js +0 -5
  63. package/dist/FAButton.js +0 -4
  64. package/dist/Header.js +0 -4
  65. package/dist/Icons/Icons.js +0 -1055
  66. package/dist/Icons.js +0 -5
  67. package/dist/Image.js +0 -4
  68. package/dist/ImageGallery.js +0 -6
  69. package/dist/Input.js +0 -4
  70. package/dist/InputMultiple.js +0 -5
  71. package/dist/LayoutGeneric.js +0 -4
  72. package/dist/Logo.js +0 -4
  73. package/dist/Menu.js +0 -5
  74. package/dist/OtpInput.js +0 -4
  75. package/dist/Pagination.js +0 -4
  76. package/dist/ProfilePictureUpload.js +0 -5
  77. package/dist/ProgressBar.js +0 -4
  78. package/dist/RadioButton.js +0 -5
  79. package/dist/SegmentedButton.js +0 -5
  80. package/dist/Select.js +0 -4
  81. package/dist/SelectSearch.js +0 -4
  82. package/dist/Skeleton.js +0 -5
  83. package/dist/Spinner.js +0 -4
  84. package/dist/Steps.js +0 -5
  85. package/dist/SwipeContainer.js +0 -4
  86. package/dist/Switch.js +0 -5
  87. package/dist/TabLinks.js +0 -4
  88. package/dist/Table.js +0 -11
  89. package/dist/TextArea.js +0 -4
  90. package/dist/Toast.js +0 -5
  91. package/dist/ToastProvider.js +0 -4
  92. package/dist/Tooltip.js +0 -4
  93. package/dist/components/Autocomplete/useAutocomplete.js +0 -143
  94. package/dist/components/DatePicker/DatePicker.js +0 -396
  95. package/dist/components/Dialog/Dialog.js +0 -60
  96. package/dist/components/Dialog/useDialogControl.js +0 -18
  97. package/dist/components/Drawer/DrawerDesktop.js +0 -179
  98. package/dist/components/Drawer/DrawerMobile.js +0 -219
  99. package/dist/components/Drawer/useDrawerDesktop.js +0 -18
  100. package/dist/components/Drawer/useDrawerMobile.js +0 -27
  101. package/dist/components/DropZone/DropZone.js +0 -86
  102. package/dist/components/DropZone/useFileDropzone.js +0 -24
  103. package/dist/components/Header/Header.js +0 -32
  104. package/dist/components/Image/GalleryPreview.js +0 -40
  105. package/dist/components/Image/ImageGallery.js +0 -68
  106. package/dist/components/Image/LightBox.js +0 -223
  107. package/dist/components/Input/Input.js +0 -219
  108. package/dist/components/InputMultiple/InputMultiple.js +0 -262
  109. package/dist/components/Layout/LayoutGeneric.js +0 -13
  110. package/dist/components/Logo/Logo.js +0 -9
  111. package/dist/components/OtpInput/OtpInput.js +0 -112
  112. package/dist/components/ProgressBar/ProgressBar.js +0 -70
  113. package/dist/components/Select/Select.js +0 -1005
  114. package/dist/components/SelectSearch/SelectSearch.js +0 -101
  115. package/dist/components/Shared/Chip.js +0 -55
  116. package/dist/components/Shared/HelperComponent.js +0 -24
  117. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +0 -62
  118. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +0 -59
  119. package/dist/components/Sidebar/SidebarComposable.js +0 -84
  120. package/dist/components/Sidebar/components/NavigationLink.js +0 -34
  121. package/dist/components/Sidebar/components/badge.js +0 -33
  122. package/dist/components/Sidebar/components/changue-account.js +0 -31
  123. package/dist/components/Sidebar/components/collapse-button.js +0 -18
  124. package/dist/components/Sidebar/components/company-logo.js +0 -12
  125. package/dist/components/Sidebar/components/nav-actions.js +0 -98
  126. package/dist/components/Sidebar/components/nav-links.js +0 -100
  127. package/dist/components/Sidebar/context/SidebarContext.js +0 -19
  128. package/dist/components/Sidebar/hooks/SidebarProvider.js +0 -33
  129. package/dist/components/Sidebar/hooks/useNavBarActions.js +0 -9
  130. package/dist/components/Sidebar/hooks/useNavBarCollapse.js +0 -11
  131. package/dist/components/Sidebar/hooks/useSidebarHook.js +0 -13
  132. package/dist/components/Sidebar/ui/useNavbarAnimation.js +0 -326
  133. package/dist/components/Spinner/Spinner.js +0 -52
  134. package/dist/components/TabSwitch/TabSwitch.js +0 -57
  135. package/dist/components/Toaster/ToastProvider.js +0 -6
  136. package/dist/components/Tooltip/Tootip.js +0 -62
  137. package/dist/hooks/useClickOutside.js +0 -24
  138. package/dist/hooks/useLabelBackground.js +0 -25
  139. package/dist/index.js +0 -127
  140. package/dist/lib/utils.js +0 -54
  141. package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
  142. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
  143. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
  144. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
  145. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  146. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  147. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -583
  148. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -59
  149. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -52
  150. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -18
  151. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  152. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  153. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -20
  154. package/dist/node_modules/date-fns/addDays.js +0 -10
  155. package/dist/node_modules/date-fns/addMonths.js +0 -20
  156. package/dist/node_modules/date-fns/addWeeks.js +0 -8
  157. package/dist/node_modules/date-fns/addYears.js +0 -8
  158. package/dist/node_modules/date-fns/constants.js +0 -6
  159. package/dist/node_modules/date-fns/constructFrom.js +0 -8
  160. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -16
  161. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -13
  162. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -17
  163. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -17
  164. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -8
  165. package/dist/node_modules/date-fns/endOfMonth.js +0 -9
  166. package/dist/node_modules/date-fns/endOfWeek.js +0 -10
  167. package/dist/node_modules/date-fns/endOfYear.js +0 -9
  168. package/dist/node_modules/date-fns/format.js +0 -58
  169. package/dist/node_modules/date-fns/getDayOfYear.js +0 -11
  170. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -10
  171. package/dist/node_modules/date-fns/getISOWeek.js +0 -12
  172. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -15
  173. package/dist/node_modules/date-fns/getMonth.js +0 -8
  174. package/dist/node_modules/date-fns/getWeek.js +0 -12
  175. package/dist/node_modules/date-fns/getWeekYear.js +0 -16
  176. package/dist/node_modules/date-fns/getYear.js +0 -8
  177. package/dist/node_modules/date-fns/isAfter.js +0 -8
  178. package/dist/node_modules/date-fns/isBefore.js +0 -8
  179. package/dist/node_modules/date-fns/isDate.js +0 -7
  180. package/dist/node_modules/date-fns/isSameDay.js +0 -14
  181. package/dist/node_modules/date-fns/isSameMonth.js +0 -13
  182. package/dist/node_modules/date-fns/isSameYear.js +0 -13
  183. package/dist/node_modules/date-fns/isValid.js +0 -9
  184. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
  185. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
  186. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
  187. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
  188. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
  189. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
  190. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
  191. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
  192. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
  193. package/dist/node_modules/date-fns/locale/en-US.js +0 -21
  194. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +0 -70
  195. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +0 -33
  196. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +0 -18
  197. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +0 -143
  198. package/dist/node_modules/date-fns/locale/es/_lib/match.js +0 -116
  199. package/dist/node_modules/date-fns/locale/es.js +0 -21
  200. package/dist/node_modules/date-fns/max.js +0 -14
  201. package/dist/node_modules/date-fns/min.js +0 -14
  202. package/dist/node_modules/date-fns/setMonth.js +0 -13
  203. package/dist/node_modules/date-fns/setYear.js +0 -10
  204. package/dist/node_modules/date-fns/startOfDay.js +0 -9
  205. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -8
  206. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -11
  207. package/dist/node_modules/date-fns/startOfMonth.js +0 -9
  208. package/dist/node_modules/date-fns/startOfWeek.js +0 -10
  209. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -12
  210. package/dist/node_modules/date-fns/startOfYear.js +0 -9
  211. package/dist/node_modules/date-fns/toDate.js +0 -8
  212. package/dist/node_modules/input-otp/dist/index.js +0 -194
  213. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -227
  214. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
  215. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
  216. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
  217. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
  218. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -147
  219. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
  220. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
  221. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
  222. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
  223. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -10
  224. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
  225. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
  226. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
  227. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
  228. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
  229. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
  230. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
  231. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
  232. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
  233. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
  234. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
  235. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
  236. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
  237. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
  238. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
  239. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
  240. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
  241. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
  242. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
  243. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
  244. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
  245. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
  246. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
  247. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
  248. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
  249. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
  250. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
  251. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
  252. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
  253. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
  254. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
  255. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
  256. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
  257. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
  258. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
  259. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
  260. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
  261. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -21
  262. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
  263. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
  264. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
  265. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
  266. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
  267. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
  268. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
  269. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
  270. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
  271. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
  272. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
  273. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
  274. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
  275. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
  276. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
  277. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
  278. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
  279. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
  280. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
  281. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
  282. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
  283. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
  284. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
  285. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
  286. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -6
  287. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
  288. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
  289. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
  290. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
  291. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
  292. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
  293. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
  294. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
  295. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
  296. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -44
  297. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
  298. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
  299. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
  300. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
  301. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
  302. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
  303. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
  304. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
  305. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
  306. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
  307. package/dist/useDevice.js +0 -4
  308. /package/dist/{hooks/useDevice.js → useDevice.es.js} +0 -0
@@ -1,23 +0,0 @@
1
- import { useState as a } from "react";
2
- import { calculateFocusTarget as T } from "./helpers/calculateFocusTarget.js";
3
- import { getNextFocus as v } from "./helpers/getNextFocus.js";
4
- function I(e, o, r, i, f) {
5
- const { autoFocus: F } = e, [d, m] = a(), c = T(o.days, r, i || (() => !1), d), [s, u] = a(F ? c : void 0);
6
- return {
7
- isFocusTarget: (n) => !!c?.isEqualTo(n),
8
- setFocused: u,
9
- focused: s,
10
- blur: () => {
11
- m(s), u(void 0);
12
- },
13
- moveFocus: (n, l) => {
14
- if (!s)
15
- return;
16
- const t = v(n, l, s, o.navStart, o.navEnd, e, f);
17
- t && (e.disableNavigation && !o.days.some((g) => g.isEqualTo(t)) || (o.goToDay(t), u(t)));
18
- }
19
- };
20
- }
21
- export {
22
- I as useFocus
23
- };
@@ -1,19 +0,0 @@
1
- import { useMulti as i } from "./selection/useMulti.js";
2
- import { useRange as o } from "./selection/useRange.js";
3
- import { useSingle as s } from "./selection/useSingle.js";
4
- function f(e, n) {
5
- const t = s(e, n), r = i(e, n), u = o(e, n);
6
- switch (e.mode) {
7
- case "single":
8
- return t;
9
- case "multiple":
10
- return r;
11
- case "range":
12
- return u;
13
- default:
14
- return;
15
- }
16
- }
17
- export {
18
- f as useSelection
19
- };
@@ -1,32 +0,0 @@
1
- import { defaultDateLib as D } from "../classes/DateLib.js";
2
- function w(f, g, n = 0, s = 0, l = !1, u = D) {
3
- const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
4
- let e;
5
- if (!o && !i)
6
- e = { from: f, to: n > 0 ? void 0 : f };
7
- else if (o && !i)
8
- r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
9
- else if (o && i)
10
- if (r(o, f) && r(i, f))
11
- l ? e = { from: o, to: i } : e = void 0;
12
- else if (r(o, f))
13
- e = { from: o, to: n > 0 ? void 0 : f };
14
- else if (r(i, f))
15
- e = { from: f, to: n > 0 ? void 0 : f };
16
- else if (c(f, o))
17
- e = { from: f, to: i };
18
- else if (m(f, o))
19
- e = { from: o, to: f };
20
- else if (m(f, i))
21
- e = { from: o, to: f };
22
- else
23
- throw new Error("Invalid range");
24
- if (e?.from && e?.to) {
25
- const t = u.differenceInCalendarDays(e.to, e.from);
26
- s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
27
- }
28
- return e;
29
- }
30
- export {
31
- w as addToRange
32
- };
@@ -1,26 +0,0 @@
1
- import { defaultDateLib as A } from "../classes/DateLib.js";
2
- import { rangeIncludesDate as p } from "./rangeIncludesDate.js";
3
- import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./typeguards.js";
4
- function T(f, n, r = A) {
5
- const y = Array.isArray(n) ? n : [n], { isSameDay: u, differenceInCalendarDays: i, isAfter: t } = r;
6
- return y.some((e) => {
7
- if (typeof e == "boolean")
8
- return e;
9
- if (r.isDate(e))
10
- return u(f, e);
11
- if (a(e, r))
12
- return e.includes(f);
13
- if (I(e))
14
- return p(e, f, !1, r);
15
- if (g(e))
16
- return Array.isArray(e.dayOfWeek) ? e.dayOfWeek.includes(f.getDay()) : e.dayOfWeek === f.getDay();
17
- if (k(e)) {
18
- const D = i(e.before, f), l = i(e.after, f), s = D > 0, o = l < 0;
19
- return t(e.before, e.after) ? o && s : s || o;
20
- }
21
- return O(e) ? i(f, e.after) > 0 : W(e) ? i(e.before, f) > 0 : typeof e == "function" ? e(f) : !1;
22
- });
23
- }
24
- export {
25
- T as dateMatchModifiers
26
- };
@@ -1,15 +0,0 @@
1
- import { defaultDateLib as f } from "../classes/DateLib.js";
2
- function y(t, r, e = f) {
3
- const n = Array.isArray(r) ? r : [r];
4
- let a = t.from;
5
- const i = e.differenceInCalendarDays(t.to, t.from), s = Math.min(i, 6);
6
- for (let o = 0; o <= s; o++) {
7
- if (n.includes(a.getDay()))
8
- return !0;
9
- a = e.addDays(a, 1);
10
- }
11
- return !1;
12
- }
13
- export {
14
- y as rangeContainsDayOfWeek
15
- };
@@ -1,28 +0,0 @@
1
- import { defaultDateLib as p } from "../classes/DateLib.js";
2
- import { dateMatchModifiers as s } from "./dateMatchModifiers.js";
3
- import { rangeContainsDayOfWeek as M } from "./rangeContainsDayOfWeek.js";
4
- import { rangeIncludesDate as l } from "./rangeIncludesDate.js";
5
- import { rangeOverlaps as y } from "./rangeOverlaps.js";
6
- import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./typeguards.js";
7
- function d(n, t, f = p) {
8
- const e = Array.isArray(t) ? t : [t];
9
- if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
10
- from: f.addDays(o.after, 1),
11
- to: f.addDays(o.before, -1)
12
- }, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
13
- return !0;
14
- const i = e.filter((o) => typeof o == "function");
15
- if (i.length) {
16
- let o = n.from;
17
- const r = f.differenceInCalendarDays(n.to, n.from);
18
- for (let u = 0; u <= r; u++) {
19
- if (i.some((D) => D(o)))
20
- return !0;
21
- o = f.addDays(o, 1);
22
- }
23
- }
24
- return !1;
25
- }
26
- export {
27
- d as rangeContainsModifiers
28
- };
@@ -1,9 +0,0 @@
1
- import { defaultDateLib as s } from "../classes/DateLib.js";
2
- function u(f, r, t = !1, o = s) {
3
- let { from: n, to: e } = f;
4
- const { differenceInCalendarDays: i, isSameDay: a } = o;
5
- return n && e ? (i(e, n) < 0 && ([n, e] = [e, n]), i(r, n) >= (t ? 1 : 0) && i(e, r) >= (t ? 1 : 0)) : !t && e ? a(e, r) : !t && n ? a(n, r) : !1;
6
- }
7
- export {
8
- u as rangeIncludesDate
9
- };
@@ -1,8 +0,0 @@
1
- import { rangeIncludesDate as m } from "./rangeIncludesDate.js";
2
- import { defaultDateLib as r } from "../classes/DateLib.js";
3
- function u(o, f, l = r) {
4
- return m(o, f.from, !1, l) || m(o, f.to, !1, l) || m(f, o.from, !1, l) || m(f, o.to, !1, l);
5
- }
6
- export {
7
- u as rangeOverlaps
8
- };
@@ -1,26 +0,0 @@
1
- function o(e) {
2
- return !!(e && typeof e == "object" && "before" in e && "after" in e);
3
- }
4
- function t(e) {
5
- return !!(e && typeof e == "object" && "from" in e);
6
- }
7
- function r(e) {
8
- return !!(e && typeof e == "object" && "after" in e);
9
- }
10
- function f(e) {
11
- return !!(e && typeof e == "object" && "before" in e);
12
- }
13
- function i(e) {
14
- return !!(e && typeof e == "object" && "dayOfWeek" in e);
15
- }
16
- function y(e, n) {
17
- return Array.isArray(e) && e.every(n.isDate);
18
- }
19
- export {
20
- r as isDateAfterType,
21
- f as isDateBeforeType,
22
- o as isDateInterval,
23
- t as isDateRange,
24
- y as isDatesArray,
25
- i as isDayOfWeekType
26
- };
package/dist/useDevice.js DELETED
@@ -1,4 +0,0 @@
1
- import { useIsMobile as r } from "./hooks/useDevice.js";
2
- export {
3
- r as useIsMobile
4
- };
File without changes