mui-toolpad-extended-tuni 2.1.0 → 3.0.1
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/README.md +167 -27
- package/dist/index.cjs +193 -149
- package/dist/index.d.ts +2 -49
- package/dist/index.es.js +66408 -19299
- package/dist/mockServiceWorker.js +1 -1
- package/dist/mui-toolpad-extended-tuni.css +1 -0
- package/dist/src/App.d.ts +31 -0
- package/dist/src/LMSToolpad/Forms/Components/Editables/EditableAutoComplete.d.ts +12 -0
- package/dist/src/LMSToolpad/Forms/Components/Editables/EditableColor.d.ts +8 -0
- package/dist/src/LMSToolpad/Forms/Components/Editables/EditableImage.d.ts +9 -0
- package/dist/src/LMSToolpad/Forms/Components/Editables/EditableNumber.d.ts +12 -0
- package/dist/src/LMSToolpad/Forms/Components/Editables/EditableSelect.d.ts +14 -0
- package/dist/src/LMSToolpad/Forms/Components/Editables/EditableSwitch.d.ts +8 -0
- package/dist/src/LMSToolpad/Forms/Components/Editables/EditableText.d.ts +32 -0
- package/dist/src/LMSToolpad/Forms/Components/SqueezableTable/SqueezableTable.d.ts +2 -0
- package/dist/src/LMSToolpad/Forms/Components/SqueezableTable/types.d.ts +24 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/PlatformSettings.d.ts +21 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/PlatformSettingsTabs.d.ts +16 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/AITab.d.ts +7 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/AuthTab.d.ts +7 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/CoursesTab.d.ts +7 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/FeaturesTab.d.ts +24 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/GeneralTab.d.ts +7 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/PrivacyTab.d.ts +7 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/ThemeTab.d.ts +7 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/components/ColorSettings.d.ts +7 -0
- package/dist/src/LMSToolpad/Forms/PlatformSettings/tabs/components/TypographySettings.d.ts +7 -0
- package/dist/src/LMSToolpad/ToolpadProvider.d.ts +35 -0
- package/dist/src/LMSToolpad/components/AuthenticationManager.d.ts +2 -0
- package/dist/src/LMSToolpad/components/Calendar/Calendar.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Calendar/CalendarBody.d.ts +16 -0
- package/dist/src/LMSToolpad/components/Calendar/CalendarEventAggregator.d.ts +9 -0
- package/dist/src/LMSToolpad/components/Calendar/CalendarEventItem.d.ts +10 -0
- package/dist/src/LMSToolpad/components/Calendar/CalendarHeader.d.ts +12 -0
- package/dist/src/LMSToolpad/components/Calendar/CalendarManager.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Calendar/CalendarMicroservice.d.ts +32 -0
- package/dist/src/LMSToolpad/components/Calendar/DatePickerPopover.d.ts +8 -0
- package/dist/src/LMSToolpad/components/Calendar/components/EventDetails.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Calendar/components/EventMenu.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Calendar/components/EventViews.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Calendar/components/index.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Calendar/index.d.ts +5 -0
- package/dist/src/LMSToolpad/components/Calendar/store/useCalendarStore.d.ts +44 -0
- package/dist/src/LMSToolpad/components/Calendar/types.d.ts +49 -0
- package/dist/src/LMSToolpad/components/Courses/CourseEventPublisher.d.ts +8 -0
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseActions.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseHeader.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseHeaderActions.d.ts +12 -0
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseIcon.d.ts +8 -0
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseInfo.d.ts +8 -0
- package/dist/src/LMSToolpad/components/Courses/CourseItem/CourseItem.d.ts +9 -0
- package/dist/src/LMSToolpad/components/Courses/CourseList.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Courses/CourseManager.d.ts +2 -0
- package/dist/src/LMSToolpad/components/Courses/CourseMicroservice.d.ts +42 -0
- package/dist/src/LMSToolpad/components/Courses/CourseRoutesProvider.d.ts +12 -0
- package/dist/{LMSToolpad → src/LMSToolpad}/components/Courses/CourseTools.d.ts +2 -3
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/CourseSettings.d.ts +23 -0
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/CourseSettingsTabs.d.ts +9 -0
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/BasicInfoTab.d.ts +7 -0
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/DataProcessingTab.d.ts +24 -0
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/EnrollmentTab.d.ts +28 -0
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/RelationshipsTab.d.ts +25 -0
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/StaffTab.d.ts +26 -0
- package/dist/src/LMSToolpad/components/Courses/Forms/CourseSettings/tabs/VisibilityTab.d.ts +24 -0
- package/dist/src/LMSToolpad/components/Courses/Navigation/CourseNavigationbuilder.d.ts +2 -0
- package/dist/{LMSToolpad/components → src/LMSToolpad/components/Courses/components/ToolDisplayer}/ToolCard.d.ts +1 -1
- package/dist/{LMSToolpad/components → src/LMSToolpad/components/Courses/components/ToolDisplayer}/ToolDisplayer.d.ts +1 -11
- package/dist/src/LMSToolpad/components/Courses/config/subjectConfig.d.ts +10 -0
- package/dist/src/LMSToolpad/components/Courses/context/CourseMicroserviceContext.d.ts +26 -0
- package/dist/src/LMSToolpad/components/Courses/hooks/useCourseRoutes.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Courses/mocks/commented.d.ts +0 -0
- package/dist/src/LMSToolpad/components/Courses/mocks/constants.d.ts +9 -0
- package/dist/src/LMSToolpad/components/Courses/mocks/endpoints.d.ts +8 -0
- package/dist/src/LMSToolpad/components/Courses/mocks/generators.d.ts +13 -0
- package/dist/src/LMSToolpad/components/Courses/mocks/types.d.ts +109 -0
- package/dist/{LMSToolpad → src/LMSToolpad/components/Courses}/network/courses.d.ts +1 -8
- package/dist/src/LMSToolpad/components/Courses/store/useCourseStore.d.ts +146 -0
- package/dist/{LMSToolpad → src/LMSToolpad/components/Courses}/utils/courseFilters.d.ts +8 -1
- package/dist/{LMSToolpad → src/LMSToolpad}/components/Dialogs/DialogOpener.d.ts +0 -1
- package/dist/src/LMSToolpad/components/Dialogs/Dialogs.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Dialogs/ExtendedDialog.d.ts +8 -0
- package/dist/{LMSToolpad → src/LMSToolpad}/components/Dialogs/FormDialog.d.ts +5 -1
- package/dist/src/LMSToolpad/components/Dialogs/dialogRegistry.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Events/EventBus.d.ts +34 -0
- package/dist/src/LMSToolpad/components/Events/UserBus.d.ts +111 -0
- package/dist/src/LMSToolpad/components/Events/hooks/useCurrentUser.d.ts +11 -0
- package/dist/src/LMSToolpad/components/Events/hooks/useUserActions.d.ts +15 -0
- package/dist/src/LMSToolpad/components/Events/hooks/useUserPreferences.d.ts +22 -0
- package/dist/src/LMSToolpad/components/Events/index.d.ts +10 -0
- package/dist/src/LMSToolpad/components/Events/types.d.ts +16 -0
- package/dist/src/LMSToolpad/components/Events/userTypes.d.ts +78 -0
- package/dist/{LMSToolpad → src/LMSToolpad}/components/IconWithBadge.d.ts +0 -1
- package/dist/{LMSToolpad/components → src/LMSToolpad/components/Microservices}/MicroserviceNavigationBuilder.d.ts +3 -3
- package/dist/src/LMSToolpad/components/Microservices/MicroserviceSubsections.d.ts +9 -0
- package/dist/src/LMSToolpad/components/Microservices/Microservices.d.ts +25 -0
- package/dist/src/LMSToolpad/components/Microservices/types.d.ts +12 -0
- package/dist/src/LMSToolpad/components/Navigation/NavigationBuilder.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Navigation/NavigationFilter.d.ts +1 -0
- package/dist/src/LMSToolpad/components/Navigation/NavigationRegistry.d.ts +116 -0
- package/dist/src/LMSToolpad/components/Navigation/hooks/useMicroserviceNavigation.d.ts +4 -0
- package/dist/src/LMSToolpad/components/Navigation/hooks/useMicroserviceRoutes.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Navigation/hooks/useNavigationSectionManager.d.ts +23 -0
- package/dist/src/LMSToolpad/components/Navigation/hooks/useSyncNavigationFilters.d.ts +1 -0
- package/dist/src/LMSToolpad/components/Navigation/store/microserviceUtils.d.ts +9 -0
- package/dist/src/LMSToolpad/components/Navigation/store/navigationCalculator.d.ts +11 -0
- package/dist/src/LMSToolpad/components/Navigation/store/sectionManager.d.ts +9 -0
- package/dist/src/LMSToolpad/components/Navigation/store/types.d.ts +90 -0
- package/dist/src/LMSToolpad/components/Navigation/store/useNavigationFilterStore.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Navigation/store/useNavigationStore.d.ts +50 -0
- package/dist/src/LMSToolpad/components/Notifications/store/useNotificationsStore.d.ts +22 -0
- package/dist/src/LMSToolpad/components/Routes/Home/Home.d.ts +2 -0
- package/dist/src/LMSToolpad/components/Users/Forms/UserSettings/UserSettings.d.ts +22 -0
- package/dist/src/LMSToolpad/components/Users/UserEventPublisher.d.ts +8 -0
- package/dist/src/LMSToolpad/components/Users/UserManager.d.ts +2 -0
- package/dist/src/LMSToolpad/components/Users/UserMicroservice.d.ts +34 -0
- package/dist/src/LMSToolpad/components/Users/index.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Users/mocks/constants.d.ts +59 -0
- package/dist/src/LMSToolpad/components/Users/mocks/endpoints.d.ts +3 -0
- package/dist/src/LMSToolpad/components/Users/mocks/generators.d.ts +6 -0
- package/dist/src/LMSToolpad/components/Users/mocks/types.d.ts +52 -0
- package/dist/src/LMSToolpad/components/Users/network/users.d.ts +7 -0
- package/dist/src/LMSToolpad/components/Users/store/useUserStore.d.ts +63 -0
- package/dist/{LMSToolpad → src/LMSToolpad}/components/tools/addActions.d.ts +2 -2
- package/dist/{LMSToolpad → src/LMSToolpad}/components/tools/addIcons.d.ts +1 -1
- package/dist/{LMSToolpad → src/LMSToolpad}/components/tools/utils/ActionFCWrapper.d.ts +2 -2
- package/dist/{LMSToolpad → src/LMSToolpad}/components/tools/utils/IconFCWrapper.d.ts +0 -1
- package/dist/src/LMSToolpad/constants.d.ts +67 -0
- package/dist/{LMSToolpad → src/LMSToolpad}/hooks/useCustomRouter.d.ts +2 -2
- package/dist/src/LMSToolpad/hooks/useVisitedCourses.d.ts +18 -0
- package/dist/src/LMSToolpad/index.d.ts +1 -0
- package/dist/src/LMSToolpad/layout/Content/PageContent.d.ts +5 -0
- package/dist/{LMSToolpad/components/toolbar → src/LMSToolpad/layout/Toolbars/AppToolbar}/Account.d.ts +1 -0
- package/dist/src/LMSToolpad/layout/Toolbars/AppToolbar/CollapsibleMenu.d.ts +1 -0
- package/dist/src/LMSToolpad/layout/Toolbars/AppToolbar/RegisteredAppTools.d.ts +11 -0
- package/dist/src/LMSToolpad/layout/Toolbars/AppToolbar/SearchBar.d.ts +6 -0
- package/dist/src/LMSToolpad/layout/Toolbars/PageToolbar/RegisteredPageTools.d.ts +37 -0
- package/dist/src/LMSToolpad/layout/Toolbars/toolbarRegistry.d.ts +117 -0
- package/dist/{LMSToolpad/components → src/LMSToolpad/layout}/sidebar/Footer.d.ts +0 -1
- package/dist/src/LMSToolpad/mocks/browser.d.ts +2 -0
- package/dist/src/LMSToolpad/mocks/handlers.d.ts +2 -0
- package/dist/src/LMSToolpad/mocks/store.d.ts +24 -0
- package/dist/{LMSToolpad → src/LMSToolpad}/network/axiosConfig.d.ts +1 -1
- package/dist/src/LMSToolpad/store/useDialogStore.d.ts +9 -0
- package/dist/src/LMSToolpad/store/usePlatformStore.d.ts +165 -0
- package/dist/src/LMSToolpad/store/useThemeStore.d.ts +184 -0
- package/dist/src/LMSToolpad/store/useToolbarStore.d.ts +8 -0
- package/dist/src/LMSToolpad/theme/EduMLTheme.d.ts +2 -0
- package/dist/{LMSToolpad → src/LMSToolpad}/tools/ErrorBoundary.d.ts +1 -2
- package/dist/src/LMSToolpad/utils/__tests__/courseFilters.test.d.ts +2 -0
- package/dist/src/LMSToolpad/utils/apiPrefix.d.ts +2 -0
- package/dist/src/LMSToolpad/utils/cookieUtils.d.ts +27 -0
- package/dist/src/LMSToolpad/utils/parseDate.d.ts +2 -0
- package/dist/src/LMSToolpad/utils/slugify.d.ts +1 -0
- package/dist/src/common/components/index.d.ts +2 -0
- package/dist/src/common/components/layout/GridLayout/GridItem.d.ts +17 -0
- package/dist/src/common/components/layout/GridLayout/GridItemContext.d.ts +26 -0
- package/dist/src/common/components/layout/GridLayout/ResponsiveGridLayout.d.ts +16 -0
- package/dist/src/common/components/layout/GridLayout/Tools/BreakpointIndicator.d.ts +8 -0
- package/dist/src/common/components/layout/GridLayout/Tools/EditModeToggler.d.ts +7 -0
- package/dist/src/common/components/layout/GridLayout/hooks/useGridLayoutManagement.d.ts +27 -0
- package/dist/src/common/components/layout/GridLayout/index.d.ts +12 -0
- package/dist/src/common/components/layout/GridLayout/layoutStorageUtils.d.ts +52 -0
- package/dist/src/common/components/layout/GridLayout/layoutUtils.d.ts +78 -0
- package/dist/src/common/components/layout/GridLayout/store/usePanelStore.d.ts +27 -0
- package/dist/src/common/components/layout/GridLayout/useGridLayout.d.ts +11 -0
- package/dist/src/common/components/layout/index.d.ts +1 -0
- package/dist/src/common/components/ui/CollapsingButtons/CollapsingButtons.d.ts +11 -0
- package/dist/src/common/components/ui/CompoundPanel/CompoundPanel.d.ts +86 -0
- package/dist/src/common/components/ui/Panel/Expandable/Expandable.d.ts +4 -0
- package/dist/src/common/components/ui/Panel/Expandable/context/ExpandableContextProvider.d.ts +10 -0
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useCollapseHandler.d.ts +2 -0
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useExpandable.d.ts +17 -0
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useExpansionAnimation.d.ts +5 -0
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useInitialSetup.d.ts +6 -0
- package/dist/src/common/components/ui/Panel/Expandable/hooks/useResizeHandler.d.ts +1 -0
- package/dist/src/common/components/ui/Panel/Expandable/store/useExpandablePanelStore.d.ts +7 -0
- package/dist/src/common/components/ui/Panel/Main/Context/PanelContextProvider.d.ts +50 -0
- package/dist/src/common/components/ui/Panel/Main/Panel.d.ts +3 -0
- package/dist/src/common/components/ui/Panel/Main/hooks/useDimensionManagement.d.ts +13 -0
- package/dist/src/common/components/ui/Panel/Main/hooks/usePersistentDimensions.d.ts +19 -0
- package/dist/src/common/components/ui/Panel/Main/tools/BlurOverlay.d.ts +6 -0
- package/dist/src/common/components/ui/Panel/Main/tools/ToolsContainer.d.ts +11 -0
- package/dist/src/common/components/ui/Panel/Movable/DraggableItem.d.ts +6 -0
- package/dist/src/common/components/ui/Panel/Movable/MovablePanel.d.ts +9 -0
- package/dist/src/common/components/ui/Panel/Movable/MoveToggler.d.ts +3 -0
- package/dist/src/common/components/ui/Panel/Movable/context/MovableContextProvider.d.ts +10 -0
- package/dist/src/common/components/ui/Panel/Movable/hooks/usePersistentOrder.d.ts +3 -0
- package/dist/src/common/components/ui/Panel/Resizable/Context/ResizableContextProvider.d.ts +27 -0
- package/dist/src/common/components/ui/Panel/Resizable/Hooks/useResizeHandlers.d.ts +26 -0
- package/dist/src/common/components/ui/Panel/Resizable/Hooks/useResponsiveResize.d.ts +14 -0
- package/dist/src/common/components/ui/Panel/Resizable/Resizable.d.ts +3 -0
- package/dist/src/common/components/ui/Panel/Resizable/ResizeHandlers.d.ts +7 -0
- package/dist/src/common/components/ui/Panel/Resizable/ResizeIndicator.d.ts +9 -0
- package/dist/src/common/components/ui/Panel/Scrollable/InternalScrolling.d.ts +11 -0
- package/dist/src/common/components/ui/Panel/Scrollable/PaginationDots.d.ts +13 -0
- package/dist/src/common/components/ui/Panel/Scrollable/Scrollable.d.ts +5 -0
- package/dist/src/common/components/ui/Panel/Scrollable/context/ScrollerContextProvider.d.ts +15 -0
- package/dist/src/common/components/ui/Panel/Scrollable/hooks/useScrollControls.d.ts +28 -0
- package/dist/src/common/components/ui/Panel/TBR/PanelContent.d.ts +24 -0
- package/dist/src/common/components/ui/Panel/TBR/ResizablePanel.d.ts +3 -0
- package/dist/src/common/components/ui/Panel/TBR/ResizeHandlers.d.ts +10 -0
- package/dist/src/common/components/ui/Panel/TBR/ResizeIndicator.d.ts +10 -0
- package/dist/src/common/components/ui/Panel/TBR/useResizablePanel.d.ts +32 -0
- package/dist/src/common/components/ui/Panel/types.d.ts +9 -0
- package/dist/src/common/components/ui/Scroller/PaginationDots.d.ts +13 -0
- package/dist/src/common/components/ui/Scroller/Scroller.d.ts +14 -0
- package/dist/src/common/components/ui/Scroller/context/ScrollerContextProvider.d.ts +15 -0
- package/dist/src/common/components/ui/Scroller/hooks/useScrollControls.d.ts +28 -0
- package/dist/src/common/components/ui/Scroller/types.d.ts +1 -0
- package/dist/src/common/components/ui/SpeedDialButton/SpeedDialButton.d.ts +20 -0
- package/dist/src/common/components/ui/ThemeToggle/ThemeToggle.d.ts +3 -0
- package/dist/src/common/components/ui/index.d.ts +15 -0
- package/dist/src/common/hooks/index.d.ts +1 -0
- package/dist/src/common/hooks/useRetry.d.ts +12 -0
- package/dist/src/common/index.d.ts +2 -0
- package/dist/src/index.d.ts +75 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/setupTests.d.ts +0 -0
- package/dist/src/test/Contact.d.ts +8 -0
- package/dist/src/test/EduTest.d.ts +10 -0
- package/dist/src/test/EduTest2.d.ts +10 -0
- package/dist/src/test/Help.d.ts +8 -0
- package/dist/static/images/admin.png +0 -0
- package/dist/static/images/default-course.webp +0 -0
- package/dist/static/images/guest.png +0 -0
- package/dist/static/images/icons/atom.svg +15 -0
- package/dist/static/images/icons/brain.svg +49 -0
- package/dist/static/images/icons/code.svg +6 -0
- package/dist/static/images/icons/dna.svg +38 -0
- package/dist/static/images/icons/lang.svg +4 -0
- package/dist/static/images/icons/line.svg +2 -0
- package/dist/static/images/icons/weight.svg +53 -0
- package/dist/static/images/student.png +0 -0
- package/dist/static/images/teacher.png +0 -0
- package/package.json +54 -38
- package/dist/LMSToolpad/EduMLProvider.d.ts +0 -21
- package/dist/LMSToolpad/LMSProvider.d.ts +0 -26
- package/dist/LMSToolpad/components/Courses/CourseItem.d.ts +0 -25
- package/dist/LMSToolpad/components/Courses/CourseList.d.ts +0 -24
- package/dist/LMSToolpad/components/Courses/CourseSelector.d.ts +0 -23
- package/dist/LMSToolpad/components/Courses/LayoutToggle.d.ts +0 -7
- package/dist/LMSToolpad/components/Courses/NoCoursesMessage.d.ts +0 -3
- package/dist/LMSToolpad/components/EduMLDialog.d.ts +0 -9
- package/dist/LMSToolpad/components/Home.d.ts +0 -13
- package/dist/LMSToolpad/components/MicroserviceRoutes.d.ts +0 -44
- package/dist/LMSToolpad/components/PageToolBar.d.ts +0 -3
- package/dist/LMSToolpad/components/ToolSelector.d.ts +0 -17
- package/dist/LMSToolpad/components/toolbar/Actions.d.ts +0 -1
- package/dist/LMSToolpad/constants.d.ts +0 -3
- package/dist/LMSToolpad/layout/breadcrumbs/SizableContentHeader.d.ts +0 -7
- package/dist/LMSToolpad/network/users.d.ts +0 -5
- package/dist/LMSToolpad/store/useCourseStore.d.ts +0 -31
- package/dist/LMSToolpad/store/useDialogStore.d.ts +0 -3
- package/dist/LMSToolpad/store/useNavigationStore.d.ts +0 -42
- package/dist/LMSToolpad/store/useNotificationsStore.d.ts +0 -15
- package/dist/LMSToolpad/store/useUserStore.d.ts +0 -26
- package/dist/LMSToolpad/theme/EduMLTheme.d.ts +0 -2
- package/dist/LMSToolpad/types/toolpad.d.ts +0 -26
- package/dist/LMSToolpad/types/vite-env.d.ts +0 -3
- package/dist/vite-env.d.ts +0 -1
- /package/dist/{LMSToolpad → src/LMSToolpad}/components/Courses/CourseCodeLoader.d.ts +0 -0
- /package/dist/{LMSToolpad → src/LMSToolpad}/components/Courses/CourseInstanceLoader.d.ts +0 -0
- /package/dist/{LMSToolpad → src/LMSToolpad}/components/Courses/CourseInstanceSelector.d.ts +0 -0
- /package/dist/{LMSToolpad → src/LMSToolpad}/components/Courses/LtiLoginUrlForm.d.ts +0 -0
- /package/dist/{LMSToolpad/components → src/LMSToolpad/components/DevTools}/DevelopmentTools.d.ts +0 -0
- /package/dist/{LMSToolpad/components → src/LMSToolpad/components/DevTools}/UserSwitcher.d.ts +0 -0
- /package/dist/{LMSToolpad/components → src/LMSToolpad/components/Notifications}/Notifications.d.ts +0 -0
- /package/dist/{LMSToolpad → src/LMSToolpad}/components/tools/iconsByType.d.ts +0 -0
- /package/dist/{LMSToolpad → src/LMSToolpad}/interfaces.d.ts +0 -0
- /package/dist/{LMSToolpad/components → src/LMSToolpad/layout/Toolbars/AppToolbar}/Logo.d.ts +0 -0
- /package/dist/{LMSToolpad → src/LMSToolpad}/tools/NullStateWarning.d.ts +0 -0
- /package/dist/{LMSToolpad → src/LMSToolpad}/utils/caseConverter.d.ts +0 -0
- /package/dist/{LMSToolpad/components → src/common/components/ui/CenteredHeading}/CenteredHeading.d.ts +0 -0
- /package/dist/{LMSToolpad/components → src/common/components/ui/LoadingScreen}/LoadingScreen.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
interface UseExpandableOptions {
|
|
3
|
+
initialExpanded?: boolean;
|
|
4
|
+
onExpand?: () => void;
|
|
5
|
+
onCollapse?: () => void;
|
|
6
|
+
}
|
|
7
|
+
interface UseExpandableReturn {
|
|
8
|
+
isExpanded: boolean;
|
|
9
|
+
toggle: () => void;
|
|
10
|
+
expand: () => void;
|
|
11
|
+
collapse: () => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Hook for managing expandable panel state
|
|
15
|
+
*/
|
|
16
|
+
export declare const useExpandable: ({ initialExpanded, onExpand, onCollapse, }?: UseExpandableOptions) => UseExpandableReturn;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PanelRef } from '../../types';
|
|
2
|
+
export declare const useExpansionAnimation: (readyForExpansion: boolean, panelRef: PanelRef, parentRef: PanelRef, setExtendedStyle: (style: React.CSSProperties) => void, setExtendedContainerStyle: (style: React.CSSProperties) => void, setIsExpanded: (expanded: boolean) => void, setReadyForExpansion: (ready: boolean) => void) => {
|
|
3
|
+
animateExpansion: boolean;
|
|
4
|
+
setAnimateExpansion: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Position, PanelRef } from '../../types';
|
|
2
|
+
export declare const useInitialSetup: (expandedPanelId: string | null, id: string, panelRef: PanelRef, setExtendedStyle: (style: React.CSSProperties) => void) => {
|
|
3
|
+
readyForExpansion: boolean;
|
|
4
|
+
setReadyForExpansion: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
5
|
+
initialPosition: Position;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useResizeHandler: (isExpanded: boolean) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
interface ExpandablePanelState {
|
|
3
|
+
expandedPanelId: string | null;
|
|
4
|
+
setExpandedPanelId: (id: string | null) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useExpandablePanelStore: import('zustand/traditional').UseBoundStoreWithEqualityFn<import('zustand').StoreApi<ExpandablePanelState>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PanelRef } from '../../types';
|
|
3
|
+
export interface PanelDimensions {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
interface PanelContextType {
|
|
8
|
+
id: string;
|
|
9
|
+
panelRef: PanelRef;
|
|
10
|
+
panelContentRef: PanelRef;
|
|
11
|
+
defaultWidth: number;
|
|
12
|
+
defaultHeight: number;
|
|
13
|
+
minWidth: number;
|
|
14
|
+
maxWidth: number;
|
|
15
|
+
minHeight: number;
|
|
16
|
+
maxHeight: number;
|
|
17
|
+
expandable?: boolean;
|
|
18
|
+
resizable?: boolean;
|
|
19
|
+
scrollable?: boolean;
|
|
20
|
+
extendedStyle: React.CSSProperties;
|
|
21
|
+
setExtendedStyle: (style: React.CSSProperties) => void;
|
|
22
|
+
tools: React.ReactNode[];
|
|
23
|
+
setTools: (tools: React.ReactNode[]) => void;
|
|
24
|
+
addTool: (tool: React.ReactNode) => void;
|
|
25
|
+
removeTool: (tool: React.ReactNode) => void;
|
|
26
|
+
dimensions: PanelDimensions;
|
|
27
|
+
setDimensions: (dimensions: PanelDimensions) => void;
|
|
28
|
+
handleDimensionsChange: (newDimensions: PanelDimensions, isTemporary?: boolean) => void;
|
|
29
|
+
dimensionsWereTemporary: boolean;
|
|
30
|
+
extendedContainerStyle: React.CSSProperties;
|
|
31
|
+
setExtendedContainerStyle: (style: React.CSSProperties) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const PanelContext: React.Context<PanelContextType>;
|
|
34
|
+
export interface PanelProps {
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
id: string;
|
|
37
|
+
additionaltools?: React.ReactNode[];
|
|
38
|
+
minHeight?: number;
|
|
39
|
+
maxHeight?: number;
|
|
40
|
+
minWidth?: number;
|
|
41
|
+
maxWidth?: number;
|
|
42
|
+
defaultHeight?: number;
|
|
43
|
+
defaultWidth?: number;
|
|
44
|
+
expandable?: boolean;
|
|
45
|
+
resizable?: boolean;
|
|
46
|
+
scrollable?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare const PanelProvider: React.FC<PanelProps>;
|
|
49
|
+
export declare const usePanelContext: () => PanelContextType;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PanelDimensions } from '../Context/PanelContextProvider';
|
|
2
|
+
interface UseDimensionManagementProps {
|
|
3
|
+
id: string;
|
|
4
|
+
dimensions: PanelDimensions;
|
|
5
|
+
handleDimensionsChange: handleDimensionsChangeType;
|
|
6
|
+
}
|
|
7
|
+
export type handleDimensionsChangeType = (dimensions: PanelDimensions, isTemporary: boolean) => void;
|
|
8
|
+
export declare const useDimensionManagement: ({ id, dimensions, handleDimensionsChange, }: UseDimensionManagementProps) => {
|
|
9
|
+
isUserResizingRef: import('react').RefObject<boolean>;
|
|
10
|
+
userChosenDimensionsRef: import('react').RefObject<any>;
|
|
11
|
+
wrappedHandleDimensionsChange: (newDim: PanelDimensions) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
/**
|
|
3
|
+
* loadDimensions:
|
|
4
|
+
* Attempts to retrieve stored panel dimensions by ID from localStorage,
|
|
5
|
+
* falling back to provided defaultDimensions if none found.
|
|
6
|
+
*/
|
|
7
|
+
export declare function loadDimensions(id: string, defaultDimensions: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}): any;
|
|
11
|
+
/**
|
|
12
|
+
* saveDimensions:
|
|
13
|
+
* Persists the given dimensions in localStorage under a unique ID key,
|
|
14
|
+
* allowing the panel to restore its last settings at load time.
|
|
15
|
+
*/
|
|
16
|
+
export declare function saveDimensions(id: string, dimensions: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
}): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ToolsContainerProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const ToolsContainer: ({ children }: ToolsContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
interface ToolsContainerWrapperProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
position?: "top-right" | "bottom-right";
|
|
9
|
+
}
|
|
10
|
+
export declare const ToolsContainerWrapper: ({ children, position, }: ToolsContainerWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ToolsContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface MovablePanelProps {
|
|
3
|
+
id: string;
|
|
4
|
+
children: React.ReactNode[];
|
|
5
|
+
tools?: React.ReactNode;
|
|
6
|
+
gap?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const Panels: (props: MovablePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Panels;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PanelRef } from '../../types';
|
|
3
|
+
interface MovableContextType {
|
|
4
|
+
parentRef: PanelRef;
|
|
5
|
+
}
|
|
6
|
+
export declare const MovableContextProvider: ({ children, }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useMovableContext: () => MovableContextType;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode, Dispatch, SetStateAction, RefObject } from 'react';
|
|
2
|
+
interface leap {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
interface DragState {
|
|
7
|
+
vertical: boolean;
|
|
8
|
+
horizontal: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface DragStartType {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}
|
|
16
|
+
interface ResizableContextType {
|
|
17
|
+
leap: leap;
|
|
18
|
+
isDragging: DragState;
|
|
19
|
+
dragStart: RefObject<DragStartType>;
|
|
20
|
+
setIsDragging: Dispatch<SetStateAction<DragState>>;
|
|
21
|
+
}
|
|
22
|
+
interface ResizableContextProviderProps {
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare const ResizableContextProvider: ({ children, }: ResizableContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const useResizableContext: () => ResizableContextType;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
/**
|
|
3
|
+
* snapToGrid:
|
|
4
|
+
* Utility to snap a given numeric value to a specified grid size.
|
|
5
|
+
*/
|
|
6
|
+
export declare function snapToGrid(value: number, snapSize: number): number;
|
|
7
|
+
/**
|
|
8
|
+
* startDragging:
|
|
9
|
+
* Creates a handler that prepares for resizing by capturing mouse/touch location
|
|
10
|
+
* and storing initial dimensions.
|
|
11
|
+
*/
|
|
12
|
+
export declare function startDragging(direction: "vertical" | "horizontal" | "corner", resizeMode: boolean, dimensions: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}, setIsDragging: (d: {
|
|
16
|
+
vertical: boolean;
|
|
17
|
+
horizontal: boolean;
|
|
18
|
+
}) => void, dragStart: React.MutableRefObject<{
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}>, leap: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}): (e: React.MouseEvent | React.TouchEvent) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PanelRef } from '../../types';
|
|
2
|
+
import { PanelDimensions } from '../../Main/Context/PanelContextProvider';
|
|
3
|
+
interface UseResponsiveResizeProps {
|
|
4
|
+
panelRef: PanelRef;
|
|
5
|
+
panelContentRef: PanelRef;
|
|
6
|
+
dimensions: PanelDimensions;
|
|
7
|
+
minWidth: number;
|
|
8
|
+
minHeight: number;
|
|
9
|
+
isUserResizingRef: React.MutableRefObject<boolean>;
|
|
10
|
+
userChosenDimensionsRef: React.MutableRefObject<PanelDimensions>;
|
|
11
|
+
wrappedHandleDimensionsChange: (newDimensions: PanelDimensions) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const useResponsiveResize: (props: UseResponsiveResizeProps) => void;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ResizeHandlersProps {
|
|
3
|
+
handleMouseDown: (direction: "vertical" | "horizontal" | "corner") => (e: React.MouseEvent | React.TouchEvent) => void;
|
|
4
|
+
handleTouchStart: (direction: "vertical" | "horizontal" | "corner") => (e: React.MouseEvent | React.TouchEvent) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ResizeHandlers: ({ handleMouseDown, handleTouchStart, }: ResizeHandlersProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ResizeHandlers;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
type InternalScrollingProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
dimensions: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
isExpanded?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const InternalScrolling: ({ children, dimensions, }: InternalScrollingProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default InternalScrolling;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
interface PaginationDotsProps {
|
|
3
|
+
total: number;
|
|
4
|
+
current: number;
|
|
5
|
+
onDotClick?: (index: number) => void;
|
|
6
|
+
vertical?: boolean;
|
|
7
|
+
onArrowClick?: (direction: "start" | "end") => void;
|
|
8
|
+
showArrows?: boolean;
|
|
9
|
+
disableStart?: boolean;
|
|
10
|
+
disableEnd?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const PaginationDots: ({ total, current, onDotClick, vertical, onArrowClick, disableStart, disableEnd, }: PaginationDotsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default PaginationDots;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ItemCounts {
|
|
3
|
+
horizontal: number;
|
|
4
|
+
vertical: number;
|
|
5
|
+
}
|
|
6
|
+
interface ScrollerContextType {
|
|
7
|
+
itemCounts: ItemCounts;
|
|
8
|
+
setItemCounts: (counts: ItemCounts) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ScrollContext: import('react').Context<ScrollerContextType>;
|
|
11
|
+
export declare const ScrollerProvider: ({ children }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const useScrollContext: () => ScrollerContextType;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface ScrollControlsOptions {
|
|
2
|
+
direction: "horizontal" | "vertical";
|
|
3
|
+
itemSize: number;
|
|
4
|
+
itemsPerPage?: number;
|
|
5
|
+
itemCount?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const useScrollControls: ({ direction: scrollAxis, itemSize, itemsPerPage, itemCount, }: ScrollControlsOptions) => {
|
|
8
|
+
containerRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
|
+
showStartButton: boolean;
|
|
10
|
+
showEndButton: boolean;
|
|
11
|
+
isDragging: boolean;
|
|
12
|
+
hasDragged: boolean;
|
|
13
|
+
setHasDragged: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
14
|
+
scroll: (scrollDirection: "start" | "end") => void;
|
|
15
|
+
handleMouseDown: (e: React.MouseEvent) => void;
|
|
16
|
+
handleMouseMove: (e: React.MouseEvent) => void;
|
|
17
|
+
handleMouseUp: (e: React.MouseEvent) => void;
|
|
18
|
+
currentPage: number;
|
|
19
|
+
totalPages: number;
|
|
20
|
+
scrollToPage: (page: number) => void;
|
|
21
|
+
disableStartButton: boolean;
|
|
22
|
+
disableEndButton: boolean;
|
|
23
|
+
handleTouchStart: (e: React.TouchEvent) => void;
|
|
24
|
+
handleTouchMove: (e: React.TouchEvent) => void;
|
|
25
|
+
handleTouchEnd: () => void;
|
|
26
|
+
canScroll: boolean;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
interface PanelContentProps {
|
|
3
|
+
children: React.ReactNode | ((dimensions: {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}) => React.ReactNode);
|
|
7
|
+
dimensions: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
isDragging: {
|
|
12
|
+
vertical: boolean;
|
|
13
|
+
horizontal: boolean;
|
|
14
|
+
};
|
|
15
|
+
isExpanded: boolean;
|
|
16
|
+
expandable?: boolean;
|
|
17
|
+
tools?: React.ReactNode;
|
|
18
|
+
resizeMode?: boolean;
|
|
19
|
+
handleMouseDown: (direction: "vertical" | "horizontal" | "corner") => (e: React.MouseEvent | React.TouchEvent) => void;
|
|
20
|
+
handleTouchStart: (direction: "vertical" | "horizontal" | "corner") => (e: React.MouseEvent | React.TouchEvent) => void;
|
|
21
|
+
toggleExpand: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare const PanelContent: ({ children, dimensions, isDragging, isExpanded, expandable, tools, resizeMode, handleMouseDown, toggleExpand, }: PanelContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default PanelContent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ResizeHandlersProps {
|
|
3
|
+
isResizing: boolean;
|
|
4
|
+
onResizeStart?: (direction: string) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Resize handles for panel resizing
|
|
8
|
+
*/
|
|
9
|
+
declare const ResizeHandlers: React.FC<ResizeHandlersProps>;
|
|
10
|
+
export default ResizeHandlers;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ResizeIndicatorProps {
|
|
3
|
+
isResizing: boolean;
|
|
4
|
+
direction?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Visual indicator shown when a panel is being resized
|
|
8
|
+
*/
|
|
9
|
+
declare const ResizeIndicator: React.FC<ResizeIndicatorProps>;
|
|
10
|
+
export default ResizeIndicator;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PanelDimensions } from '../Main/Context/PanelContextProvider';
|
|
2
|
+
import { handleDimensionsChangeType } from '../Main/hooks/useDimensionManagement';
|
|
3
|
+
interface UseResizablePanelOptions {
|
|
4
|
+
id: string;
|
|
5
|
+
defaultWidth: number;
|
|
6
|
+
defaultHeight: number;
|
|
7
|
+
minWidth: number;
|
|
8
|
+
maxWidth: number;
|
|
9
|
+
minHeight: number;
|
|
10
|
+
maxHeight: number;
|
|
11
|
+
snapDimensions: PanelDimensions;
|
|
12
|
+
onResize?: (dimensions: PanelDimensions) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function useResizablePanel({ id, defaultWidth, defaultHeight, minWidth, maxWidth, minHeight, maxHeight, snapDimensions, }: UseResizablePanelOptions): {
|
|
15
|
+
dimensions: any;
|
|
16
|
+
isDragging: {
|
|
17
|
+
vertical: boolean;
|
|
18
|
+
horizontal: boolean;
|
|
19
|
+
};
|
|
20
|
+
setIsDragging: import('react').Dispatch<import('react').SetStateAction<{
|
|
21
|
+
vertical: boolean;
|
|
22
|
+
horizontal: boolean;
|
|
23
|
+
}>>;
|
|
24
|
+
dragStart: import('react').RefObject<{
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
}>;
|
|
30
|
+
handleDimensionsChange: handleDimensionsChangeType;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
interface PaginationDotsProps {
|
|
3
|
+
total: number;
|
|
4
|
+
current: number;
|
|
5
|
+
onDotClick?: (index: number) => void;
|
|
6
|
+
vertical?: boolean;
|
|
7
|
+
onArrowClick?: (direction: "start" | "end") => void;
|
|
8
|
+
showArrows?: boolean;
|
|
9
|
+
disableStart?: boolean;
|
|
10
|
+
disableEnd?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const PaginationDots: ({ total, current, onDotClick, vertical, onArrowClick, disableStart, disableEnd, }: PaginationDotsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default PaginationDots;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { priority } from './types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface ScrollerProps {
|
|
4
|
+
direction: "vertical" | "horizontal";
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
itemSize: number;
|
|
7
|
+
containerSize?: string | number;
|
|
8
|
+
hideScrollbar?: boolean;
|
|
9
|
+
snapScroll?: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
priority?: priority;
|
|
12
|
+
}
|
|
13
|
+
declare const Scroller: ({ direction, children, itemSize, containerSize, hideScrollbar, snapScroll, title, priority, }: ScrollerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default Scroller;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ItemCounts {
|
|
3
|
+
horizontal: number;
|
|
4
|
+
vertical: number;
|
|
5
|
+
}
|
|
6
|
+
interface ScrollerContextType {
|
|
7
|
+
itemCounts: ItemCounts;
|
|
8
|
+
setItemCounts: (counts: ItemCounts) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ScrollContext: import('react').Context<ScrollerContextType>;
|
|
11
|
+
export declare const ScrollerProvider: ({ children }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const useScrollContext: () => ScrollerContextType;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface ScrollControlsOptions {
|
|
2
|
+
direction: "horizontal" | "vertical";
|
|
3
|
+
itemSize: number;
|
|
4
|
+
itemsPerPage?: number;
|
|
5
|
+
itemCount?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const useScrollControls: ({ direction: scrollAxis, itemSize, itemsPerPage, itemCount, }: ScrollControlsOptions) => {
|
|
8
|
+
containerRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
|
+
showStartButton: boolean;
|
|
10
|
+
showEndButton: boolean;
|
|
11
|
+
isDragging: boolean;
|
|
12
|
+
hasDragged: boolean;
|
|
13
|
+
setHasDragged: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
14
|
+
scroll: (scrollDirection: "start" | "end") => void;
|
|
15
|
+
handleMouseDown: (e: React.MouseEvent) => void;
|
|
16
|
+
handleMouseMove: (e: React.MouseEvent) => void;
|
|
17
|
+
handleMouseUp: (e: React.MouseEvent) => void;
|
|
18
|
+
currentPage: number;
|
|
19
|
+
totalPages: number;
|
|
20
|
+
scrollToPage: (page: number) => void;
|
|
21
|
+
disableStartButton: boolean;
|
|
22
|
+
disableEndButton: boolean;
|
|
23
|
+
handleTouchStart: (e: React.TouchEvent) => void;
|
|
24
|
+
handleTouchMove: (e: React.TouchEvent) => void;
|
|
25
|
+
handleTouchEnd: () => void;
|
|
26
|
+
canScroll: boolean;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type priority = "high" | "low" | "normal";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as SpeedDialAction } from '@mui/material/SpeedDialAction';
|
|
3
|
+
interface SpeedDialAction {
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
interface SpeedDialButtonProps {
|
|
9
|
+
actions: SpeedDialAction[];
|
|
10
|
+
value: string;
|
|
11
|
+
direction?: "up" | "down" | "left" | "right";
|
|
12
|
+
onChange: (value: string) => void;
|
|
13
|
+
icons: {
|
|
14
|
+
[key: string]: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
openIcon?: React.ReactNode;
|
|
17
|
+
size?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare const SpeedDialButton: ({ actions, value, direction, onChange, icons, openIcon, size, }: SpeedDialButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as CenteredHeading } from './CenteredHeading/CenteredHeading';
|
|
2
|
+
export { default as Scroller } from './Scroller/Scroller';
|
|
3
|
+
export { default as LoadingScreen } from './LoadingScreen/LoadingScreen';
|
|
4
|
+
export { default as CompoundPanel, Section } from './CompoundPanel/CompoundPanel';
|
|
5
|
+
export type { SectionProps } from './CompoundPanel/CompoundPanel';
|
|
6
|
+
export { ScrollerProvider, useScrollContext } from './Scroller/context/ScrollerContextProvider';
|
|
7
|
+
export type { ItemCounts } from './Scroller/context/ScrollerContextProvider';
|
|
8
|
+
export type { priority } from './Scroller/types';
|
|
9
|
+
export { CollapsingButtons } from './CollapsingButtons/CollapsingButtons';
|
|
10
|
+
export { SpeedDialButton } from './SpeedDialButton/SpeedDialButton';
|
|
11
|
+
export { default as ThemeToggle } from './ThemeToggle/ThemeToggle';
|
|
12
|
+
export { default as Panel } from './Panel/Main/Panel';
|
|
13
|
+
export { PanelProvider, usePanelContext } from './Panel/Main/Context/PanelContextProvider';
|
|
14
|
+
export type { PanelProps, PanelDimensions } from './Panel/Main/Context/PanelContextProvider';
|
|
15
|
+
export * from './Panel/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useRetry } from './useRetry';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface UseRetryProps {
|
|
2
|
+
action: () => Promise<any> | void;
|
|
3
|
+
maxAttempts?: number;
|
|
4
|
+
delay?: number;
|
|
5
|
+
successMessage?: string;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
condition?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const useRetry: ({ action, maxAttempts, delay, successMessage, errorMessage, condition, }: UseRetryProps) => {
|
|
10
|
+
attempts: number;
|
|
11
|
+
};
|
|
12
|
+
export {};
|