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
@@ -0,0 +1,1002 @@
1
+ import { default as Se } from "./Avatar.es.js";
2
+ import { default as Ie } from "./Button.es.js";
3
+ import { C as Re, a as Le } from "./CardProfile-CsytJlKZ.js";
4
+ import { default as Ae } from "./CheckBox.es.js";
5
+ import { default as qe, useDialogControl as ze } from "./DialogModal.es.js";
6
+ import { default as Oe } from "./Header.es.js";
7
+ import { I as He } from "./Input-Cck37DpG.js";
8
+ import { default as $e } from "./InputMultiple.es.js";
9
+ import { default as Me } from "./Logo.es.js";
10
+ import { default as Ge } from "./Menu.es.js";
11
+ import { default as _e } from "./Pagination.es.js";
12
+ import { default as Ze } from "./ProfilePictureUpload.es.js";
13
+ import { default as Ke } from "./ProgressBar.es.js";
14
+ import { S as Ye } from "./Select-BD5FTxVw.js";
15
+ import { default as tt } from "./Spinner.es.js";
16
+ import { default as rt } from "./Steps.es.js";
17
+ import { default as nt } from "./SwipeContainer.es.js";
18
+ import { default as it } from "./Switch.es.js";
19
+ import { default as ct } from "./DatePicker.es.js";
20
+ import { Table as dt, TableBody as ft, TableCaption as mt, TableCell as pt, TableFooter as xt, TableHead as bt, TableHeader as yt, TableRow as gt } from "./Table.es.js";
21
+ import { default as ht } from "./TabLinks.es.js";
22
+ import { default as jt } from "./TextArea.es.js";
23
+ import { default as Ct } from "./Tooltip.es.js";
24
+ import { default as kt } from "./Skeleton.es.js";
25
+ import { default as Bt } from "./SegmentedButton.es.js";
26
+ import { u as k } from "./LayoutGeneric-CbaoatQB.js";
27
+ import { L as Lt, S as Tt } from "./LayoutGeneric-CbaoatQB.js";
28
+ import { I as Pt } from "./ImageGallery-Ckxg9OIC.js";
29
+ import { default as zt } from "./Image.es.js";
30
+ import { default as Ot, toastpyrion as Dt } from "./Toast.es.js";
31
+ import { default as Wt } from "./ToastProvider.es.js";
32
+ import { default as Ft } from "./SelectSearch.es.js";
33
+ import { default as Ut } from "./FAButton.es.js";
34
+ import { default as Vt } from "./RadioButton.es.js";
35
+ import { j as a } from "./jsx-runtime-DKDX3adD.js";
36
+ import { c as u } from "./cn-B6yFEsav.js";
37
+ import A, { useRef as g, useState as v, useLayoutEffect as P, createContext as q, useContext as z, forwardRef as C, useEffect as h, useCallback as E } from "react";
38
+ import { useGSAP as I } from "@gsap/react";
39
+ import x from "gsap";
40
+ import { d as w } from "./Icons-DtFC5DJ7.js";
41
+ import { e as Xt } from "./Icons-DtFC5DJ7.js";
42
+ import { motion as b, AnimatePresence as B } from "framer-motion";
43
+ import { default as Jt } from "./OtpInput.es.js";
44
+ import { useDropzone as O } from "react-dropzone";
45
+ import { useIsMobile as Qt } from "./useDevice.es.js";
46
+ import { default as ea } from "./DropZone.es.js";
47
+ const D = (t, e) => {
48
+ I(
49
+ () => {
50
+ if (!t.current) return;
51
+ const r = t.current, n = document.querySelector('[data-main-content="true"]');
52
+ if (e) {
53
+ x.fromTo(
54
+ r,
55
+ {
56
+ width: "0rem",
57
+ opacity: 0
58
+ },
59
+ {
60
+ width: "40rem",
61
+ opacity: 1,
62
+ duration: 0.4,
63
+ ease: "power2.out"
64
+ }
65
+ ), n && x.to(n, {
66
+ marginLeft: r.offsetWidth + "px",
67
+ duration: 0.4,
68
+ ease: "power2.out"
69
+ });
70
+ const o = r.querySelectorAll(".secondary-bar-content > *");
71
+ o.length > 0 && x.fromTo(
72
+ o,
73
+ {
74
+ y: 20,
75
+ opacity: 0
76
+ },
77
+ {
78
+ y: 0,
79
+ opacity: 1,
80
+ duration: 0.3,
81
+ stagger: 0.05,
82
+ delay: 0.1,
83
+ ease: "power1.out"
84
+ }
85
+ );
86
+ } else
87
+ x.to(r, {
88
+ width: "0rem",
89
+ opacity: 0,
90
+ duration: 0.3,
91
+ ease: "power2.in"
92
+ }), n && x.to(n, {
93
+ marginLeft: "0px",
94
+ duration: 0.3,
95
+ ease: "power2.in"
96
+ });
97
+ },
98
+ { scope: t, dependencies: [e] }
99
+ );
100
+ }, S = ({
101
+ children: t,
102
+ isOpen: e = !1,
103
+ className: r = "",
104
+ width: n = "w-96",
105
+ action: o,
106
+ primarySidebarCollapsed: i,
107
+ onClose: l
108
+ }) => {
109
+ const c = g(null), [d, s] = v({ left: 0, width: 0 }), { primarySidebarRef: f, tabBarRef: m } = k();
110
+ return P(() => {
111
+ if (f?.current && m?.current) {
112
+ const p = f.current.getBoundingClientRect();
113
+ s({
114
+ left: p.width + m.current.offsetWidth,
115
+ width: p.width
116
+ });
117
+ }
118
+ }, [f, e, i, m]), D(c, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
119
+ /* @__PURE__ */ a.jsx(
120
+ "div",
121
+ {
122
+ className: "fixed inset-0 bg-black/95 z-40",
123
+ style: {
124
+ left: d.left
125
+ },
126
+ onClick: l
127
+ }
128
+ ),
129
+ /* @__PURE__ */ a.jsx(
130
+ "div",
131
+ {
132
+ ref: c,
133
+ className: u(
134
+ "h-screen bg-neutral-default-default border-r border-neutral-strong-default flex flex-col secondary-bar shrink-0",
135
+ "absolute top-0 z-50",
136
+ n,
137
+ r
138
+ ),
139
+ style: {
140
+ left: d.left
141
+ },
142
+ "data-action": o,
143
+ children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
144
+ }
145
+ )
146
+ ] }) });
147
+ }, H = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("h-16 ", e), children: t }), W = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1 overflow-y-auto p-4", e), children: t }), $ = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: u("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("flex-1", t) }), de = Object.assign(S, {
148
+ Root: S,
149
+ Header: H,
150
+ Content: W,
151
+ Footer: $,
152
+ Spacer: F
153
+ }), R = q(
154
+ void 0
155
+ ), fe = () => {
156
+ const t = z(R);
157
+ if (!t)
158
+ throw new Error("useSidebar must be used within a Sidebar.Root");
159
+ return t;
160
+ }, M = ({
161
+ children: t
162
+ }) => {
163
+ const [e, r] = v(!1), [n, o] = v(!1), i = g(null), l = () => {
164
+ r(!1), o(!1);
165
+ }, c = () => {
166
+ r(!0), o(!1);
167
+ }, p = {
168
+ isCollapsed: e,
169
+ setIsCollapsed: r,
170
+ navbarRef: i,
171
+ toggleCollapse: () => {
172
+ e ? l() : c();
173
+ },
174
+ activeSecondaryBar: n ? "notifications" : null,
175
+ openSecondaryBar: () => {
176
+ o(!0);
177
+ },
178
+ closeSecondaryBar: () => {
179
+ o(!1);
180
+ },
181
+ toggleSecondaryBar: () => {
182
+ o((y) => !y);
183
+ }
184
+ };
185
+ return /* @__PURE__ */ a.jsx(R.Provider, { value: p, children: t });
186
+ }, j = (t, e, r, n) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, r, n) : t, U = (t, e, r) => {
187
+ I(
188
+ () => {
189
+ if (!t.current) return;
190
+ const n = x.timeline({
191
+ defaults: { duration: 0.7, ease: "power1.out" }
192
+ }), o = {
193
+ navbar: t.current,
194
+ navLabels: x.utils.toArray(".nav-label"),
195
+ navIconWrappers: x.utils.toArray(".nav-icon-wrapper"),
196
+ navIcons: x.utils.toArray(".nav-icon"),
197
+ navLinkItems: x.utils.toArray(".nav-link-item"),
198
+ logoutButton: document.querySelector(".logout-button"),
199
+ logoutLabel: document.querySelector(".logout-label"),
200
+ logoutIcon: document.querySelector(".logout-icon"),
201
+ profileContainer: document.querySelector(".profile-container"),
202
+ profileName: document.querySelector(".profile-name"),
203
+ profileOptions: document.querySelector(".profile-options"),
204
+ profileImageWrapper: document.querySelector(".profile-image-wrapper"),
205
+ coverImageProfile: document.querySelector(".cover-image-profile"),
206
+ navContentWrapper: document.querySelector(
207
+ ".nav-content-wrapper-active"
208
+ ),
209
+ buttonCrevron: document.querySelector(".button-select-crevron"),
210
+ separatorProfile: document.querySelector(".border-separator-profile"),
211
+ buttonProfile: document.querySelector(".button-profile"),
212
+ profileUserInfo: document.querySelector(".profile-user-info"),
213
+ buttonContentChevron: document.querySelector(".button-content-chevron"),
214
+ logo: {
215
+ contenedor: document.querySelector(".container-logo"),
216
+ icon: document.querySelector(".icon-logo"),
217
+ text: document.querySelector(".text-logo")
218
+ },
219
+ sidebarHeader: document.querySelector(".sidebar-header"),
220
+ containerIconcollapsade: document.querySelector(
221
+ ".container-icon-collapsade"
222
+ ),
223
+ // Secondary bar elements
224
+ secondaryBar: document.querySelector(".secondary-bar"),
225
+ secondaryBarContent: x.utils.toArray(".secondary-bar *"),
226
+ badgeInLink: x.utils.toArray(".badge-in-link")
227
+ };
228
+ e ? G(n, o) : V(n, o), o.secondaryBar && _(o.secondaryBar);
229
+ },
230
+ { scope: t, dependencies: [e, r] }
231
+ );
232
+ }, G = (t, e) => {
233
+ t.to(e.navbar, {
234
+ width: "5rem",
235
+ duration: 0.2,
236
+ ease: "bounce.out"
237
+ }).to(
238
+ e.logo.contenedor,
239
+ {
240
+ height: 48,
241
+ width: 48,
242
+ minWidth: 48,
243
+ ease: "bounce.out"
244
+ },
245
+ -1
246
+ ).to(
247
+ e.logo.text,
248
+ {
249
+ opacity: 0,
250
+ scale: 0.8,
251
+ duration: 0.5,
252
+ ease: "back.in(1.2)"
253
+ },
254
+ -1
255
+ ).set(e.logo.text, {
256
+ display: "none"
257
+ }).to(
258
+ e.sidebarHeader,
259
+ {
260
+ justifyContent: "center",
261
+ display: "flex"
262
+ },
263
+ -1
264
+ ).to(e.logo.icon, {
265
+ keyframes: {
266
+ "0%": { scale: 1 },
267
+ "33%": { scale: 1.5 },
268
+ "66%": { scale: 0.5 },
269
+ "100%": { scale: 1 }
270
+ },
271
+ duration: 0.6,
272
+ ease: "power1.inOut"
273
+ }).to(
274
+ e.navLinkItems,
275
+ {
276
+ justifyContent: "center",
277
+ alignItems: "center",
278
+ width: "3rem",
279
+ height: "3rem",
280
+ display: "flex"
281
+ },
282
+ -1
283
+ ).to(
284
+ e.navLabels,
285
+ {
286
+ opacity: 0,
287
+ width: 30,
288
+ marginLeft: 0
289
+ },
290
+ 0
291
+ ).to(e.navIcons, { scale: 0.95, ease: "elastic.out(1, 0.3)" }, 0), j(
292
+ t,
293
+ e.buttonCrevron,
294
+ {
295
+ width: 0,
296
+ opacity: 0,
297
+ duration: 0.7,
298
+ ease: "power1.out",
299
+ onComplete: () => {
300
+ e.buttonCrevron.style.display = "none";
301
+ }
302
+ },
303
+ 0
304
+ ), j(
305
+ t,
306
+ e.buttonContentChevron,
307
+ {
308
+ display: "none"
309
+ },
310
+ -1
311
+ ).to(
312
+ e.separatorProfile,
313
+ {
314
+ display: "none"
315
+ },
316
+ -1
317
+ ).to(
318
+ e.profileUserInfo,
319
+ {
320
+ display: "none"
321
+ },
322
+ -1
323
+ ).to(
324
+ e.navLinkItems,
325
+ {
326
+ borderRadius: "8px",
327
+ duration: 0.7,
328
+ ease: "power1.out"
329
+ },
330
+ 0.8
331
+ ).to(
332
+ e.profileImageWrapper,
333
+ {
334
+ width: 52,
335
+ height: 52,
336
+ marginLeft: 0,
337
+ marginRight: 0
338
+ },
339
+ -1
340
+ ).to(
341
+ e.buttonProfile,
342
+ {
343
+ height: 44,
344
+ width: 58,
345
+ margin: 0,
346
+ padding: 0,
347
+ borderRadius: "60px",
348
+ duration: 0.3,
349
+ ease: "power2.out",
350
+ display: "flex",
351
+ justifyContent: "center",
352
+ alignItems: "center"
353
+ },
354
+ -1
355
+ ).to(
356
+ e.containerIconcollapsade,
357
+ {
358
+ justifyContent: "center",
359
+ marginRight: 0
360
+ },
361
+ "=-1"
362
+ ).to(
363
+ e.badgeInLink,
364
+ {
365
+ position: "absolute",
366
+ right: 1,
367
+ top: -7
368
+ },
369
+ -1
370
+ );
371
+ }, V = (t, e) => {
372
+ t.to(e.navbar, { width: "20rem" }, -1).to(
373
+ e.navLinkItems,
374
+ {
375
+ borderRadius: "10px",
376
+ duration: 0.3,
377
+ width: "100%",
378
+ justifyContent: "flex-start"
379
+ },
380
+ -1
381
+ ), j(
382
+ t,
383
+ e.buttonCrevron,
384
+ {
385
+ width: "auto",
386
+ opacity: 1,
387
+ duration: 0,
388
+ ease: "power1.out",
389
+ onComplete: () => {
390
+ e.buttonCrevron.style.display = "flex";
391
+ }
392
+ },
393
+ 0
394
+ ), j(
395
+ t,
396
+ e.buttonContentChevron,
397
+ {
398
+ display: "flex"
399
+ },
400
+ 0
401
+ ).to(
402
+ e.logo.contenedor,
403
+ {
404
+ width: 185,
405
+ height: 48,
406
+ minWidth: 185
407
+ },
408
+ -1
409
+ ).set(
410
+ e.logo.text,
411
+ {
412
+ display: "flex"
413
+ },
414
+ -1
415
+ ).to(e.logo.text, {
416
+ opacity: 1,
417
+ duration: 0,
418
+ ease: "back.in(1)"
419
+ }).to(e.logo.icon, {
420
+ keyframes: {
421
+ "0%": { scale: 1 },
422
+ "33%": { scale: 1.5 },
423
+ "66%": { scale: 0.5 },
424
+ "100%": { scale: 1 }
425
+ },
426
+ duration: 0.3,
427
+ ease: "power1.inOut"
428
+ }).to(
429
+ e.sidebarHeader,
430
+ {
431
+ justifyContent: "start",
432
+ display: "flex"
433
+ },
434
+ -1
435
+ ).to(
436
+ e.profileImageWrapper,
437
+ {
438
+ marginRight: 0,
439
+ duration: 0.2,
440
+ ease: "bounce.out"
441
+ },
442
+ -1
443
+ ).to(
444
+ e.containerIconcollapsade,
445
+ {
446
+ justifyContent: "end",
447
+ marginRight: 20
448
+ },
449
+ -1
450
+ ).to(
451
+ e.separatorProfile,
452
+ {
453
+ display: "flex"
454
+ },
455
+ 0
456
+ ).to(
457
+ e.badgeInLink,
458
+ {
459
+ position: "static",
460
+ right: "auto",
461
+ top: "auto",
462
+ display: "flex",
463
+ justifyContent: "end",
464
+ alignItems: "center"
465
+ },
466
+ -1
467
+ ).to(
468
+ e.buttonProfile,
469
+ {
470
+ borderTopLeftRadius: "0.375rem",
471
+ borderBottomLeftRadius: "0.375rem",
472
+ borderTopRightRadius: "0",
473
+ borderBottomRightRadius: "0",
474
+ duration: 0
475
+ },
476
+ -1
477
+ ).to(
478
+ e.separatorProfile,
479
+ {
480
+ display: "flex"
481
+ },
482
+ 0
483
+ ).to(
484
+ e.navLabels,
485
+ {
486
+ opacity: 1,
487
+ width: "auto",
488
+ scaleX: 1
489
+ },
490
+ 0
491
+ ).to(
492
+ e.profileUserInfo,
493
+ {
494
+ display: "flex",
495
+ ease: "fade.in"
496
+ },
497
+ 0
498
+ ).to(e.navIcons, { scale: 1 }, 0.3);
499
+ }, _ = (t, e) => {
500
+ x.to(t, {
501
+ x: "-100%",
502
+ opacity: 0,
503
+ duration: 0.3,
504
+ ease: "power2.in"
505
+ });
506
+ }, X = C((t, e) => {
507
+ const [r, n] = v(t?.currentTabName || t.tabs[0].name), o = g(null), { tabs: i = [], className: l, activeColor: c = "var(--neutral-900)" } = t;
508
+ h(() => {
509
+ o.current?.style.setProperty("--tab-bg", c);
510
+ }, [c]);
511
+ const d = i.find((s) => s.name === (t?.currentTabName || r));
512
+ return /* @__PURE__ */ a.jsx(
513
+ "div",
514
+ {
515
+ ref: e,
516
+ className: u(
517
+ "flex flex-col gap-2",
518
+ "bg-neutral-strong-default",
519
+ "h-full w-14 max-w-14 pl-[6px] py-6",
520
+ " border-r border-neutral-default-default",
521
+ l
522
+ ),
523
+ children: i.map(
524
+ (s) => {
525
+ const f = s.name === d?.name, m = typeof s.thumbnail == "string" ? /* @__PURE__ */ a.jsx("img", { src: s.thumbnail, alt: s.description, className: "aspect-square object-contain" }) : s.thumbnail, p = () => {
526
+ s.disabled || (n(s.name), s.onClick && s.onClick(s.name));
527
+ };
528
+ return /* @__PURE__ */ a.jsx(
529
+ "div",
530
+ {
531
+ className: u(
532
+ "bg-[(--tab-bg)]",
533
+ "h-12 w-[50px] z-20",
534
+ "flex items-center pl-[6px] ",
535
+ "rounded-l-[8px]",
536
+ "tabswitch-element relative",
537
+ f && "active"
538
+ ),
539
+ onClick: p,
540
+ ref: o,
541
+ children: /* @__PURE__ */ a.jsx("div", { className: u(
542
+ "size-8 rounded-[4px]",
543
+ "grid place-items-center",
544
+ "tab-thumbnail-icon",
545
+ "bg-transparent text-neutral-default-default",
546
+ s?.className
547
+ ), children: m })
548
+ },
549
+ s.name
550
+ );
551
+ }
552
+ )
553
+ }
554
+ );
555
+ }), Z = C(
556
+ ({ children: t, isCollapsed: e = !1, className: r = "", tabs: n = [], currentTabName: o }, i) => {
557
+ const l = g(null), c = g(null), { registerPrimarySidebar: d, registerTabBar: s } = k(), f = E((m) => {
558
+ l.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
559
+ }, [i]);
560
+ return h(() => {
561
+ l.current && d(l);
562
+ }, [d]), h(() => {
563
+ c.current && s(c);
564
+ }, [s]), U(l, e, !1), /* @__PURE__ */ a.jsxs(
565
+ "div",
566
+ {
567
+ className: u(
568
+ "flex"
569
+ ),
570
+ children: [
571
+ n.length > 0 && /* @__PURE__ */ a.jsx(
572
+ X,
573
+ {
574
+ tabs: n,
575
+ ref: c,
576
+ activeColor: "var(--neutral-900)",
577
+ currentTabName: o
578
+ }
579
+ ),
580
+ /* @__PURE__ */ a.jsx(
581
+ "div",
582
+ {
583
+ ref: f,
584
+ className: `bg-neutral-default-default hidden overflow-hidden h-screen md:flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 shrink-0
585
+ ${e ? "w-16" : "w-64"} ${r}`,
586
+ children: t
587
+ }
588
+ )
589
+ ]
590
+ }
591
+ );
592
+ }
593
+ ), N = C(
594
+ (t, e) => /* @__PURE__ */ a.jsx(M, { children: /* @__PURE__ */ a.jsx(Z, { ...t, ref: e }) })
595
+ );
596
+ N.displayName = "SidebarRoot";
597
+ const J = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: u("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
598
+ "button",
599
+ {
600
+ type: "button",
601
+ onClick: e,
602
+ title: t ? "Expandir Navbar" : "Contraer Navbar",
603
+ "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
604
+ className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
605
+ children: t ? /* @__PURE__ */ a.jsx(w, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(w, { size: 24, className: "rotate-0 transition-transform duration-300" })
606
+ }
607
+ ) }), K = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Q = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: u("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ a.jsx("div", { className: "border-b border-neutral-strong-default border w-full" }) }), Y = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), ee = ({ className: t, size: e = "auto" }) => {
608
+ const r = () => {
609
+ switch (e) {
610
+ case "auto":
611
+ return "flex-grow";
612
+ case "small":
613
+ return "h-2 w-2";
614
+ case "medium":
615
+ return "h-4 w-4";
616
+ case "large":
617
+ return "h-8 w-8";
618
+ }
619
+ };
620
+ return /* @__PURE__ */ a.jsx("div", { className: u(r(), t) });
621
+ }, te = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), me = Object.assign(N, {
622
+ Root: N,
623
+ CollapseButton: J,
624
+ Header: K,
625
+ Divider: Q,
626
+ Content: Y,
627
+ Spacer: ee,
628
+ Footer: te
629
+ }), pe = ({
630
+ children: t,
631
+ icon: e,
632
+ label: r,
633
+ href: n,
634
+ onClick: o,
635
+ isActive: i = !1,
636
+ className: l
637
+ }) => {
638
+ const c = n ? "a" : "button";
639
+ return /* @__PURE__ */ a.jsxs(
640
+ c,
641
+ {
642
+ href: n,
643
+ onClick: o,
644
+ className: u(
645
+ "nav-link-item",
646
+ "flex items-center w-full px-3 py-2 text-left",
647
+ "hover:bg-neutral-medium-default transition-colors rounded-lg",
648
+ "focus:outline-none focus:ring-2 focus:ring-primary-default-default",
649
+ i && "bg-neutral-medium-default",
650
+ l
651
+ ),
652
+ children: [
653
+ e && /* @__PURE__ */ a.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ a.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
654
+ r && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: r }),
655
+ t
656
+ ]
657
+ }
658
+ );
659
+ }, L = ({
660
+ count: t,
661
+ maxCount: e = 9,
662
+ className: r = "",
663
+ size: n = "medium",
664
+ variant: o = "primary",
665
+ showZero: i = !1
666
+ }) => {
667
+ const l = t, c = l > e ? `+${e}` : l;
668
+ if (l === 0 && !i) return null;
669
+ const d = {
670
+ small: "w-4.5 h-4.5 text-xs ",
671
+ medium: "w-5 h-5 text-xs",
672
+ large: "w-6 h-6 text-sm"
673
+ }, s = {
674
+ primary: "bg-primary-default-default text-neutral-strong-default",
675
+ secondary: "bg-neutral-medium-default text-neutral-strong-default",
676
+ success: "bg-green-500 text-white",
677
+ warning: "bg-yellow-500 text-black",
678
+ danger: "bg-red-500 text-white"
679
+ };
680
+ return /* @__PURE__ */ a.jsx("div", { className: u(
681
+ "rounded-full flex items-center justify-center font-medium ",
682
+ d[n],
683
+ s[o],
684
+ r
685
+ ), children: /* @__PURE__ */ a.jsx("span", { children: c }) });
686
+ }, xe = ({
687
+ linkActions: t,
688
+ onClick: e,
689
+ activeAction: r
690
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
691
+ const { isView: i = !1, actionName: l, title: c, icon: d, count: s, viewAccess: f } = n || {}, m = (typeof i == "function" ? i() : i !== !1) && (!f || f()), p = r === l;
692
+ return m && /* @__PURE__ */ a.jsx(
693
+ b.div,
694
+ {
695
+ initial: { opacity: 0 },
696
+ animate: { opacity: 1 },
697
+ transition: {
698
+ duration: 0.4,
699
+ delay: o * 0.03,
700
+ ease: "easeOut"
701
+ },
702
+ className: "relative flex justify-center w-full items-center px-3",
703
+ children: /* @__PURE__ */ a.jsxs(
704
+ "button",
705
+ {
706
+ onClick: () => {
707
+ e?.(l);
708
+ },
709
+ className: u(
710
+ "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
711
+ "transition-all duration-300 ease-out w-full",
712
+ "group hover:bg-neutral-medium-selected",
713
+ p ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
714
+ ),
715
+ children: [
716
+ /* @__PURE__ */ a.jsx(B, { mode: "wait", children: p && /* @__PURE__ */ a.jsx(
717
+ b.div,
718
+ {
719
+ layoutId: "nav-active-bg",
720
+ className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
721
+ initial: !1,
722
+ animate: { opacity: 1 },
723
+ exit: { opacity: 0 },
724
+ transition: {
725
+ type: "tween",
726
+ duration: 0.25,
727
+ ease: "easeInOut"
728
+ }
729
+ }
730
+ ) }),
731
+ /* @__PURE__ */ a.jsxs(
732
+ b.div,
733
+ {
734
+ className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
735
+ animate: {
736
+ x: 0
737
+ },
738
+ transition: {
739
+ duration: 0.25,
740
+ ease: "easeOut"
741
+ },
742
+ children: [
743
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
744
+ /* @__PURE__ */ a.jsx(
745
+ b.div,
746
+ {
747
+ className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
748
+ animate: {
749
+ scale: p ? 1.05 : 1
750
+ },
751
+ transition: {
752
+ duration: 0.25,
753
+ ease: "easeOut"
754
+ },
755
+ children: typeof d == "function" ? d({
756
+ size: 24,
757
+ className: u(
758
+ "nav-icon transition-colors duration-250 ease-out",
759
+ p ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
760
+ )
761
+ }) : null
762
+ }
763
+ ),
764
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: c })
765
+ ] }),
766
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: s && s >= 1 ? /* @__PURE__ */ a.jsx(L, { count: s, maxCount: 9, className: "" }) : "" })
767
+ ]
768
+ }
769
+ )
770
+ ]
771
+ }
772
+ )
773
+ },
774
+ o
775
+ );
776
+ }) }), be = ({
777
+ links: t,
778
+ isLinkActive: e,
779
+ onLinkClick: r
780
+ }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((n, o) => {
781
+ const { isView: i = !1, viewAccess: l, path: c, title: d, icon: s, count: f, relatedPaths: m } = n, p = (typeof i == "function" ? i() : i !== !1) && (!l || l()), y = e(c) || (m?.some(
782
+ (T) => e(T)
783
+ ) ?? !1);
784
+ return p && /* @__PURE__ */ a.jsx(
785
+ b.div,
786
+ {
787
+ initial: { opacity: 0 },
788
+ animate: { opacity: 1 },
789
+ transition: {
790
+ duration: 0.4,
791
+ delay: o * 0.03,
792
+ ease: "easeOut"
793
+ },
794
+ className: "relative flex justify-center w-full items-center px-3",
795
+ children: /* @__PURE__ */ a.jsxs(
796
+ "button",
797
+ {
798
+ onClick: () => {
799
+ r?.(c);
800
+ },
801
+ className: u(
802
+ "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
803
+ "transition-all duration-300 ease-out w-full",
804
+ "group hover:bg-neutral-medium-selected",
805
+ y ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
806
+ ),
807
+ children: [
808
+ /* @__PURE__ */ a.jsx(B, { mode: "wait", children: y && /* @__PURE__ */ a.jsx(
809
+ b.div,
810
+ {
811
+ layoutId: "nav-active-bg",
812
+ className: "absolute inset-0 bg-neutral-medium-selected rounded-lg",
813
+ initial: !1,
814
+ animate: { opacity: 1 },
815
+ exit: { opacity: 0 },
816
+ transition: {
817
+ type: "tween",
818
+ duration: 0.25,
819
+ ease: "easeInOut"
820
+ }
821
+ }
822
+ ) }),
823
+ /* @__PURE__ */ a.jsxs(
824
+ b.div,
825
+ {
826
+ className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
827
+ animate: {
828
+ x: 0
829
+ },
830
+ transition: {
831
+ duration: 0.25,
832
+ ease: "easeOut"
833
+ },
834
+ children: [
835
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
836
+ /* @__PURE__ */ a.jsx(
837
+ b.div,
838
+ {
839
+ className: "nav-icon-wrapper flex items-center justify-center shrink-0",
840
+ animate: {
841
+ scale: y ? 1.05 : 1
842
+ },
843
+ transition: {
844
+ duration: 0.25,
845
+ ease: "easeOut"
846
+ },
847
+ children: typeof s == "function" ? s({
848
+ size: 24,
849
+ className: u(
850
+ "nav-icon transition-colors duration-250 ease-out",
851
+ y ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
852
+ )
853
+ }) : null
854
+ }
855
+ ),
856
+ /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: d })
857
+ ] }),
858
+ /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: f && f ? /* @__PURE__ */ a.jsx(L, { count: f, maxCount: 9, className: "" }) : "" })
859
+ ]
860
+ }
861
+ )
862
+ ]
863
+ }
864
+ )
865
+ },
866
+ o
867
+ );
868
+ }) }), ye = ({
869
+ isActiveModalNotification: t,
870
+ setIsActiveModalNotification: e
871
+ }) => ({ handleNotificationClick: () => {
872
+ e(!0);
873
+ }, isActiveModalNotification: t }), ge = (t) => {
874
+ const e = g(null);
875
+ return {
876
+ isCollapsed: t,
877
+ navbarRef: e
878
+ };
879
+ }, ve = ({
880
+ isCollapsed: t,
881
+ onToggle: e
882
+ }) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
883
+ "button",
884
+ {
885
+ onClick: e,
886
+ title: t ? "Expandir Navbar" : "Contraer Navbar",
887
+ "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
888
+ className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
889
+ children: t ? /* @__PURE__ */ a.jsx(w, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(w, { size: 34, className: "rotate-0 transition-transform duration-300" })
890
+ }
891
+ ) }), he = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
892
+ "img",
893
+ {
894
+ src: t,
895
+ className: "h-2/3 rounded-full",
896
+ alt: e ?? ""
897
+ }
898
+ ) });
899
+ function we({
900
+ onFilesAccepted: t,
901
+ onFilesRejected: e,
902
+ ...r
903
+ }) {
904
+ const n = A.useCallback(
905
+ (i, l) => {
906
+ i.length > 0 && t?.(i), l.length > 0 && e?.(l);
907
+ },
908
+ [t, e]
909
+ ), o = O({
910
+ onDrop: n,
911
+ ...r
912
+ });
913
+ return {
914
+ ...o,
915
+ hasErrors: o.fileRejections.length > 0
916
+ };
917
+ }
918
+ const je = (t, e = !0) => {
919
+ const r = g(null);
920
+ return h(() => {
921
+ if (!e) return;
922
+ const n = (o) => {
923
+ r.current && !r.current.contains(o.target) && t();
924
+ };
925
+ return document.addEventListener("mousedown", n, {
926
+ capture: !0
927
+ }), document.addEventListener("touchstart", n, {
928
+ capture: !0
929
+ }), () => {
930
+ document.removeEventListener("mousedown", n, {
931
+ capture: !0
932
+ }), document.removeEventListener("touchstart", n, {
933
+ capture: !0
934
+ });
935
+ };
936
+ }, [t, e]), r;
937
+ };
938
+ export {
939
+ Se as Avatar,
940
+ L as Badge,
941
+ Ie as Button,
942
+ Re as CardProfile,
943
+ Le as ChangueAccount,
944
+ Ae as CheckBox,
945
+ he as CompanyLogo,
946
+ ct as DatePicker,
947
+ qe as DialogModal,
948
+ ea as DropZone,
949
+ Ut as FAButton,
950
+ Oe as Header,
951
+ Xt as Icons,
952
+ zt as Image,
953
+ Pt as ImageGallery,
954
+ He as Input,
955
+ $e as InputMultiple,
956
+ Lt as LayoutGeneric,
957
+ Me as Logo,
958
+ Ge as Menu,
959
+ xe as NavBarActions,
960
+ ve as NavbarCollapseButton,
961
+ be as NavbarLinks,
962
+ pe as NavigationLink,
963
+ Jt as OtpInput,
964
+ _e as Pagination,
965
+ Ze as ProfilePictureUpload,
966
+ Ke as ProgressBar,
967
+ Vt as RadioButton,
968
+ de as SecondaryBar,
969
+ Bt as SegmentedButton,
970
+ Ye as Select,
971
+ Ft as SelectSearch,
972
+ me as Sidebar,
973
+ M as SidebarProvider,
974
+ Tt as SidebarRefProvider,
975
+ kt as Skeleton,
976
+ tt as Spinner,
977
+ rt as Steps,
978
+ nt as SwipeContainer,
979
+ it as Switch,
980
+ ht as TabLinks,
981
+ dt as Table,
982
+ ft as TableBody,
983
+ mt as TableCaption,
984
+ pt as TableCell,
985
+ xt as TableFooter,
986
+ bt as TableHead,
987
+ yt as TableHeader,
988
+ gt as TableRow,
989
+ jt as TextArea,
990
+ Ot as Toast,
991
+ Wt as ToastProvider,
992
+ Ct as Tooltip,
993
+ Dt as toastpyrion,
994
+ ye as useActionsNavbar,
995
+ je as useClickOutside,
996
+ ze as useDialogControl,
997
+ we as useFileDropzone,
998
+ Qt as useIsMobile,
999
+ ge as useNavbarCollapse,
1000
+ fe as useSidebar,
1001
+ k as useSidebarContext
1002
+ };