@intlayer/design-system 3.5.1 → 3.5.4

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 (304) hide show
  1. package/README.md +1 -1
  2. package/dist/.vite/manifest.json +162 -80
  3. package/dist/components/Auth/AuthModal/index.cjs +4 -0
  4. package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
  5. package/dist/components/Auth/AuthModal/index.mjs +4 -0
  6. package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
  7. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +5 -4
  8. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  9. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +1 -1
  10. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
  11. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +5 -4
  12. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  13. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs +170 -0
  14. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs.map +1 -0
  15. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts +26 -0
  16. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts.map +1 -0
  17. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs +170 -0
  18. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs.map +1 -0
  19. package/dist/components/Auth/ChangePasswordForm/index.cjs +2 -2
  20. package/dist/components/Auth/ChangePasswordForm/index.d.ts +1 -1
  21. package/dist/components/Auth/ChangePasswordForm/index.d.ts.map +1 -1
  22. package/dist/components/Auth/ChangePasswordForm/index.mjs +2 -2
  23. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs +37 -0
  24. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs.map +1 -0
  25. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs +131 -0
  26. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs.map +1 -0
  27. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts +15 -0
  28. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts.map +1 -0
  29. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs +131 -0
  30. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs.map +1 -0
  31. package/dist/components/Auth/ChangePasswordForm/{ChangePasswordSchema.d.ts → useChangePasswordSchema.d.ts} +3 -3
  32. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts.map +1 -0
  33. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs +37 -0
  34. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs.map +1 -0
  35. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +11 -10
  36. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  37. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
  38. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +12 -11
  39. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  40. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs +86 -32
  41. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +1 -1
  42. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +13 -9
  43. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +1 -1
  44. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs +85 -31
  45. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +1 -1
  46. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +5 -4
  47. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  48. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +1 -1
  49. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
  50. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +5 -4
  51. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  52. package/dist/components/Auth/ResetPasswordForm/index.cjs +2 -2
  53. package/dist/components/Auth/ResetPasswordForm/index.d.ts +1 -1
  54. package/dist/components/Auth/ResetPasswordForm/index.d.ts.map +1 -1
  55. package/dist/components/Auth/ResetPasswordForm/index.mjs +2 -2
  56. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs +123 -0
  57. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs.map +1 -0
  58. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts +21 -0
  59. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts.map +1 -0
  60. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs +123 -0
  61. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs.map +1 -0
  62. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs +16 -0
  63. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs.map +1 -0
  64. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs +56 -0
  65. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs.map +1 -0
  66. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts +10 -0
  67. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts.map +1 -0
  68. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs +56 -0
  69. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs.map +1 -0
  70. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts +10 -0
  71. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts.map +1 -0
  72. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs +16 -0
  73. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs.map +1 -0
  74. package/dist/components/Auth/SignInForm/SignInForm.cjs +22 -15
  75. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  76. package/dist/components/Auth/SignInForm/SignInForm.d.ts +1 -1
  77. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
  78. package/dist/components/Auth/SignInForm/SignInForm.mjs +22 -15
  79. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  80. package/dist/components/Auth/SignInForm/index.cjs +2 -2
  81. package/dist/components/Auth/SignInForm/index.d.ts +1 -1
  82. package/dist/components/Auth/SignInForm/index.d.ts.map +1 -1
  83. package/dist/components/Auth/SignInForm/index.mjs +2 -2
  84. package/dist/components/Auth/SignInForm/signIn.content.cjs +217 -0
  85. package/dist/components/Auth/SignInForm/signIn.content.cjs.map +1 -0
  86. package/dist/components/Auth/SignInForm/signIn.content.d.ts +31 -0
  87. package/dist/components/Auth/SignInForm/signIn.content.d.ts.map +1 -0
  88. package/dist/components/Auth/SignInForm/signIn.content.mjs +217 -0
  89. package/dist/components/Auth/SignInForm/signIn.content.mjs.map +1 -0
  90. package/dist/components/Auth/SignInForm/useSignInSchema.cjs +25 -0
  91. package/dist/components/Auth/SignInForm/useSignInSchema.cjs.map +1 -0
  92. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs +71 -0
  93. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs.map +1 -0
  94. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts +11 -0
  95. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts.map +1 -0
  96. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs +71 -0
  97. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs.map +1 -0
  98. package/dist/components/Auth/SignInForm/{SignInSchema.d.ts → useSignInSchema.d.ts} +3 -3
  99. package/dist/components/Auth/SignInForm/useSignInSchema.d.ts.map +1 -0
  100. package/dist/components/Auth/SignInForm/useSignInSchema.mjs +25 -0
  101. package/dist/components/Auth/SignInForm/useSignInSchema.mjs.map +1 -0
  102. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +4 -4
  103. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  104. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +1 -1
  105. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
  106. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +3 -3
  107. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  108. package/dist/components/Auth/SignUpForm/index.cjs +2 -2
  109. package/dist/components/Auth/SignUpForm/index.d.ts +1 -1
  110. package/dist/components/Auth/SignUpForm/index.d.ts.map +1 -1
  111. package/dist/components/Auth/SignUpForm/index.mjs +2 -2
  112. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs +182 -0
  113. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs.map +1 -0
  114. package/dist/components/Auth/SignUpForm/{index.content.d.ts → signUpForm.content.d.ts} +1 -1
  115. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts.map +1 -0
  116. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs +182 -0
  117. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs.map +1 -0
  118. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs +36 -0
  119. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs.map +1 -0
  120. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs +116 -0
  121. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs.map +1 -0
  122. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts +14 -0
  123. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts.map +1 -0
  124. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs +116 -0
  125. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs.map +1 -0
  126. package/dist/components/Auth/SignUpForm/{SignUpSchema.d.ts → useSignUpSchema.d.ts} +3 -3
  127. package/dist/components/Auth/SignUpForm/useSignUpSchema.d.ts.map +1 -0
  128. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs +36 -0
  129. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs.map +1 -0
  130. package/dist/components/Auth/index.cjs +8 -8
  131. package/dist/components/Auth/index.mjs +8 -8
  132. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  133. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  134. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  135. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +60 -6
  136. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -1
  137. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -1
  138. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +60 -6
  139. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -1
  140. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs +22 -2
  141. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs.map +1 -1
  142. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts.map +1 -1
  143. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs +22 -2
  144. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs.map +1 -1
  145. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +14 -6
  146. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  147. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +14 -6
  148. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  149. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +151 -21
  150. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
  151. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  152. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +151 -21
  153. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
  154. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +27 -0
  155. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -0
  156. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs +71 -0
  157. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs.map +1 -0
  158. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +11 -0
  159. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -0
  160. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs +71 -0
  161. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.mjs.map +1 -0
  162. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/{dictionaryFormSchema.d.ts → useDictionaryFormSchema.d.ts} +3 -3
  163. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts.map +1 -0
  164. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +27 -0
  165. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -0
  166. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +24 -16
  167. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  168. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +24 -16
  169. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  170. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +176 -16
  171. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  172. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  173. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +176 -16
  174. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  175. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +44 -0
  176. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -0
  177. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +176 -0
  178. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -0
  179. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +17 -0
  180. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -0
  181. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +176 -0
  182. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -0
  183. package/dist/components/DictionaryFieldEditor/DictionaryDetails/{DictionaryDetailsSchema.d.ts → useDictionaryDetailsSchema.d.ts} +3 -3
  184. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -0
  185. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +44 -0
  186. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -0
  187. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +2 -2
  188. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
  189. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +2 -2
  190. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
  191. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +121 -11
  192. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
  193. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
  194. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +121 -11
  195. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
  196. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +3 -3
  197. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  198. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +3 -3
  199. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  200. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +66 -6
  201. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  202. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  203. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +66 -6
  204. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  205. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +44 -4
  206. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
  207. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
  208. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +44 -4
  209. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
  210. package/dist/components/DictionaryFieldEditor/editorView.content.cjs +77 -7
  211. package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +1 -1
  212. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -1
  213. package/dist/components/DictionaryFieldEditor/editorView.content.mjs +77 -7
  214. package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +1 -1
  215. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +66 -6
  216. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
  217. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
  218. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +66 -6
  219. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
  220. package/dist/components/Link/Link.cjs +11 -4
  221. package/dist/components/Link/Link.cjs.map +1 -1
  222. package/dist/components/Link/Link.d.ts +2 -1
  223. package/dist/components/Link/Link.d.ts.map +1 -1
  224. package/dist/components/Link/Link.mjs +11 -4
  225. package/dist/components/Link/Link.mjs.map +1 -1
  226. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +16 -20
  227. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
  228. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
  229. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +16 -20
  230. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
  231. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs +24 -0
  232. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.cjs.map +1 -0
  233. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +8 -0
  234. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts.map +1 -0
  235. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs +25 -0
  236. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.mjs.map +1 -0
  237. package/dist/components/MarkDownRender/index.cjs +9 -1
  238. package/dist/components/MarkDownRender/index.cjs.map +1 -1
  239. package/dist/components/MarkDownRender/index.d.ts.map +1 -1
  240. package/dist/components/MarkDownRender/index.mjs +9 -1
  241. package/dist/components/MarkDownRender/index.mjs.map +1 -1
  242. package/dist/components/index.cjs +8 -8
  243. package/dist/components/index.mjs +8 -8
  244. package/dist/tailwind.css +1 -1
  245. package/package.json +12 -12
  246. package/dist/__vite-browser-external-SDi5tJh6.cjs +0 -4
  247. package/dist/__vite-browser-external-SDi5tJh6.cjs.map +0 -1
  248. package/dist/__vite-browser-external-r74dyCO2.js +0 -5
  249. package/dist/__vite-browser-external-r74dyCO2.js.map +0 -1
  250. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs +0 -66
  251. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs.map +0 -1
  252. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts.map +0 -1
  253. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs +0 -66
  254. package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs.map +0 -1
  255. package/dist/components/Auth/ChangePasswordForm/index.content.cjs +0 -67
  256. package/dist/components/Auth/ChangePasswordForm/index.content.cjs.map +0 -1
  257. package/dist/components/Auth/ChangePasswordForm/index.content.d.ts +0 -23
  258. package/dist/components/Auth/ChangePasswordForm/index.content.d.ts.map +0 -1
  259. package/dist/components/Auth/ChangePasswordForm/index.content.mjs +0 -67
  260. package/dist/components/Auth/ChangePasswordForm/index.content.mjs.map +0 -1
  261. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs +0 -29
  262. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs.map +0 -1
  263. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts +0 -10
  264. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts.map +0 -1
  265. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs +0 -29
  266. package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs.map +0 -1
  267. package/dist/components/Auth/ResetPasswordForm/index.content.cjs +0 -50
  268. package/dist/components/Auth/ResetPasswordForm/index.content.cjs.map +0 -1
  269. package/dist/components/Auth/ResetPasswordForm/index.content.d.ts +0 -18
  270. package/dist/components/Auth/ResetPasswordForm/index.content.d.ts.map +0 -1
  271. package/dist/components/Auth/ResetPasswordForm/index.content.mjs +0 -50
  272. package/dist/components/Auth/ResetPasswordForm/index.content.mjs.map +0 -1
  273. package/dist/components/Auth/SignInForm/SignInSchema.cjs +0 -38
  274. package/dist/components/Auth/SignInForm/SignInSchema.cjs.map +0 -1
  275. package/dist/components/Auth/SignInForm/SignInSchema.d.ts.map +0 -1
  276. package/dist/components/Auth/SignInForm/SignInSchema.mjs +0 -38
  277. package/dist/components/Auth/SignInForm/SignInSchema.mjs.map +0 -1
  278. package/dist/components/Auth/SignInForm/index.content.cjs +0 -84
  279. package/dist/components/Auth/SignInForm/index.content.cjs.map +0 -1
  280. package/dist/components/Auth/SignInForm/index.content.d.ts +0 -28
  281. package/dist/components/Auth/SignInForm/index.content.d.ts.map +0 -1
  282. package/dist/components/Auth/SignInForm/index.content.mjs +0 -84
  283. package/dist/components/Auth/SignInForm/index.content.mjs.map +0 -1
  284. package/dist/components/Auth/SignUpForm/SignUpSchema.cjs +0 -61
  285. package/dist/components/Auth/SignUpForm/SignUpSchema.cjs.map +0 -1
  286. package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts.map +0 -1
  287. package/dist/components/Auth/SignUpForm/SignUpSchema.mjs +0 -61
  288. package/dist/components/Auth/SignUpForm/SignUpSchema.mjs.map +0 -1
  289. package/dist/components/Auth/SignUpForm/index.content.cjs +0 -72
  290. package/dist/components/Auth/SignUpForm/index.content.cjs.map +0 -1
  291. package/dist/components/Auth/SignUpForm/index.content.d.ts.map +0 -1
  292. package/dist/components/Auth/SignUpForm/index.content.mjs +0 -72
  293. package/dist/components/Auth/SignUpForm/index.content.mjs.map +0 -1
  294. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs +0 -40
  295. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs.map +0 -1
  296. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts.map +0 -1
  297. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs +0 -40
  298. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs.map +0 -1
  299. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs +0 -85
  300. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs.map +0 -1
  301. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts.map +0 -1
  302. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs +0 -85
  303. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs.map +0 -1
  304. package/dist/tailwind.js +0 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@ This template provides a minimal setup to get React working in Vite with HMR and
4
4
 
5
5
  Currently, two official plugins are available:
6
6
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README_en.md) uses [Babel](https://babeljs.io/) for Fast Refresh
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
8
  - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
9
 
10
10
  ## Expanding the ESLint configuration
@@ -124,9 +124,13 @@
124
124
  "src/hooks/intlayerAPIHooks.ts",
125
125
  "src/components/Modal/Modal.tsx",
126
126
  "src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx",
127
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.ts",
127
128
  "src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx",
129
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts",
128
130
  "src/components/Auth/SignInForm/SignInForm.tsx",
129
- "src/components/Auth/SignUpForm/SignUpForm.tsx"
131
+ "src/components/Auth/SignInForm/useSignInSchema.content.ts",
132
+ "src/components/Auth/SignUpForm/SignUpForm.tsx",
133
+ "src/components/Auth/SignUpForm/useSignUpSchema.content.ts"
130
134
  ]
131
135
  },
132
136
  "src/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.tsx": {
@@ -177,20 +181,14 @@
177
181
  "src/components/Form/FormField.tsx",
178
182
  "_Form-BDcoNTLV.cjs",
179
183
  "src/components/Auth/useUser/index.ts",
180
- "src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts",
181
- "src/components/Auth/ChangePasswordForm/index.content.ts"
184
+ "src/components/Auth/ChangePasswordForm/changePasswordForm.content.ts",
185
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.ts"
182
186
  ]
183
187
  },
184
- "src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts": {
185
- "file": "components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs",
186
- "name": "components/Auth/ChangePasswordForm/ChangePasswordSchema",
187
- "src": "src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts",
188
- "isEntry": true
189
- },
190
- "src/components/Auth/ChangePasswordForm/index.content.ts": {
191
- "file": "components/Auth/ChangePasswordForm/index.content.cjs",
192
- "name": "components/Auth/ChangePasswordForm/index.content",
193
- "src": "src/components/Auth/ChangePasswordForm/index.content.ts",
188
+ "src/components/Auth/ChangePasswordForm/changePasswordForm.content.ts": {
189
+ "file": "components/Auth/ChangePasswordForm/changePasswordForm.content.cjs",
190
+ "name": "components/Auth/ChangePasswordForm/changePasswordForm.content",
191
+ "src": "src/components/Auth/ChangePasswordForm/changePasswordForm.content.ts",
194
192
  "isEntry": true
195
193
  },
196
194
  "src/components/Auth/ChangePasswordForm/index.ts": {
@@ -200,7 +198,22 @@
200
198
  "isEntry": true,
201
199
  "imports": [
202
200
  "src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx",
203
- "src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts"
201
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.ts"
202
+ ]
203
+ },
204
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.ts": {
205
+ "file": "components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs",
206
+ "name": "components/Auth/ChangePasswordForm/useChangePasswordSchema.content",
207
+ "src": "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.ts",
208
+ "isEntry": true
209
+ },
210
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.ts": {
211
+ "file": "components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs",
212
+ "name": "components/Auth/ChangePasswordForm/useChangePasswordSchema",
213
+ "src": "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.ts",
214
+ "isEntry": true,
215
+ "imports": [
216
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.ts"
204
217
  ]
205
218
  },
206
219
  "src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx": {
@@ -260,22 +273,10 @@
260
273
  "src/components/Form/FormBase.tsx",
261
274
  "src/components/Form/FormField.tsx",
262
275
  "_Form-BDcoNTLV.cjs",
263
- "src/components/Auth/ResetPasswordForm/index.content.ts",
264
- "src/components/Auth/ResetPasswordForm/ResetPasswordSchema.ts"
276
+ "src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts",
277
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"
265
278
  ]
266
279
  },
267
- "src/components/Auth/ResetPasswordForm/ResetPasswordSchema.ts": {
268
- "file": "components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs",
269
- "name": "components/Auth/ResetPasswordForm/ResetPasswordSchema",
270
- "src": "src/components/Auth/ResetPasswordForm/ResetPasswordSchema.ts",
271
- "isEntry": true
272
- },
273
- "src/components/Auth/ResetPasswordForm/index.content.ts": {
274
- "file": "components/Auth/ResetPasswordForm/index.content.cjs",
275
- "name": "components/Auth/ResetPasswordForm/index.content",
276
- "src": "src/components/Auth/ResetPasswordForm/index.content.ts",
277
- "isEntry": true
278
- },
279
280
  "src/components/Auth/ResetPasswordForm/index.ts": {
280
281
  "file": "components/Auth/ResetPasswordForm/index.cjs",
281
282
  "name": "components/Auth/ResetPasswordForm/index",
@@ -283,7 +284,28 @@
283
284
  "isEntry": true,
284
285
  "imports": [
285
286
  "src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx",
286
- "src/components/Auth/ResetPasswordForm/ResetPasswordSchema.ts"
287
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"
288
+ ]
289
+ },
290
+ "src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts": {
291
+ "file": "components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs",
292
+ "name": "components/Auth/ResetPasswordForm/resetPasswordContent.content",
293
+ "src": "src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts",
294
+ "isEntry": true
295
+ },
296
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts": {
297
+ "file": "components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs",
298
+ "name": "components/Auth/ResetPasswordForm/useResetPasswordSchema.content",
299
+ "src": "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts",
300
+ "isEntry": true
301
+ },
302
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts": {
303
+ "file": "components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs",
304
+ "name": "components/Auth/ResetPasswordForm/useResetPasswordSchema",
305
+ "src": "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts",
306
+ "isEntry": true,
307
+ "imports": [
308
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts"
287
309
  ]
288
310
  },
289
311
  "src/components/Auth/SignInForm/SignInForm.tsx": {
@@ -297,22 +319,10 @@
297
319
  "src/components/Form/FormField.tsx",
298
320
  "_Form-BDcoNTLV.cjs",
299
321
  "src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx",
300
- "src/components/Auth/SignInForm/index.content.ts",
301
- "src/components/Auth/SignInForm/SignInSchema.ts"
322
+ "src/components/Auth/SignInForm/signIn.content.ts",
323
+ "src/components/Auth/SignInForm/useSignInSchema.ts"
302
324
  ]
303
325
  },
304
- "src/components/Auth/SignInForm/SignInSchema.ts": {
305
- "file": "components/Auth/SignInForm/SignInSchema.cjs",
306
- "name": "components/Auth/SignInForm/SignInSchema",
307
- "src": "src/components/Auth/SignInForm/SignInSchema.ts",
308
- "isEntry": true
309
- },
310
- "src/components/Auth/SignInForm/index.content.ts": {
311
- "file": "components/Auth/SignInForm/index.content.cjs",
312
- "name": "components/Auth/SignInForm/index.content",
313
- "src": "src/components/Auth/SignInForm/index.content.ts",
314
- "isEntry": true
315
- },
316
326
  "src/components/Auth/SignInForm/index.ts": {
317
327
  "file": "components/Auth/SignInForm/index.cjs",
318
328
  "name": "components/Auth/SignInForm/index",
@@ -320,7 +330,28 @@
320
330
  "isEntry": true,
321
331
  "imports": [
322
332
  "src/components/Auth/SignInForm/SignInForm.tsx",
323
- "src/components/Auth/SignInForm/SignInSchema.ts"
333
+ "src/components/Auth/SignInForm/useSignInSchema.ts"
334
+ ]
335
+ },
336
+ "src/components/Auth/SignInForm/signIn.content.ts": {
337
+ "file": "components/Auth/SignInForm/signIn.content.cjs",
338
+ "name": "components/Auth/SignInForm/signIn.content",
339
+ "src": "src/components/Auth/SignInForm/signIn.content.ts",
340
+ "isEntry": true
341
+ },
342
+ "src/components/Auth/SignInForm/useSignInSchema.content.ts": {
343
+ "file": "components/Auth/SignInForm/useSignInSchema.content.cjs",
344
+ "name": "components/Auth/SignInForm/useSignInSchema.content",
345
+ "src": "src/components/Auth/SignInForm/useSignInSchema.content.ts",
346
+ "isEntry": true
347
+ },
348
+ "src/components/Auth/SignInForm/useSignInSchema.ts": {
349
+ "file": "components/Auth/SignInForm/useSignInSchema.cjs",
350
+ "name": "components/Auth/SignInForm/useSignInSchema",
351
+ "src": "src/components/Auth/SignInForm/useSignInSchema.ts",
352
+ "isEntry": true,
353
+ "imports": [
354
+ "src/components/Auth/SignInForm/useSignInSchema.content.ts"
324
355
  ]
325
356
  },
326
357
  "src/components/Auth/SignUpForm/SignUpForm.tsx": {
@@ -333,22 +364,10 @@
333
364
  "src/components/Form/FormBase.tsx",
334
365
  "src/components/Form/FormField.tsx",
335
366
  "_Form-BDcoNTLV.cjs",
336
- "src/components/Auth/SignUpForm/index.content.ts",
337
- "src/components/Auth/SignUpForm/SignUpSchema.ts"
367
+ "src/components/Auth/SignUpForm/signUpForm.content.ts",
368
+ "src/components/Auth/SignUpForm/useSignUpSchema.ts"
338
369
  ]
339
370
  },
340
- "src/components/Auth/SignUpForm/SignUpSchema.ts": {
341
- "file": "components/Auth/SignUpForm/SignUpSchema.cjs",
342
- "name": "components/Auth/SignUpForm/SignUpSchema",
343
- "src": "src/components/Auth/SignUpForm/SignUpSchema.ts",
344
- "isEntry": true
345
- },
346
- "src/components/Auth/SignUpForm/index.content.ts": {
347
- "file": "components/Auth/SignUpForm/index.content.cjs",
348
- "name": "components/Auth/SignUpForm/index.content",
349
- "src": "src/components/Auth/SignUpForm/index.content.ts",
350
- "isEntry": true
351
- },
352
371
  "src/components/Auth/SignUpForm/index.ts": {
353
372
  "file": "components/Auth/SignUpForm/index.cjs",
354
373
  "name": "components/Auth/SignUpForm/index",
@@ -356,7 +375,28 @@
356
375
  "isEntry": true,
357
376
  "imports": [
358
377
  "src/components/Auth/SignUpForm/SignUpForm.tsx",
359
- "src/components/Auth/SignUpForm/SignUpSchema.ts"
378
+ "src/components/Auth/SignUpForm/useSignUpSchema.ts"
379
+ ]
380
+ },
381
+ "src/components/Auth/SignUpForm/signUpForm.content.ts": {
382
+ "file": "components/Auth/SignUpForm/signUpForm.content.cjs",
383
+ "name": "components/Auth/SignUpForm/signUpForm.content",
384
+ "src": "src/components/Auth/SignUpForm/signUpForm.content.ts",
385
+ "isEntry": true
386
+ },
387
+ "src/components/Auth/SignUpForm/useSignUpSchema.content.ts": {
388
+ "file": "components/Auth/SignUpForm/useSignUpSchema.content.cjs",
389
+ "name": "components/Auth/SignUpForm/useSignUpSchema.content",
390
+ "src": "src/components/Auth/SignUpForm/useSignUpSchema.content.ts",
391
+ "isEntry": true
392
+ },
393
+ "src/components/Auth/SignUpForm/useSignUpSchema.ts": {
394
+ "file": "components/Auth/SignUpForm/useSignUpSchema.cjs",
395
+ "name": "components/Auth/SignUpForm/useSignUpSchema",
396
+ "src": "src/components/Auth/SignUpForm/useSignUpSchema.ts",
397
+ "isEntry": true,
398
+ "imports": [
399
+ "src/components/Auth/SignUpForm/useSignUpSchema.content.ts"
360
400
  ]
361
401
  },
362
402
  "src/components/Auth/index.ts": {
@@ -367,13 +407,13 @@
367
407
  "imports": [
368
408
  "src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx",
369
409
  "src/components/Auth/SignInForm/SignInForm.tsx",
370
- "src/components/Auth/SignInForm/SignInSchema.ts",
410
+ "src/components/Auth/SignInForm/useSignInSchema.ts",
371
411
  "src/components/Auth/SignUpForm/SignUpForm.tsx",
372
- "src/components/Auth/SignUpForm/SignUpSchema.ts",
412
+ "src/components/Auth/SignUpForm/useSignUpSchema.ts",
373
413
  "src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx",
374
- "src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts",
414
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.ts",
375
415
  "src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx",
376
- "src/components/Auth/ResetPasswordForm/ResetPasswordSchema.ts",
416
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts",
377
417
  "src/components/Auth/AuthModal/index.tsx",
378
418
  "src/components/Auth/useAuth/index.tsx",
379
419
  "src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx",
@@ -759,17 +799,25 @@
759
799
  "src/hooks/intlayerAPIHooks.ts",
760
800
  "src/libs/intlayer-api/index.ts",
761
801
  "src/components/Button/Button.tsx",
802
+ "src/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.ts",
762
803
  "src/components/Form/FormBase.tsx",
763
804
  "src/components/Form/FormField.tsx",
764
805
  "_Form-BDcoNTLV.cjs",
806
+ "src/components/Auth/SignInForm/signIn.content.ts",
807
+ "src/components/Auth/SignInForm/useSignInSchema.content.ts",
808
+ "src/components/Auth/SignUpForm/useSignUpSchema.content.ts",
765
809
  "src/hooks/useScrollBlockage/useScrollBlockageStore.ts",
766
810
  "src/hooks/useAsync/useAsyncStateStore.ts",
767
811
  "src/components/Auth/useAuth/index.tsx",
812
+ "src/components/Auth/ChangePasswordForm/changePasswordForm.content.ts",
813
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.ts",
814
+ "src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts",
815
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts",
768
816
  "src/components/Modal/Modal.tsx",
769
817
  "src/components/Select/Multiselect.tsx",
770
818
  "src/components/Select/Select.tsx",
771
819
  "src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts",
772
- "src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.ts"
820
+ "src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.ts"
773
821
  ]
774
822
  },
775
823
  "src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts": {
@@ -778,12 +826,21 @@
778
826
  "src": "src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts",
779
827
  "isEntry": true
780
828
  },
781
- "src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.ts": {
782
- "file": "components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs",
783
- "name": "components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema",
784
- "src": "src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.ts",
829
+ "src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts": {
830
+ "file": "components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.cjs",
831
+ "name": "components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content",
832
+ "src": "src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts",
785
833
  "isEntry": true
786
834
  },
835
+ "src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.ts": {
836
+ "file": "components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs",
837
+ "name": "components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema",
838
+ "src": "src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.ts",
839
+ "isEntry": true,
840
+ "imports": [
841
+ "src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"
842
+ ]
843
+ },
787
844
  "src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.tsx": {
788
845
  "file": "components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs",
789
846
  "name": "components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm",
@@ -797,29 +854,46 @@
797
854
  "src/utils/cn.ts",
798
855
  "src/libs/intlayer-api/index.ts",
799
856
  "src/components/Button/Button.tsx",
857
+ "src/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.ts",
800
858
  "src/components/Form/FormBase.tsx",
801
859
  "src/components/Form/FormField.tsx",
802
860
  "_Form-BDcoNTLV.cjs",
861
+ "src/components/Auth/SignInForm/signIn.content.ts",
862
+ "src/components/Auth/SignInForm/useSignInSchema.content.ts",
863
+ "src/components/Auth/SignUpForm/useSignUpSchema.content.ts",
803
864
  "src/components/Auth/useAuth/index.tsx",
865
+ "src/components/Auth/ChangePasswordForm/changePasswordForm.content.ts",
866
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.ts",
867
+ "src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts",
868
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts",
804
869
  "src/components/Modal/Modal.tsx",
805
870
  "src/components/Select/Multiselect.tsx",
806
871
  "src/components/Select/Select.tsx",
807
872
  "src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx",
808
- "src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.ts"
873
+ "src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.ts"
809
874
  ]
810
875
  },
811
- "src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.ts": {
812
- "file": "components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs",
813
- "name": "components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema",
814
- "src": "src/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.ts",
815
- "isEntry": true
816
- },
817
876
  "src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx": {
818
877
  "file": "components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs",
819
878
  "name": "components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content",
820
879
  "src": "src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx",
821
880
  "isEntry": true
822
881
  },
882
+ "src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts": {
883
+ "file": "components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs",
884
+ "name": "components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content",
885
+ "src": "src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts",
886
+ "isEntry": true
887
+ },
888
+ "src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.ts": {
889
+ "file": "components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs",
890
+ "name": "components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema",
891
+ "src": "src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.ts",
892
+ "isEntry": true,
893
+ "imports": [
894
+ "src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"
895
+ ]
896
+ },
823
897
  "src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx": {
824
898
  "file": "components/DictionaryFieldEditor/DictionaryFieldEditor.cjs",
825
899
  "name": "components/DictionaryFieldEditor/DictionaryFieldEditor",
@@ -1686,8 +1760,10 @@
1686
1760
  "isEntry": true,
1687
1761
  "imports": [
1688
1762
  "_jsx-runtime-XHKiWCTo.cjs",
1763
+ "src/components/Button/Button.tsx",
1689
1764
  "src/components/Container/index.tsx",
1690
- "src/components/DropDown/index.tsx"
1765
+ "src/components/DropDown/index.tsx",
1766
+ "src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"
1691
1767
  ]
1692
1768
  },
1693
1769
  "src/components/LocaleSwitcherDropDown/index.tsx": {
@@ -1699,6 +1775,12 @@
1699
1775
  "src/components/LocaleSwitcherDropDown/LocaleSwitcher.tsx"
1700
1776
  ]
1701
1777
  },
1778
+ "src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts": {
1779
+ "file": "components/LocaleSwitcherDropDown/localeSwitcher.content.cjs",
1780
+ "name": "components/LocaleSwitcherDropDown/localeSwitcher.content",
1781
+ "src": "src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts",
1782
+ "isEntry": true
1783
+ },
1702
1784
  "src/components/Logo/LogoCircle.tsx": {
1703
1785
  "file": "components/Logo/LogoCircle.cjs",
1704
1786
  "name": "components/Logo/LogoCircle",
@@ -2307,13 +2389,13 @@
2307
2389
  "src/components/Input/Checkbox.tsx",
2308
2390
  "src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx",
2309
2391
  "src/components/Auth/SignInForm/SignInForm.tsx",
2310
- "src/components/Auth/SignInForm/SignInSchema.ts",
2392
+ "src/components/Auth/SignInForm/useSignInSchema.ts",
2311
2393
  "src/components/Auth/SignUpForm/SignUpForm.tsx",
2312
- "src/components/Auth/SignUpForm/SignUpSchema.ts",
2394
+ "src/components/Auth/SignUpForm/useSignUpSchema.ts",
2313
2395
  "src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx",
2314
- "src/components/Auth/ChangePasswordForm/ChangePasswordSchema.ts",
2396
+ "src/components/Auth/ChangePasswordForm/useChangePasswordSchema.ts",
2315
2397
  "src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx",
2316
- "src/components/Auth/ResetPasswordForm/ResetPasswordSchema.ts",
2398
+ "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts",
2317
2399
  "src/components/Auth/AuthModal/index.tsx",
2318
2400
  "src/components/Auth/useAuth/index.tsx",
2319
2401
  "src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx",
@@ -12,9 +12,13 @@ const components_Modal_Modal = require("../../Modal/Modal.cjs");
12
12
  const components_Auth_ChangePasswordForm_ChangePasswordForm = require("../ChangePasswordForm/ChangePasswordForm.cjs");
13
13
  require("react-intlayer");
14
14
  require("zod");
15
+ require("../ChangePasswordForm/useChangePasswordSchema.content.cjs");
15
16
  const components_Auth_ResetPasswordForm_ResetPasswordForm = require("../ResetPasswordForm/ResetPasswordForm.cjs");
17
+ require("../ResetPasswordForm/useResetPasswordSchema.content.cjs");
16
18
  const components_Auth_SignInForm_SignInForm = require("../SignInForm/SignInForm.cjs");
19
+ require("../SignInForm/useSignInSchema.content.cjs");
17
20
  const components_Auth_SignUpForm_SignUpForm = require("../SignUpForm/SignUpForm.cjs");
21
+ require("../SignUpForm/useSignUpSchema.content.cjs");
18
22
  const AuthModal = ({
19
23
  onClose,
20
24
  isOpen,
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/components/Auth/AuthModal/index.tsx"],"sourcesContent":["'use client';\n\nimport type { UserAPI } from '@intlayer/backend';\nimport { useState, type FC } from 'react';\nimport {\n useAskResetPassword,\n useChangePassword,\n useLogin,\n useRegister,\n} from '../../../hooks';\nimport { Modal } from '../../Modal/Modal';\nimport { type ChangePassword, ChangePasswordForm } from '../ChangePasswordForm';\nimport { type ResetPassword, ResetPasswordForm } from '../ResetPasswordForm';\nimport { type SignIn, SignInForm } from '../SignInForm';\nimport { type SignUp, SignUpForm } from '../SignUpForm';\n\nenum AuthState {\n SignIn,\n SignUp,\n ResetPassword,\n ChangePassword,\n}\n\ntype AuthModalProps = {\n onClose: () => void;\n isOpen: boolean;\n state?: AuthState.SignIn;\n onSignInSuccess?: (data: UserAPI) => Promise<void>;\n onSignUpSuccess?: (data: UserAPI) => Promise<void>;\n onResetPasswordSuccess?: (data: UserAPI) => Promise<void>;\n onChangePasswordSuccess?: (data: UserAPI) => Promise<void>;\n};\n\nexport const AuthModal: FC<AuthModalProps> = ({\n onClose,\n isOpen,\n state: initialState = AuthState.SignIn,\n onSignInSuccess,\n onSignUpSuccess,\n onResetPasswordSuccess,\n onChangePasswordSuccess,\n}) => {\n const [state, setState] = useState<AuthState>(initialState);\n const { login } = useLogin();\n const { register } = useRegister();\n const { askResetPassword } = useAskResetPassword();\n const { changePassword } = useChangePassword();\n\n const onSubmitSignInSuccess = async ({ email, password }: SignIn) =>\n await login({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignInSuccess?.(response.data);\n }\n });\n\n const onSubmitSignUpSuccess = async ({ email, password }: SignUp) =>\n await register({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignUpSuccess?.(response.data);\n }\n });\n\n const onSubmitResetPasswordSuccess = async ({ email }: ResetPassword) =>\n await askResetPassword(email).then(async (response) => {\n if (response?.data) {\n await onResetPasswordSuccess?.(response.data);\n }\n });\n\n const onSubmitChangePasswordSuccess = async ({\n currentPassword,\n newPassword,\n }: ChangePassword) =>\n await changePassword({\n oldPassword: currentPassword,\n newPassword,\n }).then(async (response) => {\n if (response?.data) {\n await onChangePasswordSuccess?.(response.data);\n }\n });\n\n return (\n <Modal onClose={onClose} isOpen={isOpen}>\n {state === AuthState.SignIn && (\n <SignInForm\n onSubmitSuccess={onSubmitSignInSuccess}\n onClickForgotPassword={() => setState(AuthState.ResetPassword)}\n onClickSignUp={() => setState(AuthState.SignUp)}\n />\n )}\n {state === AuthState.SignUp && (\n <SignUpForm\n onSubmitSuccess={onSubmitSignUpSuccess}\n onClickBackToSignIn={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ResetPassword && (\n <ResetPasswordForm\n onSubmitSuccess={onSubmitResetPasswordSuccess}\n onClickBackToLogin={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ChangePassword && (\n <ChangePasswordForm\n onSubmitSuccess={onSubmitChangePasswordSuccess}\n onClickBackToHome={() => setState(AuthState.SignIn)}\n />\n )}\n </Modal>\n );\n};\n"],"names":["useState","useLogin","useRegister","useAskResetPassword","useChangePassword","jsxs","Modal","jsx","SignInForm","SignUpForm","ResetPasswordForm","ChangePasswordForm"],"mappings":";;;;;;;;;;;;;;;;;AAiCO,MAAM,YAAgC,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA,OAAO,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,CAAC,OAAO,QAAQ,IAAIA,WAAAA,SAAoB,YAAY;AACpD,QAAA,EAAE,MAAM,IAAIC,gCAAS;AACrB,QAAA,EAAE,SAAS,IAAIC,mCAAY;AAC3B,QAAA,EAAE,iBAAiB,IAAIC,2CAAoB;AAC3C,QAAA,EAAE,eAAe,IAAIC,yCAAkB;AAE7C,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,MAAM;AAAA,IACV;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEH,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,SAAS;AAAA,IACb;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEG,QAAA,+BAA+B,OAAO,EAAE,YAC5C,MAAM,iBAAiB,KAAK,EAAE,KAAK,OAAO,aAAa;AACrD,QAAI,UAAU,MAAM;AACZ,YAAA,yBAAyB,SAAS,IAAI;AAAA,IAAA;AAAA,EAC9C,CACD;AAEH,QAAM,gCAAgC,OAAO;AAAA,IAC3C;AAAA,IACA;AAAA,EACF,MACE,MAAM,eAAe;AAAA,IACnB,aAAa;AAAA,IACb;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,0BAA0B,SAAS,IAAI;AAAA,IAAA;AAAA,EAC/C,CACD;AAGD,SAAAC,2BAAA,kBAAA,KAACC,uBAAM,OAAA,EAAA,SAAkB,QACtB,UAAA;AAAA,IAAA,UAAU,KACTC,2BAAA,kBAAA;AAAA,MAACC,sCAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,uBAAuB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAuB;AAAA,QAC7D,eAAe,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAChD;AAAA,IAED,UAAU,KACTD,2BAAA,kBAAA;AAAA,MAACE,sCAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,qBAAqB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACtD;AAAA,IAED,UAAU,KACTF,2BAAA,kBAAA;AAAA,MAACG,oDAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,oBAAoB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACrD;AAAA,IAED,UAAU,KACTH,2BAAA,kBAAA;AAAA,MAACI,sDAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,mBAAmB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EACpD,GAEJ;AAEJ;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../src/components/Auth/AuthModal/index.tsx"],"sourcesContent":["'use client';\n\nimport type { UserAPI } from '@intlayer/backend';\nimport { useState, type FC } from 'react';\nimport {\n useAskResetPassword,\n useChangePassword,\n useLogin,\n useRegister,\n} from '../../../hooks';\nimport { Modal } from '../../Modal/Modal';\nimport { type ChangePassword, ChangePasswordForm } from '../ChangePasswordForm';\nimport { type ResetPassword, ResetPasswordForm } from '../ResetPasswordForm';\nimport { type SignIn, SignInForm } from '../SignInForm';\nimport { type SignUp, SignUpForm } from '../SignUpForm';\n\nenum AuthState {\n SignIn,\n SignUp,\n ResetPassword,\n ChangePassword,\n}\n\ntype AuthModalProps = {\n onClose: () => void;\n isOpen: boolean;\n state?: AuthState.SignIn;\n onSignInSuccess?: (data: UserAPI) => Promise<void>;\n onSignUpSuccess?: (data: UserAPI) => Promise<void>;\n onResetPasswordSuccess?: (data: UserAPI) => Promise<void>;\n onChangePasswordSuccess?: (data: UserAPI) => Promise<void>;\n};\n\nexport const AuthModal: FC<AuthModalProps> = ({\n onClose,\n isOpen,\n state: initialState = AuthState.SignIn,\n onSignInSuccess,\n onSignUpSuccess,\n onResetPasswordSuccess,\n onChangePasswordSuccess,\n}) => {\n const [state, setState] = useState<AuthState>(initialState);\n const { login } = useLogin();\n const { register } = useRegister();\n const { askResetPassword } = useAskResetPassword();\n const { changePassword } = useChangePassword();\n\n const onSubmitSignInSuccess = async ({ email, password }: SignIn) =>\n await login({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignInSuccess?.(response.data);\n }\n });\n\n const onSubmitSignUpSuccess = async ({ email, password }: SignUp) =>\n await register({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignUpSuccess?.(response.data);\n }\n });\n\n const onSubmitResetPasswordSuccess = async ({ email }: ResetPassword) =>\n await askResetPassword(email).then(async (response) => {\n if (response?.data) {\n await onResetPasswordSuccess?.(response.data);\n }\n });\n\n const onSubmitChangePasswordSuccess = async ({\n currentPassword,\n newPassword,\n }: ChangePassword) =>\n await changePassword({\n oldPassword: currentPassword,\n newPassword,\n }).then(async (response) => {\n if (response?.data) {\n await onChangePasswordSuccess?.(response.data);\n }\n });\n\n return (\n <Modal onClose={onClose} isOpen={isOpen}>\n {state === AuthState.SignIn && (\n <SignInForm\n onSubmitSuccess={onSubmitSignInSuccess}\n onClickForgotPassword={() => setState(AuthState.ResetPassword)}\n onClickSignUp={() => setState(AuthState.SignUp)}\n />\n )}\n {state === AuthState.SignUp && (\n <SignUpForm\n onSubmitSuccess={onSubmitSignUpSuccess}\n onClickBackToSignIn={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ResetPassword && (\n <ResetPasswordForm\n onSubmitSuccess={onSubmitResetPasswordSuccess}\n onClickBackToLogin={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ChangePassword && (\n <ChangePasswordForm\n onSubmitSuccess={onSubmitChangePasswordSuccess}\n onClickBackToHome={() => setState(AuthState.SignIn)}\n />\n )}\n </Modal>\n );\n};\n"],"names":["useState","useLogin","useRegister","useAskResetPassword","useChangePassword","jsxs","Modal","jsx","SignInForm","SignUpForm","ResetPasswordForm","ChangePasswordForm"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiCO,MAAM,YAAgC,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA,OAAO,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,CAAC,OAAO,QAAQ,IAAIA,WAAAA,SAAoB,YAAY;AACpD,QAAA,EAAE,MAAM,IAAIC,gCAAS;AACrB,QAAA,EAAE,SAAS,IAAIC,mCAAY;AAC3B,QAAA,EAAE,iBAAiB,IAAIC,2CAAoB;AAC3C,QAAA,EAAE,eAAe,IAAIC,yCAAkB;AAE7C,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,MAAM;AAAA,IACV;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEH,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,SAAS;AAAA,IACb;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEG,QAAA,+BAA+B,OAAO,EAAE,YAC5C,MAAM,iBAAiB,KAAK,EAAE,KAAK,OAAO,aAAa;AACrD,QAAI,UAAU,MAAM;AACZ,YAAA,yBAAyB,SAAS,IAAI;AAAA,IAAA;AAAA,EAC9C,CACD;AAEH,QAAM,gCAAgC,OAAO;AAAA,IAC3C;AAAA,IACA;AAAA,EACF,MACE,MAAM,eAAe;AAAA,IACnB,aAAa;AAAA,IACb;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,0BAA0B,SAAS,IAAI;AAAA,IAAA;AAAA,EAC/C,CACD;AAGD,SAAAC,2BAAA,kBAAA,KAACC,uBAAM,OAAA,EAAA,SAAkB,QACtB,UAAA;AAAA,IAAA,UAAU,KACTC,2BAAA,kBAAA;AAAA,MAACC,sCAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,uBAAuB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAuB;AAAA,QAC7D,eAAe,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAChD;AAAA,IAED,UAAU,KACTD,2BAAA,kBAAA;AAAA,MAACE,sCAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,qBAAqB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACtD;AAAA,IAED,UAAU,KACTF,2BAAA,kBAAA;AAAA,MAACG,oDAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,oBAAoB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACrD;AAAA,IAED,UAAU,KACTH,2BAAA,kBAAA;AAAA,MAACI,sDAAA;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,mBAAmB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EACpD,GAEJ;AAEJ;;"}
@@ -10,9 +10,13 @@ import { Modal } from "../../Modal/Modal.mjs";
10
10
  import { ChangePasswordForm } from "../ChangePasswordForm/ChangePasswordForm.mjs";
11
11
  import "react-intlayer";
12
12
  import "zod";
13
+ import "../ChangePasswordForm/useChangePasswordSchema.content.mjs";
13
14
  import { ResetPasswordForm } from "../ResetPasswordForm/ResetPasswordForm.mjs";
15
+ import "../ResetPasswordForm/useResetPasswordSchema.content.mjs";
14
16
  import { SignInForm } from "../SignInForm/SignInForm.mjs";
17
+ import "../SignInForm/useSignInSchema.content.mjs";
15
18
  import { SignUpForm } from "../SignUpForm/SignUpForm.mjs";
19
+ import "../SignUpForm/useSignUpSchema.content.mjs";
16
20
  const AuthModal = ({
17
21
  onClose,
18
22
  isOpen,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../src/components/Auth/AuthModal/index.tsx"],"sourcesContent":["'use client';\n\nimport type { UserAPI } from '@intlayer/backend';\nimport { useState, type FC } from 'react';\nimport {\n useAskResetPassword,\n useChangePassword,\n useLogin,\n useRegister,\n} from '../../../hooks';\nimport { Modal } from '../../Modal/Modal';\nimport { type ChangePassword, ChangePasswordForm } from '../ChangePasswordForm';\nimport { type ResetPassword, ResetPasswordForm } from '../ResetPasswordForm';\nimport { type SignIn, SignInForm } from '../SignInForm';\nimport { type SignUp, SignUpForm } from '../SignUpForm';\n\nenum AuthState {\n SignIn,\n SignUp,\n ResetPassword,\n ChangePassword,\n}\n\ntype AuthModalProps = {\n onClose: () => void;\n isOpen: boolean;\n state?: AuthState.SignIn;\n onSignInSuccess?: (data: UserAPI) => Promise<void>;\n onSignUpSuccess?: (data: UserAPI) => Promise<void>;\n onResetPasswordSuccess?: (data: UserAPI) => Promise<void>;\n onChangePasswordSuccess?: (data: UserAPI) => Promise<void>;\n};\n\nexport const AuthModal: FC<AuthModalProps> = ({\n onClose,\n isOpen,\n state: initialState = AuthState.SignIn,\n onSignInSuccess,\n onSignUpSuccess,\n onResetPasswordSuccess,\n onChangePasswordSuccess,\n}) => {\n const [state, setState] = useState<AuthState>(initialState);\n const { login } = useLogin();\n const { register } = useRegister();\n const { askResetPassword } = useAskResetPassword();\n const { changePassword } = useChangePassword();\n\n const onSubmitSignInSuccess = async ({ email, password }: SignIn) =>\n await login({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignInSuccess?.(response.data);\n }\n });\n\n const onSubmitSignUpSuccess = async ({ email, password }: SignUp) =>\n await register({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignUpSuccess?.(response.data);\n }\n });\n\n const onSubmitResetPasswordSuccess = async ({ email }: ResetPassword) =>\n await askResetPassword(email).then(async (response) => {\n if (response?.data) {\n await onResetPasswordSuccess?.(response.data);\n }\n });\n\n const onSubmitChangePasswordSuccess = async ({\n currentPassword,\n newPassword,\n }: ChangePassword) =>\n await changePassword({\n oldPassword: currentPassword,\n newPassword,\n }).then(async (response) => {\n if (response?.data) {\n await onChangePasswordSuccess?.(response.data);\n }\n });\n\n return (\n <Modal onClose={onClose} isOpen={isOpen}>\n {state === AuthState.SignIn && (\n <SignInForm\n onSubmitSuccess={onSubmitSignInSuccess}\n onClickForgotPassword={() => setState(AuthState.ResetPassword)}\n onClickSignUp={() => setState(AuthState.SignUp)}\n />\n )}\n {state === AuthState.SignUp && (\n <SignUpForm\n onSubmitSuccess={onSubmitSignUpSuccess}\n onClickBackToSignIn={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ResetPassword && (\n <ResetPasswordForm\n onSubmitSuccess={onSubmitResetPasswordSuccess}\n onClickBackToLogin={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ChangePassword && (\n <ChangePasswordForm\n onSubmitSuccess={onSubmitChangePasswordSuccess}\n onClickBackToHome={() => setState(AuthState.SignIn)}\n />\n )}\n </Modal>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;AAiCO,MAAM,YAAgC,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA,OAAO,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAoB,YAAY;AACpD,QAAA,EAAE,MAAM,IAAI,SAAS;AACrB,QAAA,EAAE,SAAS,IAAI,YAAY;AAC3B,QAAA,EAAE,iBAAiB,IAAI,oBAAoB;AAC3C,QAAA,EAAE,eAAe,IAAI,kBAAkB;AAE7C,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,MAAM;AAAA,IACV;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEH,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,SAAS;AAAA,IACb;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEG,QAAA,+BAA+B,OAAO,EAAE,YAC5C,MAAM,iBAAiB,KAAK,EAAE,KAAK,OAAO,aAAa;AACrD,QAAI,UAAU,MAAM;AACZ,YAAA,yBAAyB,SAAS,IAAI;AAAA,IAAA;AAAA,EAC9C,CACD;AAEH,QAAM,gCAAgC,OAAO;AAAA,IAC3C;AAAA,IACA;AAAA,EACF,MACE,MAAM,eAAe;AAAA,IACnB,aAAa;AAAA,IACb;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,0BAA0B,SAAS,IAAI;AAAA,IAAA;AAAA,EAC/C,CACD;AAGD,SAAAA,kCAAA,KAAC,OAAM,EAAA,SAAkB,QACtB,UAAA;AAAA,IAAA,UAAU,KACTC,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,uBAAuB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAuB;AAAA,QAC7D,eAAe,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAChD;AAAA,IAED,UAAU,KACTA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,qBAAqB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACtD;AAAA,IAED,UAAU,KACTA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,oBAAoB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACrD;AAAA,IAED,UAAU,KACTA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,mBAAmB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EACpD,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../src/components/Auth/AuthModal/index.tsx"],"sourcesContent":["'use client';\n\nimport type { UserAPI } from '@intlayer/backend';\nimport { useState, type FC } from 'react';\nimport {\n useAskResetPassword,\n useChangePassword,\n useLogin,\n useRegister,\n} from '../../../hooks';\nimport { Modal } from '../../Modal/Modal';\nimport { type ChangePassword, ChangePasswordForm } from '../ChangePasswordForm';\nimport { type ResetPassword, ResetPasswordForm } from '../ResetPasswordForm';\nimport { type SignIn, SignInForm } from '../SignInForm';\nimport { type SignUp, SignUpForm } from '../SignUpForm';\n\nenum AuthState {\n SignIn,\n SignUp,\n ResetPassword,\n ChangePassword,\n}\n\ntype AuthModalProps = {\n onClose: () => void;\n isOpen: boolean;\n state?: AuthState.SignIn;\n onSignInSuccess?: (data: UserAPI) => Promise<void>;\n onSignUpSuccess?: (data: UserAPI) => Promise<void>;\n onResetPasswordSuccess?: (data: UserAPI) => Promise<void>;\n onChangePasswordSuccess?: (data: UserAPI) => Promise<void>;\n};\n\nexport const AuthModal: FC<AuthModalProps> = ({\n onClose,\n isOpen,\n state: initialState = AuthState.SignIn,\n onSignInSuccess,\n onSignUpSuccess,\n onResetPasswordSuccess,\n onChangePasswordSuccess,\n}) => {\n const [state, setState] = useState<AuthState>(initialState);\n const { login } = useLogin();\n const { register } = useRegister();\n const { askResetPassword } = useAskResetPassword();\n const { changePassword } = useChangePassword();\n\n const onSubmitSignInSuccess = async ({ email, password }: SignIn) =>\n await login({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignInSuccess?.(response.data);\n }\n });\n\n const onSubmitSignUpSuccess = async ({ email, password }: SignUp) =>\n await register({\n email,\n password,\n }).then(async (response) => {\n if (response?.data) {\n await onSignUpSuccess?.(response.data);\n }\n });\n\n const onSubmitResetPasswordSuccess = async ({ email }: ResetPassword) =>\n await askResetPassword(email).then(async (response) => {\n if (response?.data) {\n await onResetPasswordSuccess?.(response.data);\n }\n });\n\n const onSubmitChangePasswordSuccess = async ({\n currentPassword,\n newPassword,\n }: ChangePassword) =>\n await changePassword({\n oldPassword: currentPassword,\n newPassword,\n }).then(async (response) => {\n if (response?.data) {\n await onChangePasswordSuccess?.(response.data);\n }\n });\n\n return (\n <Modal onClose={onClose} isOpen={isOpen}>\n {state === AuthState.SignIn && (\n <SignInForm\n onSubmitSuccess={onSubmitSignInSuccess}\n onClickForgotPassword={() => setState(AuthState.ResetPassword)}\n onClickSignUp={() => setState(AuthState.SignUp)}\n />\n )}\n {state === AuthState.SignUp && (\n <SignUpForm\n onSubmitSuccess={onSubmitSignUpSuccess}\n onClickBackToSignIn={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ResetPassword && (\n <ResetPasswordForm\n onSubmitSuccess={onSubmitResetPasswordSuccess}\n onClickBackToLogin={() => setState(AuthState.SignIn)}\n />\n )}\n {state === AuthState.ChangePassword && (\n <ChangePasswordForm\n onSubmitSuccess={onSubmitChangePasswordSuccess}\n onClickBackToHome={() => setState(AuthState.SignIn)}\n />\n )}\n </Modal>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;AAiCO,MAAM,YAAgC,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA,OAAO,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAoB,YAAY;AACpD,QAAA,EAAE,MAAM,IAAI,SAAS;AACrB,QAAA,EAAE,SAAS,IAAI,YAAY;AAC3B,QAAA,EAAE,iBAAiB,IAAI,oBAAoB;AAC3C,QAAA,EAAE,eAAe,IAAI,kBAAkB;AAE7C,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,MAAM;AAAA,IACV;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEH,QAAM,wBAAwB,OAAO,EAAE,OAAO,SAAS,MACrD,MAAM,SAAS;AAAA,IACb;AAAA,IACA;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,kBAAkB,SAAS,IAAI;AAAA,IAAA;AAAA,EACvC,CACD;AAEG,QAAA,+BAA+B,OAAO,EAAE,YAC5C,MAAM,iBAAiB,KAAK,EAAE,KAAK,OAAO,aAAa;AACrD,QAAI,UAAU,MAAM;AACZ,YAAA,yBAAyB,SAAS,IAAI;AAAA,IAAA;AAAA,EAC9C,CACD;AAEH,QAAM,gCAAgC,OAAO;AAAA,IAC3C;AAAA,IACA;AAAA,EACF,MACE,MAAM,eAAe;AAAA,IACnB,aAAa;AAAA,IACb;AAAA,EAAA,CACD,EAAE,KAAK,OAAO,aAAa;AAC1B,QAAI,UAAU,MAAM;AACZ,YAAA,0BAA0B,SAAS,IAAI;AAAA,IAAA;AAAA,EAC/C,CACD;AAGD,SAAAA,kCAAA,KAAC,OAAM,EAAA,SAAkB,QACtB,UAAA;AAAA,IAAA,UAAU,KACTC,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,uBAAuB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAuB;AAAA,QAC7D,eAAe,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAChD;AAAA,IAED,UAAU,KACTA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,qBAAqB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACtD;AAAA,IAED,UAAU,KACTA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,oBAAoB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IACrD;AAAA,IAED,UAAU,KACTA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,iBAAiB;AAAA,QACjB,mBAAmB,MAAM;AAAA,UAAS;AAAA;AAAA,QAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EACpD,GAEJ;AAEJ;"}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("../../../jsx-runtime-XHKiWCTo.cjs");
4
+ const reactIntlayer = require("react-intlayer");
4
5
  const components_Form_FormBase = require("../../Form/FormBase.cjs");
5
6
  require("../../Form/FormField.cjs");
6
7
  const components_Form_layout_FormItemLayout = require("../../../Form-BDcoNTLV.cjs");
7
8
  const components_Auth_useUser_index = require("../useUser/index.cjs");
8
- const components_Auth_ChangePasswordForm_ChangePasswordSchema = require("./ChangePasswordSchema.cjs");
9
- const components_Auth_ChangePasswordForm_index_content = require("./index.content.cjs");
9
+ const components_Auth_ChangePasswordForm_changePasswordForm_content = require("./changePasswordForm.content.cjs");
10
+ const components_Auth_ChangePasswordForm_useChangePasswordSchema = require("./useChangePasswordSchema.cjs");
10
11
  const ChangePasswordForm = ({
11
12
  onSubmitSuccess,
12
13
  onSubmitError,
@@ -18,9 +19,9 @@ const ChangePasswordForm = ({
18
19
  confirmPasswordInput,
19
20
  changePasswordButton,
20
21
  backToHomeButton
21
- } = components_Auth_ChangePasswordForm_index_content.getChangePasswordContent();
22
+ } = reactIntlayer.useDictionary(components_Auth_ChangePasswordForm_changePasswordForm_content.changePasswordContent);
22
23
  const { user } = components_Auth_useUser_index.useUser();
23
- const ChangePasswordSchema = components_Auth_ChangePasswordForm_ChangePasswordSchema.getChangePasswordSchema();
24
+ const ChangePasswordSchema = components_Auth_ChangePasswordForm_useChangePasswordSchema.useChangePasswordSchema();
24
25
  const { form, isSubmitting, isSubmitted, isValid } = components_Form_FormBase.useForm(ChangePasswordSchema);
25
26
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
26
27
  components_Form_layout_FormItemLayout.Form,
@@ -1 +1 @@
1
- {"version":3,"file":"ChangePasswordForm.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Form, useForm } from '../../Form';\nimport { useUser } from '../useUser';\nimport {\n getChangePasswordSchema,\n type ChangePassword,\n} from './ChangePasswordSchema';\nimport { getChangePasswordContent } from './index.content';\n\ntype ChangePasswordFormProps = {\n onSubmitSuccess: (data: ChangePassword) => Promise<void>;\n onClickBackToHome: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ChangePasswordForm: FC<ChangePasswordFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToHome,\n}) => {\n const {\n currentPasswordInput,\n newPasswordInput,\n confirmPasswordInput,\n changePasswordButton,\n backToHomeButton,\n } = getChangePasswordContent();\n const { user } = useUser();\n const ChangePasswordSchema = getChangePasswordSchema();\n\n const { form, isSubmitting, isSubmitted, isValid } =\n useForm(ChangePasswordSchema);\n\n return (\n <Form\n schema={ChangePasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n className=\"gap-y-0\"\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.Input\n type=\"text\"\n name=\"email\"\n value={user?.email ?? ''}\n autoComplete=\"username email\"\n disabled\n hidden\n className=\"hidden\"\n />\n <Form.InputPassword\n name=\"currentPassword\"\n label={currentPasswordInput.label}\n placeholder={currentPasswordInput.placeholder}\n autoComplete=\"current-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPassword\"\n label={newPasswordInput.label}\n placeholder={newPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPasswordConfirmation\"\n label={confirmPasswordInput.label}\n placeholder={confirmPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n </div>\n\n <Form.Button\n className=\"mt-12 w-full\"\n type=\"submit\"\n color=\"text\"\n isLoading={isSubmitting}\n disabled={!isValid}\n variant={isSubmitted ? 'outline' : 'default'}\n label={changePasswordButton.ariaLabel}\n >\n {changePasswordButton.text}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToHomeButton.ariaLabel}\n onClick={onClickBackToHome}\n >\n {backToHomeButton.text}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["getChangePasswordContent","useUser","getChangePasswordSchema","useForm","jsxs","Form","jsx"],"mappings":";;;;;;;;;AAeO,MAAM,qBAAkD,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACEA,0EAAyB;AACvB,QAAA,EAAE,KAAK,IAAIC,sCAAQ;AACzB,QAAM,uBAAuBC,wDAAAA,wBAAwB;AAErD,QAAM,EAAE,MAAM,cAAc,aAAa,QAAQ,IAC/CC,iCAAQ,oBAAoB;AAG5B,SAAAC,2BAAA,kBAAA;AAAA,IAACC,sCAAA;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACZ,WAAU;AAAA,MACT,GAAG;AAAA,MAEJ,UAAA;AAAA,QAACD,2BAAAA,kBAAAA,KAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,UAAAE,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,MAAK;AAAA,cACL,OAAO,MAAM,SAAS;AAAA,cACtB,cAAa;AAAA,cACb,UAAQ;AAAA,cACR,QAAM;AAAA,cACN,WAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,iBAAiB;AAAA,cACxB,aAAa,iBAAiB;AAAA,cAC9B,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACZ,GACF;AAAA,QAEAC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,OAAM;AAAA,YACN,WAAW;AAAA,YACX,UAAU,CAAC;AAAA,YACX,SAAS,cAAc,YAAY;AAAA,YACnC,OAAO,qBAAqB;AAAA,YAE3B,UAAqB,qBAAA;AAAA,UAAA;AAAA,QACxB;AAAA,QACC,eACCC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,OAAO,iBAAiB;AAAA,YACxB,SAAS;AAAA,YAER,UAAiB,iBAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACpB;AAAA,IAAA;AAAA,EAEJ;AAEJ;;"}
1
+ {"version":3,"file":"ChangePasswordForm.cjs","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"sourcesContent":["import type { FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport { useUser } from '../useUser';\nimport { changePasswordContent } from './changePasswordForm.content';\nimport {\n useChangePasswordSchema,\n type ChangePassword,\n} from './useChangePasswordSchema';\n\ntype ChangePasswordFormProps = {\n onSubmitSuccess: (data: ChangePassword) => Promise<void>;\n onClickBackToHome: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ChangePasswordForm: FC<ChangePasswordFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToHome,\n}) => {\n const {\n currentPasswordInput,\n newPasswordInput,\n confirmPasswordInput,\n changePasswordButton,\n backToHomeButton,\n } = useDictionary(changePasswordContent);\n const { user } = useUser();\n const ChangePasswordSchema = useChangePasswordSchema();\n\n const { form, isSubmitting, isSubmitted, isValid } =\n useForm(ChangePasswordSchema);\n\n return (\n <Form\n schema={ChangePasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n className=\"gap-y-0\"\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.Input\n type=\"text\"\n name=\"email\"\n value={user?.email ?? ''}\n autoComplete=\"username email\"\n disabled\n hidden\n className=\"hidden\"\n />\n <Form.InputPassword\n name=\"currentPassword\"\n label={currentPasswordInput.label}\n placeholder={currentPasswordInput.placeholder}\n autoComplete=\"current-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPassword\"\n label={newPasswordInput.label}\n placeholder={newPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n <Form.InputPassword\n name=\"newPasswordConfirmation\"\n label={confirmPasswordInput.label}\n placeholder={confirmPasswordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n </div>\n\n <Form.Button\n className=\"mt-12 w-full\"\n type=\"submit\"\n color=\"text\"\n isLoading={isSubmitting}\n disabled={!isValid}\n variant={isSubmitted ? 'outline' : 'default'}\n label={changePasswordButton.ariaLabel}\n >\n {changePasswordButton.text}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToHomeButton.ariaLabel}\n onClick={onClickBackToHome}\n >\n {backToHomeButton.text}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["useDictionary","changePasswordContent","useUser","useChangePasswordSchema","useForm","jsxs","Form","jsx"],"mappings":";;;;;;;;;;AAiBO,MAAM,qBAAkD,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEA,cAAAA,cAAcC,8DAAAA,qBAAqB;AACjC,QAAA,EAAE,KAAK,IAAIC,sCAAQ;AACzB,QAAM,uBAAuBC,2DAAAA,wBAAwB;AAErD,QAAM,EAAE,MAAM,cAAc,aAAa,QAAQ,IAC/CC,iCAAQ,oBAAoB;AAG5B,SAAAC,2BAAA,kBAAA;AAAA,IAACC,sCAAA;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACZ,WAAU;AAAA,MACT,GAAG;AAAA,MAEJ,UAAA;AAAA,QAACD,2BAAAA,kBAAAA,KAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,UAAAE,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,MAAK;AAAA,cACL,OAAO,MAAM,SAAS;AAAA,cACtB,cAAa;AAAA,cACb,UAAQ;AAAA,cACR,QAAM;AAAA,cACN,WAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,iBAAiB;AAAA,cACxB,aAAa,iBAAiB;AAAA,cAC9B,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UACAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,qBAAqB;AAAA,cAC5B,aAAa,qBAAqB;AAAA,cAClC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACZ,GACF;AAAA,QAEAC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,OAAM;AAAA,YACN,WAAW;AAAA,YACX,UAAU,CAAC;AAAA,YACX,SAAS,cAAc,YAAY;AAAA,YACnC,OAAO,qBAAqB;AAAA,YAE3B,UAAqB,qBAAA;AAAA,UAAA;AAAA,QACxB;AAAA,QACC,eACCC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,OAAO,iBAAiB;AAAA,YACxB,SAAS;AAAA,YAER,UAAiB,iBAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACpB;AAAA,IAAA;AAAA,EAEJ;AAEJ;;"}
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { ChangePassword } from './ChangePasswordSchema';
2
+ import { ChangePassword } from './useChangePasswordSchema';
3
3
  type ChangePasswordFormProps = {
4
4
  onSubmitSuccess: (data: ChangePassword) => Promise<void>;
5
5
  onClickBackToHome: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ChangePasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAGhC,KAAK,uBAAuB,GAAG;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAkF1D,CAAC"}
1
+ {"version":3,"file":"ChangePasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ChangePasswordForm/ChangePasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAC;AAEnC,KAAK,uBAAuB,GAAG;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAkF1D,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import { j as jsxRuntimeExports } from "../../../jsx-runtime-DaNGiM0W.js";
2
+ import { useDictionary } from "react-intlayer";
2
3
  import { useForm } from "../../Form/FormBase.mjs";
3
4
  import "../../Form/FormField.mjs";
4
5
  import { F as Form } from "../../../Form-DhsgC7kB.js";
5
6
  import { useUser } from "../useUser/index.mjs";
6
- import { getChangePasswordSchema } from "./ChangePasswordSchema.mjs";
7
- import { getChangePasswordContent } from "./index.content.mjs";
7
+ import { changePasswordContent } from "./changePasswordForm.content.mjs";
8
+ import { useChangePasswordSchema } from "./useChangePasswordSchema.mjs";
8
9
  const ChangePasswordForm = ({
9
10
  onSubmitSuccess,
10
11
  onSubmitError,
@@ -16,9 +17,9 @@ const ChangePasswordForm = ({
16
17
  confirmPasswordInput,
17
18
  changePasswordButton,
18
19
  backToHomeButton
19
- } = getChangePasswordContent();
20
+ } = useDictionary(changePasswordContent);
20
21
  const { user } = useUser();
21
- const ChangePasswordSchema = getChangePasswordSchema();
22
+ const ChangePasswordSchema = useChangePasswordSchema();
22
23
  const { form, isSubmitting, isSubmitted, isValid } = useForm(ChangePasswordSchema);
23
24
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
24
25
  Form,