prometeo-design-system 3.1.4 → 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 (440) hide show
  1. package/package.json +17 -1
  2. package/dist/Avatar.d.ts +0 -4
  3. package/dist/Avatar.es.js +0 -94
  4. package/dist/Button.d.ts +0 -6
  5. package/dist/Button.es.js +0 -400
  6. package/dist/CardProfile-y9Knsg26.js +0 -280
  7. package/dist/CardProfile.d.ts +0 -6
  8. package/dist/CardProfile.es.js +0 -5
  9. package/dist/CheckBox.d.ts +0 -6
  10. package/dist/CheckBox.es.js +0 -112
  11. package/dist/DatePicker-CehTiXGa.js +0 -3631
  12. package/dist/DatePicker.d.ts +0 -6
  13. package/dist/DatePicker.es.js +0 -5
  14. package/dist/DialogModal.d.ts +0 -6
  15. package/dist/DialogModal.es.js +0 -75
  16. package/dist/DrawerDesktop.d.ts +0 -6
  17. package/dist/DrawerDesktop.es.js +0 -217
  18. package/dist/DrawerMobile.d.ts +0 -6
  19. package/dist/DrawerMobile.es.js +0 -243
  20. package/dist/DropZone.d.ts +0 -6
  21. package/dist/DropZone.es.js +0 -88
  22. package/dist/FAButton.d.ts +0 -4
  23. package/dist/FAButton.es.js +0 -111
  24. package/dist/Header.d.ts +0 -6
  25. package/dist/Header.es.js +0 -32
  26. package/dist/HelperComponent-ljsn0xD6.js +0 -26
  27. package/dist/Icons/AccountCircle.d.ts +0 -6
  28. package/dist/Icons/AccountCircle.es.js +0 -21
  29. package/dist/Icons/Add.d.ts +0 -6
  30. package/dist/Icons/Add.es.js +0 -19
  31. package/dist/Icons/ArrowLeft.d.ts +0 -6
  32. package/dist/Icons/ArrowLeft.es.js +0 -19
  33. package/dist/Icons/ArrowUpDown.d.ts +0 -6
  34. package/dist/Icons/ArrowUpDown.es.js +0 -21
  35. package/dist/Icons/AttachFile.d.ts +0 -6
  36. package/dist/Icons/AttachFile.es.js +0 -19
  37. package/dist/Icons/Boards.d.ts +0 -6
  38. package/dist/Icons/Boards.es.js +0 -19
  39. package/dist/Icons/Calendar.d.ts +0 -6
  40. package/dist/Icons/Calendar.es.js +0 -19
  41. package/dist/Icons/Cancel.d.ts +0 -6
  42. package/dist/Icons/Cancel.es.js +0 -19
  43. package/dist/Icons/Check.d.ts +0 -6
  44. package/dist/Icons/Check.es.js +0 -19
  45. package/dist/Icons/CheckCircle.d.ts +0 -6
  46. package/dist/Icons/CheckCircle.es.js +0 -21
  47. package/dist/Icons/CheckList.d.ts +0 -6
  48. package/dist/Icons/CheckList.es.js +0 -25
  49. package/dist/Icons/ChevronDown.d.ts +0 -6
  50. package/dist/Icons/ChevronDown.es.js +0 -21
  51. package/dist/Icons/Clock.d.ts +0 -6
  52. package/dist/Icons/Clock.es.js +0 -19
  53. package/dist/Icons/Close.d.ts +0 -6
  54. package/dist/Icons/Close.es.js +0 -19
  55. package/dist/Icons/CloseNavBarDesktop.d.ts +0 -6
  56. package/dist/Icons/CloseNavBarDesktop.es.js +0 -36
  57. package/dist/Icons/Collapse.d.ts +0 -6
  58. package/dist/Icons/Collapse.es.js +0 -19
  59. package/dist/Icons/Company.d.ts +0 -6
  60. package/dist/Icons/Company.es.js +0 -25
  61. package/dist/Icons/Copy.d.ts +0 -6
  62. package/dist/Icons/Copy.es.js +0 -19
  63. package/dist/Icons/CrevronLeft.d.ts +0 -6
  64. package/dist/Icons/CrevronLeft.es.js +0 -21
  65. package/dist/Icons/CrevronRight.d.ts +0 -6
  66. package/dist/Icons/CrevronRight.es.js +0 -21
  67. package/dist/Icons/DocumentFill.d.ts +0 -6
  68. package/dist/Icons/DocumentFill.es.js +0 -27
  69. package/dist/Icons/Download.d.ts +0 -6
  70. package/dist/Icons/Download.es.js +0 -25
  71. package/dist/Icons/Edit.d.ts +0 -6
  72. package/dist/Icons/Edit.es.js +0 -19
  73. package/dist/Icons/EditFill.d.ts +0 -6
  74. package/dist/Icons/EditFill.es.js +0 -25
  75. package/dist/Icons/Email.d.ts +0 -6
  76. package/dist/Icons/Email.es.js +0 -25
  77. package/dist/Icons/Error.d.ts +0 -6
  78. package/dist/Icons/Error.es.js +0 -19
  79. package/dist/Icons/EyeVisibility.d.ts +0 -6
  80. package/dist/Icons/EyeVisibility.es.js +0 -21
  81. package/dist/Icons/EyeVisibilityOff.d.ts +0 -6
  82. package/dist/Icons/EyeVisibilityOff.es.js +0 -21
  83. package/dist/Icons/FaLock.d.ts +0 -6
  84. package/dist/Icons/FaLock.es.js +0 -19
  85. package/dist/Icons/FastForward.d.ts +0 -6
  86. package/dist/Icons/FastForward.es.js +0 -27
  87. package/dist/Icons/File.d.ts +0 -6
  88. package/dist/Icons/File.es.js +0 -25
  89. package/dist/Icons/Filter.d.ts +0 -6
  90. package/dist/Icons/Filter.es.js +0 -19
  91. package/dist/Icons/FormatColorText.d.ts +0 -6
  92. package/dist/Icons/FormatColorText.es.js +0 -26
  93. package/dist/Icons/Help.d.ts +0 -6
  94. package/dist/Icons/Help.es.js +0 -19
  95. package/dist/Icons/HistoryActivity.d.ts +0 -6
  96. package/dist/Icons/HistoryActivity.es.js +0 -21
  97. package/dist/Icons/Home.d.ts +0 -6
  98. package/dist/Icons/Home.es.js +0 -19
  99. package/dist/Icons/Image.d.ts +0 -6
  100. package/dist/Icons/Image.es.js +0 -25
  101. package/dist/Icons/Info.d.ts +0 -6
  102. package/dist/Icons/Info.es.js +0 -19
  103. package/dist/Icons/Logout.d.ts +0 -6
  104. package/dist/Icons/Logout.es.js +0 -19
  105. package/dist/Icons/MessageSquare.d.ts +0 -6
  106. package/dist/Icons/MessageSquare.es.js +0 -21
  107. package/dist/Icons/MessageSquareFill.d.ts +0 -6
  108. package/dist/Icons/MessageSquareFill.es.js +0 -27
  109. package/dist/Icons/MoreVert.d.ts +0 -6
  110. package/dist/Icons/MoreVert.es.js +0 -19
  111. package/dist/Icons/Notifications.d.ts +0 -6
  112. package/dist/Icons/Notifications.es.js +0 -21
  113. package/dist/Icons/Pause.d.ts +0 -6
  114. package/dist/Icons/Pause.es.js +0 -19
  115. package/dist/Icons/Reload.d.ts +0 -6
  116. package/dist/Icons/Reload.es.js +0 -25
  117. package/dist/Icons/Search.d.ts +0 -6
  118. package/dist/Icons/Search.es.js +0 -19
  119. package/dist/Icons/Settings.d.ts +0 -6
  120. package/dist/Icons/Settings.es.js +0 -19
  121. package/dist/Icons/Shared.d.ts +0 -6
  122. package/dist/Icons/Shared.es.js +0 -19
  123. package/dist/Icons/Sort.d.ts +0 -6
  124. package/dist/Icons/Sort.es.js +0 -19
  125. package/dist/Icons/Stars.d.ts +0 -6
  126. package/dist/Icons/Stars.es.js +0 -19
  127. package/dist/Icons/Ticket.d.ts +0 -6
  128. package/dist/Icons/Ticket.es.js +0 -19
  129. package/dist/Icons/TicketFilled.d.ts +0 -6
  130. package/dist/Icons/TicketFilled.es.js +0 -21
  131. package/dist/Icons/Trash.d.ts +0 -6
  132. package/dist/Icons/Trash.es.js +0 -19
  133. package/dist/Icons/TrashFill.d.ts +0 -6
  134. package/dist/Icons/TrashFill.es.js +0 -25
  135. package/dist/Icons/Upload.d.ts +0 -6
  136. package/dist/Icons/Upload.es.js +0 -19
  137. package/dist/Icons/UploadCloud.d.ts +0 -6
  138. package/dist/Icons/UploadCloud.es.js +0 -21
  139. package/dist/Icons/UserAdd.d.ts +0 -6
  140. package/dist/Icons/UserAdd.es.js +0 -19
  141. package/dist/Icons/UserAddFill.d.ts +0 -6
  142. package/dist/Icons/UserAddFill.es.js +0 -27
  143. package/dist/Icons/UserPerson.d.ts +0 -6
  144. package/dist/Icons/UserPerson.es.js +0 -19
  145. package/dist/Icons/WhatsApp.d.ts +0 -6
  146. package/dist/Icons/WhatsApp.es.js +0 -76
  147. package/dist/Icons/components/AccountCircle.d.ts +0 -4
  148. package/dist/Icons/components/Add.d.ts +0 -4
  149. package/dist/Icons/components/ArrowLeft.d.ts +0 -4
  150. package/dist/Icons/components/ArrowUpDown.d.ts +0 -4
  151. package/dist/Icons/components/AttachFile.d.ts +0 -4
  152. package/dist/Icons/components/Boards.d.ts +0 -4
  153. package/dist/Icons/components/Calendar.d.ts +0 -4
  154. package/dist/Icons/components/Cancel.d.ts +0 -4
  155. package/dist/Icons/components/Check.d.ts +0 -4
  156. package/dist/Icons/components/CheckCircle.d.ts +0 -4
  157. package/dist/Icons/components/CheckList.d.ts +0 -4
  158. package/dist/Icons/components/ChevronDown.d.ts +0 -4
  159. package/dist/Icons/components/Clock.d.ts +0 -4
  160. package/dist/Icons/components/Close.d.ts +0 -4
  161. package/dist/Icons/components/CloseNavBarDesktop.d.ts +0 -4
  162. package/dist/Icons/components/Collapse.d.ts +0 -4
  163. package/dist/Icons/components/Company.d.ts +0 -4
  164. package/dist/Icons/components/Copy.d.ts +0 -4
  165. package/dist/Icons/components/CrevronLeft.d.ts +0 -4
  166. package/dist/Icons/components/CrevronRight.d.ts +0 -4
  167. package/dist/Icons/components/DocumentFill.d.ts +0 -4
  168. package/dist/Icons/components/Download.d.ts +0 -4
  169. package/dist/Icons/components/Edit.d.ts +0 -4
  170. package/dist/Icons/components/EditFill.d.ts +0 -4
  171. package/dist/Icons/components/Email.d.ts +0 -4
  172. package/dist/Icons/components/Error.d.ts +0 -4
  173. package/dist/Icons/components/EyeVisibility.d.ts +0 -4
  174. package/dist/Icons/components/EyeVisibilityOff.d.ts +0 -4
  175. package/dist/Icons/components/FaLock.d.ts +0 -4
  176. package/dist/Icons/components/FastForward.d.ts +0 -4
  177. package/dist/Icons/components/File.d.ts +0 -4
  178. package/dist/Icons/components/Filter.d.ts +0 -4
  179. package/dist/Icons/components/FormatColorText.d.ts +0 -4
  180. package/dist/Icons/components/Help.d.ts +0 -4
  181. package/dist/Icons/components/HistoryActivity.d.ts +0 -4
  182. package/dist/Icons/components/Home.d.ts +0 -4
  183. package/dist/Icons/components/Image.d.ts +0 -4
  184. package/dist/Icons/components/Info.d.ts +0 -4
  185. package/dist/Icons/components/Logout.d.ts +0 -4
  186. package/dist/Icons/components/MessageSquare.d.ts +0 -4
  187. package/dist/Icons/components/MessageSquareFill.d.ts +0 -4
  188. package/dist/Icons/components/MoreVert.d.ts +0 -4
  189. package/dist/Icons/components/Notifications.d.ts +0 -4
  190. package/dist/Icons/components/Pause.d.ts +0 -4
  191. package/dist/Icons/components/Reload.d.ts +0 -4
  192. package/dist/Icons/components/Search.d.ts +0 -4
  193. package/dist/Icons/components/Settings.d.ts +0 -4
  194. package/dist/Icons/components/Shared.d.ts +0 -4
  195. package/dist/Icons/components/Sort.d.ts +0 -4
  196. package/dist/Icons/components/Stars.d.ts +0 -4
  197. package/dist/Icons/components/Ticket.d.ts +0 -4
  198. package/dist/Icons/components/TicketFilled.d.ts +0 -4
  199. package/dist/Icons/components/Trash.d.ts +0 -4
  200. package/dist/Icons/components/TrashFill.d.ts +0 -4
  201. package/dist/Icons/components/Upload.d.ts +0 -4
  202. package/dist/Icons/components/UploadCloud.d.ts +0 -4
  203. package/dist/Icons/components/UserAdd.d.ts +0 -4
  204. package/dist/Icons/components/UserAddFill.d.ts +0 -4
  205. package/dist/Icons/components/UserPerson.d.ts +0 -4
  206. package/dist/Icons/components/WhatsApp.d.ts +0 -4
  207. package/dist/Icons/iconUtils.d.ts +0 -7
  208. package/dist/Icons/index.d.ts +0 -62
  209. package/dist/Icons/types.d.ts +0 -124
  210. package/dist/Icons.d.ts +0 -2
  211. package/dist/Icons.es.js +0 -122
  212. package/dist/Image.d.ts +0 -4
  213. package/dist/Image.es.js +0 -91
  214. package/dist/ImageGallery-DG9ovlQ-.js +0 -319
  215. package/dist/ImageGallery.d.ts +0 -6
  216. package/dist/ImageGallery.es.js +0 -23
  217. package/dist/Input.d.ts +0 -6
  218. package/dist/Input.es.js +0 -220
  219. package/dist/InputMultiple.d.ts +0 -6
  220. package/dist/InputMultiple.es.js +0 -265
  221. package/dist/LayoutGeneric-CfWhV1ov.js +0 -26
  222. package/dist/LayoutGeneric.d.ts +0 -6
  223. package/dist/LayoutGeneric.es.js +0 -4
  224. package/dist/Logo.d.ts +0 -4
  225. package/dist/Logo.es.js +0 -9
  226. package/dist/Menu.d.ts +0 -6
  227. package/dist/Menu.es.js +0 -77
  228. package/dist/OtpInput.d.ts +0 -6
  229. package/dist/OtpInput.es.js +0 -302
  230. package/dist/Pagination.d.ts +0 -6
  231. package/dist/Pagination.es.js +0 -97
  232. package/dist/ProfilePictureUpload.d.ts +0 -6
  233. package/dist/ProfilePictureUpload.es.js +0 -189
  234. package/dist/ProgressBar.d.ts +0 -6
  235. package/dist/ProgressBar.es.js +0 -70
  236. package/dist/RadioButton.d.ts +0 -6
  237. package/dist/RadioButton.es.js +0 -78
  238. package/dist/RecurrentDatePicker.d.ts +0 -2
  239. package/dist/RecurrentDatePicker.es.js +0 -694
  240. package/dist/RecurrentDatePickerRRule.d.ts +0 -2
  241. package/dist/RecurrentDatePickerRRule.es.js +0 -1682
  242. package/dist/Scrollable.d.ts +0 -2
  243. package/dist/Scrollable.es.js +0 -260
  244. package/dist/SegmentedButton.d.ts +0 -6
  245. package/dist/SegmentedButton.es.js +0 -185
  246. package/dist/Select-BdxmkrjB.js +0 -1111
  247. package/dist/Select.d.ts +0 -6
  248. package/dist/Select.es.js +0 -4
  249. package/dist/SelectSearch.d.ts +0 -6
  250. package/dist/SelectSearch.es.js +0 -283
  251. package/dist/Skeleton.d.ts +0 -6
  252. package/dist/Skeleton.es.js +0 -74
  253. package/dist/Spinner.d.ts +0 -6
  254. package/dist/Spinner.es.js +0 -178
  255. package/dist/Steps.d.ts +0 -6
  256. package/dist/Steps.es.js +0 -214
  257. package/dist/SwipeContainer.d.ts +0 -4
  258. package/dist/SwipeContainer.es.js +0 -185
  259. package/dist/Switch.d.ts +0 -6
  260. package/dist/Switch.es.js +0 -97
  261. package/dist/TabLinks.d.ts +0 -4
  262. package/dist/TabLinks.es.js +0 -94
  263. package/dist/Table.d.ts +0 -2
  264. package/dist/Table.es.js +0 -121
  265. package/dist/TextArea.d.ts +0 -4
  266. package/dist/TextArea.es.js +0 -66
  267. package/dist/Toast.d.ts +0 -6
  268. package/dist/Toast.es.js +0 -150
  269. package/dist/ToastProvider.d.ts +0 -6
  270. package/dist/ToastProvider.es.js +0 -6
  271. package/dist/Tooltip.d.ts +0 -6
  272. package/dist/Tooltip.es.js +0 -62
  273. package/dist/assets/psmlogo.png +0 -0
  274. package/dist/cn-B6yFEsav.js +0 -8
  275. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
  276. package/dist/components/Autocomplete/useAutocomplete.d.ts +0 -43
  277. package/dist/components/Avatar/Avatar.d.ts +0 -11
  278. package/dist/components/Avatar/index.d.ts +0 -1
  279. package/dist/components/Button/Button.d.ts +0 -23
  280. package/dist/components/Button/index.d.ts +0 -2
  281. package/dist/components/Card/Card.d.ts +0 -12
  282. package/dist/components/CardProfile/CardProfile.d.ts +0 -55
  283. package/dist/components/CheckBox/CheckBox.d.ts +0 -11
  284. package/dist/components/DatePicker/DatePicker.d.ts +0 -82
  285. package/dist/components/Dialog/Dialog.d.ts +0 -35
  286. package/dist/components/Dialog/DialogV2.d.ts +0 -35
  287. package/dist/components/Dialog/useDialogControl.d.ts +0 -8
  288. package/dist/components/Drawer/DrawerDesktop.d.ts +0 -21
  289. package/dist/components/Drawer/DrawerMobile.d.ts +0 -24
  290. package/dist/components/Drawer/useDrawerDesktop.d.ts +0 -8
  291. package/dist/components/Drawer/useDrawerMobile.d.ts +0 -8
  292. package/dist/components/DropZone/DropZone.d.ts +0 -16
  293. package/dist/components/DropZone/DropzoneCompossable.d.ts +0 -54
  294. package/dist/components/DropZone/useFileDropzone.d.ts +0 -21
  295. package/dist/components/FAB/FAButton.d.ts +0 -21
  296. package/dist/components/FileCard/FileCard.d.ts +0 -52
  297. package/dist/components/Header/Header.d.ts +0 -11
  298. package/dist/components/Image/GalleryPreview.d.ts +0 -8
  299. package/dist/components/Image/Image.d.ts +0 -23
  300. package/dist/components/Image/ImageGallery.d.ts +0 -18
  301. package/dist/components/Image/LightBox.d.ts +0 -14
  302. package/dist/components/Image/index.d.ts +0 -5
  303. package/dist/components/Image/useImageGallery.d.ts +0 -10
  304. package/dist/components/Input/Input.d.ts +0 -34
  305. package/dist/components/InputMultiple/InputMultiple.d.ts +0 -25
  306. package/dist/components/Layout/LayoutGeneric.d.ts +0 -6
  307. package/dist/components/Logo/Logo.d.ts +0 -2
  308. package/dist/components/Menu/MenuComposable.d.ts +0 -15
  309. package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +0 -10
  310. package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +0 -49
  311. package/dist/components/NavigationDrawer/NavigationDrawerActionItem.d.ts +0 -16
  312. package/dist/components/NavigationDrawer/NavigationDrawerActions.d.ts +0 -9
  313. package/dist/components/NavigationDrawer/NavigationDrawerItemBase.d.ts +0 -18
  314. package/dist/components/NavigationDrawer/NavigationDrawerLinkItem.d.ts +0 -30
  315. package/dist/components/NavigationDrawer/NavigationDrawerNavlinks.d.ts +0 -11
  316. package/dist/components/NavigationDrawer/index.d.ts +0 -2
  317. package/dist/components/NotificationCard/NotificationCard.d.ts +0 -25
  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/PyrionHelpSection.d.ts +0 -8
  323. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawer.d.ts +0 -130
  324. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerMobileAppSwitcher.d.ts +0 -10
  325. package/dist/components/PyrionNavigationDrawer/PyrionNavigationDrawerSystemLogo.d.ts +0 -7
  326. package/dist/components/PyrionNavigationDrawer/PyrionNotificationsList.d.ts +0 -8
  327. package/dist/components/PyrionNavigationDrawer/SidebarContent.d.ts +0 -13
  328. package/dist/components/PyrionNavigationDrawer/SystemSessions.d.ts +0 -12
  329. package/dist/components/RadioButton/RadioButton.d.ts +0 -14
  330. package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +0 -40
  331. package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +0 -13
  332. package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +0 -35
  333. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +0 -5
  334. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +0 -39
  335. package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +0 -13
  336. package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +0 -13
  337. package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +0 -9
  338. package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +0 -21
  339. package/dist/components/RecurrentDatePicker/recurrentDatePicker.validations.d.ts +0 -69
  340. package/dist/components/Scrollable/Scrollable.d.ts +0 -31
  341. package/dist/components/SegmentedButton/SegmentedButton.d.ts +0 -20
  342. package/dist/components/Select/Select.d.ts +0 -123
  343. package/dist/components/SelectSearch/SelectSearch.d.ts +0 -40
  344. package/dist/components/Shared/Chip.d.ts +0 -15
  345. package/dist/components/Shared/HelperComponent.d.ts +0 -13
  346. package/dist/components/Sidebar/SecondaryBar/SecondaryBar.d.ts +0 -32
  347. package/dist/components/Sidebar/SecondaryBar/hooks/useSecondaryBarAnimation.d.ts +0 -2
  348. package/dist/components/Sidebar/SecondaryBar/index.d.ts +0 -1
  349. package/dist/components/Sidebar/SidebarComposable.d.ts +0 -43
  350. package/dist/components/Sidebar/components/NavigationLink.d.ts +0 -11
  351. package/dist/components/Sidebar/components/badge.d.ts +0 -10
  352. package/dist/components/Sidebar/components/changue-account.d.ts +0 -5
  353. package/dist/components/Sidebar/components/collapse-button.d.ts +0 -5
  354. package/dist/components/Sidebar/components/company-logo.d.ts +0 -5
  355. package/dist/components/Sidebar/components/nav-actions.d.ts +0 -7
  356. package/dist/components/Sidebar/components/nav-links.d.ts +0 -7
  357. package/dist/components/Sidebar/context/SidebarContext.d.ts +0 -13
  358. package/dist/components/Sidebar/hooks/SidebarProvider.d.ts +0 -3
  359. package/dist/components/Sidebar/hooks/useNavBarActions.d.ts +0 -9
  360. package/dist/components/Sidebar/hooks/useNavBarCollapse.d.ts +0 -4
  361. package/dist/components/Sidebar/hooks/useNavLinks.d.ts +0 -32
  362. package/dist/components/Sidebar/hooks/useSidebarHook.d.ts +0 -13
  363. package/dist/components/Sidebar/index.d.ts +0 -12
  364. package/dist/components/Sidebar/ui/useNavbarAnimation.d.ts +0 -2
  365. package/dist/components/Skeleton/Skeleton.d.ts +0 -13
  366. package/dist/components/Spinner/Spinner.d.ts +0 -12
  367. package/dist/components/Steps/Steps.d.ts +0 -21
  368. package/dist/components/SwipeContainer/SwipeContainer.d.ts +0 -19
  369. package/dist/components/Switch/Switch.d.ts +0 -11
  370. package/dist/components/TabLinks/TabLinks.d.ts +0 -23
  371. package/dist/components/TabSwitch/TabSwitch.d.ts +0 -16
  372. package/dist/components/Table/Table.d.ts +0 -14
  373. package/dist/components/Table/TableWithPagination.d.ts +0 -11
  374. package/dist/components/TextArea/TextArea.d.ts +0 -15
  375. package/dist/components/TicketCard/TicketCard.d.ts +0 -32
  376. package/dist/components/Toaster/ToastProvider.d.ts +0 -5
  377. package/dist/components/Toaster/Toaster.d.ts +0 -36
  378. package/dist/components/Tooltip/Tootip.d.ts +0 -10
  379. package/dist/components/UserCard/UserCard.d.ts +0 -12
  380. package/dist/exports/Autocomplete.d.ts +0 -1
  381. package/dist/exports/Avatar.d.ts +0 -1
  382. package/dist/exports/Button.d.ts +0 -2
  383. package/dist/exports/CardProfile.d.ts +0 -3
  384. package/dist/exports/CheckBox.d.ts +0 -2
  385. package/dist/exports/DatePicker.d.ts +0 -3
  386. package/dist/exports/DialogModal.d.ts +0 -2
  387. package/dist/exports/DrawerDesktop.d.ts +0 -4
  388. package/dist/exports/DrawerMobile.d.ts +0 -4
  389. package/dist/exports/DropZone.d.ts +0 -3
  390. package/dist/exports/FAButton.d.ts +0 -1
  391. package/dist/exports/Header.d.ts +0 -2
  392. package/dist/exports/Icons.d.ts +0 -1
  393. package/dist/exports/Image.d.ts +0 -1
  394. package/dist/exports/ImageGallery.d.ts +0 -2
  395. package/dist/exports/Input.d.ts +0 -2
  396. package/dist/exports/InputMultiple.d.ts +0 -3
  397. package/dist/exports/LayoutGeneric.d.ts +0 -2
  398. package/dist/exports/Logo.d.ts +0 -1
  399. package/dist/exports/Menu.d.ts +0 -3
  400. package/dist/exports/OtpInput.d.ts +0 -2
  401. package/dist/exports/Pagination.d.ts +0 -2
  402. package/dist/exports/ProfilePictureUpload.d.ts +0 -3
  403. package/dist/exports/ProgressBar.d.ts +0 -2
  404. package/dist/exports/RadioButton.d.ts +0 -3
  405. package/dist/exports/RecurrentDatePicker.d.ts +0 -5
  406. package/dist/exports/RecurrentDatePickerRRule.d.ts +0 -2
  407. package/dist/exports/Scrollable.d.ts +0 -2
  408. package/dist/exports/SegmentedButton.d.ts +0 -3
  409. package/dist/exports/Select.d.ts +0 -5
  410. package/dist/exports/SelectSearch.d.ts +0 -3
  411. package/dist/exports/Skeleton.d.ts +0 -3
  412. package/dist/exports/Spinner.d.ts +0 -3
  413. package/dist/exports/Steps.d.ts +0 -3
  414. package/dist/exports/SwipeContainer.d.ts +0 -1
  415. package/dist/exports/Switch.d.ts +0 -3
  416. package/dist/exports/TabLinks.d.ts +0 -1
  417. package/dist/exports/Table.d.ts +0 -1
  418. package/dist/exports/TextArea.d.ts +0 -1
  419. package/dist/exports/Toast.d.ts +0 -3
  420. package/dist/exports/ToastProvider.d.ts +0 -2
  421. package/dist/exports/Tooltip.d.ts +0 -2
  422. package/dist/exports/useDevice.d.ts +0 -1
  423. package/dist/hooks/useClickOutside.d.ts +0 -8
  424. package/dist/hooks/useDevice.d.ts +0 -1
  425. package/dist/hooks/useDragScroll.d.ts +0 -29
  426. package/dist/hooks/useLabelBackground.d.ts +0 -6
  427. package/dist/iconUtils-D0lVAgGT.js +0 -5
  428. package/dist/index-BOQuZ0gG.js +0 -34
  429. package/dist/index.d.ts +0 -104
  430. package/dist/jsx-runtime-GkKLlHH4.js +0 -263
  431. package/dist/lib/cn.d.ts +0 -2
  432. package/dist/lib/utils.d.ts +0 -3
  433. package/dist/prometeo-design-system.es.js +0 -996
  434. package/dist/styles.css +0 -1
  435. package/dist/styles.d.ts +0 -1
  436. package/dist/useDevice.d.ts +0 -2
  437. package/dist/useDevice.es.js +0 -13
  438. package/dist/useDragScroll-CHN9OMwn.js +0 -165
  439. package/dist/useLabelBackground-BDIHUdND.js +0 -26
  440. package/dist/vite.svg +0 -1
@@ -1,124 +0,0 @@
1
- import { Ticket } from './components/Ticket';
2
- import { Home } from './components/Home';
3
- import { Boards } from './components/Boards';
4
- import { Notifications } from './components/Notifications';
5
- import { Help } from './components/Help';
6
- import { Settings } from './components/Settings';
7
- import { CrevronLeft } from './components/CrevronLeft';
8
- import { CrevronRight } from './components/CrevronRight';
9
- import { ArrowLeft } from './components/ArrowLeft';
10
- import { Shared } from './components/Shared';
11
- import { ChevronDown } from './components/ChevronDown';
12
- import { Collapse } from './components/Collapse';
13
- import { Calendar } from './components/Calendar';
14
- import { Close } from './components/Close';
15
- import { UserPerson } from './components/UserPerson';
16
- import { Logout } from './components/Logout';
17
- import { ArrowUpDown } from './components/ArrowUpDown';
18
- import { Filter } from './components/Filter';
19
- import { Search } from './components/Search';
20
- import { Stars } from './components/Stars';
21
- import { MoreVert } from './components/MoreVert';
22
- import { Add } from './components/Add';
23
- import { Edit } from './components/Edit';
24
- import { Upload } from './components/Upload';
25
- import { Copy } from './components/Copy';
26
- import { FaLock } from './components/FaLock';
27
- import { AccountCircle } from './components/AccountCircle';
28
- import { UserAdd } from './components/UserAdd';
29
- import { AttachFile } from './components/AttachFile';
30
- import { HistoryActivity } from './components/HistoryActivity';
31
- import { MessageSquare } from './components/MessageSquare';
32
- import { CloseNavBarDesktop } from './components/CloseNavBarDesktop';
33
- import { EyeVisibility } from './components/EyeVisibility';
34
- import { EyeVisibilityOff } from './components/EyeVisibilityOff';
35
- import { Check } from './components/Check';
36
- import { Info } from './components/Info';
37
- import { Error } from './components/Error';
38
- import { TicketFilled } from './components/TicketFilled';
39
- import { UploadCloud } from './components/UploadCloud';
40
- import { Clock } from './components/Clock';
41
- import { Pause } from './components/Pause';
42
- import { FastForward } from './components/FastForward';
43
- import { Trash } from './components/Trash';
44
- import { Sort } from './components/Sort';
45
- import { Cancel } from './components/Cancel';
46
- import { CheckCircle } from './components/CheckCircle';
47
- import { FormatColorText } from './components/FormatColorText';
48
- import { CheckList } from './components/CheckList';
49
- import { WhatsApp } from './components/WhatsApp';
50
- import { File } from './components/File';
51
- import { Email } from './components/Email';
52
- import { Download } from './components/Download';
53
- import { Reload } from './components/Reload';
54
- import { Image } from './components/Image';
55
- import { DocumentFill } from './components/DocumentFill';
56
- import { Company } from './components/Company';
57
- import { EditFill } from './components/EditFill';
58
- import { TrashFill } from './components/TrashFill';
59
- import { MessageSquareFill } from './components/MessageSquareFill';
60
- import { UserAddFill } from './components/UserAddFill';
61
- export type IconsMap = {
62
- Ticket: typeof Ticket;
63
- Home: typeof Home;
64
- Boards: typeof Boards;
65
- Notifications: typeof Notifications;
66
- Help: typeof Help;
67
- Settings: typeof Settings;
68
- CrevronLeft: typeof CrevronLeft;
69
- CrevronRight: typeof CrevronRight;
70
- ArrowLeft: typeof ArrowLeft;
71
- Shared: typeof Shared;
72
- ChevronDown: typeof ChevronDown;
73
- Collapse: typeof Collapse;
74
- Calendar: typeof Calendar;
75
- Close: typeof Close;
76
- UserPerson: typeof UserPerson;
77
- Logout: typeof Logout;
78
- ArrowUpDown: typeof ArrowUpDown;
79
- Filter: typeof Filter;
80
- Search: typeof Search;
81
- Stars: typeof Stars;
82
- MoreVert: typeof MoreVert;
83
- Add: typeof Add;
84
- Edit: typeof Edit;
85
- Upload: typeof Upload;
86
- Copy: typeof Copy;
87
- FaLock: typeof FaLock;
88
- AccountCircle: typeof AccountCircle;
89
- UserAdd: typeof UserAdd;
90
- AttachFile: typeof AttachFile;
91
- HistoryActivity: typeof HistoryActivity;
92
- MessageSquare: typeof MessageSquare;
93
- CloseNavBarDesktop: typeof CloseNavBarDesktop;
94
- EyeVisibility: typeof EyeVisibility;
95
- EyeVisibilityOff: typeof EyeVisibilityOff;
96
- Check: typeof Check;
97
- Info: typeof Info;
98
- Error: typeof Error;
99
- TicketFilled: typeof TicketFilled;
100
- UploadCloud: typeof UploadCloud;
101
- Clock: typeof Clock;
102
- Pause: typeof Pause;
103
- FastForward: typeof FastForward;
104
- Trash: typeof Trash;
105
- Sort: typeof Sort;
106
- Cancel: typeof Cancel;
107
- CheckCircle: typeof CheckCircle;
108
- FormatColorText: typeof FormatColorText;
109
- CheckList: typeof CheckList;
110
- WhatsApp: typeof WhatsApp;
111
- File: typeof File;
112
- Email: typeof Email;
113
- Download: typeof Download;
114
- Reload: typeof Reload;
115
- Image: typeof Image;
116
- DocumentFill: typeof DocumentFill;
117
- Company: typeof Company;
118
- EditFill: typeof EditFill;
119
- TrashFill: typeof TrashFill;
120
- MessageSquareFill: typeof MessageSquareFill;
121
- UserAddFill: typeof UserAddFill;
122
- };
123
- export type IconName = keyof IconsMap;
124
- export type IconComponent = IconsMap[IconName];
package/dist/Icons.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './exports/Icons'
2
- export {}
package/dist/Icons.es.js DELETED
@@ -1,122 +0,0 @@
1
- import { Ticket as e } from "./Icons/Ticket.es.js";
2
- import { Home as p } from "./Icons/Home.es.js";
3
- import { Boards as m } from "./Icons/Boards.es.js";
4
- import { Notifications as l } from "./Icons/Notifications.es.js";
5
- import { Help as a } from "./Icons/Help.es.js";
6
- import { Settings as d } from "./Icons/Settings.es.js";
7
- import { CrevronLeft as c } from "./Icons/CrevronLeft.es.js";
8
- import { CrevronRight as F } from "./Icons/CrevronRight.es.js";
9
- import { ArrowLeft as A } from "./Icons/ArrowLeft.es.js";
10
- import { Shared as y } from "./Icons/Shared.es.js";
11
- import { ChevronDown as S } from "./Icons/ChevronDown.es.js";
12
- import { Collapse as w } from "./Icons/Collapse.es.js";
13
- import { Calendar as U } from "./Icons/Calendar.es.js";
14
- import { Close as D } from "./Icons/Close.es.js";
15
- import { UserPerson as T } from "./Icons/UserPerson.es.js";
16
- import { Logout as M } from "./Icons/Logout.es.js";
17
- import { ArrowUpDown as b } from "./Icons/ArrowUpDown.es.js";
18
- import { Filter as B } from "./Icons/Filter.es.js";
19
- import { Search as N } from "./Icons/Search.es.js";
20
- import { Stars as R } from "./Icons/Stars.es.js";
21
- import { MoreVert as W } from "./Icons/MoreVert.es.js";
22
- import { Add as z } from "./Icons/Add.es.js";
23
- import { Edit as J } from "./Icons/Edit.es.js";
24
- import { Upload as Q } from "./Icons/Upload.es.js";
25
- import { Copy as Y } from "./Icons/Copy.es.js";
26
- import { FaLock as _ } from "./Icons/FaLock.es.js";
27
- import { AccountCircle as oo } from "./Icons/AccountCircle.es.js";
28
- import { UserAdd as eo } from "./Icons/UserAdd.es.js";
29
- import { AttachFile as po } from "./Icons/AttachFile.es.js";
30
- import { HistoryActivity as mo } from "./Icons/HistoryActivity.es.js";
31
- import { MessageSquare as lo } from "./Icons/MessageSquare.es.js";
32
- import { CloseNavBarDesktop as ao } from "./Icons/CloseNavBarDesktop.es.js";
33
- import { EyeVisibility as Co } from "./Icons/EyeVisibility.es.js";
34
- import { EyeVisibilityOff as no } from "./Icons/EyeVisibilityOff.es.js";
35
- import { Check as ho } from "./Icons/Check.es.js";
36
- import { Info as ko } from "./Icons/Info.es.js";
37
- import { Error as uo } from "./Icons/Error.es.js";
38
- import { TicketFilled as go } from "./Icons/TicketFilled.es.js";
39
- import { UploadCloud as Eo } from "./Icons/UploadCloud.es.js";
40
- import { Clock as vo } from "./Icons/Clock.es.js";
41
- import { Pause as Lo } from "./Icons/Pause.es.js";
42
- import { FastForward as Ho } from "./Icons/FastForward.es.js";
43
- import { Trash as Vo } from "./Icons/Trash.es.js";
44
- import { Sort as qo } from "./Icons/Sort.es.js";
45
- import { Cancel as Io } from "./Icons/Cancel.es.js";
46
- import { CheckCircle as Po } from "./Icons/CheckCircle.es.js";
47
- import { FormatColorText as Oo } from "./Icons/FormatColorText.es.js";
48
- import { CheckList as jo } from "./Icons/CheckList.es.js";
49
- import { WhatsApp as Go } from "./Icons/WhatsApp.es.js";
50
- import { File as Ko } from "./Icons/File.es.js";
51
- import { Email as Xo } from "./Icons/Email.es.js";
52
- import { Download as Zo } from "./Icons/Download.es.js";
53
- import { Reload as $o } from "./Icons/Reload.es.js";
54
- import { Image as rr } from "./Icons/Image.es.js";
55
- import { DocumentFill as tr } from "./Icons/DocumentFill.es.js";
56
- import { Company as fr } from "./Icons/Company.es.js";
57
- import { EditFill as xr } from "./Icons/EditFill.es.js";
58
- import { TrashFill as ir } from "./Icons/TrashFill.es.js";
59
- import { MessageSquareFill as sr } from "./Icons/MessageSquareFill.es.js";
60
- import { UserAddFill as Cr } from "./Icons/UserAddFill.es.js";
61
- export {
62
- oo as AccountCircle,
63
- z as Add,
64
- A as ArrowLeft,
65
- b as ArrowUpDown,
66
- po as AttachFile,
67
- m as Boards,
68
- U as Calendar,
69
- Io as Cancel,
70
- ho as Check,
71
- Po as CheckCircle,
72
- jo as CheckList,
73
- S as ChevronDown,
74
- vo as Clock,
75
- D as Close,
76
- ao as CloseNavBarDesktop,
77
- w as Collapse,
78
- fr as Company,
79
- Y as Copy,
80
- c as CrevronLeft,
81
- F as CrevronRight,
82
- tr as DocumentFill,
83
- Zo as Download,
84
- J as Edit,
85
- xr as EditFill,
86
- Xo as Email,
87
- uo as Error,
88
- Co as EyeVisibility,
89
- no as EyeVisibilityOff,
90
- _ as FaLock,
91
- Ho as FastForward,
92
- Ko as File,
93
- B as Filter,
94
- Oo as FormatColorText,
95
- a as Help,
96
- mo as HistoryActivity,
97
- p as Home,
98
- rr as Image,
99
- ko as Info,
100
- M as Logout,
101
- lo as MessageSquare,
102
- sr as MessageSquareFill,
103
- W as MoreVert,
104
- l as Notifications,
105
- Lo as Pause,
106
- $o as Reload,
107
- N as Search,
108
- d as Settings,
109
- y as Shared,
110
- qo as Sort,
111
- R as Stars,
112
- e as Ticket,
113
- go as TicketFilled,
114
- Vo as Trash,
115
- ir as TrashFill,
116
- Q as Upload,
117
- Eo as UploadCloud,
118
- eo as UserAdd,
119
- Cr as UserAddFill,
120
- T as UserPerson,
121
- Go as WhatsApp
122
- };
package/dist/Image.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export {}
2
- import PrometeoDesignSystem from './exports/Image'
3
- export default PrometeoDesignSystem
4
- export {}
package/dist/Image.es.js DELETED
@@ -1,91 +0,0 @@
1
- import { j as n } from "./jsx-runtime-GkKLlHH4.js";
2
- import { memo as P, useState as x, useRef as E, useCallback as w, useEffect as N } from "react";
3
- import R from "./Spinner.es.js";
4
- import { c as u } from "./cn-B6yFEsav.js";
5
- import M from "./Skeleton.es.js";
6
- const S = (s, e) => {
7
- if (s.src !== e.src || s.alt !== e.alt || s.width !== e.width || s.height !== e.height || s.className !== e.className || s.lazy !== e.lazy || s.showLoader !== e.showLoader || s.allowPreview !== e.allowPreview) return !1;
8
- const r = s.loaderProps, a = e.loaderProps;
9
- return !(r !== a && (!r || !a || r.loaderType !== a.loaderType || r.variant !== a.variant || r.speedMultiplier !== a.speedMultiplier || r.className !== a.className || r.size !== a.size || r.backdropClassName !== a.backdropClassName));
10
- }, T = P(
11
- (s) => {
12
- const { src: e, alt: r, width: a, height: c, className: f, lazy: b = !0, showLoader: y = !0, loaderProps: k, allowPreview: t = !1, galleryRef: l } = s, { variant: I = "clip", speedMultiplier: v = 0.7, className: j, backdropClassName: C, loaderType: d = "clasic" } = k || {}, [L, m] = x(!0), g = E(!1), h = w((i) => {
13
- const o = new Image();
14
- o.src = i, o.onload = () => {
15
- m(!1);
16
- }, o.onerror = () => {
17
- m(!1);
18
- };
19
- }, []);
20
- N(() => {
21
- h(e);
22
- }, [e, h]), N(() => {
23
- l?.current && !g.current && (l.current.addImage({ src: e, alt: r, width: a, height: c, className: f }), g.current = !0);
24
- }, [l, e, r, a, c, f]);
25
- const p = w(() => {
26
- if (t && l?.current) {
27
- const o = l.current.images.findIndex((z) => z.src === e);
28
- l.current.openLightbox(o >= 0 ? o : 0);
29
- }
30
- }, [t, l, e]);
31
- return (
32
- // biome-ignore lint/a11y/noStaticElementInteractions: false positive
33
- /* @__PURE__ */ n.jsxs(
34
- "div",
35
- {
36
- className: u(
37
- "relative rounded-2xl overflow-hidden select-none",
38
- t && l && "cursor-pointer hover:brightness-75 transition-all ease-in-out duration-300",
39
- f
40
- ),
41
- style: {
42
- width: a,
43
- height: c,
44
- minWidth: a,
45
- minHeight: c
46
- },
47
- onClick: p,
48
- role: t ? "button" : void 0,
49
- tabIndex: t ? 0 : void 0,
50
- onKeyDown: t ? (i) => {
51
- (i.key === "Enter" || i.key === " ") && (i.preventDefault(), p());
52
- } : void 0,
53
- children: [
54
- /* @__PURE__ */ n.jsx(
55
- "img",
56
- {
57
- draggable: !1,
58
- src: e,
59
- alt: r,
60
- className: u("object-cover", f, "w-full h-full"),
61
- loading: b ? "lazy" : "eager"
62
- }
63
- ),
64
- L && y && /* @__PURE__ */ n.jsx(
65
- "div",
66
- {
67
- className: u(
68
- "absolute grid place-items-center",
69
- "inset-0",
70
- d === "skeleton" ? "bg-inherit" : "bg-black/30",
71
- C
72
- ),
73
- children: d === "clasic" ? /* @__PURE__ */ n.jsx(R, { variant: I, speedMultiplier: v, className: j }) : /* @__PURE__ */ n.jsx(
74
- M,
75
- {
76
- className: "w-full h-full z-100"
77
- }
78
- )
79
- }
80
- )
81
- ]
82
- }
83
- )
84
- );
85
- },
86
- S
87
- );
88
- T.displayName = "Image";
89
- export {
90
- T as default
91
- };
@@ -1,319 +0,0 @@
1
- import { j as t } from "./jsx-runtime-GkKLlHH4.js";
2
- import Q, { memo as M, forwardRef as A, useRef as v, useEffect as ee, useCallback as i, useState as R, useImperativeHandle as te } from "react";
3
- import { c as X } from "./cn-B6yFEsav.js";
4
- import { u as re } from "./useDragScroll-CHN9OMwn.js";
5
- import S from "./Button.es.js";
6
- import { Close as ne } from "./Icons/Close.es.js";
7
- import { CrevronLeft as se } from "./Icons/CrevronLeft.es.js";
8
- import { CrevronRight as ae } from "./Icons/CrevronRight.es.js";
9
- const L = M(A(({ images: r, className: c }, n) => {
10
- const { ref: d, bind: a } = re({
11
- axis: "x",
12
- friction: 0.9,
13
- minVelocity: 0.5,
14
- startMomentumThreshold: 1,
15
- momentum: !0,
16
- clickThreshold: 5,
17
- cursor: { idle: "default", dragging: "grabbing" },
18
- preventTextSelection: !0
19
- });
20
- return /* @__PURE__ */ t.jsx(
21
- "section",
22
- {
23
- ref: d,
24
- className: X("flex gap-4 w-full overflow-x-auto py-2 relative", c),
25
- onPointerDown: a.onPointerDown,
26
- onPointerMove: a.onPointerMove,
27
- onPointerUp: a.onPointerUp,
28
- onPointerLeave: a.onPointerLeave,
29
- onPointerCancel: a.onPointerCancel,
30
- onClickCapture: a.onClickCapture,
31
- "aria-label": "Image gallery",
32
- children: r && r.length > 0 && r.map((l, o) => Q.cloneElement(l, {
33
- key: l.props.src || o,
34
- ...l.props,
35
- galleryRef: n,
36
- allowPreview: !0
37
- }))
38
- }
39
- );
40
- }));
41
- L.displayName = "GalleryPreview";
42
- const O = M(({ images: r, lightboxClassName: c, closeLightbox: n, showThumbnails: d, thumbnailsClassName: a, currentIndex: l, goToNext: o, goToPrevious: s, goToIndex: N }) => {
43
- const h = v(null), y = v(null), w = v(null), m = v({
44
- scale: 1,
45
- translateX: 0,
46
- translateY: 0
47
- }), u = v({
48
- startX: 0,
49
- startY: 0,
50
- isDragging: !1,
51
- distanceX: 0,
52
- distanceY: 0
53
- });
54
- ee(() => {
55
- w.current && w.current.focus();
56
- }, []);
57
- const k = i((e) => {
58
- e.preventDefault(), e.stopPropagation(), e.key === "Escape" ? n() : e.key === "ArrowLeft" ? s() : e.key === "ArrowRight" && o();
59
- }, [n, s, o]), P = i((e) => {
60
- u.current = { startX: e.touches[0].clientX, startY: e.touches[0].clientY, isDragging: !0, distanceX: 0, distanceY: 0 };
61
- }, []), j = i((e) => {
62
- const g = e.touches[0];
63
- u.current = { ...u.current, isDragging: !0, distanceX: g.clientX - u.current.startX, distanceY: g.clientY - u.current.startY };
64
- }, []), z = i(() => {
65
- u.current = { ...u.current, startX: 0, startY: 0, isDragging: !1 }, Math.abs(u.current.distanceX) > Math.abs(u.current.distanceY) && (u.current.distanceX < 0 ? o() : s());
66
- }, [o, s]), C = i(() => {
67
- const e = h.current;
68
- if (!e) return;
69
- const { scale: g, translateX: p, translateY: I } = m.current;
70
- e.style.transform = `scale(${g}) translate(${p}px, ${I}px)`, e.style.transformOrigin = "center center", e.style.transition = "transform 0.1s ease-out";
71
- }, []), b = i(() => {
72
- m.current = { scale: 1, translateX: 0, translateY: 0 }, h.current && (h.current.style.transform = "scale(1) translate(0px, 0px)", h.current.style.transformOrigin = "center center");
73
- }, []), f = i((e) => {
74
- const g = h.current, p = y.current;
75
- if (!g || !p) return;
76
- if (e.shiftKey) {
77
- e.deltaY < 0 ? o() : e.deltaY > 0 && s();
78
- return;
79
- }
80
- const I = 2e-3, D = 1, B = 8, F = -e.deltaY * I, E = m.current.scale;
81
- let x = E + F;
82
- if (x = Math.max(D, Math.min(B, x)), x === D) {
83
- b();
84
- return;
85
- }
86
- const Y = p.getBoundingClientRect(), G = e.clientX - Y.left, W = e.clientY - Y.top, H = Y.width / 2, K = Y.height / 2, $ = G - H, q = W - K, T = x / E, U = m.current.translateX, V = m.current.translateY, Z = U - $ * (T - 1) / x, J = V - q * (T - 1) / x;
87
- m.current = {
88
- scale: x,
89
- translateX: Z,
90
- translateY: J
91
- }, C();
92
- }, [o, s, C, b]);
93
- return r.length === 0 ? null : /* @__PURE__ */ t.jsxs(
94
- "div",
95
- {
96
- ref: w,
97
- className: X("fixed inset-0 z-50 bg-black/90 flex items-center justify-center lg:px-16", c),
98
- onClick: n,
99
- onKeyDown: k,
100
- onTouchStart: P,
101
- onTouchMove: j,
102
- onTouchEnd: z,
103
- tabIndex: 0,
104
- role: "dialog",
105
- "aria-modal": "true",
106
- children: [
107
- /* @__PURE__ */ t.jsx("div", { className: "absolute top-4 right-4 z-110", children: /* @__PURE__ */ t.jsx(
108
- S,
109
- {
110
- variant: "text",
111
- color: "secondary",
112
- size: "small",
113
- onClick: n,
114
- className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
115
- "aria-label": "Close gallery",
116
- children: /* @__PURE__ */ t.jsx(ne, { size: 24 })
117
- }
118
- ) }),
119
- r.length > 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
120
- /* @__PURE__ */ t.jsx(
121
- "div",
122
- {
123
- className: "absolute left-0 lg:h-full items-center flex justify-center w-16 z-100 cursor-w-resize",
124
- onClick: (e) => {
125
- e.stopPropagation(), s();
126
- },
127
- children: /* @__PURE__ */ t.jsx(
128
- S,
129
- {
130
- variant: "text",
131
- color: "secondary",
132
- size: "small",
133
- onClick: (e) => {
134
- e.stopPropagation(), s();
135
- },
136
- className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
137
- "aria-label": "Previous image",
138
- children: /* @__PURE__ */ t.jsx(se, { size: 24 })
139
- }
140
- )
141
- }
142
- ),
143
- /* @__PURE__ */ t.jsx(
144
- "div",
145
- {
146
- className: "absolute right-0 lg:h-full items-center flex justify-center w-16 z-100 cursor-e-resize",
147
- onClick: (e) => {
148
- e.stopPropagation(), o();
149
- },
150
- children: /* @__PURE__ */ t.jsx(
151
- S,
152
- {
153
- variant: "text",
154
- color: "secondary",
155
- size: "small",
156
- onClick: (e) => {
157
- e.stopPropagation(), o();
158
- },
159
- className: "text-white! hover:text-gray-300! w-auto! h-auto! p-2!",
160
- "aria-label": "Next image",
161
- children: /* @__PURE__ */ t.jsx(ae, { size: 24 })
162
- }
163
- )
164
- }
165
- )
166
- ] }),
167
- /* @__PURE__ */ t.jsx(
168
- "div",
169
- {
170
- ref: y,
171
- onClick: (e) => e.stopPropagation(),
172
- className: "relative max-w-[90vw] max-h-[98vh] mx-auto flex flex-col w-max lg:h-full h-max",
173
- onWheel: f,
174
- children: /* @__PURE__ */ t.jsx(
175
- "div",
176
- {
177
- className: "max-h-[98vh] relative overflow-hidden w-full h-full",
178
- style: {
179
- animation: "galleryFadeIn 0.6s ease-in-out"
180
- },
181
- ref: h,
182
- children: /* @__PURE__ */ t.jsx(
183
- "img",
184
- {
185
- src: r[l].src,
186
- alt: r[l].alt,
187
- className: X(
188
- " w-full h-full object-contain select-none",
189
- "prometeo-lightbox-image"
190
- ),
191
- onLoad: () => b()
192
- }
193
- )
194
- },
195
- l
196
- )
197
- }
198
- ),
199
- d && /* @__PURE__ */ t.jsx("div", { className: " w-full absolute items-center flex justify-center left-0 right-0 z-100 bottom-0", children: /* @__PURE__ */ t.jsx(_, { images: r, currentIndex: l, goToIndex: N, thumbnailsClassName: a }) }),
200
- r.length > 1 && /* @__PURE__ */ t.jsxs("div", { className: "absolute bottom-20 left-1/2 transform -translate-x-1/2 text-neutral-default-default prometeo-fonts-label-xlarge px-4 py-2 rounded-full", children: [
201
- l + 1,
202
- " / ",
203
- r.length
204
- ] })
205
- ]
206
- }
207
- );
208
- });
209
- O.displayName = "LightBox";
210
- const le = (r, c) => {
211
- if (r.currentIndex !== c.currentIndex || r.thumbnailsClassName !== c.thumbnailsClassName || r.images.length !== c.images.length) return !1;
212
- for (let n = 0; n < r.images.length; n++)
213
- if (r.images[n].src !== c.images[n].src) return !1;
214
- return !0;
215
- }, _ = M(({ images: r, currentIndex: c, goToIndex: n, thumbnailsClassName: d }) => /* @__PURE__ */ t.jsxs(
216
- "div",
217
- {
218
- className: "flex gap-4 w-max overflow-x-auto overflow-y-visible max-w-full px-16 py-4",
219
- style: {
220
- scrollbarWidth: "none",
221
- msOverflowStyle: "none",
222
- WebkitOverflowScrolling: "touch"
223
- },
224
- children: [
225
- /* @__PURE__ */ t.jsx("style", { children: `
226
- .flex.gap-4.w-max::-webkit-scrollbar {
227
- display: none;
228
- }
229
- ` }),
230
- r.map((a, l) => /* @__PURE__ */ t.jsx(
231
- "button",
232
- {
233
- type: "button",
234
- onClick: (o) => {
235
- o.stopPropagation(), n(l);
236
- },
237
- className: X(
238
- "w-16 h-16 aspect-square min-w-16 rounded overflow-hidden transition-all duration-300 hover:scale-125 cursor-pointer",
239
- d,
240
- l === c ? "scale-110" : ""
241
- ),
242
- children: /* @__PURE__ */ t.jsx(
243
- "img",
244
- {
245
- src: a.src,
246
- alt: a.alt,
247
- className: "w-full h-full object-cover select-none"
248
- }
249
- )
250
- },
251
- a.src
252
- ))
253
- ]
254
- }
255
- ), le);
256
- _.displayName = "Thumbnails";
257
- const oe = A(
258
- (r, c) => {
259
- const {
260
- children: n,
261
- className: d,
262
- lightboxClassName: a,
263
- showThumbnails: l,
264
- thumbnailsClassName: o
265
- } = r, [s, N] = R([]), [h, y] = R(!1), [w, m] = R(0), u = n ? Array.isArray(n) ? n : [n] : [], k = i((f) => {
266
- N((e) => e.some((p) => p.src === f.src) ? e : [...e, f]);
267
- }, []), P = i((f = 0) => {
268
- m(f), y(!0);
269
- }, []), j = i(() => {
270
- y(!1);
271
- }, []);
272
- te(
273
- c,
274
- () => ({
275
- openLightbox: P,
276
- closeLightbox: j,
277
- isOpen: h,
278
- addImage: k,
279
- images: s
280
- }),
281
- [s]
282
- );
283
- const z = i(() => {
284
- m((f) => (f + 1) % s.length);
285
- }, [s.length]), C = i(() => {
286
- m((f) => (f - 1 + s.length) % s.length);
287
- }, [s.length]), b = i((f) => {
288
- m(f);
289
- }, []);
290
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
291
- /* @__PURE__ */ t.jsx(
292
- L,
293
- {
294
- images: u,
295
- className: d,
296
- ref: c
297
- }
298
- ),
299
- h && /* @__PURE__ */ t.jsx(
300
- O,
301
- {
302
- images: s,
303
- closeLightbox: j,
304
- showThumbnails: l,
305
- lightboxClassName: a,
306
- thumbnailsClassName: o,
307
- currentIndex: w,
308
- goToNext: z,
309
- goToPrevious: C,
310
- goToIndex: b
311
- }
312
- )
313
- ] });
314
- }
315
- );
316
- oe.displayName = "ImageGallery";
317
- export {
318
- oe as I
319
- };
@@ -1,6 +0,0 @@
1
- export * from './exports/ImageGallery'
2
- export {}
3
- import PrometeoDesignSystem from './exports/ImageGallery'
4
- export default PrometeoDesignSystem
5
- export * from './exports/ImageGallery'
6
- export {}