@ebubekirylmaz/link-test 1.0.0
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/.babelrc +3 -0
- package/.browserslistrc +1 -0
- package/.env +2 -0
- package/.eslintignore +3 -0
- package/.eslintrc.json +58 -0
- package/.gitattributes +1 -0
- package/.github/workflows/publish.yml +66 -0
- package/.prettierignore +1 -0
- package/.prettierrc +10 -0
- package/.storybook/main.js +15 -0
- package/.storybook/preview.js +17 -0
- package/.storybook/vitest.setup.js +6 -0
- package/README.md +1 -0
- package/cypress.config.js +11 -0
- package/index.js +1 -0
- package/package.json +111 -0
- package/project/.eslintrc.cjs +22 -0
- package/project/config.js +18 -0
- package/project/config.menu.js +39 -0
- package/project/config.template.js +31 -0
- package/project/cypress/e2e/layouts.cy.js +170 -0
- package/project/cypress/e2e/login.cy.js +35 -0
- package/project/cypress/e2e/selectbar.cy.js +80 -0
- package/project/cypress/fixtures/CONFIG/MENU_CONFIG.js +39 -0
- package/project/cypress/fixtures/EMPEROR/EMPERORS_GET.json +51 -0
- package/project/cypress/fixtures/EMPEROR/EMPERORS_POST.json +9 -0
- package/project/cypress/fixtures/OAUTH/GITHUB/user.json +46 -0
- package/project/cypress/fixtures/example.json +5 -0
- package/project/cypress/support/commands.js +104 -0
- package/project/cypress/support/e2e.js +1 -0
- package/project/cypress.config.js +10 -0
- package/project/index.html +12 -0
- package/project/media/ProjectIcons/3d.png +0 -0
- package/project/media/ProjectIcons/box.png +0 -0
- package/project/media/ProjectIcons/cafe.png +0 -0
- package/project/media/ProjectIcons/cargo.png +0 -0
- package/project/media/ProjectIcons/cloud.png +0 -0
- package/project/media/ProjectIcons/code.png +0 -0
- package/project/media/ProjectIcons/company.png +0 -0
- package/project/media/ProjectIcons/conversation.png +0 -0
- package/project/media/ProjectIcons/distributed.png +0 -0
- package/project/media/ProjectIcons/fingerprint.png +0 -0
- package/project/media/ProjectIcons/forest.png +0 -0
- package/project/media/ProjectIcons/headphones.png +0 -0
- package/project/media/ProjectIcons/office.png +0 -0
- package/project/media/ProjectIcons/path.png +0 -0
- package/project/media/ProjectIcons/printer.png +0 -0
- package/project/media/ProjectIcons/project.png +0 -0
- package/project/media/ProjectIcons/resume.png +0 -0
- package/project/media/ProjectIcons/rocket.png +0 -0
- package/project/media/ProjectIcons/rtruck.png +0 -0
- package/project/media/ProjectIcons/sign.png +0 -0
- package/project/media/ProjectIcons/site.png +0 -0
- package/project/media/ProjectIcons/truck.png +0 -0
- package/project/media/logo.png +0 -0
- package/project/package-lock.json +22434 -0
- package/project/package.json +42 -0
- package/project/public/assets/background/overlay_2.jpg +0 -0
- package/project/public/assets/illustrations/illustration_dashboard.png +0 -0
- package/project/public/media/largeLogo.png +0 -0
- package/project/public/media/logo.png +0 -0
- package/project/public/vite.svg +1 -0
- package/project/routes.jsx +47 -0
- package/project/server/mock.json +110 -0
- package/project/server/oauthMock.js +27 -0
- package/project/server/package-lock.json +1505 -0
- package/project/server/package.json +20 -0
- package/project/server/server.js +127 -0
- package/project/src/Container.jsx +7 -0
- package/project/src/components/ActionButton.jsx +18 -0
- package/project/src/hooks/useEmperor.jsx +21 -0
- package/project/src/http/index.js +39 -0
- package/project/src/main.jsx +10 -0
- package/project/src/pages/Battles.jsx +16 -0
- package/project/src/pages/Emperor.jsx +50 -0
- package/project/src/pages/index.jsx +33 -0
- package/project/src/theme.js +151 -0
- package/project/src/widgets/ActionButton.jsx +68 -0
- package/project/src/widgets/AddNewEmperor.jsx +120 -0
- package/project/src/widgets/ProjectContainer.jsx +27 -0
- package/project/vite.config.js +6 -0
- package/project/vite.config.js.timestamp-1709564450418-45fdd27900806.mjs +341 -0
- package/public/assets/background/overlay_2.jpg +0 -0
- package/public/assets/illustrations/illustration_dashboard.png +0 -0
- package/public/vite.svg +1 -0
- package/src/ContextProvider/ContextProvider.jsx +19 -0
- package/src/GlobalSnackMessage/GlobalSnackMessage.jsx +45 -0
- package/src/GlobalSnackMessage/index.js +1 -0
- package/src/GlobalSnackMessage/styles.js +3 -0
- package/src/Platform.jsx +76 -0
- package/src/RouteManager/RouteManager.jsx +56 -0
- package/src/RouteManager/index.js +1 -0
- package/src/assets/illustrations/avatar-shape.jsx +31 -0
- package/src/assets/illustrations/background-shape.jsx +37 -0
- package/src/assets/illustrations/booking-illustration.jsx +335 -0
- package/src/assets/illustrations/check-in-illustration.jsx +96 -0
- package/src/assets/illustrations/check-out-illustration.jsx +69 -0
- package/src/assets/illustrations/coming-soon-illustration.jsx +125 -0
- package/src/assets/illustrations/forbidden-illustration.jsx +95 -0
- package/src/assets/illustrations/index.js +2 -0
- package/src/assets/illustrations/maintenance-illustration.jsx +228 -0
- package/src/assets/illustrations/motivation-illustration.jsx +74 -0
- package/src/assets/illustrations/order-complete-illustration.jsx +126 -0
- package/src/assets/illustrations/page-not-found-illustration.jsx +81 -0
- package/src/assets/illustrations/seo-illustration.jsx +244 -0
- package/src/assets/illustrations/sever-error-illustration.jsx +152 -0
- package/src/assets/illustrations/upgrade-storage-illustration.jsx +161 -0
- package/src/assets/illustrations/upload-illustration.jsx +622 -0
- package/src/components/Iconify/Iconify.jsx +18 -0
- package/src/components/Iconify/index.js +1 -0
- package/src/components/MiniTopBar/MiniTopBar.jsx +25 -0
- package/src/components/MiniTopBar/index.js +1 -0
- package/src/components/MiniTopBar/styles.js +6 -0
- package/src/components/NucleoidLoginForm/NucleoidLoginForm.jsx +69 -0
- package/src/components/NucleoidLoginForm/index.js +1 -0
- package/src/components/NucleoidLoginForm/styles.js +3 -0
- package/src/components/Sidebar/Sidebar.jsx +76 -0
- package/src/components/Sidebar/index.js +1 -0
- package/src/components/Sidebar/styles.js +25 -0
- package/src/components/SocialLoginButtons/SocialLoginButtons.jsx +55 -0
- package/src/components/SocialLoginButtons/index.js +1 -0
- package/src/components/SocialLoginButtons/styles.js +3 -0
- package/src/components/TopNavBar/TopNavBar.jsx +186 -0
- package/src/components/TopNavBar/index.js +1 -0
- package/src/components/TopNavBar/styles.js +7 -0
- package/src/components/animate/index.js +4 -0
- package/src/components/animate/motion-container.jsx +38 -0
- package/src/components/animate/motion-lazy.jsx +11 -0
- package/src/components/animate/motion-viewport.jsx +30 -0
- package/src/components/animate/variants/actions.js +4 -0
- package/src/components/animate/variants/background.js +97 -0
- package/src/components/animate/variants/bounce.js +107 -0
- package/src/components/animate/variants/container.js +20 -0
- package/src/components/animate/variants/fade.js +127 -0
- package/src/components/animate/variants/flip.js +54 -0
- package/src/components/animate/variants/index.js +12 -0
- package/src/components/animate/variants/path.js +12 -0
- package/src/components/animate/variants/rotate.js +33 -0
- package/src/components/animate/variants/scale.js +54 -0
- package/src/components/animate/variants/slide.js +65 -0
- package/src/components/animate/variants/transition.js +20 -0
- package/src/components/animate/variants/zoom.js +130 -0
- package/src/components/chart/chart.js +69 -0
- package/src/components/chart/index.js +5 -0
- package/src/components/chart/use-chart.js +215 -0
- package/src/components/custom-popover/custom-popover.jsx +46 -0
- package/src/components/custom-popover/index.js +3 -0
- package/src/components/custom-popover/styles.js +84 -0
- package/src/components/custom-popover/use-popover.js +22 -0
- package/src/components/custom-popover/utils.js +100 -0
- package/src/components/file-thumbnail/download-button.jsx +39 -0
- package/src/components/file-thumbnail/file-thumbnail.jsx +72 -0
- package/src/components/file-thumbnail/index.js +5 -0
- package/src/components/file-thumbnail/utils.js +148 -0
- package/src/components/image/image.jsx +119 -0
- package/src/components/image/index.js +1 -0
- package/src/components/image/utils.js +15 -0
- package/src/components/label/index.js +1 -0
- package/src/components/label/label.jsx +51 -0
- package/src/components/label/styles.js +78 -0
- package/src/components/loading-screen/index.js +2 -0
- package/src/components/loading-screen/loading-screen.jsx +23 -0
- package/src/components/loading-screen/splash-screen.jsx +95 -0
- package/src/components/logo/index.js +1 -0
- package/src/components/logo/logo.jsx +61 -0
- package/src/components/logo/styles.js +17 -0
- package/src/components/nav-section/horizontal/index.js +1 -0
- package/src/components/nav-section/horizontal/nav-item.jsx +224 -0
- package/src/components/nav-section/horizontal/nav-list.jsx +113 -0
- package/src/components/nav-section/horizontal/nav-section-horizontal.jsx +41 -0
- package/src/components/nav-section/index.js +3 -0
- package/src/components/nav-section/mini/index.js +1 -0
- package/src/components/nav-section/mini/nav-item.jsx +242 -0
- package/src/components/nav-section/mini/nav-list.jsx +107 -0
- package/src/components/nav-section/mini/nav-section-mini.jsx +35 -0
- package/src/components/nav-section/vertical/index.js +1 -0
- package/src/components/nav-section/vertical/nav-item.jsx +294 -0
- package/src/components/nav-section/vertical/nav-list.jsx +66 -0
- package/src/components/nav-section/vertical/nav-section-vertical.jsx +74 -0
- package/src/components/scrollbar/index.js +1 -0
- package/src/components/scrollbar/scrollbar.jsx +39 -0
- package/src/components/scrollbar/styles.js +27 -0
- package/src/components/search-not-found/index.js +1 -0
- package/src/components/search-not-found/search-not-found.jsx +29 -0
- package/src/components/settings/context/index.js +2 -0
- package/src/components/settings/context/settings-context.js +14 -0
- package/src/components/settings/context/settings-provider.jsx +46 -0
- package/src/components/settings/drawer/base-option.jsx +52 -0
- package/src/components/settings/drawer/fullscreen-option.jsx +58 -0
- package/src/components/settings/drawer/index.js +1 -0
- package/src/components/settings/drawer/layout-options.jsx +144 -0
- package/src/components/settings/drawer/presets-options.jsx +53 -0
- package/src/components/settings/drawer/settings-drawer.jsx +189 -0
- package/src/components/settings/drawer/stretch-options.jsx +67 -0
- package/src/components/settings/index.js +3 -0
- package/src/components/svg-color/index.js +1 -0
- package/src/components/svg-color/svg-color.jsx +23 -0
- package/src/config/config.js +48 -0
- package/src/config/schemas.js +148 -0
- package/src/context/reducer.js +52 -0
- package/src/global.css +2 -0
- package/src/hooks/index.js +2 -0
- package/src/hooks/use-boolean.js +27 -0
- package/src/hooks/use-event-listener.js +34 -0
- package/src/hooks/use-local-storage.js +89 -0
- package/src/hooks/use-off-set-top.js +37 -0
- package/src/hooks/use-responsive.js +47 -0
- package/src/hooks/use-scroll-to-top.js +14 -0
- package/src/hooks/use-user.js +58 -0
- package/src/hooks/useApi.js +25 -0
- package/src/hooks/useItemsState.js +23 -0
- package/src/hooks/useProjects.js +24 -0
- package/src/hooks/useSettings.jsx +51 -0
- package/src/http/index.js +155 -0
- package/src/http/oauth.js +27 -0
- package/src/http/user.js +110 -0
- package/src/layouts/AppLayout.jsx +113 -0
- package/src/layouts/CompactLayout/CompactLayout.jsx +32 -0
- package/src/layouts/CompactLayout/index.js +1 -0
- package/src/layouts/DashboardLayout/DashboardLayout.jsx +87 -0
- package/src/layouts/DashboardLayout/config-navigation.jsx +0 -0
- package/src/layouts/DashboardLayout/header.jsx +104 -0
- package/src/layouts/DashboardLayout/index.js +2 -0
- package/src/layouts/DashboardLayout/main.jsx +64 -0
- package/src/layouts/DashboardLayout/nav-horizontal.jsx +62 -0
- package/src/layouts/DashboardLayout/nav-mini.jsx +99 -0
- package/src/layouts/DashboardLayout/nav-vertical.jsx +201 -0
- package/src/layouts/FullScreenLayout/FullScreenLayout.jsx +101 -0
- package/src/layouts/FullScreenLayout/index.js +1 -0
- package/src/layouts/FullScreenLayout/nav-horizontal.jsx +50 -0
- package/src/layouts/FullScreenLayout/nav-vertical.jsx +136 -0
- package/src/layouts/MainLayout/MainLayout.jsx +21 -0
- package/src/layouts/MainLayout/footer.jsx +153 -0
- package/src/layouts/MainLayout/header.jsx +81 -0
- package/src/layouts/MainLayout/index.js +1 -0
- package/src/layouts/MainLayout/nav/desktop/index.jsx +20 -0
- package/src/layouts/MainLayout/nav/desktop/nav-item.jsx +186 -0
- package/src/layouts/MainLayout/nav/desktop/nav-list.jsx +145 -0
- package/src/layouts/MainLayout/nav/mobile/index.jsx +60 -0
- package/src/layouts/MainLayout/nav/mobile/nav-item.jsx +90 -0
- package/src/layouts/MainLayout/nav/mobile/nav-list.jsx +72 -0
- package/src/layouts/Page.jsx +16 -0
- package/src/layouts/SimpleLayout/SimpleLayout.jsx +8 -0
- package/src/layouts/SimpleLayout/index.js +1 -0
- package/src/layouts/TwoSideLayout/TwoSideLayout.jsx +31 -0
- package/src/layouts/TwoSideLayout/index.js +1 -0
- package/src/layouts/auth/classic.jsx +95 -0
- package/src/layouts/auth/modern-compact.jsx +51 -0
- package/src/layouts/auth/modern.jsx +94 -0
- package/src/layouts/common/ProjectBar/index.jsx +325 -0
- package/src/layouts/common/ProjectBar/result-item.jsx +90 -0
- package/src/layouts/common/ProjectBar/utils.js +86 -0
- package/src/layouts/common/account-popover.jsx +116 -0
- package/src/layouts/common/header-shadow.jsx +26 -0
- package/src/layouts/common/header-sim.jsx +52 -0
- package/src/layouts/common/header-simple.jsx +76 -0
- package/src/layouts/common/nav-toggle-button.jsx +57 -0
- package/src/layouts/common/notifications-popover/index.jsx +177 -0
- package/src/layouts/common/notifications-popover/notification-item.jsx +252 -0
- package/src/layouts/common/settings-button.jsx +48 -0
- package/src/layouts/config-layout.js +12 -0
- package/src/layouts/index.js +7 -0
- package/src/lib/AddItemWizard/AddItemWizard.jsx +211 -0
- package/src/lib/AddItemWizard/index.js +1 -0
- package/src/lib/CustomBreadcrumbs/CustomBreadcrumbs.jsx +88 -0
- package/src/lib/CustomBreadcrumbs/index.js +1 -0
- package/src/lib/CustomBreadcrumbs/link-item.jsx +58 -0
- package/src/lib/CustomPopover/CustomPopover.jsx +46 -0
- package/src/lib/CustomPopover/index.js +3 -0
- package/src/lib/CustomPopover/styles.js +82 -0
- package/src/lib/CustomPopover/usePopover.js +20 -0
- package/src/lib/CustomPopover/utils.js +100 -0
- package/src/lib/Flow/connectors/DynamicConnector.jsx +247 -0
- package/src/lib/Flow/core/Flow.jsx +79 -0
- package/src/lib/Flow/core/FlowNode.jsx +68 -0
- package/src/lib/Flow/core/FlowViewport.jsx +259 -0
- package/src/lib/Flow/graph/FloatingGraph.jsx +44 -0
- package/src/lib/Flow/hooks/useGraphOperations.js +362 -0
- package/src/lib/Flow/hooks/useNodeStyle.js +56 -0
- package/src/lib/Flow/index.js +1 -0
- package/src/lib/Flow/layouts/ActionNode.jsx +78 -0
- package/src/lib/Flow/layouts/AnimatedNode.jsx +22 -0
- package/src/lib/Flow/layouts/CardLayout.jsx +397 -0
- package/src/lib/Flow/layouts/InfoNode.jsx +255 -0
- package/src/lib/Flow/layouts/LoadingNode.jsx +37 -0
- package/src/lib/Flow/nodes/DefaultCard.jsx +107 -0
- package/src/lib/Flow/nodes/DraggableNode.jsx +162 -0
- package/src/lib/Flow/nodes/FlowNodeView.jsx +214 -0
- package/src/lib/Flow/selection/SelectionContext.jsx +259 -0
- package/src/lib/Flow/selection/SelectionOverlay.jsx +31 -0
- package/src/lib/Flow/styles.js +154 -0
- package/src/lib/Flow/utils/flowUtils.js +268 -0
- package/src/lib/FormProvider/FormProvider.jsx +16 -0
- package/src/lib/FormProvider/index.js +1 -0
- package/src/lib/IconSelector/IconSelector.jsx +89 -0
- package/src/lib/Iconify/Iconify.jsx +17 -0
- package/src/lib/Iconify/index.js +1 -0
- package/src/lib/Image/Image.jsx +116 -0
- package/src/lib/Image/index.js +1 -0
- package/src/lib/Image/utils.js +15 -0
- package/src/lib/ItemSummary/ItemSummary.jsx +77 -0
- package/src/lib/ItemSummary/ItemsSummary.jsx +163 -0
- package/src/lib/Label/Label.jsx +51 -0
- package/src/lib/Label/index.js +1 -0
- package/src/lib/Label/styles.js +76 -0
- package/src/lib/ProjectWizard.jsx +137 -0
- package/src/lib/RHFTextfield/RHFTextfield.jsx +39 -0
- package/src/lib/RHFTextfield/index.js +1 -0
- package/src/lib/Scrollbar/Scrollbar.jsx +39 -0
- package/src/lib/Scrollbar/index.js +1 -0
- package/src/lib/Scrollbar/styles.js +27 -0
- package/src/lib/SearchNotFound/SearchNotFound.jsx +29 -0
- package/src/lib/SearchNotFound/index.js +1 -0
- package/src/lib/SparkleInput/SparkleInput.jsx +51 -0
- package/src/lib/StepComponent/StepComponent.jsx +98 -0
- package/src/lib/SvgColor/SvgColor.jsx +28 -0
- package/src/lib/SvgColor/index.js +1 -0
- package/src/lib/TableHeadCustom/TableHeadCustom.jsx +87 -0
- package/src/lib/TableHeadCustom/index.js +1 -0
- package/src/lib/TableSelectedAction/TableSelectedAction.jsx +72 -0
- package/src/lib/TableSelectedAction/index.js +1 -0
- package/src/lib/index.js +36 -0
- package/src/lib/lib/Icons.js +40 -0
- package/src/lib/lib/context.json +272 -0
- package/src/lib/useChart/useChart.js +179 -0
- package/src/lib/useTable/useTable.js +121 -0
- package/src/pages/404.jsx +17 -0
- package/src/pages/Callback.jsx +126 -0
- package/src/pages/ConfigError.jsx +49 -0
- package/src/pages/LoginPage.jsx +43 -0
- package/src/routes/components/index.js +1 -0
- package/src/routes/components/router-link.jsx +11 -0
- package/src/routes/hooks/index.js +4 -0
- package/src/routes/hooks/use-active-link.js +15 -0
- package/src/routes/hooks/use-pathname.js +10 -0
- package/src/routes/hooks/use-router.js +21 -0
- package/src/stories/FlowChart.stories.jsx +333 -0
- package/src/stories/Iconify.stories.jsx +183 -0
- package/src/stories/Label.stories.jsx +447 -0
- package/src/stories/Navbar.stories.jsx +588 -0
- package/src/theme/css.js +152 -0
- package/src/theme/custom-shadows.js +47 -0
- package/src/theme/index.jsx +100 -0
- package/src/theme/options/contrast.js +34 -0
- package/src/theme/options/presets.js +89 -0
- package/src/theme/options/right-to-left.jsx +26 -0
- package/src/theme/overrides/components/accordion.js +43 -0
- package/src/theme/overrides/components/alert.js +69 -0
- package/src/theme/overrides/components/appbar.js +13 -0
- package/src/theme/overrides/components/autocomplete.js +44 -0
- package/src/theme/overrides/components/avatar.js +111 -0
- package/src/theme/overrides/components/backdrop.js +18 -0
- package/src/theme/overrides/components/badge.js +90 -0
- package/src/theme/overrides/components/breadcrumbs.js +21 -0
- package/src/theme/overrides/components/button-group.js +90 -0
- package/src/theme/overrides/components/button.js +145 -0
- package/src/theme/overrides/components/card.js +30 -0
- package/src/theme/overrides/components/checkbox.js +13 -0
- package/src/theme/overrides/components/chip.js +129 -0
- package/src/theme/overrides/components/css-baseline.js +48 -0
- package/src/theme/overrides/components/data-grid.js +94 -0
- package/src/theme/overrides/components/date-picker.jsx +94 -0
- package/src/theme/overrides/components/dialog.js +49 -0
- package/src/theme/overrides/components/drawer.js +39 -0
- package/src/theme/overrides/components/fab.js +165 -0
- package/src/theme/overrides/components/list.js +33 -0
- package/src/theme/overrides/components/loading-button.js +30 -0
- package/src/theme/overrides/components/menu.js +15 -0
- package/src/theme/overrides/components/pagination.js +81 -0
- package/src/theme/overrides/components/paper.js +18 -0
- package/src/theme/overrides/components/popover.js +20 -0
- package/src/theme/overrides/components/progress.js +40 -0
- package/src/theme/overrides/components/radio.js +22 -0
- package/src/theme/overrides/components/rating.js +40 -0
- package/src/theme/overrides/components/select.js +26 -0
- package/src/theme/overrides/components/skeleton.js +16 -0
- package/src/theme/overrides/components/slider.js +30 -0
- package/src/theme/overrides/components/stepper.js +13 -0
- package/src/theme/overrides/components/svg-icon.js +15 -0
- package/src/theme/overrides/components/switch.js +66 -0
- package/src/theme/overrides/components/table.js +79 -0
- package/src/theme/overrides/components/tabs.js +39 -0
- package/src/theme/overrides/components/textfield.js +146 -0
- package/src/theme/overrides/components/timeline.js +20 -0
- package/src/theme/overrides/components/toggle-button.js +70 -0
- package/src/theme/overrides/components/tooltip.js +18 -0
- package/src/theme/overrides/components/tree-view.js +16 -0
- package/src/theme/overrides/components/typography.js +16 -0
- package/src/theme/overrides/default-props.jsx +238 -0
- package/src/theme/overrides/index.js +100 -0
- package/src/theme/palette.js +144 -0
- package/src/theme/shadows.js +41 -0
- package/src/theme/typography.js +107 -0
- package/src/utils/flatten-array.js +16 -0
- package/src/utils/format-number.js +37 -0
- package/src/utils/format-time.js +27 -0
- package/src/utils/storage-available.js +24 -0
- package/src/widgets/Login/CognitoLogin.jsx +43 -0
- package/src/widgets/Login/Login.jsx +58 -0
- package/src/widgets/Login/cognitoAuth.jsx +26 -0
- package/src/widgets/LoginForm/LoginForm.jsx +87 -0
- package/src/widgets/LoginForm/LoginFormStyles.js +43 -0
- package/src/widgets/LoginForm/index.js +1 -0
- package/src/widgets/SettingsDialog.jsx +308 -0
- package/src/widgets/error/index.js +1 -0
- package/src/widgets/error/not-found-view.jsx +42 -0
- package/vite/vite.js +77 -0
- package/vite.config.js +7 -0
- package/vitest.config.js +32 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { varTranEnter, varTranExit } from "./transition";
|
|
2
|
+
|
|
3
|
+
export const varBounce = (props) => {
|
|
4
|
+
const durationIn = props?.durationIn;
|
|
5
|
+
const durationOut = props?.durationOut;
|
|
6
|
+
const easeIn = props?.easeIn;
|
|
7
|
+
const easeOut = props?.easeOut;
|
|
8
|
+
|
|
9
|
+
return {
|
|
10
|
+
in: {
|
|
11
|
+
initial: {},
|
|
12
|
+
animate: {
|
|
13
|
+
scale: [0.3, 1.1, 0.9, 1.03, 0.97, 1],
|
|
14
|
+
opacity: [0, 1, 1, 1, 1, 1],
|
|
15
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
16
|
+
},
|
|
17
|
+
exit: {
|
|
18
|
+
scale: [0.9, 1.1, 0.3],
|
|
19
|
+
opacity: [1, 1, 0],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
inUp: {
|
|
23
|
+
initial: {},
|
|
24
|
+
animate: {
|
|
25
|
+
y: [720, -24, 12, -4, 0],
|
|
26
|
+
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
27
|
+
opacity: [0, 1, 1, 1, 1],
|
|
28
|
+
transition: { ...varTranEnter({ durationIn, easeIn }) },
|
|
29
|
+
},
|
|
30
|
+
exit: {
|
|
31
|
+
y: [12, -24, 720],
|
|
32
|
+
scaleY: [0.985, 0.9, 3],
|
|
33
|
+
opacity: [1, 1, 0],
|
|
34
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
inDown: {
|
|
38
|
+
initial: {},
|
|
39
|
+
animate: {
|
|
40
|
+
y: [-720, 24, -12, 4, 0],
|
|
41
|
+
scaleY: [4, 0.9, 0.95, 0.985, 1],
|
|
42
|
+
opacity: [0, 1, 1, 1, 1],
|
|
43
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
44
|
+
},
|
|
45
|
+
exit: {
|
|
46
|
+
y: [-12, 24, -720],
|
|
47
|
+
scaleY: [0.985, 0.9, 3],
|
|
48
|
+
opacity: [1, 1, 0],
|
|
49
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
inLeft: {
|
|
53
|
+
initial: {},
|
|
54
|
+
animate: {
|
|
55
|
+
x: [-720, 24, -12, 4, 0],
|
|
56
|
+
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
57
|
+
opacity: [0, 1, 1, 1, 1],
|
|
58
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
59
|
+
},
|
|
60
|
+
exit: {
|
|
61
|
+
x: [0, 24, -720],
|
|
62
|
+
scaleX: [1, 0.9, 2],
|
|
63
|
+
opacity: [1, 1, 0],
|
|
64
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
inRight: {
|
|
68
|
+
initial: {},
|
|
69
|
+
animate: {
|
|
70
|
+
x: [720, -24, 12, -4, 0],
|
|
71
|
+
scaleX: [3, 1, 0.98, 0.995, 1],
|
|
72
|
+
opacity: [0, 1, 1, 1, 1],
|
|
73
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
74
|
+
},
|
|
75
|
+
exit: {
|
|
76
|
+
x: [0, -24, 720],
|
|
77
|
+
scaleX: [1, 0.9, 2],
|
|
78
|
+
opacity: [1, 1, 0],
|
|
79
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
out: {
|
|
84
|
+
animate: { scale: [0.9, 1.1, 0.3], opacity: [1, 1, 0] },
|
|
85
|
+
},
|
|
86
|
+
outUp: {
|
|
87
|
+
animate: {
|
|
88
|
+
y: [-12, 24, -720],
|
|
89
|
+
scaleY: [0.985, 0.9, 3],
|
|
90
|
+
opacity: [1, 1, 0],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
outDown: {
|
|
94
|
+
animate: {
|
|
95
|
+
y: [12, -24, 720],
|
|
96
|
+
scaleY: [0.985, 0.9, 3],
|
|
97
|
+
opacity: [1, 1, 0],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
outLeft: {
|
|
101
|
+
animate: { x: [0, 24, -720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] },
|
|
102
|
+
},
|
|
103
|
+
outRight: {
|
|
104
|
+
animate: { x: [0, -24, 720], scaleX: [1, 0.9, 2], opacity: [1, 1, 0] },
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const varContainer = (props) => {
|
|
2
|
+
const staggerIn = props?.staggerIn || 0.05;
|
|
3
|
+
const delayIn = props?.staggerIn || 0.05;
|
|
4
|
+
const staggerOut = props?.staggerIn || 0.05;
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
animate: {
|
|
8
|
+
transition: {
|
|
9
|
+
staggerChildren: staggerIn,
|
|
10
|
+
delayChildren: delayIn,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
exit: {
|
|
14
|
+
transition: {
|
|
15
|
+
staggerChildren: staggerOut,
|
|
16
|
+
staggerDirection: -1,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { varTranEnter, varTranExit } from "./transition";
|
|
2
|
+
|
|
3
|
+
export const varFade = (props) => {
|
|
4
|
+
const distance = props?.distance || 120;
|
|
5
|
+
const durationIn = props?.durationIn;
|
|
6
|
+
const durationOut = props?.durationOut;
|
|
7
|
+
const easeIn = props?.easeIn;
|
|
8
|
+
const easeOut = props?.easeOut;
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
in: {
|
|
12
|
+
initial: { opacity: 0 },
|
|
13
|
+
animate: { opacity: 1, transition: varTranEnter },
|
|
14
|
+
exit: { opacity: 0, transition: varTranExit },
|
|
15
|
+
},
|
|
16
|
+
inUp: {
|
|
17
|
+
initial: { y: distance, opacity: 0 },
|
|
18
|
+
animate: {
|
|
19
|
+
y: 0,
|
|
20
|
+
opacity: 1,
|
|
21
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
22
|
+
},
|
|
23
|
+
exit: {
|
|
24
|
+
y: distance,
|
|
25
|
+
opacity: 0,
|
|
26
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
inDown: {
|
|
30
|
+
initial: { y: -distance, opacity: 0 },
|
|
31
|
+
animate: {
|
|
32
|
+
y: 0,
|
|
33
|
+
opacity: 1,
|
|
34
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
35
|
+
},
|
|
36
|
+
exit: {
|
|
37
|
+
y: -distance,
|
|
38
|
+
opacity: 0,
|
|
39
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
inLeft: {
|
|
43
|
+
initial: { x: -distance, opacity: 0 },
|
|
44
|
+
animate: {
|
|
45
|
+
x: 0,
|
|
46
|
+
opacity: 1,
|
|
47
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
48
|
+
},
|
|
49
|
+
exit: {
|
|
50
|
+
x: -distance,
|
|
51
|
+
opacity: 0,
|
|
52
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
inRight: {
|
|
56
|
+
initial: { x: distance, opacity: 0 },
|
|
57
|
+
animate: {
|
|
58
|
+
x: 0,
|
|
59
|
+
opacity: 1,
|
|
60
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
61
|
+
},
|
|
62
|
+
exit: {
|
|
63
|
+
x: distance,
|
|
64
|
+
opacity: 0,
|
|
65
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
out: {
|
|
70
|
+
initial: { opacity: 1 },
|
|
71
|
+
animate: { opacity: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
72
|
+
exit: { opacity: 1, transition: varTranExit({ durationOut, easeOut }) },
|
|
73
|
+
},
|
|
74
|
+
outUp: {
|
|
75
|
+
initial: { y: 0, opacity: 1 },
|
|
76
|
+
animate: {
|
|
77
|
+
y: -distance,
|
|
78
|
+
opacity: 0,
|
|
79
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
80
|
+
},
|
|
81
|
+
exit: {
|
|
82
|
+
y: 0,
|
|
83
|
+
opacity: 1,
|
|
84
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
outDown: {
|
|
88
|
+
initial: { y: 0, opacity: 1 },
|
|
89
|
+
animate: {
|
|
90
|
+
y: distance,
|
|
91
|
+
opacity: 0,
|
|
92
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
93
|
+
},
|
|
94
|
+
exit: {
|
|
95
|
+
y: 0,
|
|
96
|
+
opacity: 1,
|
|
97
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
outLeft: {
|
|
101
|
+
initial: { x: 0, opacity: 1 },
|
|
102
|
+
animate: {
|
|
103
|
+
x: -distance,
|
|
104
|
+
opacity: 0,
|
|
105
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
106
|
+
},
|
|
107
|
+
exit: {
|
|
108
|
+
x: 0,
|
|
109
|
+
opacity: 1,
|
|
110
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
outRight: {
|
|
114
|
+
initial: { x: 0, opacity: 1 },
|
|
115
|
+
animate: {
|
|
116
|
+
x: distance,
|
|
117
|
+
opacity: 0,
|
|
118
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
119
|
+
},
|
|
120
|
+
exit: {
|
|
121
|
+
x: 0,
|
|
122
|
+
opacity: 1,
|
|
123
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { varTranEnter, varTranExit } from "./transition";
|
|
2
|
+
|
|
3
|
+
export const varFlip = (props) => {
|
|
4
|
+
const durationIn = props?.durationIn;
|
|
5
|
+
const durationOut = props?.durationOut;
|
|
6
|
+
const easeIn = props?.easeIn;
|
|
7
|
+
const easeOut = props?.easeOut;
|
|
8
|
+
|
|
9
|
+
return {
|
|
10
|
+
inX: {
|
|
11
|
+
initial: { rotateX: -180, opacity: 0 },
|
|
12
|
+
animate: {
|
|
13
|
+
rotateX: 0,
|
|
14
|
+
opacity: 1,
|
|
15
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
16
|
+
},
|
|
17
|
+
exit: {
|
|
18
|
+
rotateX: -180,
|
|
19
|
+
opacity: 0,
|
|
20
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
inY: {
|
|
24
|
+
initial: { rotateY: -180, opacity: 0 },
|
|
25
|
+
animate: {
|
|
26
|
+
rotateY: 0,
|
|
27
|
+
opacity: 1,
|
|
28
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
29
|
+
},
|
|
30
|
+
exit: {
|
|
31
|
+
rotateY: -180,
|
|
32
|
+
opacity: 0,
|
|
33
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
outX: {
|
|
38
|
+
initial: { rotateX: 0, opacity: 1 },
|
|
39
|
+
animate: {
|
|
40
|
+
rotateX: 70,
|
|
41
|
+
opacity: 0,
|
|
42
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
outY: {
|
|
46
|
+
initial: { rotateY: 0, opacity: 1 },
|
|
47
|
+
animate: {
|
|
48
|
+
rotateY: 70,
|
|
49
|
+
opacity: 0,
|
|
50
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./path";
|
|
2
|
+
export * from "./fade";
|
|
3
|
+
export * from "./zoom";
|
|
4
|
+
export * from "./flip";
|
|
5
|
+
export * from "./slide";
|
|
6
|
+
export * from "./scale";
|
|
7
|
+
export * from "./bounce";
|
|
8
|
+
export * from "./rotate";
|
|
9
|
+
export * from "./actions";
|
|
10
|
+
export * from "./container";
|
|
11
|
+
export * from "./transition";
|
|
12
|
+
export * from "./background";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { varTranEnter, varTranExit } from "./transition";
|
|
2
|
+
|
|
3
|
+
export const varRotate = (props) => {
|
|
4
|
+
const durationIn = props?.durationIn;
|
|
5
|
+
const durationOut = props?.durationOut;
|
|
6
|
+
const easeIn = props?.easeIn;
|
|
7
|
+
const easeOut = props?.easeOut;
|
|
8
|
+
|
|
9
|
+
return {
|
|
10
|
+
in: {
|
|
11
|
+
initial: { opacity: 0, rotate: -360 },
|
|
12
|
+
animate: {
|
|
13
|
+
opacity: 1,
|
|
14
|
+
rotate: 0,
|
|
15
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
16
|
+
},
|
|
17
|
+
exit: {
|
|
18
|
+
opacity: 0,
|
|
19
|
+
rotate: -360,
|
|
20
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
out: {
|
|
25
|
+
initial: { opacity: 1, rotate: 0 },
|
|
26
|
+
animate: {
|
|
27
|
+
opacity: 0,
|
|
28
|
+
rotate: -360,
|
|
29
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { varTranEnter, varTranExit } from "./transition";
|
|
2
|
+
|
|
3
|
+
export const varScale = (props) => {
|
|
4
|
+
const durationIn = props?.durationIn;
|
|
5
|
+
const durationOut = props?.durationOut;
|
|
6
|
+
const easeIn = props?.easeIn;
|
|
7
|
+
const easeOut = props?.easeOut;
|
|
8
|
+
|
|
9
|
+
return {
|
|
10
|
+
inX: {
|
|
11
|
+
initial: { scaleX: 0, opacity: 0 },
|
|
12
|
+
animate: {
|
|
13
|
+
scaleX: 1,
|
|
14
|
+
opacity: 1,
|
|
15
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
16
|
+
},
|
|
17
|
+
exit: {
|
|
18
|
+
scaleX: 0,
|
|
19
|
+
opacity: 0,
|
|
20
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
inY: {
|
|
24
|
+
initial: { scaleY: 0, opacity: 0 },
|
|
25
|
+
animate: {
|
|
26
|
+
scaleY: 1,
|
|
27
|
+
opacity: 1,
|
|
28
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
29
|
+
},
|
|
30
|
+
exit: {
|
|
31
|
+
scaleY: 0,
|
|
32
|
+
opacity: 0,
|
|
33
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
outX: {
|
|
38
|
+
initial: { scaleX: 1, opacity: 1 },
|
|
39
|
+
animate: {
|
|
40
|
+
scaleX: 0,
|
|
41
|
+
opacity: 0,
|
|
42
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
outY: {
|
|
46
|
+
initial: { scaleY: 1, opacity: 1 },
|
|
47
|
+
animate: {
|
|
48
|
+
scaleY: 0,
|
|
49
|
+
opacity: 0,
|
|
50
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { varTranEnter, varTranExit } from "./transition";
|
|
2
|
+
|
|
3
|
+
export const varSlide = (props) => {
|
|
4
|
+
const distance = props?.distance || 160;
|
|
5
|
+
const durationIn = props?.durationIn;
|
|
6
|
+
const durationOut = props?.durationOut;
|
|
7
|
+
const easeIn = props?.easeIn;
|
|
8
|
+
const easeOut = props?.easeOut;
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
inUp: {
|
|
12
|
+
initial: { y: distance },
|
|
13
|
+
animate: { y: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
14
|
+
exit: { y: distance, transition: varTranExit({ durationOut, easeOut }) },
|
|
15
|
+
},
|
|
16
|
+
inDown: {
|
|
17
|
+
initial: { y: -distance },
|
|
18
|
+
animate: { y: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
19
|
+
exit: { y: -distance, transition: varTranExit({ durationOut, easeOut }) },
|
|
20
|
+
},
|
|
21
|
+
inLeft: {
|
|
22
|
+
initial: { x: -distance },
|
|
23
|
+
animate: { x: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
24
|
+
exit: { x: -distance, transition: varTranExit({ durationOut, easeOut }) },
|
|
25
|
+
},
|
|
26
|
+
inRight: {
|
|
27
|
+
initial: { x: distance },
|
|
28
|
+
animate: { x: 0, transition: varTranEnter({ durationIn, easeIn }) },
|
|
29
|
+
exit: { x: distance, transition: varTranExit({ durationOut, easeOut }) },
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
outUp: {
|
|
33
|
+
initial: { y: 0 },
|
|
34
|
+
animate: {
|
|
35
|
+
y: -distance,
|
|
36
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
37
|
+
},
|
|
38
|
+
exit: { y: 0, transition: varTranExit({ durationOut, easeOut }) },
|
|
39
|
+
},
|
|
40
|
+
outDown: {
|
|
41
|
+
initial: { y: 0 },
|
|
42
|
+
animate: {
|
|
43
|
+
y: distance,
|
|
44
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
45
|
+
},
|
|
46
|
+
exit: { y: 0, transition: varTranExit({ durationOut, easeOut }) },
|
|
47
|
+
},
|
|
48
|
+
outLeft: {
|
|
49
|
+
initial: { x: 0 },
|
|
50
|
+
animate: {
|
|
51
|
+
x: -distance,
|
|
52
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
53
|
+
},
|
|
54
|
+
exit: { x: 0, transition: varTranExit({ durationOut, easeOut }) },
|
|
55
|
+
},
|
|
56
|
+
outRight: {
|
|
57
|
+
initial: { x: 0 },
|
|
58
|
+
animate: {
|
|
59
|
+
x: distance,
|
|
60
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
61
|
+
},
|
|
62
|
+
exit: { x: 0, transition: varTranExit({ durationOut, easeOut }) },
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const varTranHover = (props) => {
|
|
2
|
+
const duration = props?.duration || 0.32;
|
|
3
|
+
const ease = props?.ease || [0.43, 0.13, 0.23, 0.96];
|
|
4
|
+
|
|
5
|
+
return { duration, ease };
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const varTranEnter = (props) => {
|
|
9
|
+
const duration = props?.durationIn || 0.64;
|
|
10
|
+
const ease = props?.easeIn || [0.43, 0.13, 0.23, 0.96];
|
|
11
|
+
|
|
12
|
+
return { duration, ease };
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const varTranExit = (props) => {
|
|
16
|
+
const duration = props?.durationOut || 0.48;
|
|
17
|
+
const ease = props?.easeOut || [0.43, 0.13, 0.23, 0.96];
|
|
18
|
+
|
|
19
|
+
return { duration, ease };
|
|
20
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { varTranEnter, varTranExit } from "./transition";
|
|
2
|
+
|
|
3
|
+
export const varZoom = (props) => {
|
|
4
|
+
const distance = props?.distance || 720;
|
|
5
|
+
const durationIn = props?.durationIn;
|
|
6
|
+
const durationOut = props?.durationOut;
|
|
7
|
+
const easeIn = props?.easeIn;
|
|
8
|
+
const easeOut = props?.easeOut;
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
in: {
|
|
12
|
+
initial: { scale: 0, opacity: 0 },
|
|
13
|
+
animate: {
|
|
14
|
+
scale: 1,
|
|
15
|
+
opacity: 1,
|
|
16
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
17
|
+
},
|
|
18
|
+
exit: {
|
|
19
|
+
scale: 0,
|
|
20
|
+
opacity: 0,
|
|
21
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
inUp: {
|
|
25
|
+
initial: { scale: 0, opacity: 0, translateY: distance },
|
|
26
|
+
animate: {
|
|
27
|
+
scale: 1,
|
|
28
|
+
opacity: 1,
|
|
29
|
+
translateY: 0,
|
|
30
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
31
|
+
},
|
|
32
|
+
exit: {
|
|
33
|
+
scale: 0,
|
|
34
|
+
opacity: 0,
|
|
35
|
+
translateY: distance,
|
|
36
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
inDown: {
|
|
40
|
+
initial: { scale: 0, opacity: 0, translateY: -distance },
|
|
41
|
+
animate: {
|
|
42
|
+
scale: 1,
|
|
43
|
+
opacity: 1,
|
|
44
|
+
translateY: 0,
|
|
45
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
46
|
+
},
|
|
47
|
+
exit: {
|
|
48
|
+
scale: 0,
|
|
49
|
+
opacity: 0,
|
|
50
|
+
translateY: -distance,
|
|
51
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
inLeft: {
|
|
55
|
+
initial: { scale: 0, opacity: 0, translateX: -distance },
|
|
56
|
+
animate: {
|
|
57
|
+
scale: 1,
|
|
58
|
+
opacity: 1,
|
|
59
|
+
translateX: 0,
|
|
60
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
61
|
+
},
|
|
62
|
+
exit: {
|
|
63
|
+
scale: 0,
|
|
64
|
+
opacity: 0,
|
|
65
|
+
translateX: -distance,
|
|
66
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
inRight: {
|
|
70
|
+
initial: { scale: 0, opacity: 0, translateX: distance },
|
|
71
|
+
animate: {
|
|
72
|
+
scale: 1,
|
|
73
|
+
opacity: 1,
|
|
74
|
+
translateX: 0,
|
|
75
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
76
|
+
},
|
|
77
|
+
exit: {
|
|
78
|
+
scale: 0,
|
|
79
|
+
opacity: 0,
|
|
80
|
+
translateX: distance,
|
|
81
|
+
transition: varTranExit({ durationOut, easeOut }),
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
out: {
|
|
86
|
+
initial: { scale: 1, opacity: 1 },
|
|
87
|
+
animate: {
|
|
88
|
+
scale: 0,
|
|
89
|
+
opacity: 0,
|
|
90
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
outUp: {
|
|
94
|
+
initial: { scale: 1, opacity: 1 },
|
|
95
|
+
animate: {
|
|
96
|
+
scale: 0,
|
|
97
|
+
opacity: 0,
|
|
98
|
+
translateY: -distance,
|
|
99
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
outDown: {
|
|
103
|
+
initial: { scale: 1, opacity: 1 },
|
|
104
|
+
animate: {
|
|
105
|
+
scale: 0,
|
|
106
|
+
opacity: 0,
|
|
107
|
+
translateY: distance,
|
|
108
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
outLeft: {
|
|
112
|
+
initial: { scale: 1, opacity: 1 },
|
|
113
|
+
animate: {
|
|
114
|
+
scale: 0,
|
|
115
|
+
opacity: 0,
|
|
116
|
+
translateX: -distance,
|
|
117
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
outRight: {
|
|
121
|
+
initial: { scale: 1, opacity: 1 },
|
|
122
|
+
animate: {
|
|
123
|
+
scale: 0,
|
|
124
|
+
opacity: 0,
|
|
125
|
+
translateX: distance,
|
|
126
|
+
transition: varTranEnter({ durationIn, easeIn }),
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import ApexChart from "react-apexcharts";
|
|
2
|
+
import { bgBlur } from "../../theme/css";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
|
|
5
|
+
import { alpha, styled } from "@mui/material/styles";
|
|
6
|
+
|
|
7
|
+
// ----------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
const Chart = styled(ApexChart)(({ theme }) => ({
|
|
10
|
+
"& .apexcharts-canvas": {
|
|
11
|
+
// Tooltip
|
|
12
|
+
"& .apexcharts-tooltip": {
|
|
13
|
+
...bgBlur({
|
|
14
|
+
color: theme.palette.background.default,
|
|
15
|
+
}),
|
|
16
|
+
color: theme.palette.text.primary,
|
|
17
|
+
boxShadow: theme.customShadows.dropdown,
|
|
18
|
+
borderRadius: theme.shape.borderRadius * 1.25,
|
|
19
|
+
"&.apexcharts-theme-light": {
|
|
20
|
+
borderColor: "transparent",
|
|
21
|
+
...bgBlur({
|
|
22
|
+
color: theme.palette.background.default,
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
"& .apexcharts-xaxistooltip": {
|
|
27
|
+
...bgBlur({
|
|
28
|
+
color: theme.palette.background.default,
|
|
29
|
+
}),
|
|
30
|
+
borderColor: "transparent",
|
|
31
|
+
color: theme.palette.text.primary,
|
|
32
|
+
boxShadow: theme.customShadows.dropdown,
|
|
33
|
+
borderRadius: theme.shape.borderRadius * 1.25,
|
|
34
|
+
"&:before": {
|
|
35
|
+
borderBottomColor: alpha(theme.palette.grey[500], 0.24),
|
|
36
|
+
},
|
|
37
|
+
"&:after": {
|
|
38
|
+
borderBottomColor: alpha(theme.palette.background.default, 0.8),
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
"& .apexcharts-tooltip-title": {
|
|
42
|
+
textAlign: "center",
|
|
43
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
44
|
+
backgroundColor: alpha(theme.palette.grey[500], 0.08),
|
|
45
|
+
color:
|
|
46
|
+
theme.palette.text[
|
|
47
|
+
theme.palette.mode === "light" ? "secondary" : "primary"
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
// LEGEND
|
|
52
|
+
"& .apexcharts-legend": {
|
|
53
|
+
padding: 0,
|
|
54
|
+
},
|
|
55
|
+
"& .apexcharts-legend-series": {
|
|
56
|
+
display: "inline-flex !important",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
},
|
|
59
|
+
"& .apexcharts-legend-marker": {
|
|
60
|
+
marginRight: 8,
|
|
61
|
+
},
|
|
62
|
+
"& .apexcharts-legend-text": {
|
|
63
|
+
lineHeight: "18px",
|
|
64
|
+
textTransform: "capitalize",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
export default memo(Chart);
|