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,239 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { C as CategoryConfig } from './CheckBoxGroup-9n5C0OH4.mjs';
|
|
4
|
-
|
|
5
|
-
type FilterConfig = {
|
|
6
|
-
key: string;
|
|
7
|
-
label: string;
|
|
8
|
-
categories: CategoryConfig[];
|
|
9
|
-
};
|
|
10
|
-
type UseTableFilterOptions = {
|
|
11
|
-
syncWithUrl?: boolean;
|
|
12
|
-
};
|
|
13
|
-
type UseTableFilterReturn = {
|
|
14
|
-
filterConfigs: FilterConfig[];
|
|
15
|
-
activeFilters: Record<string, string[]>;
|
|
16
|
-
hasActiveFilters: boolean;
|
|
17
|
-
updateFilters: (configs: FilterConfig[]) => void;
|
|
18
|
-
applyFilters: () => void;
|
|
19
|
-
clearFilters: () => void;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Hook for managing table filters with URL synchronization
|
|
23
|
-
*
|
|
24
|
-
* @param initialConfigs - Initial filter configurations
|
|
25
|
-
* @param options - Hook options including URL sync
|
|
26
|
-
* @returns Filter state and management functions
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```tsx
|
|
30
|
-
* const { filterConfigs, activeFilters, updateFilters, applyFilters } = useTableFilter(
|
|
31
|
-
* [
|
|
32
|
-
* {
|
|
33
|
-
* key: 'academic',
|
|
34
|
-
* label: 'Dados Acadêmicos',
|
|
35
|
-
* categories: [...]
|
|
36
|
-
* }
|
|
37
|
-
* ],
|
|
38
|
-
* { syncWithUrl: true }
|
|
39
|
-
* );
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare const useTableFilter: (initialConfigs: FilterConfig[], options?: UseTableFilterOptions) => UseTableFilterReturn;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Column configuration with flexible rendering options
|
|
46
|
-
*/
|
|
47
|
-
interface ColumnConfig<T = Record<string, unknown>> {
|
|
48
|
-
/** Column key (must match data object key) */
|
|
49
|
-
key: string;
|
|
50
|
-
/** Column label - can be string or JSX */
|
|
51
|
-
label: string | ReactNode;
|
|
52
|
-
/** Enable sorting for this column */
|
|
53
|
-
sortable?: boolean;
|
|
54
|
-
/** Custom render function for cell content */
|
|
55
|
-
render?: (value: unknown, row: T, index: number) => ReactNode;
|
|
56
|
-
/** Column width */
|
|
57
|
-
width?: string;
|
|
58
|
-
/** Additional CSS classes */
|
|
59
|
-
className?: string;
|
|
60
|
-
/** Text alignment */
|
|
61
|
-
align?: 'left' | 'center' | 'right';
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Combined parameters sent via onParamsChange
|
|
65
|
-
*/
|
|
66
|
-
interface TableParams {
|
|
67
|
-
/** Current page number */
|
|
68
|
-
page: number;
|
|
69
|
-
/** Items per page */
|
|
70
|
-
limit: number;
|
|
71
|
-
/** Search query */
|
|
72
|
-
search?: string;
|
|
73
|
-
/** Active filters (dynamic keys based on filter configs) */
|
|
74
|
-
[key: string]: unknown;
|
|
75
|
-
/** Sort column */
|
|
76
|
-
sortBy?: string;
|
|
77
|
-
/** Sort direction */
|
|
78
|
-
sortOrder?: 'asc' | 'desc';
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Pagination configuration
|
|
82
|
-
*/
|
|
83
|
-
interface PaginationConfig {
|
|
84
|
-
/** Label for items (e.g., "atividades") */
|
|
85
|
-
itemLabel?: string;
|
|
86
|
-
/** Items per page options */
|
|
87
|
-
itemsPerPageOptions?: number[];
|
|
88
|
-
/** Default items per page */
|
|
89
|
-
defaultItemsPerPage?: number;
|
|
90
|
-
/** Total items (for displaying pagination info) */
|
|
91
|
-
totalItems?: number;
|
|
92
|
-
/** Total pages (if known from backend) */
|
|
93
|
-
totalPages?: number;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Empty state configuration
|
|
97
|
-
*/
|
|
98
|
-
interface EmptyStateConfig {
|
|
99
|
-
/** Custom component to render when table is empty (no data and no search active) */
|
|
100
|
-
component?: ReactNode;
|
|
101
|
-
/** Image to display in empty state (path from project) */
|
|
102
|
-
image?: string;
|
|
103
|
-
/** Title text for empty state */
|
|
104
|
-
title?: string;
|
|
105
|
-
/** Description text for empty state */
|
|
106
|
-
description?: string;
|
|
107
|
-
/** Button text for empty state action (optional) */
|
|
108
|
-
buttonText?: string;
|
|
109
|
-
/** Icon to display on button (optional) */
|
|
110
|
-
buttonIcon?: ReactNode;
|
|
111
|
-
/** Callback when empty state button is clicked */
|
|
112
|
-
onButtonClick?: () => void;
|
|
113
|
-
/** Button variant (solid, outline, or link) */
|
|
114
|
-
buttonVariant?: 'solid' | 'outline' | 'link';
|
|
115
|
-
/** Button action color (primary, positive, or negative) */
|
|
116
|
-
buttonAction?: 'primary' | 'positive' | 'negative';
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Loading state configuration
|
|
120
|
-
*/
|
|
121
|
-
interface LoadingStateConfig {
|
|
122
|
-
/** Custom component to render when table is loading */
|
|
123
|
-
component?: ReactNode;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* No search result state configuration
|
|
127
|
-
*/
|
|
128
|
-
interface NoSearchResultConfig {
|
|
129
|
-
/** Custom component to render when search returns no results */
|
|
130
|
-
component?: ReactNode;
|
|
131
|
-
/** Title for no search result state */
|
|
132
|
-
title?: string;
|
|
133
|
-
/** Description for no search result state */
|
|
134
|
-
description?: string;
|
|
135
|
-
/** Image to display in no search result state */
|
|
136
|
-
image?: string;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Table components exposed via render prop
|
|
140
|
-
*/
|
|
141
|
-
interface TableComponents {
|
|
142
|
-
/** Search and filter controls */
|
|
143
|
-
controls: ReactNode;
|
|
144
|
-
/** Table with data */
|
|
145
|
-
table: ReactNode;
|
|
146
|
-
/** Pagination controls */
|
|
147
|
-
pagination: ReactNode;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* TableProvider Props
|
|
151
|
-
*/
|
|
152
|
-
interface TableProviderProps<T = Record<string, unknown>> {
|
|
153
|
-
/** Data to display in the table */
|
|
154
|
-
readonly data: T[];
|
|
155
|
-
/** Column configurations */
|
|
156
|
-
readonly headers: ColumnConfig<T>[];
|
|
157
|
-
/** Loading state */
|
|
158
|
-
readonly loading?: boolean;
|
|
159
|
-
/** Table variant */
|
|
160
|
-
readonly variant?: 'default' | 'borderless';
|
|
161
|
-
/** Enable search functionality */
|
|
162
|
-
readonly enableSearch?: boolean;
|
|
163
|
-
/** Enable filters functionality */
|
|
164
|
-
readonly enableFilters?: boolean;
|
|
165
|
-
/** Enable table sorting */
|
|
166
|
-
readonly enableTableSort?: boolean;
|
|
167
|
-
/** Enable pagination */
|
|
168
|
-
readonly enablePagination?: boolean;
|
|
169
|
-
/** Enable row click functionality */
|
|
170
|
-
readonly enableRowClick?: boolean;
|
|
171
|
-
/** Initial filter configurations */
|
|
172
|
-
readonly initialFilters?: FilterConfig[];
|
|
173
|
-
/** Pagination configuration */
|
|
174
|
-
readonly paginationConfig?: PaginationConfig;
|
|
175
|
-
/** Search placeholder text */
|
|
176
|
-
readonly searchPlaceholder?: string;
|
|
177
|
-
/** Empty state configuration (when table is empty with no search) */
|
|
178
|
-
readonly emptyState?: EmptyStateConfig;
|
|
179
|
-
/** Loading state configuration (when table is loading) */
|
|
180
|
-
readonly loadingState?: LoadingStateConfig;
|
|
181
|
-
/** No search result state configuration (when search returns no results) */
|
|
182
|
-
readonly noSearchResultState?: NoSearchResultConfig;
|
|
183
|
-
/** Key field name to use for unique row identification (recommended for better performance) */
|
|
184
|
-
readonly rowKey?: keyof T;
|
|
185
|
-
/** Callback when any parameter changes */
|
|
186
|
-
readonly onParamsChange?: (params: TableParams) => void;
|
|
187
|
-
/** Callback when row is clicked */
|
|
188
|
-
readonly onRowClick?: (row: T, index: number) => void;
|
|
189
|
-
/**
|
|
190
|
-
* Render prop for custom layout control
|
|
191
|
-
* When provided, gives full control over component positioning
|
|
192
|
-
* @param components - Table components (controls, table, pagination)
|
|
193
|
-
* @returns Custom layout JSX
|
|
194
|
-
*
|
|
195
|
-
* @example
|
|
196
|
-
* ```tsx
|
|
197
|
-
* <TableProvider {...props}>
|
|
198
|
-
* {({ controls, table, pagination }) => (
|
|
199
|
-
* <>
|
|
200
|
-
* <div className="mb-4">{controls}</div>
|
|
201
|
-
* <div className="bg-white p-6">
|
|
202
|
-
* {table}
|
|
203
|
-
* {pagination}
|
|
204
|
-
* </div>
|
|
205
|
-
* </>
|
|
206
|
-
* )}
|
|
207
|
-
* </TableProvider>
|
|
208
|
-
* ```
|
|
209
|
-
*/
|
|
210
|
-
readonly children?: (components: TableComponents) => ReactNode;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* TableProvider - Self-contained table component with search, filters, sorting, and pagination
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```tsx
|
|
217
|
-
* <TableProvider
|
|
218
|
-
* data={activities}
|
|
219
|
-
* headers={[
|
|
220
|
-
* { key: 'title', label: 'Título', sortable: true },
|
|
221
|
-
* { key: 'status', label: 'Status', render: (value) => <Badge>{value}</Badge> }
|
|
222
|
-
* ]}
|
|
223
|
-
* loading={loading}
|
|
224
|
-
* variant="borderless"
|
|
225
|
-
* enableSearch
|
|
226
|
-
* enableFilters
|
|
227
|
-
* enableTableSort
|
|
228
|
-
* enablePagination
|
|
229
|
-
* enableRowClick
|
|
230
|
-
* initialFilters={filterConfigs}
|
|
231
|
-
* paginationConfig={{ itemLabel: 'atividades' }}
|
|
232
|
-
* onParamsChange={handleParamsChange}
|
|
233
|
-
* onRowClick={handleRowClick}
|
|
234
|
-
* />
|
|
235
|
-
* ```
|
|
236
|
-
*/
|
|
237
|
-
declare function TableProvider<T extends Record<string, unknown>>({ data, headers, loading, variant, enableSearch, enableFilters, enableTableSort, enablePagination, enableRowClick, initialFilters, paginationConfig, searchPlaceholder, emptyState, loadingState, noSearchResultState, rowKey, onParamsChange, onRowClick, children, }: TableProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
238
|
-
|
|
239
|
-
export { type ColumnConfig as C, type EmptyStateConfig as E, type FilterConfig as F, type LoadingStateConfig as L, type NoSearchResultConfig as N, type PaginationConfig as P, TableProvider as T, type UseTableFilterOptions as U, type UseTableFilterReturn as a, type TableParams as b, type TableProviderProps as c, type TableComponents as d, useTableFilter as u };
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { C as CategoryConfig } from './CheckBoxGroup-9n5C0OH4.js';
|
|
4
|
-
|
|
5
|
-
type FilterConfig = {
|
|
6
|
-
key: string;
|
|
7
|
-
label: string;
|
|
8
|
-
categories: CategoryConfig[];
|
|
9
|
-
};
|
|
10
|
-
type UseTableFilterOptions = {
|
|
11
|
-
syncWithUrl?: boolean;
|
|
12
|
-
};
|
|
13
|
-
type UseTableFilterReturn = {
|
|
14
|
-
filterConfigs: FilterConfig[];
|
|
15
|
-
activeFilters: Record<string, string[]>;
|
|
16
|
-
hasActiveFilters: boolean;
|
|
17
|
-
updateFilters: (configs: FilterConfig[]) => void;
|
|
18
|
-
applyFilters: () => void;
|
|
19
|
-
clearFilters: () => void;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Hook for managing table filters with URL synchronization
|
|
23
|
-
*
|
|
24
|
-
* @param initialConfigs - Initial filter configurations
|
|
25
|
-
* @param options - Hook options including URL sync
|
|
26
|
-
* @returns Filter state and management functions
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```tsx
|
|
30
|
-
* const { filterConfigs, activeFilters, updateFilters, applyFilters } = useTableFilter(
|
|
31
|
-
* [
|
|
32
|
-
* {
|
|
33
|
-
* key: 'academic',
|
|
34
|
-
* label: 'Dados Acadêmicos',
|
|
35
|
-
* categories: [...]
|
|
36
|
-
* }
|
|
37
|
-
* ],
|
|
38
|
-
* { syncWithUrl: true }
|
|
39
|
-
* );
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare const useTableFilter: (initialConfigs: FilterConfig[], options?: UseTableFilterOptions) => UseTableFilterReturn;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Column configuration with flexible rendering options
|
|
46
|
-
*/
|
|
47
|
-
interface ColumnConfig<T = Record<string, unknown>> {
|
|
48
|
-
/** Column key (must match data object key) */
|
|
49
|
-
key: string;
|
|
50
|
-
/** Column label - can be string or JSX */
|
|
51
|
-
label: string | ReactNode;
|
|
52
|
-
/** Enable sorting for this column */
|
|
53
|
-
sortable?: boolean;
|
|
54
|
-
/** Custom render function for cell content */
|
|
55
|
-
render?: (value: unknown, row: T, index: number) => ReactNode;
|
|
56
|
-
/** Column width */
|
|
57
|
-
width?: string;
|
|
58
|
-
/** Additional CSS classes */
|
|
59
|
-
className?: string;
|
|
60
|
-
/** Text alignment */
|
|
61
|
-
align?: 'left' | 'center' | 'right';
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Combined parameters sent via onParamsChange
|
|
65
|
-
*/
|
|
66
|
-
interface TableParams {
|
|
67
|
-
/** Current page number */
|
|
68
|
-
page: number;
|
|
69
|
-
/** Items per page */
|
|
70
|
-
limit: number;
|
|
71
|
-
/** Search query */
|
|
72
|
-
search?: string;
|
|
73
|
-
/** Active filters (dynamic keys based on filter configs) */
|
|
74
|
-
[key: string]: unknown;
|
|
75
|
-
/** Sort column */
|
|
76
|
-
sortBy?: string;
|
|
77
|
-
/** Sort direction */
|
|
78
|
-
sortOrder?: 'asc' | 'desc';
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Pagination configuration
|
|
82
|
-
*/
|
|
83
|
-
interface PaginationConfig {
|
|
84
|
-
/** Label for items (e.g., "atividades") */
|
|
85
|
-
itemLabel?: string;
|
|
86
|
-
/** Items per page options */
|
|
87
|
-
itemsPerPageOptions?: number[];
|
|
88
|
-
/** Default items per page */
|
|
89
|
-
defaultItemsPerPage?: number;
|
|
90
|
-
/** Total items (for displaying pagination info) */
|
|
91
|
-
totalItems?: number;
|
|
92
|
-
/** Total pages (if known from backend) */
|
|
93
|
-
totalPages?: number;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Empty state configuration
|
|
97
|
-
*/
|
|
98
|
-
interface EmptyStateConfig {
|
|
99
|
-
/** Custom component to render when table is empty (no data and no search active) */
|
|
100
|
-
component?: ReactNode;
|
|
101
|
-
/** Image to display in empty state (path from project) */
|
|
102
|
-
image?: string;
|
|
103
|
-
/** Title text for empty state */
|
|
104
|
-
title?: string;
|
|
105
|
-
/** Description text for empty state */
|
|
106
|
-
description?: string;
|
|
107
|
-
/** Button text for empty state action (optional) */
|
|
108
|
-
buttonText?: string;
|
|
109
|
-
/** Icon to display on button (optional) */
|
|
110
|
-
buttonIcon?: ReactNode;
|
|
111
|
-
/** Callback when empty state button is clicked */
|
|
112
|
-
onButtonClick?: () => void;
|
|
113
|
-
/** Button variant (solid, outline, or link) */
|
|
114
|
-
buttonVariant?: 'solid' | 'outline' | 'link';
|
|
115
|
-
/** Button action color (primary, positive, or negative) */
|
|
116
|
-
buttonAction?: 'primary' | 'positive' | 'negative';
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Loading state configuration
|
|
120
|
-
*/
|
|
121
|
-
interface LoadingStateConfig {
|
|
122
|
-
/** Custom component to render when table is loading */
|
|
123
|
-
component?: ReactNode;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* No search result state configuration
|
|
127
|
-
*/
|
|
128
|
-
interface NoSearchResultConfig {
|
|
129
|
-
/** Custom component to render when search returns no results */
|
|
130
|
-
component?: ReactNode;
|
|
131
|
-
/** Title for no search result state */
|
|
132
|
-
title?: string;
|
|
133
|
-
/** Description for no search result state */
|
|
134
|
-
description?: string;
|
|
135
|
-
/** Image to display in no search result state */
|
|
136
|
-
image?: string;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Table components exposed via render prop
|
|
140
|
-
*/
|
|
141
|
-
interface TableComponents {
|
|
142
|
-
/** Search and filter controls */
|
|
143
|
-
controls: ReactNode;
|
|
144
|
-
/** Table with data */
|
|
145
|
-
table: ReactNode;
|
|
146
|
-
/** Pagination controls */
|
|
147
|
-
pagination: ReactNode;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* TableProvider Props
|
|
151
|
-
*/
|
|
152
|
-
interface TableProviderProps<T = Record<string, unknown>> {
|
|
153
|
-
/** Data to display in the table */
|
|
154
|
-
readonly data: T[];
|
|
155
|
-
/** Column configurations */
|
|
156
|
-
readonly headers: ColumnConfig<T>[];
|
|
157
|
-
/** Loading state */
|
|
158
|
-
readonly loading?: boolean;
|
|
159
|
-
/** Table variant */
|
|
160
|
-
readonly variant?: 'default' | 'borderless';
|
|
161
|
-
/** Enable search functionality */
|
|
162
|
-
readonly enableSearch?: boolean;
|
|
163
|
-
/** Enable filters functionality */
|
|
164
|
-
readonly enableFilters?: boolean;
|
|
165
|
-
/** Enable table sorting */
|
|
166
|
-
readonly enableTableSort?: boolean;
|
|
167
|
-
/** Enable pagination */
|
|
168
|
-
readonly enablePagination?: boolean;
|
|
169
|
-
/** Enable row click functionality */
|
|
170
|
-
readonly enableRowClick?: boolean;
|
|
171
|
-
/** Initial filter configurations */
|
|
172
|
-
readonly initialFilters?: FilterConfig[];
|
|
173
|
-
/** Pagination configuration */
|
|
174
|
-
readonly paginationConfig?: PaginationConfig;
|
|
175
|
-
/** Search placeholder text */
|
|
176
|
-
readonly searchPlaceholder?: string;
|
|
177
|
-
/** Empty state configuration (when table is empty with no search) */
|
|
178
|
-
readonly emptyState?: EmptyStateConfig;
|
|
179
|
-
/** Loading state configuration (when table is loading) */
|
|
180
|
-
readonly loadingState?: LoadingStateConfig;
|
|
181
|
-
/** No search result state configuration (when search returns no results) */
|
|
182
|
-
readonly noSearchResultState?: NoSearchResultConfig;
|
|
183
|
-
/** Key field name to use for unique row identification (recommended for better performance) */
|
|
184
|
-
readonly rowKey?: keyof T;
|
|
185
|
-
/** Callback when any parameter changes */
|
|
186
|
-
readonly onParamsChange?: (params: TableParams) => void;
|
|
187
|
-
/** Callback when row is clicked */
|
|
188
|
-
readonly onRowClick?: (row: T, index: number) => void;
|
|
189
|
-
/**
|
|
190
|
-
* Render prop for custom layout control
|
|
191
|
-
* When provided, gives full control over component positioning
|
|
192
|
-
* @param components - Table components (controls, table, pagination)
|
|
193
|
-
* @returns Custom layout JSX
|
|
194
|
-
*
|
|
195
|
-
* @example
|
|
196
|
-
* ```tsx
|
|
197
|
-
* <TableProvider {...props}>
|
|
198
|
-
* {({ controls, table, pagination }) => (
|
|
199
|
-
* <>
|
|
200
|
-
* <div className="mb-4">{controls}</div>
|
|
201
|
-
* <div className="bg-white p-6">
|
|
202
|
-
* {table}
|
|
203
|
-
* {pagination}
|
|
204
|
-
* </div>
|
|
205
|
-
* </>
|
|
206
|
-
* )}
|
|
207
|
-
* </TableProvider>
|
|
208
|
-
* ```
|
|
209
|
-
*/
|
|
210
|
-
readonly children?: (components: TableComponents) => ReactNode;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* TableProvider - Self-contained table component with search, filters, sorting, and pagination
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```tsx
|
|
217
|
-
* <TableProvider
|
|
218
|
-
* data={activities}
|
|
219
|
-
* headers={[
|
|
220
|
-
* { key: 'title', label: 'Título', sortable: true },
|
|
221
|
-
* { key: 'status', label: 'Status', render: (value) => <Badge>{value}</Badge> }
|
|
222
|
-
* ]}
|
|
223
|
-
* loading={loading}
|
|
224
|
-
* variant="borderless"
|
|
225
|
-
* enableSearch
|
|
226
|
-
* enableFilters
|
|
227
|
-
* enableTableSort
|
|
228
|
-
* enablePagination
|
|
229
|
-
* enableRowClick
|
|
230
|
-
* initialFilters={filterConfigs}
|
|
231
|
-
* paginationConfig={{ itemLabel: 'atividades' }}
|
|
232
|
-
* onParamsChange={handleParamsChange}
|
|
233
|
-
* onRowClick={handleRowClick}
|
|
234
|
-
* />
|
|
235
|
-
* ```
|
|
236
|
-
*/
|
|
237
|
-
declare function TableProvider<T extends Record<string, unknown>>({ data, headers, loading, variant, enableSearch, enableFilters, enableTableSort, enablePagination, enableRowClick, initialFilters, paginationConfig, searchPlaceholder, emptyState, loadingState, noSearchResultState, rowKey, onParamsChange, onRowClick, children, }: TableProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
238
|
-
|
|
239
|
-
export { type ColumnConfig as C, type EmptyStateConfig as E, type FilterConfig as F, type LoadingStateConfig as L, type NoSearchResultConfig as N, type PaginationConfig as P, TableProvider as T, type UseTableFilterOptions as U, type UseTableFilterReturn as a, type TableParams as b, type TableProviderProps as c, type TableComponents as d, useTableFilter as u };
|
package/dist/Text/index.d.mts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ElementType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Base text component props
|
|
6
|
-
*/
|
|
7
|
-
type BaseTextProps = {
|
|
8
|
-
/** Content to be displayed */
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
/** Text size variant */
|
|
11
|
-
size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
12
|
-
/** Font weight variant */
|
|
13
|
-
weight?: 'hairline' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
|
|
14
|
-
/** Color variant - white for light backgrounds, black for dark backgrounds */
|
|
15
|
-
color?: string;
|
|
16
|
-
/** Additional CSS classes to apply */
|
|
17
|
-
className?: string;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Polymorphic text component props that ensures type safety based on the 'as' prop
|
|
21
|
-
*/
|
|
22
|
-
type TextProps<T extends ElementType = 'p'> = BaseTextProps & {
|
|
23
|
-
/** HTML tag to render */
|
|
24
|
-
as?: T;
|
|
25
|
-
} & Omit<ComponentPropsWithoutRef<T>, keyof BaseTextProps>;
|
|
26
|
-
/**
|
|
27
|
-
* Text component for Analytica Ensino platforms
|
|
28
|
-
*
|
|
29
|
-
* A flexible polymorphic text component with multiple sizes, weights, and colors.
|
|
30
|
-
* Automatically adapts to dark and light themes with full type safety.
|
|
31
|
-
*
|
|
32
|
-
* @param children - The content to display
|
|
33
|
-
* @param size - The text size variant (2xs, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl)
|
|
34
|
-
* @param weight - The font weight variant (hairline, light, normal, medium, semibold, bold, extrabold, black)
|
|
35
|
-
* @param color - The color variant - adapts to theme
|
|
36
|
-
* @param as - The HTML tag to render - determines allowed attributes via TypeScript
|
|
37
|
-
* @param className - Additional CSS classes
|
|
38
|
-
* @param props - HTML attributes valid for the chosen tag only
|
|
39
|
-
* @returns A styled text element with type-safe attributes
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```tsx
|
|
43
|
-
* <Text size="lg" weight="bold" color="text-info-800">
|
|
44
|
-
* This is a large, bold text
|
|
45
|
-
* </Text>
|
|
46
|
-
*
|
|
47
|
-
* <Text as="a" href="/link" target="_blank">
|
|
48
|
-
* Link with type-safe anchor attributes
|
|
49
|
-
* </Text>
|
|
50
|
-
*
|
|
51
|
-
* <Text as="button" onClick={handleClick} disabled>
|
|
52
|
-
* Button with type-safe button attributes
|
|
53
|
-
* </Text>
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
declare const Text: <T extends ElementType = "p">({ children, size, weight, color, as, className, ...props }: TextProps<T>) => react_jsx_runtime.JSX.Element;
|
|
57
|
-
|
|
58
|
-
export { Text as default };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, TextareaHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* TextArea size variants
|
|
6
|
-
*/
|
|
7
|
-
type TextAreaSize = 'small' | 'medium' | 'large' | 'extraLarge';
|
|
8
|
-
/**
|
|
9
|
-
* TextArea visual state
|
|
10
|
-
*/
|
|
11
|
-
type TextAreaState = 'default' | 'hovered' | 'focused' | 'invalid' | 'disabled';
|
|
12
|
-
/**
|
|
13
|
-
* TextArea component props interface
|
|
14
|
-
*/
|
|
15
|
-
type TextAreaProps = {
|
|
16
|
-
/** Label text to display above the textarea */
|
|
17
|
-
label?: ReactNode;
|
|
18
|
-
/** Size variant of the textarea */
|
|
19
|
-
size?: TextAreaSize;
|
|
20
|
-
/** Visual state of the textarea */
|
|
21
|
-
state?: TextAreaState;
|
|
22
|
-
/** Error message to display */
|
|
23
|
-
errorMessage?: string;
|
|
24
|
-
/** Helper text to display */
|
|
25
|
-
helperMessage?: string;
|
|
26
|
-
/** Additional CSS classes */
|
|
27
|
-
className?: string;
|
|
28
|
-
/** Label CSS classes */
|
|
29
|
-
labelClassName?: string;
|
|
30
|
-
/** Show character count when maxLength is provided */
|
|
31
|
-
showCharacterCount?: boolean;
|
|
32
|
-
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>;
|
|
33
|
-
/**
|
|
34
|
-
* TextArea component for Analytica Ensino platforms
|
|
35
|
-
*
|
|
36
|
-
* A textarea component with essential states, sizes and themes.
|
|
37
|
-
* Uses exact design specifications with 288px width, 96px height, and specific
|
|
38
|
-
* color values. Includes Text component integration for consistent typography.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```tsx
|
|
42
|
-
* // Basic textarea
|
|
43
|
-
* <TextArea label="Description" placeholder="Enter description..." />
|
|
44
|
-
*
|
|
45
|
-
* // Small size
|
|
46
|
-
* <TextArea size="small" label="Comment" />
|
|
47
|
-
*
|
|
48
|
-
* // Invalid state
|
|
49
|
-
* <TextArea state="invalid" label="Required field" errorMessage="This field is required" />
|
|
50
|
-
*
|
|
51
|
-
* // Disabled state
|
|
52
|
-
* <TextArea disabled label="Read-only field" />
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
declare const TextArea: react.ForwardRefExoticComponent<{
|
|
56
|
-
/** Label text to display above the textarea */
|
|
57
|
-
label?: ReactNode;
|
|
58
|
-
/** Size variant of the textarea */
|
|
59
|
-
size?: TextAreaSize;
|
|
60
|
-
/** Visual state of the textarea */
|
|
61
|
-
state?: TextAreaState;
|
|
62
|
-
/** Error message to display */
|
|
63
|
-
errorMessage?: string;
|
|
64
|
-
/** Helper text to display */
|
|
65
|
-
helperMessage?: string;
|
|
66
|
-
/** Additional CSS classes */
|
|
67
|
-
className?: string;
|
|
68
|
-
/** Label CSS classes */
|
|
69
|
-
labelClassName?: string;
|
|
70
|
-
/** Show character count when maxLength is provided */
|
|
71
|
-
showCharacterCount?: boolean;
|
|
72
|
-
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & react.RefAttributes<HTMLTextAreaElement>>;
|
|
73
|
-
|
|
74
|
-
export { type TextAreaProps, TextArea as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { T as ThemeMode } from '../themeStore-P2X64zC-.mjs';
|
|
3
|
-
import 'zustand/middleware';
|
|
4
|
-
import 'zustand';
|
|
5
|
-
|
|
6
|
-
interface ThemeToggleProps {
|
|
7
|
-
variant?: 'default' | 'with-save';
|
|
8
|
-
onToggle?: (theme: ThemeMode) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const ThemeToggle: ({ variant, onToggle, }: ThemeToggleProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { ThemeToggle };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as zustand from 'zustand';
|
|
2
|
-
|
|
3
|
-
type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
|
|
4
|
-
type ToastData = {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
variant?: 'solid' | 'outlined';
|
|
9
|
-
action?: 'warning' | 'success' | 'info';
|
|
10
|
-
position?: ToastPosition;
|
|
11
|
-
};
|
|
12
|
-
type ToastStore = {
|
|
13
|
-
toasts: ToastData[];
|
|
14
|
-
addToast: (toast: Omit<ToastData, 'id'>) => void;
|
|
15
|
-
removeToast: (id: string) => void;
|
|
16
|
-
};
|
|
17
|
-
declare const useToastStore: zustand.UseBoundStore<zustand.StoreApi<ToastStore>>;
|
|
18
|
-
|
|
19
|
-
export { useToastStore as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
4
|
-
declare const useToast: () => {
|
|
5
|
-
addToast: (toast: Omit<{
|
|
6
|
-
id: string;
|
|
7
|
-
title: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
variant?: "solid" | "outlined";
|
|
10
|
-
action?: "warning" | "success" | "info";
|
|
11
|
-
position?: "default" | "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
12
|
-
}, "id">) => void;
|
|
13
|
-
removeToast: (id: string) => void;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { Toaster as default, useToast };
|
package/dist/Toast/index.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'default';
|
|
5
|
-
type ToastProps = {
|
|
6
|
-
title: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
/** Visual variant of the badge */
|
|
10
|
-
variant?: 'solid' | 'outlined';
|
|
11
|
-
/** Action type of the badge */
|
|
12
|
-
action?: 'warning' | 'success' | 'info';
|
|
13
|
-
position?: ToastPosition;
|
|
14
|
-
} & HTMLAttributes<HTMLDivElement>;
|
|
15
|
-
declare const Toast: ({ variant, action, className, onClose, title, description, position, ...props }: ToastProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { Toast as default };
|