@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.
Files changed (477) hide show
  1. package/_mocks/LoggerMock/LoggerMock.d.ts +16 -0
  2. package/_mocks/LoggerMock/LoggerMock.js +18 -0
  3. package/_mocks/LoggerMock/index.d.ts +1 -0
  4. package/_mocks/LoggerMock/index.js +1 -0
  5. package/components/ConfigProvider/ConfigProvider.d.ts +7 -1
  6. package/components/ConfigProvider/ConfigProvider.js +14 -8
  7. package/components/ConfirmDialog/ConfirmDialog.js +3 -1
  8. package/components/ConfirmDialog/constants.d.ts +4 -0
  9. package/components/ConfirmDialog/constants.js +5 -0
  10. package/components/ConfirmDialog/index.d.ts +1 -0
  11. package/components/ConfirmDialog/index.js +1 -0
  12. package/components/ConfirmDialog/public.d.ts +1 -0
  13. package/components/ConfirmDialog/public.js +1 -0
  14. package/components/ConfirmDialog/types.d.ts +1 -1
  15. package/components/DashboardLayout/Header/useLogic/useLogic.d.ts +1 -1
  16. package/components/NewPopover/NewPopover.d.ts +1 -1
  17. package/components/NewPopover/NewPopover.js +14 -5
  18. package/components/NewPopover/constants.d.ts +7 -0
  19. package/components/NewPopover/constants.js +11 -0
  20. package/components/NewPopover/styles.d.ts +4 -0
  21. package/components/NewPopover/styles.js +100 -4
  22. package/components/NewPopover/types.d.ts +13 -0
  23. package/components/NewPopover/useLogic/useLogic.d.ts +7 -3
  24. package/components/NewPopover/useLogic/useLogic.js +15 -1
  25. package/components/Onboarding/Onboarding.d.ts +35 -0
  26. package/components/Onboarding/Onboarding.js +56 -0
  27. package/components/Onboarding/constants.d.ts +34 -0
  28. package/components/Onboarding/constants.js +34 -0
  29. package/components/Onboarding/core/ActiveStepStore/ActiveStepStore.d.ts +50 -0
  30. package/components/Onboarding/core/ActiveStepStore/ActiveStepStore.js +63 -0
  31. package/components/Onboarding/core/ActiveStepStore/index.d.ts +1 -0
  32. package/components/Onboarding/core/ActiveStepStore/index.js +1 -0
  33. package/components/Onboarding/core/ExitController/ExitController.d.ts +48 -0
  34. package/components/Onboarding/core/ExitController/ExitController.js +59 -0
  35. package/components/Onboarding/core/ExitController/index.d.ts +1 -0
  36. package/components/Onboarding/core/ExitController/index.js +1 -0
  37. package/components/Onboarding/core/OnboardingTour/OnboardingTour.d.ts +103 -0
  38. package/components/Onboarding/core/OnboardingTour/OnboardingTour.js +283 -0
  39. package/components/Onboarding/core/OnboardingTour/index.d.ts +1 -0
  40. package/components/Onboarding/core/OnboardingTour/index.js +1 -0
  41. package/components/Onboarding/core/ProgressStorage/ProgressStorage.d.ts +24 -0
  42. package/components/Onboarding/core/ProgressStorage/ProgressStorage.js +62 -0
  43. package/components/Onboarding/core/ProgressStorage/index.d.ts +1 -0
  44. package/components/Onboarding/core/ProgressStorage/index.js +1 -0
  45. package/components/Onboarding/core/StepNavigator/StepNavigator.d.ts +28 -0
  46. package/components/Onboarding/core/StepNavigator/StepNavigator.js +73 -0
  47. package/components/Onboarding/core/StepNavigator/index.d.ts +1 -0
  48. package/components/Onboarding/core/StepNavigator/index.js +1 -0
  49. package/components/Onboarding/core/StepResolver/StepResolver.d.ts +19 -0
  50. package/components/Onboarding/core/StepResolver/StepResolver.js +49 -0
  51. package/components/Onboarding/core/StepResolver/index.d.ts +1 -0
  52. package/components/Onboarding/core/StepResolver/index.js +1 -0
  53. package/components/Onboarding/core/StepsController/StepsController.d.ts +16 -0
  54. package/components/Onboarding/core/StepsController/StepsController.js +35 -0
  55. package/components/Onboarding/core/StepsController/index.d.ts +1 -0
  56. package/components/Onboarding/core/StepsController/index.js +1 -0
  57. package/components/Onboarding/faker.d.ts +27 -0
  58. package/components/Onboarding/faker.js +79 -0
  59. package/components/Onboarding/index.d.ts +5 -0
  60. package/components/Onboarding/index.js +3 -0
  61. package/components/Onboarding/public.d.ts +5 -0
  62. package/components/Onboarding/public.js +3 -0
  63. package/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.d.ts +20 -0
  64. package/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.js +24 -0
  65. package/components/Onboarding/services/LocalStorageSaveStrategy/index.d.ts +1 -0
  66. package/components/Onboarding/services/LocalStorageSaveStrategy/index.js +1 -0
  67. package/components/Onboarding/types/config.d.ts +18 -0
  68. package/components/Onboarding/types/config.js +1 -0
  69. package/components/Onboarding/types/index.d.ts +4 -0
  70. package/components/Onboarding/types/index.js +4 -0
  71. package/components/Onboarding/types/progress.d.ts +28 -0
  72. package/components/Onboarding/types/progress.js +1 -0
  73. package/components/Onboarding/types/step.d.ts +144 -0
  74. package/components/Onboarding/types/step.js +1 -0
  75. package/components/Onboarding/types/tour.d.ts +168 -0
  76. package/components/Onboarding/types/tour.js +1 -0
  77. package/components/Onboarding/ui/ConfirmExit/ConfirmExit.d.ts +10 -0
  78. package/components/Onboarding/ui/ConfirmExit/ConfirmExit.js +6 -0
  79. package/components/Onboarding/ui/ConfirmExit/index.d.ts +2 -0
  80. package/components/Onboarding/ui/ConfirmExit/index.js +1 -0
  81. package/components/Onboarding/ui/ConfirmExit/styles.d.ts +30 -0
  82. package/components/Onboarding/ui/ConfirmExit/styles.js +11 -0
  83. package/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.d.ts +12 -0
  84. package/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.js +15 -0
  85. package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.d.ts +22 -0
  86. package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.js +20 -0
  87. package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.d.ts +2 -0
  88. package/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.js +1 -0
  89. package/components/Onboarding/ui/OnboardingContainer/index.d.ts +1 -0
  90. package/components/Onboarding/ui/OnboardingContainer/index.js +1 -0
  91. package/components/Onboarding/ui/OnboardingContainer/useLogic/index.d.ts +1 -0
  92. package/components/Onboarding/ui/OnboardingContainer/useLogic/index.js +1 -0
  93. package/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.d.ts +10 -0
  94. package/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.js +14 -0
  95. package/components/Onboarding/ui/Overlay/Overlay.d.ts +29 -0
  96. package/components/Onboarding/ui/Overlay/Overlay.js +24 -0
  97. package/components/Onboarding/ui/Overlay/constants.d.ts +7 -0
  98. package/components/Onboarding/ui/Overlay/constants.js +8 -0
  99. package/components/Onboarding/ui/Overlay/index.d.ts +2 -0
  100. package/components/Onboarding/ui/Overlay/index.js +1 -0
  101. package/components/Onboarding/ui/Overlay/styles.d.ts +22 -0
  102. package/components/Onboarding/ui/Overlay/styles.js +57 -0
  103. package/components/Onboarding/ui/Overlay/useLogic/index.d.ts +1 -0
  104. package/components/Onboarding/ui/Overlay/useLogic/index.js +1 -0
  105. package/components/Onboarding/ui/Overlay/useLogic/useLogic.d.ts +13 -0
  106. package/components/Onboarding/ui/Overlay/useLogic/useLogic.js +10 -0
  107. package/components/Onboarding/ui/StepStrategy/StepStrategy.d.ts +6 -0
  108. package/components/Onboarding/ui/StepStrategy/StepStrategy.js +17 -0
  109. package/components/Onboarding/ui/StepStrategy/index.d.ts +1 -0
  110. package/components/Onboarding/ui/StepStrategy/index.js +1 -0
  111. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.d.ts +6 -0
  112. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.js +19 -0
  113. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.d.ts +2 -0
  114. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.js +1 -0
  115. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +25 -0
  116. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.js +56 -0
  117. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.d.ts +1 -0
  118. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.js +1 -0
  119. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.d.ts +12 -0
  120. package/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.js +37 -0
  121. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.d.ts +6 -0
  122. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +11 -0
  123. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.d.ts +2 -0
  124. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.js +1 -0
  125. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +13 -0
  126. package/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.js +9 -0
  127. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.d.ts +6 -0
  128. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.js +15 -0
  129. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.d.ts +4 -0
  130. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.js +5 -0
  131. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.d.ts +2 -0
  132. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.js +1 -0
  133. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.d.ts +9 -0
  134. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.js +34 -0
  135. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.d.ts +9 -0
  136. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.js +18 -0
  137. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.d.ts +4 -0
  138. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.js +4 -0
  139. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.d.ts +2 -0
  140. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.js +1 -0
  141. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.d.ts +21 -0
  142. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.js +28 -0
  143. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.d.ts +1 -0
  144. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.js +1 -0
  145. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.d.ts +16 -0
  146. package/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.js +22 -0
  147. package/components/Onboarding/ui/StepStrategy/steps/types.d.ts +16 -0
  148. package/components/Onboarding/ui/StepStrategy/steps/types.js +1 -0
  149. package/components/Onboarding/ui/StepStrategy/useLogic/index.d.ts +1 -0
  150. package/components/Onboarding/ui/StepStrategy/useLogic/index.js +1 -0
  151. package/components/Onboarding/ui/StepStrategy/useLogic/useLogic.d.ts +47 -0
  152. package/components/Onboarding/ui/StepStrategy/useLogic/useLogic.js +51 -0
  153. package/components/Onboarding/ui/hooks/useActiveStep/index.d.ts +1 -0
  154. package/components/Onboarding/ui/hooks/useActiveStep/index.js +1 -0
  155. package/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.d.ts +6 -0
  156. package/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.js +7 -0
  157. package/components/Onboarding/ui/hooks/useDelayedActiveStep/index.d.ts +1 -0
  158. package/components/Onboarding/ui/hooks/useDelayedActiveStep/index.js +1 -0
  159. package/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.d.ts +15 -0
  160. package/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.js +19 -0
  161. package/components/Onboarding/ui/hooks/useFocusTrap/index.d.ts +1 -0
  162. package/components/Onboarding/ui/hooks/useFocusTrap/index.js +1 -0
  163. package/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.d.ts +6 -0
  164. package/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.js +33 -0
  165. package/components/Onboarding/ui/hooks/useKeyboardNav/index.d.ts +1 -0
  166. package/components/Onboarding/ui/hooks/useKeyboardNav/index.js +1 -0
  167. package/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.d.ts +11 -0
  168. package/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.js +62 -0
  169. package/components/Onboarding/ui/hooks/useStepTransition/index.d.ts +1 -0
  170. package/components/Onboarding/ui/hooks/useStepTransition/index.js +1 -0
  171. package/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.d.ts +30 -0
  172. package/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.js +46 -0
  173. package/components/Onboarding/ui/hooks/useTargetAnchor/index.d.ts +1 -0
  174. package/components/Onboarding/ui/hooks/useTargetAnchor/index.js +1 -0
  175. package/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.d.ts +37 -0
  176. package/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.js +56 -0
  177. package/components/Onboarding/ui/hooks/useTrackedRect/index.d.ts +1 -0
  178. package/components/Onboarding/ui/hooks/useTrackedRect/index.js +1 -0
  179. package/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.d.ts +5 -0
  180. package/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +43 -0
  181. package/components/Onboarding/ui/hooks/useViewportSize/index.d.ts +1 -0
  182. package/components/Onboarding/ui/hooks/useViewportSize/index.js +1 -0
  183. package/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.d.ts +5 -0
  184. package/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.js +14 -0
  185. package/components/Onboarding/ui/styles.d.ts +5 -0
  186. package/components/Onboarding/ui/styles.js +15 -0
  187. package/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.d.ts +12 -0
  188. package/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.js +6 -0
  189. package/components/Onboarding/utils/createVirtualAnchor/index.d.ts +1 -0
  190. package/components/Onboarding/utils/createVirtualAnchor/index.js +1 -0
  191. package/components/Onboarding/utils/geometry/index.d.ts +4 -0
  192. package/components/Onboarding/utils/geometry/index.js +4 -0
  193. package/components/Onboarding/utils/geometry/overlayPath/index.d.ts +1 -0
  194. package/components/Onboarding/utils/geometry/overlayPath/index.js +1 -0
  195. package/components/Onboarding/utils/geometry/overlayPath/overlayPath.d.ts +6 -0
  196. package/components/Onboarding/utils/geometry/overlayPath/overlayPath.js +29 -0
  197. package/components/Onboarding/utils/geometry/parseOffset/index.d.ts +1 -0
  198. package/components/Onboarding/utils/geometry/parseOffset/index.js +1 -0
  199. package/components/Onboarding/utils/geometry/parseOffset/parseOffset.d.ts +4 -0
  200. package/components/Onboarding/utils/geometry/parseOffset/parseOffset.js +5 -0
  201. package/components/Onboarding/utils/geometry/rect/index.d.ts +2 -0
  202. package/components/Onboarding/utils/geometry/rect/index.js +1 -0
  203. package/components/Onboarding/utils/geometry/rect/rect.d.ts +34 -0
  204. package/components/Onboarding/utils/geometry/rect/rect.js +60 -0
  205. package/components/Onboarding/utils/geometry/viewport/index.d.ts +2 -0
  206. package/components/Onboarding/utils/geometry/viewport/index.js +1 -0
  207. package/components/Onboarding/utils/geometry/viewport/viewport.d.ts +14 -0
  208. package/components/Onboarding/utils/geometry/viewport/viewport.js +10 -0
  209. package/components/Onboarding/utils/getScrollParents/getScrollParents.d.ts +7 -0
  210. package/components/Onboarding/utils/getScrollParents/getScrollParents.js +24 -0
  211. package/components/Onboarding/utils/getScrollParents/index.d.ts +1 -0
  212. package/components/Onboarding/utils/getScrollParents/index.js +1 -0
  213. package/components/Onboarding/utils/getTargetElement/getTargetElement.d.ts +4 -0
  214. package/components/Onboarding/utils/getTargetElement/getTargetElement.js +9 -0
  215. package/components/Onboarding/utils/getTargetElement/index.d.ts +1 -0
  216. package/components/Onboarding/utils/getTargetElement/index.js +1 -0
  217. package/components/Onboarding/utils/observeRemoval/index.d.ts +1 -0
  218. package/components/Onboarding/utils/observeRemoval/index.js +1 -0
  219. package/components/Onboarding/utils/observeRemoval/observeRemoval.d.ts +4 -0
  220. package/components/Onboarding/utils/observeRemoval/observeRemoval.js +13 -0
  221. package/components/Onboarding/utils/scrollIntoView/index.d.ts +1 -0
  222. package/components/Onboarding/utils/scrollIntoView/index.js +1 -0
  223. package/components/Onboarding/utils/scrollIntoView/scrollIntoView.d.ts +13 -0
  224. package/components/Onboarding/utils/scrollIntoView/scrollIntoView.js +85 -0
  225. package/components/Onboarding/utils/waitForElement/index.d.ts +2 -0
  226. package/components/Onboarding/utils/waitForElement/index.js +1 -0
  227. package/components/Onboarding/utils/waitForElement/waitForElement.d.ts +21 -0
  228. package/components/Onboarding/utils/waitForElement/waitForElement.js +45 -0
  229. package/components/Onboarding/validation/index.d.ts +1 -0
  230. package/components/Onboarding/validation/index.js +1 -0
  231. package/components/Onboarding/validation/validateTourConfig/index.d.ts +1 -0
  232. package/components/Onboarding/validation/validateTourConfig/index.js +1 -0
  233. package/components/Onboarding/validation/validateTourConfig/validateTourConfig.d.ts +12 -0
  234. package/components/Onboarding/validation/validateTourConfig/validateTourConfig.js +52 -0
  235. package/node/_mocks/LoggerMock/LoggerMock.d.ts +16 -0
  236. package/node/_mocks/LoggerMock/LoggerMock.js +23 -0
  237. package/node/_mocks/LoggerMock/index.d.ts +1 -0
  238. package/node/_mocks/LoggerMock/index.js +17 -0
  239. package/node/components/ConfigProvider/ConfigProvider.d.ts +7 -1
  240. package/node/components/ConfigProvider/ConfigProvider.js +13 -7
  241. package/node/components/ConfirmDialog/ConfirmDialog.js +3 -1
  242. package/node/components/ConfirmDialog/constants.d.ts +4 -0
  243. package/node/components/ConfirmDialog/constants.js +8 -0
  244. package/node/components/ConfirmDialog/index.d.ts +1 -0
  245. package/node/components/ConfirmDialog/index.js +3 -0
  246. package/node/components/ConfirmDialog/public.d.ts +1 -0
  247. package/node/components/ConfirmDialog/public.js +3 -0
  248. package/node/components/ConfirmDialog/types.d.ts +1 -1
  249. package/node/components/DashboardLayout/Header/useLogic/useLogic.d.ts +1 -1
  250. package/node/components/NewPopover/NewPopover.d.ts +1 -1
  251. package/node/components/NewPopover/NewPopover.js +12 -3
  252. package/node/components/NewPopover/constants.d.ts +7 -0
  253. package/node/components/NewPopover/constants.js +12 -1
  254. package/node/components/NewPopover/styles.d.ts +4 -0
  255. package/node/components/NewPopover/styles.js +101 -5
  256. package/node/components/NewPopover/types.d.ts +13 -0
  257. package/node/components/NewPopover/useLogic/useLogic.d.ts +7 -3
  258. package/node/components/NewPopover/useLogic/useLogic.js +15 -1
  259. package/node/components/Onboarding/Onboarding.d.ts +35 -0
  260. package/node/components/Onboarding/Onboarding.js +61 -0
  261. package/node/components/Onboarding/constants.d.ts +34 -0
  262. package/node/components/Onboarding/constants.js +37 -0
  263. package/node/components/Onboarding/core/ActiveStepStore/ActiveStepStore.d.ts +50 -0
  264. package/node/components/Onboarding/core/ActiveStepStore/ActiveStepStore.js +67 -0
  265. package/node/components/Onboarding/core/ActiveStepStore/index.d.ts +1 -0
  266. package/node/components/Onboarding/core/ActiveStepStore/index.js +17 -0
  267. package/node/components/Onboarding/core/ExitController/ExitController.d.ts +48 -0
  268. package/node/components/Onboarding/core/ExitController/ExitController.js +63 -0
  269. package/node/components/Onboarding/core/ExitController/index.d.ts +1 -0
  270. package/node/components/Onboarding/core/ExitController/index.js +17 -0
  271. package/node/components/Onboarding/core/OnboardingTour/OnboardingTour.d.ts +103 -0
  272. package/node/components/Onboarding/core/OnboardingTour/OnboardingTour.js +287 -0
  273. package/node/components/Onboarding/core/OnboardingTour/index.d.ts +1 -0
  274. package/node/components/Onboarding/core/OnboardingTour/index.js +5 -0
  275. package/node/components/Onboarding/core/ProgressStorage/ProgressStorage.d.ts +24 -0
  276. package/node/components/Onboarding/core/ProgressStorage/ProgressStorage.js +66 -0
  277. package/node/components/Onboarding/core/ProgressStorage/index.d.ts +1 -0
  278. package/node/components/Onboarding/core/ProgressStorage/index.js +17 -0
  279. package/node/components/Onboarding/core/StepNavigator/StepNavigator.d.ts +28 -0
  280. package/node/components/Onboarding/core/StepNavigator/StepNavigator.js +77 -0
  281. package/node/components/Onboarding/core/StepNavigator/index.d.ts +1 -0
  282. package/node/components/Onboarding/core/StepNavigator/index.js +17 -0
  283. package/node/components/Onboarding/core/StepResolver/StepResolver.d.ts +19 -0
  284. package/node/components/Onboarding/core/StepResolver/StepResolver.js +53 -0
  285. package/node/components/Onboarding/core/StepResolver/index.d.ts +1 -0
  286. package/node/components/Onboarding/core/StepResolver/index.js +17 -0
  287. package/node/components/Onboarding/core/StepsController/StepsController.d.ts +16 -0
  288. package/node/components/Onboarding/core/StepsController/StepsController.js +39 -0
  289. package/node/components/Onboarding/core/StepsController/index.d.ts +1 -0
  290. package/node/components/Onboarding/core/StepsController/index.js +17 -0
  291. package/node/components/Onboarding/faker.d.ts +27 -0
  292. package/node/components/Onboarding/faker.js +88 -0
  293. package/node/components/Onboarding/index.d.ts +5 -0
  294. package/node/components/Onboarding/index.js +9 -0
  295. package/node/components/Onboarding/public.d.ts +5 -0
  296. package/node/components/Onboarding/public.js +9 -0
  297. package/node/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.d.ts +20 -0
  298. package/node/components/Onboarding/services/LocalStorageSaveStrategy/LocalStorageSaveStrategy.js +29 -0
  299. package/node/components/Onboarding/services/LocalStorageSaveStrategy/index.d.ts +1 -0
  300. package/node/components/Onboarding/services/LocalStorageSaveStrategy/index.js +17 -0
  301. package/node/components/Onboarding/types/config.d.ts +18 -0
  302. package/node/components/Onboarding/types/config.js +2 -0
  303. package/node/components/Onboarding/types/index.d.ts +4 -0
  304. package/node/components/Onboarding/types/index.js +20 -0
  305. package/node/components/Onboarding/types/progress.d.ts +28 -0
  306. package/node/components/Onboarding/types/progress.js +2 -0
  307. package/node/components/Onboarding/types/step.d.ts +144 -0
  308. package/node/components/Onboarding/types/step.js +2 -0
  309. package/node/components/Onboarding/types/tour.d.ts +168 -0
  310. package/node/components/Onboarding/types/tour.js +2 -0
  311. package/node/components/Onboarding/ui/ConfirmExit/ConfirmExit.d.ts +10 -0
  312. package/node/components/Onboarding/ui/ConfirmExit/ConfirmExit.js +10 -0
  313. package/node/components/Onboarding/ui/ConfirmExit/index.d.ts +2 -0
  314. package/node/components/Onboarding/ui/ConfirmExit/index.js +5 -0
  315. package/node/components/Onboarding/ui/ConfirmExit/styles.d.ts +30 -0
  316. package/node/components/Onboarding/ui/ConfirmExit/styles.js +14 -0
  317. package/node/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.d.ts +12 -0
  318. package/node/components/Onboarding/ui/OnboardingContainer/OnboardingContainer.js +19 -0
  319. package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.d.ts +22 -0
  320. package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/OnboardingErrorBoundary.js +24 -0
  321. package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.d.ts +2 -0
  322. package/node/components/Onboarding/ui/OnboardingContainer/OnboardingErrorBoundary/index.js +5 -0
  323. package/node/components/Onboarding/ui/OnboardingContainer/index.d.ts +1 -0
  324. package/node/components/Onboarding/ui/OnboardingContainer/index.js +5 -0
  325. package/node/components/Onboarding/ui/OnboardingContainer/useLogic/index.d.ts +1 -0
  326. package/node/components/Onboarding/ui/OnboardingContainer/useLogic/index.js +5 -0
  327. package/node/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.d.ts +10 -0
  328. package/node/components/Onboarding/ui/OnboardingContainer/useLogic/useLogic.js +18 -0
  329. package/node/components/Onboarding/ui/Overlay/Overlay.d.ts +29 -0
  330. package/node/components/Onboarding/ui/Overlay/Overlay.js +28 -0
  331. package/node/components/Onboarding/ui/Overlay/constants.d.ts +7 -0
  332. package/node/components/Onboarding/ui/Overlay/constants.js +11 -0
  333. package/node/components/Onboarding/ui/Overlay/index.d.ts +2 -0
  334. package/node/components/Onboarding/ui/Overlay/index.js +5 -0
  335. package/node/components/Onboarding/ui/Overlay/styles.d.ts +22 -0
  336. package/node/components/Onboarding/ui/Overlay/styles.js +60 -0
  337. package/node/components/Onboarding/ui/Overlay/useLogic/index.d.ts +1 -0
  338. package/node/components/Onboarding/ui/Overlay/useLogic/index.js +5 -0
  339. package/node/components/Onboarding/ui/Overlay/useLogic/useLogic.d.ts +13 -0
  340. package/node/components/Onboarding/ui/Overlay/useLogic/useLogic.js +14 -0
  341. package/node/components/Onboarding/ui/StepStrategy/StepStrategy.d.ts +6 -0
  342. package/node/components/Onboarding/ui/StepStrategy/StepStrategy.js +21 -0
  343. package/node/components/Onboarding/ui/StepStrategy/index.d.ts +1 -0
  344. package/node/components/Onboarding/ui/StepStrategy/index.js +17 -0
  345. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.d.ts +6 -0
  346. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/HighlightStep.js +23 -0
  347. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.d.ts +2 -0
  348. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/index.js +5 -0
  349. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.d.ts +25 -0
  350. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/styles.js +59 -0
  351. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.d.ts +1 -0
  352. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/index.js +5 -0
  353. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.d.ts +12 -0
  354. package/node/components/Onboarding/ui/StepStrategy/steps/HighlightStep/useLogic/useLogic.js +41 -0
  355. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.d.ts +6 -0
  356. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/StandaloneStep.js +15 -0
  357. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.d.ts +2 -0
  358. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/index.js +5 -0
  359. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.d.ts +13 -0
  360. package/node/components/Onboarding/ui/StepStrategy/steps/StandaloneStep/styles.js +12 -0
  361. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.d.ts +6 -0
  362. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/ProgressDots.js +19 -0
  363. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.d.ts +4 -0
  364. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/constants.js +8 -0
  365. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.d.ts +2 -0
  366. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/index.js +5 -0
  367. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.d.ts +9 -0
  368. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/ProgressDots/styles.js +37 -0
  369. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.d.ts +9 -0
  370. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/StepFooter.js +22 -0
  371. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.d.ts +4 -0
  372. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/constants.js +7 -0
  373. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.d.ts +2 -0
  374. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/index.js +5 -0
  375. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.d.ts +21 -0
  376. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/styles.js +31 -0
  377. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.d.ts +1 -0
  378. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/index.js +5 -0
  379. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.d.ts +16 -0
  380. package/node/components/Onboarding/ui/StepStrategy/steps/StepFooter/useLogic/useLogic.js +26 -0
  381. package/node/components/Onboarding/ui/StepStrategy/steps/types.d.ts +16 -0
  382. package/node/components/Onboarding/ui/StepStrategy/steps/types.js +2 -0
  383. package/node/components/Onboarding/ui/StepStrategy/useLogic/index.d.ts +1 -0
  384. package/node/components/Onboarding/ui/StepStrategy/useLogic/index.js +5 -0
  385. package/node/components/Onboarding/ui/StepStrategy/useLogic/useLogic.d.ts +47 -0
  386. package/node/components/Onboarding/ui/StepStrategy/useLogic/useLogic.js +55 -0
  387. package/node/components/Onboarding/ui/hooks/useActiveStep/index.d.ts +1 -0
  388. package/node/components/Onboarding/ui/hooks/useActiveStep/index.js +5 -0
  389. package/node/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.d.ts +6 -0
  390. package/node/components/Onboarding/ui/hooks/useActiveStep/useActiveStep.js +11 -0
  391. package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/index.d.ts +1 -0
  392. package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/index.js +17 -0
  393. package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.d.ts +15 -0
  394. package/node/components/Onboarding/ui/hooks/useDelayedActiveStep/useDelayedActiveStep.js +23 -0
  395. package/node/components/Onboarding/ui/hooks/useFocusTrap/index.d.ts +1 -0
  396. package/node/components/Onboarding/ui/hooks/useFocusTrap/index.js +5 -0
  397. package/node/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.d.ts +6 -0
  398. package/node/components/Onboarding/ui/hooks/useFocusTrap/useFocusTrap.js +37 -0
  399. package/node/components/Onboarding/ui/hooks/useKeyboardNav/index.d.ts +1 -0
  400. package/node/components/Onboarding/ui/hooks/useKeyboardNav/index.js +5 -0
  401. package/node/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.d.ts +11 -0
  402. package/node/components/Onboarding/ui/hooks/useKeyboardNav/useKeyboardNav.js +66 -0
  403. package/node/components/Onboarding/ui/hooks/useStepTransition/index.d.ts +1 -0
  404. package/node/components/Onboarding/ui/hooks/useStepTransition/index.js +5 -0
  405. package/node/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.d.ts +30 -0
  406. package/node/components/Onboarding/ui/hooks/useStepTransition/useStepTransition.js +50 -0
  407. package/node/components/Onboarding/ui/hooks/useTargetAnchor/index.d.ts +1 -0
  408. package/node/components/Onboarding/ui/hooks/useTargetAnchor/index.js +17 -0
  409. package/node/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.d.ts +37 -0
  410. package/node/components/Onboarding/ui/hooks/useTargetAnchor/useTargetAnchor.js +60 -0
  411. package/node/components/Onboarding/ui/hooks/useTrackedRect/index.d.ts +1 -0
  412. package/node/components/Onboarding/ui/hooks/useTrackedRect/index.js +5 -0
  413. package/node/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.d.ts +5 -0
  414. package/node/components/Onboarding/ui/hooks/useTrackedRect/useTrackedRect.js +47 -0
  415. package/node/components/Onboarding/ui/hooks/useViewportSize/index.d.ts +1 -0
  416. package/node/components/Onboarding/ui/hooks/useViewportSize/index.js +5 -0
  417. package/node/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.d.ts +5 -0
  418. package/node/components/Onboarding/ui/hooks/useViewportSize/useViewportSize.js +18 -0
  419. package/node/components/Onboarding/ui/styles.d.ts +5 -0
  420. package/node/components/Onboarding/ui/styles.js +19 -0
  421. package/node/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.d.ts +12 -0
  422. package/node/components/Onboarding/utils/createVirtualAnchor/createVirtualAnchor.js +10 -0
  423. package/node/components/Onboarding/utils/createVirtualAnchor/index.d.ts +1 -0
  424. package/node/components/Onboarding/utils/createVirtualAnchor/index.js +17 -0
  425. package/node/components/Onboarding/utils/geometry/index.d.ts +4 -0
  426. package/node/components/Onboarding/utils/geometry/index.js +20 -0
  427. package/node/components/Onboarding/utils/geometry/overlayPath/index.d.ts +1 -0
  428. package/node/components/Onboarding/utils/geometry/overlayPath/index.js +5 -0
  429. package/node/components/Onboarding/utils/geometry/overlayPath/overlayPath.d.ts +6 -0
  430. package/node/components/Onboarding/utils/geometry/overlayPath/overlayPath.js +33 -0
  431. package/node/components/Onboarding/utils/geometry/parseOffset/index.d.ts +1 -0
  432. package/node/components/Onboarding/utils/geometry/parseOffset/index.js +5 -0
  433. package/node/components/Onboarding/utils/geometry/parseOffset/parseOffset.d.ts +4 -0
  434. package/node/components/Onboarding/utils/geometry/parseOffset/parseOffset.js +9 -0
  435. package/node/components/Onboarding/utils/geometry/rect/index.d.ts +2 -0
  436. package/node/components/Onboarding/utils/geometry/rect/index.js +9 -0
  437. package/node/components/Onboarding/utils/geometry/rect/rect.d.ts +34 -0
  438. package/node/components/Onboarding/utils/geometry/rect/rect.js +69 -0
  439. package/node/components/Onboarding/utils/geometry/viewport/index.d.ts +2 -0
  440. package/node/components/Onboarding/utils/geometry/viewport/index.js +5 -0
  441. package/node/components/Onboarding/utils/geometry/viewport/viewport.d.ts +14 -0
  442. package/node/components/Onboarding/utils/geometry/viewport/viewport.js +14 -0
  443. package/node/components/Onboarding/utils/getScrollParents/getScrollParents.d.ts +7 -0
  444. package/node/components/Onboarding/utils/getScrollParents/getScrollParents.js +28 -0
  445. package/node/components/Onboarding/utils/getScrollParents/index.d.ts +1 -0
  446. package/node/components/Onboarding/utils/getScrollParents/index.js +5 -0
  447. package/node/components/Onboarding/utils/getTargetElement/getTargetElement.d.ts +4 -0
  448. package/node/components/Onboarding/utils/getTargetElement/getTargetElement.js +13 -0
  449. package/node/components/Onboarding/utils/getTargetElement/index.d.ts +1 -0
  450. package/node/components/Onboarding/utils/getTargetElement/index.js +5 -0
  451. package/node/components/Onboarding/utils/observeRemoval/index.d.ts +1 -0
  452. package/node/components/Onboarding/utils/observeRemoval/index.js +17 -0
  453. package/node/components/Onboarding/utils/observeRemoval/observeRemoval.d.ts +4 -0
  454. package/node/components/Onboarding/utils/observeRemoval/observeRemoval.js +17 -0
  455. package/node/components/Onboarding/utils/scrollIntoView/index.d.ts +1 -0
  456. package/node/components/Onboarding/utils/scrollIntoView/index.js +5 -0
  457. package/node/components/Onboarding/utils/scrollIntoView/scrollIntoView.d.ts +13 -0
  458. package/node/components/Onboarding/utils/scrollIntoView/scrollIntoView.js +89 -0
  459. package/node/components/Onboarding/utils/waitForElement/index.d.ts +2 -0
  460. package/node/components/Onboarding/utils/waitForElement/index.js +5 -0
  461. package/node/components/Onboarding/utils/waitForElement/waitForElement.d.ts +21 -0
  462. package/node/components/Onboarding/utils/waitForElement/waitForElement.js +49 -0
  463. package/node/components/Onboarding/validation/index.d.ts +1 -0
  464. package/node/components/Onboarding/validation/index.js +6 -0
  465. package/node/components/Onboarding/validation/validateTourConfig/index.d.ts +1 -0
  466. package/node/components/Onboarding/validation/validateTourConfig/index.js +6 -0
  467. package/node/components/Onboarding/validation/validateTourConfig/validateTourConfig.d.ts +12 -0
  468. package/node/components/Onboarding/validation/validateTourConfig/validateTourConfig.js +80 -0
  469. package/node/services/Logger/Logger.d.ts +45 -0
  470. package/node/services/Logger/Logger.js +72 -0
  471. package/node/services/Logger/index.d.ts +10 -0
  472. package/node/services/Logger/index.js +17 -0
  473. package/package.json +3 -2
  474. package/services/Logger/Logger.d.ts +45 -0
  475. package/services/Logger/Logger.js +68 -0
  476. package/services/Logger/index.d.ts +10 -0
  477. package/services/Logger/index.js +12 -0
@@ -0,0 +1,57 @@
1
+ import { styled } from '../../../styled';
2
+ import { ONBOARDING_Z_INDEX_OFFSET } from '../../constants';
3
+ import { overlayClassnames } from './constants';
4
+ /**
5
+ * Контейнер overlay с затуханием при открытии/закрытии.
6
+ */
7
+ export const OverlayRoot = styled.svg `
8
+ pointer-events: none;
9
+
10
+ position: fixed;
11
+ z-index: ${({ theme }) => theme.zIndex.tooltip + ONBOARDING_Z_INDEX_OFFSET.base};
12
+ inset: 0;
13
+
14
+ width: 100%;
15
+ height: 100%;
16
+
17
+ opacity: 1;
18
+
19
+ transition: opacity ${({ theme }) => theme.transitions.duration.enteringScreen}ms
20
+ ${({ theme }) => theme.transitions.easing.easeInOut};
21
+
22
+ &.${overlayClassnames.hidden} {
23
+ opacity: 0;
24
+
25
+ .${overlayClassnames.backdrop}, .${overlayClassnames.holeBlocker} {
26
+ pointer-events: none;
27
+ }
28
+ }
29
+ `;
30
+ /**
31
+ * Затемненная часть с hole, перехватывает клики.
32
+ */
33
+ export const Backdrop = styled.path `
34
+ pointer-events: auto;
35
+ cursor: pointer;
36
+
37
+ fill: ${({ theme }) => theme.palette.background.modalShadow};
38
+
39
+ .${overlayClassnames.holeMoving} & {
40
+ transition: d ${({ theme }) => theme.transitions.duration.standard}ms
41
+ ${({ theme }) => theme.transitions.easing.easeInOut};
42
+ }
43
+ `;
44
+ /**
45
+ * Блокатор кликов для неинтерактивных шагов.
46
+ */
47
+ export const HoleBlocker = styled.rect `
48
+ pointer-events: auto;
49
+
50
+ fill: transparent;
51
+
52
+ .${overlayClassnames.holeMoving} & {
53
+ transition-timing-function: ${({ theme }) => theme.transitions.easing.easeInOut};
54
+ transition-duration: ${({ theme }) => theme.transitions.duration.standard}ms;
55
+ transition-property: x, y, width, height, rx;
56
+ }
57
+ `;
@@ -0,0 +1 @@
1
+ export { useLogic } from './useLogic';
@@ -0,0 +1 @@
1
+ export { useLogic } from './useLogic';
@@ -0,0 +1,13 @@
1
+ import { type Rect, type Viewport } from '../../../utils/geometry';
2
+ export type UseLogicResult = {
3
+ viewport: Viewport;
4
+ /**
5
+ * Hole, обрезанный по viewport (null для standalone-шага).
6
+ */
7
+ clampedHole: Rect | null;
8
+ /**
9
+ * SVG-путь overlay.
10
+ */
11
+ path: string;
12
+ };
13
+ export declare const useLogic: (hole: Rect | null) => UseLogicResult;
@@ -0,0 +1,10 @@
1
+ import { DEFAULT_HIGHLIGHT_RADIUS } from '../../../constants';
2
+ import { buildOverlayPath, clampToViewport, } from '../../../utils/geometry';
3
+ import { useViewportSize } from '../../hooks/useViewportSize';
4
+ export const useLogic = (hole) => {
5
+ const viewport = useViewportSize();
6
+ const clampedHole = hole ? clampToViewport(hole, viewport) : null;
7
+ // Путь строится по необрезанной hole для скруглённых углов у края.
8
+ const path = buildOverlayPath(viewport, hole, DEFAULT_HIGHLIGHT_RADIUS);
9
+ return { viewport, clampedHole, path };
10
+ };
@@ -0,0 +1,6 @@
1
+ import { type StepViewProps } from './steps/types';
2
+ export type StepStrategyProps = Omit<StepViewProps, 'geometry'>;
3
+ /**
4
+ * Стратегия отрисовки по типу шага, единый overlay для всего тура.
5
+ */
6
+ export declare const StepStrategy: ({ activeStep, isClosing }: StepStrategyProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Overlay } from '../Overlay';
3
+ import { HighlightStep } from './steps/HighlightStep';
4
+ import { StandaloneStep } from './steps/StandaloneStep';
5
+ import { useLogic } from './useLogic';
6
+ const STEP_VIEWS = {
7
+ standalone: StandaloneStep,
8
+ highlight: HighlightStep,
9
+ };
10
+ /**
11
+ * Стратегия отрисовки по типу шага, единый overlay для всего тура.
12
+ */
13
+ export const StepStrategy = ({ activeStep, isClosing }) => {
14
+ const { geometry, shouldShowOverlay, isVisible, isHoleMoving, onOverlayClose, } = useLogic(activeStep, isClosing);
15
+ const StepView = STEP_VIEWS[activeStep.step.type];
16
+ return (_jsxs(_Fragment, { children: [shouldShowOverlay && (_jsx(Overlay, { hole: geometry.hole, isInteractive: activeStep.isInteractive, isVisible: isVisible, isHoleMoving: isHoleMoving, onClose: onOverlayClose })), _jsx(StepView, { activeStep: activeStep, isClosing: isClosing, geometry: geometry })] }));
17
+ };
@@ -0,0 +1 @@
1
+ export * from './StepStrategy';
@@ -0,0 +1 @@
1
+ export * from './StepStrategy';
@@ -0,0 +1,6 @@
1
+ import { type StepViewProps } from '../types';
2
+ export type HighlightStepProps = StepViewProps;
3
+ /**
4
+ * Шаг с подсветкой: popover рядом с hole.
5
+ */
6
+ export declare const HighlightStep: ({ activeStep, isClosing, geometry, }: HighlightStepProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { CrossOutlineMd } from '../../../../../../icons/CrossOutlineMd';
3
+ import { Typography } from '../../../../../Typography';
4
+ import { StepFooter } from '../StepFooter';
5
+ import { CloseButton, Content, PopoverBody, StepPopover } from './styles';
6
+ import { useLogic } from './useLogic';
7
+ /**
8
+ * Шаг с подсветкой: popover рядом с hole.
9
+ */
10
+ export const HighlightStep = ({ activeStep, isClosing, geometry, }) => {
11
+ const { step } = activeStep;
12
+ const { anchorEl } = geometry;
13
+ const { isOpen, shouldShowPopover, setPopoverNode, handleClose } = useLogic(activeStep, isClosing, geometry);
14
+ // Без якоря popover не рисуем.
15
+ if (!anchorEl) {
16
+ return null;
17
+ }
18
+ return (_jsx(_Fragment, { children: shouldShowPopover && (_jsx(StepPopover, { isOpen: isOpen, disableAutoFocus: true, hasArrow: true, anchorEl: anchorEl, placement: step.position, children: _jsxs(PopoverBody, { ref: setPopoverNode, tabIndex: -1, children: [_jsx(CloseButton, { variant: "text", onClick: handleClose, "aria-label": "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: _jsx(CrossOutlineMd, {}) }), _jsxs(Content, { children: [step.title && (_jsx(Typography, { component: "div", variant: "h5", children: step.title })), step.content && (_jsx(Typography, { component: "div", variant: "body1", color: "grey", colorIntensity: "900", children: step.content }))] }), _jsx(StepFooter, { activeStep: activeStep })] }) })) }));
19
+ };
@@ -0,0 +1,2 @@
1
+ export { HighlightStep } from './HighlightStep';
2
+ export type { HighlightStepProps } from './HighlightStep';
@@ -0,0 +1 @@
1
+ export { HighlightStep } from './HighlightStep';
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Popover шага, z-index над overlay, быстрое закрытие.
4
+ */
5
+ export declare const StepPopover: import("../../../../../styled").StyledComponent<import("../../../../../NewPopover").NewPopoverProps & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ }, {}, {}>;
8
+ export declare const PopoverBody: import("../../../../../styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const CloseButton: import("../../../../../styled").StyledComponent<Omit<import("../../../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
13
+ variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
14
+ loading?: boolean | undefined;
15
+ color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
16
+ component?: import("react").ElementType | undefined;
17
+ selected?: boolean | undefined;
18
+ size?: "large" | "medium" | undefined;
19
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ }, {}, {}>;
22
+ export declare const Content: import("../../../../../styled").StyledComponent<{
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,56 @@
1
+ import { IconButton } from '../../../../../IconButton';
2
+ import { NewPopover } from '../../../../../NewPopover';
3
+ import { popoverClassnames } from '../../../../../NewPopover/constants';
4
+ import { styled } from '../../../../../styled';
5
+ import { ONBOARDING_Z_INDEX_OFFSET } from '../../../../constants';
6
+ /**
7
+ * Popover шага, z-index над overlay, быстрое закрытие.
8
+ */
9
+ export const StepPopover = styled(NewPopover) `
10
+ && {
11
+ z-index: ${({ theme }) => theme.zIndex.tooltip + ONBOARDING_Z_INDEX_OFFSET.popover};
12
+ }
13
+
14
+ .${popoverClassnames.innerContainer} {
15
+ border-radius: calc(${({ theme }) => theme.shape.medium} * 2);
16
+ }
17
+
18
+ .${popoverClassnames.animatedWrapper}:not(.${popoverClassnames.animatedWrapperOpen}) {
19
+ animation-duration: ${({ theme }) => theme.transitions.duration.shortest}ms;
20
+ }
21
+ `;
22
+ export const PopoverBody = styled.div `
23
+ position: relative;
24
+
25
+ width: 400px;
26
+ padding: ${({ theme }) => theme.spacing(6)};
27
+
28
+ border-radius: calc(${({ theme }) => theme.shape.medium} * 2);
29
+
30
+ /* Фокус-трап ставит фокус на контейнер, браузерную рамку убираем. */
31
+ &:focus {
32
+ outline: none;
33
+ }
34
+ `;
35
+ export const CloseButton = styled(IconButton) `
36
+ position: absolute;
37
+ top: ${({ theme }) => theme.spacing(6)};
38
+ right: ${({ theme }) => theme.spacing(6)};
39
+ `;
40
+ export const Content = styled.div `
41
+ display: flex;
42
+ flex-direction: column;
43
+ gap: ${({ theme }) => theme.spacing(4)};
44
+
45
+ margin-bottom: ${({ theme }) => theme.spacing(6)};
46
+
47
+ &:last-child {
48
+ margin-bottom: 0;
49
+ }
50
+
51
+ /* Резерв справа под крестик — только у верхнего элемента (заголовок, а если
52
+ его нет — текст) */
53
+ & > *:first-of-type {
54
+ padding-right: ${({ theme }) => theme.spacing(10)};
55
+ }
56
+ `;
@@ -0,0 +1 @@
1
+ export { useLogic } from './useLogic';
@@ -0,0 +1 @@
1
+ export { useLogic } from './useLogic';
@@ -0,0 +1,12 @@
1
+ import { type ActiveStepState } from '../../../../../types';
2
+ import { type OverlayGeometry } from '../../../useLogic';
3
+ export type UseLogicResult = {
4
+ isOpen: boolean;
5
+ shouldShowPopover: boolean;
6
+ setPopoverNode: (node: HTMLElement | null) => void;
7
+ handleClose: () => void;
8
+ };
9
+ /**
10
+ * Логика highlight-шага: задержка popover, фокус-трап, закрытие.
11
+ */
12
+ export declare const useLogic: (activeStep: ActiveStepState, isClosing: boolean, geometry: OverlayGeometry) => UseLogicResult;
@@ -0,0 +1,37 @@
1
+ import { useCallback, useEffect, useMemo, useState } from 'react';
2
+ import { useTheme } from '../../../../../../theme/hooks/useTheme';
3
+ import { useFocusTrap } from '../../../../hooks/useFocusTrap';
4
+ /**
5
+ * Логика highlight-шага: задержка popover, фокус-трап, закрытие.
6
+ */
7
+ export const useLogic = (activeStep, isClosing, geometry) => {
8
+ const { isInteractive, isConfirming } = activeStep;
9
+ const { anchorEl, element, isTransitioning } = geometry;
10
+ const theme = useTheme();
11
+ const isOpen = !isClosing;
12
+ // Задержка до появления popover после готовности hole.
13
+ const isHoleReady = anchorEl !== null;
14
+ const [isEntered, setIsEntered] = useState(false);
15
+ useEffect(() => {
16
+ if (isEntered || !isHoleReady) {
17
+ return;
18
+ }
19
+ const timer = setTimeout(() => setIsEntered(true), theme.transitions.duration.shortest);
20
+ return () => clearTimeout(timer);
21
+ }, [isEntered, isHoleReady]);
22
+ const [popoverNode, setPopoverNode] = useState(null);
23
+ const trapNodes = useMemo(() => [popoverNode, isInteractive ? element : null], [popoverNode, isInteractive, element]);
24
+ // Трап выключен при закрытии/подтверждении.
25
+ useFocusTrap(trapNodes, isOpen && !isConfirming);
26
+ const handleClose = useCallback(() => {
27
+ activeStep.requestClose();
28
+ }, [activeStep]);
29
+ // При переходе popover размонтируется; при закрытии — grow-out.
30
+ const shouldShowPopover = !isConfirming && !isTransitioning && isEntered;
31
+ return {
32
+ isOpen,
33
+ shouldShowPopover,
34
+ setPopoverNode,
35
+ handleClose,
36
+ };
37
+ };
@@ -0,0 +1,6 @@
1
+ import { type StepViewProps } from '../types';
2
+ export type StandaloneStepProps = StepViewProps;
3
+ /**
4
+ * Standalone шаг-модалка.
5
+ */
6
+ export declare const StandaloneStep: ({ activeStep, isClosing, }: StandaloneStepProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { DialogContent } from '../../../../../DialogContent';
3
+ import { StepFooter } from '../StepFooter';
4
+ import { Footer, StepDialog } from './styles';
5
+ /**
6
+ * Standalone шаг-модалка.
7
+ */
8
+ export const StandaloneStep = ({ activeStep, isClosing, }) => {
9
+ const { step, isConfirming, requestClose } = activeStep;
10
+ return (_jsxs(StepDialog, { open: !isConfirming && !isClosing, title: step.title, onClose: requestClose, size: step.dialogSize, disableAutoFocus: true, children: [_jsx(DialogContent, { children: step.content }), _jsx(Footer, { children: _jsx(StepFooter, { activeStep: activeStep }) })] }));
11
+ };
@@ -0,0 +1,2 @@
1
+ export { StandaloneStep } from './StandaloneStep';
2
+ export type { StandaloneStepProps } from './StandaloneStep';
@@ -0,0 +1 @@
1
+ export { StandaloneStep } from './StandaloneStep';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare const StepDialog: import("../../../../../styled").StyledComponent<import("../../../../..").WithoutEmotionSpecific<Omit<import("@mui/material").DialogProps, "title" | "maxWidth">> & {
3
+ title?: string | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>[] | undefined;
4
+ disableBackdropClick?: boolean | undefined;
5
+ size?: import("../../../../../Dialog").DialogSize | undefined;
6
+ headerContent?: import("react").ReactNode;
7
+ } & {
8
+ theme?: import("@emotion/react").Theme | undefined;
9
+ }, {}, {}>;
10
+ export declare const Footer: import("../../../../../styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,9 @@
1
+ import { Dialog } from '../../../../../Dialog';
2
+ import { styled } from '../../../../../styled';
3
+ import { onboardingModalSurface } from '../../../styles';
4
+ export const StepDialog = styled(Dialog) `
5
+ ${({ theme }) => onboardingModalSurface(theme)};
6
+ `;
7
+ export const Footer = styled.div `
8
+ padding: ${({ theme }) => theme.spacing(0, 6, 6)};
9
+ `;
@@ -0,0 +1,6 @@
1
+ import { type ActiveStepState } from '../../../../../types';
2
+ export type ProgressDotsProps = Pick<ActiveStepState, 'position' | 'total' | 'onSelectStep'>;
3
+ /**
4
+ * Индикатор прогресса точками
5
+ */
6
+ export declare const ProgressDots: ({ position, total, onSelectStep, }: ProgressDotsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cva } from '../../../../../../utils/cva';
3
+ import { progressDotClassnames } from './constants';
4
+ import { Dot, Dots } from './styles';
5
+ const dotCva = cva(progressDotClassnames.root, {
6
+ variants: {
7
+ isActive: {
8
+ true: progressDotClassnames.active,
9
+ },
10
+ },
11
+ });
12
+ /**
13
+ * Индикатор прогресса точками
14
+ */
15
+ export const ProgressDots = ({ position, total, onSelectStep, }) => (_jsx(Dots, { children: Array.from({ length: total }, (_, index) => (_jsx(Dot, { type: "button", className: dotCva({ isActive: index === position }), "aria-label": `Перейти к шагу ${index + 1}`, "aria-current": index === position, onClick: () => onSelectStep(index) }, index))) }));
@@ -0,0 +1,4 @@
1
+ export declare const progressDotClassnames: {
2
+ root: string;
3
+ active: string;
4
+ };
@@ -0,0 +1,5 @@
1
+ import { createUIKitClassname } from '../../../../../../utils/createUIKitClassname';
2
+ export const progressDotClassnames = {
3
+ root: createUIKitClassname('onboarding-progress-dot'),
4
+ active: createUIKitClassname('onboarding-progress-dot_active'),
5
+ };
@@ -0,0 +1,2 @@
1
+ export { ProgressDots } from './ProgressDots';
2
+ export type { ProgressDotsProps } from './ProgressDots';
@@ -0,0 +1 @@
1
+ export { ProgressDots } from './ProgressDots';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const Dots: import("../../../../../../styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const Dot: import("../../../../../../styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
@@ -0,0 +1,34 @@
1
+ import { styled } from '../../../../../../styled';
2
+ import { progressDotClassnames } from './constants';
3
+ export const Dots = styled.div `
4
+ display: flex;
5
+ gap: ${({ theme }) => theme.spacing(1)};
6
+ align-items: center;
7
+ `;
8
+ export const Dot = styled.button `
9
+ cursor: pointer;
10
+
11
+ width: 8px;
12
+ height: 8px;
13
+ padding: 0;
14
+
15
+ background-color: ${({ theme }) => theme.palette.grey[200]};
16
+ border: none;
17
+ border-radius: 50%;
18
+
19
+ transition: background-color 0.2s;
20
+
21
+ &.${progressDotClassnames.active} {
22
+ background-color: ${({ theme }) => theme.palette.grey[600]};
23
+ }
24
+
25
+ /* Круглый фокус вместо браузерной рамки. */
26
+ &:focus {
27
+ outline: none;
28
+ }
29
+
30
+ &:focus-visible {
31
+ outline: 2px solid ${({ theme }) => theme.palette.components.focused};
32
+ outline-offset: 2px;
33
+ }
34
+ `;
@@ -0,0 +1,9 @@
1
+ import { type ActiveStepState } from '../../../../types';
2
+ export type StepFooterProps = {
3
+ activeStep: ActiveStepState;
4
+ };
5
+ /**
6
+ * Футер шага: индикатор прогресса и кнопки навигации.
7
+ * Общий для standalone и highlight.
8
+ */
9
+ export declare const StepFooter: ({ activeStep }: StepFooterProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from '../../../../../Button';
3
+ import { Typography } from '../../../../../Typography';
4
+ import { ProgressDots } from './ProgressDots';
5
+ import { CenterSlot, LeftSlot, NavigationRow, RightSlot, Root } from './styles';
6
+ import { useLogic } from './useLogic';
7
+ /**
8
+ * Футер шага: индикатор прогресса и кнопки навигации.
9
+ * Общий для standalone и highlight.
10
+ */
11
+ export const StepFooter = ({ activeStep }) => {
12
+ const { isPrevVisible, isNextVisible, isDotsVisible, isCounterVisible, position, total, prevButtonText, nextButtonText, nextButtonVariant, onNext, onPrev, onSelectStep, } = useLogic(activeStep);
13
+ // Нечего показывать — не отрисовываем пустой футер
14
+ if (!isPrevVisible && !isNextVisible && !isDotsVisible && !isCounterVisible) {
15
+ return null;
16
+ }
17
+ return (_jsx(Root, { children: _jsxs(NavigationRow, { children: [_jsx(LeftSlot, { children: isPrevVisible && (_jsx(Button, { variant: "text", onClick: onPrev, children: prevButtonText })) }), _jsxs(CenterSlot, { children: [isDotsVisible && (_jsx(ProgressDots, { position: position, total: total, onSelectStep: onSelectStep })), isCounterVisible && (_jsxs(Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: [position + 1, " / ", total] }))] }), _jsx(RightSlot, { children: isNextVisible && (_jsx(Button, { "data-focus": "next", variant: nextButtonVariant, onClick: onNext, children: nextButtonText }, nextButtonVariant)) })] }) }));
18
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Максимум точек в индикаторе прогресса
3
+ */
4
+ export declare const MAX_PROGRESS_DOTS = 6;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Максимум точек в индикаторе прогресса
3
+ */
4
+ export const MAX_PROGRESS_DOTS = 6;
@@ -0,0 +1,2 @@
1
+ export { StepFooter } from './StepFooter';
2
+ export type { StepFooterProps } from './StepFooter';
@@ -0,0 +1 @@
1
+ export { StepFooter } from './StepFooter';
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export declare const Root: import("../../../../../styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const NavigationRow: import("../../../../../styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const LeftSlot: import("../../../../../styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const CenterSlot: import("../../../../../styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const RightSlot: import("../../../../../styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,28 @@
1
+ import { styled } from '../../../../../styled';
2
+ export const Root = styled.div `
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: ${({ theme }) => theme.spacing(2)};
6
+
7
+ width: 100%;
8
+ padding:0;
9
+ `;
10
+ export const NavigationRow = styled.div `
11
+ display: grid;
12
+ grid-template-columns: 1fr auto 1fr;
13
+ align-items: center;
14
+ `;
15
+ export const LeftSlot = styled.div `
16
+ display: flex;
17
+ justify-content: flex-start;
18
+ `;
19
+ export const CenterSlot = styled.div `
20
+ display: flex;
21
+ flex-direction: column;
22
+ gap: ${({ theme }) => theme.spacing(1)};
23
+ align-items: center;
24
+ `;
25
+ export const RightSlot = styled.div `
26
+ display: flex;
27
+ justify-content: flex-end;
28
+ `;
@@ -0,0 +1 @@
1
+ export { useLogic } from './useLogic';
@@ -0,0 +1 @@
1
+ export { useLogic } from './useLogic';
@@ -0,0 +1,16 @@
1
+ import { type ActiveStepState } from '../../../../../types';
2
+ export type UseLogicResult = {
3
+ isPrevVisible: boolean;
4
+ isNextVisible: boolean;
5
+ isDotsVisible: boolean;
6
+ isCounterVisible: boolean;
7
+ position: number;
8
+ total: number;
9
+ prevButtonText: string;
10
+ nextButtonText: string;
11
+ nextButtonVariant: 'text' | 'contained';
12
+ onNext: () => void;
13
+ onPrev: () => void;
14
+ onSelectStep: (position: number) => void;
15
+ };
16
+ export declare const useLogic: (activeStep: ActiveStepState) => UseLogicResult;
@@ -0,0 +1,22 @@
1
+ import { MAX_PROGRESS_DOTS } from '../constants';
2
+ export const useLogic = (activeStep) => {
3
+ const { step, position, total, hasNext, hasPrev, isDotsVisible, isCounterVisible, buttons, onNext, onPrev, onSelectStep, } = activeStep;
4
+ // Прогресс имеет смысл только при total > 1.
5
+ const hasProgress = total > 1;
6
+ // Последний шаг: кнопка «вперёд» превращается в завершающую.
7
+ const isFinishStep = !hasNext;
8
+ return {
9
+ isPrevVisible: step.isPrevButtonVisible && hasPrev,
10
+ isNextVisible: step.isNextButtonVisible,
11
+ isDotsVisible: isDotsVisible && hasProgress && total <= MAX_PROGRESS_DOTS,
12
+ isCounterVisible: isCounterVisible && hasProgress,
13
+ position,
14
+ total,
15
+ prevButtonText: buttons.prevLabel,
16
+ nextButtonText: isFinishStep ? buttons.finishLabel : buttons.nextLabel,
17
+ nextButtonVariant: isFinishStep ? buttons.finishVariant : 'contained',
18
+ onNext,
19
+ onPrev,
20
+ onSelectStep,
21
+ };
22
+ };
@@ -0,0 +1,16 @@
1
+ import { type ActiveStepState } from '../../../types';
2
+ import { type OverlayGeometry } from '../useLogic';
3
+ /**
4
+ * Контракт step-view, передаётся стратегией по типу шага.
5
+ */
6
+ export type StepViewProps = {
7
+ activeStep: ActiveStepState;
8
+ /**
9
+ * Тур в процессе закрытия
10
+ */
11
+ isClosing: boolean;
12
+ /**
13
+ * Геометрия подсветки (единый источник для overlay и popover).
14
+ */
15
+ geometry: OverlayGeometry;
16
+ };
@@ -0,0 +1 @@
1
+ export { useLogic, type OverlayGeometry } from './useLogic';
@@ -0,0 +1 @@
1
+ export { useLogic } from './useLogic';