@intlayer/design-system 4.1.4 → 4.1.5

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 (82) hide show
  1. package/dist/.vite/manifest.json +58 -11
  2. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +1 -1
  3. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +1 -1
  4. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +2 -1
  5. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  6. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
  7. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +3 -2
  8. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  9. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs +181 -179
  10. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs.map +1 -1
  11. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts +25 -21
  12. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts.map +1 -1
  13. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs +181 -178
  14. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs.map +1 -1
  15. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs +79 -0
  16. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs.map +1 -0
  17. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts +10 -0
  18. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts.map +1 -0
  19. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs +79 -0
  20. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs.map +1 -0
  21. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs +8 -0
  22. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs.map +1 -0
  23. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.d.ts +4 -0
  24. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.d.ts.map +1 -0
  25. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.mjs +8 -0
  26. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.mjs.map +1 -0
  27. package/dist/components/Auth/VerifyEmailForm/index.cjs +5 -0
  28. package/dist/components/Auth/VerifyEmailForm/index.cjs.map +1 -0
  29. package/dist/components/Auth/VerifyEmailForm/index.content.cjs +73 -0
  30. package/dist/components/Auth/VerifyEmailForm/index.content.cjs.map +1 -0
  31. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts +15 -0
  32. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts.map +1 -0
  33. package/dist/components/Auth/VerifyEmailForm/index.content.mjs +74 -0
  34. package/dist/components/Auth/VerifyEmailForm/index.content.mjs.map +1 -0
  35. package/dist/components/Auth/VerifyEmailForm/index.d.ts +2 -0
  36. package/dist/components/Auth/VerifyEmailForm/index.d.ts.map +1 -0
  37. package/dist/components/Auth/VerifyEmailForm/index.mjs +5 -0
  38. package/dist/components/Auth/VerifyEmailForm/index.mjs.map +1 -0
  39. package/dist/components/Auth/index.cjs +2 -0
  40. package/dist/components/Auth/index.cjs.map +1 -1
  41. package/dist/components/Auth/index.d.ts +1 -0
  42. package/dist/components/Auth/index.d.ts.map +1 -1
  43. package/dist/components/Auth/index.mjs +2 -0
  44. package/dist/components/Auth/index.mjs.map +1 -1
  45. package/dist/components/Auth/useAuth/useCSRF.d.ts +1 -1
  46. package/dist/components/Auth/useAuth/useOAuth2.d.ts +1 -1
  47. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +4 -1
  48. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  49. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +4 -1
  50. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  51. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +5 -1
  52. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  53. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +5 -1
  54. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  55. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +3 -1
  56. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  57. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +3 -1
  58. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  59. package/dist/components/index.cjs +2 -0
  60. package/dist/components/index.cjs.map +1 -1
  61. package/dist/components/index.mjs +2 -0
  62. package/dist/components/index.mjs.map +1 -1
  63. package/dist/hooks/intlayerAPIHooks.d.ts +48 -48
  64. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  65. package/dist/hooks/useGetAllDictionaries.d.ts +1 -1
  66. package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -1
  67. package/dist/hooks/useIntlayerAPI.d.ts +59 -58
  68. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  69. package/dist/index-B0Lvoony.js +712 -0
  70. package/dist/index-B0Lvoony.js.map +1 -0
  71. package/dist/index-CKhNmnU1.cjs +711 -0
  72. package/dist/index-CKhNmnU1.cjs.map +1 -0
  73. package/dist/navigation-CE0LMHcY.cjs +8538 -0
  74. package/dist/navigation-CE0LMHcY.cjs.map +1 -0
  75. package/dist/navigation-DFabQmdZ.js +914 -0
  76. package/dist/navigation-DFabQmdZ.js.map +1 -0
  77. package/dist/navigation-DRtAVQJF.js +8521 -0
  78. package/dist/navigation-DRtAVQJF.js.map +1 -0
  79. package/dist/navigation-a7EfWhxz.cjs +913 -0
  80. package/dist/navigation-a7EfWhxz.cjs.map +1 -0
  81. package/dist/tailwind.css +1 -1
  82. package/package.json +19 -19
@@ -51,10 +51,6 @@
51
51
  "src/components/Form/FormLabel.tsx"
52
52
  ]
53
53
  },
54
- "_index-Ai6eeqZH.js": {
55
- "file": "index-Ai6eeqZH.js",
56
- "name": "index"
57
- },
58
54
  "_index-B-adg6xa.js": {
59
55
  "file": "index-B-adg6xa.js",
60
56
  "name": "index",
@@ -65,8 +61,12 @@
65
61
  "src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx"
66
62
  ]
67
63
  },
68
- "_index-BbqOa6BU.cjs": {
69
- "file": "index-BbqOa6BU.cjs",
64
+ "_index-B0Lvoony.js": {
65
+ "file": "index-B0Lvoony.js",
66
+ "name": "index"
67
+ },
68
+ "_index-CKhNmnU1.cjs": {
69
+ "file": "index-CKhNmnU1.cjs",
70
70
  "name": "index"
71
71
  },
72
72
  "_index-Cg-S9ry9.cjs": {
@@ -243,7 +243,7 @@
243
243
  "isEntry": true,
244
244
  "imports": [
245
245
  "_jsx-runtime-CgFM7lM3.cjs",
246
- "_index-BbqOa6BU.cjs",
246
+ "_index-CKhNmnU1.cjs",
247
247
  "src/components/Button/Button.tsx",
248
248
  "src/components/Auth/ExternalsLoginButtons/assets/GithubLogo.tsx",
249
249
  "src/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.tsx",
@@ -419,6 +419,45 @@
419
419
  "src/components/Auth/SignUpForm/useSignUpSchema.content.ts"
420
420
  ]
421
421
  },
422
+ "src/components/Auth/VerifyEmailForm/VerifyEmailForm.tsx": {
423
+ "file": "components/Auth/VerifyEmailForm/VerifyEmailForm.cjs",
424
+ "name": "components/Auth/VerifyEmailForm/VerifyEmailForm",
425
+ "src": "src/components/Auth/VerifyEmailForm/VerifyEmailForm.tsx",
426
+ "isEntry": true,
427
+ "imports": [
428
+ "_jsx-runtime-CgFM7lM3.cjs",
429
+ "src/components/Button/Button.tsx",
430
+ "src/components/Form/FormBase.tsx",
431
+ "src/components/Form/FormField.tsx",
432
+ "_Form-CSMiPnjC.cjs",
433
+ "src/components/Headers/index.tsx",
434
+ "src/components/Loader/index.tsx",
435
+ "src/components/Auth/useUser/index.ts",
436
+ "src/components/Auth/VerifyEmailForm/index.content.ts",
437
+ "src/components/Auth/VerifyEmailForm/VerifyEmailSchema.ts"
438
+ ]
439
+ },
440
+ "src/components/Auth/VerifyEmailForm/VerifyEmailSchema.ts": {
441
+ "file": "components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs",
442
+ "name": "components/Auth/VerifyEmailForm/VerifyEmailSchema",
443
+ "src": "src/components/Auth/VerifyEmailForm/VerifyEmailSchema.ts",
444
+ "isEntry": true
445
+ },
446
+ "src/components/Auth/VerifyEmailForm/index.content.ts": {
447
+ "file": "components/Auth/VerifyEmailForm/index.content.cjs",
448
+ "name": "components/Auth/VerifyEmailForm/index.content",
449
+ "src": "src/components/Auth/VerifyEmailForm/index.content.ts",
450
+ "isEntry": true
451
+ },
452
+ "src/components/Auth/VerifyEmailForm/index.tsx": {
453
+ "file": "components/Auth/VerifyEmailForm/index.cjs",
454
+ "name": "components/Auth/VerifyEmailForm/index",
455
+ "src": "src/components/Auth/VerifyEmailForm/index.tsx",
456
+ "isEntry": true,
457
+ "imports": [
458
+ "src/components/Auth/VerifyEmailForm/VerifyEmailForm.tsx"
459
+ ]
460
+ },
422
461
  "src/components/Auth/index.ts": {
423
462
  "file": "components/Auth/index.cjs",
424
463
  "name": "components/Auth/index",
@@ -438,7 +477,8 @@
438
477
  "src/components/Auth/useAuth/index.tsx",
439
478
  "src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx",
440
479
  "src/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.tsx",
441
- "src/components/Auth/useUser/index.ts"
480
+ "src/components/Auth/useUser/index.ts",
481
+ "src/components/Auth/VerifyEmailForm/VerifyEmailForm.tsx"
442
482
  ]
443
483
  },
444
484
  "src/components/Auth/useAuth/index.tsx": {
@@ -798,7 +838,7 @@
798
838
  "imports": [
799
839
  "_jsx-runtime-CgFM7lM3.cjs",
800
840
  "src/hooks/intlayerAPIHooks.ts",
801
- "_index-BbqOa6BU.cjs",
841
+ "_index-CKhNmnU1.cjs",
802
842
  "src/components/Button/Button.tsx",
803
843
  "src/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.ts",
804
844
  "src/components/Form/FormBase.tsx",
@@ -806,6 +846,7 @@
806
846
  "_Form-CSMiPnjC.cjs",
807
847
  "src/components/Auth/SignInForm/signIn.content.ts",
808
848
  "src/components/Auth/SignInForm/useSignInSchema.content.ts",
849
+ "src/components/Auth/SignUpForm/signUpForm.content.ts",
809
850
  "src/components/Auth/SignUpForm/useSignUpSchema.content.ts",
810
851
  "src/hooks/useScrollBlockage/useScrollBlockageStore.ts",
811
852
  "src/hooks/useAsync/useAsyncStateStore.tsx",
@@ -815,6 +856,7 @@
815
856
  "src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts",
816
857
  "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts",
817
858
  "src/components/Modal/Modal.tsx",
859
+ "src/components/Auth/VerifyEmailForm/index.content.ts",
818
860
  "src/components/Select/Multiselect.tsx",
819
861
  "src/components/Select/Select.tsx",
820
862
  "src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts",
@@ -852,7 +894,7 @@
852
894
  "src/hooks/useScrollBlockage/useScrollBlockageStore.ts",
853
895
  "src/hooks/useAsync/useAsyncStateStore.tsx",
854
896
  "src/hooks/intlayerAPIHooks.ts",
855
- "_index-BbqOa6BU.cjs",
897
+ "_index-CKhNmnU1.cjs",
856
898
  "src/components/Button/Button.tsx",
857
899
  "src/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.ts",
858
900
  "src/components/Form/FormBase.tsx",
@@ -860,6 +902,7 @@
860
902
  "_Form-CSMiPnjC.cjs",
861
903
  "src/components/Auth/SignInForm/signIn.content.ts",
862
904
  "src/components/Auth/SignInForm/useSignInSchema.content.ts",
905
+ "src/components/Auth/SignUpForm/signUpForm.content.ts",
863
906
  "src/components/Auth/SignUpForm/useSignUpSchema.content.ts",
864
907
  "src/components/Auth/useAuth/index.tsx",
865
908
  "src/components/Auth/ChangePasswordForm/changePasswordForm.content.ts",
@@ -868,6 +911,7 @@
868
911
  "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts",
869
912
  "src/components/Modal/Modal.tsx",
870
913
  "src/components/Loader/index.tsx",
914
+ "src/components/Auth/VerifyEmailForm/index.content.ts",
871
915
  "src/components/Select/Multiselect.tsx",
872
916
  "src/components/Select/Select.tsx",
873
917
  "src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx",
@@ -1058,7 +1102,7 @@
1058
1102
  "src/hooks/useAsync/useAsyncStateStore.tsx",
1059
1103
  "src/hooks/intlayerAPIHooks.ts",
1060
1104
  "src/hooks/useGetAllDictionaries.tsx",
1061
- "_index-BbqOa6BU.cjs",
1105
+ "_index-CKhNmnU1.cjs",
1062
1106
  "src/components/Button/Button.tsx",
1063
1107
  "src/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.ts",
1064
1108
  "src/components/Form/FormBase.tsx",
@@ -1066,6 +1110,7 @@
1066
1110
  "_Form-CSMiPnjC.cjs",
1067
1111
  "src/components/Auth/SignInForm/signIn.content.ts",
1068
1112
  "src/components/Auth/SignInForm/useSignInSchema.content.ts",
1113
+ "src/components/Auth/SignUpForm/signUpForm.content.ts",
1069
1114
  "src/components/Auth/SignUpForm/useSignUpSchema.content.ts",
1070
1115
  "src/components/Auth/useAuth/index.tsx",
1071
1116
  "src/components/Auth/ChangePasswordForm/changePasswordForm.content.ts",
@@ -1073,6 +1118,7 @@
1073
1118
  "src/components/Auth/ResetPasswordForm/resetPasswordContent.content.ts",
1074
1119
  "src/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.ts",
1075
1120
  "src/components/Modal/Modal.tsx",
1121
+ "src/components/Auth/VerifyEmailForm/index.content.ts",
1076
1122
  "src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx",
1077
1123
  "src/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.ts"
1078
1124
  ]
@@ -2552,6 +2598,7 @@
2552
2598
  "src/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.tsx",
2553
2599
  "src/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.tsx",
2554
2600
  "src/components/Auth/useUser/index.ts",
2601
+ "src/components/Auth/VerifyEmailForm/VerifyEmailForm.tsx",
2555
2602
  "src/components/Toaster/Toast.tsx",
2556
2603
  "src/components/Toaster/useToast.tsx",
2557
2604
  "src/components/Toaster/Toaster.tsx",
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("../../../jsx-runtime-CgFM7lM3.cjs");
5
5
  const reactIntlayer = require("react-intlayer");
6
- const index = require("../../../index-BbqOa6BU.cjs");
6
+ const index = require("../../../index-CKhNmnU1.cjs");
7
7
  require("@intlayer/config/client");
8
8
  const components_Button_Button = require("../../Button/Button.cjs");
9
9
  const components_Auth_ExternalsLoginButtons_assets_GithubLogo = require("./assets/GithubLogo.cjs");
@@ -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-Ai6eeqZH.js";
4
+ import { i as intlayerAPI } from "../../../index-B0Lvoony.js";
5
5
  import "@intlayer/config/client";
6
6
  import { Button } from "../../Button/Button.mjs";
7
7
  import { GithubLogo } from "./assets/GithubLogo.mjs";
@@ -2,6 +2,7 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("../../../jsx-runtime-CgFM7lM3.cjs");
5
+ const reactIntlayer = require("react-intlayer");
5
6
  const components_Form_FormBase = require("../../Form/FormBase.cjs");
6
7
  require("../../Form/FormField.cjs");
7
8
  const components_Form_layout_FormItemLayout = require("../../../Form-CSMiPnjC.cjs");
@@ -18,7 +19,7 @@ const SignUpForm = ({
18
19
  passwordConfirmationInput,
19
20
  signUpButton,
20
21
  loginLink
21
- } = components_Auth_SignUpForm_signUpForm_content.getSignUpContent();
22
+ } = reactIntlayer.useDictionary(components_Auth_SignUpForm_signUpForm_content);
22
23
  const SignUpSchema = components_Auth_SignUpForm_useSignUpSchema.useSignUpSchema();
23
24
  const { form, isSubmitting } = components_Form_FormBase.useForm(SignUpSchema);
24
25
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(
@@ -1 +1 @@
1
- {"version":3,"file":"SignUpForm.cjs","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"sourcesContent":["'use client';\n\nimport type { FC } from 'react';\nimport { Form, useForm } from '../../Form';\nimport { getSignUpContent } 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 } = getSignUpContent();\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":["getSignUpContent","useSignUpSchema","useForm","jsxs","Form","jsx"],"mappings":";;;;;;;;;AAaO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACEA,+DAAiB;AACrB,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;AAAA,cAClB,aAAa,WAAW;AAAA,cACxB,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;AAAA,cACrB,aAAa,cAAc;AAAA,cAC3B,cAAa;AAAA,cACb,YAAU;AAAA,YAAA;AAAA,UACZ;AAAA,UAEAC,2BAAA,kBAAA;AAAA,YAACD,sCAAAA,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,QAEAC,2BAAA,kBAAA;AAAA,UAACD,sCAAAA,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,2BAAAA,kBAAAA,KAAC,QAAK,EAAA,WAAU,4HACb,UAAA;AAAA,UAAU,UAAA;AAAA,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';\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,6CAAO;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,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 +1 @@
1
- {"version":3,"file":"SignUpForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,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"}
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;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,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"}
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
  import { j as jsxRuntimeExports } from "../../../jsx-runtime-DQkoUcjV.js";
3
+ import { useDictionary } from "react-intlayer";
3
4
  import { useForm } from "../../Form/FormBase.mjs";
4
5
  import "../../Form/FormField.mjs";
5
6
  import { F as Form } from "../../../Form-DlqjTz3u.js";
6
- import { getSignUpContent } from "./signUpForm.content.mjs";
7
+ import content from "./signUpForm.content.mjs";
7
8
  import { useSignUpSchema } from "./useSignUpSchema.mjs";
8
9
  const SignUpForm = ({
9
10
  onSubmitSuccess,
@@ -16,7 +17,7 @@ const SignUpForm = ({
16
17
  passwordConfirmationInput,
17
18
  signUpButton,
18
19
  loginLink
19
- } = getSignUpContent();
20
+ } = useDictionary(content);
20
21
  const SignUpSchema = useSignUpSchema();
21
22
  const { form, isSubmitting } = useForm(SignUpSchema);
22
23
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -1 +1 @@
1
- {"version":3,"file":"SignUpForm.mjs","sources":["../../../../src/components/Auth/SignUpForm/SignUpForm.tsx"],"sourcesContent":["'use client';\n\nimport type { FC } from 'react';\nimport { Form, useForm } from '../../Form';\nimport { getSignUpContent } 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 } = getSignUpContent();\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":";;;;;;;AAaO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACE,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE,iBAAiB;AACrB,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';\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;AACr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