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,258 +0,0 @@
|
|
|
1
|
-
import * as zustand from 'zustand';
|
|
2
|
-
|
|
3
|
-
declare enum QUESTION_DIFFICULTY {
|
|
4
|
-
FACIL = "FACIL",
|
|
5
|
-
MEDIO = "MEDIO",
|
|
6
|
-
DIFICIL = "DIFICIL"
|
|
7
|
-
}
|
|
8
|
-
declare enum QUIZ_TYPE {
|
|
9
|
-
SIMULADO = "SIMULADO",
|
|
10
|
-
QUESTIONARIO = "QUESTIONARIO",
|
|
11
|
-
ATIVIDADE = "ATIVIDADE"
|
|
12
|
-
}
|
|
13
|
-
declare enum QUESTION_TYPE {
|
|
14
|
-
ALTERNATIVA = "ALTERNATIVA",
|
|
15
|
-
DISSERTATIVA = "DISSERTATIVA",
|
|
16
|
-
MULTIPLA_ESCOLHA = "MULTIPLA_ESCOLHA",
|
|
17
|
-
VERDADEIRO_FALSO = "VERDADEIRO_FALSO",
|
|
18
|
-
LIGAR_PONTOS = "LIGAR_PONTOS",
|
|
19
|
-
PREENCHER = "PREENCHER",
|
|
20
|
-
IMAGEM = "IMAGEM"
|
|
21
|
-
}
|
|
22
|
-
declare enum QUESTION_STATUS {
|
|
23
|
-
PENDENTE_AVALIACAO = "PENDENTE_AVALIACAO",
|
|
24
|
-
RESPOSTA_CORRETA = "RESPOSTA_CORRETA",
|
|
25
|
-
RESPOSTA_INCORRETA = "RESPOSTA_INCORRETA",
|
|
26
|
-
NAO_RESPONDIDO = "NAO_RESPONDIDO"
|
|
27
|
-
}
|
|
28
|
-
declare enum ANSWER_STATUS {
|
|
29
|
-
RESPOSTA_CORRETA = "RESPOSTA_CORRETA",
|
|
30
|
-
RESPOSTA_INCORRETA = "RESPOSTA_INCORRETA",
|
|
31
|
-
PENDENTE_AVALIACAO = "PENDENTE_AVALIACAO",
|
|
32
|
-
NAO_RESPONDIDO = "NAO_RESPONDIDO"
|
|
33
|
-
}
|
|
34
|
-
declare enum SUBTYPE_ENUM {
|
|
35
|
-
PROVA = "PROVA",
|
|
36
|
-
ENEM_PROVA_1 = "ENEM_PROVA_1",
|
|
37
|
-
ENEM_PROVA_2 = "ENEM_PROVA_2",
|
|
38
|
-
VESTIBULAR = "VESTIBULAR",
|
|
39
|
-
SIMULADO = "SIMULADO",
|
|
40
|
-
SIMULADAO = "SIMULADAO"
|
|
41
|
-
}
|
|
42
|
-
interface QuestionResult {
|
|
43
|
-
answers: {
|
|
44
|
-
id: string;
|
|
45
|
-
questionId: string;
|
|
46
|
-
answer: string | null;
|
|
47
|
-
selectedOptions: {
|
|
48
|
-
optionId: string;
|
|
49
|
-
}[];
|
|
50
|
-
answerStatus: ANSWER_STATUS;
|
|
51
|
-
statement: string;
|
|
52
|
-
questionType: QUESTION_TYPE;
|
|
53
|
-
difficultyLevel: QUESTION_DIFFICULTY;
|
|
54
|
-
solutionExplanation: string | null;
|
|
55
|
-
correctOption: string;
|
|
56
|
-
createdAt: string;
|
|
57
|
-
updatedAt: string;
|
|
58
|
-
options?: {
|
|
59
|
-
id: string;
|
|
60
|
-
option: string;
|
|
61
|
-
isCorrect: boolean;
|
|
62
|
-
}[];
|
|
63
|
-
knowledgeMatrix: {
|
|
64
|
-
areaKnowledge: {
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
} | null;
|
|
68
|
-
subject: {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
color: string;
|
|
72
|
-
icon: string;
|
|
73
|
-
} | null;
|
|
74
|
-
topic: {
|
|
75
|
-
id: string;
|
|
76
|
-
name: string;
|
|
77
|
-
} | null;
|
|
78
|
-
subtopic: {
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
} | null;
|
|
82
|
-
content: {
|
|
83
|
-
id: string;
|
|
84
|
-
name: string;
|
|
85
|
-
} | null;
|
|
86
|
-
}[];
|
|
87
|
-
teacherFeedback: string | null;
|
|
88
|
-
attachment: string | null;
|
|
89
|
-
score: number | null;
|
|
90
|
-
gradedAt: string | null;
|
|
91
|
-
gradedBy: string | null;
|
|
92
|
-
}[];
|
|
93
|
-
statistics: {
|
|
94
|
-
totalAnswered: number;
|
|
95
|
-
correctAnswers: number;
|
|
96
|
-
incorrectAnswers: number;
|
|
97
|
-
pendingAnswers: number;
|
|
98
|
-
score: number;
|
|
99
|
-
timeSpent: number;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
interface Question {
|
|
103
|
-
id: string;
|
|
104
|
-
statement: string;
|
|
105
|
-
questionType: QUESTION_TYPE;
|
|
106
|
-
difficultyLevel: QUESTION_DIFFICULTY;
|
|
107
|
-
description: string;
|
|
108
|
-
examBoard: string | null;
|
|
109
|
-
examYear: string | null;
|
|
110
|
-
solutionExplanation: string | null;
|
|
111
|
-
answer: null;
|
|
112
|
-
answerStatus: ANSWER_STATUS;
|
|
113
|
-
options: {
|
|
114
|
-
id: string;
|
|
115
|
-
option: string;
|
|
116
|
-
}[];
|
|
117
|
-
knowledgeMatrix: {
|
|
118
|
-
areaKnowledge: {
|
|
119
|
-
id: string;
|
|
120
|
-
name: string;
|
|
121
|
-
};
|
|
122
|
-
subject: {
|
|
123
|
-
id: string;
|
|
124
|
-
name: string;
|
|
125
|
-
color: string;
|
|
126
|
-
icon: string;
|
|
127
|
-
};
|
|
128
|
-
topic: {
|
|
129
|
-
id: string;
|
|
130
|
-
name: string;
|
|
131
|
-
};
|
|
132
|
-
subtopic: {
|
|
133
|
-
id: string;
|
|
134
|
-
name: string;
|
|
135
|
-
};
|
|
136
|
-
content: {
|
|
137
|
-
id: string;
|
|
138
|
-
name: string;
|
|
139
|
-
};
|
|
140
|
-
}[];
|
|
141
|
-
correctOptionIds?: string[];
|
|
142
|
-
}
|
|
143
|
-
interface QuizInterface {
|
|
144
|
-
id: string;
|
|
145
|
-
title: string;
|
|
146
|
-
type: QUIZ_TYPE;
|
|
147
|
-
subtype: SUBTYPE_ENUM | string;
|
|
148
|
-
difficulty: string | null;
|
|
149
|
-
notification: string | null;
|
|
150
|
-
status: string;
|
|
151
|
-
startDate: string | null;
|
|
152
|
-
finalDate: string | null;
|
|
153
|
-
canRetry: boolean;
|
|
154
|
-
createdAt: string | null;
|
|
155
|
-
updatedAt: string | null;
|
|
156
|
-
questions: Question[];
|
|
157
|
-
}
|
|
158
|
-
interface UserAnswerItem {
|
|
159
|
-
questionId: string;
|
|
160
|
-
activityId: string;
|
|
161
|
-
userId: string;
|
|
162
|
-
answer: string | null;
|
|
163
|
-
optionId: string | null;
|
|
164
|
-
questionType: QUESTION_TYPE;
|
|
165
|
-
answerStatus: ANSWER_STATUS;
|
|
166
|
-
}
|
|
167
|
-
interface QuizState {
|
|
168
|
-
quiz: QuizInterface | null;
|
|
169
|
-
currentQuestionIndex: number;
|
|
170
|
-
selectedAnswers: Record<string, string>;
|
|
171
|
-
userAnswers: UserAnswerItem[];
|
|
172
|
-
timeElapsed: number;
|
|
173
|
-
isStarted: boolean;
|
|
174
|
-
isFinished: boolean;
|
|
175
|
-
userId: string;
|
|
176
|
-
variant: 'result' | 'default';
|
|
177
|
-
minuteCallback: (() => void) | null;
|
|
178
|
-
dissertativeCharLimit?: number;
|
|
179
|
-
setQuiz: (quiz: QuizInterface) => void;
|
|
180
|
-
setQuestionResult: (questionResult: QuestionResult) => void;
|
|
181
|
-
setUserId: (userId: string) => void;
|
|
182
|
-
setUserAnswers: (userAnswers: UserAnswerItem[]) => void;
|
|
183
|
-
setVariant: (variant: 'result' | 'default') => void;
|
|
184
|
-
setDissertativeCharLimit: (limit?: number) => void;
|
|
185
|
-
getDissertativeCharLimit: () => number | undefined;
|
|
186
|
-
goToNextQuestion: () => void;
|
|
187
|
-
goToPreviousQuestion: () => void;
|
|
188
|
-
goToQuestion: (index: number) => void;
|
|
189
|
-
selectAnswer: (questionId: string, answerId: string) => void;
|
|
190
|
-
selectMultipleAnswer: (questionId: string, answerIds: string[]) => void;
|
|
191
|
-
selectDissertativeAnswer: (questionId: string, answer: string) => void;
|
|
192
|
-
skipQuestion: () => void;
|
|
193
|
-
skipCurrentQuestionIfUnanswered: () => void;
|
|
194
|
-
addUserAnswer: (questionId: string, answerId?: string) => void;
|
|
195
|
-
startQuiz: () => void;
|
|
196
|
-
finishQuiz: () => void;
|
|
197
|
-
resetQuiz: () => void;
|
|
198
|
-
updateTime: (time: number) => void;
|
|
199
|
-
startTimer: () => void;
|
|
200
|
-
stopTimer: () => void;
|
|
201
|
-
setMinuteCallback: (callback: (() => void) | null) => void;
|
|
202
|
-
startMinuteCallback: () => void;
|
|
203
|
-
stopMinuteCallback: () => void;
|
|
204
|
-
getCurrentQuestion: () => Question | null;
|
|
205
|
-
getTotalQuestions: () => number;
|
|
206
|
-
getAnsweredQuestions: () => number;
|
|
207
|
-
getUnansweredQuestions: () => number[];
|
|
208
|
-
getSkippedQuestions: () => number;
|
|
209
|
-
getProgress: () => number;
|
|
210
|
-
isQuestionAnswered: (questionId: string) => boolean;
|
|
211
|
-
isQuestionSkipped: (questionId: string) => boolean;
|
|
212
|
-
getCurrentAnswer: () => UserAnswerItem | undefined;
|
|
213
|
-
getAllCurrentAnswer: () => UserAnswerItem[] | undefined;
|
|
214
|
-
getQuizTitle: () => string;
|
|
215
|
-
formatTime: (seconds: number) => string;
|
|
216
|
-
getUserAnswers: () => UserAnswerItem[];
|
|
217
|
-
getUnansweredQuestionsFromUserAnswers: () => number[];
|
|
218
|
-
getQuestionsGroupedBySubject: () => {
|
|
219
|
-
[key: string]: Question[];
|
|
220
|
-
};
|
|
221
|
-
getUserId: () => string;
|
|
222
|
-
setCurrentQuestion: (question: Question) => void;
|
|
223
|
-
getQuestionIndex: (questionId: string) => number;
|
|
224
|
-
getUserAnswerByQuestionId: (questionId: string) => UserAnswerItem | null;
|
|
225
|
-
isQuestionAnsweredByUserAnswers: (questionId: string) => boolean;
|
|
226
|
-
getQuestionStatusFromUserAnswers: (questionId: string) => 'answered' | 'unanswered' | 'skipped';
|
|
227
|
-
getUserAnswersForActivity: () => UserAnswerItem[];
|
|
228
|
-
setAnswerStatus: (questionId: string, status: ANSWER_STATUS) => void;
|
|
229
|
-
getAnswerStatus: (questionId: string) => ANSWER_STATUS | null;
|
|
230
|
-
questionsResult: QuestionResult | null;
|
|
231
|
-
currentQuestionResult: QuestionResult['answers'] | null;
|
|
232
|
-
setQuestionsResult: (questionsResult: QuestionResult) => void;
|
|
233
|
-
setCurrentQuestionResult: (currentQuestionResult: QuestionResult['answers']) => void;
|
|
234
|
-
getQuestionResultByQuestionId: (questionId: string) => QuestionResult['answers'][number] | null;
|
|
235
|
-
getQuestionResultStatistics: () => QuestionResult['statistics'] | null;
|
|
236
|
-
getQuestionResult: () => QuestionResult | null;
|
|
237
|
-
getCurrentQuestionResult: () => QuestionResult['answers'] | null;
|
|
238
|
-
}
|
|
239
|
-
declare const MINUTE_INTERVAL_MS = 60000;
|
|
240
|
-
declare const useQuizStore: zustand.UseBoundStore<Omit<zustand.StoreApi<QuizState>, "setState" | "devtools"> & {
|
|
241
|
-
setState(partial: QuizState | Partial<QuizState> | ((state: QuizState) => QuizState | Partial<QuizState>), replace?: false | undefined, action?: (string | {
|
|
242
|
-
[x: string]: unknown;
|
|
243
|
-
[x: number]: unknown;
|
|
244
|
-
[x: symbol]: unknown;
|
|
245
|
-
type: string;
|
|
246
|
-
}) | undefined): void;
|
|
247
|
-
setState(state: QuizState | ((state: QuizState) => QuizState), replace: true, action?: (string | {
|
|
248
|
-
[x: string]: unknown;
|
|
249
|
-
[x: number]: unknown;
|
|
250
|
-
[x: symbol]: unknown;
|
|
251
|
-
type: string;
|
|
252
|
-
}) | undefined): void;
|
|
253
|
-
devtools: {
|
|
254
|
-
cleanup: () => void;
|
|
255
|
-
};
|
|
256
|
-
}>;
|
|
257
|
-
|
|
258
|
-
export { ANSWER_STATUS, MINUTE_INTERVAL_MS, QUESTION_DIFFICULTY, QUESTION_STATUS, QUESTION_TYPE, QUIZ_TYPE, type Question, type QuestionResult, type QuizInterface, type QuizState, SUBTYPE_ENUM, type UserAnswerItem, useQuizStore };
|
package/dist/Radio/index.d.mts
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, InputHTMLAttributes, HTMLAttributes } from 'react';
|
|
3
|
-
import { StoreApi } from 'zustand';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Radio size variants
|
|
7
|
-
*/
|
|
8
|
-
type RadioSize = 'small' | 'medium' | 'large' | 'extraLarge';
|
|
9
|
-
/**
|
|
10
|
-
* Radio visual state
|
|
11
|
-
*/
|
|
12
|
-
type RadioState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
|
|
13
|
-
/**
|
|
14
|
-
* Radio component props interface
|
|
15
|
-
*/
|
|
16
|
-
type RadioProps = {
|
|
17
|
-
/** Label text to display next to the radio */
|
|
18
|
-
label?: ReactNode;
|
|
19
|
-
/** Size variant of the radio */
|
|
20
|
-
size?: RadioSize;
|
|
21
|
-
/** Visual state of the radio */
|
|
22
|
-
state?: RadioState;
|
|
23
|
-
/** Error message to display */
|
|
24
|
-
errorMessage?: string;
|
|
25
|
-
/** Helper text to display */
|
|
26
|
-
helperText?: string;
|
|
27
|
-
/** Additional CSS classes */
|
|
28
|
-
className?: string;
|
|
29
|
-
/** Label CSS classes */
|
|
30
|
-
labelClassName?: string;
|
|
31
|
-
/** Radio group name */
|
|
32
|
-
name?: string;
|
|
33
|
-
/** Radio value */
|
|
34
|
-
value?: string;
|
|
35
|
-
/** Default checked state for uncontrolled radios */
|
|
36
|
-
defaultChecked?: boolean;
|
|
37
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'defaultChecked'>;
|
|
38
|
-
/**
|
|
39
|
-
* Radio component for Analytica Ensino platforms
|
|
40
|
-
*
|
|
41
|
-
* A radio button component with essential states, sizes and themes.
|
|
42
|
-
* Uses the Analytica Ensino Design System colors from styles.css with automatic
|
|
43
|
-
* light/dark mode support. Includes Text component integration for consistent typography.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```tsx
|
|
47
|
-
* // Basic radio
|
|
48
|
-
* <Radio name="option" value="1" label="Option 1" />
|
|
49
|
-
*
|
|
50
|
-
* // Small size
|
|
51
|
-
* <Radio size="small" name="option" value="2" label="Small option" />
|
|
52
|
-
*
|
|
53
|
-
* // Invalid state
|
|
54
|
-
* <Radio state="invalid" name="option" value="3" label="Required field" />
|
|
55
|
-
*
|
|
56
|
-
* // Disabled state
|
|
57
|
-
* <Radio disabled name="option" value="4" label="Disabled option" />
|
|
58
|
-
*
|
|
59
|
-
* // Default checked (uncontrolled)
|
|
60
|
-
* <Radio defaultChecked name="option" value="5" label="Initially checked" />
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
declare const Radio: react.ForwardRefExoticComponent<{
|
|
64
|
-
/** Label text to display next to the radio */
|
|
65
|
-
label?: ReactNode;
|
|
66
|
-
/** Size variant of the radio */
|
|
67
|
-
size?: RadioSize;
|
|
68
|
-
/** Visual state of the radio */
|
|
69
|
-
state?: RadioState;
|
|
70
|
-
/** Error message to display */
|
|
71
|
-
errorMessage?: string;
|
|
72
|
-
/** Helper text to display */
|
|
73
|
-
helperText?: string;
|
|
74
|
-
/** Additional CSS classes */
|
|
75
|
-
className?: string;
|
|
76
|
-
/** Label CSS classes */
|
|
77
|
-
labelClassName?: string;
|
|
78
|
-
/** Radio group name */
|
|
79
|
-
name?: string;
|
|
80
|
-
/** Radio value */
|
|
81
|
-
value?: string;
|
|
82
|
-
/** Default checked state for uncontrolled radios */
|
|
83
|
-
defaultChecked?: boolean;
|
|
84
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "defaultChecked" | "size"> & react.RefAttributes<HTMLInputElement>>;
|
|
85
|
-
/**
|
|
86
|
-
* RadioGroup store interface
|
|
87
|
-
*/
|
|
88
|
-
interface RadioGroupStore {
|
|
89
|
-
value: string;
|
|
90
|
-
setValue: (value: string) => void;
|
|
91
|
-
onValueChange?: (value: string) => void;
|
|
92
|
-
disabled: boolean;
|
|
93
|
-
name: string;
|
|
94
|
-
}
|
|
95
|
-
type RadioGroupStoreApi = StoreApi<RadioGroupStore>;
|
|
96
|
-
/**
|
|
97
|
-
* Hook to access RadioGroup store
|
|
98
|
-
*/
|
|
99
|
-
declare const useRadioGroupStore: (externalStore?: RadioGroupStoreApi) => RadioGroupStoreApi;
|
|
100
|
-
/**
|
|
101
|
-
* RadioGroup component props interface
|
|
102
|
-
*/
|
|
103
|
-
type RadioGroupProps = {
|
|
104
|
-
/** Current selected value */
|
|
105
|
-
value?: string;
|
|
106
|
-
/** Default selected value for uncontrolled usage */
|
|
107
|
-
defaultValue?: string;
|
|
108
|
-
/** Callback when selection changes */
|
|
109
|
-
onValueChange?: (value: string) => void;
|
|
110
|
-
/** Group name for all radios */
|
|
111
|
-
name?: string;
|
|
112
|
-
/** Disabled state for the entire group */
|
|
113
|
-
disabled?: boolean;
|
|
114
|
-
/** Additional CSS classes */
|
|
115
|
-
className?: string;
|
|
116
|
-
/** Children components */
|
|
117
|
-
children: ReactNode;
|
|
118
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'>;
|
|
119
|
-
/**
|
|
120
|
-
* RadioGroup component for flexible radio group composition
|
|
121
|
-
*
|
|
122
|
-
* Uses Zustand for state management with automatic store injection.
|
|
123
|
-
* Allows complete control over layout and styling by composing with RadioGroupItem.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```tsx
|
|
127
|
-
* <RadioGroup defaultValue="option1" onValueChange={setValue}>
|
|
128
|
-
* <div className="flex items-center gap-3">
|
|
129
|
-
* <RadioGroupItem value="option1" id="r1" />
|
|
130
|
-
* <label htmlFor="r1">Option 1</label>
|
|
131
|
-
* </div>
|
|
132
|
-
* <div className="flex items-center gap-3">
|
|
133
|
-
* <RadioGroupItem value="option2" id="r2" />
|
|
134
|
-
* <label htmlFor="r2">Option 2</label>
|
|
135
|
-
* </div>
|
|
136
|
-
* </RadioGroup>
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
declare const RadioGroup: react.ForwardRefExoticComponent<{
|
|
140
|
-
/** Current selected value */
|
|
141
|
-
value?: string;
|
|
142
|
-
/** Default selected value for uncontrolled usage */
|
|
143
|
-
defaultValue?: string;
|
|
144
|
-
/** Callback when selection changes */
|
|
145
|
-
onValueChange?: (value: string) => void;
|
|
146
|
-
/** Group name for all radios */
|
|
147
|
-
name?: string;
|
|
148
|
-
/** Disabled state for the entire group */
|
|
149
|
-
disabled?: boolean;
|
|
150
|
-
/** Additional CSS classes */
|
|
151
|
-
className?: string;
|
|
152
|
-
/** Children components */
|
|
153
|
-
children: ReactNode;
|
|
154
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & react.RefAttributes<HTMLDivElement>>;
|
|
155
|
-
/**
|
|
156
|
-
* RadioGroupItem component props interface
|
|
157
|
-
*/
|
|
158
|
-
type RadioGroupItemProps = {
|
|
159
|
-
/** Value for this radio item */
|
|
160
|
-
value: string;
|
|
161
|
-
/** Store reference (automatically injected by RadioGroup) */
|
|
162
|
-
store?: RadioGroupStoreApi;
|
|
163
|
-
/** Disabled state for this specific item */
|
|
164
|
-
disabled?: boolean;
|
|
165
|
-
/** Size variant */
|
|
166
|
-
size?: RadioSize;
|
|
167
|
-
/** Visual state */
|
|
168
|
-
state?: RadioState;
|
|
169
|
-
/** Additional CSS classes */
|
|
170
|
-
className?: string;
|
|
171
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'name' | 'value' | 'checked' | 'onChange' | 'size'>;
|
|
172
|
-
/**
|
|
173
|
-
* RadioGroupItem component for use within RadioGroup
|
|
174
|
-
*
|
|
175
|
-
* A radio button without label that works within RadioGroup context.
|
|
176
|
-
* Provides just the radio input for maximum flexibility in composition.
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* ```tsx
|
|
180
|
-
* <RadioGroup defaultValue="option1">
|
|
181
|
-
* <div className="flex items-center gap-3">
|
|
182
|
-
* <RadioGroupItem value="option1" id="r1" />
|
|
183
|
-
* <label htmlFor="r1">Option 1</label>
|
|
184
|
-
* </div>
|
|
185
|
-
* </RadioGroup>
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
declare const RadioGroupItem: react.ForwardRefExoticComponent<{
|
|
189
|
-
/** Value for this radio item */
|
|
190
|
-
value: string;
|
|
191
|
-
/** Store reference (automatically injected by RadioGroup) */
|
|
192
|
-
store?: RadioGroupStoreApi;
|
|
193
|
-
/** Disabled state for this specific item */
|
|
194
|
-
disabled?: boolean;
|
|
195
|
-
/** Size variant */
|
|
196
|
-
size?: RadioSize;
|
|
197
|
-
/** Visual state */
|
|
198
|
-
state?: RadioState;
|
|
199
|
-
/** Additional CSS classes */
|
|
200
|
-
className?: string;
|
|
201
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "name" | "type" | "value" | "onChange" | "size" | "checked"> & react.RefAttributes<HTMLInputElement>>;
|
|
202
|
-
|
|
203
|
-
export { RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, Radio as default, useRadioGroupStore };
|
package/dist/Search/index.d.mts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { InputHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
declare const Search: react.ForwardRefExoticComponent<{
|
|
5
|
-
/** List of options to show in dropdown */
|
|
6
|
-
options: string[];
|
|
7
|
-
/** Callback when an option is selected from dropdown */
|
|
8
|
-
onSelect?: (value: string) => void;
|
|
9
|
-
/** Callback when search input changes */
|
|
10
|
-
onSearch?: (query: string) => void;
|
|
11
|
-
/** Control dropdown visibility externally */
|
|
12
|
-
showDropdown?: boolean;
|
|
13
|
-
/** Callback when dropdown open state changes */
|
|
14
|
-
onDropdownChange?: (open: boolean) => void;
|
|
15
|
-
/** Maximum height of dropdown in pixels */
|
|
16
|
-
dropdownMaxHeight?: number;
|
|
17
|
-
/** Text to show when no results are found */
|
|
18
|
-
noResultsText?: string;
|
|
19
|
-
/** Additional CSS classes to apply to the input */
|
|
20
|
-
className?: string;
|
|
21
|
-
/** Additional CSS classes to apply to the container */
|
|
22
|
-
containerClassName?: string;
|
|
23
|
-
/** Callback when clear button is clicked */
|
|
24
|
-
onClear?: () => void;
|
|
25
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "onSelect" | "size"> & react.RefAttributes<HTMLInputElement>>;
|
|
26
|
-
|
|
27
|
-
export { Search as default };
|
package/dist/Select/index.d.mts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { StoreApi } from 'zustand';
|
|
5
|
-
|
|
6
|
-
interface SelectStore {
|
|
7
|
-
open: boolean;
|
|
8
|
-
setOpen: (open: boolean) => void;
|
|
9
|
-
value: string;
|
|
10
|
-
setValue: (value: string) => void;
|
|
11
|
-
selectedLabel: ReactNode;
|
|
12
|
-
setSelectedLabel: (label: ReactNode) => void;
|
|
13
|
-
onValueChange?: (value: string) => void;
|
|
14
|
-
}
|
|
15
|
-
type SelectStoreApi = StoreApi<SelectStore>;
|
|
16
|
-
declare function createSelectStore(onValueChange?: (value: string) => void): SelectStoreApi;
|
|
17
|
-
declare const useSelectStore: (externalStore?: SelectStoreApi) => SelectStoreApi;
|
|
18
|
-
declare function getLabelAsNode(children: ReactNode): ReactNode;
|
|
19
|
-
interface SelectProps {
|
|
20
|
-
className?: string;
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
defaultValue?: string;
|
|
23
|
-
value?: string;
|
|
24
|
-
onValueChange?: (value: string) => void;
|
|
25
|
-
size?: 'small' | 'medium' | 'large' | 'extra-large';
|
|
26
|
-
label?: string;
|
|
27
|
-
helperText?: string;
|
|
28
|
-
errorMessage?: string;
|
|
29
|
-
id?: string;
|
|
30
|
-
}
|
|
31
|
-
declare const Select: ({ children, defaultValue, className, value: propValue, onValueChange, size, label, helperText, errorMessage, id, }: SelectProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare const SelectValue: ({ placeholder, store: externalStore, }: {
|
|
33
|
-
placeholder?: string;
|
|
34
|
-
store?: SelectStoreApi;
|
|
35
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
36
|
-
interface SelectTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
37
|
-
className?: string;
|
|
38
|
-
invalid?: boolean;
|
|
39
|
-
variant?: 'outlined' | 'underlined' | 'rounded';
|
|
40
|
-
store?: SelectStoreApi;
|
|
41
|
-
size?: 'small' | 'medium' | 'large' | 'extra-large';
|
|
42
|
-
selectId?: string;
|
|
43
|
-
}
|
|
44
|
-
declare const SelectTrigger: react.ForwardRefExoticComponent<SelectTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
45
|
-
interface SelectContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
46
|
-
className?: string;
|
|
47
|
-
align?: 'start' | 'center' | 'end';
|
|
48
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
49
|
-
store?: SelectStoreApi;
|
|
50
|
-
}
|
|
51
|
-
declare const SelectContent: react.ForwardRefExoticComponent<SelectContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
52
|
-
interface SelectItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
53
|
-
value: string;
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
store?: SelectStoreApi;
|
|
56
|
-
}
|
|
57
|
-
declare const SelectItem: react.ForwardRefExoticComponent<SelectItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
58
|
-
|
|
59
|
-
export { SelectContent, SelectItem, SelectTrigger, SelectValue, createSelectStore, Select as default, getLabelAsNode, useSelectStore };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* SelectionButton component for Analytica Ensino platforms
|
|
6
|
-
*
|
|
7
|
-
* Um botão com ícone e texto para ações e navegação com estado de seleção.
|
|
8
|
-
* Ideal para filtros, tags, categorias, seleção de tipos, etc.
|
|
9
|
-
* Suporta forwardRef para acesso programático ao elemento DOM.
|
|
10
|
-
*
|
|
11
|
-
* @param icon - O ícone a ser exibido no botão
|
|
12
|
-
* @param label - O texto/label a ser exibido
|
|
13
|
-
* @param selected - Estado de seleção do botão
|
|
14
|
-
* @param className - Classes CSS adicionais
|
|
15
|
-
* @param props - Todos os outros atributos HTML padrão de button
|
|
16
|
-
* @returns Um elemento button estilizado
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <SelectionButton
|
|
21
|
-
* icon={<TagIcon />}
|
|
22
|
-
* label="Categoria"
|
|
23
|
-
* selected={false}
|
|
24
|
-
* onClick={() => handleSelection()}
|
|
25
|
-
* />
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```tsx
|
|
30
|
-
* // Usando ref para foco programático
|
|
31
|
-
* const buttonRef = useRef<HTMLButtonElement>(null);
|
|
32
|
-
*
|
|
33
|
-
* const handleFocus = () => {
|
|
34
|
-
* buttonRef.current?.focus();
|
|
35
|
-
* };
|
|
36
|
-
*
|
|
37
|
-
* <SelectionButton
|
|
38
|
-
* ref={buttonRef}
|
|
39
|
-
* icon={<TagIcon />}
|
|
40
|
-
* label="Categoria"
|
|
41
|
-
* selected={isSelected}
|
|
42
|
-
* onClick={() => setSelected(!isSelected)}
|
|
43
|
-
* />
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
declare const SelectionButton: react.ForwardRefExoticComponent<{
|
|
47
|
-
/** Ícone a ser exibido no botão */
|
|
48
|
-
icon: ReactNode;
|
|
49
|
-
/** Texto/label a ser exibido ao lado do ícone */
|
|
50
|
-
label: string;
|
|
51
|
-
/** Estado de seleção do botão */
|
|
52
|
-
selected?: boolean;
|
|
53
|
-
/** Additional CSS classes to apply */
|
|
54
|
-
className?: string;
|
|
55
|
-
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
56
|
-
|
|
57
|
-
export { SelectionButton as default };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
variant?: 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
6
|
-
width?: string | number;
|
|
7
|
-
height?: string | number;
|
|
8
|
-
animation?: 'pulse' | 'none';
|
|
9
|
-
lines?: number;
|
|
10
|
-
spacing?: 'none' | 'small' | 'medium' | 'large';
|
|
11
|
-
}
|
|
12
|
-
declare const Skeleton: react.ForwardRefExoticComponent<SkeletonProps & react.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const SkeletonText: react.ForwardRefExoticComponent<Omit<SkeletonProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const SkeletonCircle: react.ForwardRefExoticComponent<Omit<SkeletonProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const SkeletonRectangle: react.ForwardRefExoticComponent<Omit<SkeletonProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const SkeletonRounded: react.ForwardRefExoticComponent<Omit<SkeletonProps, "variant"> & react.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
interface SkeletonCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
-
showAvatar?: boolean;
|
|
19
|
-
showTitle?: boolean;
|
|
20
|
-
showDescription?: boolean;
|
|
21
|
-
showActions?: boolean;
|
|
22
|
-
lines?: number;
|
|
23
|
-
}
|
|
24
|
-
declare const SkeletonCard: react.ForwardRefExoticComponent<SkeletonCardProps & react.RefAttributes<HTMLDivElement>>;
|
|
25
|
-
interface SkeletonListProps extends HTMLAttributes<HTMLDivElement> {
|
|
26
|
-
items?: number;
|
|
27
|
-
showAvatar?: boolean;
|
|
28
|
-
showTitle?: boolean;
|
|
29
|
-
showDescription?: boolean;
|
|
30
|
-
lines?: number;
|
|
31
|
-
}
|
|
32
|
-
declare const SkeletonList: react.ForwardRefExoticComponent<SkeletonListProps & react.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
interface SkeletonTableProps extends HTMLAttributes<HTMLDivElement> {
|
|
34
|
-
rows?: number;
|
|
35
|
-
columns?: number;
|
|
36
|
-
showHeader?: boolean;
|
|
37
|
-
}
|
|
38
|
-
declare const SkeletonTable: react.ForwardRefExoticComponent<SkeletonTableProps & react.RefAttributes<HTMLDivElement>>;
|
|
39
|
-
|
|
40
|
-
export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle, SkeletonRounded, SkeletonTable, SkeletonText };
|