analytica-frontend-lib 1.2.25 → 1.2.29

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 (355) hide show
  1. package/dist/Accordation/index.d.ts +4 -5
  2. package/dist/Accordation/index.d.ts.map +1 -0
  3. package/dist/ActivityDetails/index.css +19293 -0
  4. package/dist/ActivityDetails/index.css.map +1 -0
  5. package/dist/ActivityDetails/index.d.ts +31 -0
  6. package/dist/ActivityDetails/index.d.ts.map +1 -0
  7. package/dist/ActivityDetails/index.js +7389 -0
  8. package/dist/ActivityDetails/index.js.map +1 -0
  9. package/dist/ActivityDetails/index.mjs +7438 -0
  10. package/dist/ActivityDetails/index.mjs.map +1 -0
  11. package/dist/ActivityFilters/index.css +112 -0
  12. package/dist/ActivityFilters/index.css.map +1 -1
  13. package/dist/ActivityFilters/index.d.ts +44 -5
  14. package/dist/ActivityFilters/index.d.ts.map +1 -0
  15. package/dist/ActivityFilters/index.js +67 -33
  16. package/dist/ActivityFilters/index.js.map +1 -1
  17. package/dist/ActivityFilters/index.mjs +89 -55
  18. package/dist/ActivityFilters/index.mjs.map +1 -1
  19. package/dist/Alert/index.d.ts +3 -5
  20. package/dist/Alert/index.d.ts.map +1 -0
  21. package/dist/AlertDialog/index.d.ts +2 -4
  22. package/dist/AlertDialog/index.d.ts.map +1 -0
  23. package/dist/AlertManager/index.css +112 -0
  24. package/dist/AlertManager/index.css.map +1 -1
  25. package/dist/AlertManager/index.d.ts +4 -8
  26. package/dist/AlertManager/index.d.ts.map +1 -0
  27. package/dist/AlertManager/index.js +56 -22
  28. package/dist/AlertManager/index.js.map +1 -1
  29. package/dist/AlertManager/index.mjs +78 -44
  30. package/dist/AlertManager/index.mjs.map +1 -1
  31. package/dist/AlertManagerView/index.d.ts +6 -10
  32. package/dist/AlertManagerView/index.d.ts.map +1 -0
  33. package/dist/Alternative/index.d.ts +6 -9
  34. package/dist/Alternative/index.d.ts.map +1 -0
  35. package/dist/Auth/AuthProvider/index.d.ts +324 -3
  36. package/dist/Auth/AuthProvider/index.d.ts.map +1 -0
  37. package/dist/Auth/ProtectedRoute/index.d.ts +324 -3
  38. package/dist/Auth/ProtectedRoute/index.d.ts.map +1 -0
  39. package/dist/Auth/PublicRoute/index.d.ts +324 -3
  40. package/dist/Auth/PublicRoute/index.d.ts.map +1 -0
  41. package/dist/Auth/getRootDomain/index.d.ts +324 -3
  42. package/dist/Auth/getRootDomain/index.d.ts.map +1 -0
  43. package/dist/Auth/index.d.ts +24 -26
  44. package/dist/Auth/index.d.ts.map +1 -0
  45. package/dist/Auth/useApiConfig/index.d.ts +3 -3
  46. package/dist/Auth/useApiConfig/index.d.ts.map +1 -0
  47. package/dist/Auth/useAuth/index.d.ts +324 -3
  48. package/dist/Auth/useAuth/index.d.ts.map +1 -0
  49. package/dist/Auth/useAuthGuard/index.d.ts +324 -3
  50. package/dist/Auth/useAuthGuard/index.d.ts.map +1 -0
  51. package/dist/Auth/useRouteAuth/index.d.ts +324 -3
  52. package/dist/Auth/useRouteAuth/index.d.ts.map +1 -0
  53. package/dist/Auth/useUrlAuthentication/index.d.ts +3 -4
  54. package/dist/Auth/useUrlAuthentication/index.d.ts.map +1 -0
  55. package/dist/Auth/withAuth/index.d.ts +324 -3
  56. package/dist/Auth/withAuth/index.d.ts.map +1 -0
  57. package/dist/Auth/zustandAuthAdapter/index.d.ts +2 -3
  58. package/dist/Auth/zustandAuthAdapter/index.d.ts.map +1 -0
  59. package/dist/Badge/index.d.ts +4 -6
  60. package/dist/Badge/index.d.ts.map +1 -0
  61. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts +5 -7
  62. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts.map +1 -0
  63. package/dist/BreadcrumbMenu/index.d.ts +4 -8
  64. package/dist/BreadcrumbMenu/index.d.ts.map +1 -0
  65. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts +7 -10
  66. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts.map +1 -0
  67. package/dist/BreadcrumbMenu/useUrlParams/index.d.ts +3 -4
  68. package/dist/BreadcrumbMenu/useUrlParams/index.d.ts.map +1 -0
  69. package/dist/Button/index.d.ts +4 -6
  70. package/dist/Button/index.d.ts.map +1 -0
  71. package/dist/Calendar/index.d.ts +9 -11
  72. package/dist/Calendar/index.d.ts.map +1 -0
  73. package/dist/Card/index.d.ts +17 -19
  74. package/dist/Card/index.d.ts.map +1 -0
  75. package/dist/CheckBox/index.d.ts +6 -8
  76. package/dist/CheckBox/index.d.ts.map +1 -0
  77. package/dist/Chips/index.d.ts +4 -6
  78. package/dist/Chips/index.d.ts.map +1 -0
  79. package/dist/CorrectActivityModal/index.d.ts +39 -0
  80. package/dist/CorrectActivityModal/index.d.ts.map +1 -0
  81. package/dist/CorrectActivityModal/index.js +3674 -0
  82. package/dist/CorrectActivityModal/index.js.map +1 -0
  83. package/dist/CorrectActivityModal/index.mjs +3689 -0
  84. package/dist/CorrectActivityModal/index.mjs.map +1 -0
  85. package/dist/Divider/index.d.ts +3 -5
  86. package/dist/Divider/index.d.ts.map +1 -0
  87. package/dist/DownloadButton/index.d.ts +5 -7
  88. package/dist/DownloadButton/index.d.ts.map +1 -0
  89. package/dist/DropdownMenu/index.d.ts +26 -28
  90. package/dist/DropdownMenu/index.d.ts.map +1 -0
  91. package/dist/EmptyState/index.d.ts +5 -7
  92. package/dist/EmptyState/index.d.ts.map +1 -0
  93. package/dist/FileAttachment/index.d.ts +72 -0
  94. package/dist/FileAttachment/index.d.ts.map +1 -0
  95. package/dist/FileAttachment/index.js +239 -0
  96. package/dist/FileAttachment/index.js.map +1 -0
  97. package/dist/FileAttachment/index.mjs +213 -0
  98. package/dist/FileAttachment/index.mjs.map +1 -0
  99. package/dist/IconButton/index.d.ts +6 -8
  100. package/dist/IconButton/index.d.ts.map +1 -0
  101. package/dist/IconRender/index.d.ts +5 -6
  102. package/dist/IconRender/index.d.ts.map +1 -0
  103. package/dist/IconRoundedButton/index.d.ts +4 -6
  104. package/dist/IconRoundedButton/index.d.ts.map +1 -0
  105. package/dist/Input/index.d.ts +5 -7
  106. package/dist/Input/index.d.ts.map +1 -0
  107. package/dist/LatexRenderer/index.d.ts +5 -6
  108. package/dist/LatexRenderer/index.d.ts.map +1 -0
  109. package/dist/LoadingModal/index.d.ts +3 -5
  110. package/dist/LoadingModal/index.d.ts.map +1 -0
  111. package/dist/Menu/index.d.ts +12 -14
  112. package/dist/Menu/index.d.ts.map +1 -0
  113. package/dist/Modal/index.d.ts +3 -5
  114. package/dist/Modal/index.d.ts.map +1 -0
  115. package/dist/Modal/utils/videoUtils/index.d.ts +4 -5
  116. package/dist/Modal/utils/videoUtils/index.d.ts.map +1 -0
  117. package/dist/MultipleChoice/index.d.ts +2 -4
  118. package/dist/MultipleChoice/index.d.ts.map +1 -0
  119. package/dist/NavButton/index.d.ts +5 -7
  120. package/dist/NavButton/index.d.ts.map +1 -0
  121. package/dist/NoSearchResult/index.d.ts +4 -6
  122. package/dist/NoSearchResult/index.d.ts.map +1 -0
  123. package/dist/NotFound/index.d.ts +4 -6
  124. package/dist/NotFound/index.d.ts.map +1 -0
  125. package/dist/NotificationCard/index.d.ts +218 -3
  126. package/dist/NotificationCard/index.d.ts.map +1 -0
  127. package/dist/ProgressBar/index.d.ts +4 -6
  128. package/dist/ProgressBar/index.d.ts.map +1 -0
  129. package/dist/ProgressCircle/index.d.ts +4 -6
  130. package/dist/ProgressCircle/index.d.ts.map +1 -0
  131. package/dist/Quiz/index.d.ts +19 -23
  132. package/dist/Quiz/index.d.ts.map +1 -0
  133. package/dist/Quiz/useQuizStore/index.d.ts +14 -17
  134. package/dist/Quiz/useQuizStore/index.d.ts.map +1 -0
  135. package/dist/Radio/index.d.ts +14 -15
  136. package/dist/Radio/index.d.ts.map +1 -0
  137. package/dist/Search/index.d.ts +4 -6
  138. package/dist/Search/index.d.ts.map +1 -0
  139. package/dist/Select/index.d.ts +12 -14
  140. package/dist/Select/index.d.ts.map +1 -0
  141. package/dist/SelectionButton/index.d.ts +5 -7
  142. package/dist/SelectionButton/index.d.ts.map +1 -0
  143. package/dist/Skeleton/index.d.ts +10 -12
  144. package/dist/Skeleton/index.d.ts.map +1 -0
  145. package/dist/StatisticsCard/index.d.ts +3 -5
  146. package/dist/StatisticsCard/index.d.ts.map +1 -0
  147. package/dist/Stepper/index.d.ts +6 -8
  148. package/dist/Stepper/index.d.ts.map +1 -0
  149. package/dist/SubjectInfo/index.d.ts +17 -2
  150. package/dist/SubjectInfo/index.d.ts.map +1 -0
  151. package/dist/Support/TicketModal/index.d.ts +14 -0
  152. package/dist/Support/TicketModal/index.d.ts.map +1 -0
  153. package/dist/Support/TicketModal/index.js +1279 -0
  154. package/dist/Support/TicketModal/index.js.map +1 -0
  155. package/dist/Support/TicketModal/index.mjs +1248 -0
  156. package/dist/Support/TicketModal/index.mjs.map +1 -0
  157. package/dist/Support/index.d.ts +8 -0
  158. package/dist/Support/index.d.ts.map +1 -0
  159. package/dist/Support/index.js +2686 -0
  160. package/dist/Support/index.js.map +1 -0
  161. package/dist/Support/index.mjs +2676 -0
  162. package/dist/Support/index.mjs.map +1 -0
  163. package/dist/Table/TablePagination/index.d.ts +4 -6
  164. package/dist/Table/TablePagination/index.d.ts.map +1 -0
  165. package/dist/Table/index.d.ts +18 -19
  166. package/dist/Table/index.d.ts.map +1 -0
  167. package/dist/TableProvider/index.css +112 -0
  168. package/dist/TableProvider/index.css.map +1 -1
  169. package/dist/TableProvider/index.d.ts +198 -4
  170. package/dist/TableProvider/index.d.ts.map +1 -0
  171. package/dist/TableProvider/index.js +56 -22
  172. package/dist/TableProvider/index.js.map +1 -1
  173. package/dist/TableProvider/index.mjs +78 -44
  174. package/dist/TableProvider/index.mjs.map +1 -1
  175. package/dist/Text/index.d.ts +4 -6
  176. package/dist/Text/index.d.ts.map +1 -0
  177. package/dist/TextArea/index.d.ts +6 -8
  178. package/dist/TextArea/index.d.ts.map +1 -0
  179. package/dist/ThemeToggle/index.d.ts +4 -8
  180. package/dist/ThemeToggle/index.d.ts.map +1 -0
  181. package/dist/Toast/ToastStore/index.d.ts +3 -5
  182. package/dist/Toast/ToastStore/index.d.ts.map +1 -0
  183. package/dist/Toast/Toaster/index.d.ts +4 -6
  184. package/dist/Toast/Toaster/index.d.ts.map +1 -0
  185. package/dist/Toast/index.d.ts +3 -5
  186. package/dist/Toast/index.d.ts.map +1 -0
  187. package/dist/VideoPlayer/index.d.ts +4 -6
  188. package/dist/VideoPlayer/index.d.ts.map +1 -0
  189. package/dist/Whiteboard/index.d.ts +5 -7
  190. package/dist/Whiteboard/index.d.ts.map +1 -0
  191. package/dist/assets/icons/subjects/BookOpenText.d.ts +5 -0
  192. package/dist/assets/icons/subjects/BookOpenText.d.ts.map +1 -0
  193. package/dist/assets/icons/subjects/ChatEN.d.ts +5 -0
  194. package/dist/assets/icons/subjects/ChatEN.d.ts.map +1 -0
  195. package/dist/assets/icons/subjects/ChatES.d.ts +5 -0
  196. package/dist/assets/icons/subjects/ChatES.d.ts.map +1 -0
  197. package/dist/assets/icons/subjects/ChatPT.d.ts +5 -0
  198. package/dist/assets/icons/subjects/ChatPT.d.ts.map +1 -0
  199. package/dist/assets/icons/subjects/HeadCircuit.d.ts +5 -0
  200. package/dist/assets/icons/subjects/HeadCircuit.d.ts.map +1 -0
  201. package/dist/assets/icons/subjects/Microscope.d.ts +5 -0
  202. package/dist/assets/icons/subjects/Microscope.d.ts.map +1 -0
  203. package/dist/enums/SubjectEnum.d.ts +19 -0
  204. package/dist/enums/SubjectEnum.d.ts.map +1 -0
  205. package/dist/hooks/useAppContent.d.ts +55 -0
  206. package/dist/hooks/useAppContent.d.ts.map +1 -0
  207. package/dist/hooks/useAppInitialization.d.ts +21 -0
  208. package/dist/hooks/useAppInitialization.d.ts.map +1 -0
  209. package/dist/hooks/useInstitution.d.ts +2 -0
  210. package/dist/hooks/useInstitution.d.ts.map +1 -0
  211. package/dist/hooks/useMobile/index.d.ts +4 -5
  212. package/dist/hooks/useMobile/index.d.ts.map +1 -0
  213. package/dist/hooks/useNotificationStore.d.ts +34 -0
  214. package/dist/hooks/useNotificationStore.d.ts.map +1 -0
  215. package/dist/hooks/useNotifications.d.ts +129 -0
  216. package/dist/hooks/useNotifications.d.ts.map +1 -0
  217. package/dist/hooks/useScreen.d.ts +38 -0
  218. package/dist/hooks/useScreen.d.ts.map +1 -0
  219. package/dist/hooks/useTheme/index.d.ts +4 -7
  220. package/dist/hooks/useTheme/index.d.ts.map +1 -0
  221. package/dist/index.css +112 -0
  222. package/dist/index.css.map +1 -1
  223. package/dist/index.d.ts +127 -789
  224. package/dist/index.d.ts.map +1 -0
  225. package/dist/index.js +9031 -7012
  226. package/dist/index.js.map +1 -1
  227. package/dist/index.mjs +9093 -7085
  228. package/dist/index.mjs.map +1 -1
  229. package/dist/store/appStore.d.ts +27 -0
  230. package/dist/store/appStore.d.ts.map +1 -0
  231. package/dist/store/authStore.d.ts +75 -0
  232. package/dist/store/authStore.d.ts.map +1 -0
  233. package/dist/store/notificationStore.d.ts +89 -0
  234. package/dist/store/notificationStore.d.ts.map +1 -0
  235. package/dist/{themeStore-P2X64zC-.d.ts → store/themeStore.d.ts} +8 -12
  236. package/dist/store/themeStore.d.ts.map +1 -0
  237. package/dist/styles.css +112 -0
  238. package/dist/styles.css.map +1 -1
  239. package/dist/suporthistory-W5LBGAUP.png +0 -0
  240. package/dist/types/activityDetails.d.ts +127 -0
  241. package/dist/types/activityDetails.d.ts.map +1 -0
  242. package/dist/types/activityFilters.d.ts +51 -0
  243. package/dist/types/activityFilters.d.ts.map +1 -0
  244. package/dist/types/auth.d.ts +53 -0
  245. package/dist/types/auth.d.ts.map +1 -0
  246. package/dist/types/notifications.d.ts +199 -0
  247. package/dist/types/notifications.d.ts.map +1 -0
  248. package/dist/types/questionTypes.d.ts +6 -0
  249. package/dist/types/questionTypes.d.ts.map +1 -0
  250. package/dist/types/studentActivityCorrection.d.ts +57 -0
  251. package/dist/types/studentActivityCorrection.d.ts.map +1 -0
  252. package/dist/types/support/index.d.ts +111 -0
  253. package/dist/types/support/index.d.ts.map +1 -0
  254. package/dist/types/support/index.js +115 -0
  255. package/dist/types/support/index.js.map +1 -0
  256. package/dist/types/support/index.mjs +84 -0
  257. package/dist/types/support/index.mjs.map +1 -0
  258. package/dist/utils/activityFilters.d.ts +23 -0
  259. package/dist/utils/activityFilters.d.ts.map +1 -0
  260. package/dist/utils/dropdown.d.ts +12 -0
  261. package/dist/utils/dropdown.d.ts.map +1 -0
  262. package/dist/utils/index.d.ts +6 -43
  263. package/dist/utils/index.d.ts.map +1 -0
  264. package/dist/utils/keys.d.ts +24 -0
  265. package/dist/utils/keys.d.ts.map +1 -0
  266. package/package.json +20 -4
  267. package/dist/Accordation/index.d.mts +0 -15
  268. package/dist/ActivityFilters/index.d.mts +0 -5
  269. package/dist/ActivityFilters-Cs3TpGAY.d.ts +0 -97
  270. package/dist/ActivityFilters-CsX8y41f.d.mts +0 -97
  271. package/dist/Alert/index.d.mts +0 -13
  272. package/dist/AlertDialog/index.d.mts +0 -36
  273. package/dist/AlertManager/index.d.mts +0 -17
  274. package/dist/AlertManagerView/index.d.mts +0 -31
  275. package/dist/Alternative/index.d.mts +0 -81
  276. package/dist/Auth/AuthProvider/index.d.mts +0 -3
  277. package/dist/Auth/ProtectedRoute/index.d.mts +0 -3
  278. package/dist/Auth/PublicRoute/index.d.mts +0 -3
  279. package/dist/Auth/getRootDomain/index.d.mts +0 -3
  280. package/dist/Auth/index.d.mts +0 -326
  281. package/dist/Auth/useApiConfig/index.d.mts +0 -43
  282. package/dist/Auth/useAuth/index.d.mts +0 -3
  283. package/dist/Auth/useAuthGuard/index.d.mts +0 -3
  284. package/dist/Auth/useRouteAuth/index.d.mts +0 -3
  285. package/dist/Auth/useUrlAuthentication/index.d.mts +0 -69
  286. package/dist/Auth/withAuth/index.d.mts +0 -3
  287. package/dist/Auth/zustandAuthAdapter/index.d.mts +0 -75
  288. package/dist/Badge/index.d.mts +0 -46
  289. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.mts +0 -77
  290. package/dist/BreadcrumbMenu/index.d.mts +0 -31
  291. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.mts +0 -48
  292. package/dist/BreadcrumbMenu/useUrlParams/index.d.mts +0 -28
  293. package/dist/Button/index.d.mts +0 -45
  294. package/dist/Calendar/index.d.mts +0 -60
  295. package/dist/Card/index.d.mts +0 -150
  296. package/dist/CheckBox/index.d.mts +0 -74
  297. package/dist/CheckBoxGroup-9n5C0OH4.d.mts +0 -24
  298. package/dist/CheckBoxGroup-9n5C0OH4.d.ts +0 -24
  299. package/dist/Chips/index.d.mts +0 -41
  300. package/dist/Divider/index.d.mts +0 -32
  301. package/dist/DownloadButton/index.d.mts +0 -46
  302. package/dist/DropdownMenu/index.d.mts +0 -82
  303. package/dist/EmptyState/index.d.mts +0 -65
  304. package/dist/IconButton/index.d.mts +0 -76
  305. package/dist/IconRender/index.d.mts +0 -36
  306. package/dist/IconRoundedButton/index.d.mts +0 -34
  307. package/dist/Input/index.d.mts +0 -27
  308. package/dist/LatexRenderer/index.d.mts +0 -50
  309. package/dist/LoadingModal/index.d.mts +0 -11
  310. package/dist/Menu/index.d.mts +0 -48
  311. package/dist/Modal/index.d.mts +0 -76
  312. package/dist/Modal/utils/videoUtils/index.d.mts +0 -28
  313. package/dist/MultipleChoice/index.d.mts +0 -20
  314. package/dist/NavButton/index.d.mts +0 -57
  315. package/dist/NoSearchResult/index.d.mts +0 -37
  316. package/dist/NotFound/index.d.mts +0 -58
  317. package/dist/NotificationCard/index.d.mts +0 -3
  318. package/dist/NotificationCard-4GgB0Nsf.d.mts +0 -417
  319. package/dist/NotificationCard-4GgB0Nsf.d.ts +0 -417
  320. package/dist/ProgressBar/index.d.mts +0 -95
  321. package/dist/ProgressCircle/index.d.mts +0 -60
  322. package/dist/Quiz/index.d.mts +0 -55
  323. package/dist/Quiz/useQuizStore/index.d.mts +0 -258
  324. package/dist/Radio/index.d.mts +0 -203
  325. package/dist/Search/index.d.mts +0 -27
  326. package/dist/Select/index.d.mts +0 -59
  327. package/dist/SelectionButton/index.d.mts +0 -57
  328. package/dist/Skeleton/index.d.mts +0 -40
  329. package/dist/StatisticsCard/index.d.mts +0 -79
  330. package/dist/Stepper/index.d.mts +0 -169
  331. package/dist/SubjectInfo/index.d.mts +0 -2
  332. package/dist/SubjectInfo-Dvt0OodP.d.mts +0 -37
  333. package/dist/SubjectInfo-Dvt0OodP.d.ts +0 -37
  334. package/dist/Table/TablePagination/index.d.mts +0 -64
  335. package/dist/Table/index.d.mts +0 -93
  336. package/dist/TableProvider/index.d.mts +0 -4
  337. package/dist/TableProvider-BnAnv3OV.d.mts +0 -239
  338. package/dist/TableProvider-GfPlLqzg.d.ts +0 -239
  339. package/dist/Text/index.d.mts +0 -58
  340. package/dist/TextArea/index.d.mts +0 -74
  341. package/dist/ThemeToggle/index.d.mts +0 -12
  342. package/dist/Toast/ToastStore/index.d.mts +0 -19
  343. package/dist/Toast/Toaster/index.d.mts +0 -16
  344. package/dist/Toast/index.d.mts +0 -17
  345. package/dist/VideoPlayer/index.d.mts +0 -52
  346. package/dist/Whiteboard/index.d.mts +0 -34
  347. package/dist/hooks/useMobile/index.d.mts +0 -29
  348. package/dist/hooks/useTheme/index.d.mts +0 -17
  349. package/dist/index.d.mts +0 -789
  350. package/dist/styles.d.mts +0 -2
  351. package/dist/styles.d.ts +0 -2
  352. package/dist/themeStore-P2X64zC-.d.mts +0 -79
  353. package/dist/types-DqZRjqxh.d.ts +0 -67
  354. package/dist/types-pd3QVhSu.d.mts +0 -67
  355. package/dist/utils/index.d.mts +0 -51
package/dist/index.d.mts DELETED
@@ -1,789 +0,0 @@
1
- export { default as Text } from './Text/index.mjs';
2
- export { default as Button } from './Button/index.mjs';
3
- export { default as Badge } from './Badge/index.mjs';
4
- export { default as Alert } from './Alert/index.mjs';
5
- export { default as LatexRenderer, LatexRendererProps } from './LatexRenderer/index.mjs';
6
- export { default as IconButton } from './IconButton/index.mjs';
7
- export { default as IconRoundedButton } from './IconRoundedButton/index.mjs';
8
- export { default as NavButton } from './NavButton/index.mjs';
9
- export { default as SelectionButton } from './SelectionButton/index.mjs';
10
- export { default as CheckBox } from './CheckBox/index.mjs';
11
- import * as react_jsx_runtime from 'react/jsx-runtime';
12
- import * as react from 'react';
13
- import react__default, { ReactNode, HTMLAttributes, InputHTMLAttributes } from 'react';
14
- import * as zustand from 'zustand';
15
- import { StoreApi } from 'zustand';
16
- export { C as CategoryConfig, a as CheckboxGroup, I as Item } from './CheckBoxGroup-9n5C0OH4.mjs';
17
- export { AlertsManager } from './AlertManager/index.mjs';
18
- export { AlertViewData, AlertsManagerView, RecipientStatus } from './AlertManagerView/index.mjs';
19
- export { a as AlertData, A as AlertsConfig } from './types-pd3QVhSu.mjs';
20
- export { default as Radio, RadioGroup, RadioGroupItem } from './Radio/index.mjs';
21
- export { default as TextArea } from './TextArea/index.mjs';
22
- export { default as Toast } from './Toast/index.mjs';
23
- export { default as Toaster } from './Toast/Toaster/index.mjs';
24
- export { default as Divider } from './Divider/index.mjs';
25
- export { default as useToastStore } from './Toast/ToastStore/index.mjs';
26
- export { default as Input } from './Input/index.mjs';
27
- export { default as Search } from './Search/index.mjs';
28
- export { default as Chips } from './Chips/index.mjs';
29
- export { default as ProgressBar } from './ProgressBar/index.mjs';
30
- export { default as ProgressCircle } from './ProgressCircle/index.mjs';
31
- export { default as Stepper } from './Stepper/index.mjs';
32
- export { default as Calendar } from './Calendar/index.mjs';
33
- export { default as Modal } from './Modal/index.mjs';
34
- export { AlertDialog } from './AlertDialog/index.mjs';
35
- export { default as LoadingModal } from './LoadingModal/index.mjs';
36
- import { N as NotificationApiClient, a as Notification, F as FetchNotificationsParams, b as NotificationGroup, c as NotificationEntityType, d as NotificationType } from './NotificationCard-4GgB0Nsf.mjs';
37
- export { B as BackendNotification, g as BackendNotificationsResponse, e as NotificationCard, f as NotificationItem, h as NotificationsResponse } from './NotificationCard-4GgB0Nsf.mjs';
38
- export { ThemeToggle } from './ThemeToggle/index.mjs';
39
- export { d as SubjectData, e as SubjectEnum, I as SubjectIconProps, S as SubjectInfo, b as getSubjectColorClass, a as getSubjectIcon, g as getSubjectInfo, c as getSubjectName } from './SubjectInfo-Dvt0OodP.mjs';
40
- import { QUESTION_TYPE, Question } from './Quiz/useQuizStore/index.mjs';
41
- export { ANSWER_STATUS, QUESTION_DIFFICULTY, QUESTION_STATUS, QUIZ_TYPE, QuestionResult, QuizInterface, QuizState, SUBTYPE_ENUM, UserAnswerItem, useQuizStore } from './Quiz/useQuizStore/index.mjs';
42
- export { c as ThemeActions, T as ThemeMode, b as ThemeState, a as ThemeStore, u as useThemeStore } from './themeStore-P2X64zC-.mjs';
43
- export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuInfo, ProfileMenuSection, ProfileMenuTrigger, ProfileToggleTheme } from './DropdownMenu/index.mjs';
44
- export { SortDirection, default as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, UseTableSortOptions, useTableSort } from './Table/index.mjs';
45
- import { F as FilterConfig } from './TableProvider-BnAnv3OV.mjs';
46
- export { C as ColumnConfig, E as EmptyStateConfig, P as PaginationConfig, b as TableParams, T as TableProvider, c as TableProviderProps, U as UseTableFilterOptions, a as UseTableFilterReturn, u as useTableFilter } from './TableProvider-BnAnv3OV.mjs';
47
- export { A as ActivityFilters, d as ActivityFiltersData, a as ActivityFiltersPopover, c as ActivityFiltersPopoverProps, b as ActivityFiltersProps, B as Bank, K as KnowledgeArea, e as KnowledgeItem, f as KnowledgeStructureState } from './ActivityFilters-CsX8y41f.mjs';
48
- export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.mjs';
49
- export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.mjs';
50
- export { CardActivitiesResults, CardAudio, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardSimulationHistory, CardStatus, CardTest, CardTopic } from './Card/index.mjs';
51
- export { StatisticsCard } from './StatisticsCard/index.mjs';
52
- export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText } from './Skeleton/index.mjs';
53
- export { default as NotFound } from './NotFound/index.mjs';
54
- export { default as NoSearchResult, NoSearchResultProps } from './NoSearchResult/index.mjs';
55
- export { default as EmptyState, EmptyStateProps } from './EmptyState/index.mjs';
56
- export { default as VideoPlayer } from './VideoPlayer/index.mjs';
57
- export { default as Whiteboard } from './Whiteboard/index.mjs';
58
- export { default as DownloadButton, DownloadButtonProps, DownloadContent } from './DownloadButton/index.mjs';
59
- export { AuthContextType, AuthProvider, ProtectedRoute, PublicRoute, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from './Auth/index.mjs';
60
- export { CardAccordation } from './Accordation/index.mjs';
61
- export { AlternativesList } from './Alternative/index.mjs';
62
- export { createZustandAuthAdapter } from './Auth/zustandAuthAdapter/index.mjs';
63
- export { useUrlAuthentication } from './Auth/useUrlAuthentication/index.mjs';
64
- export { useApiConfig } from './Auth/useApiConfig/index.mjs';
65
- export { Quiz, QuizContent, QuizFooter, QuizHeader, QuizQuestionList, QuizTitle } from './Quiz/index.mjs';
66
- export { MultipleChoiceList } from './MultipleChoice/index.mjs';
67
- export { default as IconRender } from './IconRender/index.mjs';
68
- export { DeviceType, getDeviceType, useMobile } from './hooks/useMobile/index.mjs';
69
- export { useTheme } from './hooks/useTheme/index.mjs';
70
- export { BreadcrumbMenu, BreadcrumbMenuProps } from './BreadcrumbMenu/index.mjs';
71
- export { BreadcrumbBuilderConfig, BreadcrumbLevel, BreadcrumbLevelStatic, BreadcrumbLevelWithData, useBreadcrumbBuilder } from './BreadcrumbMenu/useBreadcrumbBuilder/index.mjs';
72
- export { UrlParamsConfig, useUrlParams } from './BreadcrumbMenu/useUrlParams/index.mjs';
73
- export { BreadcrumbItem, useBreadcrumb } from './BreadcrumbMenu/breadcrumbStore/index.mjs';
74
- import * as zustand_middleware from 'zustand/middleware';
75
- export { cn, getSelectedIdsFromCategories, getSubjectColorWithOpacity, syncDropdownState, toggleArrayItem, toggleSingleValue } from './utils/index.mjs';
76
- export { default as TablePagination, TablePaginationProps } from './Table/TablePagination/index.mjs';
77
- import 'clsx';
78
-
79
- interface ImageUploadProps {
80
- /** File currently selected */
81
- selectedFile?: File | null;
82
- /** Upload progress (0-100). If not provided, progress bar won't show */
83
- uploadProgress?: number;
84
- /** Show progress bar even if uploadProgress is 100 */
85
- showProgress?: boolean;
86
- /** Callback when a file is selected */
87
- onFileSelect?: (file: File) => void;
88
- /** Callback when file is removed */
89
- onRemoveFile?: () => void;
90
- /** Custom button text when no file is selected */
91
- buttonText?: string;
92
- /** Custom button icon when no file is selected */
93
- buttonIcon?: react__default.ReactNode;
94
- /** Accept specific file types (default: "image/*") */
95
- accept?: string;
96
- /** Disabled state */
97
- disabled?: boolean;
98
- /** Custom class name */
99
- className?: string;
100
- /** Max file size in bytes */
101
- maxSize?: number;
102
- /** Callback when file size exceeds maxSize */
103
- onSizeError?: (file: File, maxSize: number) => void;
104
- /** Callback when invalid file type is selected */
105
- onTypeError?: (file: File) => void;
106
- /** Variant of the upload button */
107
- variant?: 'default' | 'compact';
108
- }
109
- declare function ImageUpload({ selectedFile, onFileSelect, onRemoveFile, buttonText, buttonIcon, accept, disabled, className, maxSize, onSizeError, onTypeError, variant, }: Readonly<ImageUploadProps>): react_jsx_runtime.JSX.Element;
110
-
111
- /**
112
- * CheckboxList size variants
113
- */
114
- type CheckboxListSize = 'small' | 'medium' | 'large';
115
- /**
116
- * CheckboxList visual state
117
- */
118
- type CheckboxListState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
119
- /**
120
- * CheckboxList store interface
121
- */
122
- interface CheckboxListStore {
123
- values: string[];
124
- setValues: (values: string[]) => void;
125
- toggleValue: (value: string) => void;
126
- onValuesChange?: (values: string[]) => void;
127
- disabled: boolean;
128
- name: string;
129
- }
130
- type CheckboxListStoreApi = StoreApi<CheckboxListStore>;
131
- /**
132
- * CheckboxList component for flexible checkbox group composition
133
- *
134
- * Uses Zustand for state management with automatic store injection.
135
- * Allows complete control over layout and styling by composing with CheckboxListItem.
136
- *
137
- * @example
138
- * ```tsx
139
- * <CheckboxList defaultValues={["option1"]} onValuesChange={setValues}>
140
- * <div className="flex items-center gap-3">
141
- * <CheckboxListItem value="option1" id="c1" />
142
- * <label htmlFor="c1">Option 1</label>
143
- * </div>
144
- * <div className="flex items-center gap-3">
145
- * <CheckboxListItem value="option2" id="c2" />
146
- * <label htmlFor="c2">Option 2</label>
147
- * </div>
148
- * </CheckboxList>
149
- * ```
150
- */
151
- declare const CheckboxList: react.ForwardRefExoticComponent<{
152
- /** Current selected values */
153
- values?: string[];
154
- /** Default selected values for uncontrolled usage */
155
- defaultValues?: string[];
156
- /** Callback when selection changes */
157
- onValuesChange?: (values: string[]) => void;
158
- /** Group name for all checkboxes */
159
- name?: string;
160
- /** Disabled state for the entire group */
161
- disabled?: boolean;
162
- /** Additional CSS classes */
163
- className?: string;
164
- /** Children components */
165
- children: ReactNode;
166
- } & Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValues"> & react.RefAttributes<HTMLDivElement>>;
167
- /**
168
- * CheckboxListItem component for use within CheckboxList
169
- *
170
- * A checkbox without label that works within CheckboxList context.
171
- * Provides just the checkbox input for maximum flexibility in composition.
172
- *
173
- * @example
174
- * ```tsx
175
- * <CheckboxList defaultValues={["option1"]}>
176
- * <div className="flex items-center gap-3">
177
- * <CheckboxListItem value="option1" id="c1" />
178
- * <label htmlFor="c1">Option 1</label>
179
- * </div>
180
- * </CheckboxList>
181
- * ```
182
- */
183
- declare const CheckboxListItem: react.ForwardRefExoticComponent<{
184
- /** Value for this checkbox item */
185
- value: string;
186
- /** Store reference (automatically injected by CheckboxList) */
187
- store?: CheckboxListStoreApi;
188
- /** Disabled state for this specific item */
189
- disabled?: boolean;
190
- /** Size variant */
191
- size?: CheckboxListSize;
192
- /** Visual state */
193
- state?: CheckboxListState;
194
- /** Additional CSS classes */
195
- className?: string;
196
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "name" | "type" | "value" | "onChange" | "size" | "checked"> & react.RefAttributes<HTMLInputElement>>;
197
-
198
- interface RecipientItem {
199
- id: string;
200
- name: string;
201
- [key: string]: unknown;
202
- }
203
- interface RecipientCategory {
204
- key: string;
205
- label: string;
206
- availableItems: RecipientItem[];
207
- selectedIds: string[];
208
- allSelected: boolean;
209
- parentKey?: string;
210
- dependsOn?: string[];
211
- }
212
- interface AlertFormData {
213
- title: string;
214
- message: string;
215
- image: File | string | null;
216
- date: string;
217
- time: string;
218
- sendToday: boolean;
219
- sendCopyToEmail: boolean;
220
- recipientCategories: Record<string, RecipientCategory>;
221
- }
222
- interface AlertFormStore extends AlertFormData {
223
- setTitle: (title: string) => void;
224
- setMessage: (message: string) => void;
225
- setImage: (image: File | string | null) => void;
226
- setDate: (date: string) => void;
227
- setTime: (time: string) => void;
228
- setSendToday: (sendToday: boolean) => void;
229
- setSendCopyToEmail: (sendCopyToEmail: boolean) => void;
230
- initializeCategory: (category: RecipientCategory) => void;
231
- updateCategoryItems: (key: string, items: RecipientItem[]) => void;
232
- updateCategorySelection: (key: string, selectedIds: string[], allSelected: boolean) => void;
233
- clearCategorySelection: (key: string) => void;
234
- resetForm: () => void;
235
- }
236
- declare const useAlertFormStore: zustand.UseBoundStore<zustand.StoreApi<AlertFormStore>>;
237
-
238
- /**
239
- * Notification store state interface
240
- */
241
- interface NotificationState {
242
- /**
243
- * List of all notifications
244
- */
245
- notifications: Notification[];
246
- /**
247
- * Number of unread notifications
248
- */
249
- unreadCount: number;
250
- /**
251
- * Loading state
252
- */
253
- loading: boolean;
254
- /**
255
- * Error state
256
- */
257
- error: string | null;
258
- /**
259
- * Whether there are more notifications to load
260
- */
261
- hasMore: boolean;
262
- /**
263
- * Current page for pagination
264
- */
265
- currentPage: number;
266
- }
267
- /**
268
- * Notification store actions interface
269
- */
270
- interface NotificationActions {
271
- /**
272
- * Fetch notifications from API
273
- */
274
- fetchNotifications: (params?: FetchNotificationsParams) => Promise<void>;
275
- /**
276
- * Mark a specific notification as read
277
- */
278
- markAsRead: (id: string) => Promise<void>;
279
- /**
280
- * Mark all notifications as read
281
- */
282
- markAllAsRead: () => Promise<void>;
283
- /**
284
- * Delete a notification
285
- */
286
- deleteNotification: (id: string) => Promise<void>;
287
- /**
288
- * Clear all notifications
289
- */
290
- clearNotifications: () => void;
291
- /**
292
- * Reset error state
293
- */
294
- resetError: () => void;
295
- /**
296
- * Group notifications by time periods
297
- */
298
- getGroupedNotifications: () => NotificationGroup[];
299
- }
300
- type NotificationStore = NotificationState & NotificationActions;
301
- /**
302
- * Format time relative to now
303
- */
304
- declare const formatTimeAgo: (date: Date) => string;
305
- /**
306
- * Create notification store with injected API client
307
- */
308
- declare const createNotificationStore: (apiClient: NotificationApiClient) => zustand.UseBoundStore<Omit<zustand.StoreApi<NotificationStore>, "setState" | "devtools"> & {
309
- setState(partial: NotificationStore | Partial<NotificationStore> | ((state: NotificationStore) => NotificationStore | Partial<NotificationStore>), replace?: false | undefined, action?: (string | {
310
- [x: string]: unknown;
311
- [x: number]: unknown;
312
- [x: symbol]: unknown;
313
- type: string;
314
- }) | undefined): void;
315
- setState(state: NotificationStore | ((state: NotificationStore) => NotificationStore), replace: true, action?: (string | {
316
- [x: string]: unknown;
317
- [x: number]: unknown;
318
- [x: symbol]: unknown;
319
- type: string;
320
- }) | undefined): void;
321
- devtools: {
322
- cleanup: () => void;
323
- };
324
- }>;
325
-
326
- /**
327
- * Create a notification store hook with injected API client
328
- * This allows different applications to provide their own API implementation
329
- *
330
- * @param apiClient - API client instance that implements NotificationApiClient interface
331
- * @returns Zustand hook for notification store
332
- *
333
- * @example
334
- * ```typescript
335
- * import { createUseNotificationStore } from 'analytica-frontend-lib';
336
- * import api from './services/apiService';
337
- *
338
- * const useNotificationStore = createUseNotificationStore(api);
339
- * ```
340
- */
341
- declare const createUseNotificationStore: (apiClient: NotificationApiClient) => zustand.UseBoundStore<Omit<zustand.StoreApi<NotificationStore>, "setState" | "devtools"> & {
342
- setState(partial: NotificationStore | Partial<NotificationStore> | ((state: NotificationStore) => NotificationStore | Partial<NotificationStore>), replace?: false | undefined, action?: (string | {
343
- [x: string]: unknown;
344
- [x: number]: unknown;
345
- [x: symbol]: unknown;
346
- type: string;
347
- }) | undefined): void;
348
- setState(state: NotificationStore | ((state: NotificationStore) => NotificationStore), replace: true, action?: (string | {
349
- [x: string]: unknown;
350
- [x: number]: unknown;
351
- [x: symbol]: unknown;
352
- type: string;
353
- }) | undefined): void;
354
- devtools: {
355
- cleanup: () => void;
356
- };
357
- }>;
358
-
359
- /**
360
- * Create a comprehensive notifications hook with formatting and navigation
361
- * This hook provides all notification functionality in a single interface
362
- *
363
- * @param apiClient - API client instance for notifications
364
- * @returns Hook with notification state, actions, and utilities
365
- */
366
- declare const createUseNotifications: (apiClient: NotificationApiClient) => () => {
367
- notifications: Notification[];
368
- unreadCount: number;
369
- loading: boolean;
370
- error: string | null;
371
- hasMore: boolean;
372
- currentPage: number;
373
- fetchNotifications: (params?: FetchNotificationsParams) => Promise<void>;
374
- markAsRead: (id: string) => Promise<void>;
375
- markAllAsRead: () => Promise<void>;
376
- deleteNotification: (id: string) => Promise<void>;
377
- clearNotifications: () => void;
378
- resetError: () => void;
379
- markAsReadAndNavigate: (id: string, entityType?: string, entityId?: string, onAfterNavigate?: () => void) => Promise<void>;
380
- refreshNotifications: () => Promise<void>;
381
- handleNavigate: (entityType?: string, entityId?: string, onAfterNavigate?: () => void) => void;
382
- getActionLabel: (entityType?: string) => string | undefined;
383
- getGroupedNotifications: () => NotificationGroup[];
384
- getFormattedGroupedNotifications: () => {
385
- notifications: {
386
- time: string;
387
- entityType: NotificationEntityType | undefined;
388
- entityId: string | undefined;
389
- id: string;
390
- title: string;
391
- message: string;
392
- type: NotificationType;
393
- isRead: boolean;
394
- createdAt: Date;
395
- actionLink?: string | null;
396
- sender?: {
397
- id: string;
398
- user: {
399
- id: string;
400
- name: string;
401
- email: string;
402
- };
403
- } | null;
404
- activity?: {
405
- id: string;
406
- title: string;
407
- type: string;
408
- } | null;
409
- goal?: {
410
- id: string;
411
- title: string;
412
- } | null;
413
- }[];
414
- label: string;
415
- }[];
416
- };
417
- /**
418
- * Create a pre-configured notifications hook
419
- * This is a convenience function that returns a hook ready to use
420
- *
421
- * @param apiClient - API client instance for notifications
422
- * @returns Pre-configured useNotifications hook
423
- *
424
- * @example
425
- * // In your app setup
426
- * import { createNotificationsHook } from 'analytica-frontend-lib';
427
- * import api from './services/api';
428
- *
429
- * export const useNotifications = createNotificationsHook(api);
430
- *
431
- * // Then use directly in components
432
- * const { unreadCount, fetchNotifications } = useNotifications();
433
- */
434
- declare const createNotificationsHook: (apiClient: NotificationApiClient) => () => {
435
- notifications: Notification[];
436
- unreadCount: number;
437
- loading: boolean;
438
- error: string | null;
439
- hasMore: boolean;
440
- currentPage: number;
441
- fetchNotifications: (params?: FetchNotificationsParams) => Promise<void>;
442
- markAsRead: (id: string) => Promise<void>;
443
- markAllAsRead: () => Promise<void>;
444
- deleteNotification: (id: string) => Promise<void>;
445
- clearNotifications: () => void;
446
- resetError: () => void;
447
- markAsReadAndNavigate: (id: string, entityType?: string, entityId?: string, onAfterNavigate?: () => void) => Promise<void>;
448
- refreshNotifications: () => Promise<void>;
449
- handleNavigate: (entityType?: string, entityId?: string, onAfterNavigate?: () => void) => void;
450
- getActionLabel: (entityType?: string) => string | undefined;
451
- getGroupedNotifications: () => NotificationGroup[];
452
- getFormattedGroupedNotifications: () => {
453
- notifications: {
454
- time: string;
455
- entityType: NotificationEntityType | undefined;
456
- entityId: string | undefined;
457
- id: string;
458
- title: string;
459
- message: string;
460
- type: NotificationType;
461
- isRead: boolean;
462
- createdAt: Date;
463
- actionLink?: string | null;
464
- sender?: {
465
- id: string;
466
- user: {
467
- id: string;
468
- name: string;
469
- email: string;
470
- };
471
- } | null;
472
- activity?: {
473
- id: string;
474
- title: string;
475
- type: string;
476
- } | null;
477
- goal?: {
478
- id: string;
479
- title: string;
480
- } | null;
481
- }[];
482
- label: string;
483
- }[];
484
- };
485
-
486
- /**
487
- * Map question types to display labels
488
- */
489
- declare const questionTypeLabels: Record<QUESTION_TYPE, string>;
490
-
491
- type FilterModalProps = {
492
- /**
493
- * Controls modal visibility
494
- */
495
- isOpen: boolean;
496
- /**
497
- * Callback when modal should close
498
- */
499
- onClose: () => void;
500
- /**
501
- * Filter configurations with categories
502
- */
503
- filterConfigs: FilterConfig[];
504
- /**
505
- * Callback when filters change (temporary, before applying)
506
- */
507
- onFiltersChange: (configs: FilterConfig[]) => void;
508
- /**
509
- * Callback when "Aplicar" button is clicked
510
- */
511
- onApply: () => void;
512
- /**
513
- * Callback when "Limpar filtros" button is clicked
514
- */
515
- onClear: () => void;
516
- /**
517
- * Modal title
518
- * @default "Filtros"
519
- */
520
- title?: string;
521
- /**
522
- * Modal size
523
- * @default "md"
524
- */
525
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
526
- /**
527
- * Apply button label
528
- * @default "Aplicar"
529
- */
530
- applyLabel?: string;
531
- /**
532
- * Clear button label
533
- * @default "Limpar filtros"
534
- */
535
- clearLabel?: string;
536
- };
537
- /**
538
- * FilterModal component - A modal for table filtering with CheckboxGroup
539
- *
540
- * Integrates Modal, CheckboxGroup, and Button components to create a
541
- * complete filtering interface. Works with useTableFilter hook for URL synchronization.
542
- *
543
- * @example
544
- * ```tsx
545
- * const { filterConfigs, updateFilters, applyFilters, clearFilters } = useTableFilter(
546
- * initialConfigs,
547
- * { syncWithUrl: true }
548
- * );
549
- *
550
- * <FilterModal
551
- * isOpen={isOpen}
552
- * onClose={() => setIsOpen(false)}
553
- * filterConfigs={filterConfigs}
554
- * onFiltersChange={updateFilters}
555
- * onApply={() => {
556
- * applyFilters();
557
- * setIsOpen(false);
558
- * }}
559
- * onClear={clearFilters}
560
- * />
561
- * ```
562
- */
563
- declare const FilterModal: ({ isOpen, onClose, filterConfigs, onFiltersChange, onApply, onClear, title, size, applyLabel, clearLabel, }: FilterModalProps) => react_jsx_runtime.JSX.Element;
564
-
565
- interface AccordionGroupProps extends HTMLAttributes<HTMLDivElement> {
566
- type?: 'single' | 'multiple';
567
- defaultValue?: string | string[];
568
- value?: string | string[];
569
- onValueChange?: (value: string | string[]) => void;
570
- collapsible?: boolean;
571
- children: ReactNode;
572
- }
573
- declare const AccordionGroup: react.ForwardRefExoticComponent<AccordionGroupProps & react.RefAttributes<HTMLDivElement>>;
574
-
575
- declare const getStatusBadge: (status?: "correct" | "incorrect") => react_jsx_runtime.JSX.Element | null;
576
- interface QuizVariantInterface {
577
- paddingBottom?: string;
578
- }
579
- declare const QuizAlternative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
580
- declare const QuizMultipleChoice: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
581
- declare const QuizDissertative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
582
- declare const QuizTrueOrFalse: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
583
- declare const QuizConnectDots: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
584
- declare const QuizImageQuestion: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
585
-
586
- declare const QuizHeaderResult: react.ForwardRefExoticComponent<{
587
- className?: string;
588
- } & react.RefAttributes<HTMLDivElement>>;
589
- declare const QuizResultHeaderTitle: react.ForwardRefExoticComponent<{
590
- className?: string;
591
- showBadge?: boolean;
592
- onRepeat?: () => void;
593
- canRetry?: boolean;
594
- } & react.RefAttributes<HTMLDivElement>>;
595
- declare const QuizResultTitle: react.ForwardRefExoticComponent<{
596
- className?: string;
597
- } & react.RefAttributes<HTMLParagraphElement>>;
598
- declare const QuizResultPerformance: react.ForwardRefExoticComponent<{
599
- showDetails?: boolean;
600
- } & react.RefAttributes<HTMLDivElement>>;
601
- declare const QuizListResult: react.ForwardRefExoticComponent<{
602
- className?: string;
603
- onSubjectClick?: (subject: string) => void;
604
- } & react.RefAttributes<HTMLDivElement>>;
605
- declare const QuizListResultByMateria: ({ subject, onQuestionClick, subjectName, }: {
606
- subject: string;
607
- onQuestionClick: (question: Question) => void;
608
- subjectName?: string;
609
- }) => react_jsx_runtime.JSX.Element;
610
-
611
- /**
612
- * Interface representing user authentication tokens.
613
- */
614
- interface AuthTokens {
615
- token: string;
616
- refreshToken: string;
617
- [key: string]: unknown;
618
- }
619
- /**
620
- * Interface representing a user profile.
621
- */
622
- interface UserProfile {
623
- id: string;
624
- name?: string;
625
- email?: string;
626
- [key: string]: unknown;
627
- }
628
- /**
629
- * Interface representing a user.
630
- */
631
- interface User {
632
- id: string;
633
- name?: string;
634
- email?: string;
635
- [key: string]: unknown;
636
- }
637
- /**
638
- * Interface representing session information from the API.
639
- */
640
- interface SessionInfo {
641
- sessionId: string;
642
- userId: string;
643
- profileId: string;
644
- institutionId: string;
645
- schoolId: string;
646
- schoolYearId: string;
647
- classId: string;
648
- subjects: string[];
649
- schools: string[];
650
- [key: string]: unknown;
651
- }
652
- /**
653
- * Interface defining the authentication state.
654
- */
655
- interface AuthState {
656
- user: User | null;
657
- tokens: AuthTokens | null;
658
- isAuthenticated: boolean;
659
- profiles: UserProfile[];
660
- selectedProfile: UserProfile | null;
661
- sessionInfo: SessionInfo | null;
662
- setUser: (user: User | null) => void;
663
- setTokens: (tokens: AuthTokens | null) => void;
664
- setProfiles: (profiles: UserProfile[]) => void;
665
- setSelectedProfile: (profile: UserProfile | null) => void;
666
- setSessionInfo: (sessionInfo: SessionInfo | null) => void;
667
- signIn: (user: User, tokens: AuthTokens, profiles: UserProfile[]) => void;
668
- signOut: () => void;
669
- updateUserSession: (sessionData: Partial<User>) => void;
670
- }
671
- /**
672
- * Zustand store for managing authentication state with persistence.
673
- */
674
- declare const useAuthStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AuthState>, "persist"> & {
675
- persist: {
676
- setOptions: (options: Partial<zustand_middleware.PersistOptions<AuthState, unknown>>) => void;
677
- clearStorage: () => void;
678
- rehydrate: () => Promise<void> | void;
679
- hasHydrated: () => boolean;
680
- onHydrate: (fn: (state: AuthState) => void) => () => void;
681
- onFinishHydration: (fn: (state: AuthState) => void) => () => void;
682
- getOptions: () => Partial<zustand_middleware.PersistOptions<AuthState, unknown>>;
683
- };
684
- }>;
685
-
686
- /**
687
- * Hook que gerencia a inicialização da aplicação e funções de autenticação
688
- * Combina a lógica de obtenção do institutionId, inicialização do app store e funções de auth
689
- *
690
- * @param {UseAppInitializationProps} props - Propriedades do hook
691
- * @returns {object} Estado da inicialização, funções relacionadas e funções de autenticação
692
- */
693
- declare function useAppInitialization(): {
694
- getInstitutionId: string | null;
695
- initialize: (id: string | null) => void;
696
- initialized: boolean;
697
- institutionId: string | null;
698
- authFunctions: {
699
- checkAuth: () => Promise<boolean>;
700
- signOut: () => void;
701
- getUser: () => User | null;
702
- getSessionInfo: () => SessionInfo | null;
703
- getTokens: () => AuthTokens | null;
704
- };
705
- };
706
-
707
- /**
708
- * Interface para as configurações do hook useAppContent
709
- */
710
- interface UseAppContentConfig {
711
- /** API instance para configuração */
712
- api: {
713
- get: (endpoint: string, config: unknown) => Promise<unknown>;
714
- };
715
- /** ID da instituição obtido externamente */
716
- getInstitutionId: string | null | undefined;
717
- /** Função de inicialização obtida externamente */
718
- initialize: (institutionId: string) => void;
719
- /** Estado de inicialização obtido externamente */
720
- initialized: boolean;
721
- /** Endpoint para autenticação via URL */
722
- endpoint?: string;
723
- /** Número máximo de tentativas em caso de erro */
724
- maxRetries?: number;
725
- /** Delay entre tentativas em ms */
726
- retryDelay?: number;
727
- /** Callback para limpeza de parâmetros da URL */
728
- onClearParamsFromURL?: () => void;
729
- /** Callback para tratamento de erro */
730
- onError?: (error: unknown) => void;
731
- /** Callback para navegação quando página não encontrada */
732
- onNotFoundNavigation?: () => void;
733
- }
734
- /**
735
- * Hook que encapsula toda a lógica do componente AppContent
736
- * Centraliza a configuração de autenticação, tema, navegação e inicialização
737
- *
738
- * @param {UseAppContentConfig} config - Configurações do hook
739
- * @returns {object} Funções e estado necessários para o AppContent
740
- */
741
- declare function useAppContent(config: UseAppContentConfig): {
742
- handleNotFoundNavigation: () => void;
743
- urlAuthConfig: {
744
- setTokens: (tokens: AuthTokens | null) => void;
745
- setSessionInfo: (sessionInfo: SessionInfo | null) => void;
746
- setSelectedProfile: (profile: {
747
- id: string;
748
- }) => void;
749
- api: {
750
- get: (endpoint: string, config: unknown) => Promise<unknown>;
751
- };
752
- endpoint: string;
753
- clearParamsFromURL: () => void;
754
- maxRetries: number;
755
- retryDelay: number;
756
- onError: (error: unknown) => void;
757
- };
758
- institutionIdToUse: string | null | undefined;
759
- };
760
-
761
- declare function useInstitutionId(): string | null;
762
-
763
- /**
764
- * Interface defining the application state
765
- */
766
- interface AppState {
767
- institutionId: string | null;
768
- initialized: boolean;
769
- setInstitutionId: (institutionId: string | null) => void;
770
- setInitialized: (initialized: boolean) => void;
771
- initialize: (id: string | null) => void;
772
- }
773
- /**
774
- * Zustand store for managing application-wide state with persistence
775
- * @returns {AppState} The application state store
776
- */
777
- declare const useAppStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AppState>, "persist"> & {
778
- persist: {
779
- setOptions: (options: Partial<zustand_middleware.PersistOptions<AppState, unknown>>) => void;
780
- clearStorage: () => void;
781
- rehydrate: () => Promise<void> | void;
782
- hasHydrated: () => boolean;
783
- onHydrate: (fn: (state: AppState) => void) => () => void;
784
- onFinishHydration: (fn: (state: AppState) => void) => () => void;
785
- getOptions: () => Partial<zustand_middleware.PersistOptions<AppState, unknown>>;
786
- };
787
- }>;
788
-
789
- export { AccordionGroup, type AuthState, CheckboxList, CheckboxListItem, FetchNotificationsParams, FilterConfig, FilterModal, type FilterModalProps, ImageUpload, type ImageUploadProps, Notification, type NotificationActions, NotificationApiClient, NotificationEntityType, NotificationGroup, type NotificationState, type NotificationStore, NotificationType, QUESTION_TYPE, Question, QuizAlternative, QuizConnectDots, QuizDissertative, QuizHeaderResult, QuizImageQuestion, QuizListResult, QuizListResultByMateria, QuizMultipleChoice, QuizResultHeaderTitle, QuizResultPerformance, QuizResultTitle, QuizTrueOrFalse, type RecipientItem, createNotificationStore, createNotificationsHook, createUseNotificationStore, createUseNotifications, formatTimeAgo, getStatusBadge, questionTypeLabels, useAlertFormStore, useAppContent, useAppInitialization, useAppStore, useAuthStore, useInstitutionId };