prometeo-design-system 2.8.6 → 2.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/Avatar.js +4 -0
  2. package/dist/Button.js +4 -0
  3. package/dist/CardProfile.js +5 -0
  4. package/dist/CheckBox.js +4 -0
  5. package/dist/DatePicker.js +5 -0
  6. package/dist/DialogModal.js +6 -0
  7. package/dist/DrawerDesktop.js +6 -0
  8. package/dist/DrawerMobile.js +6 -0
  9. package/dist/DropZone.js +5 -0
  10. package/dist/FAButton.js +4 -0
  11. package/dist/Header.js +4 -0
  12. package/dist/Icons/Icons.js +1055 -0
  13. package/dist/Icons.js +5 -0
  14. package/dist/Image.js +4 -0
  15. package/dist/ImageGallery.js +6 -0
  16. package/dist/Input.js +4 -0
  17. package/dist/InputMultiple.js +5 -0
  18. package/dist/LayoutGeneric.js +4 -0
  19. package/dist/Logo.js +4 -0
  20. package/dist/Menu.js +5 -0
  21. package/dist/OtpInput.js +4 -0
  22. package/dist/Pagination.js +4 -0
  23. package/dist/ProfilePictureUpload.js +5 -0
  24. package/dist/ProgressBar.js +4 -0
  25. package/dist/RadioButton.js +5 -0
  26. package/dist/SegmentedButton.js +5 -0
  27. package/dist/Select.js +4 -0
  28. package/dist/SelectSearch.js +4 -0
  29. package/dist/Skeleton.js +5 -0
  30. package/dist/Spinner.js +4 -0
  31. package/dist/Steps.js +5 -0
  32. package/dist/SwipeContainer.js +4 -0
  33. package/dist/Switch.js +5 -0
  34. package/dist/TabLinks.js +4 -0
  35. package/dist/Table.js +11 -0
  36. package/dist/TextArea.js +4 -0
  37. package/dist/Toast.js +5 -0
  38. package/dist/ToastProvider.js +4 -0
  39. package/dist/Tooltip.js +4 -0
  40. package/dist/components/Autocomplete/useAutocomplete.js +143 -0
  41. package/dist/{Avatar.es.js → components/Avatar/Avatar.js} +24 -24
  42. package/dist/{Button.es.js → components/Button/Button.js} +55 -55
  43. package/dist/{CardProfile-CsytJlKZ.js → components/CardProfile/CardProfile.js} +68 -94
  44. package/dist/{CheckBox.es.js → components/CheckBox/CheckBox.js} +25 -25
  45. package/dist/components/DatePicker/DatePicker.js +396 -0
  46. package/dist/components/Dialog/Dialog.js +60 -0
  47. package/dist/components/Dialog/useDialogControl.js +18 -0
  48. package/dist/components/Drawer/DrawerDesktop.js +179 -0
  49. package/dist/components/Drawer/DrawerMobile.js +219 -0
  50. package/dist/components/Drawer/useDrawerDesktop.js +18 -0
  51. package/dist/components/Drawer/useDrawerMobile.js +27 -0
  52. package/dist/components/DropZone/DropZone.js +86 -0
  53. package/dist/components/DropZone/useFileDropzone.js +24 -0
  54. package/dist/{FAButton.es.js → components/FAB/FAButton.js} +5 -5
  55. package/dist/components/Header/Header.js +32 -0
  56. package/dist/components/Image/GalleryPreview.js +40 -0
  57. package/dist/{Image.es.js → components/Image/Image.js} +32 -32
  58. package/dist/components/Image/ImageGallery.js +68 -0
  59. package/dist/components/Image/LightBox.js +223 -0
  60. package/dist/{ImageGallery.es.js → components/Image/useImageGallery.js} +0 -2
  61. package/dist/components/Input/Input.js +219 -0
  62. package/dist/components/InputMultiple/InputMultiple.js +262 -0
  63. package/dist/components/Layout/LayoutGeneric.js +13 -0
  64. package/dist/components/Logo/Logo.js +9 -0
  65. package/dist/{Menu.es.js → components/Menu/MenuComposable.js} +12 -13
  66. package/dist/components/OtpInput/OtpInput.js +112 -0
  67. package/dist/{Pagination.es.js → components/Pagination/Pagination.js} +32 -32
  68. package/dist/{ProfilePictureUpload.es.js → components/ProfilePictureUpload/ProfilePictureUpload.js} +56 -57
  69. package/dist/components/ProgressBar/ProgressBar.js +70 -0
  70. package/dist/{RadioButton.es.js → components/RadioButton/RadioButton.js} +35 -36
  71. package/dist/{SegmentedButton.es.js → components/SegmentedButton/SegmentedButton.js} +37 -38
  72. package/dist/components/Select/Select.js +1005 -0
  73. package/dist/components/SelectSearch/SelectSearch.js +101 -0
  74. package/dist/components/Shared/Chip.js +55 -0
  75. package/dist/components/Shared/HelperComponent.js +24 -0
  76. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.js +62 -0
  77. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.js +59 -0
  78. package/dist/components/Sidebar/SidebarComposable.js +84 -0
  79. package/dist/components/Sidebar/components/NavigationLink.js +34 -0
  80. package/dist/components/Sidebar/components/badge.js +33 -0
  81. package/dist/components/Sidebar/components/changue-account.js +31 -0
  82. package/dist/components/Sidebar/components/collapse-button.js +18 -0
  83. package/dist/components/Sidebar/components/company-logo.js +12 -0
  84. package/dist/components/Sidebar/components/nav-actions.js +98 -0
  85. package/dist/components/Sidebar/components/nav-links.js +100 -0
  86. package/dist/components/Sidebar/context/SidebarContext.js +19 -0
  87. package/dist/components/Sidebar/hooks/SidebarProvider.js +33 -0
  88. package/dist/components/Sidebar/hooks/useNavBarActions.js +9 -0
  89. package/dist/components/Sidebar/hooks/useNavBarCollapse.js +11 -0
  90. package/dist/components/Sidebar/hooks/useSidebarHook.js +13 -0
  91. package/dist/components/Sidebar/ui/useNavbarAnimation.js +326 -0
  92. package/dist/{Skeleton.es.js → components/Skeleton/Skeleton.js} +16 -18
  93. package/dist/components/Spinner/Spinner.js +52 -0
  94. package/dist/{Steps.es.js → components/Steps/Steps.js} +61 -62
  95. package/dist/{SwipeContainer.es.js → components/SwipeContainer/SwipeContainer.js} +68 -68
  96. package/dist/{Switch.es.js → components/Switch/Switch.js} +17 -18
  97. package/dist/{TabLinks.es.js → components/TabLinks/TabLinks.js} +11 -11
  98. package/dist/components/TabSwitch/TabSwitch.js +57 -0
  99. package/dist/{Table.es.js → components/Table/Table.js} +38 -41
  100. package/dist/{TextArea.es.js → components/TextArea/TextArea.js} +24 -26
  101. package/dist/components/Toaster/ToastProvider.js +6 -0
  102. package/dist/{Toast.es.js → components/Toaster/Toaster.js} +48 -48
  103. package/dist/components/Tooltip/Tootip.js +62 -0
  104. package/dist/hooks/useClickOutside.js +24 -0
  105. package/dist/{useDragScroll-CHN9OMwn.js → hooks/useDragScroll.js} +1 -1
  106. package/dist/hooks/useLabelBackground.js +25 -0
  107. package/dist/index.d.ts +16 -12
  108. package/dist/index.js +127 -0
  109. package/dist/{cn-B6yFEsav.js → lib/cn.js} +2 -2
  110. package/dist/lib/utils.js +54 -0
  111. package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
  112. package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
  113. package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
  114. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
  115. package/dist/{index-BOQuZ0gG.js → node_modules/class-variance-authority/dist/index.js} +10 -9
  116. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  117. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  118. package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
  119. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  120. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  121. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  122. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  123. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  124. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  125. package/dist/node_modules/date-fns/addDays.js +10 -0
  126. package/dist/node_modules/date-fns/addMonths.js +20 -0
  127. package/dist/node_modules/date-fns/addWeeks.js +8 -0
  128. package/dist/node_modules/date-fns/addYears.js +8 -0
  129. package/dist/node_modules/date-fns/constants.js +6 -0
  130. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  131. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  132. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +13 -0
  133. package/dist/node_modules/date-fns/eachMonthOfInterval.js +17 -0
  134. package/dist/node_modules/date-fns/eachYearOfInterval.js +17 -0
  135. package/dist/node_modules/date-fns/endOfISOWeek.js +8 -0
  136. package/dist/node_modules/date-fns/endOfMonth.js +9 -0
  137. package/dist/node_modules/date-fns/endOfWeek.js +10 -0
  138. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  139. package/dist/node_modules/date-fns/format.js +58 -0
  140. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  141. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  142. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  143. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  144. package/dist/node_modules/date-fns/getMonth.js +8 -0
  145. package/dist/node_modules/date-fns/getWeek.js +12 -0
  146. package/dist/node_modules/date-fns/getWeekYear.js +16 -0
  147. package/dist/node_modules/date-fns/getYear.js +8 -0
  148. package/dist/node_modules/date-fns/isAfter.js +8 -0
  149. package/dist/node_modules/date-fns/isBefore.js +8 -0
  150. package/dist/node_modules/date-fns/isDate.js +7 -0
  151. package/dist/node_modules/date-fns/isSameDay.js +14 -0
  152. package/dist/node_modules/date-fns/isSameMonth.js +13 -0
  153. package/dist/node_modules/date-fns/isSameYear.js +13 -0
  154. package/dist/node_modules/date-fns/isValid.js +9 -0
  155. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  156. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  157. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  158. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  159. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  160. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  161. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  162. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  163. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  164. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  165. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
  166. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
  167. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
  168. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
  169. package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
  170. package/dist/node_modules/date-fns/locale/es.js +21 -0
  171. package/dist/node_modules/date-fns/max.js +14 -0
  172. package/dist/node_modules/date-fns/min.js +14 -0
  173. package/dist/node_modules/date-fns/setMonth.js +13 -0
  174. package/dist/node_modules/date-fns/setYear.js +10 -0
  175. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  176. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  177. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  178. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  179. package/dist/node_modules/date-fns/startOfWeek.js +10 -0
  180. package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
  181. package/dist/node_modules/date-fns/startOfYear.js +9 -0
  182. package/dist/node_modules/date-fns/toDate.js +8 -0
  183. package/dist/node_modules/input-otp/dist/index.js +194 -0
  184. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +227 -0
  185. package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
  186. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
  187. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
  188. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
  189. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +147 -0
  190. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
  191. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
  192. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
  193. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
  194. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
  195. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
  196. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
  197. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
  198. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
  199. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
  200. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
  201. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
  202. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
  203. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
  204. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
  205. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
  206. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
  207. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
  208. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
  209. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
  210. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
  211. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
  212. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
  213. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
  214. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
  215. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
  216. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
  217. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
  218. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
  219. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
  220. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
  221. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
  222. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
  223. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
  224. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
  225. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
  226. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
  227. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
  228. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
  229. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
  230. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
  231. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
  232. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +21 -0
  233. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
  234. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
  235. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
  236. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
  237. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
  238. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
  239. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
  240. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
  241. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
  242. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
  243. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
  244. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
  245. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
  246. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
  247. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
  248. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
  249. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
  250. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
  251. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
  252. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
  253. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
  254. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
  255. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
  256. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
  257. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +6 -0
  258. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
  259. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
  260. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
  261. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
  262. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
  263. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
  264. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
  265. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
  266. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
  267. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +44 -0
  268. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
  269. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
  270. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
  271. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
  272. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
  273. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
  274. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
  275. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
  276. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
  277. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
  278. package/dist/prometeo-design-system.css +1 -1
  279. package/dist/useDevice.js +4 -0
  280. package/package.json +114 -115
  281. package/dist/CardProfile.es.js +0 -5
  282. package/dist/DatePicker.es.js +0 -3441
  283. package/dist/DialogModal.es.js +0 -75
  284. package/dist/DrawerDesktop.es.js +0 -192
  285. package/dist/DrawerMobile.es.js +0 -242
  286. package/dist/DropZone.es.js +0 -87
  287. package/dist/Header.es.js +0 -32
  288. package/dist/HelperComponent-g_xuKWzK.js +0 -24
  289. package/dist/Icons-DtFC5DJ7.js +0 -1079
  290. package/dist/Icons.es.js +0 -5
  291. package/dist/ImageGallery-Ckxg9OIC.js +0 -317
  292. package/dist/Input-Cck37DpG.js +0 -240
  293. package/dist/Input.es.js +0 -4
  294. package/dist/InputMultiple.es.js +0 -263
  295. package/dist/LayoutGeneric-CbaoatQB.js +0 -26
  296. package/dist/LayoutGeneric.es.js +0 -4
  297. package/dist/Logo.es.js +0 -9
  298. package/dist/OtpInput.es.js +0 -301
  299. package/dist/ProgressBar.es.js +0 -70
  300. package/dist/Select-BD5FTxVw.js +0 -1100
  301. package/dist/Select.es.js +0 -4
  302. package/dist/SelectSearch.es.js +0 -237
  303. package/dist/Spinner.es.js +0 -52
  304. package/dist/ToastProvider.es.js +0 -6
  305. package/dist/Tooltip.es.js +0 -62
  306. package/dist/jsx-runtime-DKDX3adD.js +0 -281
  307. package/dist/prometeo-design-system.es.js +0 -1002
  308. /package/dist/{useDevice.es.js → hooks/useDevice.js} +0 -0
@@ -1,1002 +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-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
- };