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.
- package/dist/Accordation/index.d.ts +4 -5
- package/dist/Accordation/index.d.ts.map +1 -0
- package/dist/ActivityDetails/index.css +19293 -0
- package/dist/ActivityDetails/index.css.map +1 -0
- package/dist/ActivityDetails/index.d.ts +31 -0
- package/dist/ActivityDetails/index.d.ts.map +1 -0
- package/dist/ActivityDetails/index.js +7389 -0
- package/dist/ActivityDetails/index.js.map +1 -0
- package/dist/ActivityDetails/index.mjs +7438 -0
- package/dist/ActivityDetails/index.mjs.map +1 -0
- package/dist/ActivityFilters/index.css +112 -0
- package/dist/ActivityFilters/index.css.map +1 -1
- package/dist/ActivityFilters/index.d.ts +44 -5
- package/dist/ActivityFilters/index.d.ts.map +1 -0
- package/dist/ActivityFilters/index.js +67 -33
- package/dist/ActivityFilters/index.js.map +1 -1
- package/dist/ActivityFilters/index.mjs +89 -55
- package/dist/ActivityFilters/index.mjs.map +1 -1
- package/dist/Alert/index.d.ts +3 -5
- package/dist/Alert/index.d.ts.map +1 -0
- package/dist/AlertDialog/index.d.ts +2 -4
- package/dist/AlertDialog/index.d.ts.map +1 -0
- package/dist/AlertManager/index.css +112 -0
- package/dist/AlertManager/index.css.map +1 -1
- package/dist/AlertManager/index.d.ts +4 -8
- package/dist/AlertManager/index.d.ts.map +1 -0
- package/dist/AlertManager/index.js +56 -22
- package/dist/AlertManager/index.js.map +1 -1
- package/dist/AlertManager/index.mjs +78 -44
- package/dist/AlertManager/index.mjs.map +1 -1
- package/dist/AlertManagerView/index.d.ts +6 -10
- package/dist/AlertManagerView/index.d.ts.map +1 -0
- package/dist/Alternative/index.d.ts +6 -9
- package/dist/Alternative/index.d.ts.map +1 -0
- package/dist/Auth/AuthProvider/index.d.ts +324 -3
- package/dist/Auth/AuthProvider/index.d.ts.map +1 -0
- package/dist/Auth/ProtectedRoute/index.d.ts +324 -3
- package/dist/Auth/ProtectedRoute/index.d.ts.map +1 -0
- package/dist/Auth/PublicRoute/index.d.ts +324 -3
- package/dist/Auth/PublicRoute/index.d.ts.map +1 -0
- package/dist/Auth/getRootDomain/index.d.ts +324 -3
- package/dist/Auth/getRootDomain/index.d.ts.map +1 -0
- package/dist/Auth/index.d.ts +24 -26
- package/dist/Auth/index.d.ts.map +1 -0
- package/dist/Auth/useApiConfig/index.d.ts +3 -3
- package/dist/Auth/useApiConfig/index.d.ts.map +1 -0
- package/dist/Auth/useAuth/index.d.ts +324 -3
- package/dist/Auth/useAuth/index.d.ts.map +1 -0
- package/dist/Auth/useAuthGuard/index.d.ts +324 -3
- package/dist/Auth/useAuthGuard/index.d.ts.map +1 -0
- package/dist/Auth/useRouteAuth/index.d.ts +324 -3
- package/dist/Auth/useRouteAuth/index.d.ts.map +1 -0
- package/dist/Auth/useUrlAuthentication/index.d.ts +3 -4
- package/dist/Auth/useUrlAuthentication/index.d.ts.map +1 -0
- package/dist/Auth/withAuth/index.d.ts +324 -3
- package/dist/Auth/withAuth/index.d.ts.map +1 -0
- package/dist/Auth/zustandAuthAdapter/index.d.ts +2 -3
- package/dist/Auth/zustandAuthAdapter/index.d.ts.map +1 -0
- package/dist/Badge/index.d.ts +4 -6
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts +5 -7
- package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts.map +1 -0
- package/dist/BreadcrumbMenu/index.d.ts +4 -8
- package/dist/BreadcrumbMenu/index.d.ts.map +1 -0
- package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts +7 -10
- package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts.map +1 -0
- package/dist/BreadcrumbMenu/useUrlParams/index.d.ts +3 -4
- package/dist/BreadcrumbMenu/useUrlParams/index.d.ts.map +1 -0
- package/dist/Button/index.d.ts +4 -6
- package/dist/Button/index.d.ts.map +1 -0
- package/dist/Calendar/index.d.ts +9 -11
- package/dist/Calendar/index.d.ts.map +1 -0
- package/dist/Card/index.d.ts +17 -19
- package/dist/Card/index.d.ts.map +1 -0
- package/dist/CheckBox/index.d.ts +6 -8
- package/dist/CheckBox/index.d.ts.map +1 -0
- package/dist/Chips/index.d.ts +4 -6
- package/dist/Chips/index.d.ts.map +1 -0
- package/dist/CorrectActivityModal/index.d.ts +39 -0
- package/dist/CorrectActivityModal/index.d.ts.map +1 -0
- package/dist/CorrectActivityModal/index.js +3674 -0
- package/dist/CorrectActivityModal/index.js.map +1 -0
- package/dist/CorrectActivityModal/index.mjs +3689 -0
- package/dist/CorrectActivityModal/index.mjs.map +1 -0
- package/dist/Divider/index.d.ts +3 -5
- package/dist/Divider/index.d.ts.map +1 -0
- package/dist/DownloadButton/index.d.ts +5 -7
- package/dist/DownloadButton/index.d.ts.map +1 -0
- package/dist/DropdownMenu/index.d.ts +26 -28
- package/dist/DropdownMenu/index.d.ts.map +1 -0
- package/dist/EmptyState/index.d.ts +5 -7
- package/dist/EmptyState/index.d.ts.map +1 -0
- package/dist/FileAttachment/index.d.ts +72 -0
- package/dist/FileAttachment/index.d.ts.map +1 -0
- package/dist/FileAttachment/index.js +239 -0
- package/dist/FileAttachment/index.js.map +1 -0
- package/dist/FileAttachment/index.mjs +213 -0
- package/dist/FileAttachment/index.mjs.map +1 -0
- package/dist/IconButton/index.d.ts +6 -8
- package/dist/IconButton/index.d.ts.map +1 -0
- package/dist/IconRender/index.d.ts +5 -6
- package/dist/IconRender/index.d.ts.map +1 -0
- package/dist/IconRoundedButton/index.d.ts +4 -6
- package/dist/IconRoundedButton/index.d.ts.map +1 -0
- package/dist/Input/index.d.ts +5 -7
- package/dist/Input/index.d.ts.map +1 -0
- package/dist/LatexRenderer/index.d.ts +5 -6
- package/dist/LatexRenderer/index.d.ts.map +1 -0
- package/dist/LoadingModal/index.d.ts +3 -5
- package/dist/LoadingModal/index.d.ts.map +1 -0
- package/dist/Menu/index.d.ts +12 -14
- package/dist/Menu/index.d.ts.map +1 -0
- package/dist/Modal/index.d.ts +3 -5
- package/dist/Modal/index.d.ts.map +1 -0
- package/dist/Modal/utils/videoUtils/index.d.ts +4 -5
- package/dist/Modal/utils/videoUtils/index.d.ts.map +1 -0
- package/dist/MultipleChoice/index.d.ts +2 -4
- package/dist/MultipleChoice/index.d.ts.map +1 -0
- package/dist/NavButton/index.d.ts +5 -7
- package/dist/NavButton/index.d.ts.map +1 -0
- package/dist/NoSearchResult/index.d.ts +4 -6
- package/dist/NoSearchResult/index.d.ts.map +1 -0
- package/dist/NotFound/index.d.ts +4 -6
- package/dist/NotFound/index.d.ts.map +1 -0
- package/dist/NotificationCard/index.d.ts +218 -3
- package/dist/NotificationCard/index.d.ts.map +1 -0
- package/dist/ProgressBar/index.d.ts +4 -6
- package/dist/ProgressBar/index.d.ts.map +1 -0
- package/dist/ProgressCircle/index.d.ts +4 -6
- package/dist/ProgressCircle/index.d.ts.map +1 -0
- package/dist/Quiz/index.d.ts +19 -23
- package/dist/Quiz/index.d.ts.map +1 -0
- package/dist/Quiz/useQuizStore/index.d.ts +14 -17
- package/dist/Quiz/useQuizStore/index.d.ts.map +1 -0
- package/dist/Radio/index.d.ts +14 -15
- package/dist/Radio/index.d.ts.map +1 -0
- package/dist/Search/index.d.ts +4 -6
- package/dist/Search/index.d.ts.map +1 -0
- package/dist/Select/index.d.ts +12 -14
- package/dist/Select/index.d.ts.map +1 -0
- package/dist/SelectionButton/index.d.ts +5 -7
- package/dist/SelectionButton/index.d.ts.map +1 -0
- package/dist/Skeleton/index.d.ts +10 -12
- package/dist/Skeleton/index.d.ts.map +1 -0
- package/dist/StatisticsCard/index.d.ts +3 -5
- package/dist/StatisticsCard/index.d.ts.map +1 -0
- package/dist/Stepper/index.d.ts +6 -8
- package/dist/Stepper/index.d.ts.map +1 -0
- package/dist/SubjectInfo/index.d.ts +17 -2
- package/dist/SubjectInfo/index.d.ts.map +1 -0
- package/dist/Support/TicketModal/index.d.ts +14 -0
- package/dist/Support/TicketModal/index.d.ts.map +1 -0
- package/dist/Support/TicketModal/index.js +1279 -0
- package/dist/Support/TicketModal/index.js.map +1 -0
- package/dist/Support/TicketModal/index.mjs +1248 -0
- package/dist/Support/TicketModal/index.mjs.map +1 -0
- package/dist/Support/index.d.ts +8 -0
- package/dist/Support/index.d.ts.map +1 -0
- package/dist/Support/index.js +2686 -0
- package/dist/Support/index.js.map +1 -0
- package/dist/Support/index.mjs +2676 -0
- package/dist/Support/index.mjs.map +1 -0
- package/dist/Table/TablePagination/index.d.ts +4 -6
- package/dist/Table/TablePagination/index.d.ts.map +1 -0
- package/dist/Table/index.d.ts +18 -19
- package/dist/Table/index.d.ts.map +1 -0
- package/dist/TableProvider/index.css +112 -0
- package/dist/TableProvider/index.css.map +1 -1
- package/dist/TableProvider/index.d.ts +198 -4
- package/dist/TableProvider/index.d.ts.map +1 -0
- package/dist/TableProvider/index.js +56 -22
- package/dist/TableProvider/index.js.map +1 -1
- package/dist/TableProvider/index.mjs +78 -44
- package/dist/TableProvider/index.mjs.map +1 -1
- package/dist/Text/index.d.ts +4 -6
- package/dist/Text/index.d.ts.map +1 -0
- package/dist/TextArea/index.d.ts +6 -8
- package/dist/TextArea/index.d.ts.map +1 -0
- package/dist/ThemeToggle/index.d.ts +4 -8
- package/dist/ThemeToggle/index.d.ts.map +1 -0
- package/dist/Toast/ToastStore/index.d.ts +3 -5
- package/dist/Toast/ToastStore/index.d.ts.map +1 -0
- package/dist/Toast/Toaster/index.d.ts +4 -6
- package/dist/Toast/Toaster/index.d.ts.map +1 -0
- package/dist/Toast/index.d.ts +3 -5
- package/dist/Toast/index.d.ts.map +1 -0
- package/dist/VideoPlayer/index.d.ts +4 -6
- package/dist/VideoPlayer/index.d.ts.map +1 -0
- package/dist/Whiteboard/index.d.ts +5 -7
- package/dist/Whiteboard/index.d.ts.map +1 -0
- package/dist/assets/icons/subjects/BookOpenText.d.ts +5 -0
- package/dist/assets/icons/subjects/BookOpenText.d.ts.map +1 -0
- package/dist/assets/icons/subjects/ChatEN.d.ts +5 -0
- package/dist/assets/icons/subjects/ChatEN.d.ts.map +1 -0
- package/dist/assets/icons/subjects/ChatES.d.ts +5 -0
- package/dist/assets/icons/subjects/ChatES.d.ts.map +1 -0
- package/dist/assets/icons/subjects/ChatPT.d.ts +5 -0
- package/dist/assets/icons/subjects/ChatPT.d.ts.map +1 -0
- package/dist/assets/icons/subjects/HeadCircuit.d.ts +5 -0
- package/dist/assets/icons/subjects/HeadCircuit.d.ts.map +1 -0
- package/dist/assets/icons/subjects/Microscope.d.ts +5 -0
- package/dist/assets/icons/subjects/Microscope.d.ts.map +1 -0
- package/dist/enums/SubjectEnum.d.ts +19 -0
- package/dist/enums/SubjectEnum.d.ts.map +1 -0
- package/dist/hooks/useAppContent.d.ts +55 -0
- package/dist/hooks/useAppContent.d.ts.map +1 -0
- package/dist/hooks/useAppInitialization.d.ts +21 -0
- package/dist/hooks/useAppInitialization.d.ts.map +1 -0
- package/dist/hooks/useInstitution.d.ts +2 -0
- package/dist/hooks/useInstitution.d.ts.map +1 -0
- package/dist/hooks/useMobile/index.d.ts +4 -5
- package/dist/hooks/useMobile/index.d.ts.map +1 -0
- package/dist/hooks/useNotificationStore.d.ts +34 -0
- package/dist/hooks/useNotificationStore.d.ts.map +1 -0
- package/dist/hooks/useNotifications.d.ts +129 -0
- package/dist/hooks/useNotifications.d.ts.map +1 -0
- package/dist/hooks/useScreen.d.ts +38 -0
- package/dist/hooks/useScreen.d.ts.map +1 -0
- package/dist/hooks/useTheme/index.d.ts +4 -7
- package/dist/hooks/useTheme/index.d.ts.map +1 -0
- package/dist/index.css +112 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +127 -789
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9031 -7012
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9093 -7085
- package/dist/index.mjs.map +1 -1
- package/dist/store/appStore.d.ts +27 -0
- package/dist/store/appStore.d.ts.map +1 -0
- package/dist/store/authStore.d.ts +75 -0
- package/dist/store/authStore.d.ts.map +1 -0
- package/dist/store/notificationStore.d.ts +89 -0
- package/dist/store/notificationStore.d.ts.map +1 -0
- package/dist/{themeStore-P2X64zC-.d.ts → store/themeStore.d.ts} +8 -12
- package/dist/store/themeStore.d.ts.map +1 -0
- package/dist/styles.css +112 -0
- package/dist/styles.css.map +1 -1
- package/dist/suporthistory-W5LBGAUP.png +0 -0
- package/dist/types/activityDetails.d.ts +127 -0
- package/dist/types/activityDetails.d.ts.map +1 -0
- package/dist/types/activityFilters.d.ts +51 -0
- package/dist/types/activityFilters.d.ts.map +1 -0
- package/dist/types/auth.d.ts +53 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/notifications.d.ts +199 -0
- package/dist/types/notifications.d.ts.map +1 -0
- package/dist/types/questionTypes.d.ts +6 -0
- package/dist/types/questionTypes.d.ts.map +1 -0
- package/dist/types/studentActivityCorrection.d.ts +57 -0
- package/dist/types/studentActivityCorrection.d.ts.map +1 -0
- package/dist/types/support/index.d.ts +111 -0
- package/dist/types/support/index.d.ts.map +1 -0
- package/dist/types/support/index.js +115 -0
- package/dist/types/support/index.js.map +1 -0
- package/dist/types/support/index.mjs +84 -0
- package/dist/types/support/index.mjs.map +1 -0
- package/dist/utils/activityFilters.d.ts +23 -0
- package/dist/utils/activityFilters.d.ts.map +1 -0
- package/dist/utils/dropdown.d.ts +12 -0
- package/dist/utils/dropdown.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -43
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/keys.d.ts +24 -0
- package/dist/utils/keys.d.ts.map +1 -0
- package/package.json +20 -4
- package/dist/Accordation/index.d.mts +0 -15
- package/dist/ActivityFilters/index.d.mts +0 -5
- package/dist/ActivityFilters-Cs3TpGAY.d.ts +0 -97
- package/dist/ActivityFilters-CsX8y41f.d.mts +0 -97
- package/dist/Alert/index.d.mts +0 -13
- package/dist/AlertDialog/index.d.mts +0 -36
- package/dist/AlertManager/index.d.mts +0 -17
- package/dist/AlertManagerView/index.d.mts +0 -31
- package/dist/Alternative/index.d.mts +0 -81
- package/dist/Auth/AuthProvider/index.d.mts +0 -3
- package/dist/Auth/ProtectedRoute/index.d.mts +0 -3
- package/dist/Auth/PublicRoute/index.d.mts +0 -3
- package/dist/Auth/getRootDomain/index.d.mts +0 -3
- package/dist/Auth/index.d.mts +0 -326
- package/dist/Auth/useApiConfig/index.d.mts +0 -43
- package/dist/Auth/useAuth/index.d.mts +0 -3
- package/dist/Auth/useAuthGuard/index.d.mts +0 -3
- package/dist/Auth/useRouteAuth/index.d.mts +0 -3
- package/dist/Auth/useUrlAuthentication/index.d.mts +0 -69
- package/dist/Auth/withAuth/index.d.mts +0 -3
- package/dist/Auth/zustandAuthAdapter/index.d.mts +0 -75
- package/dist/Badge/index.d.mts +0 -46
- package/dist/BreadcrumbMenu/breadcrumbStore/index.d.mts +0 -77
- package/dist/BreadcrumbMenu/index.d.mts +0 -31
- package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.mts +0 -48
- package/dist/BreadcrumbMenu/useUrlParams/index.d.mts +0 -28
- package/dist/Button/index.d.mts +0 -45
- package/dist/Calendar/index.d.mts +0 -60
- package/dist/Card/index.d.mts +0 -150
- package/dist/CheckBox/index.d.mts +0 -74
- package/dist/CheckBoxGroup-9n5C0OH4.d.mts +0 -24
- package/dist/CheckBoxGroup-9n5C0OH4.d.ts +0 -24
- package/dist/Chips/index.d.mts +0 -41
- package/dist/Divider/index.d.mts +0 -32
- package/dist/DownloadButton/index.d.mts +0 -46
- package/dist/DropdownMenu/index.d.mts +0 -82
- package/dist/EmptyState/index.d.mts +0 -65
- package/dist/IconButton/index.d.mts +0 -76
- package/dist/IconRender/index.d.mts +0 -36
- package/dist/IconRoundedButton/index.d.mts +0 -34
- package/dist/Input/index.d.mts +0 -27
- package/dist/LatexRenderer/index.d.mts +0 -50
- package/dist/LoadingModal/index.d.mts +0 -11
- package/dist/Menu/index.d.mts +0 -48
- package/dist/Modal/index.d.mts +0 -76
- package/dist/Modal/utils/videoUtils/index.d.mts +0 -28
- package/dist/MultipleChoice/index.d.mts +0 -20
- package/dist/NavButton/index.d.mts +0 -57
- package/dist/NoSearchResult/index.d.mts +0 -37
- package/dist/NotFound/index.d.mts +0 -58
- package/dist/NotificationCard/index.d.mts +0 -3
- package/dist/NotificationCard-4GgB0Nsf.d.mts +0 -417
- package/dist/NotificationCard-4GgB0Nsf.d.ts +0 -417
- package/dist/ProgressBar/index.d.mts +0 -95
- package/dist/ProgressCircle/index.d.mts +0 -60
- package/dist/Quiz/index.d.mts +0 -55
- package/dist/Quiz/useQuizStore/index.d.mts +0 -258
- package/dist/Radio/index.d.mts +0 -203
- package/dist/Search/index.d.mts +0 -27
- package/dist/Select/index.d.mts +0 -59
- package/dist/SelectionButton/index.d.mts +0 -57
- package/dist/Skeleton/index.d.mts +0 -40
- package/dist/StatisticsCard/index.d.mts +0 -79
- package/dist/Stepper/index.d.mts +0 -169
- package/dist/SubjectInfo/index.d.mts +0 -2
- package/dist/SubjectInfo-Dvt0OodP.d.mts +0 -37
- package/dist/SubjectInfo-Dvt0OodP.d.ts +0 -37
- package/dist/Table/TablePagination/index.d.mts +0 -64
- package/dist/Table/index.d.mts +0 -93
- package/dist/TableProvider/index.d.mts +0 -4
- package/dist/TableProvider-BnAnv3OV.d.mts +0 -239
- package/dist/TableProvider-GfPlLqzg.d.ts +0 -239
- package/dist/Text/index.d.mts +0 -58
- package/dist/TextArea/index.d.mts +0 -74
- package/dist/ThemeToggle/index.d.mts +0 -12
- package/dist/Toast/ToastStore/index.d.mts +0 -19
- package/dist/Toast/Toaster/index.d.mts +0 -16
- package/dist/Toast/index.d.mts +0 -17
- package/dist/VideoPlayer/index.d.mts +0 -52
- package/dist/Whiteboard/index.d.mts +0 -34
- package/dist/hooks/useMobile/index.d.mts +0 -29
- package/dist/hooks/useTheme/index.d.mts +0 -17
- package/dist/index.d.mts +0 -789
- package/dist/styles.d.mts +0 -2
- package/dist/styles.d.ts +0 -2
- package/dist/themeStore-P2X64zC-.d.mts +0 -79
- package/dist/types-DqZRjqxh.d.ts +0 -67
- package/dist/types-pd3QVhSu.d.mts +0 -67
- package/dist/utils/index.d.mts +0 -51
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Types for notification system
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Notification type enum
|
|
9
|
-
*/
|
|
10
|
-
type NotificationType = 'ACTIVITY' | 'TRAIL' | 'GOAL' | 'ANNOUNCEMENT' | 'GENERAL';
|
|
11
|
-
/**
|
|
12
|
-
* Entity type for navigation
|
|
13
|
-
*/
|
|
14
|
-
declare enum NotificationEntityType {
|
|
15
|
-
ACTIVITY = "ACTIVITY",
|
|
16
|
-
TRAIL = "TRAIL",
|
|
17
|
-
GOAL = "GOAL"
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Notification interface
|
|
21
|
-
*/
|
|
22
|
-
interface Notification {
|
|
23
|
-
/**
|
|
24
|
-
* Unique identifier for the notification
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* Notification title
|
|
29
|
-
*/
|
|
30
|
-
title: string;
|
|
31
|
-
/**
|
|
32
|
-
* Notification message content
|
|
33
|
-
*/
|
|
34
|
-
message: string;
|
|
35
|
-
/**
|
|
36
|
-
* Type of notification
|
|
37
|
-
*/
|
|
38
|
-
type: NotificationType;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the notification has been read
|
|
41
|
-
*/
|
|
42
|
-
isRead: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* When the notification was created
|
|
45
|
-
*/
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
/**
|
|
48
|
-
* Type of entity this notification refers to (optional)
|
|
49
|
-
*/
|
|
50
|
-
entityType?: NotificationEntityType | null;
|
|
51
|
-
/**
|
|
52
|
-
* ID of the entity this notification refers to (optional)
|
|
53
|
-
*/
|
|
54
|
-
entityId?: string | null;
|
|
55
|
-
/**
|
|
56
|
-
* Action link for global notifications (optional)
|
|
57
|
-
*/
|
|
58
|
-
actionLink?: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* Sender information (optional)
|
|
61
|
-
*/
|
|
62
|
-
sender?: {
|
|
63
|
-
id: string;
|
|
64
|
-
user: {
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
email: string;
|
|
68
|
-
};
|
|
69
|
-
} | null;
|
|
70
|
-
/**
|
|
71
|
-
* Activity information (optional)
|
|
72
|
-
*/
|
|
73
|
-
activity?: {
|
|
74
|
-
id: string;
|
|
75
|
-
title: string;
|
|
76
|
-
type: string;
|
|
77
|
-
} | null;
|
|
78
|
-
/**
|
|
79
|
-
* Goal information (optional)
|
|
80
|
-
*/
|
|
81
|
-
goal?: {
|
|
82
|
-
id: string;
|
|
83
|
-
title: string;
|
|
84
|
-
} | null;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Backend notification response from API
|
|
88
|
-
*/
|
|
89
|
-
interface BackendNotification {
|
|
90
|
-
id: string;
|
|
91
|
-
senderUserInstitutionId: string | null;
|
|
92
|
-
receiverUserInstitutionId: string;
|
|
93
|
-
title: string;
|
|
94
|
-
description: string;
|
|
95
|
-
entityType: string | null;
|
|
96
|
-
entityId: string | null;
|
|
97
|
-
actionLink?: string | null;
|
|
98
|
-
read: boolean;
|
|
99
|
-
createdAt: string;
|
|
100
|
-
updatedAt: string;
|
|
101
|
-
sender?: {
|
|
102
|
-
id: string;
|
|
103
|
-
user: {
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
email: string;
|
|
107
|
-
};
|
|
108
|
-
} | null;
|
|
109
|
-
activity?: {
|
|
110
|
-
id: string;
|
|
111
|
-
title: string;
|
|
112
|
-
type: string;
|
|
113
|
-
} | null;
|
|
114
|
-
goal?: {
|
|
115
|
-
id: string;
|
|
116
|
-
title: string;
|
|
117
|
-
} | null;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* API response for fetching notifications from backend
|
|
121
|
-
*/
|
|
122
|
-
interface BackendNotificationsResponse {
|
|
123
|
-
notifications: BackendNotification[];
|
|
124
|
-
pagination: {
|
|
125
|
-
page: number;
|
|
126
|
-
limit: number;
|
|
127
|
-
total: number;
|
|
128
|
-
totalPages: number;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* API response for fetching notifications (frontend format)
|
|
133
|
-
*/
|
|
134
|
-
interface NotificationsResponse {
|
|
135
|
-
/**
|
|
136
|
-
* List of notifications
|
|
137
|
-
*/
|
|
138
|
-
notifications: Notification[];
|
|
139
|
-
/**
|
|
140
|
-
* Total count of notifications
|
|
141
|
-
*/
|
|
142
|
-
totalCount: number;
|
|
143
|
-
/**
|
|
144
|
-
* Count of unread notifications
|
|
145
|
-
*/
|
|
146
|
-
unreadCount: number;
|
|
147
|
-
/**
|
|
148
|
-
* Whether there are more notifications to load
|
|
149
|
-
*/
|
|
150
|
-
hasMore: boolean;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Parameters for fetching notifications
|
|
154
|
-
*/
|
|
155
|
-
interface FetchNotificationsParams {
|
|
156
|
-
/**
|
|
157
|
-
* Page number for pagination
|
|
158
|
-
*/
|
|
159
|
-
page?: number;
|
|
160
|
-
/**
|
|
161
|
-
* Number of items per page
|
|
162
|
-
*/
|
|
163
|
-
limit?: number;
|
|
164
|
-
/**
|
|
165
|
-
* Filter by read status
|
|
166
|
-
*/
|
|
167
|
-
read?: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Filter by entity type
|
|
170
|
-
*/
|
|
171
|
-
entityType?: string;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Notification grouped by time period
|
|
175
|
-
*/
|
|
176
|
-
interface NotificationGroup {
|
|
177
|
-
/**
|
|
178
|
-
* Group label (e.g., "Hoje", "Última semana")
|
|
179
|
-
*/
|
|
180
|
-
label: string;
|
|
181
|
-
/**
|
|
182
|
-
* Notifications in this group
|
|
183
|
-
*/
|
|
184
|
-
notifications: Notification[];
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* API client interface for dependency injection
|
|
188
|
-
*/
|
|
189
|
-
interface NotificationApiClient {
|
|
190
|
-
get: <T>(url: string, config?: {
|
|
191
|
-
params?: Record<string, unknown>;
|
|
192
|
-
}) => Promise<{
|
|
193
|
-
data: T;
|
|
194
|
-
}>;
|
|
195
|
-
patch: <T>(url: string, data?: Record<string, unknown>) => Promise<{
|
|
196
|
-
data: T;
|
|
197
|
-
}>;
|
|
198
|
-
delete: <T>(url: string) => Promise<{
|
|
199
|
-
data: T;
|
|
200
|
-
}>;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
interface NotificationItem extends Omit<Notification, 'createdAt'> {
|
|
204
|
-
time: string;
|
|
205
|
-
createdAt: string | Date;
|
|
206
|
-
}
|
|
207
|
-
interface BaseNotificationProps {
|
|
208
|
-
/**
|
|
209
|
-
* Additional CSS classes
|
|
210
|
-
*/
|
|
211
|
-
className?: string;
|
|
212
|
-
/**
|
|
213
|
-
* Empty state image path
|
|
214
|
-
*/
|
|
215
|
-
emptyStateImage?: string;
|
|
216
|
-
/**
|
|
217
|
-
* Empty state title
|
|
218
|
-
*/
|
|
219
|
-
emptyStateTitle?: string;
|
|
220
|
-
/**
|
|
221
|
-
* Empty state description
|
|
222
|
-
*/
|
|
223
|
-
emptyStateDescription?: string;
|
|
224
|
-
}
|
|
225
|
-
interface SingleNotificationCardMode extends BaseNotificationProps {
|
|
226
|
-
/**
|
|
227
|
-
* Component mode - single card
|
|
228
|
-
*/
|
|
229
|
-
mode: 'single';
|
|
230
|
-
/**
|
|
231
|
-
* The notification title
|
|
232
|
-
*/
|
|
233
|
-
title: string;
|
|
234
|
-
/**
|
|
235
|
-
* The notification message content
|
|
236
|
-
*/
|
|
237
|
-
message: string;
|
|
238
|
-
/**
|
|
239
|
-
* Time displayed (e.g., "Há 3h", "12 Fev")
|
|
240
|
-
*/
|
|
241
|
-
time: string;
|
|
242
|
-
/**
|
|
243
|
-
* Whether the notification has been read
|
|
244
|
-
*/
|
|
245
|
-
isRead: boolean;
|
|
246
|
-
/**
|
|
247
|
-
* Callback when user marks notification as read
|
|
248
|
-
*/
|
|
249
|
-
onMarkAsRead: () => void;
|
|
250
|
-
/**
|
|
251
|
-
* Callback when user deletes notification
|
|
252
|
-
*/
|
|
253
|
-
onDelete: () => void;
|
|
254
|
-
/**
|
|
255
|
-
* Optional callback for navigation action
|
|
256
|
-
*/
|
|
257
|
-
onNavigate?: () => void;
|
|
258
|
-
/**
|
|
259
|
-
* Label for the action button (only shown if onNavigate is provided)
|
|
260
|
-
*/
|
|
261
|
-
actionLabel?: string;
|
|
262
|
-
}
|
|
263
|
-
interface NotificationListMode extends BaseNotificationProps {
|
|
264
|
-
/**
|
|
265
|
-
* Component mode - list
|
|
266
|
-
*/
|
|
267
|
-
mode: 'list';
|
|
268
|
-
/**
|
|
269
|
-
* Array of notifications for list mode
|
|
270
|
-
*/
|
|
271
|
-
notifications?: NotificationItem[];
|
|
272
|
-
/**
|
|
273
|
-
* Array of grouped notifications
|
|
274
|
-
*/
|
|
275
|
-
groupedNotifications?: NotificationGroup[];
|
|
276
|
-
/**
|
|
277
|
-
* Loading state for list mode
|
|
278
|
-
*/
|
|
279
|
-
loading?: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* Error state for list mode
|
|
282
|
-
*/
|
|
283
|
-
error?: string | null;
|
|
284
|
-
/**
|
|
285
|
-
* Callback for retry when error occurs
|
|
286
|
-
*/
|
|
287
|
-
onRetry?: () => void;
|
|
288
|
-
/**
|
|
289
|
-
* Callback when user marks a notification as read in list mode
|
|
290
|
-
*/
|
|
291
|
-
onMarkAsReadById?: (id: string) => void;
|
|
292
|
-
/**
|
|
293
|
-
* Callback when user deletes a notification in list mode
|
|
294
|
-
*/
|
|
295
|
-
onDeleteById?: (id: string) => void;
|
|
296
|
-
/**
|
|
297
|
-
* Callback when user navigates from a notification in list mode
|
|
298
|
-
*/
|
|
299
|
-
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
300
|
-
/**
|
|
301
|
-
* Callback when user clicks on a global notification
|
|
302
|
-
*/
|
|
303
|
-
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
304
|
-
/**
|
|
305
|
-
* Function to get action label for a notification
|
|
306
|
-
*/
|
|
307
|
-
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
308
|
-
/**
|
|
309
|
-
* Custom empty state component
|
|
310
|
-
*/
|
|
311
|
-
renderEmpty?: () => ReactNode;
|
|
312
|
-
}
|
|
313
|
-
interface NotificationCenterMode extends BaseNotificationProps {
|
|
314
|
-
/**
|
|
315
|
-
* Component mode - center
|
|
316
|
-
*/
|
|
317
|
-
mode: 'center';
|
|
318
|
-
/**
|
|
319
|
-
* Array of grouped notifications
|
|
320
|
-
*/
|
|
321
|
-
groupedNotifications?: NotificationGroup[];
|
|
322
|
-
/**
|
|
323
|
-
* Loading state for center mode
|
|
324
|
-
*/
|
|
325
|
-
loading?: boolean;
|
|
326
|
-
/**
|
|
327
|
-
* Error state for center mode
|
|
328
|
-
*/
|
|
329
|
-
error?: string | null;
|
|
330
|
-
/**
|
|
331
|
-
* Callback for retry when error occurs
|
|
332
|
-
*/
|
|
333
|
-
onRetry?: () => void;
|
|
334
|
-
/**
|
|
335
|
-
* Whether center mode is currently active (controls dropdown/modal visibility)
|
|
336
|
-
*/
|
|
337
|
-
isActive?: boolean;
|
|
338
|
-
/**
|
|
339
|
-
* Callback when center mode is toggled
|
|
340
|
-
*/
|
|
341
|
-
onToggleActive?: () => void;
|
|
342
|
-
/**
|
|
343
|
-
* Number of unread notifications for badge display
|
|
344
|
-
*/
|
|
345
|
-
unreadCount?: number;
|
|
346
|
-
/**
|
|
347
|
-
* Callback when all notifications should be marked as read
|
|
348
|
-
*/
|
|
349
|
-
onMarkAllAsRead?: () => void;
|
|
350
|
-
/**
|
|
351
|
-
* Callback to fetch notifications (called when center opens)
|
|
352
|
-
*/
|
|
353
|
-
onFetchNotifications?: () => void;
|
|
354
|
-
/**
|
|
355
|
-
* Callback when user marks a notification as read in center mode
|
|
356
|
-
*/
|
|
357
|
-
onMarkAsReadById?: (id: string) => void;
|
|
358
|
-
/**
|
|
359
|
-
* Callback when user deletes a notification in center mode
|
|
360
|
-
*/
|
|
361
|
-
onDeleteById?: (id: string) => void;
|
|
362
|
-
/**
|
|
363
|
-
* Callback when user navigates from a notification in center mode
|
|
364
|
-
*/
|
|
365
|
-
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
366
|
-
/**
|
|
367
|
-
* Function to get action label for a notification
|
|
368
|
-
*/
|
|
369
|
-
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
370
|
-
/**
|
|
371
|
-
* Callback when dropdown open state changes (for synchronization with parent)
|
|
372
|
-
*/
|
|
373
|
-
onOpenChange?: (open: boolean) => void;
|
|
374
|
-
}
|
|
375
|
-
type NotificationCardProps = SingleNotificationCardMode | NotificationListMode | NotificationCenterMode;
|
|
376
|
-
interface LegacyNotificationCardProps extends BaseNotificationProps {
|
|
377
|
-
title?: string;
|
|
378
|
-
message?: string;
|
|
379
|
-
time?: string;
|
|
380
|
-
isRead?: boolean;
|
|
381
|
-
onMarkAsRead?: () => void;
|
|
382
|
-
onDelete?: () => void;
|
|
383
|
-
onNavigate?: () => void;
|
|
384
|
-
actionLabel?: string;
|
|
385
|
-
notifications?: NotificationItem[];
|
|
386
|
-
groupedNotifications?: NotificationGroup[];
|
|
387
|
-
loading?: boolean;
|
|
388
|
-
error?: string | null;
|
|
389
|
-
onRetry?: () => void;
|
|
390
|
-
onMarkAsReadById?: (id: string) => void;
|
|
391
|
-
onDeleteById?: (id: string) => void;
|
|
392
|
-
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
393
|
-
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
394
|
-
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
395
|
-
renderEmpty?: () => ReactNode;
|
|
396
|
-
variant?: 'card' | 'center';
|
|
397
|
-
isActive?: boolean;
|
|
398
|
-
onToggleActive?: () => void;
|
|
399
|
-
unreadCount?: number;
|
|
400
|
-
onMarkAllAsRead?: () => void;
|
|
401
|
-
onFetchNotifications?: () => void;
|
|
402
|
-
onOpenChange?: (open: boolean) => void;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* NotificationCard component - can display single notification, list of notifications, or center mode
|
|
406
|
-
*
|
|
407
|
-
* @param props - The notification card properties
|
|
408
|
-
* @returns JSX element representing the notification card, list, or center
|
|
409
|
-
*/
|
|
410
|
-
declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
411
|
-
/**
|
|
412
|
-
* Legacy NotificationCard component for backward compatibility
|
|
413
|
-
* Automatically detects mode based on provided props
|
|
414
|
-
*/
|
|
415
|
-
declare const LegacyNotificationCard: (props: LegacyNotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
416
|
-
|
|
417
|
-
export { type BackendNotification as B, type FetchNotificationsParams as F, type LegacyNotificationCardProps as L, type NotificationApiClient as N, type Notification as a, type NotificationGroup as b, NotificationEntityType as c, type NotificationType as d, NotificationCard as e, type NotificationItem as f, type BackendNotificationsResponse as g, type NotificationsResponse as h, type NotificationCardProps as i, LegacyNotificationCard as j };
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Progress bar size variants
|
|
6
|
-
*/
|
|
7
|
-
type ProgressBarSize = 'small' | 'medium';
|
|
8
|
-
/**
|
|
9
|
-
* Progress bar color variants
|
|
10
|
-
*/
|
|
11
|
-
type ProgressBarVariant = 'blue' | 'green';
|
|
12
|
-
/**
|
|
13
|
-
* Progress bar layout variants
|
|
14
|
-
*/
|
|
15
|
-
type ProgressBarLayout = 'default' | 'stacked' | 'compact';
|
|
16
|
-
/**
|
|
17
|
-
* ProgressBar component props interface
|
|
18
|
-
*/
|
|
19
|
-
type ProgressBarProps = {
|
|
20
|
-
/** Progress value between 0 and 100 */
|
|
21
|
-
value: number;
|
|
22
|
-
/** Maximum value (defaults to 100) */
|
|
23
|
-
max?: number;
|
|
24
|
-
/** Size variant of the progress bar */
|
|
25
|
-
size?: ProgressBarSize;
|
|
26
|
-
/** Color variant of the progress bar */
|
|
27
|
-
variant?: ProgressBarVariant;
|
|
28
|
-
/** Layout variant of the progress bar */
|
|
29
|
-
layout?: ProgressBarLayout;
|
|
30
|
-
/** Optional label to display */
|
|
31
|
-
label?: ReactNode;
|
|
32
|
-
/** Show percentage text */
|
|
33
|
-
showPercentage?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Show hit count (e.g., "28 de 30") instead of percentage
|
|
36
|
-
*
|
|
37
|
-
* PRIORITY: When both showHitCount and showPercentage are true,
|
|
38
|
-
* showHitCount takes precedence (stacked and compact layouts only).
|
|
39
|
-
* Default layout does not support showHitCount.
|
|
40
|
-
*/
|
|
41
|
-
showHitCount?: boolean;
|
|
42
|
-
/** Additional CSS classes */
|
|
43
|
-
className?: string;
|
|
44
|
-
/** Label CSS classes */
|
|
45
|
-
labelClassName?: string;
|
|
46
|
-
/** Percentage text CSS classes */
|
|
47
|
-
percentageClassName?: string;
|
|
48
|
-
/** Custom width for stacked layout (defaults to w-[380px]) */
|
|
49
|
-
stackedWidth?: string;
|
|
50
|
-
/** Custom height for stacked layout (defaults to h-[35px]) */
|
|
51
|
-
stackedHeight?: string;
|
|
52
|
-
/** Custom width for compact layout (defaults to w-[131px]) */
|
|
53
|
-
compactWidth?: string;
|
|
54
|
-
/** Custom height for compact layout (defaults to h-[24px]) */
|
|
55
|
-
compactHeight?: string;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* ProgressBar component for Analytica Ensino platforms
|
|
59
|
-
*
|
|
60
|
-
* A progress bar component with size and color variants designed for tracking
|
|
61
|
-
* activity progress (blue) and performance metrics (green).
|
|
62
|
-
* Uses the Analytica Ensino Design System colors from styles.css with automatic
|
|
63
|
-
* light/dark mode support. Includes Text component integration for consistent typography.
|
|
64
|
-
*
|
|
65
|
-
* CONTENT DISPLAY PRIORITY (Consistent across all layouts):
|
|
66
|
-
* 1. showHitCount (highest) - "X de Y" format (stacked/compact only)
|
|
67
|
-
* 2. showPercentage - "X%" format
|
|
68
|
-
* 3. label (lowest) - Custom label text
|
|
69
|
-
*
|
|
70
|
-
* When multiple display options are enabled, higher priority options take precedence.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```tsx
|
|
74
|
-
* // Basic progress bar
|
|
75
|
-
* <ProgressBar value={65} />
|
|
76
|
-
*
|
|
77
|
-
* // Activity progress (blue)
|
|
78
|
-
* <ProgressBar variant="blue" value={45} label="Progress" showPercentage />
|
|
79
|
-
*
|
|
80
|
-
* // Performance metrics (green)
|
|
81
|
-
* <ProgressBar variant="green" size="medium" value={85} label="Performance" />
|
|
82
|
-
*
|
|
83
|
-
* // Small size with custom max value
|
|
84
|
-
* <ProgressBar size="small" value={3} max={5} showPercentage />
|
|
85
|
-
*
|
|
86
|
-
* // Stacked layout with fixed width and hit count
|
|
87
|
-
* <ProgressBar layout="stacked" variant="green" value={28} max={30} label="Fáceis" showHitCount />
|
|
88
|
-
*
|
|
89
|
-
* // Compact layout for small cards
|
|
90
|
-
* <ProgressBar layout="compact" variant="blue" value={70} label="Questão 08" />
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
declare const ProgressBar: ({ value, max, size, variant, layout, label, showPercentage, showHitCount, className, labelClassName, percentageClassName, stackedWidth, stackedHeight, compactWidth, compactHeight, }: ProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
94
|
-
|
|
95
|
-
export { type ProgressBarProps, ProgressBar as default };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Progress circle size variants
|
|
6
|
-
*/
|
|
7
|
-
type ProgressCircleSize = 'small' | 'medium';
|
|
8
|
-
/**
|
|
9
|
-
* Progress circle color variants
|
|
10
|
-
*/
|
|
11
|
-
type ProgressCircleVariant = 'blue' | 'green';
|
|
12
|
-
/**
|
|
13
|
-
* ProgressCircle component props interface
|
|
14
|
-
*/
|
|
15
|
-
type ProgressCircleProps = {
|
|
16
|
-
/** Progress value between 0 and 100 */
|
|
17
|
-
value: number;
|
|
18
|
-
/** Maximum value (defaults to 100) */
|
|
19
|
-
max?: number;
|
|
20
|
-
/** Size variant of the progress circle */
|
|
21
|
-
size?: ProgressCircleSize;
|
|
22
|
-
/** Color variant of the progress circle */
|
|
23
|
-
variant?: ProgressCircleVariant;
|
|
24
|
-
/** Optional label to display below percentage */
|
|
25
|
-
label?: ReactNode;
|
|
26
|
-
/** Show percentage text */
|
|
27
|
-
showPercentage?: boolean;
|
|
28
|
-
/** Additional CSS classes */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** Label CSS classes */
|
|
31
|
-
labelClassName?: string;
|
|
32
|
-
/** Percentage text CSS classes */
|
|
33
|
-
percentageClassName?: string;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* ProgressCircle component for Analytica Ensino platforms
|
|
37
|
-
*
|
|
38
|
-
* A circular progress indicator with size and color variants designed for tracking
|
|
39
|
-
* activity progress (blue) and performance metrics (green).
|
|
40
|
-
* Uses the Analytica Ensino Design System colors from styles.css with automatic
|
|
41
|
-
* light/dark mode support. Includes Text component integration for consistent typography.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```tsx
|
|
45
|
-
* // Basic progress circle
|
|
46
|
-
* <ProgressCircle value={65} />
|
|
47
|
-
*
|
|
48
|
-
* // Activity progress (blue)
|
|
49
|
-
* <ProgressCircle variant="blue" value={45} label="CONCLUÍDO" showPercentage />
|
|
50
|
-
*
|
|
51
|
-
* // Performance metrics (green)
|
|
52
|
-
* <ProgressCircle variant="green" size="medium" value={85} label="MÉDIA" />
|
|
53
|
-
*
|
|
54
|
-
* // Small size with custom max value
|
|
55
|
-
* <ProgressCircle size="small" value={3} max={5} showPercentage />
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
declare const ProgressCircle: ({ value, max, size, variant, label, showPercentage, className, labelClassName, percentageClassName, }: ProgressCircleProps) => react_jsx_runtime.JSX.Element;
|
|
59
|
-
|
|
60
|
-
export { type ProgressCircleProps, ProgressCircle as default };
|
package/dist/Quiz/index.d.mts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
import { QUIZ_TYPE } from './useQuizStore/index.mjs';
|
|
5
|
-
import 'zustand';
|
|
6
|
-
|
|
7
|
-
declare const getQuizTypeConfig: (type: QUIZ_TYPE) => {
|
|
8
|
-
readonly label: "Simulado";
|
|
9
|
-
readonly article: "o";
|
|
10
|
-
readonly preposition: "do";
|
|
11
|
-
} | {
|
|
12
|
-
readonly label: "Questionário";
|
|
13
|
-
readonly article: "o";
|
|
14
|
-
readonly preposition: "do";
|
|
15
|
-
} | {
|
|
16
|
-
readonly label: "Atividade";
|
|
17
|
-
readonly article: "a";
|
|
18
|
-
readonly preposition: "da";
|
|
19
|
-
};
|
|
20
|
-
declare const getTypeLabel: (type: QUIZ_TYPE) => "Simulado" | "Questionário" | "Atividade";
|
|
21
|
-
declare const getQuizArticle: (type: QUIZ_TYPE) => "a" | "o";
|
|
22
|
-
declare const getQuizPreposition: (type: QUIZ_TYPE) => "do" | "da";
|
|
23
|
-
declare const getCompletionTitle: (type: QUIZ_TYPE) => string;
|
|
24
|
-
declare const getExitConfirmationText: (type: QUIZ_TYPE) => string;
|
|
25
|
-
declare const getFinishConfirmationText: (type: QUIZ_TYPE) => string;
|
|
26
|
-
declare const Quiz: react.ForwardRefExoticComponent<{
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
className?: string;
|
|
29
|
-
variant?: "result" | "default";
|
|
30
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
declare const QuizTitle: react.ForwardRefExoticComponent<{
|
|
32
|
-
className?: string;
|
|
33
|
-
onBack?: () => void;
|
|
34
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
declare const QuizHeader: () => react_jsx_runtime.JSX.Element;
|
|
36
|
-
declare const QuizContent: ({ paddingBottom }: {
|
|
37
|
-
paddingBottom?: string;
|
|
38
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
39
|
-
declare const QuizQuestionList: ({ filterType, onQuestionClick, }?: {
|
|
40
|
-
filterType?: string;
|
|
41
|
-
onQuestionClick?: () => void;
|
|
42
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
43
|
-
declare const QuizFooter: react.ForwardRefExoticComponent<{
|
|
44
|
-
className?: string;
|
|
45
|
-
onGoToSimulated?: () => void;
|
|
46
|
-
onDetailResult?: () => void;
|
|
47
|
-
handleFinishSimulated?: () => void;
|
|
48
|
-
onGoToNextModule?: () => void;
|
|
49
|
-
onRepeat?: () => void;
|
|
50
|
-
onTryLater?: () => void;
|
|
51
|
-
resultImageComponent?: ReactNode;
|
|
52
|
-
resultIncorrectImageComponent?: ReactNode;
|
|
53
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
54
|
-
|
|
55
|
-
export { Quiz, QuizContent, QuizFooter, QuizHeader, QuizQuestionList, QuizTitle, getCompletionTitle, getExitConfirmationText, getFinishConfirmationText, getQuizArticle, getQuizPreposition, getQuizTypeConfig, getTypeLabel };
|