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,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Options interface for the useUrlAuthentication hook
|
|
3
|
-
*
|
|
4
|
-
* @template Tokens - Type for authentication tokens
|
|
5
|
-
* @template Session - Type for session information
|
|
6
|
-
* @template Profile - Type for profile information
|
|
7
|
-
* @template User - Type for user information
|
|
8
|
-
*
|
|
9
|
-
* @interface UseUrlAuthOptions
|
|
10
|
-
* @property {(tokens: Tokens) => void} setTokens - Function to set authentication tokens
|
|
11
|
-
* @property {(session: Session) => void} setSessionInfo - Function to set session information
|
|
12
|
-
* @property {(profile: Profile) => void} [setSelectedProfile] - Optional function to set selected profile
|
|
13
|
-
* @property {(user: User) => void} [setUser] - Optional function to set user data
|
|
14
|
-
* @property {object} api - API instance with get method
|
|
15
|
-
* @property {(endpoint: string, config: unknown) => Promise<unknown>} api.get - API get method
|
|
16
|
-
* @property {string} endpoint - API endpoint to fetch session data
|
|
17
|
-
* @property {(searchParams: URLSearchParams) => object} [extractParams] - Custom parameter extraction function
|
|
18
|
-
* @property {() => void} [clearParamsFromURL] - Function to clear URL parameters after processing
|
|
19
|
-
* @property {number} [maxRetries] - Maximum number of retry attempts (default: 3)
|
|
20
|
-
* @property {number} [retryDelay] - Base delay between retries in milliseconds (default: 1000)
|
|
21
|
-
* @property {(error: unknown) => void} [onError] - Error handler callback
|
|
22
|
-
*/
|
|
23
|
-
interface UseUrlAuthOptions<Tokens = unknown, Session = unknown, Profile = unknown, User = unknown> {
|
|
24
|
-
setTokens: (tokens: Tokens) => void;
|
|
25
|
-
setSessionInfo: (session: Session) => void;
|
|
26
|
-
setSelectedProfile?: (profile: Profile) => void;
|
|
27
|
-
setUser?: (user: User) => void;
|
|
28
|
-
api: {
|
|
29
|
-
get: (endpoint: string, config: unknown) => Promise<unknown>;
|
|
30
|
-
};
|
|
31
|
-
endpoint: string;
|
|
32
|
-
extractParams?: (searchParams: URLSearchParams) => {
|
|
33
|
-
sessionId: string;
|
|
34
|
-
token: string;
|
|
35
|
-
refreshToken: string;
|
|
36
|
-
};
|
|
37
|
-
clearParamsFromURL?: () => void;
|
|
38
|
-
maxRetries?: number;
|
|
39
|
-
retryDelay?: number;
|
|
40
|
-
onError?: (error: unknown) => void;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Hook for handling URL-based authentication
|
|
44
|
-
* Extracts authentication parameters from URL and processes them
|
|
45
|
-
*
|
|
46
|
-
* @template Tokens - Type for authentication tokens
|
|
47
|
-
* @template Session - Type for session information
|
|
48
|
-
* @template Profile - Type for profile information
|
|
49
|
-
* @template User - Type for user information
|
|
50
|
-
*
|
|
51
|
-
* @param {UseUrlAuthOptions<Tokens, Session, Profile, User>} options - Configuration options
|
|
52
|
-
* @returns {void}
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```typescript
|
|
56
|
-
* useUrlAuthentication({
|
|
57
|
-
* setTokens: (tokens) => authStore.setTokens(tokens),
|
|
58
|
-
* setSessionInfo: (session) => authStore.setSessionInfo(session),
|
|
59
|
-
* setSelectedProfile: (profile) => authStore.setProfile(profile),
|
|
60
|
-
* setUser: (user) => authStore.setUser(user),
|
|
61
|
-
* api: apiInstance,
|
|
62
|
-
* endpoint: '/auth/session',
|
|
63
|
-
* clearParamsFromURL: () => navigate('/', { replace: true })
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
declare function useUrlAuthentication<Tokens = unknown, Session = unknown, Profile = unknown, User = unknown>(options: UseUrlAuthOptions<Tokens, Session, Profile, User>): void;
|
|
68
|
-
|
|
69
|
-
export { type UseUrlAuthOptions, useUrlAuthentication };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import 'react/jsx-runtime';
|
|
2
|
-
import 'react';
|
|
3
|
-
export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic adapter for integrating AuthProvider with Zustand stores
|
|
3
|
-
* Users should import this file and pass their store instance
|
|
4
|
-
*
|
|
5
|
-
* @template S - Zustand store type that contains auth-related state
|
|
6
|
-
* @param {object} useAuthStore - Zustand store hook with getState method
|
|
7
|
-
* @param {() => S} useAuthStore.getState - Function to get current store state
|
|
8
|
-
* @returns {object} Adapter object with auth functions
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* // Define your Zustand store type
|
|
13
|
-
* interface AuthStore {
|
|
14
|
-
* sessionInfo?: SessionInfo;
|
|
15
|
-
* tokens?: AuthTokens;
|
|
16
|
-
* user?: AuthUser;
|
|
17
|
-
* signOut: () => void;
|
|
18
|
-
* }
|
|
19
|
-
*
|
|
20
|
-
* // Create the adapter
|
|
21
|
-
* const authAdapter = createZustandAuthAdapter(useAuthStore);
|
|
22
|
-
*
|
|
23
|
-
* // Use with AuthProvider
|
|
24
|
-
* <AuthProvider
|
|
25
|
-
* checkAuthFn={authAdapter.checkAuth}
|
|
26
|
-
* signOutFn={authAdapter.signOut}
|
|
27
|
-
* getUserFn={authAdapter.getUser}
|
|
28
|
-
* getSessionFn={authAdapter.getSessionInfo}
|
|
29
|
-
* getTokensFn={authAdapter.getTokens}
|
|
30
|
-
* >
|
|
31
|
-
* <App />
|
|
32
|
-
* </AuthProvider>
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare function createZustandAuthAdapter<S extends {
|
|
36
|
-
sessionInfo?: unknown;
|
|
37
|
-
tokens?: unknown;
|
|
38
|
-
user?: unknown;
|
|
39
|
-
signOut?: () => void;
|
|
40
|
-
}>(useAuthStore: {
|
|
41
|
-
getState: () => S;
|
|
42
|
-
}): {
|
|
43
|
-
/**
|
|
44
|
-
* Check if the user is authenticated based on sessionInfo and tokens
|
|
45
|
-
*
|
|
46
|
-
* @returns {Promise<boolean>} Promise that resolves to authentication status
|
|
47
|
-
*/
|
|
48
|
-
checkAuth: () => Promise<boolean>;
|
|
49
|
-
/**
|
|
50
|
-
* Get the current user from the store
|
|
51
|
-
*
|
|
52
|
-
* @returns {unknown} Current user data from the store
|
|
53
|
-
*/
|
|
54
|
-
getUser: () => unknown;
|
|
55
|
-
/**
|
|
56
|
-
* Get the current session information from the store
|
|
57
|
-
*
|
|
58
|
-
* @returns {unknown} Current session info from the store
|
|
59
|
-
*/
|
|
60
|
-
getSessionInfo: () => unknown;
|
|
61
|
-
/**
|
|
62
|
-
* Get the current authentication tokens from the store
|
|
63
|
-
*
|
|
64
|
-
* @returns {unknown} Current tokens from the store
|
|
65
|
-
*/
|
|
66
|
-
getTokens: () => unknown;
|
|
67
|
-
/**
|
|
68
|
-
* Sign out the user by calling the store's signOut function if available
|
|
69
|
-
*
|
|
70
|
-
* @returns {void}
|
|
71
|
-
*/
|
|
72
|
-
signOut: () => void;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export { createZustandAuthAdapter };
|
package/dist/Badge/index.d.mts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, HTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Badge component props interface
|
|
6
|
-
*/
|
|
7
|
-
type BadgeProps = {
|
|
8
|
-
/** Content to be displayed inside the badge */
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
/** Ícone à direita do texto */
|
|
11
|
-
iconRight?: ReactNode;
|
|
12
|
-
/** Ícone à esquerda do texto */
|
|
13
|
-
iconLeft?: ReactNode;
|
|
14
|
-
/** Size of the badge */
|
|
15
|
-
size?: 'small' | 'medium' | 'large';
|
|
16
|
-
/** Visual variant of the badge */
|
|
17
|
-
variant?: 'solid' | 'outlined' | 'exams' | 'examsOutlined' | 'resultStatus' | 'notification';
|
|
18
|
-
/** Action type of the badge */
|
|
19
|
-
action?: 'error' | 'warning' | 'success' | 'info' | 'muted' | 'exam1' | 'exam2' | 'exam3' | 'exam4' | 'positive' | 'negative';
|
|
20
|
-
/** Additional CSS classes to apply */
|
|
21
|
-
className?: string;
|
|
22
|
-
notificationActive?: boolean;
|
|
23
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
24
|
-
/**
|
|
25
|
-
* Badge component for Analytica Ensino platforms
|
|
26
|
-
*
|
|
27
|
-
* A flexible button component with multiple variants, sizes and actions.
|
|
28
|
-
*
|
|
29
|
-
* @param children - The content to display inside the badge
|
|
30
|
-
* @param size - The size variant (extra-small, small, medium, large, extra-large)
|
|
31
|
-
* @param variant - The visual style variant (solid, outline, link)
|
|
32
|
-
* @param action - The action type (primary, positive, negative)
|
|
33
|
-
* @param className - Additional CSS classes
|
|
34
|
-
* @param props - All other standard div HTML attributes
|
|
35
|
-
* @returns A styled badge element
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* <Badge variant="solid" action="info" size="medium">
|
|
40
|
-
* Information
|
|
41
|
-
* </Badge>
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
declare const Badge: ({ children, iconLeft, iconRight, size, variant, action, className, notificationActive, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
45
|
-
|
|
46
|
-
export { Badge as default };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as zustand from 'zustand';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Interface para um item de breadcrumb
|
|
5
|
-
*/
|
|
6
|
-
interface BreadcrumbItem {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
url: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Interface para o estado do store de breadcrumbs
|
|
13
|
-
*/
|
|
14
|
-
interface BreadcrumbStore {
|
|
15
|
-
breadcrumbs: Record<string, BreadcrumbItem[]>;
|
|
16
|
-
setBreadcrumbs: (namespace: string, items: BreadcrumbItem[]) => void;
|
|
17
|
-
addBreadcrumb: (namespace: string, item: BreadcrumbItem) => void;
|
|
18
|
-
updateBreadcrumb: (namespace: string, itemId: string, updates: Partial<BreadcrumbItem>) => void;
|
|
19
|
-
removeBreadcrumbFrom: (namespace: string, itemId: string) => void;
|
|
20
|
-
sliceBreadcrumbs: (namespace: string, index: number) => void;
|
|
21
|
-
clearBreadcrumbs: (namespace: string) => void;
|
|
22
|
-
getBreadcrumbs: (namespace: string) => BreadcrumbItem[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Store Zustand para gerenciar breadcrumbs
|
|
26
|
-
* Suporta múltiplas instâncias através de namespaces
|
|
27
|
-
*/
|
|
28
|
-
declare const useBreadcrumbStore: zustand.UseBoundStore<zustand.StoreApi<BreadcrumbStore>>;
|
|
29
|
-
/**
|
|
30
|
-
* Hook customizado para facilitar o uso de breadcrumbs
|
|
31
|
-
*
|
|
32
|
-
* @param namespace - Identificador único para esta instância de breadcrumbs
|
|
33
|
-
* @returns Objeto com breadcrumbs e métodos para manipulá-los
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```tsx
|
|
37
|
-
* const { breadcrumbs, setBreadcrumbs, addBreadcrumb } = useBreadcrumb('performance');
|
|
38
|
-
*
|
|
39
|
-
* // Definir breadcrumbs iniciais
|
|
40
|
-
* setBreadcrumbs([
|
|
41
|
-
* { id: 'home', name: 'Home', url: '/' },
|
|
42
|
-
* { id: 'page', name: 'Page', url: '/page' }
|
|
43
|
-
* ]);
|
|
44
|
-
*
|
|
45
|
-
* // Adicionar novo breadcrumb
|
|
46
|
-
* addBreadcrumb({ id: 'detail', name: 'Detail', url: '/page/detail' });
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
declare const useBreadcrumb: (namespace: string) => {
|
|
50
|
-
breadcrumbs: BreadcrumbItem[];
|
|
51
|
-
/**
|
|
52
|
-
* Define todos os breadcrumbs de uma vez
|
|
53
|
-
*/
|
|
54
|
-
setBreadcrumbs: (items: BreadcrumbItem[]) => void;
|
|
55
|
-
/**
|
|
56
|
-
* Adiciona um novo breadcrumb ao final
|
|
57
|
-
*/
|
|
58
|
-
addBreadcrumb: (item: BreadcrumbItem) => void;
|
|
59
|
-
/**
|
|
60
|
-
* Atualiza um breadcrumb existente
|
|
61
|
-
*/
|
|
62
|
-
updateBreadcrumb: (itemId: string, updates: Partial<BreadcrumbItem>) => void;
|
|
63
|
-
/**
|
|
64
|
-
* Remove um breadcrumb e todos os seguintes
|
|
65
|
-
*/
|
|
66
|
-
removeBreadcrumbFrom: (itemId: string) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Mantém apenas os breadcrumbs até o índice especificado (inclusivo)
|
|
69
|
-
*/
|
|
70
|
-
sliceBreadcrumbs: (index: number) => void;
|
|
71
|
-
/**
|
|
72
|
-
* Limpa todos os breadcrumbs
|
|
73
|
-
*/
|
|
74
|
-
clearBreadcrumbs: () => void;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export { type BreadcrumbItem, useBreadcrumb, useBreadcrumbStore };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { BreadcrumbItem } from './breadcrumbStore/index.mjs';
|
|
3
|
-
import 'zustand';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Props do componente BreadcrumbMenu
|
|
7
|
-
*/
|
|
8
|
-
interface BreadcrumbMenuProps {
|
|
9
|
-
/** Lista de breadcrumbs a serem exibidos */
|
|
10
|
-
breadcrumbs: BreadcrumbItem[];
|
|
11
|
-
/** Callback quando um breadcrumb é clicado */
|
|
12
|
-
onBreadcrumbClick?: (breadcrumb: BreadcrumbItem, index: number) => void;
|
|
13
|
-
/** Classes CSS adicionais */
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Componente reutilizável para renderizar um menu de breadcrumbs
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* <BreadcrumbMenu
|
|
22
|
-
* breadcrumbs={breadcrumbs}
|
|
23
|
-
* onBreadcrumbClick={(breadcrumb, index) => {
|
|
24
|
-
* console.log('Clicked:', breadcrumb, 'at index:', index);
|
|
25
|
-
* }}
|
|
26
|
-
* />
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
declare const BreadcrumbMenu: ({ breadcrumbs, onBreadcrumbClick, className, }: BreadcrumbMenuProps) => react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
export { BreadcrumbMenu, type BreadcrumbMenuProps };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BreadcrumbItem } from '../breadcrumbStore/index.mjs';
|
|
2
|
-
import 'zustand';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Interface para configuração de um nível de breadcrumb dinâmico (com dados)
|
|
6
|
-
*/
|
|
7
|
-
interface BreadcrumbLevelWithData<T = any> {
|
|
8
|
-
/** Dados do nível atual */
|
|
9
|
-
data: T | null;
|
|
10
|
-
/** ID extraído da URL para comparação */
|
|
11
|
-
urlId?: string;
|
|
12
|
-
/** Função para obter o ID dos dados */
|
|
13
|
-
getId: (data: T) => string;
|
|
14
|
-
/** Função para obter o nome dos dados */
|
|
15
|
-
getName: (data: T) => string;
|
|
16
|
-
/** Função para construir a URL do breadcrumb */
|
|
17
|
-
getUrl: (data: T, previousIds: string[]) => string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Interface para configuração de um nível de breadcrumb estático (sem dados)
|
|
21
|
-
*/
|
|
22
|
-
interface BreadcrumbLevelStatic {
|
|
23
|
-
/** Breadcrumb estático */
|
|
24
|
-
breadcrumb: BreadcrumbItem;
|
|
25
|
-
/** ID extraído da URL para validação (se não estiver na URL, não mostra) */
|
|
26
|
-
urlId?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Union type para aceitar ambos os tipos de breadcrumb
|
|
30
|
-
*/
|
|
31
|
-
type BreadcrumbLevel<T = any> = BreadcrumbLevelWithData<T> | BreadcrumbLevelStatic;
|
|
32
|
-
/**
|
|
33
|
-
* Configuração do builder de breadcrumbs
|
|
34
|
-
*/
|
|
35
|
-
interface BreadcrumbBuilderConfig {
|
|
36
|
-
/** Namespace único para este breadcrumb */
|
|
37
|
-
namespace: string;
|
|
38
|
-
/** Breadcrumb inicial (raiz) */
|
|
39
|
-
root: BreadcrumbItem;
|
|
40
|
-
/** Níveis hierárquicos de breadcrumbs (cada um pode ter tipo diferente) */
|
|
41
|
-
levels: BreadcrumbLevel<any>[];
|
|
42
|
-
}
|
|
43
|
-
declare const useBreadcrumbBuilder: (config: BreadcrumbBuilderConfig) => {
|
|
44
|
-
breadcrumbs: BreadcrumbItem[];
|
|
45
|
-
sliceBreadcrumbs: (index: number) => void;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { type BreadcrumbBuilderConfig, type BreadcrumbLevel, type BreadcrumbLevelStatic, type BreadcrumbLevelWithData, useBreadcrumbBuilder };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuração para extração de parâmetros da URL
|
|
3
|
-
*/
|
|
4
|
-
interface UrlParamsConfig {
|
|
5
|
-
/** Mapa de nome do parâmetro para seu índice no path */
|
|
6
|
-
[key: string]: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Hook genérico para extrair parâmetros de uma URL baseado em índices
|
|
10
|
-
*
|
|
11
|
-
* @param config - Configuração com os índices dos parâmetros no path
|
|
12
|
-
* @returns Objeto com os parâmetros extraídos
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* // URL: /desempenho/lista-temas/123/subtemas/456
|
|
17
|
-
* // Path segments: ['desempenho', 'lista-temas', '123', 'subtemas', '456']
|
|
18
|
-
* const params = useUrlParams({
|
|
19
|
-
* subjectId: 2, // índice 2 = '123'
|
|
20
|
-
* topicId: 4, // índice 4 = '456'
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* console.log(params); // { subjectId: '123', topicId: '456' }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare const useUrlParams: <T extends UrlParamsConfig>(config: T) => Record<keyof T, string | undefined>;
|
|
27
|
-
|
|
28
|
-
export { type UrlParamsConfig, useUrlParams };
|
package/dist/Button/index.d.mts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Button component props interface
|
|
6
|
-
*/
|
|
7
|
-
type ButtonProps = {
|
|
8
|
-
/** Content to be displayed inside the button */
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
/** Ícone à esquerda do texto */
|
|
11
|
-
iconLeft?: ReactNode;
|
|
12
|
-
/** Ícone à direita do texto */
|
|
13
|
-
iconRight?: ReactNode;
|
|
14
|
-
/** Size of the button */
|
|
15
|
-
size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
16
|
-
/** Visual variant of the button */
|
|
17
|
-
variant?: 'solid' | 'outline' | 'link';
|
|
18
|
-
/** Action type of the button */
|
|
19
|
-
action?: 'primary' | 'positive' | 'negative';
|
|
20
|
-
/** Additional CSS classes to apply */
|
|
21
|
-
className?: string;
|
|
22
|
-
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
23
|
-
/**
|
|
24
|
-
* Button component for Analytica Ensino platforms
|
|
25
|
-
*
|
|
26
|
-
* A flexible button component with multiple variants, sizes and actions.
|
|
27
|
-
*
|
|
28
|
-
* @param children - The content to display inside the button
|
|
29
|
-
* @param size - The size variant (extra-small, small, medium, large, extra-large)
|
|
30
|
-
* @param variant - The visual style variant (solid, outline, link)
|
|
31
|
-
* @param action - The action type (primary, positive, negative)
|
|
32
|
-
* @param className - Additional CSS classes
|
|
33
|
-
* @param props - All other standard button HTML attributes
|
|
34
|
-
* @returns A styled button element
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```tsx
|
|
38
|
-
* <Button variant="solid" action="primary" size="medium" onClick={() => console.log('clicked')}>
|
|
39
|
-
* Click me
|
|
40
|
-
* </Button>
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
declare const Button: ({ children, iconLeft, iconRight, size, variant, action, className, disabled, type, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
44
|
-
|
|
45
|
-
export { Button as default };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Activity status types for calendar days
|
|
5
|
-
*/
|
|
6
|
-
type ActivityStatus = 'near-deadline' | 'overdue' | 'in-deadline';
|
|
7
|
-
/**
|
|
8
|
-
* Activity data for a specific day
|
|
9
|
-
*/
|
|
10
|
-
interface CalendarActivity {
|
|
11
|
-
id: string;
|
|
12
|
-
status: ActivityStatus;
|
|
13
|
-
title?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Calendar day data
|
|
17
|
-
*/
|
|
18
|
-
interface CalendarDay {
|
|
19
|
-
date: Date;
|
|
20
|
-
isCurrentMonth: boolean;
|
|
21
|
-
isToday: boolean;
|
|
22
|
-
isSelected: boolean;
|
|
23
|
-
activities?: CalendarActivity[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Calendar variant types
|
|
27
|
-
*/
|
|
28
|
-
type CalendarVariant = 'navigation' | 'selection';
|
|
29
|
-
/**
|
|
30
|
-
* Calendar component props
|
|
31
|
-
*/
|
|
32
|
-
interface CalendarProps {
|
|
33
|
-
/** Calendar variant - navigation (compact) or selection (full) */
|
|
34
|
-
variant?: CalendarVariant;
|
|
35
|
-
/** Currently selected date */
|
|
36
|
-
selectedDate?: Date;
|
|
37
|
-
/** Function called when a date is selected */
|
|
38
|
-
onDateSelect?: (date: Date) => void;
|
|
39
|
-
/** Function called when month changes */
|
|
40
|
-
onMonthChange?: (date: Date) => void;
|
|
41
|
-
/** Activities data for calendar days */
|
|
42
|
-
activities?: Record<string, CalendarActivity[]>;
|
|
43
|
-
/** Show activities indicators */
|
|
44
|
-
showActivities?: boolean;
|
|
45
|
-
/** Additional CSS classes */
|
|
46
|
-
className?: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Day names abbreviations
|
|
50
|
-
*/
|
|
51
|
-
declare const WEEK_DAYS: string[];
|
|
52
|
-
/**
|
|
53
|
-
* Calendar component for Analytica Ensino platforms
|
|
54
|
-
*
|
|
55
|
-
* A comprehensive calendar component with activity indicators,
|
|
56
|
-
* date selection, and navigation capabilities.
|
|
57
|
-
*/
|
|
58
|
-
declare const Calendar: ({ variant, selectedDate, onDateSelect, onMonthChange, activities, showActivities, className, }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
59
|
-
|
|
60
|
-
export { type ActivityStatus, type CalendarActivity, type CalendarDay, type CalendarProps, type CalendarVariant, WEEK_DAYS, Calendar as default };
|
package/dist/Card/index.d.mts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
variant?: 'default' | 'compact' | 'minimal';
|
|
7
|
-
layout?: 'horizontal' | 'vertical';
|
|
8
|
-
padding?: 'none' | 'small' | 'medium' | 'large';
|
|
9
|
-
minHeight?: 'none' | 'small' | 'medium' | 'large';
|
|
10
|
-
cursor?: 'default' | 'pointer';
|
|
11
|
-
}
|
|
12
|
-
declare const CardBase: react.ForwardRefExoticComponent<CardBaseProps & react.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
interface CardActivitiesResultsProps extends HTMLAttributes<HTMLDivElement> {
|
|
14
|
-
icon: ReactNode;
|
|
15
|
-
title: string;
|
|
16
|
-
subTitle: string;
|
|
17
|
-
header: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
extended?: boolean;
|
|
20
|
-
action?: 'warning' | 'success' | 'error' | 'info';
|
|
21
|
-
}
|
|
22
|
-
declare const CardActivitiesResults: react.ForwardRefExoticComponent<CardActivitiesResultsProps & react.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
interface CardQuestionProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
|
-
header: string;
|
|
25
|
-
state?: 'done' | 'undone';
|
|
26
|
-
onClickButton?: (valueButton?: unknown) => void;
|
|
27
|
-
valueButton?: unknown;
|
|
28
|
-
}
|
|
29
|
-
declare const CardQuestions: react.ForwardRefExoticComponent<CardQuestionProps & react.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
interface CardProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
31
|
-
header: string;
|
|
32
|
-
subhead?: string;
|
|
33
|
-
initialDate?: string;
|
|
34
|
-
endDate?: string;
|
|
35
|
-
progress?: number;
|
|
36
|
-
direction?: 'horizontal' | 'vertical';
|
|
37
|
-
icon: ReactNode;
|
|
38
|
-
color?: string;
|
|
39
|
-
progressVariant?: 'blue' | 'green';
|
|
40
|
-
showDates?: boolean;
|
|
41
|
-
}
|
|
42
|
-
declare const CardProgress: react.ForwardRefExoticComponent<CardProgressProps & react.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
interface CardTopicProps extends HTMLAttributes<HTMLDivElement> {
|
|
44
|
-
header: string;
|
|
45
|
-
subHead?: string[];
|
|
46
|
-
progress: number;
|
|
47
|
-
showPercentage?: boolean;
|
|
48
|
-
progressVariant?: 'blue' | 'green';
|
|
49
|
-
}
|
|
50
|
-
declare const CardTopic: react.ForwardRefExoticComponent<CardTopicProps & react.RefAttributes<HTMLDivElement>>;
|
|
51
|
-
interface CardPerformanceProps extends HTMLAttributes<HTMLDivElement> {
|
|
52
|
-
header: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
progress?: number;
|
|
55
|
-
labelProgress?: string;
|
|
56
|
-
actionVariant?: 'button' | 'caret';
|
|
57
|
-
progressVariant?: 'blue' | 'green';
|
|
58
|
-
onClickButton?: (valueButton?: unknown) => void;
|
|
59
|
-
valueButton?: unknown;
|
|
60
|
-
}
|
|
61
|
-
declare const CardPerformance: react.ForwardRefExoticComponent<CardPerformanceProps & react.RefAttributes<HTMLDivElement>>;
|
|
62
|
-
interface CardResultsProps extends HTMLAttributes<HTMLDivElement> {
|
|
63
|
-
header: string;
|
|
64
|
-
icon: string;
|
|
65
|
-
correct_answers: number;
|
|
66
|
-
incorrect_answers: number;
|
|
67
|
-
direction?: 'row' | 'col';
|
|
68
|
-
color?: string;
|
|
69
|
-
}
|
|
70
|
-
declare const CardResults: react.ForwardRefExoticComponent<CardResultsProps & react.RefAttributes<HTMLDivElement>>;
|
|
71
|
-
interface CardStatusProps extends HTMLAttributes<HTMLDivElement> {
|
|
72
|
-
header: string;
|
|
73
|
-
status?: 'correct' | 'incorrect' | 'unanswered' | 'pending';
|
|
74
|
-
label?: string;
|
|
75
|
-
}
|
|
76
|
-
declare const CardStatus: react.ForwardRefExoticComponent<CardStatusProps & react.RefAttributes<HTMLDivElement>>;
|
|
77
|
-
interface CardSettingsProps extends HTMLAttributes<HTMLDivElement> {
|
|
78
|
-
icon: ReactNode;
|
|
79
|
-
header: string;
|
|
80
|
-
}
|
|
81
|
-
declare const CardSettings: react.ForwardRefExoticComponent<CardSettingsProps & react.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
interface CardSupportProps extends HTMLAttributes<HTMLDivElement> {
|
|
83
|
-
header: string;
|
|
84
|
-
direction?: 'row' | 'col';
|
|
85
|
-
children: ReactNode;
|
|
86
|
-
}
|
|
87
|
-
declare const CardSupport: react.ForwardRefExoticComponent<CardSupportProps & react.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
interface CardForumProps<T = unknown> extends HTMLAttributes<HTMLDivElement> {
|
|
89
|
-
title: string;
|
|
90
|
-
content: string;
|
|
91
|
-
comments: number;
|
|
92
|
-
date: string;
|
|
93
|
-
hour: string;
|
|
94
|
-
onClickComments?: (value?: T) => void;
|
|
95
|
-
valueComments?: T;
|
|
96
|
-
onClickProfile?: (profile?: T) => void;
|
|
97
|
-
valueProfile?: T;
|
|
98
|
-
}
|
|
99
|
-
declare const CardForum: react.ForwardRefExoticComponent<CardForumProps<unknown> & react.RefAttributes<HTMLDivElement>>;
|
|
100
|
-
interface CardAudioProps extends HTMLAttributes<HTMLDivElement> {
|
|
101
|
-
src?: string;
|
|
102
|
-
title?: string;
|
|
103
|
-
onPlay?: () => void;
|
|
104
|
-
onPause?: () => void;
|
|
105
|
-
onEnded?: () => void;
|
|
106
|
-
onAudioTimeUpdate?: (currentTime: number, duration: number) => void;
|
|
107
|
-
loop?: boolean;
|
|
108
|
-
preload?: 'none' | 'metadata' | 'auto';
|
|
109
|
-
tracks?: Array<{
|
|
110
|
-
kind: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
|
|
111
|
-
src: string;
|
|
112
|
-
srcLang: string;
|
|
113
|
-
label: string;
|
|
114
|
-
default?: boolean;
|
|
115
|
-
}>;
|
|
116
|
-
}
|
|
117
|
-
declare const CardAudio: react.ForwardRefExoticComponent<CardAudioProps & react.RefAttributes<HTMLDivElement>>;
|
|
118
|
-
interface CardSimuladoProps extends HTMLAttributes<HTMLDivElement> {
|
|
119
|
-
title: string;
|
|
120
|
-
duration?: string;
|
|
121
|
-
info: string;
|
|
122
|
-
backgroundColor: 'enem' | 'prova' | 'simuladao' | 'vestibular';
|
|
123
|
-
}
|
|
124
|
-
declare const CardSimulado: react.ForwardRefExoticComponent<CardSimuladoProps & react.RefAttributes<HTMLDivElement>>;
|
|
125
|
-
interface CardTestProps extends Omit<HTMLAttributes<HTMLElement>, 'onSelect'> {
|
|
126
|
-
title: string;
|
|
127
|
-
duration?: string;
|
|
128
|
-
questionsCount?: number;
|
|
129
|
-
additionalInfo?: string;
|
|
130
|
-
selected?: boolean;
|
|
131
|
-
onSelect?: (selected: boolean) => void;
|
|
132
|
-
}
|
|
133
|
-
declare const CardTest: react.ForwardRefExoticComponent<CardTestProps & react.RefAttributes<HTMLElement>>;
|
|
134
|
-
interface SimulationItem {
|
|
135
|
-
id: string;
|
|
136
|
-
title: string;
|
|
137
|
-
type: 'enem' | 'prova' | 'simulado' | 'vestibular';
|
|
138
|
-
info: string;
|
|
139
|
-
}
|
|
140
|
-
interface SimulationHistoryData {
|
|
141
|
-
date: string;
|
|
142
|
-
simulations: SimulationItem[];
|
|
143
|
-
}
|
|
144
|
-
interface CardSimulationHistoryProps extends HTMLAttributes<HTMLDivElement> {
|
|
145
|
-
data: SimulationHistoryData[];
|
|
146
|
-
onSimulationClick?: (simulation: SimulationItem) => void;
|
|
147
|
-
}
|
|
148
|
-
declare const CardSimulationHistory: react.ForwardRefExoticComponent<CardSimulationHistoryProps & react.RefAttributes<HTMLDivElement>>;
|
|
149
|
-
|
|
150
|
-
export { CardActivitiesResults, CardAudio, CardBase, CardForum, CardPerformance, CardProgress, CardQuestions, CardResults, CardSettings, CardSimulado, CardSimulationHistory, CardStatus, CardSupport, CardTest, CardTopic };
|