@rocket.chat/onboarding-ui 0.37.0 → 0.37.2
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.
- package/dist/cjs/common/AgreeTermsField.js +2 -2
- package/dist/cjs/common/AgreeTermsField.js.map +1 -1
- package/dist/cjs/forms/AdminInfoForm/AdminInfoForm.d.ts.map +1 -1
- package/dist/cjs/forms/AdminInfoForm/AdminInfoForm.js +4 -4
- package/dist/cjs/forms/AdminInfoForm/AdminInfoForm.js.map +1 -1
- package/dist/cjs/forms/AwaitConfirmationForm/AwaitConfirmationForm.d.ts.map +1 -1
- package/dist/cjs/forms/AwaitConfirmationForm/AwaitConfirmationForm.js +1 -1
- package/dist/cjs/forms/AwaitConfirmationForm/AwaitConfirmationForm.js.map +1 -1
- package/dist/cjs/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.d.ts.map +1 -1
- package/dist/cjs/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.js +3 -3
- package/dist/cjs/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.js.map +1 -1
- package/dist/cjs/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.d.ts +3 -5
- package/dist/cjs/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.d.ts.map +1 -1
- package/dist/cjs/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.js +1 -5
- package/dist/cjs/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.js.map +1 -1
- package/dist/cjs/forms/CreateFirstMemberForm/CreateFirstMemberForm.d.ts.map +1 -1
- package/dist/cjs/forms/CreateFirstMemberForm/CreateFirstMemberForm.js +2 -2
- package/dist/cjs/forms/CreateFirstMemberForm/CreateFirstMemberForm.js.map +1 -1
- package/dist/cjs/forms/CreateNewPassword/CreateNewPassword.js +2 -2
- package/dist/cjs/forms/CreateNewPassword/CreateNewPassword.js.map +1 -1
- package/dist/cjs/forms/LoginForm/LoginForm.d.ts.map +1 -1
- package/dist/cjs/forms/LoginForm/LoginForm.js +4 -4
- package/dist/cjs/forms/LoginForm/LoginForm.js.map +1 -1
- package/dist/cjs/forms/LoginForm/LoginForm.styles.d.ts +1 -1
- package/dist/cjs/forms/LoginForm/LoginForm.styles.d.ts.map +1 -1
- package/dist/cjs/forms/NewAccountForm/NewAccountForm.js +2 -2
- package/dist/cjs/forms/NewAccountForm/NewAccountForm.js.map +1 -1
- package/dist/cjs/forms/OrganizationInfoForm/OrganizationInfoForm.d.ts.map +1 -1
- package/dist/cjs/forms/OrganizationInfoForm/OrganizationInfoForm.js +2 -2
- package/dist/cjs/forms/OrganizationInfoForm/OrganizationInfoForm.js.map +1 -1
- package/dist/cjs/forms/RegisterOfflineForm/RegisterOfflineForm.js +1 -1
- package/dist/cjs/forms/RegisterOfflineForm/RegisterOfflineForm.js.map +1 -1
- package/dist/cjs/forms/RegisterOfflineForm/steps/CopyStep.js +2 -2
- package/dist/cjs/forms/RegisterOfflineForm/steps/CopyStep.js.map +1 -1
- package/dist/cjs/forms/RegisterOfflineForm/steps/PasteStep.js +1 -1
- package/dist/cjs/forms/RegisterOfflineForm/steps/PasteStep.js.map +1 -1
- package/dist/cjs/forms/RegisterServerForm/RegisterServerForm.d.ts.map +1 -1
- package/dist/cjs/forms/RegisterServerForm/RegisterServerForm.js +2 -2
- package/dist/cjs/forms/RegisterServerForm/RegisterServerForm.js.map +1 -1
- package/dist/cjs/forms/RequestTrialForm/RequestTrialForm.js +1 -1
- package/dist/cjs/forms/RequestTrialForm/RequestTrialForm.js.map +1 -1
- package/dist/cjs/forms/ResetPasswordForm/ResetPasswordForm.js +2 -2
- package/dist/cjs/forms/ResetPasswordForm/ResetPasswordForm.js.map +1 -1
- package/dist/cjs/forms/TotpForm/TotpForm.d.ts.map +1 -1
- package/dist/cjs/forms/TotpForm/TotpForm.js +2 -2
- package/dist/cjs/forms/TotpForm/TotpForm.js.map +1 -1
- package/dist/cjs/forms/TotpForm/TotpForm.styles.d.ts +1 -1
- package/dist/cjs/forms/TotpForm/TotpForm.styles.d.ts.map +1 -1
- package/dist/cjs/pages/CreateCloudWorkspacePage/CreateCloudWorkspacePage.js +1 -1
- package/dist/cjs/pages/CreateCloudWorkspacePage/CreateCloudWorkspacePage.js.map +1 -1
- package/dist/cjs/pages/CreateCloudWorkspacePage/Description.js +1 -1
- package/dist/cjs/pages/CreateCloudWorkspacePage/Description.js.map +1 -1
- package/dist/cjs/pages/CreateNewPasswordPage/CreateNewPasswordPage.js +1 -1
- package/dist/cjs/pages/CreateNewPasswordPage/CreateNewPasswordPage.js.map +1 -1
- package/dist/cjs/pages/OauthAuthorizationPage/OauthAuthorizationPage.js +1 -1
- package/dist/cjs/pages/OauthAuthorizationPage/OauthAuthorizationPage.js.map +1 -1
- package/dist/cjs/pages/RequestTrialPage/Description.js +1 -1
- package/dist/cjs/pages/RequestTrialPage/Description.js.map +1 -1
- package/dist/cjs/pages/ResetPasswordPage/ResetPasswordPage.js +1 -1
- package/dist/cjs/pages/ResetPasswordPage/ResetPasswordPage.js.map +1 -1
- package/dist/esm/common/AgreeTermsField.js +2 -2
- package/dist/esm/common/AgreeTermsField.js.map +1 -1
- package/dist/esm/forms/AdminInfoForm/AdminInfoForm.d.ts.map +1 -1
- package/dist/esm/forms/AdminInfoForm/AdminInfoForm.js +4 -4
- package/dist/esm/forms/AdminInfoForm/AdminInfoForm.js.map +1 -1
- package/dist/esm/forms/AwaitConfirmationForm/AwaitConfirmationForm.d.ts.map +1 -1
- package/dist/esm/forms/AwaitConfirmationForm/AwaitConfirmationForm.js +1 -1
- package/dist/esm/forms/AwaitConfirmationForm/AwaitConfirmationForm.js.map +1 -1
- package/dist/esm/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.d.ts.map +1 -1
- package/dist/esm/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.js +3 -3
- package/dist/esm/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.js.map +1 -1
- package/dist/esm/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.d.ts +3 -5
- package/dist/esm/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.d.ts.map +1 -1
- package/dist/esm/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.js +1 -5
- package/dist/esm/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.js.map +1 -1
- package/dist/esm/forms/CreateFirstMemberForm/CreateFirstMemberForm.d.ts.map +1 -1
- package/dist/esm/forms/CreateFirstMemberForm/CreateFirstMemberForm.js +2 -2
- package/dist/esm/forms/CreateFirstMemberForm/CreateFirstMemberForm.js.map +1 -1
- package/dist/esm/forms/CreateNewPassword/CreateNewPassword.js +2 -2
- package/dist/esm/forms/CreateNewPassword/CreateNewPassword.js.map +1 -1
- package/dist/esm/forms/LoginForm/LoginForm.d.ts.map +1 -1
- package/dist/esm/forms/LoginForm/LoginForm.js +4 -4
- package/dist/esm/forms/LoginForm/LoginForm.js.map +1 -1
- package/dist/esm/forms/LoginForm/LoginForm.styles.d.ts +1 -1
- package/dist/esm/forms/LoginForm/LoginForm.styles.d.ts.map +1 -1
- package/dist/esm/forms/NewAccountForm/NewAccountForm.js +2 -2
- package/dist/esm/forms/NewAccountForm/NewAccountForm.js.map +1 -1
- package/dist/esm/forms/OrganizationInfoForm/OrganizationInfoForm.d.ts.map +1 -1
- package/dist/esm/forms/OrganizationInfoForm/OrganizationInfoForm.js +2 -2
- package/dist/esm/forms/OrganizationInfoForm/OrganizationInfoForm.js.map +1 -1
- package/dist/esm/forms/RegisterOfflineForm/RegisterOfflineForm.js +1 -1
- package/dist/esm/forms/RegisterOfflineForm/RegisterOfflineForm.js.map +1 -1
- package/dist/esm/forms/RegisterOfflineForm/steps/CopyStep.js +2 -2
- package/dist/esm/forms/RegisterOfflineForm/steps/CopyStep.js.map +1 -1
- package/dist/esm/forms/RegisterOfflineForm/steps/PasteStep.js +1 -1
- package/dist/esm/forms/RegisterOfflineForm/steps/PasteStep.js.map +1 -1
- package/dist/esm/forms/RegisterServerForm/RegisterServerForm.d.ts.map +1 -1
- package/dist/esm/forms/RegisterServerForm/RegisterServerForm.js +2 -2
- package/dist/esm/forms/RegisterServerForm/RegisterServerForm.js.map +1 -1
- package/dist/esm/forms/RequestTrialForm/RequestTrialForm.js +1 -1
- package/dist/esm/forms/RequestTrialForm/RequestTrialForm.js.map +1 -1
- package/dist/esm/forms/ResetPasswordForm/ResetPasswordForm.js +2 -2
- package/dist/esm/forms/ResetPasswordForm/ResetPasswordForm.js.map +1 -1
- package/dist/esm/forms/TotpForm/TotpForm.d.ts.map +1 -1
- package/dist/esm/forms/TotpForm/TotpForm.js +2 -2
- package/dist/esm/forms/TotpForm/TotpForm.js.map +1 -1
- package/dist/esm/forms/TotpForm/TotpForm.styles.d.ts +1 -1
- package/dist/esm/forms/TotpForm/TotpForm.styles.d.ts.map +1 -1
- package/dist/esm/pages/CreateCloudWorkspacePage/CreateCloudWorkspacePage.js +1 -1
- package/dist/esm/pages/CreateCloudWorkspacePage/CreateCloudWorkspacePage.js.map +1 -1
- package/dist/esm/pages/CreateCloudWorkspacePage/Description.js +1 -1
- package/dist/esm/pages/CreateCloudWorkspacePage/Description.js.map +1 -1
- package/dist/esm/pages/CreateNewPasswordPage/CreateNewPasswordPage.js +1 -1
- package/dist/esm/pages/CreateNewPasswordPage/CreateNewPasswordPage.js.map +1 -1
- package/dist/esm/pages/OauthAuthorizationPage/OauthAuthorizationPage.js +1 -1
- package/dist/esm/pages/OauthAuthorizationPage/OauthAuthorizationPage.js.map +1 -1
- package/dist/esm/pages/RequestTrialPage/Description.js +1 -1
- package/dist/esm/pages/RequestTrialPage/Description.js.map +1 -1
- package/dist/esm/pages/ResetPasswordPage/ResetPasswordPage.js +1 -1
- package/dist/esm/pages/ResetPasswordPage/ResetPasswordPage.js.map +1 -1
- package/package.json +8 -8
|
@@ -6,9 +6,9 @@ const react_hook_form_1 = require("react-hook-form");
|
|
|
6
6
|
const react_i18next_1 = require("react-i18next");
|
|
7
7
|
const AgreeTermsField = ({ agreementField, termsHref, policyHref, control, errors, }) => {
|
|
8
8
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(fuselage_1.Field, {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)(fuselage_1.Field, { marginBlockStart: '24px', children: [(0, jsx_runtime_1.jsxs)(fuselage_1.FieldRow, { justifyContent: 'initial', children: [(0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'agreement', control: control, rules: {
|
|
10
10
|
required: t('component.form.requiredField'),
|
|
11
|
-
}, render: ({ field: { ref, name, onBlur, onChange, value } }) => ((0, jsx_runtime_1.jsx)(fuselage_1.CheckBox, { ref: ref, id: agreementField, onChange: onChange, onBlur: onBlur, name: name, checked: value, "aria-describedby": `${agreementField}-error`, "aria-invalid": Boolean(errors.agreement), "aria-required": 'true' })) }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { display: 'inline', htmlFor: agreementField, withRichContent: true, required: true, fontScale: 'c1',
|
|
11
|
+
}, render: ({ field: { ref, name, onBlur, onChange, value } }) => ((0, jsx_runtime_1.jsx)(fuselage_1.CheckBox, { ref: ref, id: agreementField, onChange: onChange, onBlur: onBlur, name: name, checked: value, "aria-describedby": `${agreementField}-error`, "aria-invalid": Boolean(errors.agreement), "aria-required": 'true' })) }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { display: 'inline', htmlFor: agreementField, withRichContent: true, required: true, fontScale: 'c1', marginInlineStart: 4, children: (0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: 'component.form.termsAndConditions', children: ["I agree with", (0, jsx_runtime_1.jsx)(fuselage_1.Box, { is: 'a', href: termsHref, target: '_blank', rel: 'noopener noreferrer', children: "Terms and Conditions" }), "and", (0, jsx_runtime_1.jsx)(fuselage_1.Box, { is: 'a', href: policyHref, target: '_blank', rel: 'noopener noreferrer', children: "Privacy Policy" })] }) })] }), errors.agreement && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${agreementField}-error`, children: t('component.form.requiredField') }))] }));
|
|
12
12
|
};
|
|
13
13
|
exports.default = AgreeTermsField;
|
|
14
14
|
//# sourceMappingURL=AgreeTermsField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgreeTermsField.js","sourceRoot":"","sources":["../../../src/common/AgreeTermsField.tsx"],"names":[],"mappings":";;;AAAA,oDAO+B;AAC/B,qDAA6C;AAC7C,iDAAsD;AAUtD,MAAM,eAAe,GAAG,CAAC,EACvB,cAAc,EACd,SAAS,EACT,UAAU,EACV,OAAO,EACP,MAAM,GACc,EAAE,EAAE;IACxB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,OAAO,CACL,wBAAC,gBAAK,IAAC,
|
|
1
|
+
{"version":3,"file":"AgreeTermsField.js","sourceRoot":"","sources":["../../../src/common/AgreeTermsField.tsx"],"names":[],"mappings":";;;AAAA,oDAO+B;AAC/B,qDAA6C;AAC7C,iDAAsD;AAUtD,MAAM,eAAe,GAAG,CAAC,EACvB,cAAc,EACd,SAAS,EACT,UAAU,EACV,OAAO,EACP,MAAM,GACc,EAAE,EAAE;IACxB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,OAAO,CACL,wBAAC,gBAAK,IAAC,gBAAgB,EAAC,MAAM,aAC5B,wBAAC,mBAAQ,IAAC,cAAc,EAAC,SAAS,aAChC,uBAAC,4BAAU,IACT,IAAI,EAAC,WAAW,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE;4BACL,QAAQ,EAAE,CAAC,CAAC,8BAA8B,CAAC;yBAC5C,EACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,CAC7D,uBAAC,mBAAQ,IACP,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,cAAc,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,KAAK,sBACI,GAAG,cAAc,QAAQ,kBAC7B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,mBACzB,MAAM,GACpB,CACH,GACD,EACF,uBAAC,qBAAU,IACT,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,cAAc,EACvB,eAAe,QACf,QAAQ,QACR,SAAS,EAAC,IAAI,EACd,iBAAiB,EAAE,CAAC,YAEpB,wBAAC,qBAAK,IAAC,OAAO,EAAC,mCAAmC,6BAEhD,uBAAC,cAAG,IACF,EAAE,EAAC,GAAG,EACN,IAAI,EAAE,SAAS,EACf,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,qCAGrB,SAEN,uBAAC,cAAG,IACF,EAAE,EAAC,GAAG,EACN,IAAI,EAAE,UAAU,EAChB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,+BAGrB,IACA,GACG,IACJ,EACV,MAAM,CAAC,SAAS,IAAI,CACnB,uBAAC,qBAAU,iBAAW,WAAW,EAAC,EAAE,EAAE,GAAG,cAAc,QAAQ,YAC5D,CAAC,CAAC,8BAA8B,CAAC,GACvB,CACd,IACK,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminInfoForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/AdminInfoForm/AdminInfoForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdminInfoForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/AdminInfoForm/AdminInfoForm.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI/E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IACnD,gBAAgB,EAAE,QAAQ,CACxB,cAAc,CAAC,gBAAgB,EAAE,UAAU,CAAC,EAC5C,gBAAgB,CACjB,CAAC;IACF,aAAa,EAAE,QAAQ,CACrB,cAAc,CAAC,gBAAgB,EAAE,OAAO,CAAC,EACzC,gBAAgB,CACjB,CAAC;IACF,gBAAgB,EAAE,QAAQ,CACxB,cAAc,CAAC,gBAAgB,EAAE,UAAU,CAAC,EAC5C,gBAAgB,CACjB,CAAC;IACF,QAAQ,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;CAC3C,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,wIAUpB,kBAAkB,gCAwMpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -10,9 +10,9 @@ const AdminInfoForm = ({ currentStep, stepCount, passwordRulesHint, initialValue
|
|
|
10
10
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
11
11
|
const formId = (0, react_1.useId)();
|
|
12
12
|
const fullnameField = (0, react_1.useId)();
|
|
13
|
-
const usernameField = (0, react_1.useId)();
|
|
13
|
+
const usernameField = (0, react_1.useId)(); // lgtm [js/insecure-randomness]
|
|
14
14
|
const emailField = (0, react_1.useId)();
|
|
15
|
-
const passwordField = (0, react_1.useId)();
|
|
15
|
+
const passwordField = (0, react_1.useId)(); // lgtm [js/insecure-randomness]
|
|
16
16
|
const adminInfoFormRef = (0, react_1.useRef)(null);
|
|
17
17
|
const { register, handleSubmit, formState: { isValidating, isSubmitting, errors }, control, } = (0, react_hook_form_1.useForm)({
|
|
18
18
|
defaultValues: {
|
|
@@ -26,7 +26,7 @@ const AdminInfoForm = ({ currentStep, stepCount, passwordRulesHint, initialValue
|
|
|
26
26
|
adminInfoFormRef.current.focus();
|
|
27
27
|
}
|
|
28
28
|
}, []);
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { ref: adminInfoFormRef, tabIndex: -1, "aria-labelledby": `${formId}-title`, "aria-describedby": `${formId}-description`, onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsxs)(layout_1.
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { ref: adminInfoFormRef, tabIndex: -1, "aria-labelledby": `${formId}-title`, "aria-describedby": `${formId}-description`, onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsxs)(layout_1.FormHeader, { children: [(0, jsx_runtime_1.jsx)(layout_1.FormSteps, { currentStep: currentStep, stepCount: stepCount }), (0, jsx_runtime_1.jsx)(layout_1.FormTitle, { id: `${formId}-title`, children: t('form.adminInfoForm.title') }), (0, jsx_runtime_1.jsx)(layout_1.FormSubtitle, { id: `${formId}-description`, children: t('form.adminInfoForm.subtitle') })] }), (0, jsx_runtime_1.jsx)(layout_1.FormContainer, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.FieldGroup, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: fullnameField, children: t('form.adminInfoForm.fields.fullName.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'fullname', control: control, rules: { required: t('component.form.requiredField') }, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.TextInput, { ...field, "aria-describedby": `${fullnameField}-error}`, "aria-required": 'true', "aria-invalid": Boolean(errors.fullname), placeholder: t('form.adminInfoForm.fields.fullName.placeholder'), id: fullnameField })) }) }), errors.fullname && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${fullnameField}-error}`, children: errors.fullname.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: usernameField, children: t('form.adminInfoForm.fields.username.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'username', control: control, rules: {
|
|
30
30
|
required: t('component.form.requiredField'),
|
|
31
31
|
validate: validateUsername,
|
|
32
32
|
}, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.TextInput, { ...field, "aria-describedby": `${usernameField}-error}`, "aria-required": 'true', "aria-invalid": Boolean(errors.username), placeholder: t('form.adminInfoForm.fields.username.placeholder'), id: usernameField })) }) }), errors.username && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${usernameField}-error}`, children: errors.username.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: emailField, children: t('form.adminInfoForm.fields.email.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'email', control: control, rules: {
|
|
@@ -35,7 +35,7 @@ const AdminInfoForm = ({ currentStep, stepCount, passwordRulesHint, initialValue
|
|
|
35
35
|
}, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.EmailInput, { ...field, "aria-required": 'true', "aria-invalid": Boolean(errors.email), "aria-describedby": `${emailField}-error}`, placeholder: t('form.adminInfoForm.fields.email.placeholder'), id: emailField })) }) }), errors.email && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${emailField}-error}`, children: errors.email.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: passwordField, children: t('form.adminInfoForm.fields.password.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'password', control: control, rules: {
|
|
36
36
|
required: t('component.form.requiredField'),
|
|
37
37
|
validate: validatePassword,
|
|
38
|
-
}, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...field, "aria-required": 'true', "aria-invalid": Boolean(errors.password), "aria-describedby": `${passwordField}-hint ${passwordField}-error}`, placeholder: t('form.adminInfoForm.fields.password.placeholder'), id: passwordField })) }) }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldHint, { id: `${passwordField}-hint`, children: passwordRulesHint }), errors.password && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${passwordField}-error}`, children: errors.password.message }))] }), keepPosted && ((0, jsx_runtime_1.jsxs)(fuselage_1.Box, {
|
|
38
|
+
}, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...field, "aria-required": 'true', "aria-invalid": Boolean(errors.password), "aria-describedby": `${passwordField}-hint ${passwordField}-error}`, placeholder: t('form.adminInfoForm.fields.password.placeholder'), id: passwordField })) }) }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldHint, { id: `${passwordField}-hint`, children: passwordRulesHint }), errors.password && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${passwordField}-error}`, children: errors.password.message }))] }), keepPosted && ((0, jsx_runtime_1.jsxs)(fuselage_1.Box, { marginBlockEnd: 8, display: 'block', color: 'info', fontScale: 'c1', children: [(0, jsx_runtime_1.jsx)(fuselage_1.CheckBox, { id: 'keepPosted', marginInlineEnd: 8, ...register('keepPosted') }), (0, jsx_runtime_1.jsx)("label", { htmlFor: 'keepPosted', children: t('form.adminInfoForm.fields.keepPosted.label') })] }))] }) }), (0, jsx_runtime_1.jsx)(layout_1.FormFooter, { children: (0, jsx_runtime_1.jsx)(fuselage_1.ButtonGroup, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Button, { type: 'submit', primary: true, loading: isValidating || isSubmitting, children: t('component.form.action.next') }) }) })] }));
|
|
39
39
|
};
|
|
40
40
|
exports.default = AdminInfoForm;
|
|
41
41
|
//# sourceMappingURL=AdminInfoForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminInfoForm.js","sourceRoot":"","sources":["../../../../src/forms/AdminInfoForm/AdminInfoForm.tsx"],"names":[],"mappings":";;;AAAA,oDAc+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"AdminInfoForm.js","sourceRoot":"","sources":["../../../../src/forms/AdminInfoForm/AdminInfoForm.tsx"],"names":[],"mappings":";;;AAAA,oDAc+B;AAC/B,gDAQ6B;AAC7B,iCAAiD;AAEjD,qDAAsD;AACtD,iDAA+C;AA+B/C,MAAM,aAAa,GAAG,CAAC,EACrB,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,UAAU,GAAG,KAAK,EAClB,QAAQ,GACW,EAAE,EAAE;IACvB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,IAAA,aAAK,GAAE,CAAC;IACvB,MAAM,aAAa,GAAG,IAAA,aAAK,GAAE,CAAC;IAC9B,MAAM,aAAa,GAAG,IAAA,aAAK,GAAE,CAAC,CAAC,gCAAgC;IAC/D,MAAM,UAAU,GAAG,IAAA,aAAK,GAAE,CAAC;IAC3B,MAAM,aAAa,GAAG,IAAA,aAAK,GAAE,CAAC,CAAC,gCAA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X,uBAAC,oBAAS,IAAC,EAAE,EAAE,GAAG,aAAa,OAAO,YACnC,iBAAiB,GACR,EACX,MAAM,CAAC,QAAQ,IAAI,CAClB,uBAAC,qBAAU,iBAAW,WAAW,EAAC,EAAE,EAAE,GAAG,aAAa,SAAS,YAC5D,MAAM,CAAC,QAAQ,CAAC,OAAO,GACb,CACd,IACK,EACP,UAAU,IAAI,CACb,wBAAC,cAAG,IAAC,cAAc,EAAE,CAAC,EAAE,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,SAAS,EAAC,IAAI,aACjE,uBAAC,mBAAQ,IACP,EAAE,EAAC,YAAY,EACf,eAAe,EAAE,CAAC,KACd,QAAQ,CAAC,YAAY,CAAC,GAC1B,EACF,kCAAO,OAAO,EAAC,YAAY,YACxB,CAAC,CAAC,4CAA4C,CAAC,GAC1C,IACJ,CACP,IACU,GACC,EAChB,uBAAC,mBAAU,cACT,uBAAC,sBAAW,cACV,uBAAC,iBAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,QAAC,OAAO,EAAE,YAAY,IAAI,YAAY,YAChE,CAAC,CAAC,4BAA4B,CAAC,GACzB,GACG,GACH,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AwaitConfirmationForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/AwaitConfirmationForm/AwaitConfirmationForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AwaitConfirmationForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/AwaitConfirmationForm/AwaitConfirmationForm.tsx"],"names":[],"mappings":"AAaA,KAAK,6BAA6B,GAAG;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAAI,qGAO/B,6BAA6B,gCA0C/B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -10,7 +10,7 @@ const react_i18next_1 = require("react-i18next");
|
|
|
10
10
|
const EmailCodeFallback_1 = __importDefault(require("../../common/EmailCodeFallback"));
|
|
11
11
|
const AwaitingConfirmationForm = ({ currentStep, stepCount, securityCode, emailAddress, onResendEmailRequest, onChangeEmailRequest, }) => {
|
|
12
12
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { children: [(0, jsx_runtime_1.jsxs)(layout_1.
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { children: [(0, jsx_runtime_1.jsxs)(layout_1.FormHeader, { children: [(0, jsx_runtime_1.jsx)(layout_1.FormSteps, { currentStep: currentStep, stepCount: stepCount }), (0, jsx_runtime_1.jsx)(layout_1.FormTitle, { children: t('form.awaitConfirmationForm.title') })] }), (0, jsx_runtime_1.jsxs)(layout_1.FormContainer, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.Box, { fontScale: 'p2', marginBlockEnd: 24, children: (0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: 'form.awaitConfirmationForm.content.sentEmail', values: { emailAddress }, children: ["Email sent to ", (0, jsx_runtime_1.jsx)("strong", { children: emailAddress }), " with a confirmation link.Please verify that the security code below matches the one in the email."] }) }), (0, jsx_runtime_1.jsxs)(fuselage_1.Label, { display: 'block', children: [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: t('form.awaitConfirmationForm.content.securityCode') }), (0, jsx_runtime_1.jsx)(fuselage_1.Box, { padding: '12px', width: 'full', fontScale: 'p2b', lineHeight: '20px', backgroundColor: 'tint', elevation: '1', children: securityCode })] })] }), (0, jsx_runtime_1.jsx)(layout_1.FormFooter, { children: (0, jsx_runtime_1.jsx)(EmailCodeFallback_1.default, { onResendEmailRequest: onResendEmailRequest, onChangeEmailRequest: onChangeEmailRequest }) })] }));
|
|
14
14
|
};
|
|
15
15
|
exports.default = AwaitingConfirmationForm;
|
|
16
16
|
//# sourceMappingURL=AwaitConfirmationForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AwaitConfirmationForm.js","sourceRoot":"","sources":["../../../../src/forms/AwaitConfirmationForm/AwaitConfirmationForm.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"AwaitConfirmationForm.js","sourceRoot":"","sources":["../../../../src/forms/AwaitConfirmationForm/AwaitConfirmationForm.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAAmD;AACnD,gDAO6B;AAC7B,iDAAsD;AAEtD,uFAA+D;AAW/D,MAAM,wBAAwB,GAAG,CAAC,EAChC,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,GACU,EAAE,EAAE;IAClC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,OAAO,CACL,wBAAC,aAAI,eACH,wBAAC,mBAAU,eACT,uBAAC,kBAAS,IAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAI,EAC7D,uBAAC,kBAAS,cAAE,CAAC,CAAC,kCAAkC,CAAC,GAAa,IACnD,EACb,wBAAC,sBAAa,eACZ,uBAAC,cAAG,IAAC,SAAS,EAAC,IAAI,EAAC,cAAc,EAAE,EAAE,YACpC,wBAAC,qBAAK,IACJ,OAAO,EAAC,8CAA8C,EACtD,MAAM,EAAE,EAAE,YAAY,EAAE,+BAEV,6CAAS,YAAY,GAAU,0GAGvC,GACJ,EACN,wBAAC,gBAAK,IAAC,OAAO,EAAC,OAAO,aACpB,2DAAG,CAAC,CAAC,iDAAiD,CAAC,GAAI,EAC3D,uBAAC,cAAG,IACF,OAAO,EAAC,MAAM,EACd,KAAK,EAAC,MAAM,EACZ,SAAS,EAAC,KAAK,EACf,UAAU,EAAC,MAAM,EACjB,eAAe,EAAC,MAAM,EACtB,SAAS,EAAC,GAAG,YAEZ,YAAY,GACT,IACA,IACM,EAChB,uBAAC,mBAAU,cACT,uBAAC,2BAAiB,IAChB,oBAAoB,EAAE,oBAAoB,EAC1C,oBAAoB,EAAE,oBAAoB,GAC1C,GACS,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCloudWorkspaceForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAmB1D,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQ/E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,aAAa,CAAC,EAAE,+BAA+B,CAAC;IAChD,QAAQ,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IACzD,mBAAmB,EAAE,YAAY,EAAE,CAAC;IACpC,eAAe,EAAE,YAAY,EAAE,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,EAAE,QAAQ,CACnB,cAAc,CAAC,+BAA+B,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M,wBAAwB,GAAI,2HAStC,6BAA6B,gCAmN/B,CAAC;AAEF,OAAO,EAAE,wBAAwB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -19,13 +19,13 @@ const CreateCloudWorkspaceForm = ({ defaultValues, onSubmit, domain, serverRegio
|
|
|
19
19
|
const workspaceURL = fieldValue.replace(/[^a-zA-Z0-9-]/g, '').toLowerCase();
|
|
20
20
|
setValue('workspaceURL', workspaceURL, { shouldValidate: true });
|
|
21
21
|
};
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.FormHeader, { children: (0, jsx_runtime_1.jsx)(layout_1.FormTitle, { children: t('form.createCloudWorkspace.title') }) }), (0, jsx_runtime_1.jsxs)(fuselage_1.FieldGroup, { marginBlockStart: 16, children: [(0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.createCloudWorkspace.fields.orgEmaillabel') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.EmailInput, { ...register('organizationEmail', {
|
|
23
23
|
required: true,
|
|
24
24
|
validate: validateEmail,
|
|
25
|
-
}), defaultValue: defaultValues?.organizationEmail, error: errors?.organizationEmail?.type || undefined }) }), errors?.organizationEmail && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.organizationEmail.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Box, { display: 'inline',
|
|
25
|
+
}), defaultValue: defaultValues?.organizationEmail, error: errors?.organizationEmail?.type || undefined }) }), errors?.organizationEmail && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.organizationEmail.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Box, { display: 'inline', marginInlineEnd: 8, children: t('form.createCloudWorkspace.fields.workspaceNamelabel') }) }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.TextInput, { ...register('workspaceName', { required: true }), defaultValue: defaultValues?.workspaceName, error: errors?.workspaceName?.type || undefined, onBlur: onNameBlur }) }), errors.workspaceName && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Box, { display: 'inline', marginInlineEnd: 8, children: t('form.createCloudWorkspace.fields.workspaceUrllabel') }) }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(WorkspaceUrlInput_1.default, { domain: domain, ...register('workspaceURL', {
|
|
26
26
|
required: true,
|
|
27
27
|
validate: validateUrl,
|
|
28
|
-
}), defaultValue: defaultValues?.workspaceURL }) }), errors?.workspaceURL && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.workspaceURL.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Grid, {
|
|
28
|
+
}), defaultValue: defaultValues?.workspaceURL }) }), errors?.workspaceURL && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.workspaceURL.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Grid, { marginBlock: 16, children: [(0, jsx_runtime_1.jsx)(fuselage_1.Grid.Item, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.FieldLabel, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.Box, { display: 'inline', marginInlineEnd: 8, children: t('form.createCloudWorkspace.fields.serverRegionlabel') }), (0, jsx_runtime_1.jsx)(InformationTooltipTrigger_1.default, { text: t('form.createCloudWorkspace.fields.serverRegion.tooltip') })] }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'serverRegion', control: control, rules: { required: true }, defaultValue: defaultValues?.serverRegion, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: serverRegionOptions, placeholder: t('form.createCloudWorkspace.fields.serverRegionlabel') })) }) })] }) }), (0, jsx_runtime_1.jsx)(fuselage_1.Grid.Item, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.FieldLabel, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.Box, { display: 'inline', marginInlineEnd: 8, children: t('form.createCloudWorkspace.fields.languagelabel') }), (0, jsx_runtime_1.jsx)(InformationTooltipTrigger_1.default, { text: t('form.createCloudWorkspace.fields.language.tooltip') })] }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'language', control: control, rules: { required: true }, defaultValue: defaultValues?.language, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: languageOptions, placeholder: t('form.createCloudWorkspace.fields.languagelabel') })) }) })] }) })] }), (0, jsx_runtime_1.jsx)(fuselage_1.Divider, { marginBlock: 0 }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.FieldRow, { justifyContent: 'flex-start', children: [(0, jsx_runtime_1.jsx)(fuselage_1.CheckBox, { ...register('agreement', { required: true }), marginInlineEnd: 8 }), (0, jsx_runtime_1.jsx)(fuselage_1.Box, { is: 'label', htmlFor: 'agreement', withRichContent: true, fontScale: 'c1', children: (0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: 'component.form.termsAndConditions', children: ["I agree with", (0, jsx_runtime_1.jsx)("a", { href: 'https://rocket.chat/terms', target: '_blank', rel: 'noopener noreferrer', children: "Terms and Conditions" }), "and", (0, jsx_runtime_1.jsx)("a", { href: 'https://rocket.chat/privacy', target: '_blank', rel: 'noopener noreferrer', children: "Privacy Policy" })] }) })] }), errors.agreement?.type === 'required' && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsx)(fuselage_1.Field, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.FieldRow, { justifyContent: 'flex-start', children: [(0, jsx_runtime_1.jsx)(fuselage_1.CheckBox, { ...register('updates'), marginInlineEnd: 8 }), (0, jsx_runtime_1.jsx)(fuselage_1.Box, { fontScale: 'c1', children: t('form.createCloudWorkspace.fields.keepMeInformed') })] }) })] }), (0, jsx_runtime_1.jsx)(layout_1.FormFooter, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.ButtonGroup, { children: [onBackButtonClick && ((0, jsx_runtime_1.jsx)(fuselage_1.Button, { disabled: isSubmitting, onClick: onBackButtonClick, children: t('component.form.action.back') })), (0, jsx_runtime_1.jsx)(fuselage_1.Button, { type: 'submit', primary: true, disabled: !isValid, loading: isSubmitting || isValidating, children: t('component.form.action.next') })] }) })] }));
|
|
29
29
|
};
|
|
30
30
|
exports.CreateCloudWorkspaceForm = CreateCloudWorkspaceForm;
|
|
31
31
|
exports.default = exports.CreateCloudWorkspaceForm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateCloudWorkspaceForm.js","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":";;;;;;;AACA,oDAe+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"CreateCloudWorkspaceForm.js","s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IACL,IAAI,EAAC,QAAQ,EACb,OAAO,QACP,QAAQ,EAAE,CAAC,OAAO,EAClB,OAAO,EAAE,YAAY,IAAI,YAAY,YAEpC,CAAC,CAAC,4BAA4B,CAAC,GACzB,IACG,GACH,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AA5NW,QAAA,wBAAwB,4BA4NnC;AAEmC,kBA9NxB,gCAAwB,CA8NO"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { InputBoxProps } from '@rocket.chat/fuselage';
|
|
2
|
-
|
|
3
|
-
declare const WorkspaceUrlInput: import("react").ForwardRefExoticComponent<Omit<InputBoxProps, "type"> & {
|
|
4
|
-
addon?: ReactNode;
|
|
5
|
-
error?: string | undefined;
|
|
2
|
+
type WorkspaceUrlInputProps = Omit<InputBoxProps, 'type'> & {
|
|
6
3
|
domain: string;
|
|
7
|
-
}
|
|
4
|
+
};
|
|
5
|
+
declare const WorkspaceUrlInput: ({ domain, ...props }: WorkspaceUrlInputProps) => import("react").JSX.Element;
|
|
8
6
|
export default WorkspaceUrlInput;
|
|
9
7
|
//# sourceMappingURL=WorkspaceUrlInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceUrlInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkspaceUrlInput.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,KAAK,sBAAsB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,GAAG;IAC1D,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,iBAAiB,GAAI,sBAAsB,sBAAsB,gCAiBtE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
const fuselage_1 = require("@rocket.chat/fuselage");
|
|
5
|
-
const
|
|
6
|
-
const WorkspaceUrlInput = (0, react_1.forwardRef)(function TextInput(props, ref) {
|
|
7
|
-
const { domain } = props;
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(fuselage_1.InputBox, { type: 'text', ref: ref, ...props, addon: (0, jsx_runtime_1.jsx)(fuselage_1.Box, { borderInlineStart: '2px solid', mb: 'neg-x8', pb: 8, borderColor: 'neutral-500', color: 'info', pis: 12, children: domain }) }));
|
|
9
|
-
});
|
|
5
|
+
const WorkspaceUrlInput = ({ domain, ...props }) => ((0, jsx_runtime_1.jsx)(fuselage_1.InputBox, { type: 'text', ...props, endAddon: (0, jsx_runtime_1.jsx)(fuselage_1.Box, { borderInlineStart: '2px solid', marginBlock: 'neg-x8', paddingBlock: 8, borderColor: 'neutral-500', color: 'info', paddingInlineStart: 12, children: domain }) }));
|
|
10
6
|
exports.default = WorkspaceUrlInput;
|
|
11
7
|
//# sourceMappingURL=WorkspaceUrlInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceUrlInput.js","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.tsx"],"names":[],"mappings":";;;AACA,oDAAsD;
|
|
1
|
+
{"version":3,"file":"WorkspaceUrlInput.js","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/WorkspaceUrlInput.tsx"],"names":[],"mappings":";;;AACA,oDAAsD;AAMtD,MAAM,iBAAiB,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAA0B,EAAE,EAAE,CAAC,CAC1E,uBAAC,mBAAQ,IACP,IAAI,EAAC,MAAM,KACP,KAAK,EACT,QAAQ,EACN,uBAAC,cAAG,IACF,iBAAiB,EAAC,WAAW,EAC7B,WAAW,EAAC,QAAQ,EACpB,YAAY,EAAE,CAAC,EACf,WAAW,EAAC,aAAa,EACzB,KAAK,EAAC,MAAM,EACZ,kBAAkB,EAAE,EAAE,YAErB,MAAM,GACH,GAER,CACH,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateFirstMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateFirstMemberForm/CreateFirstMemberForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateFirstMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateFirstMemberForm/CreateFirstMemberForm.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI/E,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,CAAC,EAAE,4BAA4B,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC,4BAA4B,CAAC,CAAC;IACtD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,EAAE,QAAQ,CACxB,cAAc,CAAC,4BAA4B,EAAE,UAAU,CAAC,EACxD,4BAA4B,CAC7B,CAAC;IACF,gBAAgB,EAAE,QAAQ,CACxB,cAAc,CAAC,4BAA4B,EAAE,UAAU,CAAC,EACxD,4BAA4B,CAC7B,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,+HASnC,0BAA0B,gCAiF5B,CAAC;AAEF,OAAO,EAAE,qBAAqB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -9,13 +9,13 @@ const react_i18next_1 = require("react-i18next");
|
|
|
9
9
|
const CreateFirstMemberForm = ({ defaultValues, currentStep, stepCount, organizationName, onSubmit, onBackButtonClick, validateUsername, validatePassword, }) => {
|
|
10
10
|
const { t } = (0, react_i18next_1.useTranslation)();
|
|
11
11
|
const { register, handleSubmit, formState: { isValid, isValidating, isSubmitting, errors }, } = (0, react_hook_form_1.useForm)({ mode: 'onChange' });
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.FormSteps, { currentStep: currentStep, stepCount: stepCount }), (0, jsx_runtime_1.jsx)(layout_1.FormTitle, { children: t('form.createFirstMemberForm.title') }), (0, jsx_runtime_1.jsx)(layout_1.FormSubtitle, { children: t('form.createFirstMemberForm.subtitle', { organizationName }) }), (0, jsx_runtime_1.jsxs)(fuselage_1.FieldGroup, { marginBlockStart: 16, children: [(0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Box, { display: 'inline', marginInlineEnd: 8, children: t('form.createFirstMemberForm.fields.username.label') }) }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.TextInput, { ...register('username', {
|
|
13
13
|
validate: validateUsername,
|
|
14
14
|
required: true,
|
|
15
15
|
}), defaultValue: defaultValues?.username, error: errors?.username?.type || undefined }) }), errors?.username && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.username.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.createFirstMemberForm.fields.password.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...register('password', {
|
|
16
16
|
validate: validatePassword,
|
|
17
17
|
required: true,
|
|
18
|
-
}), defaultValue: defaultValues?.password }) }), errors.password && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.password.message }))] })] }), (0, jsx_runtime_1.jsx)(layout_1.
|
|
18
|
+
}), defaultValue: defaultValues?.password }) }), errors.password && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.password.message }))] })] }), (0, jsx_runtime_1.jsx)(layout_1.FormFooter, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.ButtonGroup, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.Button, { disabled: isSubmitting, onClick: onBackButtonClick, children: t('component.form.action.back') }), (0, jsx_runtime_1.jsx)(fuselage_1.Button, { type: 'submit', primary: true, disabled: !isValid, loading: isSubmitting || isValidating, minHeight: 'x40', children: isSubmitting ? ((0, jsx_runtime_1.jsx)(fuselage_1.Throbber, { inheritColor: true })) : (t('form.createFirstMemberForm.button.submit')) })] }) })] }));
|
|
19
19
|
};
|
|
20
20
|
exports.CreateFirstMemberForm = CreateFirstMemberForm;
|
|
21
21
|
exports.default = exports.CreateFirstMemberForm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateFirstMemberForm.js","sourceRoot":"","sources":["../../../../src/forms/CreateFirstMemberForm/CreateFirstMemberForm.tsx"],"names":[],"mappings":";;;;AAAA,oDAY+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"CreateFirstMemberForm.js","sourceRoot":"","sources":["../../../../src/forms/CreateFirstMemberForm/CreateFirstMemberForm.tsx"],"names":[],"mappings":";;;;AAAA,oDAY+B;AAC/B,gDAM6B;AAE7B,qDAA0C;AAC1C,iDAA+C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AO,GAAc,CACnD,IACK,EAER,wBAAC,gBAAK,eACJ,uBAAC,qBAAU,cACR,CAAC,CAAC,kDAAkD,CAAC,GAC3C,EACb,uBAAC,mBAAQ,cACP,uBAAC,wBAAa,OACR,QAAQ,CAAC,UAAU,EAAE;wCACvB,QAAQ,EAAE,gBAAgB;wCAC1B,QAAQ,EAAE,IAAI;qCACf,CAAC,EACF,YAAY,EAAE,aAAa,EAAE,QAAQ,GACrC,GACO,EACV,MAAM,CAAC,QAAQ,IAAI,CAClB,uBAAC,qBAAU,cAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAc,CACnD,IACK,IACG,EAEb,uBAAC,mBAAU,cACT,wBAAC,sBAAW,eACV,uBAAC,iBAAM,IAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,YACvD,CAAC,CAAC,4BAA4B,CAAC,GACzB,EAET,uBAAC,iBAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,QACP,QAAQ,EAAE,CAAC,OAAO,EAClB,OAAO,EAAE,YAAY,IAAI,YAAY,EACrC,SAAS,EAAC,KAAK,YAEd,YAAY,CAAC,CAAC,CAAC,CACd,uBAAC,mBAAQ,IAAC,YAAY,SAAG,CAC1B,CAAC,CAAC,CAAC,CACF,CAAC,CAAC,0CAA0C,CAAC,CAC9C,GACM,IACG,GACH,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AA1FW,QAAA,qBAAqB,yBA0FhC;AAEgC,kBA5FrB,6BAAqB,CA4FO"}
|
|
@@ -13,13 +13,13 @@ const CreateNewPassword = ({ onSubmit, validatePassword, validatePasswordConfirm
|
|
|
13
13
|
...initialValues,
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.FormContainer, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.FieldGroup, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.createPasswordForm.fields.password.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...register('password', {
|
|
17
17
|
validate: validatePassword,
|
|
18
18
|
required: true,
|
|
19
19
|
}), placeholder: t('form.createPasswordForm.fields.password.placeholder') }) }), errors.password && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.password.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.createPasswordForm.fields.confirmPassword.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...register('passwordConfirmation', {
|
|
20
20
|
validate: validatePasswordConfirmation,
|
|
21
21
|
required: true,
|
|
22
|
-
}), placeholder: t('form.createPasswordForm.fields.confirmPassword.placeholder') }) }), errors.passwordConfirmation && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.passwordConfirmation.message }))] })] }) }), (0, jsx_runtime_1.jsx)(layout_1.
|
|
22
|
+
}), placeholder: t('form.createPasswordForm.fields.confirmPassword.placeholder') }) }), errors.passwordConfirmation && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.passwordConfirmation.message }))] })] }) }), (0, jsx_runtime_1.jsx)(layout_1.FormFooter, { children: (0, jsx_runtime_1.jsx)(fuselage_1.ButtonGroup, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Button, { type: 'submit', primary: true, loading: isValidating || isSubmitting, disabled: !isValid, children: t('form.createPasswordForm.button.text') }) }) })] }));
|
|
23
23
|
};
|
|
24
24
|
exports.default = CreateNewPassword;
|
|
25
25
|
//# sourceMappingURL=CreateNewPassword.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateNewPassword.js","sourceRoot":"","sources":["../../../../src/forms/CreateNewPassword/CreateNewPassword.tsx"],"names":[],"mappings":";;;AAAA,oDAS+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"CreateNewPassword.js","sourceRoot":"","sources":["../../../../src/forms/CreateNewPassword/CreateNewPassword.tsx"],"names":[],"mappings":";;;AAAA,oDAS+B;AAC/B,gDAAsE;AAEtE,qDAA0C;AAC1C,iDAA+C;AAoB/C,MAAM,iBAAiB,GAAG,CAAC,EACzB,QAAQ,EACR,gBAAgB,EAChB,4BAA4B,EAC5B,aAAa,GACU,EAAE,EAAE;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,EACJ,QAAQ,EACR,YAAY,EACZ,SAAS,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,GAC3D,GAAG,IAAA,yBAAO,EAA2B;QACpC,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE;YACb,GAAG,aAAa;SACjB;KACF,CAAC,CAAC;IAEH,OAAO,CACL,wBAAC,aAAI,IAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,uBAAC,sBAAa,cACZ,wBAAC,qBAAU,eACT,wBAAC,gBAAK,eACJ,uBAAC,qBAAU,cACR,CAAC,CAAC,+CAA+C,CAAC,GACxC,EACb,uBAAC,mBAAQ,cACP,uBAAC,wBAAa,OACR,QAAQ,CAAC,UAAU,EAAE;4CACvB,QAAQ,EAAE,gBAAgB;4CAC1B,QAAQ,EAAE,IAAI;yCACf,CAAC,EACF,WAAW,EAAE,CAAC,CACZ,qDAAqD,CACtD,GACD,GACO,EACV,MAAM,CAAC,QAAQ,IAAI,CAClB,uBAAC,qBAAU,cAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAc,CACnD,IACK,EACR,wBAAC,gBAAK,eACJ,uBAAC,qBAAU,cACR,CAAC,CAAC,sDAAsD,CAAC,GAC/C,EACb,uBAAC,mBAAQ,cACP,uBAAC,wBAAa,OACR,QAAQ,CAAC,sBAAsB,EAAE;4CACnC,QAAQ,EAAE,4BAA4B;4CACtC,QAAQ,EAAE,IAAI;yCACf,CAAC,EACF,WAAW,EAAE,CAAC,CACZ,4DAA4D,CAC7D,GACD,GACO,EACV,MAAM,CAAC,oBAAoB,IAAI,CAC9B,uBAAC,qBAAU,cAAE,MAAM,CAAC,oBAAoB,CAAC,OAAO,GAAc,CAC/D,IACK,IACG,GACC,EAChB,uBAAC,mBAAU,cACT,uBAAC,sBAAW,cACV,uBAAC,iBAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,QACP,OAAO,EAAE,YAAY,IAAI,YAAY,EACrC,QAAQ,EAAE,CAAC,OAAO,YAEjB,CAAC,CAAC,qCAAqC,CAAC,GAClC,GACG,GACH,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/LoginForm/LoginForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/LoginForm/LoginForm.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMrD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;CAC3C,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,wFAOhB,cAAc,gCA8FhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -13,13 +13,13 @@ const LoginForm = ({ onSubmit, initialValues, isPasswordLess = false, onChangeFo
|
|
|
13
13
|
...initialValues,
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsxs)(layout_1.
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsxs)(layout_1.FormHeader, { children: [(0, jsx_runtime_1.jsx)(layout_1.FormTitle, { children: t('form.loginForm.content.logIn') }), (0, jsx_runtime_1.jsx)(layout_1.FormSubtitle, { children: !isPasswordLess
|
|
17
17
|
? t('form.loginForm.content.default')
|
|
18
|
-
: t('form.loginForm.content.passwordLess') })] }), (0, jsx_runtime_1.jsx)(layout_1.
|
|
18
|
+
: t('form.loginForm.content.passwordLess') })] }), (0, jsx_runtime_1.jsx)(layout_1.FormContainer, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.FieldGroup, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.loginForm.fields.email.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.EmailInput, { ...register('email', {
|
|
19
19
|
required: t('component.form.requiredField'),
|
|
20
|
-
}), placeholder: t('form.loginForm.fields.email.placeholder') }) }), errors.email && (0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.email.message })] }), !isPasswordLess && ((0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.loginForm.fields.password.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...register('password', { required: true }), placeholder: t('form.loginForm.fields.password.placeholder') }) }), (formError || errors.password) && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: t('form.loginForm.fields.password.error') }))] }))] }) }), (0, jsx_runtime_1.jsxs)(layout_1.
|
|
20
|
+
}), placeholder: t('form.loginForm.fields.email.placeholder') }) }), errors.email && (0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.email.message })] }), !isPasswordLess && ((0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.loginForm.fields.password.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...register('password', { required: true }), placeholder: t('form.loginForm.fields.password.placeholder') }) }), (formError || errors.password) && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: t('form.loginForm.fields.password.error') }))] }))] }) }), (0, jsx_runtime_1.jsxs)(layout_1.FormFooter, { children: [(0, jsx_runtime_1.jsxs)(LoginForm_styles_1.LoginActionsWrapper, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.Button, { type: 'submit', loading: isValidating || isSubmitting, disabled: !isDirty, primary: true, children: isPasswordLess
|
|
21
21
|
? t('form.loginForm.sendLoginLink')
|
|
22
|
-
: t('form.loginForm.button.text') }), !isPasswordLess && ((0, jsx_runtime_1.jsx)(layout_1.ActionLink, { fontScale: 'p2', onClick: onChangeForm, children: t('form.loginForm.sendLoginLink') })), isPasswordLess && ((0, jsx_runtime_1.jsx)(layout_1.ActionLink, { fontScale: 'p2', onClick: onChangeForm, children: t('form.loginForm.redirect') }))] }), !isPasswordLess && ((0, jsx_runtime_1.jsx)(fuselage_1.Box, {
|
|
22
|
+
: t('form.loginForm.button.text') }), !isPasswordLess && ((0, jsx_runtime_1.jsx)(layout_1.ActionLink, { fontScale: 'p2', onClick: onChangeForm, children: t('form.loginForm.sendLoginLink') })), isPasswordLess && ((0, jsx_runtime_1.jsx)(layout_1.ActionLink, { fontScale: 'p2', onClick: onChangeForm, children: t('form.loginForm.redirect') }))] }), !isPasswordLess && ((0, jsx_runtime_1.jsx)(fuselage_1.Box, { marginBlockStart: 24, fontScale: 'p2', textAlign: 'left', children: (0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: 'form.loginForm.resetPassword', children: ["Forgot your password?", (0, jsx_runtime_1.jsx)(layout_1.ActionLink, { fontScale: 'p2', onClick: onResetPassword, children: "Reset password" })] }) }))] })] }));
|
|
23
23
|
};
|
|
24
24
|
exports.default = LoginForm;
|
|
25
25
|
//# sourceMappingURL=LoginForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.js","sourceRoot":"","sources":["../../../../src/forms/LoginForm/LoginForm.tsx"],"names":[],"mappings":";;;AAAA,oDAU+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"LoginForm.js","sourceRoot":"","sources":["../../../../src/forms/LoginForm/LoginForm.tsx"],"names":[],"mappings":";;;AAAA,oDAU+B;AAC/B,gDAQ6B;AAE7B,qDAA0C;AAC1C,iDAAsD;AAEtD,yDAAyD;AAgBzD,MAAM,SAAS,GAAG,CAAC,EACjB,QAAQ,EACR,aAAa,EACb,cAAc,GAAG,KAAK,EACtB,YAAY,EACZ,eAAe,EACf,SAAS,GACM,EAAE,EAAE;IACnB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,EACJ,QAAQ,EACR,YAAY,EACZ,SAAS,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,GAC3D,GAAG,IAAA,yBAAO,EAAmB;QAC5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Q,EACb,OAAO,EAAE,YAAY,IAAI,YAAY,EACrC,QAAQ,EAAE,CAAC,OAAO,EAClB,OAAO,kBAEN,cAAc;oCACb,CAAC,CAAC,CAAC,CAAC,8BAA8B,CAAC;oCACnC,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,GAC5B,EACR,CAAC,cAAc,IAAI,CAClB,uBAAC,mBAAU,IAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAE,YAAY,YAC7C,CAAC,CAAC,8BAA8B,CAAC,GACvB,CACd,EACA,cAAc,IAAI,CACjB,uBAAC,mBAAU,IAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAE,YAAY,YAC7C,CAAC,CAAC,yBAAyB,CAAC,GAClB,CACd,IACmB,EAErB,CAAC,cAAc,IAAI,CAClB,uBAAC,cAAG,IAAC,gBAAgB,EAAE,EAAE,EAAE,SAAS,EAAC,IAAI,EAAC,SAAS,EAAC,MAAM,YACxD,wBAAC,qBAAK,IAAC,OAAO,EAAC,8BAA8B,sCAE3C,uBAAC,mBAAU,IAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAE,eAAe,+BAEtC,IACP,GACJ,CACP,IACU,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LoginActionsWrapper: import("react").
|
|
1
|
+
export declare const LoginActionsWrapper: import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
|
|
2
2
|
//# sourceMappingURL=LoginForm.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.styles.d.ts","sourceRoot":"","sources":["../../../../src/forms/LoginForm/LoginForm.styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"LoginForm.styles.d.ts","sourceRoot":"","sources":["../../../../src/forms/LoginForm/LoginForm.styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,qIAW/B,CAAC"}
|
|
@@ -12,7 +12,7 @@ const NewAccountForm = ({ validateEmail, validatePassword, validateConfirmationP
|
|
|
12
12
|
(0, react_1.useEffect)(() => {
|
|
13
13
|
setFocus('name');
|
|
14
14
|
}, [setFocus]);
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.FormContainer, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.FieldGroup, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.newAccountForm.fields.name.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.TextInput, { ...register('name', {
|
|
16
16
|
required: t('component.form.requiredField'),
|
|
17
17
|
}) }) }), errors.name && (0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.name.message })] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.newAccountForm.fields.email.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.EmailInput, { ...register('email', {
|
|
18
18
|
validate: validateEmail,
|
|
@@ -23,7 +23,7 @@ const NewAccountForm = ({ validateEmail, validatePassword, validateConfirmationP
|
|
|
23
23
|
}) }) }), errors.password && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.password.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { children: t('form.newAccountForm.fields.confirmPassword.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(fuselage_1.PasswordInput, { ...register('confirmPassword', {
|
|
24
24
|
required: true,
|
|
25
25
|
validate: validateConfirmationPassword,
|
|
26
|
-
}) }) }), errors.confirmPassword && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.confirmPassword.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.FieldRow, { justifyContent: 'flex-start', children: [(0, jsx_runtime_1.jsx)(fuselage_1.CheckBox, { ...register('agreement', { required: true }),
|
|
26
|
+
}) }) }), errors.confirmPassword && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: errors.confirmPassword.message }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.FieldRow, { justifyContent: 'flex-start', children: [(0, jsx_runtime_1.jsx)(fuselage_1.CheckBox, { ...register('agreement', { required: true }), marginInlineEnd: 8 }), (0, jsx_runtime_1.jsx)(fuselage_1.Box, { is: 'label', htmlFor: 'agreement', withRichContent: true, fontScale: 'c1', children: (0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: 'component.form.termsAndConditions', children: ["I agree with", (0, jsx_runtime_1.jsx)("a", { href: 'https://rocket.chat/terms', target: '_blank', rel: 'noopener noreferrer', children: "Terms and Conditions" }), "and", (0, jsx_runtime_1.jsx)("a", { href: 'https://rocket.chat/privacy', target: '_blank', rel: 'noopener noreferrer', children: "Privacy Policy" })] }) })] }), errors.agreement?.type === 'required' && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { children: t('component.form.requiredField') }))] })] }) }), (0, jsx_runtime_1.jsx)(layout_1.FormFooter, { children: (0, jsx_runtime_1.jsx)(fuselage_1.ButtonGroup, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Button, { type: 'submit', primary: true, loading: isValidating || isSubmitting, disabled: !isValid, children: t('component.form.action.next') }) }) })] }));
|
|
27
27
|
};
|
|
28
28
|
exports.default = NewAccountForm;
|
|
29
29
|
//# sourceMappingURL=NewAccountForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewAccountForm.js","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/NewAccountForm.tsx"],"names":[],"mappings":";;;AAAA,oDAa+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"NewAccountForm.js","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/NewAccountForm.tsx"],"names":[],"mappings":";;;AAAA,oDAa+B;AAC/B,gDAAsE;AACtE,iCAAkC;AAElC,qDAA0C;AAC1C,iDAAsD;AA2BtD,MAAM,cAAc,GAAG,CAAC,EACtB,aAAa,EACb,gBAAgB,EAChB,4BAA4B,EAC5B,QAAQ,GACY,EAAE,EAAE;IACxB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,EACJ,QAAQ,EACR,YAAY,EACZ,SAAS,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,EAC1D,QAAQ,GACT,GAAG,IAAA,yBAAO,EAAoB,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IAErD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,wBAAC,aAAI,IAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,uBAAC,sBAAa,cACZ,wBAAC,qBAAU,eACT,wBAAC,gBAAK,eACJ,uBAAC,qBAAU,cACR,CAAC,CAAC,uCAAuC,CAAC,GAChC,EACb,uBAAC,mBAAQ,cACP,uBAAC,oBAAS,OACJ,QAAQ,CAAC,MAAM,EAAE;4CACnB,QAAQ,EAAE,CAAC,C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,QAAQ,EAAE,IAAI,EAAE,CAAC,EAC7C,eAAe,EAAE,CAAC,GAClB,EACF,uBAAC,cAAG,IACF,EAAE,EAAC,OAAO,EACV,OAAO,EAAC,WAAW,EACnB,eAAe,QACf,SAAS,EAAC,IAAI,YAEd,wBAAC,qBAAK,IAAC,OAAO,EAAC,mCAAmC,6BAEhD,8BACE,IAAI,EAAC,2BAA2B,EAChC,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,qCAGvB,SAEJ,8BACE,IAAI,EAAC,6BAA6B,EAClC,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,+BAGvB,IACE,GACJ,IACG,EACV,MAAM,CAAC,SAAS,EAAE,IAAI,KAAK,UAAU,IAAI,CACxC,uBAAC,qBAAU,cAAE,CAAC,CAAC,8BAA8B,CAAC,GAAc,CAC7D,IACK,IACG,GACC,EAChB,uBAAC,mBAAU,cACT,uBAAC,sBAAW,cACV,uBAAC,iBAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,QACP,OAAO,EAAE,YAAY,IAAI,YAAY,EACrC,QAAQ,EAAE,CAAC,OAAO,YAEjB,CAAC,CAAC,4BAA4B,CAAC,GACzB,GACG,GACH,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationInfoForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/OrganizationInfoForm/OrganizationInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"OrganizationInfoForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/OrganizationInfoForm/OrganizationInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAwB1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B,EAAE,YAAY,EAAE,CAAC;IAC5C,uBAAuB,EAAE,YAAY,EAAE,CAAC;IACxC,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,QAAQ,EAAE,aAAa,CAAC,uBAAuB,CAAC,CAAC;IACjD,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,oBAAoB,GAAI,sKAW3B,yBAAyB,gCA0M3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -26,9 +26,9 @@ const OrganizationInfoForm = ({ currentStep, stepCount, organizationIndustryOpti
|
|
|
26
26
|
organizationInfoFormRef.current.focus();
|
|
27
27
|
}
|
|
28
28
|
}, []);
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { ref: organizationInfoFormRef, tabIndex: -1, "aria-labelledby": `${formId}-title`, "aria-describedby": `${formId}-description`, onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsxs)(layout_1.
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(layout_1.Form, { ref: organizationInfoFormRef, tabIndex: -1, "aria-labelledby": `${formId}-title`, "aria-describedby": `${formId}-description`, onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsxs)(layout_1.FormHeader, { children: [(0, jsx_runtime_1.jsx)(layout_1.FormSteps, { currentStep: currentStep, stepCount: stepCount }), (0, jsx_runtime_1.jsx)(layout_1.FormTitle, { id: `${formId}-title`, children: t('form.organizationInfoForm.title') }), (0, jsx_runtime_1.jsx)(layout_1.FormSubtitle, { id: `${formId}-description`, children: t('form.organizationInfoForm.subtitle') })] }), (0, jsx_runtime_1.jsx)(layout_1.FormContainer, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.FieldGroup, { children: [(0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: organizationNameField, children: t('form.organizationInfoForm.fields.organizationName.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'organizationName', control: control, rules: {
|
|
30
30
|
required: t('component.form.requiredField'),
|
|
31
|
-
}, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.TextInput, { ...field, placeholder: t('form.organizationInfoForm.fields.organizationName.placeholder'), "aria-describedby": `${organizationNameField}-error}`, "aria-required": 'true', "aria-invalid": Boolean(errors.organizationName), id: organizationNameField })) }) }), errors.organizationName && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${organizationNameField}-error}`, children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: organizationIndustryField, children: t('form.organizationInfoForm.fields.organizationIndustry.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'organizationIndustry', control: control, rules: { required: t('component.form.requiredField') }, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: organizationIndustryOptions, placeholder: t('form.organizationInfoForm.fields.organizationIndustry.placeholder'), "aria-required": 'true', "aria-invalid": Boolean(errors.organizationIndustry), "aria-describedby": `${organizationIndustryField}-error}`, id: organizationIndustryField })) }) }), errors.organizationIndustry && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${organizationIndustryField}-error}`, children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: organizationSizeField, children: t('form.organizationInfoForm.fields.organizationSize.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'organizationSize', control: control, rules: { required: t('component.form.requiredField') }, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: organizationSizeOptions, placeholder: t('form.organizationInfoForm.fields.organizationSize.placeholder'), "aria-required": 'true', "aria-invalid": Boolean(errors.organizationSize), "aria-describedby": `${organizationSizeField}-error}`, id: organizationSizeField })) }) }), errors.organizationSize && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${organizationSizeField}-error}`, children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: countryField, children: t('form.organizationInfoForm.fields.country.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'country', control: control, rules: { required: t('component.form.requiredField') }, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: countryOptions, placeholder: t('form.organizationInfoForm.fields.country.placeholder'), "aria-required": 'true', "aria-invalid": Boolean(errors.country), "aria-describedby": `${countryField}-error}`, id: countryField })) }) }), errors.country && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${countryField}-error}`, children: t('component.form.requiredField') }))] })] }) }), (0, jsx_runtime_1.jsx)(layout_1.
|
|
31
|
+
}, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.TextInput, { ...field, placeholder: t('form.organizationInfoForm.fields.organizationName.placeholder'), "aria-describedby": `${organizationNameField}-error}`, "aria-required": 'true', "aria-invalid": Boolean(errors.organizationName), id: organizationNameField })) }) }), errors.organizationName && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${organizationNameField}-error}`, children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: organizationIndustryField, children: t('form.organizationInfoForm.fields.organizationIndustry.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'organizationIndustry', control: control, rules: { required: t('component.form.requiredField') }, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: organizationIndustryOptions, placeholder: t('form.organizationInfoForm.fields.organizationIndustry.placeholder'), "aria-required": 'true', "aria-invalid": Boolean(errors.organizationIndustry), "aria-describedby": `${organizationIndustryField}-error}`, id: organizationIndustryField })) }) }), errors.organizationIndustry && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${organizationIndustryField}-error}`, children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: organizationSizeField, children: t('form.organizationInfoForm.fields.organizationSize.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'organizationSize', control: control, rules: { required: t('component.form.requiredField') }, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: organizationSizeOptions, placeholder: t('form.organizationInfoForm.fields.organizationSize.placeholder'), "aria-required": 'true', "aria-invalid": Boolean(errors.organizationSize), "aria-describedby": `${organizationSizeField}-error}`, id: organizationSizeField })) }) }), errors.organizationSize && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${organizationSizeField}-error}`, children: t('component.form.requiredField') }))] }), (0, jsx_runtime_1.jsxs)(fuselage_1.Field, { children: [(0, jsx_runtime_1.jsx)(fuselage_1.FieldLabel, { required: true, htmlFor: countryField, children: t('form.organizationInfoForm.fields.country.label') }), (0, jsx_runtime_1.jsx)(fuselage_1.FieldRow, { children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { name: 'country', control: control, rules: { required: t('component.form.requiredField') }, render: ({ field }) => ((0, jsx_runtime_1.jsx)(fuselage_1.Select, { ...field, options: countryOptions, placeholder: t('form.organizationInfoForm.fields.country.placeholder'), "aria-required": 'true', "aria-invalid": Boolean(errors.country), "aria-describedby": `${countryField}-error}`, id: countryField })) }) }), errors.country && ((0, jsx_runtime_1.jsx)(fuselage_1.FieldError, { "aria-live": 'assertive', id: `${countryField}-error}`, children: t('component.form.requiredField') }))] })] }) }), (0, jsx_runtime_1.jsx)(layout_1.FormFooter, { children: (0, jsx_runtime_1.jsxs)(fuselage_1.ButtonGroup, { vertical: isMobile, children: [onBackButtonClick && ((0, jsx_runtime_1.jsx)(fuselage_1.Button, { disabled: isSubmitting, onClick: onBackButtonClick, children: t('component.form.action.back') })), (0, jsx_runtime_1.jsx)(fuselage_1.Button, { type: 'submit', primary: true, loading: isValidating || isSubmitting, children: nextStep ?? t('component.form.action.next') }), onClickSkip && ((0, jsx_runtime_1.jsx)(fuselage_1.Box, { withTruncatedText: true, flexGrow: 1, children: (0, jsx_runtime_1.jsx)(fuselage_1.ButtonGroup, { align: 'end', children: (0, jsx_runtime_1.jsx)(layout_1.ActionLink, { onClick: onClickSkip, children: t('component.form.action.skip') }) }) }))] }) })] }));
|
|
32
32
|
};
|
|
33
33
|
exports.default = OrganizationInfoForm;
|
|
34
34
|
//# sourceMappingURL=OrganizationInfoForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationInfoForm.js","sourceRoot":"","sources":["../../../../src/forms/OrganizationInfoForm/OrganizationInfoForm.tsx"],"names":[],"mappings":";;;AACA,oDAW+B;AAC/B,gEAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"OrganizationInfoForm.js","sourceRoot":"","sources":["../../../../src/forms/OrganizationInfoForm/OrganizationInfoForm.tsx"],"names":[],"mappings":";;;AACA,oDAW+B;AAC/B,gEAA6D;AAC7D,gDAS6B;AAE7B,iCAAiD;AAEjD,qDAAsD;AACtD,iDAA+C;AAsB/C,MAAM,oBAAoB,GAAG,CAAC,EAC5B,WAAW,EACX,SAAS,EACT,2BAA2B,EAC3B,uBAAuB,EACvB,cAAc,EACd,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,WAAW,GACe,EAAE,EAAE;IAC9B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAA,+BAAc,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,MAAM,GAAG,IAAA,aAAK,GAAE,CAAC;IACvB,MAAM,qBAAqB,GAAG,IAAA,aAAK,GAAE,CAAC;IACtC,MAAM,yBAAyB,GAAG,IAAA,aAAK,GAAE,CAAC;IAC1C,MAAM,qBAAqB,GAAG,IAAA,aAAK,GAAE,CAAC;IACtC,MAAM,YAAY,GAAG,IAAA,aAAK,GAAE,CAAC;IAE7B,MAAM,uBAAuB,GAAG,IAAA,cAAM,EAAc,IAAI,CAAC,CAAC;IAE1D,MAAM,EACJ,OAAO,EACP,YAAY,EACZ,SAAS,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE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wBAAC,sBAAW,IAAC,QAAQ,EAAE,QAAQ,aAC5B,iBAAiB,IAAI,CACpB,uBAAC,iBAAM,IAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,YACvD,CAAC,CAAC,4BAA4B,CAAC,GACzB,CACV,EACD,uBAAC,iBAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,QAAC,OAAO,EAAE,YAAY,IAAI,YAAY,YAChE,QAAQ,IAAI,CAAC,CAAC,4BAA4B,CAAC,GACrC,EACR,WAAW,IAAI,CACd,uBAAC,cAAG,IAAC,iBAAiB,QAAC,QAAQ,EAAE,CAAC,YAChC,uBAAC,sBAAW,IAAC,KAAK,EAAC,KAAK,YACtB,uBAAC,mBAAU,IAAC,OAAO,EAAE,WAAW,YAC7B,CAAC,CAAC,4BAA4B,CAAC,GACrB,GACD,GACV,CACP,IACW,GACH,IACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -26,7 +26,7 @@ const RegisterOfflineForm = ({ termsHref, policyHref, clientKey, onSubmit, onCop
|
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
const { handleSubmit } = form;
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)(react_hook_form_1.FormProvider, { ...form, children: (0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(react_hook_form_1.FormProvider, { ...form, children: (0, jsx_runtime_1.jsxs)(layout_1.Form, { onSubmit: handleSubmit(onSubmit), children: [(0, jsx_runtime_1.jsx)(layout_1.FormHeader, { children: (0, jsx_runtime_1.jsx)(layout_1.FormTitle, { children: t('form.registerOfflineForm.title') }) }), step === exports.Steps.COPY ? ((0, jsx_runtime_1.jsx)(CopyStep_1.default, { termsHref: termsHref, policyHref: policyHref, clientKey: clientKey, setStep: setStep, onCopySecurityCode: onCopySecurityCode, onBackButtonClick: onBackButtonClick })) : ((0, jsx_runtime_1.jsx)(PasteStep_1.default, { setStep: setStep }))] }) }));
|
|
30
30
|
};
|
|
31
31
|
exports.default = RegisterOfflineForm;
|
|
32
32
|
//# sourceMappingURL=RegisterOfflineForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterOfflineForm.js","sourceRoot":"","sources":["../../../../src/forms/RegisterOfflineForm/RegisterOfflineForm.tsx"],"names":[],"mappings":";;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RegisterOfflineForm.js","sourceRoot":"","sources":["../../../../src/forms/RegisterOfflineForm/RegisterOfflineForm.tsx"],"names":[],"mappings":";;;;;;;AAAA,gDAAkE;AAClE,iCAAiC;AAEjC,qDAAwD;AACxD,iDAA+C;AAE/C,gEAAwC;AACxC,kEAA0C;AAgB7B,QAAA,KAAK,GAAG;IACnB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,EAC3B,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,GACQ,EAAE,EAAE;IAC7B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,aAAK,CAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,IAAA,yBAAO,EAAyB;QAC3C,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE;YACb,KAAK,EAAE,EAAE;YACT,SAAS,EAAE,KAAK;SACjB;KACF,CAAC,CAAC;IAEH,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAE9B,OAAO,CACL,uBAAC,8BAAY,OAAK,IAAI,YACpB,wBAAC,aAAI,IAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,uBAA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