prometeo-design-system 3.1.3 → 3.1.5

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