prometeo-design-system 2.8.4 → 2.8.7

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