@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
@@ -1 +1 @@
1
- {"version":3,"file":"ExternalsLoginButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAShC,eAAO,MAAM,iBAAiB,EAAE,EAoB/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAqB/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAgBnC,CAAC"}
1
+ {"version":3,"file":"ExternalsLoginButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQhC,eAAO,MAAM,iBAAiB,EAAE,EAoB/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAqB/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAgBnC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { j as jsxRuntimeExports } from "../../../jsx-runtime-DQkoUcjV.js";
3
3
  import { useDictionary } from "react-intlayer";
4
- import { i as intlayerAPI } from "../../../index-Di_3dNqI.js";
4
+ import { i as intlayerAPI } from "../../../index-BVYRWLUL.js";
5
5
  import "@intlayer/config/client";
6
6
  import "@intlayer/api";
7
7
  import { Button } from "../../Button/Button.mjs";
@@ -18,7 +18,7 @@ const GitHubLoginButton = () => {
18
18
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
19
19
  Button,
20
20
  {
21
- label: externalsLoginButtons.github.label,
21
+ label: externalsLoginButtons.github.label.value,
22
22
  Icon: GithubLogo,
23
23
  onClick: loginWithGitHub,
24
24
  color: "text",
@@ -37,7 +37,7 @@ const GoogleLoginButton = () => {
37
37
  Button,
38
38
  {
39
39
  className: "bg-red-400 hover:bg-red-500 dark:hover:bg-red-300",
40
- label: externalsLoginButtons.google.label,
40
+ label: externalsLoginButtons.google.label.value,
41
41
  Icon: GoogleLogo,
42
42
  onClick: loginWithGoogle,
43
43
  color: "custom",
@@ -1 +1 @@
1
- {"version":3,"file":"ExternalsLoginButtons.mjs","sources":["../../../../src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx"],"sourcesContent":["'use client';\n\nimport type { FC } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { intlayerAPI } from '../../../../../api/src';\nimport { Button } from '../../Button';\nimport { GithubLogo } from './assets/GithubLogo';\nimport { GoogleLogo } from './assets/GoogleLogo';\nimport { externalsLoginButtonsContent } from './externalsLoginButtons.content';\n\nexport const GitHubLoginButton: FC = () => {\n const externalsLoginButtons = useDictionary(externalsLoginButtonsContent);\n const loginWithGitHub = () => {\n const origin = window.location.href;\n\n const authURL = intlayerAPI.auth.getLoginWithGitHubURL({ origin });\n\n window.location.href = authURL;\n };\n\n return (\n <Button\n label={externalsLoginButtons.github.label}\n Icon={GithubLogo}\n onClick={loginWithGitHub}\n color=\"text\"\n >\n {externalsLoginButtons.github.label}\n </Button>\n );\n};\n\nexport const GoogleLoginButton: FC = () => {\n const externalsLoginButtons = useDictionary(externalsLoginButtonsContent);\n const loginWithGoogle = () => {\n const origin = window.location.href;\n\n const authURL = intlayerAPI.auth.getLoginWithGoogleURL({ origin });\n\n window.location.href = authURL;\n };\n\n return (\n <Button\n className=\"bg-red-400 hover:bg-red-500 dark:hover:bg-red-300\"\n label={externalsLoginButtons.google.label}\n Icon={GoogleLogo}\n onClick={loginWithGoogle}\n color=\"custom\"\n >\n {externalsLoginButtons.google.label}\n </Button>\n );\n};\n\nexport const ExternalsLoginButtons: FC = () => {\n const externalsLoginButtons = useDictionary(externalsLoginButtonsContent);\n\n return (\n <div className=\"relative flex flex-col justify-center gap-y-3\">\n <div className=\"mb-3 flex w-full items-center gap-3 text-center text-base\">\n <div className=\"bg-neutral dark:bg-neutral-dark h-px w-full\" />\n <div className=\"text-neutral dark:text-neutral-dark\">\n {externalsLoginButtons.span}\n </div>\n <div className=\"bg-neutral dark:bg-neutral-dark h-px w-full\" />\n </div>\n <GoogleLoginButton />\n <GitHubLoginButton />\n </div>\n );\n};\n"],"names":["jsx","jsxs"],"mappings":";;;;;;;;;;AAWO,MAAM,oBAAwB,MAAM;AACnC,QAAA,wBAAwB,cAAc,4BAA4B;AACxE,QAAM,kBAAkB,MAAM;AACtB,UAAA,SAAS,OAAO,SAAS;AAE/B,UAAM,UAAU,YAAY,KAAK,sBAAsB,EAAE,QAAQ;AAEjE,WAAO,SAAS,OAAO;AAAA,EACzB;AAGE,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,sBAAsB,OAAO;AAAA,MACpC,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAM;AAAA,MAEL,gCAAsB,OAAO;AAAA,IAAA;AAAA,EAChC;AAEJ;AAEO,MAAM,oBAAwB,MAAM;AACnC,QAAA,wBAAwB,cAAc,4BAA4B;AACxE,QAAM,kBAAkB,MAAM;AACtB,UAAA,SAAS,OAAO,SAAS;AAE/B,UAAM,UAAU,YAAY,KAAK,sBAAsB,EAAE,QAAQ;AAEjE,WAAO,SAAS,OAAO;AAAA,EACzB;AAGE,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,sBAAsB,OAAO;AAAA,MACpC,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAM;AAAA,MAEL,gCAAsB,OAAO;AAAA,IAAA;AAAA,EAChC;AAEJ;AAEO,MAAM,wBAA4B,MAAM;AACvC,QAAA,wBAAwB,cAAc,4BAA4B;AAGtE,SAAAC,kCAAA,KAAC,OAAI,EAAA,WAAU,iDACb,UAAA;AAAA,IAACA,kCAAAA,KAAA,OAAA,EAAI,WAAU,6DACb,UAAA;AAAA,MAACD,kCAAAA,IAAA,OAAA,EAAI,WAAU,8CAA8C,CAAA;AAAA,MAC5DA,kCAAA,IAAA,OAAA,EAAI,WAAU,uCACZ,gCAAsB,MACzB;AAAA,MACAA,kCAAAA,IAAC,OAAI,EAAA,WAAU,8CAA8C,CAAA;AAAA,IAAA,GAC/D;AAAA,0CACC,mBAAkB,EAAA;AAAA,0CAClB,mBAAkB,CAAA,CAAA;AAAA,EAAA,GACrB;AAEJ;"}
1
+ {"version":3,"file":"ExternalsLoginButtons.mjs","sources":["../../../../src/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.tsx"],"sourcesContent":["'use client';\n\nimport type { FC } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport { intlayerAPI } from '../../../../../api/src';\nimport { Button } from '../../Button';\nimport { GithubLogo } from './assets/GithubLogo';\nimport { GoogleLogo } from './assets/GoogleLogo';\nimport { externalsLoginButtonsContent } from './externalsLoginButtons.content';\n\nexport const GitHubLoginButton: FC = () => {\n const externalsLoginButtons = useDictionary(externalsLoginButtonsContent);\n const loginWithGitHub = () => {\n const origin = window.location.href;\n\n const authURL = intlayerAPI.auth.getLoginWithGitHubURL({ origin });\n\n window.location.href = authURL;\n };\n\n return (\n <Button\n label={externalsLoginButtons.github.label.value}\n Icon={GithubLogo}\n onClick={loginWithGitHub}\n color=\"text\"\n >\n {externalsLoginButtons.github.label}\n </Button>\n );\n};\n\nexport const GoogleLoginButton: FC = () => {\n const externalsLoginButtons = useDictionary(externalsLoginButtonsContent);\n const loginWithGoogle = () => {\n const origin = window.location.href;\n\n const authURL = intlayerAPI.auth.getLoginWithGoogleURL({ origin });\n\n window.location.href = authURL;\n };\n\n return (\n <Button\n className=\"bg-red-400 hover:bg-red-500 dark:hover:bg-red-300\"\n label={externalsLoginButtons.google.label.value}\n Icon={GoogleLogo}\n onClick={loginWithGoogle}\n color=\"custom\"\n >\n {externalsLoginButtons.google.label}\n </Button>\n );\n};\n\nexport const ExternalsLoginButtons: FC = () => {\n const externalsLoginButtons = useDictionary(externalsLoginButtonsContent);\n\n return (\n <div className=\"relative flex flex-col justify-center gap-y-3\">\n <div className=\"mb-3 flex w-full items-center gap-3 text-center text-base\">\n <div className=\"bg-neutral dark:bg-neutral-dark h-px w-full\" />\n <div className=\"text-neutral dark:text-neutral-dark\">\n {externalsLoginButtons.span}\n </div>\n <div className=\"bg-neutral dark:bg-neutral-dark h-px w-full\" />\n </div>\n <GoogleLoginButton />\n <GitHubLoginButton />\n </div>\n );\n};\n"],"names":["jsx","jsxs"],"mappings":";;;;;;;;;;AAUO,MAAM,oBAAwB,MAAM;AACnC,QAAA,wBAAwB,cAAc,4BAA4B;AACxE,QAAM,kBAAkB,MAAM;AACtB,UAAA,SAAS,OAAO,SAAS;AAE/B,UAAM,UAAU,YAAY,KAAK,sBAAsB,EAAE,QAAQ;AAEjE,WAAO,SAAS,OAAO;AAAA,EACzB;AAGE,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO,sBAAsB,OAAO,MAAM;AAAA,MAC1C,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAM;AAAA,MAEL,gCAAsB,OAAO;AAAA,IAAA;AAAA,EAChC;AAEJ;AAEO,MAAM,oBAAwB,MAAM;AACnC,QAAA,wBAAwB,cAAc,4BAA4B;AACxE,QAAM,kBAAkB,MAAM;AACtB,UAAA,SAAS,OAAO,SAAS;AAE/B,UAAM,UAAU,YAAY,KAAK,sBAAsB,EAAE,QAAQ;AAEjE,WAAO,SAAS,OAAO;AAAA,EACzB;AAGE,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,sBAAsB,OAAO,MAAM;AAAA,MAC1C,MAAM;AAAA,MACN,SAAS;AAAA,MACT,OAAM;AAAA,MAEL,gCAAsB,OAAO;AAAA,IAAA;AAAA,EAChC;AAEJ;AAEO,MAAM,wBAA4B,MAAM;AACvC,QAAA,wBAAwB,cAAc,4BAA4B;AAGtE,SAAAC,kCAAA,KAAC,OAAI,EAAA,WAAU,iDACb,UAAA;AAAA,IAACA,kCAAAA,KAAA,OAAA,EAAI,WAAU,6DACb,UAAA;AAAA,MAACD,kCAAAA,IAAA,OAAA,EAAI,WAAU,8CAA8C,CAAA;AAAA,MAC5DA,kCAAA,IAAA,OAAA,EAAI,WAAU,uCACZ,gCAAsB,MACzB;AAAA,MACAA,kCAAAA,IAAC,OAAI,EAAA,WAAU,8CAA8C,CAAA;AAAA,IAAA,GAC/D;AAAA,0CACC,mBAAkB,EAAA;AAAA,0CAClB,mBAAkB,CAAA,CAAA;AAAA,EAAA,GACrB;AAEJ;"}
@@ -1,14 +1,84 @@
1
1
  export declare const externalsLoginButtonsContent: {
2
2
  key: string;
3
3
  content: {
4
- span: import('@intlayer/core').TranslationContent<string>;
4
+ span: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
5
+ en: string;
6
+ fr: string;
7
+ es: string;
8
+ de: string;
9
+ ja: string;
10
+ ko: string;
11
+ zh: string;
12
+ it: string;
13
+ pt: string;
14
+ hi: string;
15
+ ar: string;
16
+ ru: string;
17
+ 'en-GB': string;
18
+ }>;
5
19
  github: {
6
- label: import('@intlayer/core').TranslationContent<string>;
7
- ariaLabel: import('@intlayer/core').TranslationContent<string>;
20
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
21
+ en: 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
+ 'en-GB': string;
34
+ }>;
35
+ ariaLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
36
+ en: 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
+ 'en-GB': string;
49
+ }>;
8
50
  };
9
51
  google: {
10
- label: import('@intlayer/core').TranslationContent<string>;
11
- ariaLabel: import('@intlayer/core').TranslationContent<string>;
52
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
53
+ en: string;
54
+ fr: string;
55
+ es: string;
56
+ de: string;
57
+ ja: string;
58
+ ko: string;
59
+ zh: string;
60
+ it: string;
61
+ pt: string;
62
+ hi: string;
63
+ ar: string;
64
+ ru: string;
65
+ 'en-GB': string;
66
+ }>;
67
+ ariaLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
68
+ en: string;
69
+ fr: string;
70
+ es: string;
71
+ de: string;
72
+ ja: string;
73
+ ko: string;
74
+ zh: string;
75
+ it: string;
76
+ pt: string;
77
+ hi: string;
78
+ ar: string;
79
+ ru: string;
80
+ 'en-GB': string;
81
+ }>;
12
82
  };
13
83
  };
14
84
  };
@@ -1 +1 @@
1
- {"version":3,"file":"externalsLoginButtons.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;CAmFnB,CAAC;AAEvB,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"externalsLoginButtons.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFnB,CAAC;AAEvB,eAAe,4BAA4B,CAAC"}
@@ -59,7 +59,7 @@ const ResetPasswordForm = ({
59
59
  if (submissionState.remainingTime > 0) {
60
60
  return `${resendInText} ${submissionState.remainingTime}s`;
61
61
  }
62
- return isSubmitted ? resendRecoveryEmailButton.text : sendRecoveryEmailButton.text;
62
+ return isSubmitted ? resendRecoveryEmailButton.text.value : sendRecoveryEmailButton.text.value;
63
63
  };
64
64
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
65
65
  components_Form_layout_FormItemLayout.Form,
@@ -74,8 +74,8 @@ const ResetPasswordForm = ({
74
74
  components_Form_layout_FormItemLayout.Form.Input,
75
75
  {
76
76
  name: "email",
77
- label: emailInput.label,
78
- placeholder: emailInput.placeholder,
77
+ label: emailInput.label.value,
78
+ placeholder: emailInput.placeholder.value,
79
79
  isRequired: true,
80
80
  autoComplete: "email",
81
81
  minLength: 5,
@@ -91,7 +91,7 @@ const ResetPasswordForm = ({
91
91
  isLoading: isSubmitting,
92
92
  disabled: !isValid || submissionState.isFrozen,
93
93
  variant: isSubmitted ? "outline" : "default",
94
- label: sendRecoveryEmailButton.ariaLabel,
94
+ label: sendRecoveryEmailButton.ariaLabel.value,
95
95
  children: getSubmitButtonText()
96
96
  }
97
97
  ),
@@ -99,9 +99,9 @@ const ResetPasswordForm = ({
99
99
  components_Form_layout_FormItemLayout.Form.Button,
100
100
  {
101
101
  className: "mt-4 w-full",
102
- label: backToLoginButton.text,
102
+ label: backToLoginButton.text.value,
103
103
  onClick: onClickBackToLogin,
104
- children: backToLoginButton.text
104
+ children: backToLoginButton.text.value
105
105
  }
106
106
  )
107
107
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"ResetPasswordForm.cjs","sources":["../../../../src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx"],"sourcesContent":["'use client';\n\nimport { useState, type FC, useEffect, type ReactNode } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport { resetPasswordContent } from './resetPasswordContent.content';\nimport {\n useResetPasswordSchema,\n type ResetPassword,\n} from './useResetPasswordSchema';\n\ntype ForgotPasswordFormProps = {\n email?: string;\n onSubmitSuccess: (data: ResetPassword) => Promise<void>;\n onClickBackToLogin: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ResetPasswordForm: FC<ForgotPasswordFormProps> = ({\n email,\n onSubmitSuccess,\n onSubmitError,\n onClickBackToLogin,\n}) => {\n const ResetPasswordSchema = useResetPasswordSchema();\n const {\n emailInput,\n sendRecoveryEmailButton,\n resendRecoveryEmailButton,\n resendInText,\n backToLoginButton,\n } = useDictionary(resetPasswordContent);\n const { form, isSubmitting, isSubmitted, isValid } = useForm(\n ResetPasswordSchema,\n {\n defaultValues: { email },\n }\n );\n const [submissionState, setSubmissionState] = useState({\n isFrozen: isValid,\n remainingTime: 0,\n });\n\n useEffect(() => {\n // If form valid and form is not submitted, unfreeze the submission\n if (isValid && !isSubmitted) {\n setSubmissionState((prevState) => ({\n ...prevState,\n isFrozen: false,\n }));\n }\n }, [isSubmitted, isValid]);\n\n useEffect(() => {\n // If form valid and submission is frozen and there is remaining time, start the timer\n if (\n isValid &&\n submissionState.isFrozen &&\n submissionState.remainingTime > 0\n ) {\n const interval = setInterval(() => {\n setSubmissionState((prevState) => {\n if (prevState.remainingTime <= 1) {\n clearInterval(interval); // Stop the timer when reaching 0\n return { ...prevState, isFrozen: false, remainingTime: 0 };\n }\n return { ...prevState, remainingTime: prevState.remainingTime - 1 };\n });\n }, 1000);\n\n return () => clearInterval(interval);\n }\n }, [isValid, submissionState.isFrozen, submissionState.remainingTime]);\n\n const getSubmitButtonText = (): ReactNode => {\n if (submissionState.remainingTime > 0) {\n return `${resendInText} ${submissionState.remainingTime}s`;\n }\n return isSubmitted\n ? resendRecoveryEmailButton.text\n : sendRecoveryEmailButton.text;\n };\n\n return (\n <Form\n schema={ResetPasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\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 minLength={5}\n maxLength={50}\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 || submissionState.isFrozen}\n variant={isSubmitted ? 'outline' : 'default'}\n label={sendRecoveryEmailButton.ariaLabel}\n >\n {getSubmitButtonText()}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToLoginButton.text}\n onClick={onClickBackToLogin}\n >\n {backToLoginButton.text}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["useResetPasswordSchema","useDictionary","resetPasswordContent","useForm","useState","useEffect","jsxs","Form","jsx"],"mappings":";;;;;;;;;;;AAmBO,MAAM,oBAAiD,CAAC;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,sBAAsBA,yDAAAA,uBAAuB;AAC7C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEC,cAAAA,cAAcC,+DAAAA,oBAAoB;AACtC,QAAM,EAAE,MAAM,cAAc,aAAa,QAAY,IAAAC,yBAAA;AAAA,IACnD;AAAA,IACA;AAAA,MACE,eAAe,EAAE,MAAM;AA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AAAA,YACL,OAAO,WAAW;AAAA,YAClB,aAAa,WAAW;AAAA,YACxB,YAAU;AAAA,YACV,cAAa;AAAA,YACb,WAAW;AAAA,YACX,WAAW;AAAA,UAAA;AAAA,QAAA,GAEf;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,WAAW,gBAAgB;AAAA,YACtC,SAAS,cAAc,YAAY;AAAA,YACnC,OAAO,wBAAwB;AAAA,YAE9B,UAAoB,oBAAA;AAAA,UAAA;AAAA,QACvB;AAAA,QACC,eACCC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,OAAO,kBAAkB;AAAA,YACzB,SAAS;AAAA,YAER,UAAkB,kBAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACrB;AAAA,IAAA;AAAA,EAEJ;AAEJ;;"}
1
+ {"version":3,"file":"ResetPasswordForm.cjs","sources":["../../../../src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx"],"sourcesContent":["'use client';\n\nimport { useState, type FC, useEffect, type ReactNode } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport { resetPasswordContent } from './resetPasswordContent.content';\nimport {\n useResetPasswordSchema,\n type ResetPassword,\n} from './useResetPasswordSchema';\n\ntype ForgotPasswordFormProps = {\n email?: string;\n onSubmitSuccess: (data: ResetPassword) => Promise<void>;\n onClickBackToLogin: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ResetPasswordForm: FC<ForgotPasswordFormProps> = ({\n email,\n onSubmitSuccess,\n onSubmitError,\n onClickBackToLogin,\n}) => {\n const ResetPasswordSchema = useResetPasswordSchema();\n const {\n emailInput,\n sendRecoveryEmailButton,\n resendRecoveryEmailButton,\n resendInText,\n backToLoginButton,\n } = useDictionary(resetPasswordContent);\n const { form, isSubmitting, isSubmitted, isValid } = useForm(\n ResetPasswordSchema,\n {\n defaultValues: { email },\n }\n );\n const [submissionState, setSubmissionState] = useState({\n isFrozen: isValid,\n remainingTime: 0,\n });\n\n useEffect(() => {\n // If form valid and form is not submitted, unfreeze the submission\n if (isValid && !isSubmitted) {\n setSubmissionState((prevState) => ({\n ...prevState,\n isFrozen: false,\n }));\n }\n }, [isSubmitted, isValid]);\n\n useEffect(() => {\n // If form valid and submission is frozen and there is remaining time, start the timer\n if (\n isValid &&\n submissionState.isFrozen &&\n submissionState.remainingTime > 0\n ) {\n const interval = setInterval(() => {\n setSubmissionState((prevState) => {\n if (prevState.remainingTime <= 1) {\n clearInterval(interval); // Stop the timer when reaching 0\n return { ...prevState, isFrozen: false, remainingTime: 0 };\n }\n return { ...prevState, remainingTime: prevState.remainingTime - 1 };\n });\n }, 1000);\n\n return () => clearInterval(interval);\n }\n }, [isValid, submissionState.isFrozen, submissionState.remainingTime]);\n\n const getSubmitButtonText = (): ReactNode => {\n if (submissionState.remainingTime > 0) {\n return `${resendInText} ${submissionState.remainingTime}s`;\n }\n return isSubmitted\n ? resendRecoveryEmailButton.text.value\n : sendRecoveryEmailButton.text.value;\n };\n\n return (\n <Form\n schema={ResetPasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\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 minLength={5}\n maxLength={50}\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 || submissionState.isFrozen}\n variant={isSubmitted ? 'outline' : 'default'}\n label={sendRecoveryEmailButton.ariaLabel.value}\n >\n {getSubmitButtonText()}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToLoginButton.text.value}\n onClick={onClickBackToLogin}\n >\n {backToLoginButton.text.value}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["useResetPasswordSchema","useDictionary","resetPasswordContent","useForm","useState","useEffect","jsxs","Form","jsx"],"mappings":";;;;;;;;;;;AAkBO,MAAM,oBAAiD,CAAC;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,sBAAsBA,yDAAAA,uBAAuB;AAC7C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEC,cAAAA,cAAcC,+DAAAA,oBAAoB;AACtC,QAAM,EAAE,MAAM,cAAc,aAAa,QAAY,IAAAC,yBAAA;AAAA,IACnD;AAAA,IACA;AAAA,MACE,eAAe,EAAE,MAAM;AAAA,IAAA;AAAA,EAE3B;AACA,QAAM,CAAC,iBAAiB,kBAAkB,IAAIC,oBAAS;AAAA,IACrD,UAAU;AAAA,IACV,eAAe;AAAA,EAAA,CAChB;AAEDC,aAAAA,UAAU,MAAM;AAEV,QAAA,WAAW,CAAC,aAAa;AAC3B,yBAAmB,CAAC,eAAe;AAAA,QACjC,GAAG;AAAA,QACH,UAAU;AAAA,MAAA,EACV;AAAA,IAAA;AAAA,EACJ,GACC,CAAC,aAAa,OAAO,CAAC;AAEzBA,aAAAA,UAAU,MAAM;AAEd,QACE,WACA,gBAAgB,YAChB,gBAAgB,gBAAgB,GAChC;AACM,YAAA,WAAW,YAAY,MAAM;AACjC,2BAAmB,CAAC,cAAc;AAC5B,cAAA,UAAU,iBAAiB,GAAG;AAChC,0BAAc,QAAQ;AACtB,mBAAO,EAAE,GAAG,WAAW,UAAU,OAAO,eAAe,EAAE;AAAA,UAAA;AAE3D,iBAAO,EAAE,GAAG,WAAW,eAAe,UAAU,gBAAgB,EAAE;AAAA,QAAA,CACnE;AAAA,SACA,GAAI;AAEA,aAAA,MAAM,cA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;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ResetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,EAAE,EAA6B,MAAM,OAAO,CAAC;AAKrE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAElC,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,uBAAuB,CA2GzD,CAAC"}
1
+ {"version":3,"file":"ResetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,EAAE,EAA6B,MAAM,OAAO,CAAC;AAIrE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAElC,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,uBAAuB,CA2GzD,CAAC"}
@@ -57,7 +57,7 @@ const ResetPasswordForm = ({
57
57
  if (submissionState.remainingTime > 0) {
58
58
  return `${resendInText} ${submissionState.remainingTime}s`;
59
59
  }
60
- return isSubmitted ? resendRecoveryEmailButton.text : sendRecoveryEmailButton.text;
60
+ return isSubmitted ? resendRecoveryEmailButton.text.value : sendRecoveryEmailButton.text.value;
61
61
  };
62
62
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
63
63
  Form,
@@ -72,8 +72,8 @@ const ResetPasswordForm = ({
72
72
  Form.Input,
73
73
  {
74
74
  name: "email",
75
- label: emailInput.label,
76
- placeholder: emailInput.placeholder,
75
+ label: emailInput.label.value,
76
+ placeholder: emailInput.placeholder.value,
77
77
  isRequired: true,
78
78
  autoComplete: "email",
79
79
  minLength: 5,
@@ -89,7 +89,7 @@ const ResetPasswordForm = ({
89
89
  isLoading: isSubmitting,
90
90
  disabled: !isValid || submissionState.isFrozen,
91
91
  variant: isSubmitted ? "outline" : "default",
92
- label: sendRecoveryEmailButton.ariaLabel,
92
+ label: sendRecoveryEmailButton.ariaLabel.value,
93
93
  children: getSubmitButtonText()
94
94
  }
95
95
  ),
@@ -97,9 +97,9 @@ const ResetPasswordForm = ({
97
97
  Form.Button,
98
98
  {
99
99
  className: "mt-4 w-full",
100
- label: backToLoginButton.text,
100
+ label: backToLoginButton.text.value,
101
101
  onClick: onClickBackToLogin,
102
- children: backToLoginButton.text
102
+ children: backToLoginButton.text.value
103
103
  }
104
104
  )
105
105
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"ResetPasswordForm.mjs","sources":["../../../../src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx"],"sourcesContent":["'use client';\n\nimport { useState, type FC, useEffect, type ReactNode } from 'react';\n// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport { resetPasswordContent } from './resetPasswordContent.content';\nimport {\n useResetPasswordSchema,\n type ResetPassword,\n} from './useResetPasswordSchema';\n\ntype ForgotPasswordFormProps = {\n email?: string;\n onSubmitSuccess: (data: ResetPassword) => Promise<void>;\n onClickBackToLogin: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ResetPasswordForm: FC<ForgotPasswordFormProps> = ({\n email,\n onSubmitSuccess,\n onSubmitError,\n onClickBackToLogin,\n}) => {\n const ResetPasswordSchema = useResetPasswordSchema();\n const {\n emailInput,\n sendRecoveryEmailButton,\n resendRecoveryEmailButton,\n resendInText,\n backToLoginButton,\n } = useDictionary(resetPasswordContent);\n const { form, isSubmitting, isSubmitted, isValid } = useForm(\n ResetPasswordSchema,\n {\n defaultValues: { email },\n }\n );\n const [submissionState, setSubmissionState] = useState({\n isFrozen: isValid,\n remainingTime: 0,\n });\n\n useEffect(() => {\n // If form valid and form is not submitted, unfreeze the submission\n if (isValid && !isSubmitted) {\n setSubmissionState((prevState) => ({\n ...prevState,\n isFrozen: false,\n }));\n }\n }, [isSubmitted, isValid]);\n\n useEffect(() => {\n // If form valid and submission is frozen and there is remaining time, start the timer\n if (\n isValid &&\n submissionState.isFrozen &&\n submissionState.remainingTime > 0\n ) {\n const interval = setInterval(() => {\n setSubmissionState((prevState) => {\n if (prevState.remainingTime <= 1) {\n clearInterval(interval); // Stop the timer when reaching 0\n return { ...prevState, isFrozen: false, remainingTime: 0 };\n }\n return { ...prevState, remainingTime: prevState.remainingTime - 1 };\n });\n }, 1000);\n\n return () => clearInterval(interval);\n }\n }, [isValid, submissionState.isFrozen, submissionState.remainingTime]);\n\n const getSubmitButtonText = (): ReactNode => {\n if (submissionState.remainingTime > 0) {\n return `${resendInText} ${submissionState.remainingTime}s`;\n }\n return isSubmitted\n ? resendRecoveryEmailButton.text\n : sendRecoveryEmailButton.text;\n };\n\n return (\n <Form\n schema={ResetPasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\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 minLength={5}\n maxLength={50}\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 || submissionState.isFrozen}\n variant={isSubmitted ? 'outline' : 'default'}\n label={sendRecoveryEmailButton.ariaLabel}\n >\n {getSubmitButtonText()}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToLoginButton.text}\n onClick={onClickBackToLogin}\n >\n {backToLoginButton.text}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;AAmBO,MAAM,oBAAiD,CAAC;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,sBAAsB,uBAAuB;AAC7C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,oBAAoB;AACtC,QAAM,EAAE,MAAM,cAAc,aAAa,QAAY,IAAA;AAAA,IACnD;AAAA,IACA;AAAA,MACE,eAAe,EAAE,MAAM;AAAA,IAAA;AAAA,EAE3B;AACA,QAAM,CAAC,iBAAiB,kBAAkB,IAAI,SAAS;AAAA,IACrD,UAAU;AAAA,IACV,eAAe;AAAA,EAAA,CAChB;AAED,YAAU,MAAM;AAEV,QAAA,WAAW,CAAC,aAAa;AAC3B,yBAAmB,CAAC,eAAe;AAAA,QACjC,GAAG;AAAA,QACH,UAAU;AAAA,MAAA,EACV;AAAA,IAAA;AAAA,EACJ,GACC,CAAC,aAAa,OAAO,CAAC;AAEzB,YAAU,MAAM;AAEd,QACE,WACA,gBAAgB,YAChB,gBAAgB,gBAAgB,GAChC;AACM,YAAA,WAAW,YAAY,MAAM;AACjC,2BAAmB,CAAC,cAAc;AAC5B,cAAA,UAAU,iBAAiB,GAAG;AAChC,0BAAc,QAAQ;AACtB,mBAAO,EAAE,GAAG,WAAW,UAAU,OAAO,eAAe,EAAE;AAAA,UAAA;AAE3D,iBAAO,EAAE,GAAG,WAAW,eAAe,UAAU,gB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ources":["../../../../src/components/Auth/ResetPasswordForm/ResetPasswordForm.tsx"],"sourcesContent":["'use client';\n\nimport { useState, type FC, useEffect, type ReactNode } from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport { Form, useForm } from '../../Form';\nimport { resetPasswordContent } from './resetPasswordContent.content';\nimport {\n useResetPasswordSchema,\n type ResetPassword,\n} from './useResetPasswordSchema';\n\ntype ForgotPasswordFormProps = {\n email?: string;\n onSubmitSuccess: (data: ResetPassword) => Promise<void>;\n onClickBackToLogin: () => void;\n onSubmitError?: (error: Error) => void;\n};\n\nexport const ResetPasswordForm: FC<ForgotPasswordFormProps> = ({\n email,\n onSubmitSuccess,\n onSubmitError,\n onClickBackToLogin,\n}) => {\n const ResetPasswordSchema = useResetPasswordSchema();\n const {\n emailInput,\n sendRecoveryEmailButton,\n resendRecoveryEmailButton,\n resendInText,\n backToLoginButton,\n } = useDictionary(resetPasswordContent);\n const { form, isSubmitting, isSubmitted, isValid } = useForm(\n ResetPasswordSchema,\n {\n defaultValues: { email },\n }\n );\n const [submissionState, setSubmissionState] = useState({\n isFrozen: isValid,\n remainingTime: 0,\n });\n\n useEffect(() => {\n // If form valid and form is not submitted, unfreeze the submission\n if (isValid && !isSubmitted) {\n setSubmissionState((prevState) => ({\n ...prevState,\n isFrozen: false,\n }));\n }\n }, [isSubmitted, isValid]);\n\n useEffect(() => {\n // If form valid and submission is frozen and there is remaining time, start the timer\n if (\n isValid &&\n submissionState.isFrozen &&\n submissionState.remainingTime > 0\n ) {\n const interval = setInterval(() => {\n setSubmissionState((prevState) => {\n if (prevState.remainingTime <= 1) {\n clearInterval(interval); // Stop the timer when reaching 0\n return { ...prevState, isFrozen: false, remainingTime: 0 };\n }\n return { ...prevState, remainingTime: prevState.remainingTime - 1 };\n });\n }, 1000);\n\n return () => clearInterval(interval);\n }\n }, [isValid, submissionState.isFrozen, submissionState.remainingTime]);\n\n const getSubmitButtonText = (): ReactNode => {\n if (submissionState.remainingTime > 0) {\n return `${resendInText} ${submissionState.remainingTime}s`;\n }\n return isSubmitted\n ? resendRecoveryEmailButton.text.value\n : sendRecoveryEmailButton.text.value;\n };\n\n return (\n <Form\n schema={ResetPasswordSchema}\n onSubmitSuccess={onSubmitSuccess}\n onSubmitError={onSubmitError}\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 minLength={5}\n maxLength={50}\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 || submissionState.isFrozen}\n variant={isSubmitted ? 'outline' : 'default'}\n label={sendRecoveryEmailButton.ariaLabel.value}\n >\n {getSubmitButtonText()}\n </Form.Button>\n {isSubmitted && (\n <Form.Button\n className=\"mt-4 w-full\"\n label={backToLoginButton.text.value}\n onClick={onClickBackToLogin}\n >\n {backToLoginButton.text.value}\n </Form.Button>\n )}\n </Form>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;AAkBO,MAAM,oBAAiD,CAAC;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,sBAAsB,uBAAuB;AAC7C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE,cAAc,oBAAoB;AACtC,QAAM,EAAE,MAAM,cAAc,aAAa,QAAY,IAAA;AAAA,IACnD;AAAA,IACA;AAAA,MACE,eAAe,EAAE,MAAM;AAAA,IAAA;AAAA,EAE3B;AACA,QAAM,CAAC,iBAAiB,kBAAkB,IAAI,SAAS;AAAA,IACrD,UAAU;AAAA,IACV,eAAe;AAAA,EAAA,CAChB;AAED,YAAU,MAAM;AAEV,QAAA,WAAW,CAAC,aAAa;AAC3B,yBAAmB,CAAC,eAAe;AAAA,QACjC,GAAG;AAAA,QACH,UAA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AAAA,YACX,UAAU,CAAC,WAAW,gBAAgB;AAAA,YACtC,SAAS,cAAc,YAAY;AAAA,YACnC,OAAO,wBAAwB,UAAU;AAAA,YAExC,UAAoB,oBAAA;AAAA,UAAA;AAAA,QACvB;AAAA,QACC,eACCA,kCAAA;AAAA,UAAC,KAAK;AAAA,UAAL;AAAA,YACC,WAAU;AAAA,YACV,OAAO,kBAAkB,KAAK;AAAA,YAC9B,SAAS;AAAA,YAER,4BAAkB,KAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MAC1B;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
@@ -2,19 +2,117 @@ export declare const resetPasswordContent: {
2
2
  key: string;
3
3
  content: {
4
4
  emailInput: {
5
- label: import('@intlayer/core').TranslationContent<string>;
6
- placeholder: import('@intlayer/core').TranslationContent<string>;
5
+ label: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
6
+ en: string;
7
+ fr: string;
8
+ es: string;
9
+ 'en-GB': 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
+ placeholder: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
21
+ en: string;
22
+ fr: string;
23
+ es: string;
24
+ 'en-GB': 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
  sendRecoveryEmailButton: {
9
- text: import('@intlayer/core').TranslationContent<string>;
10
- ariaLabel: import('@intlayer/core').TranslationContent<string>;
37
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
38
+ en: string;
39
+ fr: string;
40
+ es: string;
41
+ 'en-GB': 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
+ ariaLabel: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
53
+ en: string;
54
+ fr: string;
55
+ es: string;
56
+ 'en-GB': 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
  resendRecoveryEmailButton: {
13
- text: import('@intlayer/core').TranslationContent<string>;
69
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
70
+ en: string;
71
+ fr: string;
72
+ es: string;
73
+ 'en-GB': 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
+ }>;
14
84
  };
15
- resendInText: import('@intlayer/core').TranslationContent<string>;
85
+ resendInText: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
86
+ en: string;
87
+ fr: string;
88
+ es: string;
89
+ 'en-GB': string;
90
+ de: string;
91
+ ja: string;
92
+ ko: string;
93
+ zh: string;
94
+ it: string;
95
+ pt: string;
96
+ hi: string;
97
+ ar: string;
98
+ ru: string;
99
+ }>;
16
100
  backToLoginButton: {
17
- text: import('@intlayer/core').TranslationContent<string>;
101
+ text: import('@intlayer/core').TypedNodeModel<import("@intlayer/core").NodeType.Translation, {
102
+ en: string;
103
+ fr: string;
104
+ es: string;
105
+ 'en-GB': 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
+ }>;
18
116
  };
19
117
  };
20
118
  };
@@ -1 +1 @@
1
- {"version":3,"file":"resetPasswordContent.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;CAqHX,CAAC"}
1
+ {"version":3,"file":"resetPasswordContent.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useResetPasswordSchema.cjs","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { useResetPasswordSchemaContent } from './useResetPasswordSchema.content';\n\nexport const useResetPasswordSchema = () => {\n const { requiredErrorEmail, invalidTypeErrorEmail, invalidLengthErrorEmail } =\n useDictionary(useResetPasswordSchemaContent, undefined, false);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidLengthErrorEmail }),\n });\n};\n\nexport type ResetPassword = z.infer<ReturnType<typeof useResetPasswordSchema>>;\n"],"names":["useDictionary","useResetPasswordSchemaContent","z"],"mappings":";;;;;AAKO,MAAM,yBAAyB,MAAM;AACpC,QAAA,EAAE,oBAAoB,uBAAuB,wBAAA,IACjDA,cAAAA,cAAcC,iEAAA,+BAA+B,QAAW,KAAK;AAE/D,SAAOC,IAAAA,EAAE,OAAO;AAAA,IACd,OAAOA,MACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,wBAAyB,CAAA;AAAA,EAAA,CAC/C;AACH;;"}
1
+ {"version":3,"file":"useResetPasswordSchema.cjs","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"],"sourcesContent":["import { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { useResetPasswordSchemaContent } from './useResetPasswordSchema.content';\n\nexport const useResetPasswordSchema = () => {\n const { requiredErrorEmail, invalidTypeErrorEmail, invalidLengthErrorEmail } =\n useDictionary(useResetPasswordSchemaContent, undefined, false);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidLengthErrorEmail }),\n });\n};\n\nexport type ResetPassword = z.infer<ReturnType<typeof useResetPasswordSchema>>;\n"],"names":["useDictionary","useResetPasswordSchemaContent","z"],"mappings":";;;;;AAIO,MAAM,yBAAyB,MAAM;AACpC,QAAA,EAAE,oBAAoB,uBAAuB,wBAAA,IACjDA,cAAAA,cAAcC,iEAAA,+BAA+B,QAAW,KAAK;AAE/D,SAAOC,IAAAA,EAAE,OAAO;AAAA,IACd,OAAOA,MACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,wBAAyB,CAAA;AAAA,EAAA,CAC/C;AACH;;"}
@@ -1,9 +1,51 @@
1
1
  export declare const useResetPasswordSchemaContent: {
2
2
  key: string;
3
3
  content: {
4
- requiredErrorEmail: import('@intlayer/core').TranslationContent<string>;
5
- invalidTypeErrorEmail: import('@intlayer/core').TranslationContent<string>;
6
- invalidLengthErrorEmail: 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
+ invalidLengthErrorEmail: 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
+ }>;
7
49
  };
8
50
  };
9
51
  export default useResetPasswordSchemaContent;
@@ -1 +1 @@
1
- {"version":3,"file":"useResetPasswordSchema.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B;;;;;;;CAmDpB,CAAC;AAEvB,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"useResetPasswordSchema.content.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDpB,CAAC;AAEvB,eAAe,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useResetPasswordSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;;;EAYlC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"useResetPasswordSchema.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;;;EAYlC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useResetPasswordSchema.mjs","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"],"sourcesContent":["// @ts-ignore react-intlayer not build yet\nimport { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { useResetPasswordSchemaContent } from './useResetPasswordSchema.content';\n\nexport const useResetPasswordSchema = () => {\n const { requiredErrorEmail, invalidTypeErrorEmail, invalidLengthErrorEmail } =\n useDictionary(useResetPasswordSchemaContent, undefined, false);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidLengthErrorEmail }),\n });\n};\n\nexport type ResetPassword = z.infer<ReturnType<typeof useResetPasswordSchema>>;\n"],"names":[],"mappings":";;;AAKO,MAAM,yBAAyB,MAAM;AACpC,QAAA,EAAE,oBAAoB,uBAAuB,wBAAA,IACjD,cAAc,+BAA+B,QAAW,KAAK;AAE/D,SAAO,EAAE,OAAO;AAAA,IACd,OAAO,EACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,wBAAyB,CAAA;AAAA,EAAA,CAC/C;AACH;"}
1
+ {"version":3,"file":"useResetPasswordSchema.mjs","sources":["../../../../src/components/Auth/ResetPasswordForm/useResetPasswordSchema.ts"],"sourcesContent":["import { useDictionary } from 'react-intlayer';\nimport { z } from 'zod';\nimport { useResetPasswordSchemaContent } from './useResetPasswordSchema.content';\n\nexport const useResetPasswordSchema = () => {\n const { requiredErrorEmail, invalidTypeErrorEmail, invalidLengthErrorEmail } =\n useDictionary(useResetPasswordSchemaContent, undefined, false);\n\n return z.object({\n email: z\n .string({\n required_error: requiredErrorEmail,\n invalid_type_error: invalidTypeErrorEmail,\n })\n .min(1, { message: invalidLengthErrorEmail }),\n });\n};\n\nexport type ResetPassword = z.infer<ReturnType<typeof useResetPasswordSchema>>;\n"],"names":[],"mappings":";;;AAIO,MAAM,yBAAyB,MAAM;AACpC,QAAA,EAAE,oBAAoB,uBAAuB,wBAAA,IACjD,cAAc,+BAA+B,QAAW,KAAK;AAE/D,SAAO,EAAE,OAAO;AAAA,IACd,OAAO,EACJ,OAAO;AAAA,MACN,gBAAgB;AAAA,MAChB,oBAAoB;AAAA,IACrB,CAAA,EACA,IAAI,GAAG,EAAE,SAAS,wBAAyB,CAAA;AAAA,EAAA,CAC/C;AACH;"}
@@ -40,8 +40,8 @@ const SignInForm = ({
40
40
  components_Form_layout_FormItemLayout.Form.Input,
41
41
  {
42
42
  name: "email",
43
- label: emailInput.label,
44
- placeholder: emailInput.placeholder,
43
+ label: emailInput.label.value,
44
+ placeholder: emailInput.placeholder.value,
45
45
  isRequired: true,
46
46
  autoComplete: "email"
47
47
  }
@@ -50,8 +50,8 @@ const SignInForm = ({
50
50
  components_Form_layout_FormItemLayout.Form.InputPassword,
51
51
  {
52
52
  name: "password",
53
- label: passwordInput.label,
54
- placeholder: passwordInput.placeholder,
53
+ label: passwordInput.label.value,
54
+ placeholder: passwordInput.placeholder.value,
55
55
  isRequired: true,
56
56
  autoComplete: "current-password"
57
57
  }
@@ -62,7 +62,7 @@ const SignInForm = ({
62
62
  {
63
63
  className: "ml-auto mt-2 block",
64
64
  variant: "link",
65
- label: forgotPasswordLink.ariaLabel,
65
+ label: forgotPasswordLink.ariaLabel.value,
66
66
  color: "text",
67
67
  size: "sm",
68
68
  onClick: onClickForgotPassword,
@@ -76,7 +76,7 @@ const SignInForm = ({
76
76
  type: "submit",
77
77
  color: "text",
78
78
  isLoading: isSubmitting,
79
- label: loginButton.ariaLabel,
79
+ label: loginButton.ariaLabel.value,
80
80
  children: loginButton.text
81
81
  }
82
82
  ),
@@ -86,7 +86,7 @@ const SignInForm = ({
86
86
  components_Form_layout_FormItemLayout.Form.Button,
87
87
  {
88
88
  variant: "link",
89
- label: signUpLink.ariaLabel,
89
+ label: signUpLink.ariaLabel.value,
90
90
  color: "text",
91
91
  size: "sm",
92
92
  onClick: onClickSignUp,
@@ -1 +1 @@
1
- {"version":3,"file":"SignInForm.cjs","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":["useSignInSchema","useForm","useDictionary","signInContent","jsxs","Fragment","Form","jsx","ExternalsLoginButtons"],"mappings":";;;;;;;;;;;AAiBO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,eAAeA,2CAAAA,gBAAgB;AACrC,QAAM,EAAE,MAAM,iBAAiBC,yBAAAA,QAAQ,YAAY;AAC7C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEC,cAAAA,cAAcC,0CAAAA,aAAa;AAE/B,SAEIC,2BAAA,kBAAA,KAAAC,uCAAA,EAAA,UAAA;AAAA,IAAAD,2BAAA,kBAAA;AAAA,MAACE,sCAAA;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR;AAAA,QACA;AAAA,QACA,cAAY;AAAA,QACZ,WAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAA;AAAA,UAACF,2BAAAA,kBAAAA,KAAA,OAAA,EAAI,WAAU,yBAC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,CAAA;AAAA,EAAA,GACzB;AAEJ;;"}
1
+ {"version":3,"file":"SignInForm.cjs","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":["useSignInSchema","useForm","useDictionary","signInContent","jsxs","Fragment","Form","jsx","ExternalsLoginButtons"],"mappings":";;;;;;;;;;;AAgBO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,eAAeA,2CAAAA,gBAAgB;AACrC,QAAM,EAAE,MAAM,iBAAiBC,yBAAAA,QAAQ,YAAY;AAC7C,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACEC,cAAAA,cAAcC,0CAAAA,aAAa;AAE/B,SAEIC,2BAAA,kBAAA,KAAAC,uCAAA,EAAA,UAAA;AAAA,IAAAD,2BAAA,kBAAA;AAAA,MAACE,sCAAA;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR;AAAA,QACA;AAAA,QACA,cAAY;AAAA,QACZ,WAAU;AAAA,QACT,GAAG;AAAA,QAEJ,UAAA;AAAA,UAACF,2BAAAA,kBAAAA,KAAA,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,YAAAG,2BAAA,kBAAA;AAAA,cAACD,sCAAAA,KAAK;AAAA,cAAL;AAAA,gBACC,MAAK;AAAA,gBACL,OAAO,WAAW,MAAM;AAAA,gBACxB,aAAa,WAAW,YAAY;AAAA,gBACpC,YAAU;AAAA,gBACV,cAAa;AAAA,cAAA;AAAA,YACf;AAAA,YAEAC,2BAAA,kBAAA;AAAA,cAACD,sCAAAA,KAAK;AAAA,cAAL;AAAA,gBACC,MAAK;AAAA,gBACL,OAAO,cAAc,MAAM;AAAA,gBAC3B,aAAa,cAAc,YAAY;AAAA,gBACvC,YAAU;AAAA,gBACV,cAAa;AAAA,cAAA;AAAA,YAAA;AAAA,UACf,GACF;AAAA,UAEAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,WAAU;AAAA,cACV,SAAQ;AAAA,cACR,OAAO,mBAAmB,UAAU;AAAA,cACpC,OAAM;AAAA,cACN,MAAK;AAAA,cACL,SAAS;AAAA,cAER,UAAmB,mBAAA;AAAA,YAAA;AAAA,UACtB;AAAA,UAEAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,KAAK;AAAA,YAAL;AAAA,cACC,WAAU;AAAA,cACV,MAAK;AAAA,cACL,OAAM;AAAA,cACN,WAAW;AAAA,cACX,OAAO,YAAY,UAAU;AAAA,cAE5B,UAAY,YAAA;AAAA,YAAA;AAAA,UACf;AAAA,UAEAF,2BAAAA,kBAAAA,KAAC,QAAK,EAAA,WAAU,mGACb,UAAA;AAAA,YAAW,WAAA;AAAA,YACZG,2BAAA,kBAAA;AAAA,cAACD,sCAAAA,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,qDACCE,4DAAsB,uBAAA,CAAA,CAAA;AAAA,EAAA,GACzB;AAEJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/SignInForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,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,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiF1C,CAAC"}
1
+ {"version":3,"file":"SignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignInForm/SignInForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,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,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiF1C,CAAC"}