@intlayer/design-system 5.0.1 → 5.0.3

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 (190) hide show
  1. package/dist/.vite/manifest.json +10 -10
  2. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +10 -10
  3. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  4. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
  5. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +10 -10
  6. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  7. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts +150 -10
  8. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts.map +1 -1
  9. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs.map +1 -1
  10. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts +120 -8
  11. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts.map +1 -1
  12. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts.map +1 -1
  13. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs.map +1 -1
  14. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +3 -3
  15. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  16. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
  17. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +3 -3
  18. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  19. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +75 -5
  20. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +1 -1
  21. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +6 -6
  22. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  23. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
  24. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +6 -6
  25. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  26. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts +105 -7
  27. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts.map +1 -1
  28. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs.map +1 -1
  29. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts +45 -3
  30. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts.map +1 -1
  31. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts.map +1 -1
  32. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs.map +1 -1
  33. package/dist/components/Auth/SignInForm/SignInForm.cjs +7 -7
  34. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  35. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
  36. package/dist/components/Auth/SignInForm/SignInForm.mjs +7 -7
  37. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  38. package/dist/components/Auth/SignInForm/signIn.content.d.ts +195 -13
  39. package/dist/components/Auth/SignInForm/signIn.content.d.ts.map +1 -1
  40. package/dist/components/Auth/SignInForm/useSignInSchema.cjs.map +1 -1
  41. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts +60 -4
  42. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts.map +1 -1
  43. package/dist/components/Auth/SignInForm/useSignInSchema.d.ts.map +1 -1
  44. package/dist/components/Auth/SignInForm/useSignInSchema.mjs.map +1 -1
  45. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +8 -8
  46. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  47. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
  48. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +8 -8
  49. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  50. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts +165 -11
  51. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts.map +1 -1
  52. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs.map +1 -1
  53. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts +105 -7
  54. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts.map +1 -1
  55. package/dist/components/Auth/SignUpForm/useSignUpSchema.d.ts.map +1 -1
  56. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs.map +1 -1
  57. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs +1 -1
  58. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs.map +1 -1
  59. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts.map +1 -1
  60. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs +1 -1
  61. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs.map +1 -1
  62. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts +60 -4
  63. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts.map +1 -1
  64. package/dist/components/Breadcrumb/breadcrumb.content.d.ts +15 -1
  65. package/dist/components/Breadcrumb/breadcrumb.content.d.ts.map +1 -1
  66. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  67. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  68. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  69. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +4 -4
  70. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  71. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  72. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +4 -4
  73. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  74. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +114 -8
  75. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -1
  76. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  77. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  78. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  79. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts +30 -2
  80. package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts.map +1 -1
  81. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +6 -6
  82. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  83. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
  84. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +6 -6
  85. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  86. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +195 -13
  87. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  88. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -1
  89. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +60 -4
  90. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -1
  91. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts.map +1 -1
  92. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -1
  93. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +22 -17
  94. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  95. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  96. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +22 -17
  97. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  98. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +387 -26
  99. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  100. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -1
  101. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +180 -12
  102. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
  103. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -1
  104. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
  105. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  106. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  107. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  108. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +3 -3
  109. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  110. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
  111. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +3 -3
  112. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  113. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +2 -2
  114. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
  115. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -1
  116. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +2 -2
  117. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
  118. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +2 -2
  119. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  120. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
  121. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
  122. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  123. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +165 -11
  124. package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
  125. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +10 -4
  126. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
  127. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
  128. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +10 -4
  129. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
  130. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +6 -6
  131. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  132. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  133. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +6 -6
  134. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  135. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +150 -10
  136. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  137. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +2 -2
  138. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
  139. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.d.ts.map +1 -1
  140. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +2 -2
  141. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
  142. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -1
  143. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts.map +1 -1
  144. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -1
  145. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +45 -3
  146. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts.map +1 -1
  147. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +60 -4
  148. package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
  149. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts +105 -7
  150. package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -1
  151. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +59 -14
  152. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
  153. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +135 -6
  154. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
  155. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +59 -14
  156. package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
  157. package/dist/components/IDE/CopyButton.cjs +1 -1
  158. package/dist/components/IDE/CopyButton.cjs.map +1 -1
  159. package/dist/components/IDE/CopyButton.content.d.ts +15 -1
  160. package/dist/components/IDE/CopyButton.content.d.ts.map +1 -1
  161. package/dist/components/IDE/CopyButton.d.ts.map +1 -1
  162. package/dist/components/IDE/CopyButton.mjs +1 -1
  163. package/dist/components/IDE/CopyButton.mjs.map +1 -1
  164. package/dist/components/Loader/index.content.d.ts +12 -1
  165. package/dist/components/Loader/index.content.d.ts.map +1 -1
  166. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +5 -5
  167. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
  168. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.d.ts.map +1 -1
  169. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +5 -5
  170. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
  171. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -1
  172. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.d.ts +6 -6
  173. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.d.ts.map +1 -1
  174. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -1
  175. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +105 -7
  176. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts.map +1 -1
  177. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +3 -3
  178. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
  179. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
  180. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +3 -3
  181. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
  182. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +75 -5
  183. package/dist/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts.map +1 -1
  184. package/dist/{index-Di_3dNqI.js → index-BVYRWLUL.js} +3 -2
  185. package/dist/index-BVYRWLUL.js.map +1 -0
  186. package/dist/{index-ZARcTrR0.cjs → index-DTQyeqio.cjs} +3 -2
  187. package/dist/index-DTQyeqio.cjs.map +1 -0
  188. package/package.json +19 -19
  189. package/dist/index-Di_3dNqI.js.map +0 -1
  190. package/dist/index-ZARcTrR0.cjs.map +0 -1
@@ -38,8 +38,8 @@ const SignInForm = ({
38
38
  Form.Input,
39
39
  {
40
40
  name: "email",
41
- label: emailInput.label,
42
- placeholder: emailInput.placeholder,
41
+ label: emailInput.label.value,
42
+ placeholder: emailInput.placeholder.value,
43
43
  isRequired: true,
44
44
  autoComplete: "email"
45
45
  }
@@ -48,8 +48,8 @@ const SignInForm = ({
48
48
  Form.InputPassword,
49
49
  {
50
50
  name: "password",
51
- label: passwordInput.label,
52
- placeholder: passwordInput.placeholder,
51
+ label: passwordInput.label.value,
52
+ placeholder: passwordInput.placeholder.value,
53
53
  isRequired: true,
54
54
  autoComplete: "current-password"
55
55
  }
@@ -60,7 +60,7 @@ const SignInForm = ({
60
60
  {
61
61
  className: "ml-auto mt-2 block",
62
62
  variant: "link",
63
- label: forgotPasswordLink.ariaLabel,
63
+ label: forgotPasswordLink.ariaLabel.value,
64
64
  color: "text",
65
65
  size: "sm",
66
66
  onClick: onClickForgotPassword,
@@ -74,7 +74,7 @@ const SignInForm = ({
74
74
  type: "submit",
75
75
  color: "text",
76
76
  isLoading: isSubmitting,
77
- label: loginButton.ariaLabel,
77
+ label: loginButton.ariaLabel.value,
78
78
  children: loginButton.text
79
79
  }
80
80
  ),
@@ -84,7 +84,7 @@ const SignInForm = ({
84
84
  Form.Button,
85
85
  {
86
86
  variant: "link",
87
- label: signUpLink.ariaLabel,
87
+ label: signUpLink.ariaLabel.value,
88
88
  color: "text",
89
89
  size: "sm",
90
90
  onClick: onClickSignUp,
@@ -1 +1 @@
1
- {"version":3,"file":"SignInForm.mjs","sources":["../../../../src/components/Auth/SignInForm/SignInForm.tsx"],"sourcesContent":["'use client';\n\nimport type { FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport { ExternalsLoginButtons } from '../ExternalsLoginButtons';\nimport { signInContent } from './signIn.content';\nimport { useSignInSchema, type SignIn } from './useSignInSchema';\n\ntype SignInFormProps = {\n onSubmitSuccess: (data: SignIn) => Promise<void>;\n onClickForgotPassword: () => void;\n onClickSignUp: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const SignInForm: FC<SignInFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickForgotPassword,\n onClickSignUp,\n}) => {\n const SignInSchema = useSignInSchema();\n const { form, isSubmitting } = useForm(SignInSchema);\n const {\n emailInput,\n passwordInput,\n forgotPasswordLink,\n loginButton,\n signUpLink,\n } = useDictionary(signInContent);\n\n return (\n <>\n <Form\n schema={SignInSchema}\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 name=\"email\"\n label={emailInput.label}\n placeholder={emailInput.placeholder}\n isRequired\n autoComplete=\"email\"\n />\n\n <Form.InputPassword\n name=\"password\"\n label={passwordInput.label}\n placeholder={passwordInput.placeholder}\n isRequired\n autoComplete=\"current-password\"\n />\n </div>\n\n <Form.Button\n className=\"ml-auto mt-2 block\"\n variant=\"link\"\n label={forgotPasswordLink.ariaLabel}\n color=\"text\"\n size=\"sm\"\n onClick={onClickForgotPassword}\n >\n {forgotPasswordLink.text}\n </Form.Button>\n\n <Form.Button\n className=\"mt-12 w-full\"\n type=\"submit\"\n color=\"text\"\n isLoading={isSubmitting}\n label={loginButton.ariaLabel}\n >\n {loginButton.text}\n </Form.Button>\n\n <span className=\"text-neutral dark:text-neutral-dark m-auto mt-3 flex w-full items-center justify-center text-xs\">\n {signUpLink.message}\n <Form.Button\n variant=\"link\"\n label={signUpLink.ariaLabel}\n color=\"text\"\n size=\"sm\"\n onClick={onClickSignUp}\n >\n {signUpLink.text}\n </Form.Button>\n </span>\n </Form>\n <ExternalsLoginButtons />\n </>\n );\n};\n"],"names":["jsxs","Fragment","jsx"],"mappings":";;;;;;;;;AAiBO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,eAAe,gBAAgB;AACrC,QAAM,EAAE,MAAM,iBAAiB,QAAQ,YAAY;AAC7C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,aAAa;AAE/B,SAEIA,kCAAA,KAAAC,4BAAA,EAAA,UAAA;AAAA,IAAAD,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR;AAAA,QACA;AAAA,QACA,cAAY;AAAA,QACZ,WAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAA;AAAA,UAACA,kCAAAA,KAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,YAAAE,kCAAA;AAAA,cAAC,KAAK;AAAA,cAAL;AAAA,gBACC,MAAK;AAAA,gBACL,OAAO,WAAW;AAAA,gBAClB,aAAa,WAAW;AAAA,gBACxB,YAAU;AAAA,gBACV,cAAa;AAAA,cAAA;AAAA,YACf;AAAA,YAEAA,kCAAA;AAAA,cAAC,KAAK;AAAA,cAAL;AAAA,gBACC,MAAK;AAAA,gBACL,OAAO,cAAc;AAAA,gBACrB,aAAa,cAAc;AAAA,gBAC3B,YAAU;AAAA,gBACV,cAAa;AAAA,cAAA;AAAA,YAAA;AAAA,UACf,GACF;AAAA,UAEAA,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,WAAU;AAAA,cACV,SAAQ;AAAA,cACR,OAAO,mBAAmB;AAAA,cAC1B,OAAM;AAAA,cACN,MAAK;AAAA,cACL,SAAS;AAAA,cAER,UAAmB,mBAAA;AAAA,YAAA;AAAA,UACtB;AAAA,UAEAA,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,WAAU;AAAA,cACV,MAAK;AAAA,cACL,OAAM;AAAA,cACN,WAAW;AAAA,cACX,OAAO,YAAY;AAAA,cAElB,UAAY,YAAA;AAAA,YAAA;AAAA,UACf;AAAA,UAEAF,kCAAAA,KAAC,QAAK,EAAA,WAAU,mGACb,UAAA;AAAA,YAAW,WAAA;AAAA,YACZE,kCAAA;AAAA,cAAC,KAAK;AAAA,cAAL;AAAA,gBACC,SAAQ;AAAA,gBACR,OAAO,WAAW;AAAA,gBAClB,OAAM;AAAA,gBACN,MAAK;AAAA,gBACL,SAAS;AAAA,gBAER,UAAW,WAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACd,EACF,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,0CACC,uBAAsB,CAAA,CAAA;AAAA,EAAA,GACzB;AAEJ;"}
1
+ {"version":3,"file":"SignInForm.mjs","sources":["../../../../src/components/Auth/SignInForm/SignInForm.tsx"],"sourcesContent":["'use client';\n\nimport type { FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport { ExternalsLoginButtons } from '../ExternalsLoginButtons';\nimport { signInContent } from './signIn.content';\nimport { useSignInSchema, type SignIn } from './useSignInSchema';\n\ntype SignInFormProps = {\n onSubmitSuccess: (data: SignIn) => Promise<void>;\n onClickForgotPassword: () => void;\n onClickSignUp: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const SignInForm: FC<SignInFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickForgotPassword,\n onClickSignUp,\n}) => {\n const SignInSchema = useSignInSchema();\n const { form, isSubmitting } = useForm(SignInSchema);\n const {\n emailInput,\n passwordInput,\n forgotPasswordLink,\n loginButton,\n signUpLink,\n } = useDictionary(signInContent);\n\n return (\n <>\n <Form\n schema={SignInSchema}\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 name=\"email\"\n label={emailInput.label.value}\n placeholder={emailInput.placeholder.value}\n isRequired\n autoComplete=\"email\"\n />\n\n <Form.InputPassword\n name=\"password\"\n label={passwordInput.label.value}\n placeholder={passwordInput.placeholder.value}\n isRequired\n autoComplete=\"current-password\"\n />\n </div>\n\n <Form.Button\n className=\"ml-auto mt-2 block\"\n variant=\"link\"\n label={forgotPasswordLink.ariaLabel.value}\n color=\"text\"\n size=\"sm\"\n onClick={onClickForgotPassword}\n >\n {forgotPasswordLink.text}\n </Form.Button>\n\n <Form.Button\n className=\"mt-12 w-full\"\n type=\"submit\"\n color=\"text\"\n isLoading={isSubmitting}\n label={loginButton.ariaLabel.value}\n >\n {loginButton.text}\n </Form.Button>\n\n <span className=\"text-neutral dark:text-neutral-dark m-auto mt-3 flex w-full items-center justify-center text-xs\">\n {signUpLink.message}\n <Form.Button\n variant=\"link\"\n label={signUpLink.ariaLabel.value}\n color=\"text\"\n size=\"sm\"\n onClick={onClickSignUp}\n >\n {signUpLink.text}\n </Form.Button>\n </span>\n </Form>\n <ExternalsLoginButtons />\n </>\n );\n};\n"],"names":["jsxs","Fragment","jsx"],"mappings":";;;;;;;;;AAgBO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,eAAe,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AF,kCAAAA,KAAC,QAAK,EAAA,WAAU,mGACb,UAAA;AAAA,YAAW,WAAA;AAAA,YACZE,kCAAA;AAAA,cAAC,KAAK;AAAA,cAAL;AAAA,gBACC,SAAQ;AAAA,gBACR,OAAO,WAAW,UAAU;AAAA,gBAC5B,OAAM;AAAA,gBACN,MAAK;AAAA,gBACL,SAAS;AAAA,gBAER,UAAW,WAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACd,EACF,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,0CACC,uBAAsB,CAAA,CAAA;AAAA,EAAA,GACzB;AAEJ;"}
@@ -2,29 +2,211 @@ export declare const signInContent: {
2
2
  key: string;
3
3
  content: {
4
4
  forgotPasswordLink: {
5
- ariaLabel: import('@intlayer/core').TranslationContent<string>;
6
- text: import('@intlayer/core').TranslationContent<string>;
5
+ ariaLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
6
+ en: string;
7
+ 'en-GB': string;
8
+ fr: string;
9
+ es: string;
10
+ de: string;
11
+ ja: string;
12
+ ko: string;
13
+ zh: string;
14
+ it: string;
15
+ pt: string;
16
+ hi: string;
17
+ ar: string;
18
+ ru: string;
19
+ }>;
20
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
21
+ en: string;
22
+ 'en-GB': string;
23
+ fr: string;
24
+ es: string;
25
+ de: string;
26
+ ja: string;
27
+ ko: string;
28
+ zh: string;
29
+ it: string;
30
+ pt: string;
31
+ hi: string;
32
+ ar: string;
33
+ ru: string;
34
+ }>;
7
35
  };
8
36
  emailInput: {
9
- label: import('@intlayer/core').TranslationContent<string>;
10
- placeholder: import('@intlayer/core').TranslationContent<string>;
37
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
38
+ en: string;
39
+ 'en-GB': string;
40
+ fr: string;
41
+ es: string;
42
+ de: string;
43
+ ja: string;
44
+ ko: string;
45
+ zh: string;
46
+ it: string;
47
+ pt: string;
48
+ hi: string;
49
+ ar: string;
50
+ ru: string;
51
+ }>;
52
+ placeholder: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
53
+ en: string;
54
+ 'en-GB': string;
55
+ fr: string;
56
+ es: string;
57
+ de: string;
58
+ ja: string;
59
+ ko: string;
60
+ zh: string;
61
+ it: string;
62
+ pt: string;
63
+ hi: string;
64
+ ar: string;
65
+ ru: string;
66
+ }>;
11
67
  };
12
68
  passwordInput: {
13
- label: import('@intlayer/core').TranslationContent<string>;
14
- placeholder: import('@intlayer/core').TranslationContent<string>;
69
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
70
+ en: string;
71
+ 'en-GB': string;
72
+ fr: string;
73
+ es: string;
74
+ de: string;
75
+ ja: string;
76
+ ko: string;
77
+ zh: string;
78
+ it: string;
79
+ pt: string;
80
+ hi: string;
81
+ ar: string;
82
+ ru: string;
83
+ }>;
84
+ placeholder: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
85
+ en: string;
86
+ 'en-GB': string;
87
+ fr: string;
88
+ es: string;
89
+ de: string;
90
+ ja: string;
91
+ ko: string;
92
+ zh: string;
93
+ it: string;
94
+ pt: string;
95
+ hi: string;
96
+ ar: string;
97
+ ru: string;
98
+ }>;
15
99
  };
16
100
  loginButton: {
17
- text: import('@intlayer/core').TranslationContent<string>;
18
- ariaLabel: import('@intlayer/core').TranslationContent<string>;
101
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
102
+ en: string;
103
+ 'en-GB': string;
104
+ fr: string;
105
+ es: string;
106
+ de: string;
107
+ ja: string;
108
+ ko: string;
109
+ zh: string;
110
+ it: string;
111
+ pt: string;
112
+ hi: string;
113
+ ar: string;
114
+ ru: string;
115
+ }>;
116
+ ariaLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
117
+ en: string;
118
+ 'en-GB': string;
119
+ fr: string;
120
+ es: string;
121
+ de: string;
122
+ ja: string;
123
+ ko: string;
124
+ zh: string;
125
+ it: string;
126
+ pt: string;
127
+ hi: string;
128
+ ar: string;
129
+ ru: string;
130
+ }>;
19
131
  };
20
132
  signInButton: {
21
- text: import('@intlayer/core').TranslationContent<string>;
22
- ariaLabel: import('@intlayer/core').TranslationContent<string>;
133
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
134
+ en: string;
135
+ 'en-GB': string;
136
+ fr: string;
137
+ es: string;
138
+ de: string;
139
+ ja: string;
140
+ ko: string;
141
+ zh: string;
142
+ it: string;
143
+ pt: string;
144
+ hi: string;
145
+ ar: string;
146
+ ru: string;
147
+ }>;
148
+ ariaLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
149
+ en: string;
150
+ 'en-GB': string;
151
+ fr: string;
152
+ es: string;
153
+ de: string;
154
+ ja: string;
155
+ ko: string;
156
+ zh: string;
157
+ it: string;
158
+ pt: string;
159
+ hi: string;
160
+ ar: string;
161
+ ru: string;
162
+ }>;
23
163
  };
24
164
  signUpLink: {
25
- message: import('@intlayer/core').TranslationContent<string>;
26
- ariaLabel: import('@intlayer/core').TranslationContent<string>;
27
- text: import('@intlayer/core').TranslationContent<string>;
165
+ message: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
166
+ en: string;
167
+ 'en-GB': string;
168
+ fr: string;
169
+ es: string;
170
+ de: string;
171
+ ja: string;
172
+ ko: string;
173
+ zh: string;
174
+ it: string;
175
+ pt: string;
176
+ hi: string;
177
+ ar: string;
178
+ ru: string;
179
+ }>;
180
+ ariaLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
181
+ en: string;
182
+ 'en-GB': string;
183
+ fr: string;
184
+ es: string;
185
+ de: string;
186
+ ja: string;
187
+ ko: string;
188
+ zh: string;
189
+ it: string;
190
+ pt: string;
191
+ hi: string;
192
+ ar: string;
193
+ ru: string;
194
+ }>;
195
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
196
+ en: string;
197
+ 'en-GB': string;
198
+ fr: string;
199
+ es: string;
200
+ de: string;
201
+ ja: string;
202
+ ko: string;
203
+ zh: string;
204
+ it: string;
205
+ pt: string;
206
+ hi: string;
207
+ ar: string;
208
+ ru: string;
209
+ }>;
28
210
  };
29
211
  };
30
212
  };
@@ -1 +1 @@
1
- {"version":3,"file":"signIn.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/signIn.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmNJ,CAAC"}
1
+ {"version":3,"file":"signIn.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/signIn.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmNJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSignInSchema.cjs","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { signInSchemaContent } from './useSignInSchema.content';\n\nexport const useSignInSchema = () => {\n const {\n requiredErrorEmail,\n invalidTypeErrorEmail,\n requiredErrorPassword,\n invalidTypeErrorPassword,\n } = useDictionary(signInSchemaContent);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidTypeErrorEmail })\n .default(''),\n password: z\n .string({\n required_error: requiredErrorPassword,\n invalid_type_error: invalidTypeErrorPassword,\n })\n .min(1, { message: invalidTypeErrorPassword })\n .default(''),\n });\n};\nexport type SignIn = z.infer<ReturnType<typeof useSignInSchema>>;\n"],"names":["useDictionary","signInSchemaContent","z"],"mappings":";;;;;AAKO,MAAM,kBAAkB,MAAM;AAC7B,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEA,cAAAA,cAAcC,mDAAAA,mBAAmB;AAErC,SAAOC,IAAAA,EAAE,OAAO;AAAA,IACd,OAAOA,MACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,uBAAuB,EACzC,QAAQ,EAAE;AAAA,IACb,UAAUA,MACP,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,yBAA0B,CAAA,EAC5C,QAAQ,EAAE;AAAA,EAAA,CACd;AACH;;"}
1
+ {"version":3,"file":"useSignInSchema.cjs","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.ts"],"sourcesContent":["import { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { signInSchemaContent } from './useSignInSchema.content';\n\nexport const useSignInSchema = () => {\n const {\n requiredErrorEmail,\n invalidTypeErrorEmail,\n requiredErrorPassword,\n invalidTypeErrorPassword,\n } = useDictionary(signInSchemaContent);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidTypeErrorEmail })\n .default(''),\n password: z\n .string({\n required_error: requiredErrorPassword,\n invalid_type_error: invalidTypeErrorPassword,\n })\n .min(1, { message: invalidTypeErrorPassword })\n .default(''),\n });\n};\nexport type SignIn = z.infer<ReturnType<typeof useSignInSchema>>;\n"],"names":["useDictionary","signInSchemaContent","z"],"mappings":";;;;;AAIO,MAAM,kBAAkB,MAAM;AAC7B,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEA,cAAAA,cAAcC,mDAAAA,mBAAmB;AAErC,SAAOC,IAAAA,EAAE,OAAO;AAAA,IACd,OAAOA,MACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,uBAAuB,EACzC,QAAQ,EAAE;AAAA,IACb,UAAUA,MACP,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,yBAA0B,CAAA,EAC5C,QAAQ,EAAE;AAAA,EAAA,CACd;AACH;;"}
@@ -1,10 +1,66 @@
1
1
  export declare const signInSchemaContent: {
2
2
  key: string;
3
3
  content: {
4
- requiredErrorEmail: import('@intlayer/core').TranslationContent<string>;
5
- invalidTypeErrorEmail: import('@intlayer/core').TranslationContent<string>;
6
- requiredErrorPassword: import('@intlayer/core').TranslationContent<string>;
7
- invalidTypeErrorPassword: import('@intlayer/core').TranslationContent<string>;
4
+ requiredErrorEmail: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
5
+ en: string;
6
+ 'en-GB': string;
7
+ fr: string;
8
+ es: string;
9
+ de: string;
10
+ ja: string;
11
+ ko: string;
12
+ zh: string;
13
+ it: string;
14
+ pt: string;
15
+ hi: string;
16
+ ar: string;
17
+ ru: string;
18
+ }>;
19
+ invalidTypeErrorEmail: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
20
+ en: string;
21
+ 'en-GB': string;
22
+ fr: string;
23
+ es: string;
24
+ de: string;
25
+ ja: string;
26
+ ko: string;
27
+ zh: string;
28
+ it: string;
29
+ pt: string;
30
+ hi: string;
31
+ ar: string;
32
+ ru: string;
33
+ }>;
34
+ requiredErrorPassword: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
35
+ en: string;
36
+ 'en-GB': string;
37
+ fr: string;
38
+ es: string;
39
+ de: string;
40
+ ja: string;
41
+ ko: string;
42
+ zh: string;
43
+ it: string;
44
+ pt: string;
45
+ hi: string;
46
+ ar: string;
47
+ ru: string;
48
+ }>;
49
+ invalidTypeErrorPassword: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
50
+ en: string;
51
+ 'en-GB': string;
52
+ fr: string;
53
+ es: string;
54
+ de: string;
55
+ ja: string;
56
+ ko: string;
57
+ zh: string;
58
+ it: string;
59
+ pt: string;
60
+ hi: string;
61
+ ar: string;
62
+ ru: string;
63
+ }>;
8
64
  };
9
65
  };
10
66
  export default signInSchemaContent;
@@ -1 +1 @@
1
- {"version":3,"file":"useSignInSchema.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;CAmEV,CAAC;AAEvB,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"useSignInSchema.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEV,CAAC;AAEvB,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSignInSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;;;;;;EAwB3B,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"useSignInSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;;;;;;EAwB3B,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSignInSchema.mjs","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { signInSchemaContent } from './useSignInSchema.content';\n\nexport const useSignInSchema = () => {\n const {\n requiredErrorEmail,\n invalidTypeErrorEmail,\n requiredErrorPassword,\n invalidTypeErrorPassword,\n } = useDictionary(signInSchemaContent);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidTypeErrorEmail })\n .default(''),\n password: z\n .string({\n required_error: requiredErrorPassword,\n invalid_type_error: invalidTypeErrorPassword,\n })\n .min(1, { message: invalidTypeErrorPassword })\n .default(''),\n });\n};\nexport type SignIn = z.infer<ReturnType<typeof useSignInSchema>>;\n"],"names":[],"mappings":";;;AAKO,MAAM,kBAAkB,MAAM;AAC7B,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,mBAAmB;AAErC,SAAO,EAAE,OAAO;AAAA,IACd,OAAO,EACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,uBAAuB,EACzC,QAAQ,EAAE;AAAA,IACb,UAAU,EACP,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,yBAA0B,CAAA,EAC5C,QAAQ,EAAE;AAAA,EAAA,CACd;AACH;"}
1
+ {"version":3,"file":"useSignInSchema.mjs","sources":["../../../../src/components/Auth/SignInForm/useSignInSchema.ts"],"sourcesContent":["import { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { signInSchemaContent } from './useSignInSchema.content';\n\nexport const useSignInSchema = () => {\n const {\n requiredErrorEmail,\n invalidTypeErrorEmail,\n requiredErrorPassword,\n invalidTypeErrorPassword,\n } = useDictionary(signInSchemaContent);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidTypeErrorEmail })\n .default(''),\n password: z\n .string({\n required_error: requiredErrorPassword,\n invalid_type_error: invalidTypeErrorPassword,\n })\n .min(1, { message: invalidTypeErrorPassword })\n .default(''),\n });\n};\nexport type SignIn = z.infer<ReturnType<typeof useSignInSchema>>;\n"],"names":[],"mappings":";;;AAIO,MAAM,kBAAkB,MAAM;AAC7B,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,mBAAmB;AAErC,SAAO,EAAE,OAAO;AAAA,IACd,OAAO,EACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,uBAAuB,EACzC,QAAQ,EAAE;AAAA,IACb,UAAU,EACP,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IAAA,CACrB,EACA,IAAI,GAAG,EAAE,SAAS,yBAA0B,CAAA,EAC5C,QAAQ,EAAE;AAAA,EAAA,CACd;AACH;"}
@@ -36,8 +36,8 @@ const SignUpForm = ({
36
36
  components_Form_layout_FormItemLayout.Form.Input,
37
37
  {
38
38
  name: "email",
39
- label: emailInput.label,
40
- placeholder: emailInput.placeholder,
39
+ label: emailInput.label.value,
40
+ placeholder: emailInput.placeholder.value,
41
41
  isRequired: true,
42
42
  autoComplete: "email",
43
43
  minLength: 5,
@@ -48,8 +48,8 @@ const SignUpForm = ({
48
48
  components_Form_layout_FormItemLayout.Form.InputPassword,
49
49
  {
50
50
  name: "password",
51
- label: passwordInput.label,
52
- placeholder: passwordInput.placeholder,
51
+ label: passwordInput.label.value,
52
+ placeholder: passwordInput.placeholder.value,
53
53
  autoComplete: "new-password",
54
54
  isRequired: true
55
55
  }
@@ -58,8 +58,8 @@ const SignUpForm = ({
58
58
  components_Form_layout_FormItemLayout.Form.InputPassword,
59
59
  {
60
60
  name: "passwordConfirmation",
61
- label: passwordConfirmationInput.label,
62
- placeholder: passwordConfirmationInput.placeholder,
61
+ label: passwordConfirmationInput.label.value,
62
+ placeholder: passwordConfirmationInput.placeholder.value,
63
63
  autoComplete: "new-password",
64
64
  isRequired: true
65
65
  }
@@ -72,7 +72,7 @@ const SignUpForm = ({
72
72
  type: "submit",
73
73
  color: "text",
74
74
  isLoading: isSubmitting,
75
- label: signUpButton.ariaLabel,
75
+ label: signUpButton.ariaLabel.value,
76
76
  children: signUpButton.text
77
77
  }
78
78
  ),
@@ -82,7 +82,7 @@ const SignUpForm = ({
82
82
  components_Form_layout_FormItemLayout.Form.Button,
83
83
  {
84
84
  variant: "link",
85
- label: loginLink.ariaLabel,
85
+ label: loginLink.ariaLabel.value,
86
86
  color: "text",
87
87
  onClick: onClickBackToSignIn,
88
88
  children: loginLink.text
@@ -1 +1 @@
1
- {"version":3,"file":"SignUpForm.cjs","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"sourcesContent":["'use client';\n\nimport { type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport content from './signUpForm.content';\nimport { useSignUpSchema, type SignUp } from './useSignUpSchema';\n\ntype SignUpFormProps = {\n onSubmitSuccess: (data: SignUp) => Promise<void>;\n onClickBackToSignIn: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const SignUpForm: FC<SignUpFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToSignIn,\n}) => {\n const {\n emailInput,\n passwordInput,\n passwordConfirmationInput,\n signUpButton,\n loginLink,\n } = useDictionary(content);\n const SignUpSchema = useSignUpSchema();\n const { form, isSubmitting } = useForm(SignUpSchema);\n\n return (\n <Form\n schema={SignUpSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.Input\n name=\"email\"\n label={emailInput.label}\n placeholder={emailInput.placeholder}\n isRequired\n autoComplete=\"email\"\n minLength={5}\n maxLength={50}\n />\n\n <Form.InputPassword\n name=\"password\"\n label={passwordInput.label}\n placeholder={passwordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n\n <Form.InputPassword\n name=\"passwordConfirmation\"\n label={passwordConfirmationInput.label}\n placeholder={passwordConfirmationInput.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 label={signUpButton.ariaLabel}\n >\n {signUpButton.text}\n </Form.Button>\n\n <span className=\"text-neutral dark:text-neutral-dark m-auto mt-3 flex w-full items-center justify-center text-center align-middle text-xs\">\n {loginLink.message}\n <Form.Button\n variant=\"link\"\n label={loginLink.ariaLabel}\n color=\"text\"\n onClick={onClickBackToSignIn}\n >\n {loginLink.text}\n </Form.Button>\n </span>\n </Form>\n );\n};\n"],"names":["useDictionary","content","useSignUpSchema","useForm","jsxs","Form","jsx"],"mappings":";;;;;;;;;;AAeO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEA,cAAAA,cAAcC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AA,UACXE,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,SAAQ;AAAA,cACR,OAAO,UAAU;AAAA,cACjB,OAAM;AAAA,cACN,SAAS;AAAA,cAER,UAAU,UAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACb,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;;"}
1
+ {"version":3,"file":"SignUpForm.cjs","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"sourcesContent":["'use client';\n\nimport { type FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport content from './signUpForm.content';\nimport { useSignUpSchema, type SignUp } from './useSignUpSchema';\n\ntype SignUpFormProps = {\n onSubmitSuccess: (data: SignUp) => Promise<void>;\n onClickBackToSignIn: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const SignUpForm: FC<SignUpFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToSignIn,\n}) => {\n const {\n emailInput,\n passwordInput,\n passwordConfirmationInput,\n signUpButton,\n loginLink,\n } = useDictionary(content);\n const SignUpSchema = useSignUpSchema();\n const { form, isSubmitting } = useForm(SignUpSchema);\n\n return (\n <Form\n schema={SignUpSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.Input\n name=\"email\"\n label={emailInput.label.value}\n placeholder={emailInput.placeholder.value}\n isRequired\n autoComplete=\"email\"\n minLength={5}\n maxLength={50}\n />\n\n <Form.InputPassword\n name=\"password\"\n label={passwordInput.label.value}\n placeholder={passwordInput.placeholder.value}\n autoComplete=\"new-password\"\n isRequired\n />\n\n <Form.InputPassword\n name=\"passwordConfirmation\"\n label={passwordConfirmationInput.label.value}\n placeholder={passwordConfirmationInput.placeholder.value}\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 label={signUpButton.ariaLabel.value}\n >\n {signUpButton.text}\n </Form.Button>\n\n <span className=\"text-neutral dark:text-neutral-dark m-auto mt-3 flex w-full items-center justify-center text-center align-middle text-xs\">\n {loginLink.message}\n <Form.Button\n variant=\"link\"\n label={loginLink.ariaLabel.value}\n color=\"text\"\n onClick={onClickBackToSignIn}\n >\n {loginLink.text}\n </Form.Button>\n </span>\n </Form>\n );\n};\n"],"names":["useDictionary","content","useSignUpSchema","useForm","jsxs","Form","jsx"],"mappings":";;;;;;;;;;AAcO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEA,cAAAA,cAAcC,6CAAO;AACzB,QAAM,eAAeC,2CAAAA,gBAAgB;AACrC,QAAM,EAAE,MAAM,iBAAiBC,yBAAAA,QAAQ,YAAY;AAGjD,SAAAC,2BAAA,kBAAA;AAAA,IAACC,sCAAA;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACX,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,OAAO,WAAW,MAAM;AAAA,cACxB,aAAa,WAAW,YAAY;AAAA,cACpC,YAAU;AAAA,cACV,cAAa;AAAA,cACb,WAAW;AAAA,cACX,WAAW;AAAA,YAAA;AAAA,UACb;AAAA,UAEAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,cAAc,MAAM;AAAA,cAC3B,aAAa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CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0E1C,CAAC"}
1
+ {"version":3,"file":"SignUpForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAAmB,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,eAAe,GAAG;IACrB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0E1C,CAAC"}
@@ -34,8 +34,8 @@ const SignUpForm = ({
34
34
  Form.Input,
35
35
  {
36
36
  name: "email",
37
- label: emailInput.label,
38
- placeholder: emailInput.placeholder,
37
+ label: emailInput.label.value,
38
+ placeholder: emailInput.placeholder.value,
39
39
  isRequired: true,
40
40
  autoComplete: "email",
41
41
  minLength: 5,
@@ -46,8 +46,8 @@ const SignUpForm = ({
46
46
  Form.InputPassword,
47
47
  {
48
48
  name: "password",
49
- label: passwordInput.label,
50
- placeholder: passwordInput.placeholder,
49
+ label: passwordInput.label.value,
50
+ placeholder: passwordInput.placeholder.value,
51
51
  autoComplete: "new-password",
52
52
  isRequired: true
53
53
  }
@@ -56,8 +56,8 @@ const SignUpForm = ({
56
56
  Form.InputPassword,
57
57
  {
58
58
  name: "passwordConfirmation",
59
- label: passwordConfirmationInput.label,
60
- placeholder: passwordConfirmationInput.placeholder,
59
+ label: passwordConfirmationInput.label.value,
60
+ placeholder: passwordConfirmationInput.placeholder.value,
61
61
  autoComplete: "new-password",
62
62
  isRequired: true
63
63
  }
@@ -70,7 +70,7 @@ const SignUpForm = ({
70
70
  type: "submit",
71
71
  color: "text",
72
72
  isLoading: isSubmitting,
73
- label: signUpButton.ariaLabel,
73
+ label: signUpButton.ariaLabel.value,
74
74
  children: signUpButton.text
75
75
  }
76
76
  ),
@@ -80,7 +80,7 @@ const SignUpForm = ({
80
80
  Form.Button,
81
81
  {
82
82
  variant: "link",
83
- label: loginLink.ariaLabel,
83
+ label: loginLink.ariaLabel.value,
84
84
  color: "text",
85
85
  onClick: onClickBackToSignIn,
86
86
  children: loginLink.text
@@ -1 +1 @@
1
- {"version":3,"file":"SignUpForm.mjs","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"sourcesContent":["'use client';\n\nimport { type FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport content from './signUpForm.content';\nimport { useSignUpSchema, type SignUp } from './useSignUpSchema';\n\ntype SignUpFormProps = {\n onSubmitSuccess: (data: SignUp) => Promise<void>;\n onClickBackToSignIn: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const SignUpForm: FC<SignUpFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToSignIn,\n}) => {\n const {\n emailInput,\n passwordInput,\n passwordConfirmationInput,\n signUpButton,\n loginLink,\n } = useDictionary(content);\n const SignUpSchema = useSignUpSchema();\n const { form, isSubmitting } = useForm(SignUpSchema);\n\n return (\n <Form\n schema={SignUpSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.Input\n name=\"email\"\n label={emailInput.label}\n placeholder={emailInput.placeholder}\n isRequired\n autoComplete=\"email\"\n minLength={5}\n maxLength={50}\n />\n\n <Form.InputPassword\n name=\"password\"\n label={passwordInput.label}\n placeholder={passwordInput.placeholder}\n autoComplete=\"new-password\"\n isRequired\n />\n\n <Form.InputPassword\n name=\"passwordConfirmation\"\n label={passwordConfirmationInput.label}\n placeholder={passwordConfirmationInput.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 label={signUpButton.ariaLabel}\n >\n {signUpButton.text}\n </Form.Button>\n\n <span className=\"text-neutral dark:text-neutral-dark m-auto mt-3 flex w-full items-center justify-center text-center align-middle text-xs\">\n {loginLink.message}\n <Form.Button\n variant=\"link\"\n label={loginLink.ariaLabel}\n color=\"text\"\n onClick={onClickBackToSignIn}\n >\n {loginLink.text}\n </Form.Button>\n </span>\n </Form>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;AAeO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,OAAO;AACzB,QAAM,eAAe,gBAAgB;AACrC,QAAM,EAAE,MAAM,iBAAiB,QAAQ,YAAY;AAGjD,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACX,GAAG;AAAA,MAEJ,UAAA;AAAA,QAACA,kCAAAA,KAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,UAAAC,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,WAAW;AAAA,cAClB,aAAa,WAAW;AAAA,cACxB,YAAU;AAAA,cACV,cAAa;AAAA,cACb,WAAW;AAAA,cACX,WAAW;AAAA,YAAA;AAAA,UACb;AAAA,UAEAA,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,cAAc;AAAA,cACrB,aAAa,cAAc;AAAA,cAC3B,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UAEAA,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,MAAK;AAAA,cACL,OAAO,0BAA0B;AAAA,cACjC,aAAa,0BAA0B;AAAA,cACvC,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACZ,GACF;AAAA,QAEAA,kCAAA;AAAA,UAAC,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,MAAK;AAAA,YACL,OAAM;AAAA,YACN,WAAW;AAAA,YACX,OAAO,aAAa;AAAA,YAEnB,UAAa,aAAA;AAAA,UAAA;AAAA,QAChB;AAAA,QAEAD,kCAAAA,KAAC,QAAK,EAAA,WAAU,4HACb,UAAA;AAAA,UAAU,UAAA;AAAA,UACXC,kCAAA;AAAA,YAAC,KAAK;AAAA,YAAL;AAAA,cACC,SAAQ;AAAA,cACR,OAAO,UAAU;AAAA,cACjB,OAAM;AAAA,cACN,SAAS;AAAA,cAER,UAAU,UAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACb,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"SignUpForm.mjs","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"sourcesContent":["'use client';\n\nimport { type FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport content from './signUpForm.content';\nimport { useSignUpSchema, type SignUp } from './useSignUpSchema';\n\ntype SignUpFormProps = {\n onSubmitSuccess: (data: SignUp) => Promise<void>;\n onClickBackToSignIn: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const SignUpForm: FC<SignUpFormProps> = ({\n onSubmitSuccess,\n onSubmitError,\n onClickBackToSignIn,\n}) => {\n const {\n emailInput,\n passwordInput,\n passwordConfirmationInput,\n signUpButton,\n loginLink,\n } = useDictionary(content);\n const SignUpSchema = useSignUpSchema();\n const { form, isSubmitting } = useForm(SignUpSchema);\n\n return (\n <Form\n schema={SignUpSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\n autoComplete\n {...form}\n >\n <div className=\"flex flex-col gap-y-6\">\n <Form.Input\n name=\"email\"\n label={emailInput.label.value}\n placeholder={emailInput.placeholder.value}\n isRequired\n autoComplete=\"email\"\n minLength={5}\n maxLength={50}\n />\n\n <Form.InputPassword\n name=\"password\"\n label={passwordInput.label.value}\n placeholder={passwordInput.placeholder.value}\n autoComplete=\"new-password\"\n isRequired\n />\n\n <Form.InputPassword\n name=\"passwordConfirmation\"\n label={passwordConfirmationInput.label.value}\n placeholder={passwordConfirmationInput.placeholder.value}\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 label={signUpButton.ariaLabel.value}\n >\n {signUpButton.text}\n </Form.Button>\n\n <span className=\"text-neutral dark:text-neutral-dark m-auto mt-3 flex w-full items-center justify-center text-center align-middle text-xs\">\n {loginLink.message}\n <Form.Button\n variant=\"link\"\n label={loginLink.ariaLabel.value}\n color=\"text\"\n onClick={onClickBackToSignIn}\n >\n {loginLink.text}\n </Form.Button>\n </span>\n </Form>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;AAcO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,OAAO;AACzB,QAAM,eAAe,gBAAgB;AACrC,QAAM,EAAE,MAAM,iBAAiB,QAAQ,YAAY;AAGjD,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACX,GAAG;AA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