@astral/ui 4.82.0 → 4.84.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/_mocks/LoggerMock/LoggerMock.d.ts +16 -0
- package/_mocks/LoggerMock/LoggerMock.js +18 -0
- package/_mocks/LoggerMock/index.d.ts +1 -0
- package/_mocks/LoggerMock/index.js +1 -0
- package/components/ConfigProvider/ConfigProvider.d.ts +7 -1
- package/components/ConfigProvider/ConfigProvider.js +14 -8
- package/components/ConfirmDialog/ConfirmDialog.js +3 -1
- package/components/ConfirmDialog/constants.d.ts +4 -0
- package/components/ConfirmDialog/constants.js +5 -0
- package/components/ConfirmDialog/index.d.ts +1 -0
- package/components/ConfirmDialog/index.js +1 -0
- package/components/ConfirmDialog/public.d.ts +1 -0
- package/components/ConfirmDialog/public.js +1 -0
- package/components/ConfirmDialog/types.d.ts +1 -1
- package/components/DashboardLayout/Header/useLogic/useLogic.d.ts +1 -1
- package/components/NewPopover/NewPopover.d.ts +1 -1
- package/components/NewPopover/NewPopover.js +14 -5
- package/components/NewPopover/constants.d.ts +7 -0
- package/components/NewPopover/constants.js +11 -0
- package/components/NewPopover/styles.d.ts +4 -0
- package/components/NewPopover/styles.js +100 -4
- package/components/NewPopover/types.d.ts +13 -0
- package/components/NewPopover/useLogic/useLogic.d.ts +7 -3
- package/components/NewPopover/useLogic/useLogic.js +15 -1
- package/components/Onboarding/Onboarding.d.ts +35 -0
- package/components/Onboarding/Onboarding.js +56 -0
- package/components/Onboarding/constants.d.ts +34 -0
- package/components/Onboarding/constants.js +34 -0
- package/components/Onboarding/core/ActiveStepStore/ActiveStepStore.d.ts +50 -0
- package/components/Onboarding/core/ActiveStepStore/ActiveStepStore.js +63 -0
- package/components/Onboarding/core/ActiveStepStore/index.d.ts +1 -0
- package/components/Onboarding/core/ActiveStepStore/index.js +1 -0
- package/components/Onboarding/core/ExitController/ExitController.d.ts +48 -0
- package/components/Onboarding/core/ExitController/ExitController.js +59 -0
- package/components/Onboarding/core/ExitController/index.d.ts +1 -0
- package/components/Onboarding/core/ExitController/index.js +1 -0
- package/components/Onboarding/core/OnboardingTour/OnboardingTour.d.ts +103 -0
- package/components/Onboarding/core/OnboardingTour/OnboardingTour.js +283 -0
- package/components/Onboarding/core/OnboardingTour/index.d.ts +1 -0
- package/components/Onboarding/core/OnboardingTour/index.js +1 -0
- package/components/Onboarding/core/ProgressStorage/ProgressStorage.d.ts +24 -0
- package/components/Onboarding/core/ProgressStorage/ProgressStorage.js +62 -0
- package/components/Onboarding/core/ProgressStorage/index.d.ts +1 -0
- package/components/Onboarding/core/ProgressStorage/index.js +1 -0
- package/components/Onboarding/core/StepNavigator/StepNavigator.d.ts +28 -0
- package/components/Onboarding/core/StepNavigator/StepNavigator.js +73 -0
- package/components/Onboarding/core/StepNavigator/index.d.ts +1 -0
- package/components/Onboarding/core/StepNavigator/index.js +1 -0
- package/components/Onboarding/core/StepResolver/StepResolver.d.ts +19 -0
- package/components/Onboarding/core/StepResolver/StepResolver.js +49 -0
- package/components/Onboarding/core/StepResolver/index.d.ts +1 -0
- package/components/Onboarding/core/StepResolver/index.js +1 -0
- package/components/Onboarding/core/StepsController/StepsController.d.ts +16 -0
- package/components/Onboarding/core/StepsController/StepsController.js +35 -0
- package/components/Onboarding/core/StepsController/index.d.ts +1 -0
- package/components/Onboarding/core/StepsController/index.js +1 -0
- package/components/Onboarding/faker.d.ts +27 -0
- package/components/Onboarding/faker.js +79 -0
- package/components/Onboarding/index.d.ts +5 -0
- package/components/Onboarding/index.js +3 -0
- package/components/Onboarding/public.d.ts +5 -0
- package/components/Onboarding/public.js +3 -0
- package/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.d.ts +20 -0
- package/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.js +24 -0
- package/components/Onboarding/services/LocalStorageSaveStrategy/index.d.ts +1 -0
- package/components/Onboarding/services/LocalStorageSaveStrategy/index.js +1 -0
- package/components/Onboarding/types/config.d.ts +18 -0
- package/components/Onboarding/types/config.js +1 -0
- package/components/Onboarding/types/index.d.ts +4 -0
- package/components/Onboarding/types/index.js +4 -0
- package/components/Onboarding/types/progress.d.ts +28 -0
- package/components/Onboarding/types/progress.js +1 -0
- package/components/Onboarding/types/step.d.ts +144 -0
- package/components/Onboarding/types/step.js +1 -0
- package/components/Onboarding/types/tour.d.ts +168 -0
- package/components/Onboarding/types/tour.js +1 -0
- package/components/Onboarding/ui/ConfirmExit/ConfirmExit.d.ts +10 -0
- package/components/Onboarding/ui/ConfirmExit/ConfirmExit.js +6 -0
- package/components/Onboarding/ui/ConfirmExit/index.d.ts +2 -0
- package/components/Onboarding/ui/ConfirmExit/index.js +1 -0
- package/components/Onboarding/ui/ConfirmExit/styles.d.ts +30 -0
- package/components/Onboarding/ui/ConfirmExit/styles.js +11 -0
- package/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.d.ts +12 -0
- package/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.js +15 -0
- package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.d.ts +22 -0
- package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.js +20 -0
- package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.d.ts +2 -0
- package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.js +1 -0
- package/components/Onboarding/ui/OnboardingContainer/index.d.ts +1 -0
- package/components/Onboarding/ui/OnboardingContainer/index.js +1 -0
- package/components/Onboarding/ui/OnboardingContainer/useLogic/index.d.ts +1 -0
- package/components/Onboarding/ui/OnboardingContainer/useLogic/index.js +1 -0
- package/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.d.ts +10 -0
- package/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.js +14 -0
- package/components/Onboarding/ui/Overlay/Overlay.d.ts +29 -0
- package/components/Onboarding/ui/Overlay/Overlay.js +24 -0
- package/components/Onboarding/ui/Overlay/constants.d.ts +7 -0
- package/components/Onboarding/ui/Overlay/constants.js +8 -0
- package/components/Onboarding/ui/Overlay/index.d.ts +2 -0
- package/components/Onboarding/ui/Overlay/index.js +1 -0
- package/components/Onboarding/ui/Overlay/styles.d.ts +22 -0
- package/components/Onboarding/ui/Overlay/styles.js +57 -0
- package/components/Onboarding/ui/Overlay/useLogic/index.d.ts +1 -0
- package/components/Onboarding/ui/Overlay/useLogic/index.js +1 -0
- package/components/Onboarding/ui/Overlay/useLogic/useLogic.d.ts +13 -0
- package/components/Onboarding/ui/Overlay/useLogic/useLogic.js +10 -0
- package/components/Onboarding/ui/StepStrategy/StepStrategy.d.ts +6 -0
- package/components/Onboarding/ui/StepStrategy/StepStrategy.js +17 -0
- package/components/Onboarding/ui/StepStrategy/index.d.ts +1 -0
- package/components/Onboarding/ui/StepStrategy/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.d.ts +6 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.js +19 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.d.ts +2 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +25 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.js +56 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.d.ts +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.d.ts +12 -0
- package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.js +37 -0
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.d.ts +6 -0
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +11 -0
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.d.ts +2 -0
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +13 -0
- package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.js +9 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.d.ts +6 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.js +15 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.d.ts +4 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.js +5 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.d.ts +2 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.d.ts +9 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.js +34 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.d.ts +9 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.js +18 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.d.ts +4 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.js +4 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.d.ts +2 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.d.ts +21 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.js +28 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.d.ts +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.d.ts +16 -0
- package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.js +22 -0
- package/components/Onboarding/ui/StepStrategy/steps/types.d.ts +16 -0
- package/components/Onboarding/ui/StepStrategy/steps/types.js +1 -0
- package/components/Onboarding/ui/StepStrategy/useLogic/index.d.ts +1 -0
- package/components/Onboarding/ui/StepStrategy/useLogic/index.js +1 -0
- package/components/Onboarding/ui/StepStrategy/useLogic/useLogic.d.ts +47 -0
- package/components/Onboarding/ui/StepStrategy/useLogic/useLogic.js +51 -0
- package/components/Onboarding/ui/hooks/useActiveStep/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useActiveStep/index.js +1 -0
- package/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.d.ts +6 -0
- package/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.js +7 -0
- package/components/Onboarding/ui/hooks/useDelayedActiveStep/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useDelayedActiveStep/index.js +1 -0
- package/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.d.ts +15 -0
- package/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.js +19 -0
- package/components/Onboarding/ui/hooks/useFocusTrap/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useFocusTrap/index.js +1 -0
- package/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.d.ts +6 -0
- package/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.js +33 -0
- package/components/Onboarding/ui/hooks/useKeyboardNav/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useKeyboardNav/index.js +1 -0
- package/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.d.ts +11 -0
- package/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.js +62 -0
- package/components/Onboarding/ui/hooks/useStepTransition/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useStepTransition/index.js +1 -0
- package/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.d.ts +30 -0
- package/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.js +46 -0
- package/components/Onboarding/ui/hooks/useTargetAnchor/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useTargetAnchor/index.js +1 -0
- package/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.d.ts +37 -0
- package/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.js +56 -0
- package/components/Onboarding/ui/hooks/useTrackedRect/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useTrackedRect/index.js +1 -0
- package/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.d.ts +5 -0
- package/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +43 -0
- package/components/Onboarding/ui/hooks/useViewportSize/index.d.ts +1 -0
- package/components/Onboarding/ui/hooks/useViewportSize/index.js +1 -0
- package/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.d.ts +5 -0
- package/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.js +14 -0
- package/components/Onboarding/ui/styles.d.ts +5 -0
- package/components/Onboarding/ui/styles.js +15 -0
- package/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.d.ts +12 -0
- package/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.js +6 -0
- package/components/Onboarding/utils/createVirtualAnchor/index.d.ts +1 -0
- package/components/Onboarding/utils/createVirtualAnchor/index.js +1 -0
- package/components/Onboarding/utils/geometry/index.d.ts +4 -0
- package/components/Onboarding/utils/geometry/index.js +4 -0
- package/components/Onboarding/utils/geometry/overlayPath/index.d.ts +1 -0
- package/components/Onboarding/utils/geometry/overlayPath/index.js +1 -0
- package/components/Onboarding/utils/geometry/overlayPath/overlayPath.d.ts +6 -0
- package/components/Onboarding/utils/geometry/overlayPath/overlayPath.js +29 -0
- package/components/Onboarding/utils/geometry/parseOffset/index.d.ts +1 -0
- package/components/Onboarding/utils/geometry/parseOffset/index.js +1 -0
- package/components/Onboarding/utils/geometry/parseOffset/parseOffset.d.ts +4 -0
- package/components/Onboarding/utils/geometry/parseOffset/parseOffset.js +5 -0
- package/components/Onboarding/utils/geometry/rect/index.d.ts +2 -0
- package/components/Onboarding/utils/geometry/rect/index.js +1 -0
- package/components/Onboarding/utils/geometry/rect/rect.d.ts +34 -0
- package/components/Onboarding/utils/geometry/rect/rect.js +60 -0
- package/components/Onboarding/utils/geometry/viewport/index.d.ts +2 -0
- package/components/Onboarding/utils/geometry/viewport/index.js +1 -0
- package/components/Onboarding/utils/geometry/viewport/viewport.d.ts +14 -0
- package/components/Onboarding/utils/geometry/viewport/viewport.js +10 -0
- package/components/Onboarding/utils/getScrollParents/getScrollParents.d.ts +7 -0
- package/components/Onboarding/utils/getScrollParents/getScrollParents.js +24 -0
- package/components/Onboarding/utils/getScrollParents/index.d.ts +1 -0
- package/components/Onboarding/utils/getScrollParents/index.js +1 -0
- package/components/Onboarding/utils/getTargetElement/getTargetElement.d.ts +4 -0
- package/components/Onboarding/utils/getTargetElement/getTargetElement.js +9 -0
- package/components/Onboarding/utils/getTargetElement/index.d.ts +1 -0
- package/components/Onboarding/utils/getTargetElement/index.js +1 -0
- package/components/Onboarding/utils/observeRemoval/index.d.ts +1 -0
- package/components/Onboarding/utils/observeRemoval/index.js +1 -0
- package/components/Onboarding/utils/observeRemoval/observeRemoval.d.ts +4 -0
- package/components/Onboarding/utils/observeRemoval/observeRemoval.js +13 -0
- package/components/Onboarding/utils/scrollIntoView/index.d.ts +1 -0
- package/components/Onboarding/utils/scrollIntoView/index.js +1 -0
- package/components/Onboarding/utils/scrollIntoView/scrollIntoView.d.ts +13 -0
- package/components/Onboarding/utils/scrollIntoView/scrollIntoView.js +85 -0
- package/components/Onboarding/utils/waitForElement/index.d.ts +2 -0
- package/components/Onboarding/utils/waitForElement/index.js +1 -0
- package/components/Onboarding/utils/waitForElement/waitForElement.d.ts +21 -0
- package/components/Onboarding/utils/waitForElement/waitForElement.js +45 -0
- package/components/Onboarding/validation/index.d.ts +1 -0
- package/components/Onboarding/validation/index.js +1 -0
- package/components/Onboarding/validation/validateTourConfig/index.d.ts +1 -0
- package/components/Onboarding/validation/validateTourConfig/index.js +1 -0
- package/components/Onboarding/validation/validateTourConfig/validateTourConfig.d.ts +12 -0
- package/components/Onboarding/validation/validateTourConfig/validateTourConfig.js +52 -0
- package/node/_mocks/LoggerMock/LoggerMock.d.ts +16 -0
- package/node/_mocks/LoggerMock/LoggerMock.js +23 -0
- package/node/_mocks/LoggerMock/index.d.ts +1 -0
- package/node/_mocks/LoggerMock/index.js +17 -0
- package/node/components/ConfigProvider/ConfigProvider.d.ts +7 -1
- package/node/components/ConfigProvider/ConfigProvider.js +13 -7
- package/node/components/ConfirmDialog/ConfirmDialog.js +3 -1
- package/node/components/ConfirmDialog/constants.d.ts +4 -0
- package/node/components/ConfirmDialog/constants.js +8 -0
- package/node/components/ConfirmDialog/index.d.ts +1 -0
- package/node/components/ConfirmDialog/index.js +3 -0
- package/node/components/ConfirmDialog/public.d.ts +1 -0
- package/node/components/ConfirmDialog/public.js +3 -0
- package/node/components/ConfirmDialog/types.d.ts +1 -1
- package/node/components/DashboardLayout/Header/useLogic/useLogic.d.ts +1 -1
- package/node/components/NewPopover/NewPopover.d.ts +1 -1
- package/node/components/NewPopover/NewPopover.js +12 -3
- package/node/components/NewPopover/constants.d.ts +7 -0
- package/node/components/NewPopover/constants.js +12 -1
- package/node/components/NewPopover/styles.d.ts +4 -0
- package/node/components/NewPopover/styles.js +101 -5
- package/node/components/NewPopover/types.d.ts +13 -0
- package/node/components/NewPopover/useLogic/useLogic.d.ts +7 -3
- package/node/components/NewPopover/useLogic/useLogic.js +15 -1
- package/node/components/Onboarding/Onboarding.d.ts +35 -0
- package/node/components/Onboarding/Onboarding.js +61 -0
- package/node/components/Onboarding/constants.d.ts +34 -0
- package/node/components/Onboarding/constants.js +37 -0
- package/node/components/Onboarding/core/ActiveStepStore/ActiveStepStore.d.ts +50 -0
- package/node/components/Onboarding/core/ActiveStepStore/ActiveStepStore.js +67 -0
- package/node/components/Onboarding/core/ActiveStepStore/index.d.ts +1 -0
- package/node/components/Onboarding/core/ActiveStepStore/index.js +17 -0
- package/node/components/Onboarding/core/ExitController/ExitController.d.ts +48 -0
- package/node/components/Onboarding/core/ExitController/ExitController.js +63 -0
- package/node/components/Onboarding/core/ExitController/index.d.ts +1 -0
- package/node/components/Onboarding/core/ExitController/index.js +17 -0
- package/node/components/Onboarding/core/OnboardingTour/OnboardingTour.d.ts +103 -0
- package/node/components/Onboarding/core/OnboardingTour/OnboardingTour.js +287 -0
- package/node/components/Onboarding/core/OnboardingTour/index.d.ts +1 -0
- package/node/components/Onboarding/core/OnboardingTour/index.js +5 -0
- package/node/components/Onboarding/core/ProgressStorage/ProgressStorage.d.ts +24 -0
- package/node/components/Onboarding/core/ProgressStorage/ProgressStorage.js +66 -0
- package/node/components/Onboarding/core/ProgressStorage/index.d.ts +1 -0
- package/node/components/Onboarding/core/ProgressStorage/index.js +17 -0
- package/node/components/Onboarding/core/StepNavigator/StepNavigator.d.ts +28 -0
- package/node/components/Onboarding/core/StepNavigator/StepNavigator.js +77 -0
- package/node/components/Onboarding/core/StepNavigator/index.d.ts +1 -0
- package/node/components/Onboarding/core/StepNavigator/index.js +17 -0
- package/node/components/Onboarding/core/StepResolver/StepResolver.d.ts +19 -0
- package/node/components/Onboarding/core/StepResolver/StepResolver.js +53 -0
- package/node/components/Onboarding/core/StepResolver/index.d.ts +1 -0
- package/node/components/Onboarding/core/StepResolver/index.js +17 -0
- package/node/components/Onboarding/core/StepsController/StepsController.d.ts +16 -0
- package/node/components/Onboarding/core/StepsController/StepsController.js +39 -0
- package/node/components/Onboarding/core/StepsController/index.d.ts +1 -0
- package/node/components/Onboarding/core/StepsController/index.js +17 -0
- package/node/components/Onboarding/faker.d.ts +27 -0
- package/node/components/Onboarding/faker.js +88 -0
- package/node/components/Onboarding/index.d.ts +5 -0
- package/node/components/Onboarding/index.js +9 -0
- package/node/components/Onboarding/public.d.ts +5 -0
- package/node/components/Onboarding/public.js +9 -0
- package/node/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.d.ts +20 -0
- package/node/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.js +29 -0
- package/node/components/Onboarding/services/LocalStorageSaveStrategy/index.d.ts +1 -0
- package/node/components/Onboarding/services/LocalStorageSaveStrategy/index.js +17 -0
- package/node/components/Onboarding/types/config.d.ts +18 -0
- package/node/components/Onboarding/types/config.js +2 -0
- package/node/components/Onboarding/types/index.d.ts +4 -0
- package/node/components/Onboarding/types/index.js +20 -0
- package/node/components/Onboarding/types/progress.d.ts +28 -0
- package/node/components/Onboarding/types/progress.js +2 -0
- package/node/components/Onboarding/types/step.d.ts +144 -0
- package/node/components/Onboarding/types/step.js +2 -0
- package/node/components/Onboarding/types/tour.d.ts +168 -0
- package/node/components/Onboarding/types/tour.js +2 -0
- package/node/components/Onboarding/ui/ConfirmExit/ConfirmExit.d.ts +10 -0
- package/node/components/Onboarding/ui/ConfirmExit/ConfirmExit.js +10 -0
- package/node/components/Onboarding/ui/ConfirmExit/index.d.ts +2 -0
- package/node/components/Onboarding/ui/ConfirmExit/index.js +5 -0
- package/node/components/Onboarding/ui/ConfirmExit/styles.d.ts +30 -0
- package/node/components/Onboarding/ui/ConfirmExit/styles.js +14 -0
- package/node/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.d.ts +12 -0
- package/node/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.js +19 -0
- package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.d.ts +22 -0
- package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.js +24 -0
- package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.d.ts +2 -0
- package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.js +5 -0
- package/node/components/Onboarding/ui/OnboardingContainer/index.d.ts +1 -0
- package/node/components/Onboarding/ui/OnboardingContainer/index.js +5 -0
- package/node/components/Onboarding/ui/OnboardingContainer/useLogic/index.d.ts +1 -0
- package/node/components/Onboarding/ui/OnboardingContainer/useLogic/index.js +5 -0
- package/node/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.d.ts +10 -0
- package/node/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.js +18 -0
- package/node/components/Onboarding/ui/Overlay/Overlay.d.ts +29 -0
- package/node/components/Onboarding/ui/Overlay/Overlay.js +28 -0
- package/node/components/Onboarding/ui/Overlay/constants.d.ts +7 -0
- package/node/components/Onboarding/ui/Overlay/constants.js +11 -0
- package/node/components/Onboarding/ui/Overlay/index.d.ts +2 -0
- package/node/components/Onboarding/ui/Overlay/index.js +5 -0
- package/node/components/Onboarding/ui/Overlay/styles.d.ts +22 -0
- package/node/components/Onboarding/ui/Overlay/styles.js +60 -0
- package/node/components/Onboarding/ui/Overlay/useLogic/index.d.ts +1 -0
- package/node/components/Onboarding/ui/Overlay/useLogic/index.js +5 -0
- package/node/components/Onboarding/ui/Overlay/useLogic/useLogic.d.ts +13 -0
- package/node/components/Onboarding/ui/Overlay/useLogic/useLogic.js +14 -0
- package/node/components/Onboarding/ui/StepStrategy/StepStrategy.d.ts +6 -0
- package/node/components/Onboarding/ui/StepStrategy/StepStrategy.js +21 -0
- package/node/components/Onboarding/ui/StepStrategy/index.d.ts +1 -0
- package/node/components/Onboarding/ui/StepStrategy/index.js +17 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.d.ts +6 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.js +23 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.d.ts +2 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.js +5 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +25 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.js +59 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.d.ts +1 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.js +5 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.d.ts +12 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.js +41 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.d.ts +6 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +15 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.d.ts +2 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.js +5 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +13 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.js +12 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.d.ts +6 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.js +19 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.d.ts +4 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.js +8 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.d.ts +2 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.js +5 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.d.ts +9 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.js +37 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.d.ts +9 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.js +22 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.d.ts +4 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.js +7 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.d.ts +2 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.js +5 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.d.ts +21 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.js +31 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.d.ts +1 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.js +5 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.d.ts +16 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.js +26 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/types.d.ts +16 -0
- package/node/components/Onboarding/ui/StepStrategy/steps/types.js +2 -0
- package/node/components/Onboarding/ui/StepStrategy/useLogic/index.d.ts +1 -0
- package/node/components/Onboarding/ui/StepStrategy/useLogic/index.js +5 -0
- package/node/components/Onboarding/ui/StepStrategy/useLogic/useLogic.d.ts +47 -0
- package/node/components/Onboarding/ui/StepStrategy/useLogic/useLogic.js +55 -0
- package/node/components/Onboarding/ui/hooks/useActiveStep/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useActiveStep/index.js +5 -0
- package/node/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.d.ts +6 -0
- package/node/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.js +11 -0
- package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/index.js +17 -0
- package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.d.ts +15 -0
- package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.js +23 -0
- package/node/components/Onboarding/ui/hooks/useFocusTrap/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useFocusTrap/index.js +5 -0
- package/node/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.d.ts +6 -0
- package/node/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.js +37 -0
- package/node/components/Onboarding/ui/hooks/useKeyboardNav/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useKeyboardNav/index.js +5 -0
- package/node/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.d.ts +11 -0
- package/node/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.js +66 -0
- package/node/components/Onboarding/ui/hooks/useStepTransition/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useStepTransition/index.js +5 -0
- package/node/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.d.ts +30 -0
- package/node/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.js +50 -0
- package/node/components/Onboarding/ui/hooks/useTargetAnchor/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useTargetAnchor/index.js +17 -0
- package/node/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.d.ts +37 -0
- package/node/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.js +60 -0
- package/node/components/Onboarding/ui/hooks/useTrackedRect/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useTrackedRect/index.js +5 -0
- package/node/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.d.ts +5 -0
- package/node/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +47 -0
- package/node/components/Onboarding/ui/hooks/useViewportSize/index.d.ts +1 -0
- package/node/components/Onboarding/ui/hooks/useViewportSize/index.js +5 -0
- package/node/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.d.ts +5 -0
- package/node/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.js +18 -0
- package/node/components/Onboarding/ui/styles.d.ts +5 -0
- package/node/components/Onboarding/ui/styles.js +19 -0
- package/node/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.d.ts +12 -0
- package/node/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.js +10 -0
- package/node/components/Onboarding/utils/createVirtualAnchor/index.d.ts +1 -0
- package/node/components/Onboarding/utils/createVirtualAnchor/index.js +17 -0
- package/node/components/Onboarding/utils/geometry/index.d.ts +4 -0
- package/node/components/Onboarding/utils/geometry/index.js +20 -0
- package/node/components/Onboarding/utils/geometry/overlayPath/index.d.ts +1 -0
- package/node/components/Onboarding/utils/geometry/overlayPath/index.js +5 -0
- package/node/components/Onboarding/utils/geometry/overlayPath/overlayPath.d.ts +6 -0
- package/node/components/Onboarding/utils/geometry/overlayPath/overlayPath.js +33 -0
- package/node/components/Onboarding/utils/geometry/parseOffset/index.d.ts +1 -0
- package/node/components/Onboarding/utils/geometry/parseOffset/index.js +5 -0
- package/node/components/Onboarding/utils/geometry/parseOffset/parseOffset.d.ts +4 -0
- package/node/components/Onboarding/utils/geometry/parseOffset/parseOffset.js +9 -0
- package/node/components/Onboarding/utils/geometry/rect/index.d.ts +2 -0
- package/node/components/Onboarding/utils/geometry/rect/index.js +9 -0
- package/node/components/Onboarding/utils/geometry/rect/rect.d.ts +34 -0
- package/node/components/Onboarding/utils/geometry/rect/rect.js +69 -0
- package/node/components/Onboarding/utils/geometry/viewport/index.d.ts +2 -0
- package/node/components/Onboarding/utils/geometry/viewport/index.js +5 -0
- package/node/components/Onboarding/utils/geometry/viewport/viewport.d.ts +14 -0
- package/node/components/Onboarding/utils/geometry/viewport/viewport.js +14 -0
- package/node/components/Onboarding/utils/getScrollParents/getScrollParents.d.ts +7 -0
- package/node/components/Onboarding/utils/getScrollParents/getScrollParents.js +28 -0
- package/node/components/Onboarding/utils/getScrollParents/index.d.ts +1 -0
- package/node/components/Onboarding/utils/getScrollParents/index.js +5 -0
- package/node/components/Onboarding/utils/getTargetElement/getTargetElement.d.ts +4 -0
- package/node/components/Onboarding/utils/getTargetElement/getTargetElement.js +13 -0
- package/node/components/Onboarding/utils/getTargetElement/index.d.ts +1 -0
- package/node/components/Onboarding/utils/getTargetElement/index.js +5 -0
- package/node/components/Onboarding/utils/observeRemoval/index.d.ts +1 -0
- package/node/components/Onboarding/utils/observeRemoval/index.js +17 -0
- package/node/components/Onboarding/utils/observeRemoval/observeRemoval.d.ts +4 -0
- package/node/components/Onboarding/utils/observeRemoval/observeRemoval.js +17 -0
- package/node/components/Onboarding/utils/scrollIntoView/index.d.ts +1 -0
- package/node/components/Onboarding/utils/scrollIntoView/index.js +5 -0
- package/node/components/Onboarding/utils/scrollIntoView/scrollIntoView.d.ts +13 -0
- package/node/components/Onboarding/utils/scrollIntoView/scrollIntoView.js +89 -0
- package/node/components/Onboarding/utils/waitForElement/index.d.ts +2 -0
- package/node/components/Onboarding/utils/waitForElement/index.js +5 -0
- package/node/components/Onboarding/utils/waitForElement/waitForElement.d.ts +21 -0
- package/node/components/Onboarding/utils/waitForElement/waitForElement.js +49 -0
- package/node/components/Onboarding/validation/index.d.ts +1 -0
- package/node/components/Onboarding/validation/index.js +6 -0
- package/node/components/Onboarding/validation/validateTourConfig/index.d.ts +1 -0
- package/node/components/Onboarding/validation/validateTourConfig/index.js +6 -0
- package/node/components/Onboarding/validation/validateTourConfig/validateTourConfig.d.ts +12 -0
- package/node/components/Onboarding/validation/validateTourConfig/validateTourConfig.js +80 -0
- package/node/services/Logger/Logger.d.ts +45 -0
- package/node/services/Logger/Logger.js +72 -0
- package/node/services/Logger/index.d.ts +10 -0
- package/node/services/Logger/index.js +17 -0
- package/package.json +3 -2
- package/services/Logger/Logger.d.ts +45 -0
- package/services/Logger/Logger.js +68 -0
- package/services/Logger/index.d.ts +10 -0
- package/services/Logger/index.js +12 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type DialogSize } from '../../Dialog';
|
|
3
|
+
import { type TOUR_ID_ATTR } from '../constants';
|
|
4
|
+
/**
|
|
5
|
+
* Содержимое шага.
|
|
6
|
+
*/
|
|
7
|
+
export type StepContent = ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Рантайм-переопределение содержимого шага.
|
|
10
|
+
*/
|
|
11
|
+
export type StepOverride = {
|
|
12
|
+
title?: StepContent;
|
|
13
|
+
content?: StepContent;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Тип шага:
|
|
17
|
+
* - `standalone` — самостоятельная модалка по центру экрана;
|
|
18
|
+
* - `highlight` — подсветка элемента UI рядом с popover.
|
|
19
|
+
*/
|
|
20
|
+
export type StepType = 'highlight' | 'standalone';
|
|
21
|
+
/**
|
|
22
|
+
* Желаемая позиция popover относительно подсвечиваемого элемента.
|
|
23
|
+
*/
|
|
24
|
+
export type StepPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
25
|
+
/**
|
|
26
|
+
* Описание одного шага тура.
|
|
27
|
+
*/
|
|
28
|
+
export type Step = {
|
|
29
|
+
/**
|
|
30
|
+
* Уникальное в рамках тура имя шага.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Заголовок шага.
|
|
35
|
+
*/
|
|
36
|
+
title?: StepContent;
|
|
37
|
+
/**
|
|
38
|
+
* Содержимое шага.
|
|
39
|
+
*/
|
|
40
|
+
content?: StepContent;
|
|
41
|
+
/**
|
|
42
|
+
* Тип шага:
|
|
43
|
+
* - `standalone` — самостоятельная модалка по центру экрана;
|
|
44
|
+
* - `highlight` — подсветка элемента UI рядом с popover.
|
|
45
|
+
*/
|
|
46
|
+
type: StepType;
|
|
47
|
+
/**
|
|
48
|
+
* Желаемая позиция popover (только для highlight).
|
|
49
|
+
* @default 'bottom'
|
|
50
|
+
*/
|
|
51
|
+
position?: StepPosition;
|
|
52
|
+
/**
|
|
53
|
+
* Отступ подсветки вокруг выделяемого элемента.
|
|
54
|
+
* @default '8px'
|
|
55
|
+
* @example '4px'
|
|
56
|
+
*/
|
|
57
|
+
highlightOffset?: `${number}px`;
|
|
58
|
+
/**
|
|
59
|
+
* Можно ли кликать по подсвечиваемому элементу во время тура.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
isInteractive?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Показывать ли кнопку перехода вперёд.
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
67
|
+
isNextButtonVisible?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Показывать ли кнопку перехода назад.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
isPrevButtonVisible?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Обратный вызов перед переходом к следующему шагу.
|
|
75
|
+
*/
|
|
76
|
+
onNextClick?: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Обратный вызов перед переходом к предыдущему шагу.
|
|
79
|
+
*/
|
|
80
|
+
onPrevClick?: () => void;
|
|
81
|
+
/**
|
|
82
|
+
* Пропускать шаг при навигации.
|
|
83
|
+
*/
|
|
84
|
+
shouldSkip?: boolean | (() => boolean);
|
|
85
|
+
/**
|
|
86
|
+
* При переходе на этот шаг тур встаёт в ожидание и НЕ отрисовывает шаг, пока не
|
|
87
|
+
* будет вызван `tour.resume()`.
|
|
88
|
+
*/
|
|
89
|
+
waitForResume?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Размер диалога для standalone-шага. Для highlight-шага игнорируется.
|
|
92
|
+
* @default 'xs'
|
|
93
|
+
*/
|
|
94
|
+
dialogSize?: DialogSize;
|
|
95
|
+
/**
|
|
96
|
+
* Сколько миллисекунд тур ждёт появления элемента highlight-шага в DOM.
|
|
97
|
+
*
|
|
98
|
+
* По умолчанию (`0`) элемент ищется сразу; если его нет — срабатывает `onError`.
|
|
99
|
+
* Задавайте, только когда элемент появляется сам (анимация, поздняя отрисовка).
|
|
100
|
+
* Если появление зависит от действия пользователя или загрузки данных —
|
|
101
|
+
* используйте `waitForResume`, а не тайм-аут: подобранное вручную значение
|
|
102
|
+
* сработает у вас, но на более медленном устройстве или соединении пользователя
|
|
103
|
+
* тур может не дождаться элемента.
|
|
104
|
+
* @default 0
|
|
105
|
+
*/
|
|
106
|
+
waitForTimeout?: number;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Шаг с уже применёнными значениями по умолчанию.
|
|
110
|
+
*/
|
|
111
|
+
export type ResolvedStep = Step & {
|
|
112
|
+
isNextButtonVisible: boolean;
|
|
113
|
+
isPrevButtonVisible: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Итоговая позиция popover: значение по умолчанию -`'bottom'`.
|
|
116
|
+
*/
|
|
117
|
+
position: StepPosition;
|
|
118
|
+
/**
|
|
119
|
+
* Итоговый размер диалога standalone-шага: значение по умолчанию `'xs'`.
|
|
120
|
+
*/
|
|
121
|
+
dialogSize: DialogSize;
|
|
122
|
+
/**
|
|
123
|
+
* Итоговый тайм-аут ожидания элемента (мс)`
|
|
124
|
+
*/
|
|
125
|
+
waitForTimeout: number;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Объект управления шагом, возвращаемый через `tour.steps[stepName]/tour.steps.stepName`.
|
|
129
|
+
*/
|
|
130
|
+
export type StepHandle = {
|
|
131
|
+
/**
|
|
132
|
+
* Параметры (атрибут `data-tour-id`) для передачи в подсвечиваемый элемент.
|
|
133
|
+
* @example <button {...tour.steps.save.getHighlightProps()} />
|
|
134
|
+
*/
|
|
135
|
+
getHighlightProps: () => Record<typeof TOUR_ID_ATTR, string>;
|
|
136
|
+
setTitle: (title: StepContent) => void;
|
|
137
|
+
setContent: (content: StepContent) => void;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Карта объектов управления шагами по их литеральным именам — типобезопасный `tour.steps`.
|
|
141
|
+
*/
|
|
142
|
+
export type StepHandles<TSteps extends readonly Step[]> = {
|
|
143
|
+
[TName in TSteps[number]['name']]: StepHandle;
|
|
144
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { type ResolvedStep, type Step } from './step';
|
|
2
|
+
/**
|
|
3
|
+
* Конфигурация тура.
|
|
4
|
+
*/
|
|
5
|
+
export type OnboardingTourConfig<TSteps extends readonly Step[]> = {
|
|
6
|
+
/**
|
|
7
|
+
* Имя тура.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Шаги тура.
|
|
12
|
+
*/
|
|
13
|
+
steps: TSteps;
|
|
14
|
+
/**
|
|
15
|
+
* Можно ли кликать по подсвечиваемым элементам во время тура.
|
|
16
|
+
* Значение задаётся для всех шагов тура.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
isInteractive?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Показывать точки прогресса. Если видимых шагов больше 6 — точки не
|
|
22
|
+
* отображаются никогда, даже при `true`.
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
isDotsVisible?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Показывать счётчик прогресса `n / total`.
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
isCounterVisible?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Тексты диалога подтверждения выхода.
|
|
33
|
+
*/
|
|
34
|
+
confirmExit?: ConfirmExitConfig;
|
|
35
|
+
/**
|
|
36
|
+
* Настройки кнопок навигации внизу шага.
|
|
37
|
+
*/
|
|
38
|
+
buttons?: OnboardingButtons;
|
|
39
|
+
/**
|
|
40
|
+
* Общий тайм-аут ожидания элементов highlight-шагов в DOM (мс).
|
|
41
|
+
* Переопределяется на уровне шага через `step.waitForTimeout`.
|
|
42
|
+
*
|
|
43
|
+
* По умолчанию (`0`) элементы ищутся синхронно, без ожидания.
|
|
44
|
+
* @default 0
|
|
45
|
+
*/
|
|
46
|
+
waitForTimeout?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Обработчик ошибок тура.
|
|
49
|
+
*/
|
|
50
|
+
onError?: (error: Error) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Обработчик закрытия тура, с причиной.
|
|
53
|
+
*/
|
|
54
|
+
onClose?: (reason: OnboardingCloseReason) => void;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Причина, по которой тур ушёл с экрана.
|
|
58
|
+
* - `completed` — пройден до конца;
|
|
59
|
+
* - `dismissed` — пользователь прервал с подтверждением;
|
|
60
|
+
* - `closed` — программное закрытие или авто-закрытие из-за ошибки рендера шага.
|
|
61
|
+
*/
|
|
62
|
+
export type OnboardingCloseReason = 'completed' | 'dismissed' | 'closed';
|
|
63
|
+
/**
|
|
64
|
+
* Настройка для диалога подтверждения выхода.
|
|
65
|
+
*/
|
|
66
|
+
export type ConfirmExitConfig = {
|
|
67
|
+
title?: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
confirmText?: string;
|
|
70
|
+
cancelText?: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Вариант кнопки завершения на последнем шаге тура.
|
|
74
|
+
*/
|
|
75
|
+
export type OnboardingFinishButtonVariant = 'contained' | 'text';
|
|
76
|
+
/**
|
|
77
|
+
* Настройки кнопок навигации внизу шага.
|
|
78
|
+
*/
|
|
79
|
+
export type OnboardingButtons = {
|
|
80
|
+
/**
|
|
81
|
+
* Текст кнопки «назад».
|
|
82
|
+
* @default 'Назад'
|
|
83
|
+
*/
|
|
84
|
+
prevLabel?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Текст кнопки «вперёд».
|
|
87
|
+
* @default 'Далее'
|
|
88
|
+
*/
|
|
89
|
+
nextLabel?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Текст кнопки завершения на последнем шаге.
|
|
92
|
+
* @default 'Закрыть'
|
|
93
|
+
*/
|
|
94
|
+
finishLabel?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Вариант кнопки завершения на последнем шаге.
|
|
97
|
+
* @default 'contained'
|
|
98
|
+
*/
|
|
99
|
+
finishVariant?: OnboardingFinishButtonVariant;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Презентационная конфигурация тура — статична на весь тур (не зависит от
|
|
103
|
+
* активного шага), значения по умолчанию уже применены в `StepResolver`. Вынесена из
|
|
104
|
+
* пошагового состояния, чтобы не дублировать проброс одних и тех же полей
|
|
105
|
+
* на каждом шаге.
|
|
106
|
+
*/
|
|
107
|
+
export type TourPresentation = {
|
|
108
|
+
/**
|
|
109
|
+
* Показывать точки прогресса (скрываются если шагов > 6, даже при `true`).
|
|
110
|
+
*/
|
|
111
|
+
isDotsVisible: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Показывать счётчик прогресса `n / total`.
|
|
114
|
+
*/
|
|
115
|
+
isCounterVisible: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Тексты диалога подтверждения выхода.
|
|
118
|
+
*/
|
|
119
|
+
confirmExit: ConfirmExitConfig;
|
|
120
|
+
/**
|
|
121
|
+
* Настройки кнопок навигации
|
|
122
|
+
*/
|
|
123
|
+
buttons: Required<OnboardingButtons>;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Состояние активного шага.
|
|
127
|
+
*/
|
|
128
|
+
export type ActiveStepState = TourPresentation & {
|
|
129
|
+
tourName: string;
|
|
130
|
+
step: ResolvedStep;
|
|
131
|
+
/**
|
|
132
|
+
* Позиция активного шага среди видимых шагов, с нуля.
|
|
133
|
+
*/
|
|
134
|
+
position: number;
|
|
135
|
+
/**
|
|
136
|
+
* Число видимых шагов = число точек индикатора прогресса.
|
|
137
|
+
*/
|
|
138
|
+
total: number;
|
|
139
|
+
hasNext: boolean;
|
|
140
|
+
hasPrev: boolean;
|
|
141
|
+
isInteractive: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Идёт ли сейчас запроса подтверждения выхода (показан ConfirmExit).
|
|
144
|
+
*/
|
|
145
|
+
isConfirming: boolean;
|
|
146
|
+
onNext: () => void;
|
|
147
|
+
onPrev: () => void;
|
|
148
|
+
/**
|
|
149
|
+
* Переход к шагу по его позиции среди видимых шагов.
|
|
150
|
+
*/
|
|
151
|
+
onSelectStep: (position: number) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Единая точка выхода
|
|
154
|
+
*/
|
|
155
|
+
requestClose: () => void;
|
|
156
|
+
/**
|
|
157
|
+
* Вызывается диалогом ConfirmExit при подтверждении выхода.
|
|
158
|
+
*/
|
|
159
|
+
onConfirmExit: () => void;
|
|
160
|
+
/**
|
|
161
|
+
* Вызывается диалогом ConfirmExit при отмене выхода.
|
|
162
|
+
*/
|
|
163
|
+
onCancelExit: () => void;
|
|
164
|
+
/**
|
|
165
|
+
* Обработчик ошибок тура.
|
|
166
|
+
*/
|
|
167
|
+
onError: (error: Error) => void;
|
|
168
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ConfirmExitProps = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onConfirm: () => void;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ConfirmExit: ({ open, onConfirm, onCancel, title, description, confirmText, cancelText, }: ConfirmExitProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ConfirmExitDialog } from './styles';
|
|
3
|
+
export const ConfirmExit = ({ open, onConfirm, onCancel, title = 'Выйти из обучения?', description = 'Вы сможете пройти его заново в любой момент', confirmText = 'Выйти', cancelText = 'Продолжить', }) => (_jsx(ConfirmExitDialog, { open: open, title: title, description: description, onClose: onCancel, actions: {
|
|
4
|
+
confirm: { text: confirmText, variant: 'text', onClick: onConfirm },
|
|
5
|
+
cancel: { text: cancelText, variant: 'contained' },
|
|
6
|
+
} }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConfirmExit } from './ConfirmExit';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ConfirmExitDialog: import("../../../styled").StyledComponent<{
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
description?: import("react").ReactNode;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
actions: {
|
|
7
|
+
confirm: Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
8
|
+
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
9
|
+
loading?: boolean | undefined;
|
|
10
|
+
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
11
|
+
component?: import("react").ElementType | undefined;
|
|
12
|
+
selected?: boolean | undefined;
|
|
13
|
+
size?: "large" | "medium" | undefined;
|
|
14
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & {
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
cancel?: (Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
18
|
+
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
19
|
+
loading?: boolean | undefined;
|
|
20
|
+
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
21
|
+
component?: import("react").ElementType | undefined;
|
|
22
|
+
selected?: boolean | undefined;
|
|
23
|
+
size?: "large" | "medium" | undefined;
|
|
24
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & {
|
|
25
|
+
text: string;
|
|
26
|
+
}) | undefined;
|
|
27
|
+
};
|
|
28
|
+
} & Pick<import("../../..").DialogProps, "className" | "aria-describedby" | "aria-labelledby" | "open" | "size" | "disablePortal" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "disableBackdropClick"> & {
|
|
29
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConfirmDialog } from '../../../ConfirmDialog';
|
|
2
|
+
import { confirmDialogClassnames } from '../../../ConfirmDialog/constants';
|
|
3
|
+
import { styled } from '../../../styled';
|
|
4
|
+
import { onboardingModalSurface } from '../styles';
|
|
5
|
+
export const ConfirmExitDialog = styled(ConfirmDialog) `
|
|
6
|
+
${({ theme }) => onboardingModalSurface(theme)};
|
|
7
|
+
|
|
8
|
+
.${confirmDialogClassnames.confirmButton} {
|
|
9
|
+
order: -1;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Onboarding } from '../../Onboarding';
|
|
2
|
+
export type OnboardingContainerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Экземпляр онбординга, созданный через `createOnboarding`. Контейнер
|
|
5
|
+
* показывает туры только этого экземпляра.
|
|
6
|
+
*/
|
|
7
|
+
onboarding: Onboarding;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Контейнер онбординга.
|
|
11
|
+
*/
|
|
12
|
+
export declare const OnboardingContainer: ({ onboarding, }: OnboardingContainerProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ConfirmExit } from '../ConfirmExit';
|
|
3
|
+
import { StepStrategy } from '../StepStrategy';
|
|
4
|
+
import { OnboardingErrorBoundary } from './OnboardingErrorBoundary';
|
|
5
|
+
import { useLogic } from './useLogic';
|
|
6
|
+
/**
|
|
7
|
+
* Контейнер онбординга.
|
|
8
|
+
*/
|
|
9
|
+
export const OnboardingContainer = ({ onboarding, }) => {
|
|
10
|
+
const { activeStep, isClosing } = useLogic(onboarding);
|
|
11
|
+
if (!activeStep) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
return (_jsxs(OnboardingErrorBoundary, { onError: activeStep.onError, children: [_jsx(StepStrategy, { activeStep: activeStep, isClosing: isClosing }), _jsx(ConfirmExit, { open: activeStep.isConfirming && !isClosing, onConfirm: activeStep.onConfirmExit, onCancel: activeStep.onCancelExit, ...activeStep.confirmExit })] }));
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component, type ReactNode } from 'react';
|
|
2
|
+
export type OnboardingErrorBoundaryProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Вызывается при перехвате ошибки render активного шага.
|
|
5
|
+
*/
|
|
6
|
+
onError: (error: Error) => void;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
type State = {
|
|
10
|
+
hasError: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* ErrorBoundary онбординга: при ошибке закрывает тур и вызывает `onError`
|
|
14
|
+
* (не использует глобальный UIKit-boundary,т.к у него другой контракт).
|
|
15
|
+
*/
|
|
16
|
+
export declare class OnboardingErrorBoundary extends Component<OnboardingErrorBoundaryProps, State> {
|
|
17
|
+
state: State;
|
|
18
|
+
static getDerivedStateFromError(): State;
|
|
19
|
+
componentDidCatch(error: Error): void;
|
|
20
|
+
render(): ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ErrorBoundary онбординга: при ошибке закрывает тур и вызывает `onError`
|
|
4
|
+
* (не использует глобальный UIKit-boundary,т.к у него другой контракт).
|
|
5
|
+
*/
|
|
6
|
+
export class OnboardingErrorBoundary extends Component {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.state = { hasError: false };
|
|
10
|
+
}
|
|
11
|
+
static getDerivedStateFromError() {
|
|
12
|
+
return { hasError: true };
|
|
13
|
+
}
|
|
14
|
+
componentDidCatch(error) {
|
|
15
|
+
this.props.onError(error);
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return this.state.hasError ? null : this.props.children;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OnboardingErrorBoundary } from './OnboardingErrorBoundary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OnboardingContainer, type OnboardingContainerProps, } from './OnboardingContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OnboardingContainer, } from './OnboardingContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useLogic } from './useLogic';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useLogic } from './useLogic';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Onboarding } from '../../../Onboarding';
|
|
2
|
+
import { type ActiveStepState } from '../../../types';
|
|
3
|
+
export type UseLogicResult = {
|
|
4
|
+
activeStep: ActiveStepState | null;
|
|
5
|
+
isClosing: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Логика контейнера: читает шаг из store, держит его при закрытии для анимации.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useLogic: (onboarding: Onboarding) => UseLogicResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useTheme } from '../../../../theme/hooks/useTheme';
|
|
2
|
+
import { useActiveStep } from '../../hooks/useActiveStep';
|
|
3
|
+
import { useDelayedActiveStep } from '../../hooks/useDelayedActiveStep';
|
|
4
|
+
import { useKeyboardNav } from '../../hooks/useKeyboardNav';
|
|
5
|
+
/**
|
|
6
|
+
* Логика контейнера: читает шаг из store, держит его при закрытии для анимации.
|
|
7
|
+
*/
|
|
8
|
+
export const useLogic = (onboarding) => {
|
|
9
|
+
const theme = useTheme();
|
|
10
|
+
const currentStep = useActiveStep(onboarding.activeStepStore);
|
|
11
|
+
const { active: activeStep, isClosing } = useDelayedActiveStep(currentStep, theme.transitions.duration.enteringScreen);
|
|
12
|
+
useKeyboardNav(currentStep);
|
|
13
|
+
return { activeStep, isClosing };
|
|
14
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type Rect } from '../../utils/geometry';
|
|
3
|
+
export type OverlayProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Hole (null для сплошного затемнения).
|
|
6
|
+
*/
|
|
7
|
+
hole: Rect | null;
|
|
8
|
+
/**
|
|
9
|
+
* Проходят ли клики сквозь overlay
|
|
10
|
+
*/
|
|
11
|
+
isInteractive?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Показан ли overlay.
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
isVisible?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Идёт переезд hole на новую цель.
|
|
19
|
+
*/
|
|
20
|
+
isHoleMoving?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Клик по overlay.
|
|
23
|
+
*/
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* SVG-overlay с hole и порталом в document.body.
|
|
28
|
+
*/
|
|
29
|
+
export declare const Overlay: ({ hole, isInteractive, isVisible, isHoleMoving, onClose, }: OverlayProps) => import("react").ReactPortal;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import { cva } from '../../../utils/cva';
|
|
4
|
+
import { DEFAULT_HIGHLIGHT_RADIUS } from '../../constants';
|
|
5
|
+
import { overlayClassnames } from './constants';
|
|
6
|
+
import { Backdrop, HoleBlocker, OverlayRoot } from './styles';
|
|
7
|
+
import { useLogic } from './useLogic';
|
|
8
|
+
const rootCva = cva(overlayClassnames.root, {
|
|
9
|
+
variants: {
|
|
10
|
+
isHidden: {
|
|
11
|
+
true: overlayClassnames.hidden,
|
|
12
|
+
},
|
|
13
|
+
isHoleMoving: {
|
|
14
|
+
true: overlayClassnames.holeMoving,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* SVG-overlay с hole и порталом в document.body.
|
|
20
|
+
*/
|
|
21
|
+
export const Overlay = ({ hole, isInteractive, isVisible = true, isHoleMoving = false, onClose, }) => {
|
|
22
|
+
const { viewport, clampedHole, path } = useLogic(hole);
|
|
23
|
+
return createPortal(_jsxs(OverlayRoot, { viewBox: `0 0 ${viewport.width} ${viewport.height}`, preserveAspectRatio: "none", className: rootCva({ isHidden: !isVisible, isHoleMoving }), children: [_jsx(Backdrop, { d: path, fillRule: "evenodd", onClick: onClose, className: overlayClassnames.backdrop }), !isInteractive && clampedHole && (_jsx(HoleBlocker, { x: clampedHole.x, y: clampedHole.y, width: clampedHole.width, height: clampedHole.height, rx: DEFAULT_HIGHLIGHT_RADIUS, className: overlayClassnames.holeBlocker }))] }), document.body);
|
|
24
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createUIKitClassname } from '../../../utils/createUIKitClassname';
|
|
2
|
+
export const overlayClassnames = {
|
|
3
|
+
root: createUIKitClassname('onboarding-overlay'),
|
|
4
|
+
hidden: createUIKitClassname('onboarding-overlay_hidden'),
|
|
5
|
+
holeMoving: createUIKitClassname('onboarding-overlay_hole-moving'),
|
|
6
|
+
backdrop: createUIKitClassname('onboarding-overlay__backdrop'),
|
|
7
|
+
holeBlocker: createUIKitClassname('onboarding-overlay__hole-blocker'),
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Overlay } from './Overlay';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Контейнер overlay с затуханием при открытии/закрытии.
|
|
4
|
+
*/
|
|
5
|
+
export declare const OverlayRoot: import("../../../styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
+
}, import("react").SVGProps<SVGSVGElement>, {}>;
|
|
9
|
+
/**
|
|
10
|
+
* Затемненная часть с hole, перехватывает клики.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Backdrop: import("../../../styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
+
}, import("react").SVGProps<SVGPathElement>, {}>;
|
|
16
|
+
/**
|
|
17
|
+
* Блокатор кликов для неинтерактивных шагов.
|
|
18
|
+
*/
|
|
19
|
+
export declare const HoleBlocker: import("../../../styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
|
+
}, import("react").SVGProps<SVGRectElement>, {}>;
|