@cuemath/leap 3.0.11-j8 → 3.0.12-as.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 (444) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -3
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +0 -11
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +36 -27
  6. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  7. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +43 -31
  8. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  9. package/dist/features/chapters/chapters-list/chapters-list.js +16 -15
  10. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  11. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +2 -2
  12. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
  13. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +30 -30
  14. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  15. package/dist/features/chapters-v2/chapter-details/chapter-details.js +35 -35
  16. package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
  17. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +44 -44
  18. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
  19. package/dist/features/homework/homework-card.js +146 -131
  20. package/dist/features/homework/homework-card.js.map +1 -1
  21. package/dist/features/journey/hooks/use-chapter-journey.js +28 -28
  22. package/dist/features/journey/hooks/use-chapter-journey.js.map +1 -1
  23. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +40 -38
  24. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  25. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +53 -50
  26. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  27. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +64 -62
  28. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  29. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +44 -42
  30. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  31. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +39 -37
  32. package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
  33. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +38 -31
  34. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
  35. package/dist/index.d.ts +8 -285
  36. package/dist/index.js +321 -367
  37. package/dist/index.js.map +1 -1
  38. package/package.json +2 -3
  39. package/dist/assets/illustrations/loader-1.svg.js +0 -6
  40. package/dist/assets/illustrations/loader-1.svg.js.map +0 -1
  41. package/dist/assets/line-icons/icons/apple-icon.js +0 -48
  42. package/dist/assets/line-icons/icons/apple-icon.js.map +0 -1
  43. package/dist/assets/line-icons/icons/google-icon.js +0 -42
  44. package/dist/assets/line-icons/icons/google-icon.js.map +0 -1
  45. package/dist/features/auth/account-selector/account-selector.js +0 -43
  46. package/dist/features/auth/account-selector/account-selector.js.map +0 -1
  47. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
  48. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
  49. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +0 -12
  50. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +0 -1
  51. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +0 -18
  52. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +0 -1
  53. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +0 -21
  54. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +0 -1
  55. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +0 -29
  56. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +0 -1
  57. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +0 -9
  58. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +0 -1
  59. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js +0 -24
  60. package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js.map +0 -1
  61. package/dist/features/auth/comps/resend-otp/resend-otp.js +0 -65
  62. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +0 -1
  63. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +0 -23
  64. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +0 -1
  65. package/dist/features/auth/comps/tabs/tabs-styled.js +0 -23
  66. package/dist/features/auth/comps/tabs/tabs-styled.js.map +0 -1
  67. package/dist/features/auth/comps/tabs/tabs.js +0 -9
  68. package/dist/features/auth/comps/tabs/tabs.js.map +0 -1
  69. package/dist/features/auth/forgot-password/forgot-password-styled.js +0 -12
  70. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +0 -1
  71. package/dist/features/auth/forgot-password/otp-form/otp-form.js +0 -66
  72. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +0 -1
  73. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +0 -101
  74. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +0 -1
  75. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +0 -68
  76. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +0 -1
  77. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +0 -12
  78. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +0 -1
  79. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +0 -100
  80. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +0 -1
  81. package/dist/features/auth/login/login-constants.js +0 -14
  82. package/dist/features/auth/login/login-constants.js.map +0 -1
  83. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +0 -32
  84. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +0 -1
  85. package/dist/features/auth/login/social-login-methods/social-login-methods.js +0 -47
  86. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +0 -1
  87. package/dist/features/auth/login/username-password-form/username-password-form.js +0 -98
  88. package/dist/features/auth/login/username-password-form/username-password-form.js.map +0 -1
  89. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +0 -56
  90. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +0 -1
  91. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +0 -131
  92. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +0 -1
  93. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +0 -53
  94. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +0 -1
  95. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js +0 -34
  96. package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map +0 -1
  97. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +0 -98
  98. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +0 -1
  99. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js +0 -57
  100. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map +0 -1
  101. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js +0 -26
  102. package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js.map +0 -1
  103. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +0 -30
  104. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +0 -1
  105. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +0 -100
  106. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +0 -1
  107. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +0 -88
  108. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +0 -1
  109. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +0 -43
  110. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +0 -1
  111. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +0 -31
  112. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +0 -1
  113. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +0 -31
  114. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +0 -1
  115. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +0 -11
  116. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +0 -1
  117. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +0 -29
  118. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +0 -1
  119. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js +0 -9
  120. package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js.map +0 -1
  121. package/dist/features/auth/signup/signup-constants.js +0 -1031
  122. package/dist/features/auth/signup/signup-constants.js.map +0 -1
  123. package/dist/features/auth/signup/signup-methods/signup-methods.js +0 -69
  124. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +0 -1
  125. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +0 -19
  126. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +0 -1
  127. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +0 -62
  128. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +0 -1
  129. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +0 -24
  130. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +0 -1
  131. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +0 -85
  132. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +0 -1
  133. package/dist/features/auth/user-list/user-item/user-item-styled.js +0 -21
  134. package/dist/features/auth/user-list/user-item/user-item-styled.js.map +0 -1
  135. package/dist/features/auth/user-list/user-item/user-item.js +0 -48
  136. package/dist/features/auth/user-list/user-item/user-item.js.map +0 -1
  137. package/dist/features/auth/user-list/user-list-styled.js +0 -19
  138. package/dist/features/auth/user-list/user-list-styled.js.map +0 -1
  139. package/dist/features/auth/user-list/user-list.js +0 -56
  140. package/dist/features/auth/user-list/user-list.js.map +0 -1
  141. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -332
  142. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  143. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -370
  144. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  145. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -252
  146. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
  147. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -24
  148. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
  149. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -192
  150. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  151. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -19
  152. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  153. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -129
  154. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  155. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  157. package/dist/node_modules/clsx/dist/clsx.js +0 -18
  158. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  159. package/dist/node_modules/date-fns/subYears.js +0 -9
  160. package/dist/node_modules/date-fns/subYears.js.map +0 -1
  161. package/dist/node_modules/react-datepicker/dist/index.es.js +0 -2700
  162. package/dist/node_modules/react-datepicker/dist/index.es.js.map +0 -1
  163. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  164. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  165. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +0 -8
  166. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  167. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +0 -518
  168. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  169. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +0 -60
  170. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  171. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +0 -53
  172. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  173. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -19
  174. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  175. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +0 -12
  176. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  177. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +0 -21
  178. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  179. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +0 -11
  180. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +0 -1
  181. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +0 -10
  182. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +0 -1
  183. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +0 -10
  184. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +0 -1
  185. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +0 -11
  186. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +0 -1
  187. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +0 -21
  188. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +0 -1
  189. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +0 -9
  190. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +0 -1
  191. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +0 -9
  192. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +0 -1
  193. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +0 -9
  194. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +0 -1
  195. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +0 -9
  196. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +0 -1
  197. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +0 -10
  198. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +0 -1
  199. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +0 -9
  200. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +0 -1
  201. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +0 -17
  202. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  203. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
  204. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
  205. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +0 -15
  206. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +0 -1
  207. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +0 -14
  208. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +0 -1
  209. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +0 -23
  210. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +0 -1
  211. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +0 -10
  212. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +0 -1
  213. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +0 -10
  214. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +0 -1
  215. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +0 -12
  216. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +0 -1
  217. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +0 -10
  218. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +0 -1
  219. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +0 -60
  220. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +0 -1
  221. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +0 -9
  222. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +0 -1
  223. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +0 -9
  224. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +0 -1
  225. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +0 -12
  226. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +0 -1
  227. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +0 -11
  228. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +0 -1
  229. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +0 -9
  230. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +0 -1
  231. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +0 -9
  232. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +0 -1
  233. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +0 -10
  234. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +0 -1
  235. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +0 -13
  236. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +0 -1
  237. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +0 -16
  238. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  239. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +0 -9
  240. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +0 -1
  241. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +0 -9
  242. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +0 -1
  243. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +0 -10
  244. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +0 -1
  245. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +0 -9
  246. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +0 -1
  247. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +0 -9
  248. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +0 -1
  249. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +0 -13
  250. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +0 -1
  251. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +0 -18
  252. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +0 -1
  253. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +0 -9
  254. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +0 -1
  255. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +0 -9
  256. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +0 -1
  257. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +0 -9
  258. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +0 -1
  259. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +0 -8
  260. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +0 -1
  261. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +0 -9
  262. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +0 -1
  263. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +0 -15
  264. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +0 -1
  265. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +0 -14
  266. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +0 -1
  267. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +0 -15
  268. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +0 -1
  269. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +0 -14
  270. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +0 -1
  271. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +0 -10
  272. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +0 -1
  273. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +0 -13
  274. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +0 -1
  275. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  276. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  277. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -19
  278. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  279. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -32
  280. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  281. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
  282. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  283. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -71
  284. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  285. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -34
  286. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  287. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
  288. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  289. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -156
  290. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  291. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +0 -111
  292. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  293. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +0 -22
  294. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +0 -1
  295. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +0 -15
  296. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +0 -1
  297. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +0 -15
  298. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +0 -1
  299. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +0 -23
  300. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
  301. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +0 -42
  302. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
  303. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +0 -50
  304. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
  305. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
  306. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
  307. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
  308. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
  309. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
  310. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
  311. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
  312. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
  313. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -46
  314. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
  315. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
  316. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
  317. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -31
  318. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
  319. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
  320. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
  321. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
  322. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
  323. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
  324. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
  325. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
  326. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
  327. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
  328. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
  329. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
  330. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
  331. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -100
  332. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
  333. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
  334. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
  335. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
  336. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
  337. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
  338. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
  339. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
  340. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
  341. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -75
  342. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
  343. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
  344. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
  345. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
  346. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
  347. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
  348. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
  349. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -72
  350. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
  351. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
  352. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
  353. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
  354. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
  355. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -75
  356. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
  357. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -72
  358. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
  359. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
  360. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
  361. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
  362. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
  363. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
  364. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
  365. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
  366. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
  367. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +0 -68
  368. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
  369. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +0 -104
  370. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
  371. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +0 -88
  372. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +0 -1
  373. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +0 -123
  374. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +0 -1
  375. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +0 -13
  376. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +0 -1
  377. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +0 -10
  378. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +0 -1
  379. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +0 -12
  380. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +0 -1
  381. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +0 -11
  382. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +0 -1
  383. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +0 -10
  384. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +0 -1
  385. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +0 -14
  386. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +0 -1
  387. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +0 -11
  388. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +0 -1
  389. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +0 -10
  390. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +0 -1
  391. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +0 -11
  392. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +0 -1
  393. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +0 -11
  394. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +0 -1
  395. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +0 -10
  396. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +0 -1
  397. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +0 -9
  398. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +0 -12
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +0 -10
  402. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +0 -1
  403. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +0 -10
  404. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +0 -1
  405. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +0 -12
  406. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +0 -1
  407. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +0 -14
  408. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  409. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +0 -10
  410. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +0 -1
  411. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +0 -9
  412. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +0 -1
  413. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +0 -9
  414. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +0 -1
  415. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +0 -9
  416. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +0 -1
  417. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +0 -9
  418. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +0 -1
  419. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +0 -9
  420. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +0 -1
  421. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +0 -9
  422. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +0 -1
  423. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +0 -19
  424. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +0 -1
  425. package/dist/static/avatar-selected.860ee923.json +0 -1
  426. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +0 -1
  427. package/dist/static/cuemath-app-qr-code.4beefe48.svg +0 -1
  428. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +0 -1
  429. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  430. package/dist/static/dob.9ce3c15b.json +0 -1
  431. package/dist/static/error.cbe1ddde.json +0 -1
  432. package/dist/static/grade.b3730524.json +0 -1
  433. package/dist/static/key.d6846476.json +0 -1
  434. package/dist/static/mail.c30e8708.json +0 -1
  435. package/dist/static/otp.2d08f874.json +0 -1
  436. package/dist/static/otp.a3029760.json +0 -1
  437. package/dist/static/parent-avatar.772d53e0.json +0 -1
  438. package/dist/static/phone-number.0be312ea.json +0 -1
  439. package/dist/static/phone-number.84f55562.json +0 -1
  440. package/dist/static/student-avatar.524226bd.json +0 -1
  441. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +0 -1
  442. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +0 -1
  443. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +0 -1
  444. package/dist/static/username.9e034d51.json +0 -1
@@ -1,34 +0,0 @@
1
- import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
- import { memo as n } from "react";
3
- import i from "../../../../../assets/line-icons/icons/chevron-down.js";
4
- import d from "../../../../ui/layout/flex-view.js";
5
- import m from "../../../../ui/text/text.js";
6
- import { CountryCodeButton as u } from "./country-selector-styled.js";
7
- const $ = ({
8
- value: t,
9
- menuVisible: e
10
- }) => /* @__PURE__ */ o(
11
- u,
12
- {
13
- $background: "BLACK_5",
14
- $borderRadius: 4,
15
- $gutterX: 0.5,
16
- $gap: 5,
17
- $alignItems: "center",
18
- $justifyContent: "space-between",
19
- $borderColor: e ? "WHITE_T_38" : "BLACK_5",
20
- $flexDirection: "row",
21
- $flexGap: 2,
22
- children: [
23
- /* @__PURE__ */ o(m, { $renderAs: "ab1", $color: "WHITE", children: [
24
- "+",
25
- t
26
- ] }),
27
- /* @__PURE__ */ r(d, { $width: 20, children: /* @__PURE__ */ r(i, { width: 20, height: 20, color: "WHITE" }) })
28
- ]
29
- }
30
- ), p = n($);
31
- export {
32
- p as default
33
- };
34
- //# sourceMappingURL=country-code-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country-code-button.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-code-button.tsx"],"sourcesContent":["import type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport ChevronDownIcon from '../../../../../assets/line-icons/icons/chevron-down';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport * as Styled from './country-selector-styled';\n\nconst CountryCodeButton: FC<{ value?: string; menuVisible?: boolean }> = ({\n value,\n menuVisible,\n}) => {\n return (\n <Styled.CountryCodeButton\n $background=\"BLACK_5\"\n $borderRadius={4}\n $gutterX={0.5}\n $gap={5}\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n $borderColor={menuVisible ? 'WHITE_T_38' : 'BLACK_5'}\n $flexDirection=\"row\"\n $flexGap={2}\n >\n <Text $renderAs=\"ab1\" $color=\"WHITE\">\n +{value}\n </Text>\n <FlexView $width={20}>\n <ChevronDownIcon width={20} height={20} color=\"WHITE\" />\n </FlexView>\n </Styled.CountryCodeButton>\n );\n};\n\nexport default memo(CountryCodeButton);\n"],"names":["CountryCodeButton","value","menuVisible","jsxs","Styled.CountryCodeButton","Text","jsx","FlexView","ChevronDownIcon","CountryCodeButton$1","memo"],"mappings":";;;;;;AASA,MAAMA,IAAmE,CAAC;AAAA,EACxE,OAAAC;AAAA,EACA,aAAAC;AACF,MAEI,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,aAAY;AAAA,IACZ,eAAe;AAAA,IACf,UAAU;AAAA,IACV,MAAM;AAAA,IACN,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,cAAcF,IAAc,eAAe;AAAA,IAC3C,gBAAe;AAAA,IACf,UAAU;AAAA,IAEV,UAAA;AAAA,MAAA,gBAAAC,EAACE,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAAA;AAAA,QAAA;AAAA,QACjCJ;AAAA,MAAA,GACJ;AAAA,MACC,gBAAAK,EAAAC,GAAA,EAAS,QAAQ,IAChB,UAAC,gBAAAD,EAAAE,GAAA,EAAgB,OAAO,IAAI,QAAQ,IAAI,OAAM,QAAQ,CAAA,GACxD;AAAA,IAAA;AAAA,EAAA;AAAA,GAKSC,IAAAC,EAAKV,CAAiB;"}
@@ -1,98 +0,0 @@
1
- import { jsxs as h, jsx as a } from "react/jsx-runtime";
2
- import { memo as k, useState as I, useRef as p, useEffect as $, useCallback as A } from "react";
3
- import b from "../../../../ui/separator/separator.js";
4
- import T from "../../../../ui/text/text.js";
5
- import { COUNTRY_CODE_MAP as i } from "../../signup-constants.js";
6
- import { MenuWrapper as y, MenuItem as X, FlagIcon as D, Instructions as M } from "./country-selector-styled.js";
7
- const R = ({ selectedCountry: g, onChange: u, menuVisible: w }) => {
8
- const [s, d] = I(""), [o, l] = I(-1), c = p(null), f = p(null), E = p([]);
9
- $(() => {
10
- var e;
11
- o >= 0 && ((e = E.current[o]) == null || e.scrollIntoView({
12
- behavior: "smooth",
13
- block: "nearest"
14
- }));
15
- }, [o]), $(() => {
16
- if (s) {
17
- const e = i.findIndex(
18
- (t) => t.value.toLowerCase().includes(s.toLowerCase()) || t.code.startsWith(s)
19
- );
20
- l(e), c.current && clearTimeout(c.current), c.current = setTimeout(() => {
21
- d("");
22
- }, 1e3);
23
- }
24
- return () => {
25
- c.current && clearTimeout(c.current);
26
- };
27
- }, [s]);
28
- const m = A(
29
- (e) => {
30
- var n;
31
- const { key: t } = e;
32
- if (e.preventDefault(), e.stopPropagation(), t.length === 1 && /[a-zA-Z0-9\s]/.test(t)) {
33
- d((r) => r + t.toLowerCase());
34
- return;
35
- }
36
- if (t === "ArrowDown")
37
- l((r) => r < i.length - 1 ? r + 1 : 0);
38
- else if (t === "ArrowUp")
39
- l((r) => r > 0 ? r - 1 : i.length - 1);
40
- else if (t === "Enter" && o >= 0) {
41
- const r = i[o];
42
- r && u({ code: r.code, id: r.id }), (n = f.current) == null || n.click();
43
- } else t === "Escape" && (d(""), l(-1));
44
- },
45
- [o, u]
46
- );
47
- return $(() => {
48
- const e = f.current;
49
- if (!(!e || !w))
50
- return e.focus(), e.addEventListener("keydown", m), () => {
51
- e.removeEventListener("keydown", m);
52
- };
53
- }, [w, m, g.id]), /* @__PURE__ */ h(
54
- y,
55
- {
56
- ref: f,
57
- tabIndex: 0,
58
- $widthX: 10,
59
- $gapX: 0.5,
60
- $background: "BLACK_2",
61
- $borderColor: "BLACK_5",
62
- children: [
63
- i.map((e, t) => {
64
- const { id: n, value: r, icon: x, code: C } = e;
65
- return /* @__PURE__ */ h(
66
- X,
67
- {
68
- ref: (L) => E.current[t] = L,
69
- "data-country-id": n,
70
- onClick: () => u({ code: C, id: n }),
71
- $gutterX: 0.5,
72
- $gapX: 0.75,
73
- $width: "100%",
74
- $flexDirection: "row",
75
- $alignItems: "center",
76
- $flexGap: 8,
77
- $isSelected: g.id === n,
78
- $isHighlighted: o === t,
79
- children: [
80
- /* @__PURE__ */ a(D, { src: x }),
81
- /* @__PURE__ */ a(T, { $renderAs: "ab3", $color: "WHITE", children: r })
82
- ]
83
- },
84
- n
85
- );
86
- }),
87
- /* @__PURE__ */ h(M, { $gutterX: 0.5, children: [
88
- /* @__PURE__ */ a(b, { heightX: 0.5 }),
89
- /* @__PURE__ */ a(T, { $renderAs: "ab3", $color: "WHITE", children: "Type to search • ↑↓ to navigate • Enter to select • Esc to clear" })
90
- ] })
91
- ]
92
- }
93
- );
94
- }, O = k(R);
95
- export {
96
- O as default
97
- };
98
- //# sourceMappingURL=country-list-menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country-list-menu.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-list-menu.tsx"],"sourcesContent":["import type { ICountryListMenuProps } from './country-selector-types';\nimport type { FC } from 'react';\n\nimport { useState, useEffect, useRef, useCallback, memo } from 'react';\n\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport { COUNTRY_CODE_MAP } from '../../signup-constants';\nimport * as Styled from './country-selector-styled';\n\nconst CountryListMenu: FC<ICountryListMenuProps> = ({ selectedCountry, onChange, menuVisible }) => {\n const [searchTerm, setSearchTerm] = useState('');\n const [highlightedIndex, setHighlightedIndex] = useState(-1);\n const searchTimeoutRef = useRef<NodeJS.Timeout | null>(null);\n const menuRef = useRef<HTMLDivElement>(null);\n const itemRefs = useRef<(HTMLDivElement | null)[]>([]);\n\n useEffect(() => {\n if (highlightedIndex >= 0) {\n itemRefs.current[highlightedIndex]?.scrollIntoView({\n behavior: 'smooth',\n block: 'nearest',\n });\n }\n }, [highlightedIndex]);\n\n useEffect(() => {\n if (searchTerm) {\n const index = COUNTRY_CODE_MAP.findIndex(\n c =>\n c.value.toLowerCase().includes(searchTerm.toLowerCase()) || c.code.startsWith(searchTerm),\n );\n\n setHighlightedIndex(index);\n if (searchTimeoutRef.current) clearTimeout(searchTimeoutRef.current);\n searchTimeoutRef.current = setTimeout(() => {\n setSearchTerm('');\n }, 1000);\n }\n\n return () => {\n if (searchTimeoutRef.current) clearTimeout(searchTimeoutRef.current);\n };\n }, [searchTerm]);\n\n const handleKeyDown = useCallback(\n (event: globalThis.KeyboardEvent) => {\n const { key } = event;\n\n event.preventDefault();\n event.stopPropagation();\n if (key.length === 1 && /[a-zA-Z0-9\\s]/.test(key)) {\n setSearchTerm(prev => prev + key.toLowerCase());\n\n return;\n }\n\n if (key === 'ArrowDown') {\n setHighlightedIndex(prev => (prev < COUNTRY_CODE_MAP.length - 1 ? prev + 1 : 0));\n } else if (key === 'ArrowUp') {\n setHighlightedIndex(prev => (prev > 0 ? prev - 1 : COUNTRY_CODE_MAP.length - 1));\n } else if (key === 'Enter' && highlightedIndex >= 0) {\n const selectedOption = COUNTRY_CODE_MAP[highlightedIndex];\n\n selectedOption && onChange({ code: selectedOption.code, id: selectedOption.id });\n menuRef.current?.click();\n } else if (key === 'Escape') {\n setSearchTerm('');\n setHighlightedIndex(-1);\n }\n },\n [highlightedIndex, onChange],\n );\n\n useEffect(() => {\n const menuElement = menuRef.current;\n\n if (!menuElement || !menuVisible) return;\n\n menuElement.focus();\n menuElement.addEventListener('keydown', handleKeyDown);\n\n return () => {\n menuElement.removeEventListener('keydown', handleKeyDown);\n };\n }, [menuVisible, handleKeyDown, selectedCountry.id]);\n\n return (\n <Styled.MenuWrapper\n ref={menuRef}\n tabIndex={0}\n $widthX={10}\n $gapX={0.5}\n $background=\"BLACK_2\"\n $borderColor=\"BLACK_5\"\n >\n {COUNTRY_CODE_MAP.map((option, index) => {\n const { id, value, icon, code } = option;\n\n return (\n <Styled.MenuItem\n key={id}\n ref={el => (itemRefs.current[index] = el)}\n data-country-id={id}\n onClick={() => onChange({ code, id })}\n $gutterX={0.5}\n $gapX={0.75}\n $width=\"100%\"\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGap={8}\n $isSelected={selectedCountry.id === id}\n $isHighlighted={highlightedIndex === index}\n >\n <Styled.FlagIcon src={icon} />\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n {value}\n </Text>\n </Styled.MenuItem>\n );\n })}\n\n <Styled.Instructions $gutterX={0.5}>\n <Separator heightX={0.5} />\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n Type to search • ↑↓ to navigate • Enter to select • Esc to clear\n </Text>\n </Styled.Instructions>\n </Styled.MenuWrapper>\n );\n};\n\nexport default memo(CountryListMenu);\n"],"names":["CountryListMenu","selectedCountry","onChange","menuVisible","searchTerm","setSearchTerm","useState","highlightedIndex","setHighlightedIndex","searchTimeoutRef","useRef","menuRef","itemRefs","useEffect","_a","index","COUNTRY_CODE_MAP","c","handleKeyDown","useCallback","event","key","prev","selectedOption","menuElement","jsxs","Styled.MenuWrapper","option","id","value","icon","code","Styled.MenuItem","el","jsx","Styled.FlagIcon","Text","Styled.Instructions","Separator","CountryListMenu$1","memo"],"mappings":"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"}
@@ -1,57 +0,0 @@
1
- import r from "styled-components";
2
- import t from "../../../../ui/layout/flex-view.js";
3
- const l = r(t)`
4
- border-radius: 2px;
5
- max-height: 220px;
6
- overflow-y: scroll;
7
- width: 271px;
8
- max-height: 300px;
9
- overflow-y: auto;
10
-
11
- &:focus {
12
- outline: none;
13
- }
14
- &::-webkit-scrollbar {
15
- width: 6px;
16
- }
17
-
18
- &::-webkit-scrollbar-track {
19
- background: ${({ theme: o }) => o.colors.BLACK_4};
20
- }
21
-
22
- &::-webkit-scrollbar-thumb {
23
- background: ${({ theme: o }) => o.colors.BLACK_2};
24
- border-radius: 3px;
25
- }
26
- `, p = r(t)(({
27
- theme: o,
28
- $isSelected: n,
29
- $isHighlighted: c
30
- }) => {
31
- const s = c ? o.colors.BLACK_4 : "transparent";
32
- return `
33
- cursor: pointer;
34
- background: ${n ? o.colors.BLACK_5 : s};
35
- &:hover {
36
- background: ${o.colors.BLACK_5};
37
- }
38
- `;
39
- }), a = r.img`
40
- width: 20px;
41
- height: 20px;
42
- `, d = r(t)`
43
- cursor: pointer;
44
- padding-right: 4px;
45
- max-width: 100px;
46
- min-width: 82px;
47
- `, u = r(t)`
48
- border-top: 1px solid ${({ theme: o }) => o.colors.BLACK_5};
49
- `;
50
- export {
51
- d as CountryCodeButton,
52
- a as FlagIcon,
53
- u as Instructions,
54
- p as MenuItem,
55
- l as MenuWrapper
56
- };
57
- //# sourceMappingURL=country-selector-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country-selector-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-selector-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\n\nexport const MenuWrapper = styled(FlexView)`\n border-radius: 2px;\n max-height: 220px;\n overflow-y: scroll;\n width: 271px;\n max-height: 300px;\n overflow-y: auto;\n\n &:focus {\n outline: none;\n }\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: ${({ theme }) => theme.colors.BLACK_4};\n }\n\n &::-webkit-scrollbar-thumb {\n background: ${({ theme }) => theme.colors.BLACK_2};\n border-radius: 3px;\n }\n`;\n\nexport const MenuItem = styled(FlexView)<{ $isSelected: boolean; $isHighlighted?: boolean }>(({\n theme,\n $isSelected,\n $isHighlighted,\n}) => {\n const bgColor = $isHighlighted ? theme.colors.BLACK_4 : 'transparent';\n\n return `\n cursor: pointer;\n background: ${$isSelected ? theme.colors.BLACK_5 : bgColor};\n &:hover {\n background: ${theme.colors.BLACK_5};\n }\n `;\n});\n\nexport const FlagIcon = styled.img`\n width: 20px;\n height: 20px;\n`;\n\nexport const CountryCodeButton = styled(FlexView)`\n cursor: pointer;\n padding-right: 4px;\n max-width: 100px;\n min-width: 82px;\n`;\n\nexport const Instructions = styled(FlexView)`\n border-top: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n`;\n"],"names":["MenuWrapper","styled","FlexView","theme","MenuItem","$isSelected","$isHighlighted","bgColor","FlagIcon","CountryCodeButton","Instructions"],"mappings":";;AAIa,MAAAA,IAAcC,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAgBxB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,kBAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA,GAKxCC,IAAWH,EAAOC,CAAQ,EAAsD,CAAC;AAAA,EAC5F,OAAAC;AAAA,EACA,aAAAE;AAAA,EACA,gBAAAC;AACF,MAAM;AACJ,QAAMC,IAAUD,IAAiBH,EAAM,OAAO,UAAU;AAEjD,SAAA;AAAA;AAAA,oBAEWE,IAAcF,EAAM,OAAO,UAAUI,CAAO;AAAA;AAAA,wBAExCJ,EAAM,OAAO,OAAO;AAAA;AAAA;AAG5C,CAAC,GAEYK,IAAWP,EAAO;AAAA;AAAA;AAAA,GAKlBQ,IAAoBR,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,GAOnCQ,IAAeT,EAAOC,CAAQ;AAAA,0BACjB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;"}
@@ -1,26 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { memo as s, useState as u, useCallback as l } from "react";
3
- import f from "../../../../ui/context-menu/context-menu.js";
4
- import c from "../../../../ui/layout/flex-view.js";
5
- import C from "./country-code-button.js";
6
- import d from "./country-list-menu.js";
7
- const p = ({ value: e, onChange: o }) => {
8
- const [n, r] = u(!1), i = l((m) => {
9
- r(m);
10
- }, []);
11
- return !e || !o ? null : /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
12
- f,
13
- {
14
- startLeft: !0,
15
- targetElement: /* @__PURE__ */ t(C, { value: e == null ? void 0 : e.code, menuVisible: n }),
16
- menuElement: /* @__PURE__ */ t(d, { onChange: o, selectedCountry: e, menuVisible: n }),
17
- menuOffset: 5,
18
- menuZIndex: 1,
19
- onMenuVisibilityChange: i
20
- }
21
- ) });
22
- }, h = s(p);
23
- export {
24
- h as default
25
- };
26
- //# sourceMappingURL=country-selector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country-selector.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/country-selector/country-selector.tsx"],"sourcesContent":["import type { IPhoneCountrySelectorProps } from './country-selector-types';\n\nimport { useCallback, useState, type FC, memo } from 'react';\n\nimport ContextMenu from '../../../../ui/context-menu/context-menu';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport CountryCodeButton from './country-code-button';\nimport CountryListMenu from './country-list-menu';\n\nconst PhoneCountrySelector: FC<IPhoneCountrySelectorProps> = ({ value, onChange }) => {\n const [menuVisible, setMenuVisible] = useState(false);\n\n const handleMenuVisibility = useCallback((visible: boolean) => {\n setMenuVisible(visible);\n }, []);\n\n if (!value || !onChange) return null;\n\n return (\n <FlexView>\n <ContextMenu\n startLeft\n targetElement={<CountryCodeButton value={value?.code} menuVisible={menuVisible} />}\n menuElement={\n <CountryListMenu onChange={onChange} selectedCountry={value} menuVisible={menuVisible} />\n }\n menuOffset={5}\n menuZIndex={1}\n onMenuVisibilityChange={handleMenuVisibility}\n />\n </FlexView>\n );\n};\n\nexport default memo(PhoneCountrySelector);\n"],"names":["PhoneCountrySelector","value","onChange","menuVisible","setMenuVisible","useState","handleMenuVisibility","useCallback","visible","FlexView","jsx","ContextMenu","CountryCodeButton","CountryListMenu","PhoneCountrySelector$1","memo"],"mappings":";;;;;;AASA,MAAMA,IAAuD,CAAC,EAAE,OAAAC,GAAO,UAAAC,QAAe;AACpF,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAK,GAE9CC,IAAuBC,EAAY,CAACC,MAAqB;AAC7D,IAAAJ,EAAeI,CAAO;AAAA,EACxB,GAAG,CAAE,CAAA;AAEL,SAAI,CAACP,KAAS,CAACC,IAAiB,yBAG7BO,GACC,EAAA,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAS;AAAA,MACT,eAAgB,gBAAAD,EAAAE,GAAA,EAAkB,OAAOX,KAAA,gBAAAA,EAAO,MAAM,aAAAE,GAA0B;AAAA,MAChF,aACG,gBAAAO,EAAAG,GAAA,EAAgB,UAAAX,GAAoB,iBAAiBD,GAAO,aAAAE,GAA0B;AAAA,MAEzF,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,wBAAwBG;AAAA,IAAA;AAAA,EAE5B,EAAA,CAAA;AAEJ,GAEeQ,IAAAC,EAAKf,CAAoB;"}
@@ -1,30 +0,0 @@
1
- import o from "styled-components";
2
- const e = o.input`
3
- width: 100%;
4
- max-width: 330px;
5
- padding: 0;
6
- line-height: 40px;
7
- text-transform: ${({ textTransform: t }) => t || "none"};
8
- border: none;
9
- outline: none;
10
- background-color: transparent;
11
- font-size: ${({ fontSize: t }) => t}px;
12
- text-align: ${({ align: t }) => t};
13
- caret-color: ${({ theme: t }) => t.colors.WHITE};
14
- color: ${({ theme: t }) => t.colors.WHITE};
15
- font-family: 'Athletics-Light';
16
- color: ${({ color: t }) => t};
17
- transition: all 0.3s ease;
18
- &::placeholder {
19
- font-family: 'Athletics-Light';
20
- font-size: 32px;
21
- }
22
- &::-webkit-outer-spin-button,
23
- &::-webkit-inner-spin-button {
24
- -webkit-appearance: none;
25
- }
26
- `;
27
- export {
28
- e as CustomInput
29
- };
30
- //# sourceMappingURL=custom-input-field-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-input-field-styled.js","sources":["../../../../../src/features/auth/signup/custom-input-field/custom-input-field-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const CustomInput = styled.input<{\n color: string;\n align?: string;\n textTransform?: string;\n fontSize?: number;\n}>`\n width: 100%;\n max-width: 330px;\n padding: 0;\n line-height: 40px;\n text-transform: ${({ textTransform }) => textTransform || 'none'};\n border: none;\n outline: none;\n background-color: transparent;\n font-size: ${({ fontSize }) => fontSize}px;\n text-align: ${({ align }) => align};\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme }) => theme.colors.WHITE};\n font-family: 'Athletics-Light';\n color: ${({ color }) => color};\n transition: all 0.3s ease;\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n`;\n"],"names":["CustomInput","styled","textTransform","fontSize","align","theme","color"],"mappings":";AAEO,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,oBAUd,CAAC,EAAE,eAAAC,QAAoBA,KAAiB,MAAM;AAAA;AAAA;AAAA;AAAA,eAInD,CAAC,EAAE,UAAAC,EAAS,MAAMA,CAAQ;AAAA,gBACzB,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA,iBACnB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,WACvC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA,WAEjC,CAAC,EAAE,OAAAC,EAAM,MAAMA,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,100 +0,0 @@
1
- import { jsx as c, jsxs as y } from "react/jsx-runtime";
2
- import { memo as A, useState as g, useRef as C, useCallback as a, useMemo as I, useEffect as T } from "react";
3
- import { useTheme as H } from "styled-components";
4
- import L from "../../../ui/layout/flex-view.js";
5
- import M from "./country-selector/country-selector.js";
6
- import { CustomInput as N } from "./custom-input-field-styled.js";
7
- import X from "./input-wrapper/input-wrapper.js";
8
- import _ from "./password-toggle/password-toggle.js";
9
- const q = ({
10
- value: o,
11
- onChange: m,
12
- error: u,
13
- helperText: W,
14
- onEnter: n,
15
- isLoading: b,
16
- isValid: p,
17
- type: e = "text",
18
- placeholder: F,
19
- actionElement: R,
20
- maxLength: $,
21
- width: D,
22
- textTransform: P,
23
- textAlign: S = "center",
24
- selectedCountry: V,
25
- onCountryChange: j,
26
- autoSize: d = !1
27
- }) => {
28
- const r = H(), [l, k] = g(!1), [z, h] = g(32), f = C(null), s = C(null), E = a(
29
- (t) => {
30
- t.key === "Enter" && (n == null || n());
31
- },
32
- [n]
33
- ), G = I(() => e === "password" ? l ? "text" : "password" : e === "phone" ? "number" : e, [e, l]), K = I(() => u ? r.colors.RED : p ? r.colors.GREEN_4 : r.colors.WHITE, [u, p, r.colors]), x = a((t, w) => {
34
- s.current || (s.current = document.createElement("canvas"));
35
- const i = s.current.getContext("2d");
36
- return i ? (i.font = w, i.measureText(t).width) : 0;
37
- }, []);
38
- T(() => {
39
- if (!f.current || !o || !d)
40
- return;
41
- const t = f.current.clientWidth;
42
- x(o, "32px 'Athletics-Light'") > t ? h(24) : h(32);
43
- }, [o, x, d]), T(() => () => {
44
- s.current = null;
45
- }, []);
46
- const v = a(
47
- (t) => m(t.target.value),
48
- [m]
49
- );
50
- return /* @__PURE__ */ c(
51
- X,
52
- {
53
- helperText: u || W,
54
- isLoading: b,
55
- actionElement: R,
56
- children: /* @__PURE__ */ y(
57
- L,
58
- {
59
- $width: D ?? "100%",
60
- $flex: 1,
61
- $alignItems: "center",
62
- $flexDirection: "row",
63
- $flexGapX: 0.5,
64
- children: [
65
- e === "phone" && /* @__PURE__ */ c(M, { onChange: j, value: V }),
66
- /* @__PURE__ */ c(
67
- N,
68
- {
69
- ref: f,
70
- value: o,
71
- onChange: v,
72
- autoFocus: !0,
73
- placeholder: F,
74
- color: K,
75
- autoCapitalize: "none",
76
- textTransform: P,
77
- type: G,
78
- onKeyDown: E,
79
- maxLength: $,
80
- align: S,
81
- fontSize: z
82
- }
83
- ),
84
- e === "password" && /* @__PURE__ */ c(
85
- _,
86
- {
87
- isVisible: l,
88
- onToggle: () => k((t) => !t)
89
- }
90
- )
91
- ]
92
- }
93
- )
94
- }
95
- );
96
- }, et = A(q);
97
- export {
98
- et as default
99
- };
100
- //# sourceMappingURL=custom-input-field.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-input-field.js","sources":["../../../../../src/features/auth/signup/custom-input-field/custom-input-field.tsx"],"sourcesContent":["import type { ICustomInputFieldProps } from './custom-input-field-types';\n\nimport {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n memo,\n type FC,\n type KeyboardEvent,\n type ChangeEvent,\n} from 'react';\nimport { useTheme } from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport PhoneCountrySelector from './country-selector/country-selector';\nimport * as Styled from './custom-input-field-styled';\nimport InputWrapper from './input-wrapper/input-wrapper';\nimport PasswordToggleIcon from './password-toggle/password-toggle';\n\nconst CustomInputField: FC<ICustomInputFieldProps> = ({\n value,\n onChange,\n error,\n helperText,\n onEnter,\n isLoading,\n isValid,\n type = 'text',\n placeholder,\n actionElement,\n maxLength,\n width,\n textTransform,\n textAlign = 'center',\n selectedCountry,\n onCountryChange,\n autoSize = false,\n}) => {\n const theme = useTheme();\n const [isPasswordVisible, setIsPasswordVisible] = useState(false);\n const [fontSize, setFontSize] = useState(32);\n const inputRef = useRef<HTMLInputElement>(null);\n const canvasRef = useRef<HTMLCanvasElement | null>(null);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter') {\n onEnter?.();\n }\n },\n [onEnter],\n );\n\n const inputType = useMemo(() => {\n if (type === 'password') return isPasswordVisible ? 'text' : 'password';\n\n if (type === 'phone') return 'number';\n\n return type;\n }, [type, isPasswordVisible]);\n\n const inputColor = useMemo(() => {\n if (error) return theme.colors.RED;\n\n if (isValid) return theme.colors.GREEN_4;\n\n return theme.colors.WHITE;\n }, [error, isValid, theme.colors]);\n\n const measureTextWidth = useCallback((text: string, font: string): number => {\n if (!canvasRef.current) {\n canvasRef.current = document.createElement('canvas');\n }\n\n const context = canvasRef.current.getContext('2d');\n\n if (!context) return 0;\n\n context.font = font;\n\n return context.measureText(text).width;\n }, []);\n\n useEffect(() => {\n if (!inputRef.current || !value || !autoSize) {\n return;\n }\n\n const inputWidth = inputRef.current.clientWidth;\n\n const font32 = \"32px 'Athletics-Light'\";\n\n const textWidth32 = measureTextWidth(value, font32);\n\n if (textWidth32 > inputWidth) {\n setFontSize(24);\n } else {\n setFontSize(32);\n }\n }, [value, measureTextWidth, autoSize]);\n\n useEffect(() => {\n return () => {\n canvasRef.current = null;\n };\n }, []);\n\n const handleChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => onChange(event.target.value),\n [onChange],\n );\n\n return (\n <InputWrapper\n helperText={error || helperText}\n isLoading={isLoading}\n actionElement={actionElement}\n >\n <FlexView\n $width={width ?? '100%'}\n $flex={1}\n $alignItems=\"center\"\n $flexDirection=\"row\"\n $flexGapX={0.5}\n >\n {type === 'phone' && (\n <PhoneCountrySelector onChange={onCountryChange} value={selectedCountry} />\n )}\n <Styled.CustomInput\n ref={inputRef}\n value={value}\n onChange={handleChange}\n autoFocus\n placeholder={placeholder}\n color={inputColor}\n autoCapitalize=\"none\"\n textTransform={textTransform}\n type={inputType}\n onKeyDown={handleKeyDown}\n maxLength={maxLength}\n align={textAlign}\n fontSize={fontSize}\n />\n {type === 'password' && (\n <PasswordToggleIcon\n isVisible={isPasswordVisible}\n onToggle={() => setIsPasswordVisible(prev => !prev)}\n />\n )}\n </FlexView>\n </InputWrapper>\n );\n};\n\nexport default memo(CustomInputField);\n"],"names":["CustomInputField","value","onChange","error","helperText","onEnter","isLoading","isValid","type","placeholder","actionElement","maxLength","width","textTransform","textAlign","selectedCountry","onCountryChange","autoSize","theme","useTheme","isPasswordVisible","setIsPasswordVisible","useState","fontSize","setFontSize","inputRef","useRef","canvasRef","handleKeyDown","useCallback","event","inputType","useMemo","inputColor","measureTextWidth","text","font","context","useEffect","inputWidth","handleChange","jsx","InputWrapper","jsxs","FlexView","PhoneCountrySelector","Styled.CustomInput","PasswordToggleIcon","prev","customInputField","memo"],"mappings":"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"}
@@ -1,88 +0,0 @@
1
- import r from "styled-components";
2
- const a = r.div`
3
- .react-datepicker {
4
- font-family: UntitledSans-Medium;
5
- font-size: 14px;
6
- background-color: ${({ theme: e }) => e.colors.BLACK_3};
7
- border: 1px solid ${({ theme: e }) => e.colors.BLACK_5};
8
- padding: 16px;
9
- border-radius: 8px;
10
- transition: all 0.3s ease-in-out;
11
- }
12
- .react-datepicker-popper {
13
- z-index: 1;
14
- }
15
- .react-datepicker__aria-live {
16
- display: none;
17
- }
18
- .react-datepicker__header {
19
- color: ${({ theme: e }) => e.colors.WHITE};
20
- text-align: center;
21
- }
22
-
23
- .react-datepicker__month-wrapper {
24
- display: flex;
25
- }
26
- .react-datepicker__month-text {
27
- color: ${({ theme: e }) => e.colors.WHITE_T_38};
28
- cursor: pointer;
29
- padding: 8px;
30
- border-radius: 4px;
31
- &:hover {
32
- color: ${({ theme: e }) => e.colors.WHITE};
33
- }
34
- }
35
- .react-datepicker__month-text--disabled {
36
- color: ${({ theme: e }) => e.colors.WHITE_T_10};
37
- cursor: not-allowed;
38
- &:hover {
39
- color: ${({ theme: e }) => e.colors.WHITE_T_10};
40
- }
41
- }
42
- .react-datepicker__month-text--selected {
43
- color: ${({ theme: e }) => e.colors.WHITE};
44
- }
45
-
46
- .react-datepicker__navigation--previous {
47
- background: url('/path/to/your/custom-left-arrow.svg') no-repeat center;
48
- width: 20px;
49
- height: 20px;
50
- border: none;
51
- background-size: contain;
52
- }
53
-
54
- .react-datepicker__navigation--next {
55
- background: url('/path/to/your/custom-right-arrow.svg') no-repeat center;
56
- width: 20px;
57
- height: 20px;
58
- border: none;
59
- background-size: contain;
60
- }
61
-
62
- .react-datepicker__navigation-icon::before {
63
- content: none;
64
- }
65
-
66
- .react-datepicker__input-container input {
67
- max-width: 320px;
68
- padding: 0;
69
- line-height: 40px;
70
- border: none;
71
- outline: none;
72
- background-color: transparent;
73
- font-size: 32px;
74
- text-align: center;
75
- caret-color: ${({ theme: e }) => e.colors.WHITE};
76
- color: ${({ theme: e, color: o }) => o || e.colors.WHITE};
77
- font-family: 'Athletics-Light';
78
-
79
- &::placeholder {
80
- font-family: 'Athletics-Light';
81
- font-size: 32px;
82
- }
83
- }
84
- `;
85
- export {
86
- a as StyledDatePickerWrapper
87
- };
88
- //# sourceMappingURL=date-picker-input-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date-picker-input-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledDatePickerWrapper = styled.div`\n .react-datepicker {\n font-family: UntitledSans-Medium;\n font-size: 14px;\n background-color: ${({ theme }) => theme.colors.BLACK_3};\n border: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n padding: 16px;\n border-radius: 8px;\n transition: all 0.3s ease-in-out;\n }\n .react-datepicker-popper {\n z-index: 1;\n }\n .react-datepicker__aria-live {\n display: none;\n }\n .react-datepicker__header {\n color: ${({ theme }) => theme.colors.WHITE};\n text-align: center;\n }\n\n .react-datepicker__month-wrapper {\n display: flex;\n }\n .react-datepicker__month-text {\n color: ${({ theme }) => theme.colors.WHITE_T_38};\n cursor: pointer;\n padding: 8px;\n border-radius: 4px;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n }\n .react-datepicker__month-text--disabled {\n color: ${({ theme }) => theme.colors.WHITE_T_10};\n cursor: not-allowed;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE_T_10};\n }\n }\n .react-datepicker__month-text--selected {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n\n .react-datepicker__navigation--previous {\n background: url('/path/to/your/custom-left-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation--next {\n background: url('/path/to/your/custom-right-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation-icon::before {\n content: none;\n }\n\n .react-datepicker__input-container input {\n max-width: 320px;\n padding: 0;\n line-height: 40px;\n border: none;\n outline: none;\n background-color: transparent;\n font-size: 32px;\n text-align: center;\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme, color }) => color || theme.colors.WHITE};\n font-family: 'Athletics-Light';\n\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n }\n`;\n"],"names":["StyledDatePickerWrapper","styled","theme","color"],"mappings":";AAEO,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA,wBAItB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,wBACnC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAY9C,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQjC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA,aAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,eAGpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,aAIxC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAgC3B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,aACvC,CAAC,EAAE,OAAAA,GAAO,OAAAC,EAAA,MAAYA,KAASD,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,43 +0,0 @@
1
- import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
- import { memo as D, useCallback as l } from "react";
3
- import I from "../../../../../node_modules/react-datepicker/dist/index.es.js";
4
- import { useTheme as T } from "styled-components";
5
- import Y from "../../../../../assets/line-icons/icons/left.js";
6
- import x from "../../../../../assets/line-icons/icons/right.js";
7
- import i from "../../../../ui/buttons/clickable/clickable.js";
8
- import k from "../../../../ui/layout/flex-view.js";
9
- import w from "../../../../ui/text/text.js";
10
- import y from "../input-wrapper/input-wrapper.js";
11
- import { StyledDatePickerWrapper as C } from "./date-picker-input-styled.js";
12
- import { subYears as c } from "../../../../../node_modules/date-fns/subYears.js";
13
- const H = ({ value: s, onChange: t, error: m }) => {
14
- const r = T(), d = l((o) => t(o), [t]), p = l(
15
- (o) => {
16
- const { date: f, decreaseYear: h, increaseYear: u, prevYearButtonDisabled: a, nextYearButtonDisabled: n } = o;
17
- return /* @__PURE__ */ b(k, { $alignItems: "center", $flexDirection: "row", $justifyContent: "space-between", children: [
18
- /* @__PURE__ */ e(i, { onClick: h, label: "increase-year", disabled: a, children: /* @__PURE__ */ e(Y, { color: r.colors[a ? "WHITE_T_10" : "WHITE"] }) }),
19
- /* @__PURE__ */ e(w, { $renderAs: "ub2-bold", $color: "WHITE", children: f.getFullYear() }),
20
- /* @__PURE__ */ e(i, { onClick: u, label: "decrease-year", disabled: n, children: /* @__PURE__ */ e(x, { color: r.colors[n ? "WHITE_T_10" : "WHITE"] }) })
21
- ] });
22
- },
23
- [r.colors]
24
- );
25
- return /* @__PURE__ */ e(y, { helperText: m, children: /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
26
- I,
27
- {
28
- selected: s,
29
- showMonthYearPicker: !0,
30
- showPopperArrow: !1,
31
- dateFormat: "MM/yyyy",
32
- placeholderText: "MM / YYYY",
33
- onChange: d,
34
- minDate: c(/* @__PURE__ */ new Date(), 22),
35
- maxDate: c(/* @__PURE__ */ new Date(), 2),
36
- renderCustomHeader: p
37
- }
38
- ) }) });
39
- }, L = D(H);
40
- export {
41
- L as default
42
- };
43
- //# sourceMappingURL=date-picker-input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date-picker-input.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.tsx"],"sourcesContent":["import type { IDatePickerInputProps } from './date-picker-input-types';\nimport type { ReactDatePickerCustomHeaderProps } from 'react-datepicker';\n\nimport { subYears } from 'date-fns';\nimport { type FC, memo, useCallback } from 'react';\nimport DatePicker from 'react-datepicker';\nimport { useTheme } from 'styled-components';\n\nimport LeftIcon from '../../../../../assets/line-icons/icons/left';\nimport RightIcon from '../../../../../assets/line-icons/icons/right';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport InputWrapper from '../input-wrapper/input-wrapper';\nimport * as Styled from './date-picker-input-styled';\n\nconst DatePickerInput: FC<IDatePickerInputProps> = ({ value, onChange, error }) => {\n const theme = useTheme();\n\n const handleChangeDate = useCallback((date: Date | null) => onChange(date), [onChange]);\n\n const renderHeader = useCallback(\n (props: ReactDatePickerCustomHeaderProps) => {\n const { date, decreaseYear, increaseYear, prevYearButtonDisabled, nextYearButtonDisabled } =\n props;\n\n return (\n <FlexView $alignItems=\"center\" $flexDirection=\"row\" $justifyContent=\"space-between\">\n <Clickable onClick={decreaseYear} label=\"increase-year\" disabled={prevYearButtonDisabled}>\n <LeftIcon color={theme.colors[prevYearButtonDisabled ? 'WHITE_T_10' : 'WHITE']} />\n </Clickable>\n <Text $renderAs=\"ub2-bold\" $color=\"WHITE\">\n {date.getFullYear()}\n </Text>\n <Clickable onClick={increaseYear} label=\"decrease-year\" disabled={nextYearButtonDisabled}>\n <RightIcon color={theme.colors[nextYearButtonDisabled ? 'WHITE_T_10' : 'WHITE']} />\n </Clickable>\n </FlexView>\n );\n },\n\n [theme.colors],\n );\n\n return (\n <InputWrapper helperText={error}>\n <Styled.StyledDatePickerWrapper>\n <DatePicker\n selected={value}\n showMonthYearPicker\n showPopperArrow={false}\n dateFormat=\"MM/yyyy\"\n placeholderText=\"MM / YYYY\"\n onChange={handleChangeDate}\n minDate={subYears(new Date(), 22)}\n maxDate={subYears(new Date(), 2)}\n renderCustomHeader={renderHeader}\n />\n </Styled.StyledDatePickerWrapper>\n </InputWrapper>\n );\n};\n\nexport default memo(DatePickerInput);\n"],"names":["DatePickerInput","value","onChange","error","theme","useTheme","handleChangeDate","useCallback","date","renderHeader","props","decreaseYear","increaseYear","prevYearButtonDisabled","nextYearButtonDisabled","FlexView","jsx","Clickable","LeftIcon","Text","RightIcon","InputWrapper","Styled.StyledDatePickerWrapper","DatePicker","subYears","datePickerInput","memo"],"mappings":";;;;;;;;;;;;AAgBA,MAAMA,IAA6C,CAAC,EAAE,OAAAC,GAAO,UAAAC,GAAU,OAAAC,QAAY;AACjF,QAAMC,IAAQC,KAERC,IAAmBC,EAAY,CAACC,MAAsBN,EAASM,CAAI,GAAG,CAACN,CAAQ,CAAC,GAEhFO,IAAeF;AAAA,IACnB,CAACG,MAA4C;AAC3C,YAAM,EAAE,MAAAF,GAAM,cAAAG,GAAc,cAAAC,GAAc,wBAAAC,GAAwB,wBAAAC,EAChE,IAAAJ;AAEF,+BACGK,GAAS,EAAA,aAAY,UAAS,gBAAe,OAAM,iBAAgB,iBAClE,UAAA;AAAA,QAAA,gBAAAC,EAACC,KAAU,SAASN,GAAc,OAAM,iBAAgB,UAAUE,GAChE,UAAA,gBAAAG,EAACE,GAAS,EAAA,OAAOd,EAAM,OAAOS,IAAyB,eAAe,OAAO,EAAG,CAAA,GAClF;AAAA,QACA,gBAAAG,EAACG,KAAK,WAAU,YAAW,QAAO,SAC/B,UAAAX,EAAK,eACR;AAAA,0BACCS,GAAU,EAAA,SAASL,GAAc,OAAM,iBAAgB,UAAUE,GAChE,UAAC,gBAAAE,EAAAI,GAAA,EAAU,OAAOhB,EAAM,OAAOU,IAAyB,eAAe,OAAO,EAAG,CAAA,GACnF;AAAA,MACF,EAAA,CAAA;AAAA,IAEJ;AAAA,IAEA,CAACV,EAAM,MAAM;AAAA,EAAA;AAGf,2BACGiB,GAAa,EAAA,YAAYlB,GACxB,UAAC,gBAAAa,EAAAM,GAAA,EACC,UAAA,gBAAAN;AAAA,IAACO;AAAA,IAAA;AAAA,MACC,UAAUtB;AAAA,MACV,qBAAmB;AAAA,MACnB,iBAAiB;AAAA,MACjB,YAAW;AAAA,MACX,iBAAgB;AAAA,MAChB,UAAUK;AAAA,MACV,SAASkB,EAAa,oBAAA,KAAA,GAAQ,EAAE;AAAA,MAChC,SAASA,EAAa,oBAAA,KAAA,GAAQ,CAAC;AAAA,MAC/B,oBAAoBf;AAAA,IAAA;AAAA,EAAA,EAExB,CAAA,EACF,CAAA;AAEJ,GAEegB,IAAAC,EAAK1B,CAAe;"}
@@ -1,31 +0,0 @@
1
- import c from "styled-components";
2
- import s from "../../../../ui/layout/flex-view.js";
3
- const p = c(s)`
4
- max-width: 264px;
5
- `, x = c(s)(({ selected: r, theme: o }) => {
6
- const t = o.colors[r ? "WHITE" : "REAL_BLACK"], l = o.colors[r ? "REAL_BLACK" : "WHITE_T_38"], n = o.colors.WHITE, d = o.colors.REAL_BLACK, i = o.colors.WHITE;
7
- return `
8
- cursor: pointer;
9
- transition: all 0.3s ease;
10
- background-color: ${t};
11
- border-width: 2px;
12
-
13
- > div {
14
- color: ${l};
15
- }
16
-
17
- &:hover {
18
- background-color: ${n};
19
- border-color: ${i};
20
-
21
- > div {
22
- color: ${d};
23
- }
24
- }
25
- `;
26
- });
27
- export {
28
- x as GradeItem,
29
- p as GradeListWrapper
30
- };
31
- //# sourceMappingURL=grade-input-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grade-input-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input-field/grade-input/grade-input-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\n\nexport const GradeListWrapper = styled(FlexView)`\n max-width: 264px;\n`;\n\nexport const GradeItem = styled(FlexView)<{ selected: boolean }>(({ selected, theme }) => {\n const bgColor = theme.colors[selected ? 'WHITE' : 'REAL_BLACK'];\n const textColor = theme.colors[selected ? 'REAL_BLACK' : 'WHITE_T_38'];\n const hoverBg = theme.colors.WHITE;\n const hoverText = theme.colors.REAL_BLACK;\n const hoverBorder = theme.colors.WHITE;\n\n return `\n cursor: pointer;\n transition: all 0.3s ease;\n background-color: ${bgColor};\n border-width: 2px;\n\n > div {\n color: ${textColor};\n }\n\n &:hover {\n background-color: ${hoverBg};\n border-color: ${hoverBorder};\n\n > div {\n color: ${hoverText};\n }\n }\n `;\n});\n"],"names":["GradeListWrapper","styled","FlexView","GradeItem","selected","theme","bgColor","textColor","hoverBg","hoverText","hoverBorder"],"mappings":";;AAIa,MAAAA,IAAmBC,EAAOC,CAAQ;AAAA;AAAA,GAIlCC,IAAYF,EAAOC,CAAQ,EAAyB,CAAC,EAAE,UAAAE,GAAU,OAAAC,QAAY;AACxF,QAAMC,IAAUD,EAAM,OAAOD,IAAW,UAAU,YAAY,GACxDG,IAAYF,EAAM,OAAOD,IAAW,eAAe,YAAY,GAC/DI,IAAUH,EAAM,OAAO,OACvBI,IAAYJ,EAAM,OAAO,YACzBK,IAAcL,EAAM,OAAO;AAE1B,SAAA;AAAA;AAAA;AAAA,0BAGiBC,CAAO;AAAA;AAAA;AAAA;AAAA,iBAIhBC,CAAS;AAAA;AAAA;AAAA;AAAA,4BAIEC,CAAO;AAAA,wBACXE,CAAW;AAAA;AAAA;AAAA,mBAGhBD,CAAS;AAAA;AAAA;AAAA;AAI5B,CAAC;"}
@@ -1,31 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { memo as m } from "react";
3
- import p from "../../../../ui/text/text.js";
4
- import { STUDENT_GRADE_OPTIONS as a } from "../../signup-constants.js";
5
- import c from "../input-wrapper/input-wrapper.js";
6
- import { GradeListWrapper as $, GradeItem as l } from "./grade-input-styled.js";
7
- const s = ({ value: n, onChange: o, error: i }) => /* @__PURE__ */ r(c, { helperText: i, children: /* @__PURE__ */ r($, { $flexDirection: "row", $flexWrap: !0, $flexGapX: 1, children: [...a].map(({ label: d, value: e }) => {
8
- const t = e === n;
9
- return /* @__PURE__ */ r(
10
- l,
11
- {
12
- selected: t,
13
- onClick: () => o(e),
14
- $borderRadius: 48,
15
- $gutter: 13,
16
- $gap: 6,
17
- $alignItems: "center",
18
- $justifyContent: "center",
19
- $background: t ? "WHITE" : "REAL_BLACK",
20
- $borderColor: t ? "WHITE" : "BLACK_5",
21
- $width: e === "-1" ? 96 : 40,
22
- $height: 40,
23
- children: /* @__PURE__ */ r(p, { $align: "center", $renderAs: "ab1", children: d })
24
- },
25
- e
26
- );
27
- }) }) }), T = m(s);
28
- export {
29
- T as default
30
- };
31
- //# sourceMappingURL=grade-input.js.map