@cuemath/leap 3.2.18-mb → 3.2.19-beta-0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/assets/illustrations/illustrations.js +11 -5
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/line-icons/icons/after-noon.js +34 -0
  4. package/dist/assets/line-icons/icons/after-noon.js.map +1 -0
  5. package/dist/assets/line-icons/icons/apple-icon-white.js +42 -0
  6. package/dist/assets/line-icons/icons/apple-icon-white.js.map +1 -0
  7. package/dist/assets/line-icons/icons/cue-board-filled.js +33 -0
  8. package/dist/assets/line-icons/icons/cue-board-filled.js.map +1 -0
  9. package/dist/assets/line-icons/icons/cue-board.js +23 -0
  10. package/dist/assets/line-icons/icons/cue-board.js.map +1 -0
  11. package/dist/assets/line-icons/icons/evening.js +35 -0
  12. package/dist/assets/line-icons/icons/evening.js.map +1 -0
  13. package/dist/assets/line-icons/icons/hint-fill.js +35 -0
  14. package/dist/assets/line-icons/icons/hint-fill.js.map +1 -0
  15. package/dist/assets/line-icons/icons/morning.js +35 -0
  16. package/dist/assets/line-icons/icons/morning.js.map +1 -0
  17. package/dist/assets/line-icons/icons/screen-grab-filled.js +35 -0
  18. package/dist/assets/line-icons/icons/screen-grab-filled.js.map +1 -0
  19. package/dist/assets/line-icons/icons/screen-grab.js +23 -0
  20. package/dist/assets/line-icons/icons/screen-grab.js.map +1 -0
  21. package/dist/assets/line-icons/icons/sticker-filled.js +64 -0
  22. package/dist/assets/line-icons/icons/sticker-filled.js.map +1 -0
  23. package/dist/assets/line-icons/icons/sticker.js +46 -0
  24. package/dist/assets/line-icons/icons/sticker.js.map +1 -0
  25. package/dist/assets/lottie/lottie.js +16 -1
  26. package/dist/assets/lottie/lottie.js.map +1 -1
  27. package/dist/features/analytics-events/platform-events-student.js +2 -1
  28. package/dist/features/analytics-events/platform-events-student.js.map +1 -1
  29. package/dist/features/analytics-events/platform-events-teacher.js +6 -4
  30. package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
  31. package/dist/features/analytics-events/whitelist-events.js +10 -8
  32. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  33. package/dist/features/auth/account-selector/account-selector.js +26 -25
  34. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  35. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +9 -0
  36. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -0
  37. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +52 -0
  38. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -0
  39. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +93 -0
  40. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -0
  41. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js +10 -0
  42. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js.map +1 -0
  43. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js +17 -0
  44. package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js.map +1 -0
  45. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +20 -14
  46. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  47. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +12 -0
  48. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +1 -0
  49. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +34 -0
  50. package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +1 -0
  51. package/dist/features/auth/comps/otp-input/otp-input-styled.js +26 -0
  52. package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +1 -0
  53. package/dist/features/auth/comps/otp-input/otp-input.js +50 -0
  54. package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -0
  55. package/dist/features/auth/comps/pill-button/pill-button-styled.js +44 -0
  56. package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -0
  57. package/dist/features/auth/comps/pill-button/pill-button.js +74 -0
  58. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -0
  59. package/dist/features/auth/comps/resend-otp/resend-otp.js +54 -47
  60. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  61. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +17 -0
  62. package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +1 -0
  63. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +67 -0
  64. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -0
  65. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +29 -17
  66. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
  67. package/dist/features/auth/comps/tabs/tabs-styled.js +22 -10
  68. package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -1
  69. package/dist/features/auth/comps/tabs/tabs.js +5 -5
  70. package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
  71. package/dist/features/auth/comps/user-list/user-item/user-item.js +30 -31
  72. package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
  73. package/dist/features/auth/comps/user-list/user-list.js +35 -34
  74. package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
  75. package/dist/features/auth/forgot-password/forgot-password-styled.js +14 -15
  76. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  77. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +6 -7
  78. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  79. package/dist/features/auth/login/login-styled.js +8 -9
  80. package/dist/features/auth/login/login-styled.js.map +1 -1
  81. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +19 -0
  82. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -0
  83. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +32 -0
  84. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -0
  85. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +44 -0
  86. package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -0
  87. package/dist/features/auth/pla-signup/signup-header/signup-header.js +54 -0
  88. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -0
  89. package/dist/features/auth/pla-signup/signup-options/signup-options.js +83 -0
  90. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -0
  91. package/dist/features/chapters-v2/utils/node-card-utils.js +9 -9
  92. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  93. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +4 -4
  94. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -1
  95. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +85 -85
  96. package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
  97. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +121 -98
  98. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  99. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +29 -28
  100. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
  101. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +43 -42
  102. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
  103. package/dist/features/circle-games/games/tutorial/tutorial.js +43 -35
  104. package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
  105. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
  106. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
  107. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
  108. package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
  109. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +26 -24
  110. package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
  111. package/dist/features/circle-games/sign-up/constants.js +3 -1
  112. package/dist/features/circle-games/sign-up/constants.js.map +1 -1
  113. package/dist/features/communication/pub-sub/constants.js +7 -4
  114. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  115. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
  116. package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
  117. package/dist/features/homework/homework-card-view.js +85 -97
  118. package/dist/features/homework/homework-card-view.js.map +1 -1
  119. package/dist/features/homework/homework-card.js +44 -42
  120. package/dist/features/homework/homework-card.js.map +1 -1
  121. package/dist/features/homework/hw-card-list/hw-card-list-view.js +31 -29
  122. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
  123. package/dist/features/homework/hw-card-list/hw-card-list.js +54 -48
  124. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
  125. package/dist/features/homework/utils.js +33 -27
  126. package/dist/features/homework/utils.js.map +1 -1
  127. package/dist/features/journey/comps/coachmark/coachmark.js +29 -27
  128. package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
  129. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +17 -11
  130. package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -1
  131. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +72 -0
  132. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +1 -0
  133. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +59 -0
  134. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +1 -0
  135. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +63 -0
  136. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -0
  137. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +67 -0
  138. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +1 -0
  139. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +70 -0
  140. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +1 -0
  141. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +59 -0
  142. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +1 -0
  143. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +59 -0
  144. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +1 -0
  145. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +70 -0
  146. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +1 -0
  147. package/dist/features/journey/journey-id/journey-id-student.js +2 -2
  148. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  149. package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
  150. package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
  151. package/dist/features/journey/use-journey/journey-context-provider.js +73 -72
  152. package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
  153. package/dist/features/journey/use-journey/journey-styled.js +6 -4
  154. package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
  155. package/dist/features/puzzles/api/puzzle-dashboard.js +10 -0
  156. package/dist/features/puzzles/api/puzzle-dashboard.js.map +1 -0
  157. package/dist/features/puzzles/app/puzzle-app-styled.js +85 -0
  158. package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -0
  159. package/dist/features/puzzles/app/puzzle-app-view.js +120 -0
  160. package/dist/features/puzzles/app/puzzle-app-view.js.map +1 -0
  161. package/dist/features/puzzles/app/puzzle-app.js +62 -0
  162. package/dist/features/puzzles/app/puzzle-app.js.map +1 -0
  163. package/dist/features/puzzles/comps/puzzle-card-styled.js +24 -69
  164. package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
  165. package/dist/features/puzzles/comps/puzzle-card.js +79 -30
  166. package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
  167. package/dist/features/puzzles/constants/puzzle-container.js +8 -0
  168. package/dist/features/puzzles/constants/puzzle-container.js.map +1 -0
  169. package/dist/features/puzzles/puzzle-analytics-events.js +11 -0
  170. package/dist/features/puzzles/puzzle-analytics-events.js.map +1 -0
  171. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +55 -25
  172. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
  173. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +55 -0
  174. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +1 -0
  175. package/dist/features/puzzles/puzzle-container/puzzle-container.js +100 -107
  176. package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
  177. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +37 -0
  178. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +1 -0
  179. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +110 -0
  180. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +1 -0
  181. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
  182. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
  183. package/dist/features/puzzles/utils/puzzle-pattern.js +28 -13
  184. package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
  185. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +6 -0
  186. package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +1 -0
  187. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +12 -60
  188. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  189. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +72 -77
  190. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  191. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +63 -0
  192. package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -0
  193. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +21 -0
  194. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -0
  195. package/dist/features/ui/buttons/button/button.js +41 -38
  196. package/dist/features/ui/buttons/button/button.js.map +1 -1
  197. package/dist/features/ui/buttons/icon-button/icon-button.js +31 -27
  198. package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
  199. package/dist/features/ui/buttons/text-button/text-button.js +26 -22
  200. package/dist/features/ui/buttons/text-button/text-button.js.map +1 -1
  201. package/dist/features/ui/drawer/drawer-styled.js +34 -0
  202. package/dist/features/ui/drawer/drawer-styled.js.map +1 -0
  203. package/dist/features/ui/drawer/drawer.js +42 -0
  204. package/dist/features/ui/drawer/drawer.js.map +1 -0
  205. package/dist/features/ui/error/error.js +65 -27
  206. package/dist/features/ui/error/error.js.map +1 -1
  207. package/dist/features/ui/grade-selector/grade-selector.js +33 -27
  208. package/dist/features/ui/grade-selector/grade-selector.js.map +1 -1
  209. package/dist/features/ui/image/image.js +1 -1
  210. package/dist/features/ui/image/image.js.map +1 -1
  211. package/dist/features/ui/lottie-animation/lottie-animation.js +25 -29
  212. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  213. package/dist/features/ui/modals/modal-styled.js +34 -58
  214. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  215. package/dist/features/ui/modals/modal.js +40 -14
  216. package/dist/features/ui/modals/modal.js.map +1 -1
  217. package/dist/features/ui/nudge/nudge-styled.js +14 -7
  218. package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
  219. package/dist/features/ui/nudge/nudge.js +13 -12
  220. package/dist/features/ui/nudge/nudge.js.map +1 -1
  221. package/dist/features/{stickers/sticker-selector/sticker-selector-styles.js → ui/sticker-grid/sticker-grid-styles.js} +3 -4
  222. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
  223. package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
  224. package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
  225. package/dist/features/ui/sticker-grid/sticker.js +57 -0
  226. package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
  227. package/dist/features/ui/stickers/constants.js +6 -0
  228. package/dist/features/ui/stickers/constants.js.map +1 -0
  229. package/dist/features/{stickers/stickers-effects/effects.js → ui/stickers/stickers-effects.js} +6 -6
  230. package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
  231. package/dist/features/{stickers/stickers-effects/stickers-effects-styled.js → ui/stickers/stickers-styled.js} +2 -2
  232. package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
  233. package/dist/features/ui/stickers/stickers-utils.js +91 -0
  234. package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
  235. package/dist/features/ui/stickers/stickers.js +40 -0
  236. package/dist/features/ui/stickers/stickers.js.map +1 -0
  237. package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
  238. package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
  239. package/dist/features/ui/streak-icon/streak-icon.js +17 -15
  240. package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
  241. package/dist/features/ui/tab/tab.js +30 -26
  242. package/dist/features/ui/tab/tab.js.map +1 -1
  243. package/dist/features/ui/text/text.js +40 -36
  244. package/dist/features/ui/text/text.js.map +1 -1
  245. package/dist/features/ui/theme/button.js +78 -78
  246. package/dist/features/ui/theme/button.js.map +1 -1
  247. package/dist/features/ui/theme/constants.js +4 -2
  248. package/dist/features/ui/theme/constants.js.map +1 -1
  249. package/dist/features/ui/theme/get-device.js +3 -3
  250. package/dist/features/ui/theme/get-device.js.map +1 -1
  251. package/dist/features/worksheet/worksheet/constants.js +12 -13
  252. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  253. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +28 -0
  254. package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +1 -0
  255. package/dist/features/worksheet/worksheet/worksheet-helpers.js +20 -19
  256. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  257. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +29 -25
  258. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  259. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +101 -47
  260. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
  261. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +244 -255
  262. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  263. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +242 -207
  264. package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
  265. package/dist/features/worksheet/worksheet/worksheet-styled.js +45 -36
  266. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  267. package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
  268. package/dist/features/worksheet/worksheet/worksheet.js +321 -325
  269. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  270. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
  271. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  272. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +44 -35
  273. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  274. package/dist/index.d.ts +281 -61
  275. package/dist/index.js +585 -537
  276. package/dist/index.js.map +1 -1
  277. package/dist/static/animated-avatar.1ad58b1d.json +1 -0
  278. package/dist/static/animated-avatar.69b07505.json +1 -0
  279. package/dist/static/animated-avatar.9c560b46.json +1 -0
  280. package/dist/static/calendar-purple.1a840b41.svg +1 -0
  281. package/dist/static/flying-disk.c7f6ed39.json +1 -0
  282. package/dist/static/graduation-cap.3be3340a.json +1 -0
  283. package/dist/static/handshake.287e7dfb.svg +1 -0
  284. package/dist/static/light-bulb.c6db0b23.json +1 -0
  285. package/dist/static/money.332aacf1.svg +1 -0
  286. package/dist/static/muscle.9bcfb8a7.json +1 -0
  287. package/dist/static/nudge-tap.0591aef4.json +1 -0
  288. package/dist/static/parent-avatar.822c7b9b.svg +1 -0
  289. package/dist/static/pencil.23df9da0.json +1 -0
  290. package/dist/static/plus-sign.de6af957.json +1 -0
  291. package/dist/static/puzzle-blue-lottie.7017e2e8.json +1 -0
  292. package/dist/static/puzzle-blue-lottie.bf64ebc5.json +12760 -0
  293. package/dist/static/puzzle-dashboard-banner.b7956519.svg +1 -0
  294. package/dist/static/puzzle-green-lottie.1da90698.json +1 -0
  295. package/dist/static/puzzle-orange-lottie.cfcf3724.json +1 -0
  296. package/dist/static/puzzle-pattern-blue.abff0164.svg +1 -0
  297. package/dist/static/puzzle-pattern-green.b8ba1840.svg +1 -0
  298. package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +1 -0
  299. package/dist/static/puzzle-pattern-purple.14b09759.svg +1 -0
  300. package/dist/static/puzzle-pattern-yellow.50917fab.svg +1 -0
  301. package/dist/static/puzzle-purple-lottie.e70de110.json +9860 -0
  302. package/dist/static/puzzle-yellow-lottie.275b5cf4.json +1 -0
  303. package/dist/static/racing-car.2cbf864e.json +1 -0
  304. package/dist/static/rocket.0a3ccab0.json +1 -0
  305. package/dist/static/shovel.abeec04c.json +1 -0
  306. package/dist/static/trustpilot.bd3d79e1.svg +1 -0
  307. package/package.json +1 -1
  308. package/dist/features/hooks/use-viewport/use-viewport.js +0 -22
  309. package/dist/features/hooks/use-viewport/use-viewport.js.map +0 -1
  310. package/dist/features/stickers/sticker-data.js +0 -234
  311. package/dist/features/stickers/sticker-data.js.map +0 -1
  312. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +0 -1
  313. package/dist/features/stickers/sticker-selector/sticker-selector.js +0 -25
  314. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +0 -1
  315. package/dist/features/stickers/sticker-selector/sticker.js +0 -57
  316. package/dist/features/stickers/sticker-selector/sticker.js.map +0 -1
  317. package/dist/features/stickers/stickers-effects/effects.js.map +0 -1
  318. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +0 -1
  319. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js +0 -93
  320. package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +0 -1
  321. package/dist/features/stickers/stickers-effects/stickers-effects.js +0 -39
  322. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +0 -1
  323. package/dist/static/nudge-tap.5cb30093.json +0 -1057
  324. package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +0 -1
  325. package/dist/static/puzzle-pattern-green.c9f84bbc.svg +0 -1
  326. package/dist/static/puzzle-pattern-orange.3da09665.svg +0 -1
  327. package/dist/static/puzzle-pattern-purple.5fb5a319.svg +0 -1
  328. package/dist/static/puzzle-pattern-yellow.aadbf457.svg +0 -1
@@ -0,0 +1,17 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { memo as o, useState as l, useEffect as m } from "react";
3
+ import { AnimatedText as c } from "./animated-text-styled.js";
4
+ const f = ({ text: e, speed: r = 30 }) => {
5
+ const [s, n] = l(0);
6
+ return m(() => {
7
+ n(0);
8
+ const a = setInterval(() => {
9
+ n((t) => t >= e.length ? (clearInterval(a), t) : t + 1);
10
+ }, r);
11
+ return () => clearInterval(a);
12
+ }, [e, r]), /* @__PURE__ */ i(c, { $renderAs: "ab2", $color: "WHITE", children: e.slice(0, s) });
13
+ }, T = o(f);
14
+ export {
15
+ T as default
16
+ };
17
+ //# sourceMappingURL=animated-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animated-text.js","sources":["../../../../../../src/features/auth/comps/animated-avatar-message/animated-text/animated-text.tsx"],"sourcesContent":["import type { IAnimatedTextProps } from './animated-text-types';\n\nimport React, { useEffect, useState, memo } from 'react';\n\nimport * as Styled from './animated-text-styled';\n\nconst AnimatedText: React.FC<IAnimatedTextProps> = ({ text, speed = 30 }) => {\n const [visibleChars, setVisibleChars] = useState(0);\n\n useEffect(() => {\n setVisibleChars(0);\n\n const interval = setInterval(() => {\n setVisibleChars(prev => {\n if (prev >= text.length) {\n clearInterval(interval);\n\n return prev;\n }\n\n return prev + 1;\n });\n }, speed);\n\n return () => clearInterval(interval);\n }, [text, speed]);\n\n return (\n <Styled.AnimatedText $renderAs=\"ab2\" $color=\"WHITE\">\n {text.slice(0, visibleChars)}\n </Styled.AnimatedText>\n );\n};\n\nexport default memo(AnimatedText);\n"],"names":["AnimatedText","text","speed","visibleChars","setVisibleChars","useState","useEffect","interval","prev","jsx","Styled.AnimatedText","AnimatedText$1","memo"],"mappings":";;;AAMA,MAAMA,IAA6C,CAAC,EAAE,MAAAC,GAAM,OAAAC,IAAQ,SAAS;AAC3E,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC;AAElD,SAAAC,EAAU,MAAM;AACd,IAAAF,EAAgB,CAAC;AAEX,UAAAG,IAAW,YAAY,MAAM;AACjC,MAAAH,EAAgB,CAAQI,MAClBA,KAAQP,EAAK,UACf,cAAcM,CAAQ,GAEfC,KAGFA,IAAO,CACf;AAAA,OACAN,CAAK;AAED,WAAA,MAAM,cAAcK,CAAQ;AAAA,EAAA,GAClC,CAACN,GAAMC,CAAK,CAAC,GAGb,gBAAAO,EAAAC,GAAA,EAAoB,WAAU,OAAM,QAAO,SACzC,UAAKT,EAAA,MAAM,GAAGE,CAAY,EAC7B,CAAA;AAEJ,GAEeQ,IAAAC,EAAKZ,CAAY;"}
@@ -1,23 +1,29 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { memo as m } from "react";
3
- import a from "../../../hooks/use-viewport/use-viewport.js";
4
- import c from "../../../ui/layout/flex-view.js";
5
- import { Container as h, ContentWrapper as s } from "./auth-page-layout-styled.js";
6
- const p = ({ leftBlock: i, rightBlock: o, isFullWidth: t }) => {
7
- const { isCompact: r } = a();
8
- return /* @__PURE__ */ n(h, { $width: "100%", $height: "100%", $flexDirection: "row", children: [
9
- /* @__PURE__ */ e(
10
- s,
1
+ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
+ import { memo as h } from "react";
3
+ import { useTheme as a } from "styled-components";
4
+ import s from "../../../ui/layout/flex-view.js";
5
+ import { EDeviceType as p } from "../../../ui/theme/constants.js";
6
+ import { Container as d, ContentWrapper as f } from "./auth-page-layout-styled.js";
7
+ const u = ({
8
+ leftBlock: i,
9
+ rightBlock: o,
10
+ isFullWidth: t,
11
+ rightBlockBg: m = "BLACK_2"
12
+ }) => {
13
+ const { device: n } = a(), e = n <= p.TABLET;
14
+ return /* @__PURE__ */ c(d, { $width: "100%", $height: "100%", $flexDirection: "row", children: [
15
+ /* @__PURE__ */ r(
16
+ f,
11
17
  {
12
- $width: t || r ? "100%" : "50%",
18
+ $width: t || e ? "100%" : "50%",
13
19
  $background: "BLACK_1",
14
20
  children: i
15
21
  }
16
22
  ),
17
- !r && o && !t && /* @__PURE__ */ e(c, { $width: "50%", $background: "BLACK_2", children: o })
23
+ !e && o && !t && /* @__PURE__ */ r(s, { $width: "50%", $background: m, children: o })
18
24
  ] });
19
- }, l = m(p);
25
+ }, A = h(u);
20
26
  export {
21
- l as default
27
+ A as default
22
28
  };
23
29
  //# sourceMappingURL=auth-page-layout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-page-layout.js","sources":["../../../../../src/features/auth/comps/auth-page-layout/auth-page-layout.tsx"],"sourcesContent":["import type { IAuthPageLayoutProps } from './auth-page-layout-types';\n\nimport { memo, type FC } from 'react';\n\nimport useViewport from '../../../hooks/use-viewport/use-viewport';\nimport FlexView from '../../../ui/layout/flex-view';\nimport * as Styled from './auth-page-layout-styled';\n\nconst AuthPageLayout: FC<IAuthPageLayoutProps> = ({ leftBlock, rightBlock, isFullWidth }) => {\n const { isCompact } = useViewport();\n const showRightBlock = !isCompact && rightBlock && !isFullWidth;\n\n return (\n <Styled.Container $width=\"100%\" $height=\"100%\" $flexDirection=\"row\">\n <Styled.ContentWrapper\n $width={isFullWidth || isCompact ? '100%' : '50%'}\n $background=\"BLACK_1\"\n >\n {leftBlock}\n </Styled.ContentWrapper>\n {showRightBlock && (\n <FlexView $width=\"50%\" $background=\"BLACK_2\">\n {rightBlock}\n </FlexView>\n )}\n </Styled.Container>\n );\n};\n\nexport default memo(AuthPageLayout);\n"],"names":["AuthPageLayout","leftBlock","rightBlock","isFullWidth","isCompact","useViewport","jsxs","Styled.Container","jsx","Styled.ContentWrapper","FlexView","authPageLayout","memo"],"mappings":";;;;;AAQA,MAAMA,IAA2C,CAAC,EAAE,WAAAC,GAAW,YAAAC,GAAY,aAAAC,QAAkB;AACrF,QAAA,EAAE,WAAAC,MAAcC;AAIpB,SAAA,gBAAAC,EAACC,GAAA,EAAiB,QAAO,QAAO,SAAQ,QAAO,gBAAe,OAC5D,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,QAAQN,KAAeC,IAAY,SAAS;AAAA,QAC5C,aAAY;AAAA,QAEX,UAAAH;AAAA,MAAA;AAAA,IACH;AAAA,IATmB,CAACG,KAAaF,KAAc,CAACC,KAW7C,gBAAAK,EAAAE,GAAA,EAAS,QAAO,OAAM,aAAY,WAChC,UACHR,GAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeS,IAAAC,EAAKZ,CAAc;"}
1
+ {"version":3,"file":"auth-page-layout.js","sources":["../../../../../src/features/auth/comps/auth-page-layout/auth-page-layout.tsx"],"sourcesContent":["import type { IAuthPageLayoutProps } from './auth-page-layout-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport * as Styled from './auth-page-layout-styled';\n\nconst AuthPageLayout: FC<IAuthPageLayoutProps> = ({\n leftBlock,\n rightBlock,\n isFullWidth,\n rightBlockBg = 'BLACK_2',\n}) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const showRightBlock = !isCompact && rightBlock && !isFullWidth;\n\n return (\n <Styled.Container $width=\"100%\" $height=\"100%\" $flexDirection=\"row\">\n <Styled.ContentWrapper\n $width={isFullWidth || isCompact ? '100%' : '50%'}\n $background=\"BLACK_1\"\n >\n {leftBlock}\n </Styled.ContentWrapper>\n {showRightBlock && (\n <FlexView $width=\"50%\" $background={rightBlockBg}>\n {rightBlock}\n </FlexView>\n )}\n </Styled.Container>\n );\n};\n\nexport default memo(AuthPageLayout);\n"],"names":["AuthPageLayout","leftBlock","rightBlock","isFullWidth","rightBlockBg","device","useTheme","isCompact","EDeviceType","jsxs","Styled.Container","jsx","Styled.ContentWrapper","FlexView","authPageLayout","memo"],"mappings":";;;;;;AASA,MAAMA,IAA2C,CAAC;AAAA,EAChD,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC,IAAe;AACjB,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY;AAItC,SAAA,gBAAAC,EAACC,GAAA,EAAiB,QAAO,QAAO,SAAQ,QAAO,gBAAe,OAC5D,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,QAAQT,KAAeI,IAAY,SAAS;AAAA,QAC5C,aAAY;AAAA,QAEX,UAAAN;AAAA,MAAA;AAAA,IACH;AAAA,IATmB,CAACM,KAAaL,KAAc,CAACC,KAW7C,gBAAAQ,EAAAE,GAAA,EAAS,QAAO,OAAM,aAAaT,GACjC,UACHF,GAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeY,IAAAC,EAAKf,CAAc;"}
@@ -0,0 +1,12 @@
1
+ import o from "styled-components";
2
+ import t from "../../../ui/layout/flex-view.js";
3
+ const r = o(t)`
4
+ overflow: hidden;
5
+ `, n = o(t)`
6
+ transition: width 0.3s ease-in-out;
7
+ `;
8
+ export {
9
+ r as Container,
10
+ n as Filler
11
+ };
12
+ //# sourceMappingURL=linear-progress-bar-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-progress-bar-styled.js","sources":["../../../../../src/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Container = styled(FlexView)`\n overflow: hidden;\n`;\n\nexport const Filler = styled(FlexView)`\n transition: width 0.3s ease-in-out;\n`;\n"],"names":["Container","styled","FlexView","Filler"],"mappings":";;AAIa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAASF,EAAOC,CAAQ;AAAA;AAAA;"}
@@ -0,0 +1,34 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { memo as s } from "react";
3
+ import { Container as m, Filler as h } from "./linear-progress-bar-styled.js";
4
+ const $ = ({
5
+ percentage: o,
6
+ height: t = 8,
7
+ backgroundColor: a = "WHITE_T_10",
8
+ fillColor: i = "YELLOW_4",
9
+ borderRadius: r = 0
10
+ }) => {
11
+ const n = Math.min(Math.max(o, 0), 100);
12
+ return /* @__PURE__ */ e(
13
+ m,
14
+ {
15
+ $width: "100%",
16
+ $height: t,
17
+ $borderRadius: r,
18
+ $background: a,
19
+ children: /* @__PURE__ */ e(
20
+ h,
21
+ {
22
+ $width: `${n}%`,
23
+ $background: i,
24
+ $height: "100%",
25
+ $borderRadius: r
26
+ }
27
+ )
28
+ }
29
+ );
30
+ }, f = s($);
31
+ export {
32
+ f as default
33
+ };
34
+ //# sourceMappingURL=linear-progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-progress-bar.js","sources":["../../../../../src/features/auth/comps/linear-progress-bar/linear-progress-bar.tsx"],"sourcesContent":["import type { ILinearProgressBarProps } from './linear-progress-bar-props';\n\nimport { memo, type FC } from 'react';\n\nimport * as Styled from './linear-progress-bar-styled';\n\nconst LinearProgressBar: FC<ILinearProgressBarProps> = ({\n percentage,\n height = 8,\n backgroundColor = 'WHITE_T_10',\n fillColor = 'YELLOW_4',\n borderRadius = 0,\n}) => {\n const safePercentage = Math.min(Math.max(percentage, 0), 100);\n\n return (\n <Styled.Container\n $width=\"100%\"\n $height={height}\n $borderRadius={borderRadius}\n $background={backgroundColor}\n >\n <Styled.Filler\n $width={`${safePercentage}%`}\n $background={fillColor}\n $height=\"100%\"\n $borderRadius={borderRadius}\n />\n </Styled.Container>\n );\n};\n\nexport default memo(LinearProgressBar);\n"],"names":["LinearProgressBar","percentage","height","backgroundColor","fillColor","borderRadius","safePercentage","jsx","Styled.Container","Styled.Filler","linearProgressBar","memo"],"mappings":";;;AAMA,MAAMA,IAAiD,CAAC;AAAA,EACtD,YAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,iBAAAC,IAAkB;AAAA,EAClB,WAAAC,IAAY;AAAA,EACZ,cAAAC,IAAe;AACjB,MAAM;AACE,QAAAC,IAAiB,KAAK,IAAI,KAAK,IAAIL,GAAY,CAAC,GAAG,GAAG;AAG1D,SAAA,gBAAAM;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,QAAO;AAAA,MACP,SAASN;AAAA,MACT,eAAeG;AAAA,MACf,aAAaF;AAAA,MAEb,UAAA,gBAAAI;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,QAAQ,GAAGH,CAAc;AAAA,UACzB,aAAaF;AAAA,UACb,SAAQ;AAAA,UACR,eAAeC;AAAA,QAAA;AAAA,MACjB;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeK,IAAAC,EAAKX,CAAiB;"}
@@ -0,0 +1,26 @@
1
+ import t, { css as r } from "styled-components";
2
+ import n from "../../../ui/layout/flex-view.js";
3
+ const l = t(n)``, p = t.input`
4
+ width: 56px;
5
+ height: 56px;
6
+ font-size: 24px;
7
+ text-align: center;
8
+ font-family: 'Athletics-Light';
9
+ border: ${({ theme: o }) => `2px solid ${o.colors.BLACK_5}`};
10
+ color: ${({ theme: o }) => o.colors.WHITE};
11
+ background-color: ${({ theme: o }) => o.colors.BLACK_3};
12
+ outline: none;
13
+ transition: all 0.3s ease;
14
+ ${({ $hasError: o }) => o && r`
15
+ border-color: ${({ theme: e }) => e.colors.ORANGE_4};
16
+ `}
17
+ &::-webkit-outer-spin-button,
18
+ &::-webkit-inner-spin-button {
19
+ -webkit-appearance: none;
20
+ }
21
+ `;
22
+ export {
23
+ p as InputBox,
24
+ l as Wrapper
25
+ };
26
+ //# sourceMappingURL=otp-input-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otp-input-styled.js","sources":["../../../../../src/features/auth/comps/otp-input/otp-input-styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)``;\n\nexport const InputBox = styled.input<{ $hasError: boolean }>`\n width: 56px;\n height: 56px;\n font-size: 24px;\n text-align: center;\n font-family: 'Athletics-Light';\n border: ${({ theme }) => `2px solid ${theme.colors.BLACK_5}`};\n color: ${({ theme }) => theme.colors.WHITE};\n background-color: ${({ theme }) => theme.colors.BLACK_3};\n outline: none;\n transition: all 0.3s ease;\n ${({ $hasError }) =>\n $hasError &&\n css`\n border-color: ${({ theme }) => theme.colors.ORANGE_4};\n `}\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n`;\n"],"names":["Wrapper","styled","FlexView","InputBox","theme","$hasError","css"],"mappings":";;AAIa,MAAAA,IAAUC,EAAOC,CAAQ,KAEzBC,IAAWF,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAMnB,CAAC,EAAE,OAAAG,EAAM,MAAM,aAAaA,EAAM,OAAO,OAAO,EAAE;AAAA,WACnD,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,sBACtB,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,IAGrD,CAAC,EAAE,WAAAC,QACHA,KACAC;AAAA,sBACkB,CAAC,EAAE,OAAAF,EAAA,MAAYA,EAAM,OAAO,QAAQ;AAAA,KACrD;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,50 @@
1
+ import { jsxs as h, jsx as a } from "react/jsx-runtime";
2
+ import { memo as I, useRef as w, useCallback as f } from "react";
3
+ import { LOTTIE as y } from "../../../../assets/lottie/lottie.js";
4
+ import g from "../../../ui/lottie-animation/lottie-animation.js";
5
+ import { Wrapper as E, InputBox as T } from "./otp-input-styled.js";
6
+ const $ = ({
7
+ length: s = 4,
8
+ value: e,
9
+ onChange: c,
10
+ error: p,
11
+ isBusy: u = !1
12
+ }) => {
13
+ const n = w([]), i = f(
14
+ (o, t) => {
15
+ var m;
16
+ const r = e.split("");
17
+ r[o] = t, c(r.join("")), t && o < s - 1 && ((m = n.current[o + 1]) == null || m.focus());
18
+ },
19
+ [s, c, e]
20
+ ), l = f(
21
+ (o, t) => {
22
+ var r;
23
+ o.key === "Backspace" && !e[t] && t > 0 && ((r = n.current[t - 1]) == null || r.focus());
24
+ },
25
+ [e]
26
+ );
27
+ return /* @__PURE__ */ h(E, { $flexDirection: "row", $flexColumnGapX: 1, $alignItems: "center", children: [
28
+ Array.from({ length: s }).map((o, t) => /* @__PURE__ */ a(
29
+ T,
30
+ {
31
+ type: "number",
32
+ maxLength: 1,
33
+ value: e[t] || "",
34
+ onChange: (r) => i(t, r.target.value),
35
+ onFocus: (r) => r.target.select(),
36
+ onKeyDown: (r) => l(r, t),
37
+ $hasError: !!p,
38
+ ref: (r) => {
39
+ r && (n.current[t] = r);
40
+ }
41
+ },
42
+ t
43
+ )),
44
+ u && /* @__PURE__ */ a(g, { src: y.SPINNER_WHITE, height: 24, width: 24 })
45
+ ] });
46
+ }, R = I($);
47
+ export {
48
+ R as default
49
+ };
50
+ //# sourceMappingURL=otp-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otp-input.js","sources":["../../../../../src/features/auth/comps/otp-input/otp-input.tsx"],"sourcesContent":["import type { IOTPInputProps } from './otp-input-types';\n\nimport { useCallback, useRef, memo } from 'react';\n\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport * as styled from './otp-input-styled';\n\nconst OTPInput: React.FC<IOTPInputProps> = ({\n length = 4,\n value,\n onChange,\n error,\n isBusy = false,\n}) => {\n const inputsRef = useRef<HTMLInputElement[]>([]);\n\n const handleChange = useCallback(\n (index: number, val: string) => {\n const newValue = value.split('');\n\n newValue[index] = val;\n onChange(newValue.join(''));\n\n if (val && index < length - 1) {\n inputsRef.current[index + 1]?.focus();\n }\n },\n [length, onChange, value],\n );\n\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLInputElement>, index: number) => {\n if (e.key === 'Backspace' && !value[index] && index > 0) {\n inputsRef.current[index - 1]?.focus();\n }\n },\n [value],\n );\n\n return (\n <styled.Wrapper $flexDirection=\"row\" $flexColumnGapX={1} $alignItems=\"center\">\n {Array.from({ length }).map((_, index) => (\n <styled.InputBox\n key={index}\n type=\"number\"\n maxLength={1}\n value={value[index] || ''}\n onChange={e => handleChange(index, e.target.value)}\n onFocus={e => e.target.select()}\n onKeyDown={e => handleKeyDown(e, index)}\n $hasError={!!error}\n ref={el => {\n if (el) inputsRef.current[index] = el;\n }}\n />\n ))}\n {isBusy && <LottieAnimation src={LOTTIE.SPINNER_WHITE} height={24} width={24} />}\n </styled.Wrapper>\n );\n};\n\nexport default memo(OTPInput);\n"],"names":["OTPInput","length","value","onChange","error","isBusy","inputsRef","useRef","handleChange","useCallback","index","val","newValue","_a","handleKeyDown","e","jsxs","styled.Wrapper","_","jsx","styled.InputBox","el","LottieAnimation","LOTTIE","otpInput","memo"],"mappings":";;;;;AAQA,MAAMA,IAAqC,CAAC;AAAA,EAC1C,QAAAC,IAAS;AAAA,EACT,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC,IAAS;AACX,MAAM;AACE,QAAAC,IAAYC,EAA2B,CAAA,CAAE,GAEzCC,IAAeC;AAAA,IACnB,CAACC,GAAeC,MAAgB;;AACxB,YAAAC,IAAWV,EAAM,MAAM,EAAE;AAE/B,MAAAU,EAASF,CAAK,IAAIC,GACTR,EAAAS,EAAS,KAAK,EAAE,CAAC,GAEtBD,KAAOD,IAAQT,IAAS,OAC1BY,IAAAP,EAAU,QAAQI,IAAQ,CAAC,MAA3B,QAAAG,EAA8B;AAAA,IAElC;AAAA,IACA,CAACZ,GAAQE,GAAUD,CAAK;AAAA,EAAA,GAGpBY,IAAgBL;AAAA,IACpB,CAACM,GAA0CL,MAAkB;;AACvD,MAAAK,EAAE,QAAQ,eAAe,CAACb,EAAMQ,CAAK,KAAKA,IAAQ,OACpDG,IAAAP,EAAU,QAAQI,IAAQ,CAAC,MAA3B,QAAAG,EAA8B;AAAA,IAElC;AAAA,IACA,CAACX,CAAK;AAAA,EAAA;AAIN,SAAA,gBAAAc,EAACC,GAAA,EAAe,gBAAe,OAAM,iBAAiB,GAAG,aAAY,UAClE,UAAA;AAAA,IAAM,MAAA,KAAK,EAAE,QAAAhB,EAAQ,CAAA,EAAE,IAAI,CAACiB,GAAGR,MAC9B,gBAAAS;AAAA,MAACC;AAAAA,MAAA;AAAA,QAEC,MAAK;AAAA,QACL,WAAW;AAAA,QACX,OAAOlB,EAAMQ,CAAK,KAAK;AAAA,QACvB,UAAU,CAAKK,MAAAP,EAAaE,GAAOK,EAAE,OAAO,KAAK;AAAA,QACjD,SAAS,CAAAA,MAAKA,EAAE,OAAO,OAAO;AAAA,QAC9B,WAAW,CAAAA,MAAKD,EAAcC,GAAGL,CAAK;AAAA,QACtC,WAAW,CAAC,CAACN;AAAA,QACb,KAAK,CAAMiB,MAAA;AACT,UAAIA,MAAIf,EAAU,QAAQI,CAAK,IAAIW;AAAA,QACrC;AAAA,MAAA;AAAA,MAVKX;AAAA,IAAA,CAYR;AAAA,IACAL,uBAAWiB,GAAgB,EAAA,KAAKC,EAAO,eAAe,QAAQ,IAAI,OAAO,GAAI,CAAA;AAAA,EAChF,EAAA,CAAA;AAEJ,GAEeC,IAAAC,EAAKzB,CAAQ;"}
@@ -0,0 +1,44 @@
1
+ import n, { css as p } from "styled-components";
2
+ import a from "../../../ui/layout/flex-view.js";
3
+ import $ from "../../../ui/text/text.js";
4
+ const T = n.button`
5
+ ${({ selected: o, disabled: r, width: t, height: l, borderColor: s, theme: i }) => {
6
+ const c = r ? i.colors.WHITE_T_10 : o ? i.colors.WHITE_1 : i.colors.BLACK_1, e = r ? i.colors.WHITE_T_15 : s;
7
+ return p`
8
+ position: relative;
9
+ display: inline-flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ cursor: ${r ? "not-allowed" : "pointer"};
13
+ transition: all 0.3s ease;
14
+ padding: 7.5px 16px;
15
+ border-radius: 40px;
16
+ border: 1px solid ${e};
17
+ width: ${t ? `${t}` : "auto"}${typeof t == "number" ? "px" : ""};
18
+ height: ${l ? `${l}px` : "auto"};
19
+ background-color: ${c};
20
+ &:hover {
21
+ background-color: ${!o && !r ? i.colors.WHITE_T_10 : void 0};
22
+ }
23
+ `;
24
+ }}
25
+ `, d = n(a)`
26
+ visibility: ${({ $showLottie: o }) => o ? "visible" : "hidden"};
27
+ `, f = n($)`
28
+ transition: all 0.3s ease-in-out;
29
+ position: relative;
30
+
31
+ ${({ shouldOffsetLabel: o }) => `
32
+ left: ${o ? "0" : "-10px"};
33
+ `};
34
+
35
+ ${({ selected: o, disabled: r, theme: t, textColor: l }) => `
36
+ color: ${r ? t.colors.WHITE_T_38 : o ? t.colors.BLACK_1 : l};
37
+ `};
38
+ `;
39
+ export {
40
+ d as IconWrapper,
41
+ f as Label,
42
+ T as Wrapper
43
+ };
44
+ //# sourceMappingURL=pill-button-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pill-button-styled.js","sources":["../../../../../src/features/auth/comps/pill-button/pill-button-styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\nexport const Wrapper = styled.button<{\n selected: boolean;\n disabled: boolean;\n width?: number | string;\n height?: number;\n borderColor?: string;\n}>`\n ${({ selected, disabled, width, height, borderColor, theme }) => {\n const defaultBgColor = disabled\n ? theme.colors.WHITE_T_10\n : selected\n ? theme.colors.WHITE_1\n : theme.colors.BLACK_1;\n\n const borderColorVal = disabled ? theme.colors.WHITE_T_15 : borderColor;\n\n return css`\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: ${disabled ? 'not-allowed' : 'pointer'};\n transition: all 0.3s ease;\n padding: 7.5px 16px;\n border-radius: 40px;\n border: 1px solid ${borderColorVal};\n width: ${width ? `${width}` : 'auto'}${typeof width === 'number' ? 'px' : ''};\n height: ${height ? `${height}px` : 'auto'};\n background-color: ${defaultBgColor};\n &:hover {\n background-color: ${!selected && !disabled ? theme.colors.WHITE_T_10 : undefined};\n }\n `;\n }}\n`;\n\nexport const IconWrapper = styled(FlexView)<{\n $showLottie: boolean;\n}>`\n visibility: ${({ $showLottie }) => ($showLottie ? 'visible' : 'hidden')};\n`;\n\nexport const Label = styled(Text)<{\n selected: boolean;\n disabled: boolean;\n shouldOffsetLabel: boolean;\n textColor: string;\n}>`\n transition: all 0.3s ease-in-out;\n position: relative;\n\n ${({ shouldOffsetLabel }) => `\n left: ${shouldOffsetLabel ? '0' : '-10px'};\n `};\n\n ${({ selected, disabled, theme, textColor }) => `\n color: ${disabled ? theme.colors.WHITE_T_38 : selected ? theme.colors.BLACK_1 : textColor};\n `};\n`;\n"],"names":["Wrapper","styled","selected","disabled","width","height","borderColor","theme","defaultBgColor","borderColorVal","css","IconWrapper","FlexView","$showLottie","Label","Text","shouldOffsetLabel","textColor"],"mappings":";;;AAKO,MAAMA,IAAUC,EAAO;AAAA,IAO1B,CAAC,EAAE,UAAAC,GAAU,UAAAC,GAAU,OAAAC,GAAO,QAAAC,GAAQ,aAAAC,GAAa,OAAAC,QAAY;AACzD,QAAAC,IAAiBL,IACnBI,EAAM,OAAO,aACbL,IACEK,EAAM,OAAO,UACbA,EAAM,OAAO,SAEbE,IAAiBN,IAAWI,EAAM,OAAO,aAAaD;AAErD,SAAAI;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKKP,IAAW,gBAAgB,SAAS;AAAA;AAAA;AAAA;AAAA,0BAI1BM,CAAc;AAAA,eACzBL,IAAQ,GAAGA,CAAK,KAAK,MAAM,GAAG,OAAOA,KAAU,WAAW,OAAO,EAAE;AAAA,gBAClEC,IAAS,GAAGA,CAAM,OAAO,MAAM;AAAA,0BACrBG,CAAc;AAAA;AAAA,4BAEZ,CAACN,KAAY,CAACC,IAAWI,EAAM,OAAO,aAAa,MAAS;AAAA;AAAA;AAGtF,CAAC;AAAA,GAGUI,IAAcV,EAAOW,CAAQ;AAAA,gBAG1B,CAAC,EAAE,aAAAC,EAAA,MAAmBA,IAAc,YAAY,QAAS;AAAA,GAG5DC,IAAQb,EAAOc,CAAI;AAAA;AAAA;AAAA;AAAA,IAS5B,CAAC,EAAE,mBAAAC,EAAA,MAAwB;AAAA,YACnBA,IAAoB,MAAM,OAAO;AAAA,GAC1C;AAAA;AAAA,IAEC,CAAC,EAAE,UAAAd,GAAU,UAAAC,GAAU,OAAAI,GAAO,WAAAU,EAAgB,MAAA;AAAA,aACrCd,IAAWI,EAAM,OAAO,aAAaL,IAAWK,EAAM,OAAO,UAAUU,CAAS;AAAA,GAC1F;AAAA;"}
@@ -0,0 +1,74 @@
1
+ import { jsx as o, jsxs as b } from "react/jsx-runtime";
2
+ import { memo as H, useState as L, useCallback as l, useEffect as M } from "react";
3
+ import { useTheme as R } from "styled-components";
4
+ import _ from "../../../ui/arrow-tooltip/arrow-tooltip.js";
5
+ import j from "../../../ui/layout/flex-view.js";
6
+ import y from "../../../ui/lottie-animation/lottie-animation.js";
7
+ import { Wrapper as B, IconWrapper as O, Label as P } from "./pill-button-styled.js";
8
+ const X = {
9
+ autoplay: !0,
10
+ loop: !0,
11
+ renderer: "canvas"
12
+ }, k = ({
13
+ id: i,
14
+ label: d,
15
+ selected: t = !1,
16
+ disabled: e = !1,
17
+ animatedLabel: u = "",
18
+ icon: r,
19
+ onClick: a,
20
+ tooltip: c,
21
+ width: A
22
+ }) => {
23
+ const [g, f] = L(!1), [n, v] = L(!1), { colors: h } = R(), s = !!u, $ = l(() => {
24
+ a(i);
25
+ }, [i, a]), C = l(() => f(!0), []), E = l(() => f(!1), []);
26
+ M(() => {
27
+ if (!s || e) return;
28
+ const T = setInterval(() => {
29
+ v((W) => !W);
30
+ }, 1e3);
31
+ return () => clearInterval(T);
32
+ }, [e, s]);
33
+ const m = !!r && !e && (s || t || g), I = h[n ? "YELLOW_4" : "WHITE_1"], w = h[n && !t ? "YELLOW_4" : "WHITE_1"], p = n ? u : d, x = /* @__PURE__ */ o(
34
+ B,
35
+ {
36
+ selected: t,
37
+ disabled: e,
38
+ onClick: $,
39
+ onMouseEnter: C,
40
+ onMouseLeave: E,
41
+ width: A,
42
+ borderColor: I,
43
+ children: /* @__PURE__ */ b(
44
+ j,
45
+ {
46
+ $flexDirection: "row",
47
+ $alignItems: "center",
48
+ $justifyContent: "center",
49
+ $flexColumnGapX: 0.25,
50
+ children: [
51
+ r && /* @__PURE__ */ o(O, { $widthX: 1, $heightX: 1, $showLottie: m, children: /* @__PURE__ */ o(y, { src: r, settings: X }) }),
52
+ /* @__PURE__ */ o(
53
+ P,
54
+ {
55
+ shouldOffsetLabel: m || !r,
56
+ selected: t,
57
+ disabled: e,
58
+ $renderAs: n ? t ? "ub3-bold" : "ub3" : t ? "ub2-bold" : "ub2",
59
+ textColor: w,
60
+ children: p
61
+ },
62
+ p
63
+ )
64
+ ]
65
+ }
66
+ )
67
+ }
68
+ );
69
+ return e && c ? /* @__PURE__ */ o(_, { renderAs: "primary", tooltipItem: c, position: "top", children: x }) : x;
70
+ }, K = H(k);
71
+ export {
72
+ K as default
73
+ };
74
+ //# sourceMappingURL=pill-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pill-button.js","sources":["../../../../../src/features/auth/comps/pill-button/pill-button.tsx"],"sourcesContent":["import type { IPillButtonProps } from './pill-button-types';\n\nimport { useCallback, useEffect, useState, type FC, memo } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport * as Styled from './pill-button-styled';\n\nconst lottieSettings = {\n autoplay: true,\n loop: true,\n renderer: 'canvas',\n};\n\nconst PillButton: FC<IPillButtonProps> = ({\n id,\n label,\n selected = false,\n disabled = false,\n animatedLabel = '',\n icon,\n onClick,\n tooltip,\n width,\n}) => {\n const [isHovered, setHovered] = useState(false);\n const [highlightPhase, setHighlightPhase] = useState(false);\n const { colors } = useTheme();\n const shouldAnimate = !!animatedLabel;\n\n const handleClick = useCallback(() => {\n onClick(id);\n }, [id, onClick]);\n\n const handleMouseEnter = useCallback(() => setHovered(true), []);\n const handleMouseLeave = useCallback(() => setHovered(false), []);\n\n useEffect(() => {\n if (!shouldAnimate || disabled) return;\n\n const interval = setInterval(() => {\n setHighlightPhase(prev => !prev);\n }, 1000);\n\n return () => clearInterval(interval);\n }, [disabled, shouldAnimate]);\n\n const showLottie = !!icon && !disabled && (shouldAnimate || selected || isHovered);\n\n const borderColor = colors[highlightPhase ? 'YELLOW_4' : 'WHITE_1'];\n const textColor = colors[highlightPhase && !selected ? 'YELLOW_4' : 'WHITE_1'];\n const currentLabel = highlightPhase ? animatedLabel : label;\n const defaultTextRenderAs = selected ? 'ub2-bold' : 'ub2';\n const textRenderAs = highlightPhase ? (selected ? 'ub3-bold' : 'ub3') : defaultTextRenderAs;\n\n const ButtonContent = (\n <Styled.Wrapper\n selected={selected}\n disabled={disabled}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n width={width}\n borderColor={borderColor}\n >\n <FlexView\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $flexColumnGapX={0.25}\n >\n {icon && (\n <Styled.IconWrapper $widthX={1} $heightX={1} $showLottie={showLottie}>\n <LottieAnimation src={icon} settings={lottieSettings} />\n </Styled.IconWrapper>\n )}\n <Styled.Label\n key={currentLabel}\n shouldOffsetLabel={showLottie || !icon}\n selected={selected}\n disabled={disabled}\n $renderAs={textRenderAs}\n textColor={textColor}\n >\n {currentLabel}\n </Styled.Label>\n </FlexView>\n </Styled.Wrapper>\n );\n\n return disabled && tooltip ? (\n <ArrowTooltip renderAs=\"primary\" tooltipItem={tooltip} position=\"top\">\n {ButtonContent}\n </ArrowTooltip>\n ) : (\n ButtonContent\n );\n};\n\nexport default memo(PillButton);\n"],"names":["lottieSettings","PillButton","id","label","selected","disabled","animatedLabel","icon","onClick","tooltip","width","isHovered","setHovered","useState","highlightPhase","setHighlightPhase","colors","useTheme","shouldAnimate","handleClick","useCallback","handleMouseEnter","handleMouseLeave","useEffect","interval","prev","showLottie","borderColor","textColor","currentLabel","ButtonContent","jsx","Styled.Wrapper","jsxs","FlexView","Styled.IconWrapper","LottieAnimation","Styled.Label","ArrowTooltip","pillButton","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAiB;AAAA,EACrB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ,GAEMC,IAAmC,CAAC;AAAA,EACxC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AAAA,EACX,eAAAC,IAAgB;AAAA,EAChB,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AACF,MAAM;AACJ,QAAM,CAACC,GAAWC,CAAU,IAAIC,EAAS,EAAK,GACxC,CAACC,GAAgBC,CAAiB,IAAIF,EAAS,EAAK,GACpD,EAAE,QAAAG,MAAWC,KACbC,IAAgB,CAAC,CAACZ,GAElBa,IAAcC,EAAY,MAAM;AACpC,IAAAZ,EAAQN,CAAE;AAAA,EAAA,GACT,CAACA,GAAIM,CAAO,CAAC,GAEVa,IAAmBD,EAAY,MAAMR,EAAW,EAAI,GAAG,CAAA,CAAE,GACzDU,IAAmBF,EAAY,MAAMR,EAAW,EAAK,GAAG,CAAA,CAAE;AAEhE,EAAAW,EAAU,MAAM;AACV,QAAA,CAACL,KAAiBb,EAAU;AAE1B,UAAAmB,IAAW,YAAY,MAAM;AACf,MAAAT,EAAA,CAAAU,MAAQ,CAACA,CAAI;AAAA,OAC9B,GAAI;AAEA,WAAA,MAAM,cAAcD,CAAQ;AAAA,EAAA,GAClC,CAACnB,GAAUa,CAAa,CAAC;AAE5B,QAAMQ,IAAa,CAAC,CAACnB,KAAQ,CAACF,MAAaa,KAAiBd,KAAYO,IAElEgB,IAAcX,EAAOF,IAAiB,aAAa,SAAS,GAC5Dc,IAAYZ,EAAOF,KAAkB,CAACV,IAAW,aAAa,SAAS,GACvEyB,IAAef,IAAiBR,IAAgBH,GAIhD2B,IACJ,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,UAAA5B;AAAA,MACA,UAAAC;AAAA,MACA,SAASc;AAAA,MACT,cAAcE;AAAA,MACd,cAAcC;AAAA,MACd,OAAAZ;AAAA,MACA,aAAAiB;AAAA,MAEA,UAAA,gBAAAM;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,gBAAe;AAAA,UACf,aAAY;AAAA,UACZ,iBAAgB;AAAA,UAChB,iBAAiB;AAAA,UAEhB,UAAA;AAAA,YAAA3B,uBACE4B,GAAA,EAAmB,SAAS,GAAG,UAAU,GAAG,aAAaT,GACxD,4BAACU,GAAgB,EAAA,KAAK7B,GAAM,UAAUP,EAAgB,CAAA,GACxD;AAAA,YAEF,gBAAA+B;AAAA,cAACM;AAAAA,cAAA;AAAA,gBAEC,mBAAmBX,KAAc,CAACnB;AAAA,gBAClC,UAAAH;AAAA,gBACA,UAAAC;AAAA,gBACA,WA5BaS,IAAkBV,IAAW,aAAa,QADnCA,IAAW,aAAa;AAAA,gBA8B5C,WAAAwB;AAAA,gBAEC,UAAAC;AAAA,cAAA;AAAA,cAPIA;AAAA,YAQP;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIG,SAAAxB,KAAYI,IACjB,gBAAAsB,EAACO,GAAa,EAAA,UAAS,WAAU,aAAa7B,GAAS,UAAS,OAC7D,UAAAqB,EAAA,CACH,IAEAA;AAEJ,GAEeS,IAAAC,EAAKvC,CAAU;"}
@@ -1,65 +1,72 @@
1
- import { jsx as e, jsxs as n, Fragment as _ } from "react/jsx-runtime";
2
- import { memo as x, useCallback as a } from "react";
3
- import k from "../../../ui/buttons/button/button.js";
4
- import u from "../../../ui/buttons/text-button/text-button.js";
5
- import i from "../../../ui/layout/flex-view.js";
6
- import c from "../../../ui/text/text.js";
7
- import { useResendTimer as C } from "./hooks/use-resend-timer.js";
1
+ import { jsx as r, jsxs as n, Fragment as C } from "react/jsx-runtime";
2
+ import { memo as g, useCallback as f } from "react";
3
+ import w from "../../../ui/buttons/button/button.js";
4
+ import $ from "../../../ui/buttons/text-button/text-button.js";
5
+ import m from "../../../ui/layout/flex-view.js";
6
+ import a from "../../../ui/text/text.js";
7
+ import { useResendTimer as A } from "./hooks/use-resend-timer.js";
8
8
  const I = ({
9
- onResendOTP: r,
10
- onResendVoiceOTP: l,
11
- timerSeconds: f = 15,
12
- showVoiceOTP: $ = !1,
13
- disabled: m,
14
- renderAs: h = "text",
15
- width: p
9
+ onResendOTP: l,
10
+ onResendVoiceOTP: i,
11
+ timerSeconds: h = 15,
12
+ showVoiceOTP: p = !1,
13
+ disabled: o,
14
+ renderAs: x = "text",
15
+ width: k,
16
+ textButtonColor: s = "WHITE_T_60",
17
+ size: d = "small"
16
18
  }) => {
17
- const { canResend: o, resetTimer: t, timeLeft: s } = C({
18
- initialSeconds: f
19
- }), d = a(() => {
20
- r == null || r(), t();
21
- }, [r, t]), b = a(() => {
19
+ const { canResend: c, resetTimer: t, timeLeft: u } = A({
20
+ initialSeconds: h
21
+ }), b = f(() => {
22
22
  l == null || l(), t();
23
- }, [l, t]);
24
- return h === "submit" ? /* @__PURE__ */ e(
25
- k,
26
- {
27
- size: "small",
28
- renderAs: "secondary-dark",
29
- type: "submit",
30
- label: o ? "Resend" : `Resend in ${s}`,
31
- width: p,
32
- onClick: d,
33
- disabled: !o || m
34
- }
35
- ) : /* @__PURE__ */ e(i, { children: o ? /* @__PURE__ */ n(i, { $flexDirection: "row", $alignItems: "center", $flexColumnGapX: 0.5, children: [
36
- /* @__PURE__ */ e(
37
- u,
23
+ }, [l, t]), _ = f(() => {
24
+ i == null || i(), t();
25
+ }, [i, t]);
26
+ if (x === "submit")
27
+ return /* @__PURE__ */ r(
28
+ w,
38
29
  {
39
- disabled: m,
30
+ size: d,
31
+ renderAs: "secondary-dark",
32
+ type: "submit",
33
+ label: c ? "Resend" : `Resend in ${u}`,
34
+ width: k,
35
+ onClick: b,
36
+ disabled: !c || o
37
+ }
38
+ );
39
+ const e = d === "xsmall";
40
+ return /* @__PURE__ */ r(m, { children: c ? /* @__PURE__ */ n(m, { $flexDirection: "row", $alignItems: "center", $flexColumnGapX: 0.5, children: [
41
+ /* @__PURE__ */ r(
42
+ $,
43
+ {
44
+ disabled: o,
40
45
  label: "Resend",
41
- color: "WHITE_T_60",
42
- onClick: d
46
+ size: e ? "small" : "regular",
47
+ color: s,
48
+ onClick: b
43
49
  }
44
50
  ),
45
- $ && /* @__PURE__ */ n(_, { children: [
46
- /* @__PURE__ */ e(c, { $renderAs: "ub2", $color: "WHITE_T_60", children: "or" }),
47
- /* @__PURE__ */ e(i, { $width: 116, children: /* @__PURE__ */ e(
48
- u,
51
+ p && /* @__PURE__ */ n(C, { children: [
52
+ /* @__PURE__ */ r(a, { $renderAs: e ? "ub3" : "ub2", $color: s, children: "or" }),
53
+ /* @__PURE__ */ r(m, { $width: 116, children: /* @__PURE__ */ r(
54
+ $,
49
55
  {
50
56
  label: "Get code via call",
51
- color: "WHITE_T_60",
52
- onClick: b
57
+ size: e ? "small" : "regular",
58
+ color: s,
59
+ onClick: _
53
60
  }
54
61
  ) })
55
62
  ] })
56
- ] }) : /* @__PURE__ */ e(i, { $width: 105, children: /* @__PURE__ */ n(c, { $renderAs: "ub2", $color: "WHITE_T_60", children: [
63
+ ] }) : /* @__PURE__ */ r(m, { $width: 105, children: /* @__PURE__ */ n(a, { $renderAs: e ? "ub3" : "ub2", $color: "WHITE_T_60", children: [
57
64
  "Resend in",
58
65
  " ",
59
- /* @__PURE__ */ e(c, { $renderAs: "ub2-bold", $inline: !0, $color: "WHITE_T_60", children: s })
66
+ /* @__PURE__ */ r(a, { $renderAs: e ? "ub3-bold" : "ub2-bold", $inline: !0, $color: "WHITE_T_60", children: u })
60
67
  ] }) }) });
61
- }, j = x(I);
68
+ }, F = g(I);
62
69
  export {
63
- j as default
70
+ F as default
64
71
  };
65
72
  //# sourceMappingURL=resend-otp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resend-otp.js","sources":["../../../../../src/features/auth/comps/resend-otp/resend-otp.tsx"],"sourcesContent":["import type { IOTPResendProps } from './resend-otp-types';\n\nimport { useCallback, memo } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useResendTimer } from './hooks/use-resend-timer';\n\nconst ResendOTP: React.FC<IOTPResendProps> = ({\n onResendOTP,\n onResendVoiceOTP,\n timerSeconds = 15,\n showVoiceOTP = false,\n disabled,\n renderAs = 'text',\n width,\n}) => {\n const { canResend, resetTimer, timeLeft } = useResendTimer({\n initialSeconds: timerSeconds,\n });\n\n const handleResendClick = useCallback(() => {\n onResendOTP?.();\n resetTimer();\n }, [onResendOTP, resetTimer]);\n\n const handleVoiceResendClick = useCallback(() => {\n onResendVoiceOTP?.();\n resetTimer();\n }, [onResendVoiceOTP, resetTimer]);\n\n if (renderAs === 'submit') {\n return (\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={canResend ? 'Resend' : `Resend in ${timeLeft}`}\n width={width}\n onClick={handleResendClick}\n disabled={!canResend || disabled}\n />\n );\n }\n\n return (\n <FlexView>\n {!canResend ? (\n <FlexView $width={105}>\n <Text $renderAs=\"ub2\" $color=\"WHITE_T_60\">\n Resend in{' '}\n <Text $renderAs=\"ub2-bold\" $inline $color=\"WHITE_T_60\">\n {timeLeft}\n </Text>\n </Text>\n </FlexView>\n ) : (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.5}>\n <TextButton\n disabled={disabled}\n label=\"Resend\"\n color=\"WHITE_T_60\"\n onClick={handleResendClick}\n />\n {showVoiceOTP && (\n <>\n <Text $renderAs=\"ub2\" $color=\"WHITE_T_60\">\n or\n </Text>\n <FlexView $width={116}>\n <TextButton\n label=\"Get code via call\"\n color=\"WHITE_T_60\"\n onClick={handleVoiceResendClick}\n />\n </FlexView>\n </>\n )}\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default memo(ResendOTP);\n"],"names":["ResendOTP","onResendOTP","onResendVoiceOTP","timerSeconds","showVoiceOTP","disabled","renderAs","width","canResend","resetTimer","timeLeft","useResendTimer","handleResendClick","useCallback","handleVoiceResendClick","jsx","Button","FlexView","jsxs","TextButton","Fragment","Text","ResendOtp","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAuC,CAAC;AAAA,EAC5C,aAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,cAAAC,IAAe;AAAA,EACf,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,OAAAC;AACF,MAAM;AACJ,QAAM,EAAE,WAAAC,GAAW,YAAAC,GAAY,UAAAC,EAAA,IAAaC,EAAe;AAAA,IACzD,gBAAgBR;AAAA,EAAA,CACjB,GAEKS,IAAoBC,EAAY,MAAM;AAC5B,IAAAZ,KAAA,QAAAA,KACHQ;EAAA,GACV,CAACR,GAAaQ,CAAU,CAAC,GAEtBK,IAAyBD,EAAY,MAAM;AAC5B,IAAAX,KAAA,QAAAA,KACRO;EAAA,GACV,CAACP,GAAkBO,CAAU,CAAC;AAEjC,SAAIH,MAAa,WAEb,gBAAAS;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,MAAK;AAAA,MACL,OAAOR,IAAY,WAAW,aAAaE,CAAQ;AAAA,MACnD,OAAAH;AAAA,MACA,SAASK;AAAA,MACT,UAAU,CAACJ,KAAaH;AAAA,IAAA;AAAA,EAAA,IAM3B,gBAAAU,EAAAE,GAAA,EACE,UAACT,IAUC,gBAAAU,EAAAD,GAAA,EAAS,gBAAe,OAAM,aAAY,UAAS,iBAAiB,KACnE,UAAA;AAAA,IAAA,gBAAAF;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,UAAAd;AAAA,QACA,OAAM;AAAA,QACN,OAAM;AAAA,QACN,SAASO;AAAA,MAAA;AAAA,IACX;AAAA,IACCR,KAEG,gBAAAc,EAAAE,GAAA,EAAA,UAAA;AAAA,MAAA,gBAAAL,EAACM,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,MAAA;AAAA,MACA,gBAAAN,EAACE,GAAS,EAAA,QAAQ,KAChB,UAAA,gBAAAF;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,OAAM;AAAA,UACN,SAASL;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAAA,GACF;AAAA,EAAA,EAEJ,CAAA,IA9BC,gBAAAC,EAAAE,GAAA,EAAS,QAAQ,KAChB,UAAC,gBAAAC,EAAAG,GAAA,EAAK,WAAU,OAAM,QAAO,cAAa,UAAA;AAAA,IAAA;AAAA,IAC9B;AAAA,IACV,gBAAAN,EAACM,KAAK,WAAU,YAAW,SAAO,IAAC,QAAO,cACvC,UACHX,EAAA,CAAA;AAAA,EACF,EAAA,CAAA,EACF,CAAA,EAyBJ,CAAA;AAEJ,GAEeY,IAAAC,EAAKvB,CAAS;"}
1
+ {"version":3,"file":"resend-otp.js","sources":["../../../../../src/features/auth/comps/resend-otp/resend-otp.tsx"],"sourcesContent":["import type { IOTPResendProps } from './resend-otp-types';\n\nimport { useCallback, memo } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { useResendTimer } from './hooks/use-resend-timer';\n\nconst ResendOTP: React.FC<IOTPResendProps> = ({\n onResendOTP,\n onResendVoiceOTP,\n timerSeconds = 15,\n showVoiceOTP = false,\n disabled,\n renderAs = 'text',\n width,\n textButtonColor = 'WHITE_T_60',\n size = 'small',\n}) => {\n const { canResend, resetTimer, timeLeft } = useResendTimer({\n initialSeconds: timerSeconds,\n });\n\n const handleResendClick = useCallback(() => {\n onResendOTP?.();\n resetTimer();\n }, [onResendOTP, resetTimer]);\n\n const handleVoiceResendClick = useCallback(() => {\n onResendVoiceOTP?.();\n resetTimer();\n }, [onResendVoiceOTP, resetTimer]);\n\n if (renderAs === 'submit') {\n return (\n <Button\n size={size}\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={canResend ? 'Resend' : `Resend in ${timeLeft}`}\n width={width}\n onClick={handleResendClick}\n disabled={!canResend || disabled}\n />\n );\n }\n\n const isXSmallSize = size === 'xsmall';\n\n return (\n <FlexView>\n {!canResend ? (\n <FlexView $width={105}>\n <Text $renderAs={isXSmallSize ? 'ub3' : 'ub2'} $color=\"WHITE_T_60\">\n Resend in{' '}\n <Text $renderAs={isXSmallSize ? 'ub3-bold' : 'ub2-bold'} $inline $color=\"WHITE_T_60\">\n {timeLeft}\n </Text>\n </Text>\n </FlexView>\n ) : (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexColumnGapX={0.5}>\n <TextButton\n disabled={disabled}\n label=\"Resend\"\n size={isXSmallSize ? 'small' : 'regular'}\n color={textButtonColor}\n onClick={handleResendClick}\n />\n {showVoiceOTP && (\n <>\n <Text $renderAs={isXSmallSize ? 'ub3' : 'ub2'} $color={textButtonColor}>\n or\n </Text>\n <FlexView $width={116}>\n <TextButton\n label=\"Get code via call\"\n size={isXSmallSize ? 'small' : 'regular'}\n color={textButtonColor}\n onClick={handleVoiceResendClick}\n />\n </FlexView>\n </>\n )}\n </FlexView>\n )}\n </FlexView>\n );\n};\n\nexport default memo(ResendOTP);\n"],"names":["ResendOTP","onResendOTP","onResendVoiceOTP","timerSeconds","showVoiceOTP","disabled","renderAs","width","textButtonColor","size","canResend","resetTimer","timeLeft","useResendTimer","handleResendClick","useCallback","handleVoiceResendClick","jsx","Button","isXSmallSize","FlexView","jsxs","TextButton","Fragment","Text","ResendOtp","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAuC,CAAC;AAAA,EAC5C,aAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,cAAAC,IAAe;AAAA,EACf,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,OAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,MAAAC,IAAO;AACT,MAAM;AACJ,QAAM,EAAE,WAAAC,GAAW,YAAAC,GAAY,UAAAC,EAAA,IAAaC,EAAe;AAAA,IACzD,gBAAgBV;AAAA,EAAA,CACjB,GAEKW,IAAoBC,EAAY,MAAM;AAC5B,IAAAd,KAAA,QAAAA,KACHU;EAAA,GACV,CAACV,GAAaU,CAAU,CAAC,GAEtBK,IAAyBD,EAAY,MAAM;AAC5B,IAAAb,KAAA,QAAAA,KACRS;EAAA,GACV,CAACT,GAAkBS,CAAU,CAAC;AAEjC,MAAIL,MAAa;AAEb,WAAA,gBAAAW;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAAT;AAAA,QACA,UAAS;AAAA,QACT,MAAK;AAAA,QACL,OAAOC,IAAY,WAAW,aAAaE,CAAQ;AAAA,QACnD,OAAAL;AAAA,QACA,SAASO;AAAA,QACT,UAAU,CAACJ,KAAaL;AAAA,MAAA;AAAA,IAAA;AAK9B,QAAMc,IAAeV,MAAS;AAE9B,SACG,gBAAAQ,EAAAG,GAAA,EACE,UAACV,IAUC,gBAAAW,EAAAD,GAAA,EAAS,gBAAe,OAAM,aAAY,UAAS,iBAAiB,KACnE,UAAA;AAAA,IAAA,gBAAAH;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,UAAAjB;AAAA,QACA,OAAM;AAAA,QACN,MAAMc,IAAe,UAAU;AAAA,QAC/B,OAAOX;AAAA,QACP,SAASM;AAAA,MAAA;AAAA,IACX;AAAA,IACCV,KAEG,gBAAAiB,EAAAE,GAAA,EAAA,UAAA;AAAA,MAAA,gBAAAN,EAACO,KAAK,WAAWL,IAAe,QAAQ,OAAO,QAAQX,GAAiB,UAExE,KAAA,CAAA;AAAA,MACA,gBAAAS,EAACG,GAAS,EAAA,QAAQ,KAChB,UAAA,gBAAAH;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,MAAMH,IAAe,UAAU;AAAA,UAC/B,OAAOX;AAAA,UACP,SAASQ;AAAA,QAAA;AAAA,MAAA,GAEb;AAAA,IAAA,GACF;AAAA,EAAA,EAEJ,CAAA,sBAhCCI,GAAS,EAAA,QAAQ,KAChB,UAAA,gBAAAC,EAACG,KAAK,WAAWL,IAAe,QAAQ,OAAO,QAAO,cAAa,UAAA;AAAA,IAAA;AAAA,IACvD;AAAA,IACV,gBAAAF,EAACO,GAAK,EAAA,WAAWL,IAAe,aAAa,YAAY,SAAO,IAAC,QAAO,cACrE,UACHP,EAAA,CAAA;AAAA,EACF,EAAA,CAAA,EACF,CAAA,EA2BJ,CAAA;AAEJ,GAEea,IAAAC,EAAK1B,CAAS;"}
@@ -0,0 +1,17 @@
1
+ import e from "styled-components";
2
+ import t from "../../../ui/layout/flex-view.js";
3
+ const s = e(t)`
4
+ ${({ selected: r, theme: o }) => `
5
+ cursor: pointer;
6
+ transition: all 0.3s ease;
7
+ border-width: 2px;
8
+
9
+ &:hover {
10
+ background-color: ${r ? void 0 : o.colors.BLACK_5};
11
+ }
12
+ `}
13
+ `;
14
+ export {
15
+ s as Wrapper
16
+ };
17
+ //# sourceMappingURL=selectable-info-card-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-info-card-styled.js","sources":["../../../../../src/features/auth/comps/selectable-info-card/selectable-info-card-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)<{ selected: boolean }>`\n ${({ selected, theme }) => {\n return `\n cursor: pointer;\n transition: all 0.3s ease;\n border-width: 2px;\n\n &:hover {\n background-color: ${!selected ? theme.colors.BLACK_5 : undefined};\n }\n `;\n }}\n`;\n"],"names":["Wrapper","styled","FlexView","selected","theme"],"mappings":";;AAIa,MAAAA,IAAUC,EAAOC,CAAQ;AAAA,IAClC,CAAC,EAAE,UAAAC,GAAU,OAAAC,QACN;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAMkBD,IAAkC,SAAvBC,EAAM,OAAO,OAAmB;AAAA;AAAA,GAGrE;AAAA;"}
@@ -0,0 +1,67 @@
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
+ import { memo as d, useRef as C, useCallback as t, useMemo as b } from "react";
3
+ import g from "../../../ui/layout/flex-view.js";
4
+ import x from "../../../ui/lottie-animation/lottie-animation.js";
5
+ import m from "../../../ui/text/text.js";
6
+ import { Wrapper as I } from "./selectable-info-card-styled.js";
7
+ const T = ({
8
+ id: a,
9
+ title: u,
10
+ description: c,
11
+ icon: i,
12
+ selected: r,
13
+ onClick: l
14
+ }) => {
15
+ const e = C(null), f = t(() => {
16
+ l(a);
17
+ }, [a, l]), p = t(() => {
18
+ var o;
19
+ (o = e.current) == null || o.play();
20
+ }, []), $ = t(() => {
21
+ var o;
22
+ r || (o = e.current) == null || o.stop();
23
+ }, [r]), h = b(
24
+ () => ({
25
+ autoplay: r,
26
+ loop: !0,
27
+ renderer: "canvas"
28
+ }),
29
+ [r]
30
+ );
31
+ return /* @__PURE__ */ s(
32
+ I,
33
+ {
34
+ $gutterX: 1,
35
+ $gapX: 1,
36
+ $borderColor: "WHITE",
37
+ $flexDirection: "row",
38
+ $background: r ? "WHITE_1" : "BLACK_1",
39
+ onMouseEnter: p,
40
+ onMouseLeave: $,
41
+ onClick: f,
42
+ $flexColumnGapX: 0.5,
43
+ selected: r,
44
+ $alignItems: "center",
45
+ children: [
46
+ i && /* @__PURE__ */ n(
47
+ x,
48
+ {
49
+ src: i,
50
+ ref: e,
51
+ settings: h,
52
+ width: 40,
53
+ height: 40
54
+ }
55
+ ),
56
+ /* @__PURE__ */ s(g, { children: [
57
+ /* @__PURE__ */ n(m, { $renderAs: "ab3", $color: r ? "BLACK_1" : "WHITE", children: u }),
58
+ /* @__PURE__ */ n(m, { $renderAs: "ub3", $color: r ? "BLACK_T_60" : "WHITE_T_60", children: c })
59
+ ] })
60
+ ]
61
+ }
62
+ );
63
+ }, H = d(T);
64
+ export {
65
+ H as default
66
+ };
67
+ //# sourceMappingURL=selectable-info-card.js.map