@cuemath/leap 2.9.10 → 2.9.12-j1

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 (439) hide show
  1. package/dist/assets/illustrations/illustrations.js +3 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/illustrations/loader-1.svg.js +6 -0
  4. package/dist/assets/illustrations/loader-1.svg.js.map +1 -0
  5. package/dist/assets/line-icons/icons/apple-icon.js +48 -0
  6. package/dist/assets/line-icons/icons/apple-icon.js.map +1 -0
  7. package/dist/assets/line-icons/icons/google-icon.js +42 -0
  8. package/dist/assets/line-icons/icons/google-icon.js.map +1 -0
  9. package/dist/assets/lottie/lottie.js +12 -1
  10. package/dist/assets/lottie/lottie.js.map +1 -1
  11. package/dist/features/auth/account-selector/account-selector-styled.js +37 -0
  12. package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -0
  13. package/dist/features/auth/account-selector/account-selector.js +90 -0
  14. package/dist/features/auth/account-selector/account-selector.js.map +1 -0
  15. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +12 -0
  16. package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +1 -0
  17. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +11 -0
  18. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -0
  19. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +17 -0
  20. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -0
  21. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +20 -0
  22. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -0
  23. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +29 -0
  24. package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +1 -0
  25. package/dist/features/auth/comps/overlay-loader/overlay-loader.js +8 -0
  26. package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +1 -0
  27. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js +25 -0
  28. package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js.map +1 -0
  29. package/dist/features/auth/comps/resend-otp/resend-otp.js +38 -0
  30. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -0
  31. package/dist/features/auth/comps/tabs/tabs-styled.js +23 -0
  32. package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -0
  33. package/dist/features/auth/comps/tabs/tabs.js +23 -0
  34. package/dist/features/auth/comps/tabs/tabs.js.map +1 -0
  35. package/dist/features/auth/forgot-password/forgot-password-styled.js +12 -0
  36. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -0
  37. package/dist/features/auth/forgot-password/otp-form/otp-form.js +67 -0
  38. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -0
  39. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +89 -0
  40. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -0
  41. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +60 -0
  42. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -0
  43. package/dist/features/auth/login/login-constants.js +12 -0
  44. package/dist/features/auth/login/login-constants.js.map +1 -0
  45. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +31 -0
  46. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -0
  47. package/dist/features/auth/login/social-login-methods/social-login-methods.js +46 -0
  48. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -0
  49. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +50 -0
  50. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -0
  51. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +129 -0
  52. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -0
  53. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +27 -0
  54. package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +1 -0
  55. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +76 -0
  56. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -0
  57. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +38 -0
  58. package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +1 -0
  59. package/dist/features/auth/signup/custom-input-field/custom-input-field.js +85 -0
  60. package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -0
  61. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +86 -0
  62. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +1 -0
  63. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +58 -0
  64. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +1 -0
  65. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +31 -0
  66. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +1 -0
  67. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +30 -0
  68. package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +1 -0
  69. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +11 -0
  70. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +1 -0
  71. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +33 -0
  72. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -0
  73. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-code-button.js +33 -0
  74. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-code-button.js.map +1 -0
  75. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-list-menu.js +28 -0
  76. package/dist/features/auth/signup/custom-input-field/phone-input/country-selector/country-list-menu.js.map +1 -0
  77. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input-styled.js +29 -0
  78. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input-styled.js.map +1 -0
  79. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input.js +67 -0
  80. package/dist/features/auth/signup/custom-input-field/phone-input/phone-input.js.map +1 -0
  81. package/dist/features/auth/signup/signup-constants.js +1022 -0
  82. package/dist/features/auth/signup/signup-constants.js.map +1 -0
  83. package/dist/features/auth/signup/signup-methods/signup-methods.js +68 -0
  84. package/dist/features/auth/signup/signup-methods/signup-methods.js.map +1 -0
  85. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +19 -0
  86. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +1 -0
  87. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +61 -0
  88. package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +1 -0
  89. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +24 -0
  90. package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +1 -0
  91. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +87 -0
  92. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +1 -0
  93. package/dist/features/post-game-stats/digital-meter/constants.js +10 -9
  94. package/dist/features/post-game-stats/digital-meter/constants.js.map +1 -1
  95. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js +15 -16
  96. package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js.map +1 -1
  97. package/dist/features/post-game-stats/digital-meter/digital-meter.js +88 -86
  98. package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +1 -1
  99. package/dist/features/post-game-stats/digital-meter/helper.js +3 -13
  100. package/dist/features/post-game-stats/digital-meter/helper.js.map +1 -1
  101. package/dist/features/ui/animated-arc/animated-arc-constants.js +5 -0
  102. package/dist/features/ui/animated-arc/animated-arc-constants.js.map +1 -0
  103. package/dist/features/ui/animated-arc/animated-arc-helpers.js +14 -0
  104. package/dist/features/ui/animated-arc/animated-arc-helpers.js.map +1 -0
  105. package/dist/features/ui/animated-arc/animated-arc-styled.js +33 -0
  106. package/dist/features/ui/animated-arc/animated-arc-styled.js.map +1 -0
  107. package/dist/features/ui/animated-arc/animated-arc.js +49 -0
  108. package/dist/features/ui/animated-arc/animated-arc.js.map +1 -0
  109. package/dist/features/ui/context-menu/context-menu.js +28 -18
  110. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  111. package/dist/features/ui/image/image.js +12 -12
  112. package/dist/features/ui/image/image.js.map +1 -1
  113. package/dist/features/ui/inputs/base-input/base-input-styled.js +77 -67
  114. package/dist/features/ui/inputs/base-input/base-input-styled.js.map +1 -1
  115. package/dist/features/ui/inputs/base-input/base-input.js +49 -47
  116. package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
  117. package/dist/features/ui/inputs/text-input/text-input.js +14 -12
  118. package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
  119. package/dist/features/ui/lottie-animation/lottie-animation.js +37 -28
  120. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  121. package/dist/features/ui/text/text.js +29 -27
  122. package/dist/features/ui/text/text.js.map +1 -1
  123. package/dist/features/ui/theme/button.js +17 -0
  124. package/dist/features/ui/theme/button.js.map +1 -1
  125. package/dist/features/ui/theme/input.js +67 -14
  126. package/dist/features/ui/theme/input.js.map +1 -1
  127. package/dist/index.d.ts +267 -2
  128. package/dist/index.js +523 -477
  129. package/dist/index.js.map +1 -1
  130. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +332 -0
  131. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  132. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +370 -0
  133. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  134. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +252 -0
  135. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +1 -0
  136. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +24 -0
  137. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +1 -0
  138. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +192 -0
  139. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  140. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +19 -0
  141. package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  142. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +129 -0
  143. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  144. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
  145. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  146. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  147. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  148. package/dist/node_modules/date-fns/subYears.js +9 -0
  149. package/dist/node_modules/date-fns/subYears.js.map +1 -0
  150. package/dist/node_modules/react-datepicker/dist/index.es.js +2700 -0
  151. package/dist/node_modules/react-datepicker/dist/index.es.js.map +1 -0
  152. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
  153. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  154. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +8 -0
  155. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  156. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +518 -0
  157. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  158. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +60 -0
  159. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  160. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +53 -0
  161. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  162. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +19 -0
  163. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  164. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +12 -0
  165. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  166. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +21 -0
  167. package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  168. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +11 -0
  169. package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +1 -0
  170. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +10 -0
  171. package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +1 -0
  172. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +10 -0
  173. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +1 -0
  174. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +11 -0
  175. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +1 -0
  176. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +21 -0
  177. package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +1 -0
  178. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +9 -0
  179. package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +1 -0
  180. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +9 -0
  181. package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +1 -0
  182. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +9 -0
  183. package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +1 -0
  184. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +9 -0
  185. package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +1 -0
  186. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +10 -0
  187. package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +1 -0
  188. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +9 -0
  189. package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +1 -0
  190. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +17 -0
  191. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  192. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
  193. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
  194. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +15 -0
  195. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +1 -0
  196. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +14 -0
  197. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +1 -0
  198. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +23 -0
  199. package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +1 -0
  200. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +10 -0
  201. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +1 -0
  202. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +10 -0
  203. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +1 -0
  204. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +12 -0
  205. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +1 -0
  206. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +10 -0
  207. package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +1 -0
  208. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +60 -0
  209. package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +1 -0
  210. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +9 -0
  211. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +1 -0
  212. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +9 -0
  213. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +1 -0
  214. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +12 -0
  215. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +1 -0
  216. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +11 -0
  217. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +1 -0
  218. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +9 -0
  219. package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +1 -0
  220. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +9 -0
  221. package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +1 -0
  222. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +10 -0
  223. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +1 -0
  224. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +13 -0
  225. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +1 -0
  226. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +16 -0
  227. package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  228. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +9 -0
  229. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +1 -0
  230. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +9 -0
  231. package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +1 -0
  232. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +10 -0
  233. package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +1 -0
  234. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +9 -0
  235. package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +1 -0
  236. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +9 -0
  237. package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +1 -0
  238. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +13 -0
  239. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +1 -0
  240. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +18 -0
  241. package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +1 -0
  242. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +9 -0
  243. package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +1 -0
  244. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +9 -0
  245. package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +1 -0
  246. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +9 -0
  247. package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +1 -0
  248. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +8 -0
  249. package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +1 -0
  250. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +9 -0
  251. package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +1 -0
  252. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +15 -0
  253. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +1 -0
  254. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +14 -0
  255. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +1 -0
  256. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +15 -0
  257. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +1 -0
  258. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +14 -0
  259. package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +1 -0
  260. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +10 -0
  261. package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +1 -0
  262. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +13 -0
  263. package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +1 -0
  264. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
  265. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  266. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
  267. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  268. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +32 -0
  269. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  270. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
  271. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  272. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
  273. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  274. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +34 -0
  275. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  276. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
  277. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  278. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +156 -0
  279. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  280. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +111 -0
  281. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  282. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +22 -0
  283. package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +1 -0
  284. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +15 -0
  285. package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +1 -0
  286. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +15 -0
  287. package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +1 -0
  288. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +23 -0
  289. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +1 -0
  290. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +42 -0
  291. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +1 -0
  292. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +50 -0
  293. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +1 -0
  294. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +50 -0
  295. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +1 -0
  296. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +50 -0
  297. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +1 -0
  298. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +62 -0
  299. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +1 -0
  300. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
  301. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +1 -0
  302. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +46 -0
  303. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +1 -0
  304. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +50 -0
  305. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +1 -0
  306. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +31 -0
  307. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +1 -0
  308. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +22 -0
  309. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +1 -0
  310. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +23 -0
  311. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +1 -0
  312. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +33 -0
  313. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +1 -0
  314. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +33 -0
  315. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +1 -0
  316. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +34 -0
  317. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +1 -0
  318. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
  319. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +1 -0
  320. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +100 -0
  321. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +1 -0
  322. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +49 -0
  323. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +1 -0
  324. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +49 -0
  325. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +1 -0
  326. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +50 -0
  327. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +1 -0
  328. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +41 -0
  329. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +1 -0
  330. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +75 -0
  331. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +1 -0
  332. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +49 -0
  333. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -0
  334. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +70 -0
  335. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -0
  336. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +33 -0
  337. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +1 -0
  338. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +72 -0
  339. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +1 -0
  340. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
  341. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +1 -0
  342. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +33 -0
  343. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +1 -0
  344. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +75 -0
  345. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +1 -0
  346. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +72 -0
  347. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +1 -0
  348. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
  349. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +1 -0
  350. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +23 -0
  351. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +1 -0
  352. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +23 -0
  353. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +1 -0
  354. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +50 -0
  355. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +1 -0
  356. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +68 -0
  357. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +1 -0
  358. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +104 -0
  359. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +1 -0
  360. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +88 -0
  361. package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +1 -0
  362. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +123 -0
  363. package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +1 -0
  364. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +13 -0
  365. package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +1 -0
  366. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +10 -0
  367. package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +1 -0
  368. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +12 -0
  369. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +1 -0
  370. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +11 -0
  371. package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +1 -0
  372. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +10 -0
  373. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +1 -0
  374. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +14 -0
  375. package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +1 -0
  376. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +11 -0
  377. package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +1 -0
  378. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +10 -0
  379. package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +1 -0
  380. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +11 -0
  381. package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +1 -0
  382. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +11 -0
  383. package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +1 -0
  384. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +10 -0
  385. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +1 -0
  386. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +9 -0
  387. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  388. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +12 -0
  389. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  390. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +10 -0
  391. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +1 -0
  392. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +10 -0
  393. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +1 -0
  394. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +12 -0
  395. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +1 -0
  396. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +14 -0
  397. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  398. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +10 -0
  399. package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +1 -0
  400. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +9 -0
  401. package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +1 -0
  402. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +9 -0
  403. package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +1 -0
  404. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +9 -0
  405. package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +1 -0
  406. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +9 -0
  407. package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +1 -0
  408. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +9 -0
  409. package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +1 -0
  410. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +9 -0
  411. package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +1 -0
  412. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +19 -0
  413. package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +1 -0
  414. package/dist/static/avatar-selected.860ee923.json +1 -0
  415. package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +1 -0
  416. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
  417. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  418. package/dist/static/dob.9ce3c15b.json +1 -0
  419. package/dist/static/error.cbe1ddde.json +1 -0
  420. package/dist/static/grade.b3730524.json +1 -0
  421. package/dist/static/key.d6846476.json +1 -0
  422. package/dist/static/mail.c30e8708.json +1 -0
  423. package/dist/static/otp.2d08f874.json +1 -0
  424. package/dist/static/otp.a3029760.json +1 -0
  425. package/dist/static/parent-avatar.772d53e0.json +1 -0
  426. package/dist/static/phone-number.0be312ea.json +1 -0
  427. package/dist/static/phone-number.84f55562.json +1 -0
  428. package/dist/static/student-avatar.524226bd.json +1 -0
  429. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
  430. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
  431. package/dist/static/user-type-selector-grid-bg.aad0b059.svg +1 -0
  432. package/dist/static/username.9e034d51.json +1 -0
  433. package/package.json +3 -2
  434. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js +0 -17
  435. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js.map +0 -1
  436. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js +0 -50
  437. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js.map +0 -1
  438. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js +0 -6
  439. package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js.map +0 -1
@@ -1,30 +1,30 @@
1
1
  import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
2
  import { memo as g, useState as f } from "react";
3
3
  import t from "styled-components";
4
- import { skeletonLoadingAnimation as p } from "../constants/style.js";
4
+ import { skeletonLoadingAnimation as c } from "../constants/style.js";
5
5
  import i from "../layout/flex-view.js";
6
- const L = t(i)`
7
- animation: ${p} 2s linear infinite;
6
+ const p = t(i)`
7
+ animation: ${c} 2s linear infinite;
8
8
  position: absolute;
9
9
  left: 0;
10
10
  right: 0;
11
11
  top: 0;
12
12
  bottom: 0;
13
- `, c = t(i)`
13
+ `, L = t(i)`
14
14
  overflow: hidden;
15
15
  position: relative;
16
- `, v = g(
17
- ({ borderRadius: r = 0, borderColor: n, withLoader: a, ...o }) => {
16
+ `, u = g(
17
+ ({ borderRadius: n = 0, borderColor: r, withLoader: a, ...o }) => {
18
18
  const { width: s, height: d } = o, [m, l] = f(!0);
19
19
  return /* @__PURE__ */ h(
20
- c,
20
+ L,
21
21
  {
22
22
  $width: s,
23
23
  $height: d,
24
- $borderColor: n,
25
- $borderRadius: r,
24
+ $borderColor: r,
25
+ $borderRadius: n,
26
26
  children: [
27
- m && a && /* @__PURE__ */ e(L, { $inherit: !0 }),
27
+ m && a && /* @__PURE__ */ e(p, { $inherit: !0 }),
28
28
  /* @__PURE__ */ e("img", { onLoad: () => {
29
29
  l(!1);
30
30
  }, ...o })
@@ -32,8 +32,8 @@ const L = t(i)`
32
32
  }
33
33
  );
34
34
  }
35
- );
35
+ ), F = u;
36
36
  export {
37
- v as default
37
+ F as default
38
38
  };
39
39
  //# sourceMappingURL=image.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.js","sources":["../../../../src/features/ui/image/image.tsx"],"sourcesContent":["import type { IImageProps } from './image-types';\n\nimport { useState, memo } from 'react';\nimport styled from 'styled-components';\n\nimport { skeletonLoadingAnimation } from '../constants/style';\nimport FlexView from '../layout/flex-view';\n\nconst LoadingFlexView = styled(FlexView)`\n animation: ${skeletonLoadingAnimation} 2s linear infinite;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n`;\n\nconst ImageWrapper = styled(FlexView)`\n overflow: hidden;\n position: relative;\n`;\n\nconst Image: React.FC<IImageProps> = memo(\n ({ borderRadius = 0, borderColor, withLoader, ...props }) => {\n const { width, height } = props;\n const [isLoading, setIsLoading] = useState(true);\n const handleImgLoaded = () => {\n setIsLoading(false);\n };\n const showLoader = isLoading && withLoader;\n\n return (\n <ImageWrapper\n $width={width}\n $height={height}\n $borderColor={borderColor}\n $borderRadius={borderRadius}\n >\n {showLoader && <LoadingFlexView $inherit={true} />}\n <img onLoad={handleImgLoaded} {...props} />\n </ImageWrapper>\n );\n },\n);\n\nexport default Image;\n"],"names":["LoadingFlexView","styled","FlexView","skeletonLoadingAnimation","ImageWrapper","Image","memo","borderRadius","borderColor","withLoader","props","width","height","isLoading","setIsLoading","useState","jsxs","jsx"],"mappings":";;;;;AAQA,MAAMA,IAAkBC,EAAOC,CAAQ;AAAA,eACxBC,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,GAK9BG,IAA+BC;AAAA,EACnC,CAAC,EAAE,cAAAC,IAAe,GAAG,aAAAC,GAAa,YAAAC,GAAY,GAAGC,QAAY;AACrD,UAAA,EAAE,OAAAC,GAAO,QAAAC,EAAW,IAAAF,GACpB,CAACG,GAAWC,CAAY,IAAIC,EAAS,EAAI;AAO7C,WAAA,gBAAAC;AAAA,MAACZ;AAAA,MAAA;AAAA,QACC,QAAQO;AAAA,QACR,SAASC;AAAA,QACT,cAAcJ;AAAA,QACd,eAAeD;AAAA,QAEd,UAAA;AAAA,UATcM,KAAaJ,KASb,gBAAAQ,EAACjB,GAAgB,EAAA,UAAU,GAAM,CAAA;AAAA,UAC/C,gBAAAiB,EAAA,OAAA,EAAI,QAbe,MAAM;AAC5B,YAAAH,EAAa,EAAK;AAAA,UAAA,GAYe,GAAGJ,EAAO,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAG/C;AACF;"}
1
+ {"version":3,"file":"image.js","sources":["../../../../src/features/ui/image/image.tsx"],"sourcesContent":["import type { IImageProps } from './image-types';\n\nimport { useState, memo } from 'react';\nimport styled from 'styled-components';\n\nimport { skeletonLoadingAnimation } from '../constants/style';\nimport FlexView from '../layout/flex-view';\n\nconst LoadingFlexView = styled(FlexView)`\n animation: ${skeletonLoadingAnimation} 2s linear infinite;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n`;\n\nconst ImageWrapper = styled(FlexView)`\n overflow: hidden;\n position: relative;\n`;\n\nconst Image: React.FC<IImageProps> = memo(\n ({ borderRadius = 0, borderColor, withLoader, ...props }) => {\n const { width, height } = props;\n const [isLoading, setIsLoading] = useState(true);\n const handleImgLoaded = () => {\n setIsLoading(false);\n };\n const showLoader = isLoading && withLoader;\n\n return (\n <ImageWrapper\n $width={width}\n $height={height}\n $borderColor={borderColor}\n $borderRadius={borderRadius}\n >\n {showLoader && <LoadingFlexView $inherit={true} />}\n <img onLoad={handleImgLoaded} {...props} />\n </ImageWrapper>\n );\n },\n);\n\nexport default Image;\n"],"names":["LoadingFlexView","styled","FlexView","skeletonLoadingAnimation","ImageWrapper","Image","memo","borderRadius","borderColor","withLoader","props","width","height","isLoading","setIsLoading","useState","jsxs","jsx","Image$1"],"mappings":";;;;;AAQA,MAAMA,IAAkBC,EAAOC,CAAQ;AAAA,eACxBC,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAeH,EAAOC,CAAQ;AAAA;AAAA;AAAA,GAK9BG,IAA+BC;AAAA,EACnC,CAAC,EAAE,cAAAC,IAAe,GAAG,aAAAC,GAAa,YAAAC,GAAY,GAAGC,QAAY;AACrD,UAAA,EAAE,OAAAC,GAAO,QAAAC,EAAW,IAAAF,GACpB,CAACG,GAAWC,CAAY,IAAIC,EAAS,EAAI;AAO7C,WAAA,gBAAAC;AAAA,MAACZ;AAAA,MAAA;AAAA,QACC,QAAQO;AAAA,QACR,SAASC;AAAA,QACT,cAAcJ;AAAA,QACd,eAAeD;AAAA,QAEd,UAAA;AAAA,UATcM,KAAaJ,KASb,gBAAAQ,EAACjB,GAAgB,EAAA,UAAU,GAAM,CAAA;AAAA,UAC/C,gBAAAiB,EAAA,OAAA,EAAI,QAbe,MAAM;AAC5B,YAAAH,EAAa,EAAK;AAAA,UAAA,GAYe,GAAGJ,EAAO,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAG/C;AACF,GAEAQ,IAAeb;"}
@@ -1,114 +1,124 @@
1
- import g from "styled-components";
1
+ import p from "styled-components";
2
2
  import C from "../../text/text.js";
3
- const E = g.div(
4
- ({ theme: i, $size: s, $willShowMessage: c, $width: o, $widthX: e }) => {
5
- const { height: a, marginTop: t, marginBottom: r } = i.input.sizes[s], n = a + t + (c ? r : 0);
3
+ const k = p.div(
4
+ ({ theme: r, $size: e, $willShowMessage: n, $width: t, $widthX: o }) => {
5
+ const { height: c, marginTop: a, marginBottom: s } = r.input.sizes[e], i = c + a + (n ? s : 0);
6
6
  return `
7
- width: ${o || "auto"}${typeof o == "number" ? "px" : ""};
8
- ${e ? `width: ${e * i.layout.gutter}px;` : ""}
9
- height: ${n}px;
7
+ width: ${t || "auto"}${typeof t == "number" ? "px" : ""};
8
+ ${o ? `width: ${o * r.layout.gutter}px;` : ""}
9
+ height: ${i}px;
10
10
  `;
11
11
  }
12
- ), x = g.div(
13
- ({ theme: i, $size: s, $renderAs: c, $disabled: o, $shape: e, $isTransparent: a }) => {
14
- const { colors: t, input: r } = i, { height: n, marginTop: b, paddingLeft: f, paddingRight: u, borderRadius: h } = r.sizes[s], { borderColorName: d, backgroundColorName: $ } = r.variants[c], p = e === "borderLess", l = e === "curved", v = p ? 0 : h, m = a ? "transparent" : t[$ ?? "WHITE"];
12
+ ), b = p.div(
13
+ ({ theme: r, $size: e, $renderAs: n, $disabled: t, $shape: o, $isTransparent: c }) => {
14
+ const { colors: a, input: s } = r, { height: i, marginTop: x, paddingLeft: f, paddingRight: u, borderRadius: h } = s.sizes[e], { borderColorName: d, backgroundColorName: $ } = s.variants[n], l = o === "borderLess", g = o === "curved", m = l ? 0 : h, v = c ? "transparent" : a[$ ?? "WHITE"];
15
15
  return `
16
16
  position: relative;
17
17
  display: flex;
18
- height: ${n}px;
19
- margin-top: ${b}px;
20
- padding-left: ${p ? 0 : f}px;
21
- padding-right: ${p ? 0 : u}px;
22
- padding-top: ${l ? 1 : 0}px;
23
- padding-bottom: ${l ? 1 : 0}px;
24
- ${p ? `
18
+ height: ${i}px;
19
+ margin-top: ${x}px;
20
+ padding-left: ${l ? 0 : f}px;
21
+ padding-right: ${l ? 0 : u}px;
22
+ padding-top: ${g ? 1 : 0}px;
23
+ padding-bottom: ${g ? 1 : 0}px;
24
+ ${l ? `
25
25
  border: none;
26
- border-bottom: 1px solid ${t[d[o ? "disabled" : "inactive"]]};
27
- ` : `border: 1px solid ${t[d[o ? "disabled" : l ? "active" : "inactive"]]};`}
28
- border-radius: ${l ? 40 : v}px;
26
+ border-bottom: 1px solid ${a[d[t ? "disabled" : "inactive"]]};
27
+ ` : `border: 1px solid ${a[d[t ? "disabled" : g ? "active" : "inactive"]]};`}
28
+ border-radius: ${g ? 40 : m}px;
29
29
  transition: border-color 0.2s ease-in-out;
30
30
 
31
- background: ${m};
31
+ background: ${v};
32
32
 
33
33
  &:focus-within {
34
- border-color: ${t[d.active]};
34
+ border-color: ${a[d.active]};
35
35
  }
36
36
 
37
37
  &:hover {
38
- ${o ? "" : `border-color: ${t[d.active]};`}
38
+ ${t ? "" : `border-color: ${a[d.active]};`}
39
39
  }
40
40
  `;
41
41
  }
42
- ), R = g.div`
42
+ ), B = p.div`
43
43
  flex-grow: 1;
44
- `, k = g.div(
45
- ({ theme: i, $inputRenderAs: s, $disabled: c, $size: o, $siblingPosition: e }) => {
46
- const { colors: a, input: t } = i, { iconPadding: r } = t.sizes[o], { labelColorName: n } = t.variants[s];
44
+ `, E = p.div(
45
+ ({ theme: r, $inputRenderAs: e, $disabled: n, $size: t, $siblingPosition: o }) => {
46
+ const { colors: c, input: a } = r, { iconPadding: s } = a.sizes[t], { labelColorName: i } = a.variants[e];
47
47
  return `
48
- order: ${e === "left" ? -1 : 1};
49
- padding-${e === "left" ? "right" : "left"}: ${r}px;
48
+ order: ${o === "left" ? -1 : 1};
49
+ padding-${o === "left" ? "right" : "left"}: ${s}px;
50
50
  align-self: center;
51
- color: ${a[n[c ? "disabled" : "inactive"]]};
51
+ color: ${c[i[n ? "disabled" : "inactive"]]};
52
52
 
53
- ${x}:focus-within & {
54
- color: ${a[n.active]};
53
+ ${b}:focus-within & {
54
+ color: ${c[i.active]};
55
55
  }
56
56
 
57
- ${x}:hover & {
58
- ${c ? "" : `color: ${a[n.active]};`}
57
+ ${b}:hover & {
58
+ ${n ? "" : `color: ${c[i.active]};`}
59
59
  }
60
60
  `;
61
61
  }
62
- ), y = g(C)(({
63
- theme: i,
64
- $size: s,
65
- $inputRenderAs: c,
66
- $stickyLabel: o,
67
- $disabled: e,
68
- $shape: a,
69
- $isTransparent: t
62
+ ), H = p(C)(({
63
+ theme: r,
64
+ $size: e,
65
+ $inputRenderAs: n,
66
+ $stickyLabel: t,
67
+ $disabled: o,
68
+ $shape: c,
69
+ $isTransparent: a
70
70
  }) => {
71
- const { colors: r, input: n, text: b, layout: f } = i, { gutter: u } = f, { height: h, paddingLeft: d } = n.sizes[s], { lineHeight: $ } = b[n.sizes[s].labelTextVariant], { labelColorName: p } = n.variants[c], l = h / 2 - $ / 2 - 1, v = -l - $ / 2 - 1, m = a === "borderLess", L = t ? "transparent" : r.WHITE;
71
+ const { colors: s, input: i, text: x, layout: f } = r, { gutter: u } = f, { height: h, paddingLeft: d } = i.sizes[e], { lineHeight: $ } = x[i.sizes[e].labelTextVariant], { labelColorName: l, labelBackgroundColorName: g } = i.variants[n], m = h / 2 - $ / 2 - 1, v = -m - $ / 2 - 1, N = c === "borderLess", T = a ? "transparent" : s[g ?? "WHITE"];
72
72
  return `
73
73
  position: absolute;
74
- top: ${l}px;
75
- left: ${(m ? 0 : d) - u * 0.375}px;
74
+ top: ${m}px;
75
+ left: ${(N ? 0 : d) - u * 0.375}px;
76
76
  padding: 0 ${u * 0.375}px;
77
- background-color: ${L};
78
- color: ${r[p[e ? "disabled" : "inactive"]]};
77
+ background-color: ${T};
78
+ color: ${s[l[o ? "disabled" : "inactive"]]};
79
79
  pointer-events: none;
80
80
  transform-origin: left;
81
- transform: translateY(${o ? v : 0}px) scale(${o ? 0.75 : 1});
81
+ transform: translateY(${t ? v : 0}px) scale(${t ? 0.75 : 1});
82
82
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
83
83
 
84
- ${x}:focus-within & {
85
- color: ${r[p.active]};
84
+ ${b}:focus-within & {
85
+ color: ${s[l.active]};
86
86
  transform: translateY(${v}px) scale(0.75);
87
87
  }
88
88
 
89
- ${x}:hover & {
90
- ${e ? "" : `color: ${r[p.active]};`}
89
+ ${b}:hover & {
90
+ ${o ? "" : `color: ${s[l.active]};`}
91
91
  }
92
92
 
93
93
  & span {
94
- color: ${r.RED};
94
+ color: ${s.RED};
95
95
  margin-left: 2px;
96
96
  }
97
97
  `;
98
- }), z = g(C)(
99
- ({ theme: { colors: i } }) => `
100
- position: absolute;
101
- bottom: -2px;
102
- transform: translateY(calc(100%));
103
- color: ${i.RED};
104
- `
105
- );
98
+ }), R = p(C)(({ theme: { input: r, colors: e }, $inputRenderAs: n }) => {
99
+ var o;
100
+ return `
101
+ position: absolute;
102
+ bottom: -2px;
103
+ transform: translateY(calc(100%));
104
+ color: ${e[((o = r.variants[n]) == null ? void 0 : o.errorMessageColorName) ?? "RED"]};
105
+ `;
106
+ }), y = p(C)(({ theme: { input: r, colors: e }, $inputRenderAs: n }) => {
107
+ var o;
108
+ return `
109
+ position: absolute;
110
+ bottom: -2px;
111
+ transform: translateY(calc(100%));
112
+ color: ${e[(o = r.variants[n]) == null ? void 0 : o.messageColorName.active]};
113
+ `;
114
+ });
106
115
  export {
107
- E as Container,
108
- z as Error,
109
- R as InputWrapper,
110
- y as Label,
111
- k as SiblingWrapper,
112
- x as Wrapper
116
+ k as Container,
117
+ R as Error,
118
+ y as HelperText,
119
+ B as InputWrapper,
120
+ H as Label,
121
+ E as SiblingWrapper,
122
+ b as Wrapper
113
123
  };
114
124
  //# sourceMappingURL=base-input-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-input-styled.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input-styled.tsx"],"sourcesContent":["import type { IBaseInputProps } from './base-input-types';\n\nimport styled from 'styled-components';\n\nimport Text from '../../text/text';\n\ninterface IContainerProps {\n $width?: string | number;\n $widthX?: number;\n $size: IBaseInputProps['size'];\n $willShowMessage: IBaseInputProps['willShowMessage'];\n}\n\nconst Container = styled.div<IContainerProps>(\n ({ theme, $size, $willShowMessage, $width, $widthX }) => {\n const { height, marginTop, marginBottom } = theme.input.sizes[$size];\n const containerHeight = height + marginTop + ($willShowMessage ? marginBottom : 0);\n\n return `\n width: ${$width ? $width : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * theme.layout.gutter}px;` : ''}\n height: ${containerHeight}px;\n `;\n },\n);\n\ninterface IWrapperProps {\n $size: IBaseInputProps['size'];\n $disabled?: boolean;\n $renderAs: IBaseInputProps['renderAs'];\n $shape?: IBaseInputProps['shape'];\n $isTransparent?: boolean;\n}\n\nconst Wrapper = styled.div<IWrapperProps>(\n ({ theme, $size, $renderAs, $disabled, $shape, $isTransparent }) => {\n const { colors, input } = theme;\n const { height, marginTop, paddingLeft, paddingRight, borderRadius } = input.sizes[$size];\n const { borderColorName, backgroundColorName } = input.variants[$renderAs];\n\n const isBorderLessShape = $shape === 'borderLess';\n const isCurvedShape = $shape === 'curved';\n const defaultBorderRadius = isBorderLessShape ? 0 : borderRadius;\n\n const background = $isTransparent ? 'transparent' : colors[backgroundColorName ?? 'WHITE'];\n\n return `\n position: relative;\n display: flex;\n height: ${height}px;\n margin-top: ${marginTop}px;\n padding-left: ${isBorderLessShape ? 0 : paddingLeft}px;\n padding-right: ${isBorderLessShape ? 0 : paddingRight}px;\n padding-top: ${isCurvedShape ? 1 : 0}px;\n padding-bottom: ${isCurvedShape ? 1 : 0}px;\n ${\n isBorderLessShape\n ? `\n border: none;\n border-bottom: 1px solid ${colors[borderColorName[$disabled ? 'disabled' : 'inactive']]};\n `\n : `border: 1px solid ${\n colors[borderColorName[$disabled ? 'disabled' : isCurvedShape ? 'active' : 'inactive']]\n };`\n }\n border-radius: ${isCurvedShape ? 40 : defaultBorderRadius}px;\n transition: border-color 0.2s ease-in-out;\n \n background: ${background};\n \n &:focus-within {\n border-color: ${colors[borderColorName.active]};\n }\n \n &:hover {\n ${!$disabled ? `border-color: ${colors[borderColorName.active]};` : ''}\n }\n `;\n },\n);\n\nconst InputWrapper = styled.div`\n flex-grow: 1;\n`;\n\ninterface ISiblingWrapperProps {\n $inputRenderAs: IBaseInputProps['renderAs'];\n $size: IBaseInputProps['size'];\n $siblingPosition: NonNullable<IBaseInputProps['siblingPosition']>;\n $disabled?: boolean;\n}\n\nconst SiblingWrapper = styled.div<ISiblingWrapperProps>(\n ({ theme, $inputRenderAs, $disabled, $size, $siblingPosition }) => {\n const { colors, input } = theme;\n const { iconPadding } = input.sizes[$size];\n const { labelColorName } = input.variants[$inputRenderAs];\n\n return `\n order: ${$siblingPosition === 'left' ? -1 : 1};\n padding-${$siblingPosition === 'left' ? 'right' : 'left'}: ${iconPadding}px;\n align-self: center;\n color: ${colors[labelColorName[$disabled ? 'disabled' : 'inactive']]};\n\n ${Wrapper}:focus-within & {\n color: ${colors[labelColorName.active]};\n }\n \n ${Wrapper}:hover & {\n ${!$disabled ? `color: ${colors[labelColorName.active]};` : ''}\n }\n `;\n },\n);\n\ninterface ILabelProps {\n $size: IBaseInputProps['size'];\n $inputRenderAs: IBaseInputProps['renderAs'];\n $stickyLabel: IBaseInputProps['stickyLabel'];\n $disabled?: boolean;\n $shape?: IBaseInputProps['shape'];\n $isTransparent: IBaseInputProps['isTransparent'];\n}\n\nconst Label = styled(Text)<ILabelProps>(({\n theme,\n $size,\n $inputRenderAs,\n $stickyLabel,\n $disabled,\n $shape,\n $isTransparent,\n}) => {\n const { colors, input, text, layout } = theme;\n const { gutter } = layout;\n const { height, paddingLeft } = input.sizes[$size];\n const { lineHeight } = text[input.sizes[$size].labelTextVariant];\n const { labelColorName } = input.variants[$inputRenderAs];\n const topPosition = height / 2 - lineHeight / 2 - 1;\n const topPositionWhenActive = -topPosition - lineHeight / 2 - 1;\n\n const isBorderLessShape = $shape === 'borderLess';\n\n const backgroundColor = $isTransparent ? 'transparent' : colors.WHITE;\n\n return `\n position: absolute;\n top: ${topPosition}px;\n left: ${(isBorderLessShape ? 0 : paddingLeft) - gutter * 0.375}px;\n padding: 0 ${gutter * 0.375}px;\n background-color: ${backgroundColor};\n color: ${colors[labelColorName[$disabled ? 'disabled' : 'inactive']]};\n pointer-events: none;\n transform-origin: left;\n transform: translateY(${$stickyLabel ? topPositionWhenActive : 0}px) scale(${\n $stickyLabel ? 0.75 : 1\n });\n transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;\n\n ${Wrapper}:focus-within & {\n color: ${colors[labelColorName.active]};\n transform: translateY(${topPositionWhenActive}px) scale(0.75);\n }\n \n ${Wrapper}:hover & {\n ${!$disabled ? `color: ${colors[labelColorName.active]};` : ''}\n }\n\n & span {\n color: ${colors.RED};\n margin-left: 2px;\n }\n `;\n});\n\nconst Error = styled(Text)(\n ({ theme: { colors } }) => `\nposition: absolute;\nbottom: -2px;\ntransform: translateY(calc(100%));\ncolor: ${colors.RED};\n`,\n);\n\nexport { Container, Wrapper, InputWrapper, SiblingWrapper, Label, Error };\n"],"names":["Container","styled","theme","$size","$willShowMessage","$width","$widthX","height","marginTop","marginBottom","containerHeight","Wrapper","$renderAs","$disabled","$shape","$isTransparent","colors","input","paddingLeft","paddingRight","borderRadius","borderColorName","backgroundColorName","isBorderLessShape","isCurvedShape","defaultBorderRadius","background","InputWrapper","SiblingWrapper","$inputRenderAs","$siblingPosition","iconPadding","labelColorName","Label","Text","$stickyLabel","text","layout","gutter","lineHeight","topPosition","topPositionWhenActive","backgroundColor","Error"],"mappings":"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"}
1
+ {"version":3,"file":"base-input-styled.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input-styled.tsx"],"sourcesContent":["import type { IBaseInputProps } from './base-input-types';\n\nimport styled from 'styled-components';\n\nimport Text from '../../text/text';\n\ninterface IContainerProps {\n $width?: string | number;\n $widthX?: number;\n $size: IBaseInputProps['size'];\n $willShowMessage: IBaseInputProps['willShowMessage'];\n}\n\nconst Container = styled.div<IContainerProps>(\n ({ theme, $size, $willShowMessage, $width, $widthX }) => {\n const { height, marginTop, marginBottom } = theme.input.sizes[$size];\n const containerHeight = height + marginTop + ($willShowMessage ? marginBottom : 0);\n\n return `\n width: ${$width ? $width : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * theme.layout.gutter}px;` : ''}\n height: ${containerHeight}px;\n `;\n },\n);\n\ninterface IWrapperProps {\n $size: IBaseInputProps['size'];\n $disabled?: boolean;\n $renderAs: IBaseInputProps['renderAs'];\n $shape?: IBaseInputProps['shape'];\n $isTransparent?: boolean;\n}\n\nconst Wrapper = styled.div<IWrapperProps>(\n ({ theme, $size, $renderAs, $disabled, $shape, $isTransparent }) => {\n const { colors, input } = theme;\n const { height, marginTop, paddingLeft, paddingRight, borderRadius } = input.sizes[$size];\n const { borderColorName, backgroundColorName } = input.variants[$renderAs];\n\n const isBorderLessShape = $shape === 'borderLess';\n const isCurvedShape = $shape === 'curved';\n const defaultBorderRadius = isBorderLessShape ? 0 : borderRadius;\n\n const background = $isTransparent ? 'transparent' : colors[backgroundColorName ?? 'WHITE'];\n\n return `\n position: relative;\n display: flex;\n height: ${height}px;\n margin-top: ${marginTop}px;\n padding-left: ${isBorderLessShape ? 0 : paddingLeft}px;\n padding-right: ${isBorderLessShape ? 0 : paddingRight}px;\n padding-top: ${isCurvedShape ? 1 : 0}px;\n padding-bottom: ${isCurvedShape ? 1 : 0}px;\n ${\n isBorderLessShape\n ? `\n border: none;\n border-bottom: 1px solid ${colors[borderColorName[$disabled ? 'disabled' : 'inactive']]};\n `\n : `border: 1px solid ${\n colors[borderColorName[$disabled ? 'disabled' : isCurvedShape ? 'active' : 'inactive']]\n };`\n }\n border-radius: ${isCurvedShape ? 40 : defaultBorderRadius}px;\n transition: border-color 0.2s ease-in-out;\n \n background: ${background};\n \n &:focus-within {\n border-color: ${colors[borderColorName.active]};\n }\n \n &:hover {\n ${!$disabled ? `border-color: ${colors[borderColorName.active]};` : ''}\n }\n `;\n },\n);\n\nconst InputWrapper = styled.div`\n flex-grow: 1;\n`;\n\ninterface ISiblingWrapperProps {\n $inputRenderAs: IBaseInputProps['renderAs'];\n $size: IBaseInputProps['size'];\n $siblingPosition: NonNullable<IBaseInputProps['siblingPosition']>;\n $disabled?: boolean;\n}\n\nconst SiblingWrapper = styled.div<ISiblingWrapperProps>(\n ({ theme, $inputRenderAs, $disabled, $size, $siblingPosition }) => {\n const { colors, input } = theme;\n const { iconPadding } = input.sizes[$size];\n const { labelColorName } = input.variants[$inputRenderAs];\n\n return `\n order: ${$siblingPosition === 'left' ? -1 : 1};\n padding-${$siblingPosition === 'left' ? 'right' : 'left'}: ${iconPadding}px;\n align-self: center;\n color: ${colors[labelColorName[$disabled ? 'disabled' : 'inactive']]};\n\n ${Wrapper}:focus-within & {\n color: ${colors[labelColorName.active]};\n }\n \n ${Wrapper}:hover & {\n ${!$disabled ? `color: ${colors[labelColorName.active]};` : ''}\n }\n `;\n },\n);\n\ninterface ILabelProps {\n $size: IBaseInputProps['size'];\n $inputRenderAs: IBaseInputProps['renderAs'];\n $stickyLabel: IBaseInputProps['stickyLabel'];\n $disabled?: boolean;\n $shape?: IBaseInputProps['shape'];\n $isTransparent: IBaseInputProps['isTransparent'];\n}\n\nconst Label = styled(Text)<ILabelProps>(({\n theme,\n $size,\n $inputRenderAs,\n $stickyLabel,\n $disabled,\n $shape,\n $isTransparent,\n}) => {\n const { colors, input, text, layout } = theme;\n const { gutter } = layout;\n const { height, paddingLeft } = input.sizes[$size];\n const { lineHeight } = text[input.sizes[$size].labelTextVariant];\n const { labelColorName, labelBackgroundColorName } = input.variants[$inputRenderAs];\n const topPosition = height / 2 - lineHeight / 2 - 1;\n const topPositionWhenActive = -topPosition - lineHeight / 2 - 1;\n\n const isBorderLessShape = $shape === 'borderLess';\n\n const backgroundColor = $isTransparent\n ? 'transparent'\n : colors[labelBackgroundColorName ?? 'WHITE'];\n\n return `\n position: absolute;\n top: ${topPosition}px;\n left: ${(isBorderLessShape ? 0 : paddingLeft) - gutter * 0.375}px;\n padding: 0 ${gutter * 0.375}px;\n background-color: ${backgroundColor};\n color: ${colors[labelColorName[$disabled ? 'disabled' : 'inactive']]};\n pointer-events: none;\n transform-origin: left;\n transform: translateY(${$stickyLabel ? topPositionWhenActive : 0}px) scale(${\n $stickyLabel ? 0.75 : 1\n });\n transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;\n\n ${Wrapper}:focus-within & {\n color: ${colors[labelColorName.active]};\n transform: translateY(${topPositionWhenActive}px) scale(0.75);\n }\n \n ${Wrapper}:hover & {\n ${!$disabled ? `color: ${colors[labelColorName.active]};` : ''}\n }\n\n & span {\n color: ${colors.RED};\n margin-left: 2px;\n }\n `;\n});\n\ninterface IErrorProps {\n $inputRenderAs: IBaseInputProps['renderAs'];\n}\n\nconst Error = styled(Text)<IErrorProps>(({ theme: { input, colors }, $inputRenderAs }) => {\n const color = colors[input.variants[$inputRenderAs]?.errorMessageColorName ?? 'RED'];\n\n return `\n position: absolute;\n bottom: -2px;\n transform: translateY(calc(100%));\n color: ${color};\n`;\n});\n\nconst HelperText = styled(Text)<IErrorProps>(({ theme: { input, colors }, $inputRenderAs }) => {\n const color = colors[input.variants[$inputRenderAs]?.messageColorName.active];\n\n return `\n position: absolute;\n bottom: -2px;\n transform: translateY(calc(100%));\n color: ${color};\n`;\n});\n\nexport { Container, Wrapper, InputWrapper, SiblingWrapper, Label, Error, HelperText };\n"],"names":["Container","styled","theme","$size","$willShowMessage","$width","$widthX","height","marginTop","marginBottom","containerHeight","Wrapper","$renderAs","$disabled","$shape","$isTransparent","colors","input","paddingLeft","paddingRight","borderRadius","borderColorName","backgroundColorName","isBorderLessShape","isCurvedShape","defaultBorderRadius","background","InputWrapper","SiblingWrapper","$inputRenderAs","$siblingPosition","iconPadding","labelColorName","Label","Text","$stickyLabel","text","layout","gutter","lineHeight","labelBackgroundColorName","topPosition","topPositionWhenActive","backgroundColor","Error","_a","HelperText"],"mappings":"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"}
@@ -1,60 +1,62 @@
1
- import { jsx as s, jsxs as a } from "react/jsx-runtime";
2
- import { useTheme as z } from "styled-components";
3
- import { Container as A, Wrapper as f, InputWrapper as L, Error as T, SiblingWrapper as x, Label as y } from "./base-input-styled.js";
4
- const j = (p) => {
1
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
+ import { useTheme as g } from "styled-components";
3
+ import { Container as x, Wrapper as z, InputWrapper as f, Error as L, HelperText as y, SiblingWrapper as R, Label as E } from "./base-input-styled.js";
4
+ const k = (h) => {
5
5
  const {
6
- label: t,
6
+ label: a,
7
7
  stickyLabel: $,
8
- renderAs: i,
9
- width: h,
10
- widthX: b,
11
- disabled: r,
12
- willShowMessage: c,
13
- inputElement: m,
14
- siblingElement: l,
15
- siblingPosition: u,
16
- size: e,
17
- errorMessage: d,
18
- mandatory: w,
19
- shape: n,
20
- isTransparent: o = !1
21
- } = p, { input: g } = z();
22
- return /* @__PURE__ */ s(A, { $width: h, $widthX: b, $size: e, $willShowMessage: c, children: /* @__PURE__ */ a(
23
- f,
8
+ renderAs: e,
9
+ width: b,
10
+ widthX: c,
11
+ disabled: i,
12
+ willShowMessage: u,
13
+ inputElement: w,
14
+ siblingElement: d,
15
+ siblingPosition: m,
16
+ size: s,
17
+ errorMessage: n,
18
+ mandatory: A,
19
+ shape: t,
20
+ isTransparent: p = !1,
21
+ helperText: o
22
+ } = h, { input: T } = g();
23
+ return /* @__PURE__ */ r(x, { $width: b, $widthX: c, $size: s, $willShowMessage: u, children: /* @__PURE__ */ l(
24
+ z,
24
25
  {
25
- $renderAs: i,
26
- $size: e,
27
- $disabled: r,
28
- $shape: n,
29
- $isTransparent: o,
26
+ $renderAs: e,
27
+ $size: s,
28
+ $disabled: i,
29
+ $shape: t,
30
+ $isTransparent: p,
30
31
  children: [
31
- /* @__PURE__ */ a(L, { children: [
32
- m,
33
- d && /* @__PURE__ */ s(T, { $renderAs: "body3", children: d })
32
+ /* @__PURE__ */ l(f, { children: [
33
+ w,
34
+ n && /* @__PURE__ */ r(L, { $renderAs: "body3", $inputRenderAs: e, children: n }),
35
+ o && !n && /* @__PURE__ */ r(y, { $renderAs: "ub3", $inputRenderAs: e, children: o })
34
36
  ] }),
35
- l ? /* @__PURE__ */ s(
36
- x,
37
+ d ? /* @__PURE__ */ r(
38
+ R,
37
39
  {
38
- $inputRenderAs: i,
39
- $disabled: r,
40
- $size: e,
41
- $siblingPosition: u ?? "right",
42
- children: l
40
+ $inputRenderAs: e,
41
+ $disabled: i,
42
+ $size: s,
43
+ $siblingPosition: m ?? "right",
44
+ children: d
43
45
  }
44
46
  ) : void 0,
45
- t && n !== "curved" && /* @__PURE__ */ a(
46
- y,
47
+ a && t !== "curved" && /* @__PURE__ */ l(
48
+ E,
47
49
  {
48
- $renderAs: g.sizes[e].labelTextVariant,
49
- $inputRenderAs: i,
50
- $size: e,
50
+ $renderAs: T.sizes[s].labelTextVariant,
51
+ $inputRenderAs: e,
52
+ $size: s,
51
53
  $stickyLabel: $,
52
- $disabled: r,
53
- $shape: n,
54
- $isTransparent: o,
54
+ $disabled: i,
55
+ $shape: t,
56
+ $isTransparent: p,
55
57
  children: [
56
- t,
57
- w && /* @__PURE__ */ s("span", { children: "*" })
58
+ a,
59
+ A && /* @__PURE__ */ r("span", { children: "*" })
58
60
  ]
59
61
  }
60
62
  )
@@ -63,6 +65,6 @@ const j = (p) => {
63
65
  ) });
64
66
  };
65
67
  export {
66
- j as default
68
+ k as default
67
69
  };
68
70
  //# sourceMappingURL=base-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-input.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input.tsx"],"sourcesContent":["import type { IBaseInputProps } from './base-input-types';\n\nimport React from 'react';\nimport { useTheme } from 'styled-components';\n\nimport {\n Container,\n Error,\n InputWrapper,\n Label,\n SiblingWrapper,\n Wrapper,\n} from './base-input-styled';\n\nconst BaseInput: React.FC<IBaseInputProps> = props => {\n const {\n label,\n stickyLabel,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n inputElement,\n siblingElement,\n siblingPosition,\n size,\n errorMessage,\n mandatory,\n shape,\n isTransparent = false,\n } = props;\n const { input } = useTheme();\n const showLabel = label && shape !== 'curved';\n\n return (\n <Container $width={width} $widthX={widthX} $size={size} $willShowMessage={willShowMessage}>\n <Wrapper\n $renderAs={renderAs}\n $size={size}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n <InputWrapper>\n {inputElement}\n {errorMessage && <Error $renderAs=\"body3\">{errorMessage}</Error>}\n </InputWrapper>\n {siblingElement ? (\n <SiblingWrapper\n $inputRenderAs={renderAs}\n $disabled={disabled}\n $size={size}\n $siblingPosition={siblingPosition ?? 'right'}\n >\n {siblingElement}\n </SiblingWrapper>\n ) : undefined}\n {showLabel && (\n <Label\n $renderAs={input.sizes[size].labelTextVariant}\n $inputRenderAs={renderAs}\n $size={size}\n $stickyLabel={stickyLabel}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n {label}\n {mandatory && <span>*</span>}\n </Label>\n )}\n </Wrapper>\n </Container>\n );\n};\n\nexport default BaseInput;\n"],"names":["BaseInput","props","label","stickyLabel","renderAs","width","widthX","disabled","willShowMessage","inputElement","siblingElement","siblingPosition","size","errorMessage","mandatory","shape","isTransparent","input","useTheme","jsx","Container","jsxs","Wrapper","InputWrapper","Error","SiblingWrapper","Label"],"mappings":";;;AAcA,MAAMA,IAAuC,CAASC,MAAA;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,EACd,IAAAf,GACE,EAAE,OAAAgB,MAAUC;AAIhB,SAAA,gBAAAC,EAACC,KAAU,QAAQf,GAAO,SAASC,GAAQ,OAAOM,GAAM,kBAAkBJ,GACxE,UAAA,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWlB;AAAA,MACX,OAAOQ;AAAA,MACP,WAAWL;AAAA,MACX,QAAQQ;AAAA,MACR,gBAAgBC;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAK,EAACE,GACE,EAAA,UAAA;AAAA,UAAAd;AAAA,UACAI,KAAgB,gBAAAM,EAACK,GAAM,EAAA,WAAU,SAAS,UAAaX,GAAA;AAAA,QAAA,GAC1D;AAAA,QACCH,IACC,gBAAAS;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,gBAAgBrB;AAAA,YAChB,WAAWG;AAAA,YACX,OAAOK;AAAA,YACP,kBAAkBD,KAAmB;AAAA,YAEpC,UAAAD;AAAA,UAAA;AAAA,QAED,IAAA;AAAA,QAxBQR,KAASa,MAAU,YA0B7B,gBAAAM;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,WAAWT,EAAM,MAAML,CAAI,EAAE;AAAA,YAC7B,gBAAgBR;AAAA,YAChB,OAAOQ;AAAA,YACP,cAAcT;AAAA,YACd,WAAWI;AAAA,YACX,QAAQQ;AAAA,YACR,gBAAgBC;AAAA,YAEf,UAAA;AAAA,cAAAd;AAAA,cACAY,KAAc,gBAAAK,EAAA,QAAA,EAAK,UAAC,IAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACvB;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"base-input.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input.tsx"],"sourcesContent":["import type { IBaseInputProps } from './base-input-types';\n\nimport React from 'react';\nimport { useTheme } from 'styled-components';\n\nimport {\n Container,\n Error,\n InputWrapper,\n Label,\n SiblingWrapper,\n Wrapper,\n HelperText,\n} from './base-input-styled';\n\nconst BaseInput: React.FC<IBaseInputProps> = props => {\n const {\n label,\n stickyLabel,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n inputElement,\n siblingElement,\n siblingPosition,\n size,\n errorMessage,\n mandatory,\n shape,\n isTransparent = false,\n helperText,\n } = props;\n const { input } = useTheme();\n const showLabel = label && shape !== 'curved';\n const showHelperText = helperText && !errorMessage;\n\n return (\n <Container $width={width} $widthX={widthX} $size={size} $willShowMessage={willShowMessage}>\n <Wrapper\n $renderAs={renderAs}\n $size={size}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n <InputWrapper>\n {inputElement}\n {errorMessage && (\n <Error $renderAs=\"body3\" $inputRenderAs={renderAs}>\n {errorMessage}\n </Error>\n )}\n {showHelperText && (\n <HelperText $renderAs=\"ub3\" $inputRenderAs={renderAs}>\n {helperText}\n </HelperText>\n )}\n </InputWrapper>\n {siblingElement ? (\n <SiblingWrapper\n $inputRenderAs={renderAs}\n $disabled={disabled}\n $size={size}\n $siblingPosition={siblingPosition ?? 'right'}\n >\n {siblingElement}\n </SiblingWrapper>\n ) : undefined}\n {showLabel && (\n <Label\n $renderAs={input.sizes[size].labelTextVariant}\n $inputRenderAs={renderAs}\n $size={size}\n $stickyLabel={stickyLabel}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n {label}\n {mandatory && <span>*</span>}\n </Label>\n )}\n </Wrapper>\n </Container>\n );\n};\n\nexport default BaseInput;\n"],"names":["BaseInput","props","label","stickyLabel","renderAs","width","widthX","disabled","willShowMessage","inputElement","siblingElement","siblingPosition","size","errorMessage","mandatory","shape","isTransparent","helperText","input","useTheme","jsx","Container","jsxs","Wrapper","InputWrapper","Error","HelperText","SiblingWrapper","Label"],"mappings":";;;AAeA,MAAMA,IAAuC,CAASC,MAAA;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,YAAAC;AAAA,EACE,IAAAhB,GACE,EAAE,OAAAiB,MAAUC;AAKhB,SAAA,gBAAAC,EAACC,KAAU,QAAQhB,GAAO,SAASC,GAAQ,OAAOM,GAAM,kBAAkBJ,GACxE,UAAA,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWnB;AAAA,MACX,OAAOQ;AAAA,MACP,WAAWL;AAAA,MACX,QAAQQ;AAAA,MACR,gBAAgBC;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAM,EAACE,GACE,EAAA,UAAA;AAAA,UAAAf;AAAA,UACAI,KACE,gBAAAO,EAAAK,GAAA,EAAM,WAAU,SAAQ,gBAAgBrB,GACtC,UACHS,GAAA;AAAA,UAhBaI,KAAc,CAACJ,KAmB3B,gBAAAO,EAAAM,GAAA,EAAW,WAAU,OAAM,gBAAgBtB,GACzC,UACHa,GAAA;AAAA,QAAA,GAEJ;AAAA,QACCP,IACC,gBAAAU;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,gBAAgBvB;AAAA,YAChB,WAAWG;AAAA,YACX,OAAOK;AAAA,YACP,kBAAkBD,KAAmB;AAAA,YAEpC,UAAAD;AAAA,UAAA;AAAA,QAED,IAAA;AAAA,QAlCQR,KAASa,MAAU,YAoC7B,gBAAAO;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,WAAWV,EAAM,MAAMN,CAAI,EAAE;AAAA,YAC7B,gBAAgBR;AAAA,YAChB,OAAOQ;AAAA,YACP,cAAcT;AAAA,YACd,WAAWI;AAAA,YACX,QAAQQ;AAAA,YACR,gBAAgBC;AAAA,YAEf,UAAA;AAAA,cAAAd;AAAA,cACAY,KAAc,gBAAAM,EAAA,QAAA,EAAK,UAAC,IAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACvB;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN,EAAA,CAAA;AAEJ;"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as b } from "react";
3
- import g from "../base-input/base-input.js";
4
- import { Input as h } from "./text-input-styled.js";
5
- const i = "regular", x = b((o, p) => {
2
+ import { forwardRef as I } from "react";
3
+ import T from "../base-input/base-input.js";
4
+ import { Input as b } from "./text-input-styled.js";
5
+ const i = "regular", g = I((o, p) => {
6
6
  const {
7
7
  type: e,
8
8
  label: l,
@@ -14,12 +14,13 @@ const i = "regular", x = b((o, p) => {
14
14
  willShowMessage: d,
15
15
  siblingElement: f,
16
16
  errorMessage: c,
17
- shape: w,
17
+ shape: h,
18
18
  isTransparent: n,
19
- ...I
19
+ helperText: w,
20
+ ...x
20
21
  } = o;
21
22
  return /* @__PURE__ */ a(
22
- g,
23
+ T,
23
24
  {
24
25
  renderAs: r,
25
26
  label: l,
@@ -29,11 +30,12 @@ const i = "regular", x = b((o, p) => {
29
30
  disabled: s,
30
31
  willShowMessage: d,
31
32
  size: i,
32
- shape: w,
33
+ shape: h,
33
34
  errorMessage: c,
35
+ helperText: w,
34
36
  isTransparent: n,
35
37
  inputElement: /* @__PURE__ */ a(
36
- h,
38
+ b,
37
39
  {
38
40
  ref: p,
39
41
  type: e,
@@ -42,14 +44,14 @@ const i = "regular", x = b((o, p) => {
42
44
  $size: i,
43
45
  disabled: s,
44
46
  $isTransparent: n,
45
- ...I
47
+ ...x
46
48
  }
47
49
  ),
48
50
  siblingElement: f
49
51
  }
50
52
  );
51
- }), y = x;
53
+ }), z = g;
52
54
  export {
53
- y as default
55
+ z as default
54
56
  };
55
57
  //# sourceMappingURL=text-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input.js","sources":["../../../../../src/features/ui/inputs/text-input/text-input.tsx"],"sourcesContent":["import type { ITextInputProps } from './text-input-types';\nimport type { Ref } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport BaseInput from '../base-input/base-input';\nimport * as Styled from './text-input-styled';\n\nconst SIZE = 'regular';\n\nconst TextInput = forwardRef((props: ITextInputProps, ref: Ref<HTMLInputElement>) => {\n const {\n type,\n label,\n value,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n siblingElement,\n errorMessage,\n shape,\n isTransparent,\n ...rest\n } = props;\n\n return (\n <BaseInput\n renderAs={renderAs}\n label={label}\n stickyLabel={!!value || type === 'date'}\n width={width}\n widthX={widthX}\n disabled={disabled}\n willShowMessage={willShowMessage}\n size={SIZE}\n shape={shape}\n errorMessage={errorMessage}\n isTransparent={isTransparent}\n inputElement={\n <Styled.Input\n ref={ref}\n type={type}\n value={value ?? ''}\n $renderAs={renderAs}\n $size={SIZE}\n disabled={disabled}\n $isTransparent={isTransparent}\n {...rest}\n />\n }\n siblingElement={siblingElement}\n />\n );\n});\n\nexport default TextInput;\n"],"names":["SIZE","TextInput","forwardRef","props","ref","type","label","value","renderAs","width","widthX","disabled","willShowMessage","siblingElement","errorMessage","shape","isTransparent","rest","jsx","BaseInput","Styled.Input","TextInput$1"],"mappings":";;;;AAQA,MAAMA,IAAO,WAEPC,IAAYC,EAAW,CAACC,GAAwBC,MAA+B;AAC7E,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAd;AAGF,SAAA,gBAAAe;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAAX;AAAA,MACA,OAAAF;AAAA,MACA,aAAa,CAAC,CAACC,KAASF,MAAS;AAAA,MACjC,OAAAI;AAAA,MACA,QAAAC;AAAA,MACA,UAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,MAAMZ;AAAA,MACN,OAAAe;AAAA,MACA,cAAAD;AAAA,MACA,eAAAE;AAAA,MACA,cACE,gBAAAE;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,KAAAhB;AAAA,UACA,MAAAC;AAAA,UACA,OAAOE,KAAS;AAAA,UAChB,WAAWC;AAAA,UACX,OAAOR;AAAA,UACP,UAAAW;AAAA,UACA,gBAAgBK;AAAA,UACf,GAAGC;AAAA,QAAA;AAAA,MACN;AAAA,MAEF,gBAAAJ;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC,GAEDQ,IAAepB;"}
1
+ {"version":3,"file":"text-input.js","sources":["../../../../../src/features/ui/inputs/text-input/text-input.tsx"],"sourcesContent":["import type { ITextInputProps } from './text-input-types';\nimport type { Ref } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport BaseInput from '../base-input/base-input';\nimport * as Styled from './text-input-styled';\n\nconst SIZE = 'regular';\n\nconst TextInput = forwardRef((props: ITextInputProps, ref: Ref<HTMLInputElement>) => {\n const {\n type,\n label,\n value,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n siblingElement,\n errorMessage,\n shape,\n isTransparent,\n helperText,\n ...rest\n } = props;\n\n return (\n <BaseInput\n renderAs={renderAs}\n label={label}\n stickyLabel={!!value || type === 'date'}\n width={width}\n widthX={widthX}\n disabled={disabled}\n willShowMessage={willShowMessage}\n size={SIZE}\n shape={shape}\n errorMessage={errorMessage}\n helperText={helperText}\n isTransparent={isTransparent}\n inputElement={\n <Styled.Input\n ref={ref}\n type={type}\n value={value ?? ''}\n $renderAs={renderAs}\n $size={SIZE}\n disabled={disabled}\n $isTransparent={isTransparent}\n {...rest}\n />\n }\n siblingElement={siblingElement}\n />\n );\n});\n\nexport default TextInput;\n"],"names":["SIZE","TextInput","forwardRef","props","ref","type","label","value","renderAs","width","widthX","disabled","willShowMessage","siblingElement","errorMessage","shape","isTransparent","helperText","rest","jsx","BaseInput","Styled.Input","TextInput$1"],"mappings":";;;;AAQA,MAAMA,IAAO,WAEPC,IAAYC,EAAW,CAACC,GAAwBC,MAA+B;AAC7E,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAf;AAGF,SAAA,gBAAAgB;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAAZ;AAAA,MACA,OAAAF;AAAA,MACA,aAAa,CAAC,CAACC,KAASF,MAAS;AAAA,MACjC,OAAAI;AAAA,MACA,QAAAC;AAAA,MACA,UAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,MAAMZ;AAAA,MACN,OAAAe;AAAA,MACA,cAAAD;AAAA,MACA,YAAAG;AAAA,MACA,eAAAD;AAAA,MACA,cACE,gBAAAG;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,KAAAjB;AAAA,UACA,MAAAC;AAAA,UACA,OAAOE,KAAS;AAAA,UAChB,WAAWC;AAAA,UACX,OAAOR;AAAA,UACP,UAAAW;AAAA,UACA,gBAAgBK;AAAA,UACf,GAAGE;AAAA,QAAA;AAAA,MACN;AAAA,MAEF,gBAAAL;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC,GAEDS,IAAerB;"}
@@ -1,51 +1,60 @@
1
- import { jsx as L } from "react/jsx-runtime";
2
- import w from "lottie-web";
3
- import { memo as y, forwardRef as b, useRef as c, useImperativeHandle as A, useEffect as E } from "react";
1
+ import { jsx as E } from "react/jsx-runtime";
2
+ import g from "lottie-web";
3
+ import { memo as w, forwardRef as y, useRef as u, useImperativeHandle as b, useEffect as A } from "react";
4
4
  import I from "../layout/flex-view.js";
5
5
  import { fetchLottie as $ } from "./helper.js";
6
- const x = b((p, h) => {
6
+ const x = y((v, p) => {
7
7
  const {
8
- src: s,
9
- width: v = "100%",
10
- height: g = "100%",
11
- settings: u,
12
- eventListener: r,
13
- onRender: i,
14
- animateOnIntersect: o
15
- } = p, n = c(null), t = c(null), a = c(null);
16
- return A(
17
- h,
8
+ src: m,
9
+ width: L = "100%",
10
+ height: h = "100%",
11
+ settings: l,
12
+ eventListener: n,
13
+ onRender: a,
14
+ animateOnIntersect: c
15
+ } = v, o = u(null), r = u(null), s = u(null);
16
+ return b(
17
+ p,
18
18
  () => ({
19
- playSegments: (m, e) => {
20
- t.current && t.current.playSegments(m, e);
19
+ playSegments: (i, e) => {
20
+ var t;
21
+ return (t = r.current) == null ? void 0 : t.playSegments(i, e);
22
+ },
23
+ addEventListener: (i, e) => {
24
+ var t;
25
+ return (t = r.current) == null ? void 0 : t.addEventListener(i, e);
26
+ },
27
+ removeEventListener: (i, e) => {
28
+ var t;
29
+ return (t = r.current) == null ? void 0 : t.removeEventListener(i, e);
21
30
  }
22
31
  }),
23
32
  []
24
- ), E(() => ((async () => {
33
+ ), A(() => ((async () => {
25
34
  try {
26
- const e = await $(s);
27
- n.current && (t.current = w.loadAnimation({
28
- container: n.current,
35
+ const e = await $(m);
36
+ o.current && (r.current = g.loadAnimation({
37
+ container: o.current,
29
38
  animationData: e,
30
39
  renderer: "svg",
31
40
  loop: !0,
32
41
  autoplay: !0,
33
- ...u
34
- }), o && (a.current = new IntersectionObserver(
35
- ([l]) => {
42
+ ...l
43
+ }), c && (s.current = new IntersectionObserver(
44
+ ([t]) => {
36
45
  var f, d;
37
- l && l.isIntersecting ? (f = t.current) == null || f.play() : (d = t.current) == null || d.pause();
46
+ t && t.isIntersecting ? (f = r.current) == null || f.play() : (d = r.current) == null || d.pause();
38
47
  },
39
48
  { threshold: 0 }
40
- ), n.current && a.current.observe(n.current)), i == null || i(), r && t.current.addEventListener(r.name, r.callback));
49
+ ), o.current && s.current.observe(o.current)), a == null || a(), n && r.current.addEventListener(n.name, n.callback));
41
50
  } catch (e) {
42
51
  throw Error(`Error loading Lottie animation: ${e}`);
43
52
  }
44
53
  })(), () => {
45
54
  var e;
46
- t.current && (r && t.current.removeEventListener(r.name, r.callback), o && ((e = a.current) == null || e.disconnect()), t.current.destroy());
47
- }), [s, r, i, o, u]), /* @__PURE__ */ L(I, { ref: n, $width: v, $height: g });
48
- }), F = y(x);
55
+ r.current && (n && r.current.removeEventListener(n.name, n.callback), c && ((e = s.current) == null || e.disconnect()), r.current.destroy());
56
+ }), [m, n, a, c, l]), /* @__PURE__ */ E(I, { ref: o, $width: L, $height: h });
57
+ }), F = w(x);
49
58
  export {
50
59
  F as default
51
60
  };